From f5274aad6dd19a6b87308f0815da7952c9771d5f Mon Sep 17 00:00:00 2001 From: iainnash Date: Sun, 21 Apr 2024 20:30:53 +0000 Subject: [PATCH] deploy: 2b0a1a8fb2293c2a35ff6da6a38c725bcdd51900 --- assets/index-0pSeE7YS.js | 168 +++++++++++++++++++++++++++++++++++++++ assets/index-YtML-ub4.js | 168 --------------------------------------- index.html | 2 +- 3 files changed, 169 insertions(+), 169 deletions(-) create mode 100644 assets/index-0pSeE7YS.js delete mode 100644 assets/index-YtML-ub4.js diff --git a/assets/index-0pSeE7YS.js b/assets/index-0pSeE7YS.js new file mode 100644 index 0000000..825e268 --- /dev/null +++ b/assets/index-0pSeE7YS.js @@ -0,0 +1,168 @@ +var pK=Object.defineProperty;var yK=(t,e,n)=>e in t?pK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var mK=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ge=(t,e,n)=>(yK(t,typeof e!="symbol"?e+"":e,n),n),g5=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var H=(t,e,n)=>(g5(t,e,"read from private field"),n?n.call(t):e.get(t)),xe=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},re=(t,e,n,r)=>(g5(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var Gd=(t,e,n,r)=>({set _(a){re(t,e,a,n)},get _(){return H(t,e,r)}}),ke=(t,e,n)=>(g5(t,e,"access private method"),n);var zMe=mK((ri,ai)=>{function cP(t,e){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var uT={},he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof uT<"u"?uT:typeof self<"u"?self:{};function md(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function lP(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var uP={exports:{}},f8={},fP={exports:{}},Mt={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Db=Symbol.for("react.element"),bK=Symbol.for("react.portal"),gK=Symbol.for("react.fragment"),xK=Symbol.for("react.strict_mode"),vK=Symbol.for("react.profiler"),wK=Symbol.for("react.provider"),EK=Symbol.for("react.context"),AK=Symbol.for("react.forward_ref"),_K=Symbol.for("react.suspense"),CK=Symbol.for("react.memo"),BK=Symbol.for("react.lazy"),fT=Symbol.iterator;function SK(t){return t===null||typeof t!="object"?null:(t=fT&&t[fT]||t["@@iterator"],typeof t=="function"?t:null)}var dP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hP=Object.assign,pP={};function zp(t,e,n){this.props=t,this.context=e,this.refs=pP,this.updater=n||dP}zp.prototype.isReactComponent={};zp.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};zp.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function yP(){}yP.prototype=zp.prototype;function fA(t,e,n){this.props=t,this.context=e,this.refs=pP,this.updater=n||dP}var dA=fA.prototype=new yP;dA.constructor=fA;hP(dA,zp.prototype);dA.isPureReactComponent=!0;var dT=Array.isArray,mP=Object.prototype.hasOwnProperty,hA={current:null},bP={key:!0,ref:!0,__self:!0,__source:!0};function gP(t,e,n){var r,a={},i=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)mP.call(e,r)&&!bP.hasOwnProperty(r)&&(a[r]=e[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1>>1,A=x[_];if(0>>1;_a(q,m))Ia(K,q)?(x[_]=K,x[I]=m,_=I):(x[_]=q,x[$]=m,_=$);else if(Ia(K,m))x[_]=K,x[I]=m,_=I;else break e}}return f}function a(x,f){var m=x.sortIndex-f.sortIndex;return m!==0?m:x.id-f.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var c=[],h=[],b=1,v=null,E=3,C=!1,F=!1,T=!1,P=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(x){for(var f=n(h);f!==null;){if(f.callback===null)r(h);else if(f.startTime<=x)r(h),f.sortIndex=f.expirationTime,e(c,f);else break;f=n(h)}}function k(x){if(T=!1,O(x),!F)if(n(c)!==null)F=!0,g(U);else{var f=n(h);f!==null&&w(k,f.startTime-x)}}function U(x,f){F=!1,T&&(T=!1,D(L),L=-1),C=!0;var m=E;try{for(O(f),v=n(c);v!==null&&(!(v.expirationTime>f)||x&&!u());){var _=v.callback;if(typeof _=="function"){v.callback=null,E=v.priorityLevel;var A=_(v.expirationTime<=f);f=t.unstable_now(),typeof A=="function"?v.callback=A:v===n(c)&&r(c),O(f)}else r(c);v=n(c)}if(v!==null)var S=!0;else{var $=n(h);$!==null&&w(k,$.startTime-f),S=!1}return S}finally{v=null,E=m,C=!1}}var V=!1,Y=null,L=-1,X=5,B=-1;function u(){return!(t.unstable_now()-Bx||125_?(x.sortIndex=m,e(h,x),n(c)===null&&x===n(h)&&(T?(D(L),L=-1):T=!0,w(k,m-_))):(x.sortIndex=A,e(c,x),F||C||(F=!0,g(U))),x},t.unstable_shouldYield=u,t.unstable_wrapCallback=function(x){var f=E;return function(){var m=E;E=f;try{return x.apply(this,arguments)}finally{E=m}}}})(EP);wP.exports=EP;var LK=wP.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var AP=ve,oi=LK;function Ge(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),e7=Object.prototype.hasOwnProperty,UK=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pT={},yT={};function jK(t){return e7.call(yT,t)?!0:e7.call(pT,t)?!1:UK.test(t)?yT[t]=!0:(pT[t]=!0,!1)}function HK(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function zK(t,e,n,r){if(e===null||typeof e>"u"||HK(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function wa(t,e,n,r,a,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Nr[t]=new wa(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Nr[e]=new wa(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Nr[t]=new wa(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Nr[t]=new wa(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Nr[t]=new wa(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Nr[t]=new wa(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Nr[t]=new wa(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Nr[t]=new wa(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Nr[t]=new wa(t,5,!1,t.toLowerCase(),null,!1,!1)});var yA=/[\-:]([a-z])/g;function mA(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(yA,mA);Nr[e]=new wa(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(yA,mA);Nr[e]=new wa(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(yA,mA);Nr[e]=new wa(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Nr[t]=new wa(t,1,!1,t.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new wa("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Nr[t]=new wa(t,1,!1,t.toLowerCase(),null,!0,!0)});function bA(t,e,n,r){var a=Nr.hasOwnProperty(e)?Nr[e]:null;(a!==null?a.type!==0:r||!(2o||a[s]!==i[o]){var c=` +`+a[s].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=s&&0<=o);break}}}finally{w5=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?yy(t):""}function GK(t){switch(t.tag){case 5:return yy(t.type);case 16:return yy("Lazy");case 13:return yy("Suspense");case 19:return yy("SuspenseList");case 0:case 2:case 15:return t=E5(t.type,!1),t;case 11:return t=E5(t.type.render,!1),t;case 1:return t=E5(t.type,!0),t;default:return""}}function a7(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C0:return"Fragment";case _0:return"Portal";case t7:return"Profiler";case gA:return"StrictMode";case n7:return"Suspense";case r7:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case BP:return(t.displayName||"Context")+".Consumer";case CP:return(t._context.displayName||"Context")+".Provider";case xA:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case vA:return e=t.displayName||null,e!==null?e:a7(t.type)||"Memo";case bl:e=t._payload,t=t._init;try{return a7(t(e))}catch{}}return null}function VK(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return a7(e);case 8:return e===gA?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function uu(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function TP(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function qK(t){var e=TP(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function _2(t){t._valueTracker||(t._valueTracker=qK(t))}function FP(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=TP(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function P6(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function i7(t,e){var n=e.checked;return _n({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function bT(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=uu(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function MP(t,e){e=e.checked,e!=null&&bA(t,"checked",e,!1)}function s7(t,e){MP(t,e);var n=uu(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?o7(t,e.type,n):e.hasOwnProperty("defaultValue")&&o7(t,e.type,uu(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function gT(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function o7(t,e,n){(e!=="number"||P6(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var my=Array.isArray;function K0(t,e,n,r){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=C2.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function lm(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Py={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},WK=["Webkit","ms","Moz","O"];Object.keys(Py).forEach(function(t){WK.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Py[e]=Py[t]})});function OP(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Py.hasOwnProperty(t)&&Py[t]?(""+e).trim():e+"px"}function PP(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=OP(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,a):t[n]=a}}var KK=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function u7(t,e){if(e){if(KK[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Ge(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Ge(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Ge(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Ge(62))}}function f7(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var d7=null;function wA(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var h7=null,Z0=null,Q0=null;function wT(t){if(t=Ob(t)){if(typeof h7!="function")throw Error(Ge(280));var e=t.stateNode;e&&(e=m8(e),h7(t.stateNode,t.type,e))}}function RP(t){Z0?Q0?Q0.push(t):Q0=[t]:Z0=t}function NP(){if(Z0){var t=Z0,e=Q0;if(Q0=Z0=null,wT(t),e)for(t=0;t>>=0,t===0?32:31-(iZ(t)/sZ|0)|0}var B2=64,S2=4194304;function by(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function L6(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,a=t.suspendedLanes,i=t.pingedLanes,s=n&268435455;if(s!==0){var o=s&~a;o!==0?r=by(o):(i&=s,i!==0&&(r=by(i)))}else s=n&~a,s!==0?r=by(s):i!==0&&(r=by(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function kb(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ss(e),t[e]=n}function uZ(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=Ny),MT=" ",DT=!1;function rR(t,e){switch(t){case"keyup":return $Z.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aR(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var B0=!1;function UZ(t,e){switch(t){case"compositionend":return aR(e);case"keypress":return e.which!==32?null:(DT=!0,MT);case"textInput":return t=e.data,t===MT&&DT?null:t;default:return null}}function jZ(t,e){if(B0)return t==="compositionend"||!FA&&rR(t,e)?(t=tR(),Q3=BA=ql=null,B0=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=PT(n)}}function cR(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cR(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function lR(){for(var t=window,e=P6();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=P6(t.document)}return e}function MA(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function QZ(t){var e=lR(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&cR(n.ownerDocument.documentElement,n)){if(r!==null&&MA(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!t.extend&&i>r&&(a=r,r=i,i=a),a=RT(n,i);var s=RT(n,r);a&&s&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,S0=null,x7=null,Ly=null,v7=!1;function NT(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;v7||S0==null||S0!==P6(r)||(r=S0,"selectionStart"in r&&MA(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ly&&ym(Ly,r)||(Ly=r,r=H6(x7,"onSelect"),0M0||(t.current=B7[M0],B7[M0]=null,M0--)}function fn(t,e){M0++,B7[M0]=t.current,t.current=e}var fu={},ia=wu(fu),Ia=wu(!1),Zf=fu;function np(t,e){var n=t.type.contextTypes;if(!n)return fu;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Oa(t){return t=t.childContextTypes,t!=null}function G6(){mn(Ia),mn(ia)}function GT(t,e,n){if(ia.current!==fu)throw Error(Ge(168));fn(ia,e),fn(Ia,n)}function gR(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(Ge(108,VK(t)||"Unknown",a));return _n({},n,r)}function V6(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||fu,Zf=ia.current,fn(ia,t),fn(Ia,Ia.current),!0}function VT(t,e,n){var r=t.stateNode;if(!r)throw Error(Ge(169));n?(t=gR(t,e,Zf),r.__reactInternalMemoizedMergedChildContext=t,mn(Ia),mn(ia),fn(ia,t)):mn(Ia),fn(Ia,n)}var Xo=null,b8=!1,R5=!1;function xR(t){Xo===null?Xo=[t]:Xo.push(t)}function cQ(t){b8=!0,xR(t)}function Eu(){if(!R5&&Xo!==null){R5=!0;var t=0,e=Kt;try{var n=Xo;for(Kt=1;t>=s,a-=s,mc=1<<32-Ss(e)+a|n<L?(X=Y,Y=null):X=Y.sibling;var B=E(D,Y,O[L],k);if(B===null){Y===null&&(Y=X);break}t&&Y&&B.alternate===null&&e(D,Y),M=i(B,M,L),V===null?U=B:V.sibling=B,V=B,Y=X}if(L===O.length)return n(D,Y),xn&&Gu(D,L),U;if(Y===null){for(;LL?(X=Y,Y=null):X=Y.sibling;var u=E(D,Y,B.value,k);if(u===null){Y===null&&(Y=X);break}t&&Y&&u.alternate===null&&e(D,Y),M=i(u,M,L),V===null?U=u:V.sibling=u,V=u,Y=X}if(B.done)return n(D,Y),xn&&Gu(D,L),U;if(Y===null){for(;!B.done;L++,B=O.next())B=v(D,B.value,k),B!==null&&(M=i(B,M,L),V===null?U=B:V.sibling=B,V=B);return xn&&Gu(D,L),U}for(Y=r(D,Y);!B.done;L++,B=O.next())B=C(Y,D,L,B.value,k),B!==null&&(t&&B.alternate!==null&&Y.delete(B.key===null?L:B.key),M=i(B,M,L),V===null?U=B:V.sibling=B,V=B);return t&&Y.forEach(function(d){return e(D,d)}),xn&&Gu(D,L),U}function P(D,M,O,k){if(typeof O=="object"&&O!==null&&O.type===C0&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case A2:e:{for(var U=O.key,V=M;V!==null;){if(V.key===U){if(U=O.type,U===C0){if(V.tag===7){n(D,V.sibling),M=a(V,O.props.children),M.return=D,D=M;break e}}else if(V.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===bl&&JT(U)===V.type){n(D,V.sibling),M=a(V,O.props),M.ref=S1(D,V,O),M.return=D,D=M;break e}n(D,V);break}else e(D,V);V=V.sibling}O.type===C0?(M=jf(O.props.children,D.mode,k,O.key),M.return=D,D=M):(k=a6(O.type,O.key,O.props,null,D.mode,k),k.ref=S1(D,M,O),k.return=D,D=k)}return s(D);case _0:e:{for(V=O.key;M!==null;){if(M.key===V)if(M.tag===4&&M.stateNode.containerInfo===O.containerInfo&&M.stateNode.implementation===O.implementation){n(D,M.sibling),M=a(M,O.children||[]),M.return=D,D=M;break e}else{n(D,M);break}else e(D,M);M=M.sibling}M=G5(O,D.mode,k),M.return=D,D=M}return s(D);case bl:return V=O._init,P(D,M,V(O._payload),k)}if(my(O))return F(D,M,O,k);if(E1(O))return T(D,M,O,k);O2(D,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,M!==null&&M.tag===6?(n(D,M.sibling),M=a(M,O),M.return=D,D=M):(n(D,M),M=z5(O,D.mode,k),M.return=D,D=M),s(D)):n(D,M)}return P}var ap=SR(!0),TR=SR(!1),Pb={},xo=wu(Pb),xm=wu(Pb),vm=wu(Pb);function rf(t){if(t===Pb)throw Error(Ge(174));return t}function LA(t,e){switch(fn(vm,e),fn(xm,t),fn(xo,Pb),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:l7(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=l7(e,t)}mn(xo),fn(xo,e)}function ip(){mn(xo),mn(xm),mn(vm)}function FR(t){rf(vm.current);var e=rf(xo.current),n=l7(e,t.type);e!==n&&(fn(xm,t),fn(xo,n))}function UA(t){xm.current===t&&(mn(xo),mn(xm))}var wn=wu(0);function X6(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var N5=[];function jA(){for(var t=0;tn?n:4,t(!0);var r=$5.transition;$5.transition={};try{t(!1),e()}finally{Kt=n,$5.transition=r}}function VR(){return Zi().memoizedState}function dQ(t,e,n){var r=nu(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qR(t))WR(e,n);else if(n=AR(t,e,n,r),n!==null){var a=ga();Ts(n,t,r,a),KR(n,e,r)}}function hQ(t,e,n){var r=nu(t),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qR(t))WR(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,o=i(s,n);if(a.hasEagerState=!0,a.eagerState=o,Ms(o,s)){var c=e.interleaved;c===null?(a.next=a,NA(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}n=AR(t,e,a,r),n!==null&&(a=ga(),Ts(n,t,r,a),KR(n,e,r))}}function qR(t){var e=t.alternate;return t===An||e!==null&&e===An}function WR(t,e){Uy=J6=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function KR(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,AA(t,n)}}var Y6={readContext:Ki,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},pQ={readContext:Ki,useCallback:function(t,e){return Xs().memoizedState=[t,e===void 0?null:e],t},useContext:Ki,useEffect:eF,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,e6(4194308,4,UR.bind(null,e,t),n)},useLayoutEffect:function(t,e){return e6(4194308,4,t,e)},useInsertionEffect:function(t,e){return e6(4,2,t,e)},useMemo:function(t,e){var n=Xs();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Xs();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=dQ.bind(null,An,t),[r.memoizedState,t]},useRef:function(t){var e=Xs();return t={current:t},e.memoizedState=t},useState:YT,useDebugValue:qA,useDeferredValue:function(t){return Xs().memoizedState=t},useTransition:function(){var t=YT(!1),e=t[0];return t=fQ.bind(null,t[1]),Xs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=An,a=Xs();if(xn){if(n===void 0)throw Error(Ge(407));n=n()}else{if(n=e(),Er===null)throw Error(Ge(349));Xf&30||kR(r,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,eF(OR.bind(null,r,i,t),[t]),r.flags|=2048,Am(9,IR.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Xs(),e=Er.identifierPrefix;if(xn){var n=bc,r=mc;n=(r&~(1<<32-Ss(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=wm++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[ho]=e,t[gm]=r,rN(t,e,!1,!1),e.stateNode=t;e:{switch(s=f7(n,r),n){case"dialog":pn("cancel",t),pn("close",t),a=r;break;case"iframe":case"object":case"embed":pn("load",t),a=r;break;case"video":case"audio":for(a=0;aop&&(e.flags|=128,r=!0,T1(i,!1),e.lanes=4194304)}else{if(!r)if(t=X6(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),T1(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!xn)return jr(e),null}else 2*jn()-i.renderingStartTime>op&&n!==1073741824&&(e.flags|=128,r=!0,T1(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(n=i.last,n!==null?n.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=jn(),e.sibling=null,n=wn.current,fn(wn,r?n&1|2:n&1),e):(jr(e),null);case 22:case 23:return JA(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ka&1073741824&&(jr(e),e.subtreeFlags&6&&(e.flags|=8192)):jr(e),null;case 24:return null;case 25:return null}throw Error(Ge(156,e.tag))}function EQ(t,e){switch(kA(e),e.tag){case 1:return Oa(e.type)&&G6(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ip(),mn(Ia),mn(ia),jA(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return UA(e),null;case 13:if(mn(wn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Ge(340));rp()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return mn(wn),null;case 4:return ip(),null;case 10:return RA(e.type._context),null;case 22:case 23:return JA(),null;case 24:return null;default:return null}}var R2=!1,Yr=!1,AQ=typeof WeakSet=="function"?WeakSet:Set,nt=null;function O0(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tn(t,e,r)}else n.current=null}function $7(t,e,n){try{n()}catch(r){Tn(t,e,r)}}var lF=!1;function _Q(t,e){if(w7=U6,t=lR(),MA(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,c=-1,h=0,b=0,v=t,E=null;t:for(;;){for(var C;v!==n||a!==0&&v.nodeType!==3||(o=s+a),v!==i||r!==0&&v.nodeType!==3||(c=s+r),v.nodeType===3&&(s+=v.nodeValue.length),(C=v.firstChild)!==null;)E=v,v=C;for(;;){if(v===t)break t;if(E===n&&++h===a&&(o=s),E===i&&++b===r&&(c=s),(C=v.nextSibling)!==null)break;v=E,E=v.parentNode}v=C}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(E7={focusedElem:t,selectionRange:n},U6=!1,nt=e;nt!==null;)if(e=nt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,nt=t;else for(;nt!==null;){e=nt;try{var F=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(F!==null){var T=F.memoizedProps,P=F.memoizedState,D=e.stateNode,M=D.getSnapshotBeforeUpdate(e.elementType===e.type?T:fs(e.type,T),P);D.__reactInternalSnapshotBeforeUpdate=M}break;case 3:var O=e.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ge(163))}}catch(k){Tn(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,nt=t;break}nt=e.return}return F=lF,lF=!1,F}function jy(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&t)===t){var i=a.destroy;a.destroy=void 0,i!==void 0&&$7(e,n,i)}a=a.next}while(a!==r)}}function v8(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function L7(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function sN(t){var e=t.alternate;e!==null&&(t.alternate=null,sN(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ho],delete e[gm],delete e[C7],delete e[sQ],delete e[oQ])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function oN(t){return t.tag===5||t.tag===3||t.tag===4}function uF(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||oN(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function U7(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=z6));else if(r!==4&&(t=t.child,t!==null))for(U7(t,e,n),t=t.sibling;t!==null;)U7(t,e,n),t=t.sibling}function j7(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(j7(t,e,n),t=t.sibling;t!==null;)j7(t,e,n),t=t.sibling}var kr=null,vs=!1;function tl(t,e,n){for(n=n.child;n!==null;)cN(t,e,n),n=n.sibling}function cN(t,e,n){if(go&&typeof go.onCommitFiberUnmount=="function")try{go.onCommitFiberUnmount(d8,n)}catch{}switch(n.tag){case 5:Yr||O0(n,e);case 6:var r=kr,a=vs;kr=null,tl(t,e,n),kr=r,vs=a,kr!==null&&(vs?(t=kr,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):kr.removeChild(n.stateNode));break;case 18:kr!==null&&(vs?(t=kr,n=n.stateNode,t.nodeType===8?P5(t.parentNode,n):t.nodeType===1&&P5(t,n),hm(t)):P5(kr,n.stateNode));break;case 4:r=kr,a=vs,kr=n.stateNode.containerInfo,vs=!0,tl(t,e,n),kr=r,vs=a;break;case 0:case 11:case 14:case 15:if(!Yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&$7(n,e,s),a=a.next}while(a!==r)}tl(t,e,n);break;case 1:if(!Yr&&(O0(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Tn(n,e,o)}tl(t,e,n);break;case 21:tl(t,e,n);break;case 22:n.mode&1?(Yr=(r=Yr)||n.memoizedState!==null,tl(t,e,n),Yr=r):tl(t,e,n);break;default:tl(t,e,n)}}function fF(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new AQ),e.forEach(function(r){var a=IQ.bind(null,t,r);n.has(r)||(n.add(r),r.then(a,a))})}}function ns(t,e){var n=e.deletions;if(n!==null)for(var r=0;ra&&(a=s),r&=~i}if(r=a,r=jn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*BQ(r/1960))-r,10t?16:t,Wl===null)var r=!1;else{if(t=Wl,Wl=null,ng=0,Pt&6)throw Error(Ge(331));var a=Pt;for(Pt|=4,nt=t.current;nt!==null;){var i=nt,s=i.child;if(nt.flags&16){var o=i.deletions;if(o!==null){for(var c=0;cjn()-QA?Uf(t,0):ZA|=n),Pa(t,e)}function mN(t,e){e===0&&(t.mode&1?(e=S2,S2<<=1,!(S2&130023424)&&(S2=4194304)):e=1);var n=ga();t=Fc(t,e),t!==null&&(kb(t,e,n),Pa(t,n))}function kQ(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),mN(t,n)}function IQ(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Ge(314))}r!==null&&r.delete(e),mN(t,n)}var bN;bN=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Ia.current)Da=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Da=!1,vQ(t,e,n);Da=!!(t.flags&131072)}else Da=!1,xn&&e.flags&1048576&&vR(e,W6,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;t6(t,e),t=e.pendingProps;var a=np(e,ia.current);J0(e,n),a=zA(null,e,r,t,a,n);var i=GA();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Oa(r)?(i=!0,V6(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,$A(e),a.updater=g8,e.stateNode=a,a._reactInternals=e,D7(e,r,t,n),e=O7(null,e,r,!0,i,n)):(e.tag=0,xn&&i&&DA(e),da(null,e,a,n),e=e.child),e;case 16:r=e.elementType;e:{switch(t6(t,e),t=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=PQ(r),t=fs(r,t),a){case 0:e=I7(null,e,r,t,n);break e;case 1:e=sF(null,e,r,t,n);break e;case 11:e=aF(null,e,r,t,n);break e;case 14:e=iF(null,e,r,fs(r.type,t),n);break e}throw Error(Ge(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:fs(r,a),I7(t,e,r,a,n);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:fs(r,a),sF(t,e,r,a,n);case 3:e:{if(eN(e),t===null)throw Error(Ge(387));r=e.pendingProps,i=e.memoizedState,a=i.element,_R(t,e),Q6(e,r,null,n);var s=e.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=sp(Error(Ge(423)),e),e=oF(t,e,r,n,a);break e}else if(r!==a){a=sp(Error(Ge(424)),e),e=oF(t,e,r,n,a);break e}else for(ti=Yl(e.stateNode.containerInfo.firstChild),ii=e,xn=!0,Es=null,n=TR(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rp(),r===a){e=Mc(t,e,n);break e}da(t,e,r,n)}e=e.child}return e;case 5:return FR(e),t===null&&T7(e),r=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,s=a.children,A7(r,a)?s=null:i!==null&&A7(r,i)&&(e.flags|=32),YR(t,e),da(t,e,s,n),e.child;case 6:return t===null&&T7(e),null;case 13:return tN(t,e,n);case 4:return LA(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=ap(e,null,r,n):da(t,e,r,n),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:fs(r,a),aF(t,e,r,a,n);case 7:return da(t,e,e.pendingProps,n),e.child;case 8:return da(t,e,e.pendingProps.children,n),e.child;case 12:return da(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,s=a.value,fn(K6,r._currentValue),r._currentValue=s,i!==null)if(Ms(i.value,s)){if(i.children===a.children&&!Ia.current){e=Mc(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var c=o.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Ec(-1,n&-n),c.tag=2;var h=i.updateQueue;if(h!==null){h=h.shared;var b=h.pending;b===null?c.next=c:(c.next=b.next,b.next=c),h.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),F7(i.return,n,e),o.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Ge(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),F7(s,n,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}da(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,J0(e,n),a=Ki(a),r=r(a),e.flags|=1,da(t,e,r,n),e.child;case 14:return r=e.type,a=fs(r,e.pendingProps),a=fs(r.type,a),iF(t,e,r,a,n);case 15:return XR(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:fs(r,a),t6(t,e),e.tag=1,Oa(r)?(t=!0,V6(e)):t=!1,J0(e,n),BR(e,r,a),D7(e,r,a,n),O7(null,e,r,!0,t,n);case 19:return nN(t,e,n);case 22:return JR(t,e,n)}throw Error(Ge(156,e.tag))};function gN(t,e){return GP(t,e)}function OQ(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ni(t,e,n,r){return new OQ(t,e,n,r)}function e_(t){return t=t.prototype,!(!t||!t.isReactComponent)}function PQ(t){if(typeof t=="function")return e_(t)?1:0;if(t!=null){if(t=t.$$typeof,t===xA)return 11;if(t===vA)return 14}return 2}function ru(t,e){var n=t.alternate;return n===null?(n=Ni(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function a6(t,e,n,r,a,i){var s=2;if(r=t,typeof t=="function")e_(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case C0:return jf(n.children,a,i,e);case gA:s=8,a|=8;break;case t7:return t=Ni(12,n,e,a|2),t.elementType=t7,t.lanes=i,t;case n7:return t=Ni(13,n,e,a),t.elementType=n7,t.lanes=i,t;case r7:return t=Ni(19,n,e,a),t.elementType=r7,t.lanes=i,t;case SP:return E8(n,a,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case CP:s=10;break e;case BP:s=9;break e;case xA:s=11;break e;case vA:s=14;break e;case bl:s=16,r=null;break e}throw Error(Ge(130,t==null?t:typeof t,""))}return e=Ni(s,n,e,a),e.elementType=t,e.type=r,e.lanes=i,e}function jf(t,e,n,r){return t=Ni(7,t,r,e),t.lanes=n,t}function E8(t,e,n,r){return t=Ni(22,t,r,e),t.elementType=SP,t.lanes=n,t.stateNode={isHidden:!1},t}function z5(t,e,n){return t=Ni(6,t,null,e),t.lanes=n,t}function G5(t,e,n){return e=Ni(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function RQ(t,e,n,r,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_5(0),this.expirationTimes=_5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_5(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function t_(t,e,n,r,a,i,s,o,c){return t=new RQ(t,e,n,o,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Ni(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$A(i),t}function NQ(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(EN)}catch(t){console.error(t)}}EN(),vP.exports=li;var i_=vP.exports;const AN=md(i_),HQ=cP({__proto__:null,default:AN},[i_]);var _N,xF=i_;_N=xF.createRoot,xF.hydrateRoot;/** + * @remix-run/router v1.13.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Fn(){return Fn=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function du(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function GQ(){return Math.random().toString(36).substr(2,8)}function wF(t,e){return{usr:t.state,key:t.key,idx:e}}function Cm(t,e,n,r){return n===void 0&&(n=null),Fn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Io(e):e,{state:n,key:e&&e.key||r||GQ()})}function Rb(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Io(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function VQ(t,e,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o=$n.Pop,c=null,h=b();h==null&&(h=0,s.replaceState(Fn({},s.state,{idx:h}),""));function b(){return(s.state||{idx:null}).idx}function v(){o=$n.Pop;let P=b(),D=P==null?null:P-h;h=P,c&&c({action:o,location:T.location,delta:D})}function E(P,D){o=$n.Push;let M=Cm(T.location,P,D);n&&n(M,P),h=b()+1;let O=wF(M,h),k=T.createHref(M);try{s.pushState(O,"",k)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(k)}i&&c&&c({action:o,location:T.location,delta:1})}function C(P,D){o=$n.Replace;let M=Cm(T.location,P,D);n&&n(M,P),h=b();let O=wF(M,h),k=T.createHref(M);s.replaceState(O,"",k),i&&c&&c({action:o,location:T.location,delta:0})}function F(P){let D=a.location.origin!=="null"?a.location.origin:a.location.href,M=typeof P=="string"?P:Rb(P);return Ft(D,"No window.location.(origin|href) available to create URL for href: "+M),new URL(M,D)}let T={get action(){return o},get location(){return t(a,s)},listen(P){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(vF,v),c=P,()=>{a.removeEventListener(vF,v),c=null}},createHref(P){return e(a,P)},createURL:F,encodeLocation(P){let D=F(P);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:E,replace:C,go(P){return s.go(P)}};return T}var Ln;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ln||(Ln={}));const qQ=new Set(["lazy","caseSensitive","path","id","index","children"]);function WQ(t){return t.index===!0}function q7(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((a,i)=>{let s=[...n,i],o=typeof a.id=="string"?a.id:s.join("-");if(Ft(a.index!==!0||!a.children,"Cannot specify children on an index route"),Ft(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),WQ(a)){let c=Fn({},a,e(a),{id:o});return r[o]=c,c}else{let c=Fn({},a,e(a),{id:o,children:void 0});return r[o]=c,a.children&&(c.children=q7(a.children,e,s,r)),c}})}function R0(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?Io(e):e,a=Nb(r.pathname||"/",n);if(a==null)return null;let i=CN(t);ZQ(i);let s=null;for(let o=0;s==null&&o{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(Ft(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let h=au([r,c.relativePath]),b=n.concat(c);i.children&&i.children.length>0&&(Ft(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),CN(i.children,e,b,h)),!(i.path==null&&!i.index)&&e.push({path:h,score:nX(h,i.index),routesMeta:b})};return t.forEach((i,s)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))a(i,s);else for(let c of BN(i.path))a(i,s,c)}),e}function BN(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=BN(r.join("/")),o=[];return o.push(...s.map(c=>c===""?i:[i,c].join("/"))),a&&o.push(...s),o.map(c=>t.startsWith("/")&&c===""?"/":c)}function ZQ(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:rX(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const QQ=/^:\w+$/,XQ=3,JQ=2,YQ=1,eX=10,tX=-2,EF=t=>t==="*";function nX(t,e){let n=t.split("/"),r=n.length;return n.some(EF)&&(r+=tX),e&&(r+=JQ),n.filter(a=>!EF(a)).reduce((a,i)=>a+(QQ.test(i)?XQ:i===""?YQ:eX),r)}function rX(t,e){return t.length===e.length&&t.slice(0,-1).every((r,a)=>r===e[a])?t[t.length-1]-e[e.length-1]:0}function aX(t,e){let{routesMeta:n}=t,r={},a="/",i=[];for(let s=0;s{let{paramName:E,isOptional:C}=b;if(E==="*"){let T=o[v]||"";s=i.slice(0,i.length-T.length).replace(/(.)\/+$/,"$1")}const F=o[v];return C&&!F?h[E]=void 0:h[E]=cX(F||"",E),h},{}),pathname:i,pathnameBase:s,pattern:t}}function sX(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),du(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function oX(t){try{return decodeURI(t)}catch(e){return du(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function cX(t,e){try{return decodeURIComponent(t)}catch(n){return du(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function Nb(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function lX(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:a=""}=typeof t=="string"?Io(t):t;return{pathname:n?n.startsWith("/")?n:uX(n,e):e,search:dX(r),hash:hX(a)}}function uX(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function V5(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function SN(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function TN(t){return SN(t).map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function FN(t,e,n,r){r===void 0&&(r=!1);let a;typeof t=="string"?a=Io(t):(a=Fn({},t),Ft(!a.pathname||!a.pathname.includes("?"),V5("?","pathname","search",a)),Ft(!a.pathname||!a.pathname.includes("#"),V5("#","pathname","hash",a)),Ft(!a.search||!a.search.includes("#"),V5("#","search","hash",a)));let i=t===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=n;else if(r){let v=e[e.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let E=s.split("/");for(;E[0]==="..";)E.shift(),v.pop();a.pathname=E.join("/")}o="/"+v.join("/")}else{let v=e.length-1;if(s.startsWith("..")){let E=s.split("/");for(;E[0]==="..";)E.shift(),v-=1;a.pathname=E.join("/")}o=v>=0?e[v]:"/"}let c=lX(a,o),h=s&&s!=="/"&&s.endsWith("/"),b=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(h||b)&&(c.pathname+="/"),c}const au=t=>t.join("/").replace(/\/\/+/g,"/"),fX=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),dX=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,hX=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class s_{constructor(e,n,r,a){a===void 0&&(a=!1),this.status=e,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function MN(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const DN=["post","put","patch","delete"],pX=new Set(DN),yX=["get",...DN],mX=new Set(yX),bX=new Set([301,302,303,307,308]),gX=new Set([307,308]),q5={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xX={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},M1={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},kN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vX=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),IN="remix-router-transitions";function wX(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;Ft(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(t.mapRouteProperties)a=t.mapRouteProperties;else if(t.detectErrorBoundary){let ce=t.detectErrorBoundary;a=de=>({hasErrorBoundary:ce(de)})}else a=vX;let i={},s=q7(t.routes,a,void 0,i),o,c=t.basename||"/",h=Fn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),b=null,v=new Set,E=null,C=null,F=null,T=t.hydrationData!=null,P=R0(s,t.history.location,c),D=null;if(P==null){let ce=Fi(404,{pathname:t.history.location.pathname}),{matches:de,route:Ce}=MF(s);P=de,D={[Ce.id]:ce}}let M=!P.some(ce=>ce.route.lazy)&&(!P.some(ce=>ce.route.loader)||t.hydrationData!=null),O,k={historyAction:t.history.action,location:t.history.location,matches:P,initialized:M,navigation:q5,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||D,fetchers:new Map,blockers:new Map},U=$n.Pop,V=!1,Y,L=!1,X=new Map,B=null,u=!1,d=!1,p=[],l=[],y=new Map,g=0,w=-1,x=new Map,f=new Set,m=new Map,_=new Map,A=new Set,S=new Map,$=new Map,q=!1;function I(){if(b=t.history.listen(ce=>{let{action:de,location:Ce,delta:_e}=ce;if(q){q=!1;return}du($.size===0||_e!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Ae=at({currentLocation:k.location,nextLocation:Ce,historyAction:de});if(Ae&&_e!=null){q=!0,t.history.go(_e*-1),Oe(Ae,{state:"blocked",location:Ce,proceed(){Oe(Ae,{state:"proceeding",proceed:void 0,reset:void 0,location:Ce}),t.history.go(_e)},reset(){let Xe=new Map(k.blockers);Xe.set(Ae,M1),Q({blockers:Xe})}});return}return j(de,Ce)}),n){kX(e,X);let ce=()=>IX(e,X);e.addEventListener("pagehide",ce),B=()=>e.removeEventListener("pagehide",ce)}return k.initialized||j($n.Pop,k.location),O}function K(){b&&b(),B&&B(),v.clear(),Y&&Y.abort(),k.fetchers.forEach((ce,de)=>me(de)),k.blockers.forEach((ce,de)=>$e(de))}function z(ce){return v.add(ce),()=>v.delete(ce)}function Q(ce,de){de===void 0&&(de={}),k=Fn({},k,ce);let Ce=[],_e=[];h.v7_fetcherPersist&&k.fetchers.forEach((Ae,Xe)=>{Ae.state==="idle"&&(A.has(Xe)?_e.push(Xe):Ce.push(Xe))}),[...v].forEach(Ae=>Ae(k,{deletedFetchers:_e,unstable_viewTransitionOpts:de.viewTransitionOpts,unstable_flushSync:de.flushSync===!0})),h.v7_fetcherPersist&&(Ce.forEach(Ae=>k.fetchers.delete(Ae)),_e.forEach(Ae=>me(Ae)))}function ue(ce,de,Ce){var _e,Ae;let{flushSync:Xe}=Ce===void 0?{}:Ce,Me=k.actionData!=null&&k.navigation.formMethod!=null&&ws(k.navigation.formMethod)&&k.navigation.state==="loading"&&((_e=ce.state)==null?void 0:_e._isRedirect)!==!0,Be;de.actionData?Object.keys(de.actionData).length>0?Be=de.actionData:Be=null:Me?Be=k.actionData:Be=null;let ze=de.loaderData?FF(k.loaderData,de.loaderData,de.matches||[],de.errors):k.loaderData,Pe=k.blockers;Pe.size>0&&(Pe=new Map(Pe),Pe.forEach((Ue,De)=>Pe.set(De,M1)));let Ie=V===!0||k.navigation.formMethod!=null&&ws(k.navigation.formMethod)&&((Ae=ce.state)==null?void 0:Ae._isRedirect)!==!0;o&&(s=o,o=void 0),u||U===$n.Pop||(U===$n.Push?t.history.push(ce,ce.state):U===$n.Replace&&t.history.replace(ce,ce.state));let Ye;if(U===$n.Pop){let Ue=X.get(k.location.pathname);Ue&&Ue.has(ce.pathname)?Ye={currentLocation:k.location,nextLocation:ce}:X.has(ce.pathname)&&(Ye={currentLocation:ce,nextLocation:k.location})}else if(L){let Ue=X.get(k.location.pathname);Ue?Ue.add(ce.pathname):(Ue=new Set([ce.pathname]),X.set(k.location.pathname,Ue)),Ye={currentLocation:k.location,nextLocation:ce}}Q(Fn({},de,{actionData:Be,loaderData:ze,historyAction:U,location:ce,initialized:!0,navigation:q5,revalidation:"idle",restoreScrollPosition:He(ce,de.matches||k.matches),preventScrollReset:Ie,blockers:Pe}),{viewTransitionOpts:Ye,flushSync:Xe===!0}),U=$n.Pop,V=!1,L=!1,u=!1,d=!1,p=[],l=[]}async function fe(ce,de){if(typeof ce=="number"){t.history.go(ce);return}let Ce=W7(k.location,k.matches,c,h.v7_prependBasename,ce,de==null?void 0:de.fromRouteId,de==null?void 0:de.relative),{path:_e,submission:Ae,error:Xe}=AF(h.v7_normalizeFormMethod,!1,Ce,de),Me=k.location,Be=Cm(k.location,_e,de&&de.state);Be=Fn({},Be,t.history.encodeLocation(Be));let ze=de&&de.replace!=null?de.replace:void 0,Pe=$n.Push;ze===!0?Pe=$n.Replace:ze===!1||Ae!=null&&ws(Ae.formMethod)&&Ae.formAction===k.location.pathname+k.location.search&&(Pe=$n.Replace);let Ie=de&&"preventScrollReset"in de?de.preventScrollReset===!0:void 0,Ye=(de&&de.unstable_flushSync)===!0,Ue=at({currentLocation:Me,nextLocation:Be,historyAction:Pe});if(Ue){Oe(Ue,{state:"blocked",location:Be,proceed(){Oe(Ue,{state:"proceeding",proceed:void 0,reset:void 0,location:Be}),fe(ce,de)},reset(){let De=new Map(k.blockers);De.set(Ue,M1),Q({blockers:De})}});return}return await j(Pe,Be,{submission:Ae,pendingError:Xe,preventScrollReset:Ie,replace:de&&de.replace,enableViewTransition:de&&de.unstable_viewTransition,flushSync:Ye})}function G(){if(pe(),Q({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){j(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}j(U||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function j(ce,de,Ce){Y&&Y.abort(),Y=null,U=ce,u=(Ce&&Ce.startUninterruptedRevalidation)===!0,Je(k.location,k.matches),V=(Ce&&Ce.preventScrollReset)===!0,L=(Ce&&Ce.enableViewTransition)===!0;let _e=o||s,Ae=Ce&&Ce.overrideNavigation,Xe=R0(_e,de,c),Me=(Ce&&Ce.flushSync)===!0;if(!Xe){let De=Fi(404,{pathname:de.pathname}),{matches:ot,route:We}=MF(_e);qe(),ue(de,{matches:ot,loaderData:{},errors:{[We.id]:De}},{flushSync:Me});return}if(k.initialized&&!d&&BX(k.location,de)&&!(Ce&&Ce.submission&&ws(Ce.submission.formMethod))){ue(de,{matches:Xe},{flushSync:Me});return}Y=new AbortController;let Be=k1(t.history,de,Y.signal,Ce&&Ce.submission),ze,Pe;if(Ce&&Ce.pendingError)Pe={[Gy(Xe).route.id]:Ce.pendingError};else if(Ce&&Ce.submission&&ws(Ce.submission.formMethod)){let De=await ne(Be,de,Ce.submission,Xe,{replace:Ce.replace,flushSync:Me});if(De.shortCircuited)return;ze=De.pendingActionData,Pe=De.pendingActionError,Ae=W5(de,Ce.submission),Me=!1,Be=new Request(Be.url,{signal:Be.signal})}let{shortCircuited:Ie,loaderData:Ye,errors:Ue}=await se(Be,de,Xe,Ae,Ce&&Ce.submission,Ce&&Ce.fetcherSubmission,Ce&&Ce.replace,Me,ze,Pe);Ie||(Y=null,ue(de,Fn({matches:Xe},ze?{actionData:ze}:{},{loaderData:Ye,errors:Ue})))}async function ne(ce,de,Ce,_e,Ae){Ae===void 0&&(Ae={}),pe();let Xe=MX(de,Ce);Q({navigation:Xe},{flushSync:Ae.flushSync===!0});let Me,Be=Z7(_e,de);if(!Be.route.action&&!Be.route.lazy)Me={type:Ln.error,error:Fi(405,{method:ce.method,pathname:de.pathname,routeId:Be.route.id})};else if(Me=await D1("action",ce,Be,_e,i,a,c),ce.signal.aborted)return{shortCircuited:!0};if(eh(Me)){let ze;return Ae&&Ae.replace!=null?ze=Ae.replace:ze=Me.location===k.location.pathname+k.location.search,await Z(k,Me,{submission:Ce,replace:ze}),{shortCircuited:!0}}if(Vy(Me)){let ze=Gy(_e,Be.route.id);return(Ae&&Ae.replace)!==!0&&(U=$n.Push),{pendingActionData:{},pendingActionError:{[ze.route.id]:Me.error}}}if(af(Me))throw Fi(400,{type:"defer-action"});return{pendingActionData:{[Be.route.id]:Me.data}}}async function se(ce,de,Ce,_e,Ae,Xe,Me,Be,ze,Pe){let Ie=_e||W5(de,Ae),Ye=Ae||Xe||IF(Ie),Ue=o||s,[De,ot]=_F(t.history,k,Ce,Ye,de,d,p,l,A,m,f,Ue,c,ze,Pe);if(qe(ct=>!(Ce&&Ce.some(Tt=>Tt.route.id===ct))||De&&De.some(Tt=>Tt.route.id===ct)),w=++g,De.length===0&&ot.length===0){let ct=Se();return ue(de,Fn({matches:Ce,loaderData:{},errors:Pe||null},ze?{actionData:ze}:{},ct?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Be}),{shortCircuited:!0}}if(!u){ot.forEach(Tt=>{let mt=k.fetchers.get(Tt.key),Nt=I1(void 0,mt?mt.data:void 0);k.fetchers.set(Tt.key,Nt)});let ct=ze||k.actionData;Q(Fn({navigation:Ie},ct?Object.keys(ct).length===0?{actionData:null}:{actionData:ct}:{},ot.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Be})}ot.forEach(ct=>{y.has(ct.key)&&ye(ct.key),ct.controller&&y.set(ct.key,ct.controller)});let We=()=>ot.forEach(ct=>ye(ct.key));Y&&Y.signal.addEventListener("abort",We);let{results:je,loaderResults:vt,fetcherResults:Ke}=await ae(k.matches,Ce,De,ot,ce);if(ce.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",We),ot.forEach(ct=>y.delete(ct.key));let Ne=DF(je);if(Ne){if(Ne.idx>=De.length){let ct=ot[Ne.idx-De.length].key;f.add(ct)}return await Z(k,Ne.result,{replace:Me}),{shortCircuited:!0}}let{loaderData:ht,errors:pt}=TF(k,Ce,De,vt,Pe,ot,Ke,S);S.forEach((ct,Tt)=>{ct.subscribe(mt=>{(mt||ct.done)&&S.delete(Tt)})});let yt=Se(),Qt=Ee(w),Gt=yt||Qt||ot.length>0;return Fn({loaderData:ht,errors:pt},Gt?{fetchers:new Map(k.fetchers)}:{})}function J(ce,de,Ce,_e){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");y.has(ce)&&ye(ce);let Ae=(_e&&_e.unstable_flushSync)===!0,Xe=o||s,Me=W7(k.location,k.matches,c,h.v7_prependBasename,Ce,de,_e==null?void 0:_e.relative),Be=R0(Xe,Me,c);if(!Be){ee(ce,de,Fi(404,{pathname:Me}),{flushSync:Ae});return}let{path:ze,submission:Pe,error:Ie}=AF(h.v7_normalizeFormMethod,!0,Me,_e);if(Ie){ee(ce,de,Ie,{flushSync:Ae});return}let Ye=Z7(Be,ze);if(V=(_e&&_e.preventScrollReset)===!0,Pe&&ws(Pe.formMethod)){R(ce,de,ze,Ye,Be,Ae,Pe);return}m.set(ce,{routeId:de,path:ze}),N(ce,de,ze,Ye,Be,Ae,Pe)}async function R(ce,de,Ce,_e,Ae,Xe,Me){if(pe(),m.delete(ce),!_e.route.action&&!_e.route.lazy){let mt=Fi(405,{method:Me.formMethod,pathname:Ce,routeId:de});ee(ce,de,mt,{flushSync:Xe});return}let Be=k.fetchers.get(ce);W(ce,DX(Me,Be),{flushSync:Xe});let ze=new AbortController,Pe=k1(t.history,Ce,ze.signal,Me);y.set(ce,ze);let Ie=g,Ye=await D1("action",Pe,_e,Ae,i,a,c);if(Pe.signal.aborted){y.get(ce)===ze&&y.delete(ce);return}if(A.has(ce)){W(ce,hl(void 0));return}if(eh(Ye))if(y.delete(ce),w>Ie){W(ce,hl(void 0));return}else return f.add(ce),W(ce,I1(Me)),Z(k,Ye,{fetcherSubmission:Me});if(Vy(Ye)){ee(ce,de,Ye.error);return}if(af(Ye))throw Fi(400,{type:"defer-action"});let Ue=k.navigation.location||k.location,De=k1(t.history,Ue,ze.signal),ot=o||s,We=k.navigation.state!=="idle"?R0(ot,k.navigation.location,c):k.matches;Ft(We,"Didn't find any matches after fetcher action");let je=++g;x.set(ce,je);let vt=I1(Me,Ye.data);k.fetchers.set(ce,vt);let[Ke,Ne]=_F(t.history,k,We,Me,Ue,d,p,l,A,m,f,ot,c,{[_e.route.id]:Ye.data},void 0);Ne.filter(mt=>mt.key!==ce).forEach(mt=>{let Nt=mt.key,Cn=k.fetchers.get(Nt),Pn=I1(void 0,Cn?Cn.data:void 0);k.fetchers.set(Nt,Pn),y.has(Nt)&&ye(Nt),mt.controller&&y.set(Nt,mt.controller)}),Q({fetchers:new Map(k.fetchers)});let ht=()=>Ne.forEach(mt=>ye(mt.key));ze.signal.addEventListener("abort",ht);let{results:pt,loaderResults:yt,fetcherResults:Qt}=await ae(k.matches,We,Ke,Ne,De);if(ze.signal.aborted)return;ze.signal.removeEventListener("abort",ht),x.delete(ce),y.delete(ce),Ne.forEach(mt=>y.delete(mt.key));let Gt=DF(pt);if(Gt){if(Gt.idx>=Ke.length){let mt=Ne[Gt.idx-Ke.length].key;f.add(mt)}return Z(k,Gt.result)}let{loaderData:ct,errors:Tt}=TF(k,k.matches,Ke,yt,void 0,Ne,Qt,S);if(k.fetchers.has(ce)){let mt=hl(Ye.data);k.fetchers.set(ce,mt)}Ee(je),k.navigation.state==="loading"&&je>w?(Ft(U,"Expected pending action"),Y&&Y.abort(),ue(k.navigation.location,{matches:We,loaderData:ct,errors:Tt,fetchers:new Map(k.fetchers)})):(Q({errors:Tt,loaderData:FF(k.loaderData,ct,We,Tt),fetchers:new Map(k.fetchers)}),d=!1)}async function N(ce,de,Ce,_e,Ae,Xe,Me){let Be=k.fetchers.get(ce);W(ce,I1(Me,Be?Be.data:void 0),{flushSync:Xe});let ze=new AbortController,Pe=k1(t.history,Ce,ze.signal);y.set(ce,ze);let Ie=g,Ye=await D1("loader",Pe,_e,Ae,i,a,c);if(af(Ye)&&(Ye=await RN(Ye,Pe.signal,!0)||Ye),y.get(ce)===ze&&y.delete(ce),!Pe.signal.aborted){if(A.has(ce)){W(ce,hl(void 0));return}if(eh(Ye))if(w>Ie){W(ce,hl(void 0));return}else{f.add(ce),await Z(k,Ye);return}if(Vy(Ye)){ee(ce,de,Ye.error);return}Ft(!af(Ye),"Unhandled fetcher deferred data"),W(ce,hl(Ye.data))}}async function Z(ce,de,Ce){let{submission:_e,fetcherSubmission:Ae,replace:Xe}=Ce===void 0?{}:Ce;de.revalidate&&(d=!0);let Me=Cm(ce.location,de.location,{_isRedirect:!0});if(Ft(Me,"Expected a location on the redirect navigation"),n){let Ue=!1;if(de.reloadDocument)Ue=!0;else if(kN.test(de.location)){const De=t.history.createURL(de.location);Ue=De.origin!==e.location.origin||Nb(De.pathname,c)==null}if(Ue){Xe?e.location.replace(de.location):e.location.assign(de.location);return}}Y=null;let Be=Xe===!0?$n.Replace:$n.Push,{formMethod:ze,formAction:Pe,formEncType:Ie}=ce.navigation;!_e&&!Ae&&ze&&Pe&&Ie&&(_e=IF(ce.navigation));let Ye=_e||Ae;if(gX.has(de.status)&&Ye&&ws(Ye.formMethod))await j(Be,Me,{submission:Fn({},Ye,{formAction:de.location}),preventScrollReset:V});else{let Ue=W5(Me,_e);await j(Be,Me,{overrideNavigation:Ue,fetcherSubmission:Ae,preventScrollReset:V})}}async function ae(ce,de,Ce,_e,Ae){let Xe=await Promise.all([...Ce.map(ze=>D1("loader",Ae,ze,de,i,a,c)),..._e.map(ze=>ze.matches&&ze.match&&ze.controller?D1("loader",k1(t.history,ze.path,ze.controller.signal),ze.match,ze.matches,i,a,c):{type:Ln.error,error:Fi(404,{pathname:ze.path})})]),Me=Xe.slice(0,Ce.length),Be=Xe.slice(Ce.length);return await Promise.all([kF(ce,Ce,Me,Me.map(()=>Ae.signal),!1,k.loaderData),kF(ce,_e.map(ze=>ze.match),Be,_e.map(ze=>ze.controller?ze.controller.signal:null),!0)]),{results:Xe,loaderResults:Me,fetcherResults:Be}}function pe(){d=!0,p.push(...qe()),m.forEach((ce,de)=>{y.has(de)&&(l.push(de),ye(de))})}function W(ce,de,Ce){Ce===void 0&&(Ce={}),k.fetchers.set(ce,de),Q({fetchers:new Map(k.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function ee(ce,de,Ce,_e){_e===void 0&&(_e={});let Ae=Gy(k.matches,de);me(ce),Q({errors:{[Ae.route.id]:Ce},fetchers:new Map(k.fetchers)},{flushSync:(_e&&_e.flushSync)===!0})}function ie(ce){return h.v7_fetcherPersist&&(_.set(ce,(_.get(ce)||0)+1),A.has(ce)&&A.delete(ce)),k.fetchers.get(ce)||xX}function me(ce){let de=k.fetchers.get(ce);y.has(ce)&&!(de&&de.state==="loading"&&x.has(ce))&&ye(ce),m.delete(ce),x.delete(ce),f.delete(ce),A.delete(ce),k.fetchers.delete(ce)}function be(ce){if(h.v7_fetcherPersist){let de=(_.get(ce)||0)-1;de<=0?(_.delete(ce),A.add(ce)):_.set(ce,de)}else me(ce);Q({fetchers:new Map(k.fetchers)})}function ye(ce){let de=y.get(ce);Ft(de,"Expected fetch controller: "+ce),de.abort(),y.delete(ce)}function Fe(ce){for(let de of ce){let Ce=ie(de),_e=hl(Ce.data);k.fetchers.set(de,_e)}}function Se(){let ce=[],de=!1;for(let Ce of f){let _e=k.fetchers.get(Ce);Ft(_e,"Expected fetcher: "+Ce),_e.state==="loading"&&(f.delete(Ce),ce.push(Ce),de=!0)}return Fe(ce),de}function Ee(ce){let de=[];for(let[Ce,_e]of x)if(_e0}function Qe(ce,de){let Ce=k.blockers.get(ce)||M1;return $.get(ce)!==de&&$.set(ce,de),Ce}function $e(ce){k.blockers.delete(ce),$.delete(ce)}function Oe(ce,de){let Ce=k.blockers.get(ce)||M1;Ft(Ce.state==="unblocked"&&de.state==="blocked"||Ce.state==="blocked"&&de.state==="blocked"||Ce.state==="blocked"&&de.state==="proceeding"||Ce.state==="blocked"&&de.state==="unblocked"||Ce.state==="proceeding"&&de.state==="unblocked","Invalid blocker state transition: "+Ce.state+" -> "+de.state);let _e=new Map(k.blockers);_e.set(ce,de),Q({blockers:_e})}function at(ce){let{currentLocation:de,nextLocation:Ce,historyAction:_e}=ce;if($.size===0)return;$.size>1&&du(!1,"A router only supports one blocker at a time");let Ae=Array.from($.entries()),[Xe,Me]=Ae[Ae.length-1],Be=k.blockers.get(Xe);if(!(Be&&Be.state==="proceeding")&&Me({currentLocation:de,nextLocation:Ce,historyAction:_e}))return Xe}function qe(ce){let de=[];return S.forEach((Ce,_e)=>{(!ce||ce(_e))&&(Ce.cancel(),de.push(_e),S.delete(_e))}),de}function Le(ce,de,Ce){if(E=ce,F=de,C=Ce||null,!T&&k.navigation===q5){T=!0;let _e=He(k.location,k.matches);_e!=null&&Q({restoreScrollPosition:_e})}return()=>{E=null,F=null,C=null}}function xt(ce,de){return C&&C(ce,de.map(_e=>KQ(_e,k.loaderData)))||ce.key}function Je(ce,de){if(E&&F){let Ce=xt(ce,de);E[Ce]=F()}}function He(ce,de){if(E){let Ce=xt(ce,de),_e=E[Ce];if(typeof _e=="number")return _e}return null}function At(ce){i={},o=q7(ce,a,void 0,i)}return O={get basename(){return c},get state(){return k},get routes(){return s},get window(){return e},initialize:I,subscribe:z,enableScrollRestoration:Le,navigate:fe,fetch:J,revalidate:G,createHref:ce=>t.history.createHref(ce),encodeLocation:ce=>t.history.encodeLocation(ce),getFetcher:ie,deleteFetcher:be,dispose:K,getBlocker:Qe,deleteBlocker:$e,_internalFetchControllers:y,_internalActiveDeferreds:S,_internalSetRoutes:At},O}function EX(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function W7(t,e,n,r,a,i,s){let o,c;if(i){o=[];for(let b of e)if(o.push(b),b.route.id===i){c=b;break}}else o=e,c=e[e.length-1];let h=FN(a||".",TN(o),Nb(t.pathname,n)||t.pathname,s==="path");return a==null&&(h.search=t.search,h.hash=t.hash),(a==null||a===""||a===".")&&c&&c.route.index&&!o_(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(h.pathname=h.pathname==="/"?n:au([n,h.pathname])),Rb(h)}function AF(t,e,n,r){if(!r||!EX(r))return{path:n};if(r.formMethod&&!FX(r.formMethod))return{path:n,error:Fi(405,{method:r.formMethod})};let a=()=>({path:n,error:Fi(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=t?i.toUpperCase():i.toLowerCase(),o=PN(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ws(s))return a();let E=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((C,F)=>{let[T,P]=F;return""+C+T+"="+P+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:E}}}else if(r.formEncType==="application/json"){if(!ws(s))return a();try{let E=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:E,text:void 0}}}catch{return a()}}}Ft(typeof FormData=="function","FormData is not available in this environment");let c,h;if(r.formData)c=K7(r.formData),h=r.formData;else if(r.body instanceof FormData)c=K7(r.body),h=r.body;else if(r.body instanceof URLSearchParams)c=r.body,h=SF(c);else if(r.body==null)c=new URLSearchParams,h=new FormData;else try{c=new URLSearchParams(r.body),h=SF(c)}catch{return a()}let b={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(ws(b.formMethod))return{path:n,submission:b};let v=Io(n);return e&&v.search&&o_(v.search)&&c.append("index",""),v.search="?"+c,{path:Rb(v),submission:b}}function AX(t,e){let n=t;if(e){let r=t.findIndex(a=>a.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function _F(t,e,n,r,a,i,s,o,c,h,b,v,E,C,F){let T=F?Object.values(F)[0]:C?Object.values(C)[0]:void 0,P=t.createURL(e.location),D=t.createURL(a),M=F?Object.keys(F)[0]:void 0,k=AX(n,M).filter((V,Y)=>{if(V.route.lazy)return!0;if(V.route.loader==null)return!1;if(_X(e.loaderData,e.matches[Y],V)||s.some(B=>B===V.route.id))return!0;let L=e.matches[Y],X=V;return CF(V,Fn({currentUrl:P,currentParams:L.params,nextUrl:D,nextParams:X.params},r,{actionResult:T,defaultShouldRevalidate:i||P.pathname+P.search===D.pathname+D.search||P.search!==D.search||ON(L,X)}))}),U=[];return h.forEach((V,Y)=>{if(!n.some(d=>d.route.id===V.routeId)||c.has(Y))return;let L=R0(v,V.path,E);if(!L){U.push({key:Y,routeId:V.routeId,path:V.path,matches:null,match:null,controller:null});return}let X=e.fetchers.get(Y),B=Z7(L,V.path),u=!1;b.has(Y)?u=!1:o.includes(Y)?u=!0:X&&X.state!=="idle"&&X.data===void 0?u=i:u=CF(B,Fn({currentUrl:P,currentParams:e.matches[e.matches.length-1].params,nextUrl:D,nextParams:n[n.length-1].params},r,{actionResult:T,defaultShouldRevalidate:i})),u&&U.push({key:Y,routeId:V.routeId,path:V.path,matches:L,match:B,controller:new AbortController})}),[k,U]}function _X(t,e,n){let r=!e||n.route.id!==e.route.id,a=t[n.route.id]===void 0;return r||a}function ON(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function CF(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function BF(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let a=n[t.id];Ft(a,"No route found in manifest");let i={};for(let s in r){let c=a[s]!==void 0&&s!=="hasErrorBoundary";du(!c,'Route "'+a.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!c&&!qQ.has(s)&&(i[s]=r[s])}Object.assign(a,i),Object.assign(a,Fn({},e(a),{lazy:void 0}))}async function D1(t,e,n,r,a,i,s,o){o===void 0&&(o={});let c,h,b,v=F=>{let T,P=new Promise((D,M)=>T=M);return b=()=>T(),e.signal.addEventListener("abort",b),Promise.race([F({request:e,params:n.params,context:o.requestContext}),P])};try{let F=n.route[t];if(n.route.lazy)if(F){let T,P=await Promise.all([v(F).catch(D=>{T=D}),BF(n.route,i,a)]);if(T)throw T;h=P[0]}else if(await BF(n.route,i,a),F=n.route[t],F)h=await v(F);else if(t==="action"){let T=new URL(e.url),P=T.pathname+T.search;throw Fi(405,{method:e.method,pathname:P,routeId:n.route.id})}else return{type:Ln.data,data:void 0};else if(F)h=await v(F);else{let T=new URL(e.url),P=T.pathname+T.search;throw Fi(404,{pathname:P})}Ft(h!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(F){c=Ln.error,h=F}finally{b&&e.signal.removeEventListener("abort",b)}if(TX(h)){let F=h.status;if(bX.has(F)){let D=h.headers.get("Location");if(Ft(D,"Redirects returned/thrown from loaders/actions must have a Location header"),!kN.test(D))D=W7(new URL(e.url),r.slice(0,r.indexOf(n)+1),s,!0,D);else if(!o.isStaticRequest){let M=new URL(e.url),O=D.startsWith("//")?new URL(M.protocol+D):new URL(D),k=Nb(O.pathname,s)!=null;O.origin===M.origin&&k&&(D=O.pathname+O.search+O.hash)}if(o.isStaticRequest)throw h.headers.set("Location",D),h;return{type:Ln.redirect,status:F,location:D,revalidate:h.headers.get("X-Remix-Revalidate")!==null,reloadDocument:h.headers.get("X-Remix-Reload-Document")!==null}}if(o.isRouteRequest)throw{type:c===Ln.error?Ln.error:Ln.data,response:h};let T,P=h.headers.get("Content-Type");return P&&/\bapplication\/json\b/.test(P)?T=await h.json():T=await h.text(),c===Ln.error?{type:c,error:new s_(F,h.statusText,T),headers:h.headers}:{type:Ln.data,data:T,statusCode:h.status,headers:h.headers}}if(c===Ln.error)return{type:c,error:h};if(SX(h)){var E,C;return{type:Ln.deferred,deferredData:h,statusCode:(E=h.init)==null?void 0:E.status,headers:((C=h.init)==null?void 0:C.headers)&&new Headers(h.init.headers)}}return{type:Ln.data,data:h}}function k1(t,e,n,r){let a=t.createURL(PN(e)).toString(),i={signal:n};if(r&&ws(r.formMethod)){let{formMethod:s,formEncType:o}=r;i.method=s.toUpperCase(),o==="application/json"?(i.headers=new Headers({"Content-Type":o}),i.body=JSON.stringify(r.json)):o==="text/plain"?i.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?i.body=K7(r.formData):i.body=r.formData}return new Request(a,i)}function K7(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function SF(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function CX(t,e,n,r,a){let i={},s=null,o,c=!1,h={};return n.forEach((b,v)=>{let E=e[v].route.id;if(Ft(!eh(b),"Cannot handle redirect results in processLoaderData"),Vy(b)){let C=Gy(t,E),F=b.error;r&&(F=Object.values(r)[0],r=void 0),s=s||{},s[C.route.id]==null&&(s[C.route.id]=F),i[E]=void 0,c||(c=!0,o=MN(b.error)?b.error.status:500),b.headers&&(h[E]=b.headers)}else af(b)?(a.set(E,b.deferredData),i[E]=b.deferredData.data):i[E]=b.data,b.statusCode!=null&&b.statusCode!==200&&!c&&(o=b.statusCode),b.headers&&(h[E]=b.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:h}}function TF(t,e,n,r,a,i,s,o){let{loaderData:c,errors:h}=CX(e,n,r,a,o);for(let b=0;br.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function MF(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Fi(t,e){let{pathname:n,routeId:r,method:a,type:i}=e===void 0?{}:e,s="Unknown Server Error",o="Unknown @remix-run/router error";return t===400?(s="Bad Request",a&&n&&r?o="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?o="defer() is not supported in actions":i==="invalid-body"&&(o="Unable to encode submission body")):t===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):t===404?(s="Not Found",o='No route matches URL "'+n+'"'):t===405&&(s="Method Not Allowed",a&&n&&r?o="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(o='Invalid request method "'+a.toUpperCase()+'"')),new s_(t||500,s,new Error(o),!0)}function DF(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(eh(n))return{result:n,idx:e}}}function PN(t){let e=typeof t=="string"?Io(t):t;return Rb(Fn({},e,{hash:""}))}function BX(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function af(t){return t.type===Ln.deferred}function Vy(t){return t.type===Ln.error}function eh(t){return(t&&t.type)===Ln.redirect}function SX(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function TX(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function FX(t){return mX.has(t.toLowerCase())}function ws(t){return pX.has(t.toLowerCase())}async function kF(t,e,n,r,a,i){for(let s=0;sv.route.id===c.route.id),b=h!=null&&!ON(h,c)&&(i&&i[c.route.id])!==void 0;if(af(o)&&(a||b)){let v=r[s];Ft(v,"Expected an AbortSignal for revalidating fetcher deferred result"),await RN(o,v,a).then(E=>{E&&(n[s]=E||n[s])})}}}async function RN(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:Ln.data,data:t.deferredData.unwrappedData}}catch(a){return{type:Ln.error,error:a}}return{type:Ln.data,data:t.deferredData.data}}}function o_(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Z7(t,e){let n=typeof e=="string"?Io(e).search:e.search;if(t[t.length-1].route.index&&o_(n||""))return t[t.length-1];let r=SN(t);return r[r.length-1]}function IF(t){let{formMethod:e,formAction:n,formEncType:r,text:a,formData:i,json:s}=t;if(!(!e||!n||!r)){if(a!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function W5(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function MX(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function I1(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function DX(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function hl(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function kX(t,e){try{let n=t.sessionStorage.getItem(IN);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&e.set(a,new Set(i||[]))}}catch{}}function IX(t,e){if(e.size>0){let n={};for(let[r,a]of e)n[r]=[...a];try{t.sessionStorage.setItem(IN,JSON.stringify(n))}catch(r){du(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ig(){return ig=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),ve.useCallback(function(c,h){if(h===void 0&&(h={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let b=FN(c,JSON.parse(i),a,h.relative==="path");t==null&&e!=="/"&&(b.pathname=b.pathname==="/"?e:au([e,b.pathname])),(h.replace?n.replace:n.push)(b,h.state,h)},[e,n,i,a,t])}const UN=ve.createContext(null);function ci(){return ve.useContext(UN)}function PX(t){let e=ve.useContext(Au).outlet;return e&&ve.createElement(UN.Provider,{value:t},e)}function l_(){let{matches:t}=ve.useContext(Au),e=t[t.length-1];return e?e.params:{}}function RX(t,e,n){M8()||Ft(!1);let{navigator:r}=ve.useContext(T8),{matches:a}=ve.useContext(Au),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let c=c_(),h;if(e){var b;let T=typeof e=="string"?Io(e):e;o==="/"||(b=T.pathname)!=null&&b.startsWith(o)||Ft(!1),h=T}else h=c;let v=h.pathname||"/",E=o==="/"?v:v.slice(o.length)||"/",C=R0(t,{pathname:E}),F=jX(C&&C.map(T=>Object.assign({},T,{params:Object.assign({},s,T.params),pathname:au([o,r.encodeLocation?r.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?o:au([o,r.encodeLocation?r.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),a,n);return e&&F?ve.createElement(F8.Provider,{value:{location:ig({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:$n.Pop}},F):F}function NX(){let t=VX(),e=MN(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return ve.createElement(ve.Fragment,null,ve.createElement("h2",null,"Unexpected Application Error!"),ve.createElement("h3",{style:{fontStyle:"italic"}},e),n?ve.createElement("pre",{style:a},n):null,i)}const $X=ve.createElement(NX,null);class LX extends ve.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?ve.createElement(Au.Provider,{value:this.props.routeContext},ve.createElement($N.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UX(t){let{routeContext:e,match:n,children:r}=t,a=ve.useContext(S8);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),ve.createElement(Au.Provider,{value:e},r)}function jX(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var a;if((a=n)!=null&&a.errors)t=n.matches;else return null}let i=t,s=(r=n)==null?void 0:r.errors;if(s!=null){let o=i.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id]));o>=0||Ft(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,c,h)=>{let b=c.route.id?s==null?void 0:s[c.route.id]:null,v=null;n&&(v=c.route.errorElement||$X);let E=e.concat(i.slice(0,h+1)),C=()=>{let F;return b?F=v:c.route.Component?F=ve.createElement(c.route.Component,null):c.route.element?F=c.route.element:F=o,ve.createElement(UX,{match:c,routeContext:{outlet:o,matches:E,isDataRoute:n!=null},children:F})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?ve.createElement(LX,{location:n.location,revalidation:n.revalidation,component:v,error:b,children:C(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):C()},null)}var jN=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(jN||{}),sg=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(sg||{});function HX(t){let e=ve.useContext(S8);return e||Ft(!1),e}function zX(t){let e=ve.useContext(NN);return e||Ft(!1),e}function GX(t){let e=ve.useContext(Au);return e||Ft(!1),e}function HN(t){let e=GX(),n=e.matches[e.matches.length-1];return n.route.id||Ft(!1),n.route.id}function VX(){var t;let e=ve.useContext($N),n=zX(sg.UseRouteError),r=HN(sg.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function qX(){let{router:t}=HX(jN.UseNavigateStable),e=HN(sg.UseNavigateStable),n=ve.useRef(!1);return LN(()=>{n.current=!0}),ve.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,ig({fromRouteId:e},i)))},[t,e])}function zN(t){return PX(t.context)}function WX(t){let{basename:e="/",children:n=null,location:r,navigationType:a=$n.Pop,navigator:i,static:s=!1}=t;M8()&&Ft(!1);let o=e.replace(/^\/*/,"/"),c=ve.useMemo(()=>({basename:o,navigator:i,static:s}),[o,i,s]);typeof r=="string"&&(r=Io(r));let{pathname:h="/",search:b="",hash:v="",state:E=null,key:C="default"}=r,F=ve.useMemo(()=>{let T=Nb(h,o);return T==null?null:{location:{pathname:T,search:b,hash:v,state:E,key:C},navigationType:a}},[o,h,b,v,E,C,a]);return F==null?null:ve.createElement(T8.Provider,{value:c},ve.createElement(F8.Provider,{children:n,value:F}))}new Promise(()=>{});function KX(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:ve.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:ve.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + * React Router DOM v6.20.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function og(){return og=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let r=t[n];return e.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function ZX(t,e){let n=Q7(t);return e&&e.forEach((r,a)=>{n.has(a)||e.getAll(a).forEach(i=>{n.append(a,i)})}),n}function QX(t,e){return wX({basename:e==null?void 0:e.basename,future:og({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:zQ({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||XX(),routes:t,mapRouteProperties:KX,window:e==null?void 0:e.window}).initialize()}function XX(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=og({},e,{errors:JX(e.errors)})),e}function JX(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,a]of e)if(a&&a.__type==="RouteErrorResponse")n[r]=new s_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let s=new i(a.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}const YX=ve.createContext({isTransitioning:!1}),eJ=ve.createContext(new Map),tJ="startTransition",OF=kK[tJ],nJ="flushSync",PF=HQ[nJ];function rJ(t){OF?OF(t):t()}function O1(t){PF?PF(t):t()}class aJ{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function iJ(t){let{fallbackElement:e,router:n,future:r}=t,[a,i]=ve.useState(n.state),[s,o]=ve.useState(),[c,h]=ve.useState({isTransitioning:!1}),[b,v]=ve.useState(),[E,C]=ve.useState(),[F,T]=ve.useState(),P=ve.useRef(new Map),{v7_startTransition:D}=r||{},M=ve.useCallback(Y=>{D?rJ(Y):Y()},[D]),O=ve.useCallback((Y,L)=>{let{deletedFetchers:X,unstable_flushSync:B,unstable_viewTransitionOpts:u}=L;X.forEach(p=>P.current.delete(p)),Y.fetchers.forEach((p,l)=>{p.data!==void 0&&P.current.set(l,p.data)});let d=n.window==null||typeof n.window.document.startViewTransition!="function";if(!u||d){B?O1(()=>i(Y)):M(()=>i(Y));return}if(B){O1(()=>{E&&(b&&b.resolve(),E.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:u.currentLocation,nextLocation:u.nextLocation})});let p=n.window.document.startViewTransition(()=>{O1(()=>i(Y))});p.finished.finally(()=>{O1(()=>{v(void 0),C(void 0),o(void 0),h({isTransitioning:!1})})}),O1(()=>C(p));return}E?(b&&b.resolve(),E.skipTransition(),T({state:Y,currentLocation:u.currentLocation,nextLocation:u.nextLocation})):(o(Y),h({isTransitioning:!0,flushSync:!1,currentLocation:u.currentLocation,nextLocation:u.nextLocation}))},[n.window,E,b,P,M]);ve.useLayoutEffect(()=>n.subscribe(O),[n,O]),ve.useEffect(()=>{c.isTransitioning&&!c.flushSync&&v(new aJ)},[c]),ve.useEffect(()=>{if(b&&s&&n.window){let Y=s,L=b.promise,X=n.window.document.startViewTransition(async()=>{M(()=>i(Y)),await L});X.finished.finally(()=>{v(void 0),C(void 0),o(void 0),h({isTransitioning:!1})}),C(X)}},[M,s,b,n.window]),ve.useEffect(()=>{b&&s&&a.location.key===s.location.key&&b.resolve()},[b,E,a.location,s]),ve.useEffect(()=>{!c.isTransitioning&&F&&(o(F.state),h({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}),T(void 0))},[c.isTransitioning,F]);let k=ve.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:Y=>n.navigate(Y),push:(Y,L,X)=>n.navigate(Y,{state:L,preventScrollReset:X==null?void 0:X.preventScrollReset}),replace:(Y,L,X)=>n.navigate(Y,{replace:!0,state:L,preventScrollReset:X==null?void 0:X.preventScrollReset})}),[n]),U=n.basename||"/",V=ve.useMemo(()=>({router:n,navigator:k,static:!1,basename:U}),[n,k,U]);return ve.createElement(ve.Fragment,null,ve.createElement(S8.Provider,{value:V},ve.createElement(NN.Provider,{value:a},ve.createElement(eJ.Provider,{value:P.current},ve.createElement(YX.Provider,{value:c},ve.createElement(WX,{basename:U,location:a.location,navigationType:a.historyAction,navigator:k},a.initialized?ve.createElement(sJ,{routes:n.routes,state:a}):e))))),null)}function sJ(t){let{routes:e,state:n}=t;return RX(e,void 0,n)}var RF;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(RF||(RF={}));var NF;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(NF||(NF={}));function D8(t){let e=ve.useRef(Q7(t)),n=ve.useRef(!1),r=c_(),a=ve.useMemo(()=>ZX(r.search,n.current?null:e.current),[r.search]),i=qp(),s=ve.useCallback((o,c)=>{const h=Q7(typeof o=="function"?o(a):o);n.current=!0,i("?"+h,c)},[i,a]);return[a,s]}const oJ=(t,e=20)=>{let n;return(...a)=>{clearTimeout(n),n=setTimeout(()=>t(...a),e)}},Rt=(...t)=>t.reduce((e,n)=>{if(Array.isArray(n)){const r=Rt(...n);return r?`${e} ${r}`:e}return n?`${e} ${n}`:e},""),$F=(t,e,n)=>{const{base:r,excludeValueFromClassName:a}=n||{},i=typeof t=="string"?t:t(e);return e===!0&&r||a?i:e===!0&&!r?`${i}-true`:e===!1&&!r?`${i}-false`:e!==void 0?`${i}-${e}`:null},en=(t,e,n,r)=>{if(typeof n!="object"){const a=$F(e,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return a?[t[a]]:[]}return Object.keys(n).reduce((a,i)=>{const s=i==="s",o=$F(e,n[i],{base:s,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),c=s?"":`--${i}`;return[...a,t[`${o}${c}`]]},[])},br=(t,e)=>e===void 0?{}:typeof e!="object"?{[`${t}-s`]:e}:Object.keys(e).reduce((n,r)=>{const a=e[r];return a===void 0||a===!1?n:Object.assign(Object.assign({},n),{[`${t}-${r}`]:a})},{}),cJ=t=>t===null?!1:typeof t=="object"&&t!==null&&"s"in t,ed=(t,e)=>cJ(t)?Object.keys(t).reduce((r,a)=>{const i=t[a];return i==null?r:Object.assign(Object.assign({},r),{[a]:e(i,a)})},{}):e(t,"s"),Wp=t=>{const e=te.useId();return t||e};te.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""});const lJ="_root_6m4f4_1",P1={root:lJ,"--disabled":"_--disabled_6m4f4_1","--full-width":"_--full-width_6m4f4_1","--inset":"_--inset_6m4f4_1","--radius-inherit":"_--radius-inherit_6m4f4_1"},uJ=(t,e)=>{const{children:n,href:r,onClick:a,type:i,disabled:s,insetFocus:o,borderRadius:c,as:h,fullWidth:b,className:v,attributes:E}=t,C=Rt(P1.root,v,s&&P1["--disabled"],c&&P1[`--radius-${c}`],o&&P1["--inset"],b&&P1["--full-width"]),F=Object.assign({},E),T=te.useRef(!1),P=a||(E==null?void 0:E.onClick),D=(E==null?void 0:E.onFocus)||(E==null?void 0:E.onBlur),M=!!(r||E!=null&&E.href),O=!!(P||D||i);let k;if(M)F.href=s?void 0:r||(E==null?void 0:E.href),k="a";else if(O&&(!h||h==="button"))k="button",F.type=i||(E==null?void 0:E.type)||"button",F.disabled=s||(E==null?void 0:E.disabled);else if(O){const L=!(h==="label")||P||D;k=h||"span",F.role=L?"button":void 0,F.tabIndex=L?0:void 0}else k=h||"span";const U=Y=>{var L;s||T.current||(a==null||a(Y),(L=E==null?void 0:E.onClick)===null||L===void 0||L.call(E,Y))},V=Y=>{if(F.role==="button"||M)return;const X=Y.key===" ",B=Y.key==="Enter";!X&&!B||(Y.preventDefault(),U(Y),T.current=!0,requestAnimationFrame(()=>{T.current=!1}))};return te.createElement(k,Object.assign({ref:e},F,{className:C,onClick:U,onKeyDown:V}),n)},Kp=te.forwardRef(uJ),fJ="_root_qpaoy_1",K5={root:fJ,"--blank":"_--blank_qpaoy_1","--vertical":"_--vertical_qpaoy_1","--vertical-true--m":"_--vertical-true--m_qpaoy_1","--vertical-false--m":"_--vertical-false--m_qpaoy_1","--vertical-true--l":"_--vertical-true--l_qpaoy_1","--vertical-false--l":"_--vertical-false--l_qpaoy_1","--vertical-true--xl":"_--vertical-true--xl_qpaoy_1","--vertical-false--xl":"_--vertical-false--xl_qpaoy_1"},GN=t=>{const{vertical:e,blank:n,className:r,attributes:a}=t,i=Rt(K5.root,r,n&&K5["--blank"],...en(K5,"--vertical",e));let s;return(typeof e=="boolean"||e===void 0)&&(s=e?"vertical":"horizontal"),te.createElement("div",Object.assign({},a,{role:"separator","aria-orientation":s,className:i}))},dJ="_root_14fj3_1",L2={root:dJ,"--display-inline":"_--display-inline_14fj3_1","--display-flex":"_--display-flex_14fj3_1","--hidden":"_--hidden_14fj3_1","--visibility":"_--visibility_14fj3_1","--hidden-true--m":"_--hidden-true--m_14fj3_1","--hidden-false--m":"_--hidden-false--m_14fj3_1","--hidden-true--l":"_--hidden-true--l_14fj3_1","--hidden-false--l":"_--hidden-false--l_14fj3_1","--hidden-true--xl":"_--hidden-true--xl_14fj3_1","--hidden-false--xl":"_--hidden-false--xl_14fj3_1"},LF=t=>{const{as:e="div",children:n,visibility:r,hide:a,displayStyle:i}=t,s=Rt(L2.root,...en(L2,"--hidden",a),r&&L2["--visibility"],i&&L2[`--display-${i}`]);return typeof n=="function"?te.createElement(te.Fragment,null,n(s)):te.createElement(e,{className:s},n)},hJ="_root_mi21y_1",pJ="_item_mi21y_1",yJ="_divider_mi21y_1",Jt={root:hJ,item:pJ,"--padding":"_--padding_mi21y_1","--padding-top":"_--padding-top_mi21y_1","--padding-bottom":"_--padding-bottom_mi21y_1","--padding-start":"_--padding-start_mi21y_1","--padding-end":"_--padding-end_mi21y_1","--animated":"_--animated_mi21y_1","--align-text-start":"_--align-text-start_mi21y_1","--align-text-center":"_--align-text-center_mi21y_1","--align-text-end":"_--align-text-end_mi21y_1","--bg-neutral":"_--bg-neutral_mi21y_1","--bg-positive":"_--bg-positive_mi21y_1","--bg-critical":"_--bg-critical_mi21y_1","--bg-primary":"_--bg-primary_mi21y_1","--bg-neutral-faded":"_--bg-neutral-faded_mi21y_1","--bg-positive-faded":"_--bg-positive-faded_mi21y_1","--bg-critical-faded":"_--bg-critical-faded_mi21y_1","--bg-primary-faded":"_--bg-primary-faded_mi21y_1","--bg-page":"_--bg-page_mi21y_1","--bg-page-faded":"_--bg-page-faded_mi21y_1","--bg-disabled":"_--bg-disabled_mi21y_1","--bg-disabled-faded":"_--bg-disabled-faded_mi21y_1","--bg-elevation-base":"_--bg-elevation-base_mi21y_1","--bg-elevation-raised":"_--bg-elevation-raised_mi21y_1","--bg-elevation-overlay":"_--bg-elevation-overlay_mi21y_1","--bg-white":"_--bg-white_mi21y_1","--bg-black":"_--bg-black_mi21y_1","--shadow-raised":"_--shadow-raised_mi21y_1","--shadow-overlay":"_--shadow-overlay_mi21y_1","--bd":"_--bd_mi21y_1","--bd-neutral-faded":"_--bd-neutral-faded_mi21y_1","--bd-neutral":"_--bd-neutral_mi21y_1","--bd-positive":"_--bd-positive_mi21y_1","--bd-positive-faded":"_--bd-positive-faded_mi21y_1","--bd-critical":"_--bd-critical_mi21y_1","--bd-critical-faded":"_--bd-critical-faded_mi21y_1","--bd-primary":"_--bd-primary_mi21y_1","--bd-primary-faded":"_--bd-primary-faded_mi21y_1","--bd-disabled":"_--bd-disabled_mi21y_1","--bd-transparent":"_--bd-transparent_mi21y_1","--overflow-hidden":"_--overflow-hidden_mi21y_1","--divided":"_--divided_mi21y_1","--flex":"_--flex_mi21y_1","--direction-column":"_--direction-column_mi21y_1","item--gap-before":"_item--gap-before_mi21y_1","item--gap-auto":"_item--gap-auto_mi21y_1","--direction-column-reverse":"_--direction-column-reverse_mi21y_1","--direction-row":"_--direction-row_mi21y_1","--direction-row-reverse":"_--direction-row-reverse_mi21y_1","--nowrap":"_--nowrap_mi21y_1","--wrap":"_--wrap_mi21y_1","--nowrap-false--m":"_--nowrap-false--m_mi21y_1","--wrap-true--m":"_--wrap-true--m_mi21y_1","--nowrap-true--m":"_--nowrap-true--m_mi21y_1","--wrap-false--m":"_--wrap-false--m_mi21y_1","--nowrap-false--l":"_--nowrap-false--l_mi21y_1","--wrap-true--l":"_--wrap-true--l_mi21y_1","--nowrap-true--l":"_--nowrap-true--l_mi21y_1","--wrap-false--l":"_--wrap-false--l_mi21y_1","--nowrap-false--xl":"_--nowrap-false--xl_mi21y_1","--wrap-true--xl":"_--wrap-true--xl_mi21y_1","--nowrap-true--xl":"_--nowrap-true--xl_mi21y_1","--wrap-false--xl":"_--wrap-false--xl_mi21y_1","--align-start":"_--align-start_mi21y_1","--align-end":"_--align-end_mi21y_1","--align-center":"_--align-center_mi21y_1","--align-stretch":"_--align-stretch_mi21y_1","--align-baseline":"_--align-baseline_mi21y_1","--justify-start":"_--justify-start_mi21y_1","--justify-end":"_--justify-end_mi21y_1","--justify-center":"_--justify-center_mi21y_1","--justify-space-between":"_--justify-space-between_mi21y_1",divider:yJ,"item--grow":"_item--grow_mi21y_1","item--columns":"_item--columns_mi21y_1","item--columns-1":"_item--columns-1_mi21y_1","item--columns-2":"_item--columns-2_mi21y_1","item--columns-3":"_item--columns-3_mi21y_1","item--columns-4":"_item--columns-4_mi21y_1","item--columns-5":"_item--columns-5_mi21y_1","item--columns-6":"_item--columns-6_mi21y_1","item--columns-7":"_item--columns-7_mi21y_1","item--columns-8":"_item--columns-8_mi21y_1","item--columns-9":"_item--columns-9_mi21y_1","item--columns-10":"_item--columns-10_mi21y_1","item--columns-11":"_item--columns-11_mi21y_1","item--columns-12":"_item--columns-12_mi21y_1","item--columns-auto":"_item--columns-auto_mi21y_1","item--columns-1--m":"_item--columns-1--m_mi21y_1","item--columns-2--m":"_item--columns-2--m_mi21y_1","item--columns-3--m":"_item--columns-3--m_mi21y_1","item--columns-4--m":"_item--columns-4--m_mi21y_1","item--columns-5--m":"_item--columns-5--m_mi21y_1","item--columns-6--m":"_item--columns-6--m_mi21y_1","item--columns-7--m":"_item--columns-7--m_mi21y_1","item--columns-8--m":"_item--columns-8--m_mi21y_1","item--columns-9--m":"_item--columns-9--m_mi21y_1","item--columns-10--m":"_item--columns-10--m_mi21y_1","item--columns-11--m":"_item--columns-11--m_mi21y_1","item--columns-12--m":"_item--columns-12--m_mi21y_1","item--columns-auto--m":"_item--columns-auto--m_mi21y_1","item--columns-1--l":"_item--columns-1--l_mi21y_1","item--columns-2--l":"_item--columns-2--l_mi21y_1","item--columns-3--l":"_item--columns-3--l_mi21y_1","item--columns-4--l":"_item--columns-4--l_mi21y_1","item--columns-5--l":"_item--columns-5--l_mi21y_1","item--columns-6--l":"_item--columns-6--l_mi21y_1","item--columns-7--l":"_item--columns-7--l_mi21y_1","item--columns-8--l":"_item--columns-8--l_mi21y_1","item--columns-9--l":"_item--columns-9--l_mi21y_1","item--columns-10--l":"_item--columns-10--l_mi21y_1","item--columns-11--l":"_item--columns-11--l_mi21y_1","item--columns-12--l":"_item--columns-12--l_mi21y_1","item--columns-auto--l":"_item--columns-auto--l_mi21y_1","item--columns-1--xl":"_item--columns-1--xl_mi21y_1","item--columns-2--xl":"_item--columns-2--xl_mi21y_1","item--columns-3--xl":"_item--columns-3--xl_mi21y_1","item--columns-4--xl":"_item--columns-4--xl_mi21y_1","item--columns-5--xl":"_item--columns-5--xl_mi21y_1","item--columns-6--xl":"_item--columns-6--xl_mi21y_1","item--columns-7--xl":"_item--columns-7--xl_mi21y_1","item--columns-8--xl":"_item--columns-8--xl_mi21y_1","item--columns-9--xl":"_item--columns-9--xl_mi21y_1","item--columns-10--xl":"_item--columns-10--xl_mi21y_1","item--columns-11--xl":"_item--columns-11--xl_mi21y_1","item--columns-12--xl":"_item--columns-12--xl_mi21y_1","item--columns-auto--xl":"_item--columns-auto--xl_mi21y_1","--direction-column--m":"_--direction-column--m_mi21y_1","--direction-column-reverse--m":"_--direction-column-reverse--m_mi21y_1","--direction-row--m":"_--direction-row--m_mi21y_1","--direction-row-reverse--m":"_--direction-row-reverse--m_mi21y_1","--align-start--m":"_--align-start--m_mi21y_1","--align-end--m":"_--align-end--m_mi21y_1","--align-center--m":"_--align-center--m_mi21y_1","--align-stretch--m":"_--align-stretch--m_mi21y_1","--align-baseline--m":"_--align-baseline--m_mi21y_1","--justify-start--m":"_--justify-start--m_mi21y_1","--justify-end--m":"_--justify-end--m_mi21y_1","--justify-center--m":"_--justify-center--m_mi21y_1","--justify-space-between--m":"_--justify-space-between--m_mi21y_1","item--grow-true--m":"_item--grow-true--m_mi21y_1","item--grow-false--m":"_item--grow-false--m_mi21y_1","--direction-column--l":"_--direction-column--l_mi21y_1","--direction-column-reverse--l":"_--direction-column-reverse--l_mi21y_1","--direction-row--l":"_--direction-row--l_mi21y_1","--direction-row-reverse--l":"_--direction-row-reverse--l_mi21y_1","--align-start--l":"_--align-start--l_mi21y_1","--align-end--l":"_--align-end--l_mi21y_1","--align-center--l":"_--align-center--l_mi21y_1","--align-stretch--l":"_--align-stretch--l_mi21y_1","--align-baseline--l":"_--align-baseline--l_mi21y_1","--justify-start--l":"_--justify-start--l_mi21y_1","--justify-end--l":"_--justify-end--l_mi21y_1","--justify-center--l":"_--justify-center--l_mi21y_1","--justify-space-between--l":"_--justify-space-between--l_mi21y_1","item--grow-true--l":"_item--grow-true--l_mi21y_1","item--grow-false--l":"_item--grow-false--l_mi21y_1","--direction-column--xl":"_--direction-column--xl_mi21y_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_mi21y_1","--direction-row--xl":"_--direction-row--xl_mi21y_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_mi21y_1","--align-start--xl":"_--align-start--xl_mi21y_1","--align-end--xl":"_--align-end--xl_mi21y_1","--align-center--xl":"_--align-center--xl_mi21y_1","--align-stretch--xl":"_--align-stretch--xl_mi21y_1","--align-baseline--xl":"_--align-baseline--xl_mi21y_1","--justify-start--xl":"_--justify-start--xl_mi21y_1","--justify-end--xl":"_--justify-end--xl_mi21y_1","--justify-center--xl":"_--justify-center--xl_mi21y_1","--justify-space-between--xl":"_--justify-space-between--xl_mi21y_1","item--grow-true--xl":"_item--grow-true--xl_mi21y_1","item--grow-false--xl":"_item--grow-false--xl_mi21y_1"},mJ="_root_10063_1",UF={root:mJ,"--radius-none":"_--radius-none_10063_1","--radius-small":"_--radius-small_10063_1","--radius-medium":"_--radius-medium_10063_1","--radius-large":"_--radius-large_10063_1","--radius-circular":"_--radius-circular_10063_1","--radius-none--m":"_--radius-none--m_10063_1","--radius-small--m":"_--radius-small--m_10063_1","--radius-medium--m":"_--radius-medium--m_10063_1","--radius-large--m":"_--radius-large--m_10063_1","--radius-circular--m":"_--radius-circular--m_10063_1","--radius-none--l":"_--radius-none--l_10063_1","--radius-small--l":"_--radius-small--l_10063_1","--radius-medium--l":"_--radius-medium--l_10063_1","--radius-large--l":"_--radius-large--l_10063_1","--radius-circular--l":"_--radius-circular--l_10063_1","--radius-none--xl":"_--radius-none--xl_10063_1","--radius-small--xl":"_--radius-small--xl_10063_1","--radius-medium--xl":"_--radius-medium--xl_10063_1","--radius-large--xl":"_--radius-large--xl_10063_1","--radius-circular--xl":"_--radius-circular--xl_10063_1"},VN=t=>t?{classNames:[UF.root,...en(UF,"--radius",t)]}:null,bJ="_root_g5jwk_1",jF={root:bJ,"--bleed":"_--bleed_g5jwk_1","--bleed-true--m":"_--bleed-true--m_g5jwk_1","--bleed-false--m":"_--bleed-false--m_g5jwk_1","--bleed-true--l":"_--bleed-true--l_g5jwk_1","--bleed-false--l":"_--bleed-false--l_g5jwk_1","--bleed-true--xl":"_--bleed-true--xl_g5jwk_1","--bleed-false--xl":"_--bleed-false--xl_g5jwk_1"},qN=t=>{if(t===void 0)return null;const e=[jF.root,...en(jF,"--bleed",ed(t,r=>typeof r=="number"&&r>0))],n=br("--rs-bleed",t);return{classNames:e,variables:n}},gJ="_literal_feq05_1",xJ="_unit_feq05_1",vJ={literal:gJ,unit:xJ,"literal--m":"_literal--m_feq05_1","unit--m":"_unit--m_feq05_1","literal--l":"_literal--l_feq05_1","unit--l":"_unit--l_feq05_1","literal--xl":"_literal--xl_feq05_1","unit--xl":"_unit--xl_feq05_1"},wJ=t=>{if(!t)return null;const e=br("--rs-w",t);return{classNames:en(vJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},EJ="_literal_vx5jt_1",AJ="_unit_vx5jt_1",_J={literal:EJ,unit:AJ,"literal--m":"_literal--m_vx5jt_1","unit--m":"_unit--m_vx5jt_1","literal--l":"_literal--l_vx5jt_1","unit--l":"_unit--l_vx5jt_1","literal--xl":"_literal--xl_vx5jt_1","unit--xl":"_unit--xl_vx5jt_1"},u_=t=>{if(!t)return null;const e=br("--rs-h",t);return{classNames:en(_J,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},CJ="_literal_7zdst_1",BJ="_unit_7zdst_1",SJ={literal:CJ,unit:BJ,"literal--m":"_literal--m_7zdst_1","unit--m":"_unit--m_7zdst_1","literal--l":"_literal--l_7zdst_1","unit--l":"_unit--l_7zdst_1","literal--xl":"_literal--xl_7zdst_1","unit--xl":"_unit--xl_7zdst_1"},TJ=t=>{if(!t)return null;const e=br("--rs-max-w",t);return{classNames:en(SJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},FJ="_literal_yqjjt_1",MJ="_unit_yqjjt_1",DJ={literal:FJ,unit:MJ,"literal--m":"_literal--m_yqjjt_1","unit--m":"_unit--m_yqjjt_1","literal--l":"_literal--l_yqjjt_1","unit--l":"_unit--l_yqjjt_1","literal--xl":"_literal--xl_yqjjt_1","unit--xl":"_unit--xl_yqjjt_1"},kJ=t=>{if(!t)return null;const e=br("--rs-max-h",t);return{classNames:en(DJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},IJ={"--position-static":"_--position-static_j0cdp_1","--position-relative":"_--position-relative_j0cdp_1","--position-absolute":"_--position-absolute_j0cdp_1","--position-fixed":"_--position-fixed_j0cdp_1","--position-sticky":"_--position-sticky_j0cdp_1","--position-static--m":"_--position-static--m_j0cdp_1","--position-relative--m":"_--position-relative--m_j0cdp_1","--position-absolute--m":"_--position-absolute--m_j0cdp_1","--position-fixed--m":"_--position-fixed--m_j0cdp_1","--position-sticky--m":"_--position-sticky--m_j0cdp_1","--position-static--l":"_--position-static--l_j0cdp_1","--position-relative--l":"_--position-relative--l_j0cdp_1","--position-absolute--l":"_--position-absolute--l_j0cdp_1","--position-fixed--l":"_--position-fixed--l_j0cdp_1","--position-sticky--l":"_--position-sticky--l_j0cdp_1","--position-static--xl":"_--position-static--xl_j0cdp_1","--position-relative--xl":"_--position-relative--xl_j0cdp_1","--position-absolute--xl":"_--position-absolute--xl_j0cdp_1","--position-fixed--xl":"_--position-fixed--xl_j0cdp_1","--position-sticky--xl":"_--position-sticky--xl_j0cdp_1"},OJ=t=>t?{classNames:en(IJ,"--position",t)}:null,PJ={"--inset":"_--inset_3h9cu_1","--inset-end":"_--inset-end_3h9cu_1","--inset-start":"_--inset-start_3h9cu_1","--inset-top":"_--inset-top_3h9cu_1","--inset-bottom":"_--inset-bottom_3h9cu_1","--inset-end--m":"_--inset-end--m_3h9cu_1","--inset-start--m":"_--inset-start--m_3h9cu_1","--inset-top--m":"_--inset-top--m_3h9cu_1","--inset-bottom--m":"_--inset-bottom--m_3h9cu_1","--inset-end--l":"_--inset-end--l_3h9cu_1","--inset-start--l":"_--inset-start--l_3h9cu_1","--inset-top--l":"_--inset-top--l_3h9cu_1","--inset-bottom--l":"_--inset-bottom--l_3h9cu_1","--inset-end--xl":"_--inset-end--xl_3h9cu_1","--inset-start--xl":"_--inset-start--xl_3h9cu_1","--inset-top--xl":"_--inset-top--xl_3h9cu_1","--inset-bottom--xl":"_--inset-bottom--xl_3h9cu_1"},R1=(t,e)=>{if(t===void 0)return null;const n=e?`-${e}`:"",r=`--rs-inset${n}`,a=br(r,t);return{classNames:en(PJ,`--inset${n}`,t,{excludeValueFromClassName:!0}),variables:a}},RJ="_root_1hagr_1",NJ={root:RJ},$J=t=>{if(!t)return null;const e=br("--rs-ratio",t);return{classNames:NJ.root,variables:e}};var LJ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{columns:e,grow:n,gapBefore:r,as:a="div",order:i,children:s,className:o,attributes:c}=t,h=Rt(Jt.item,o,r==="auto"&&Jt["item--gap-auto"],r!==void 0&&Jt["item--gap-before"],e&&Jt["item--columns"],...en(Jt,"item--grow",n),...en(Jt,"item--columns",e)),b=Object.assign(Object.assign({},br("--rs-view-item-order",i)),br("--rs-view-item-gap-before",r));return te.createElement(a,Object.assign({},c,{style:Object.assign(Object.assign({},c==null?void 0:c.style),b),className:h}),s)},rt=t=>{const{align:e,justify:n,wrap:r,gap:a,height:i,width:s,aspectRatio:o,maxHeight:c,maxWidth:h,padding:b,paddingInline:v,paddingBlock:E,paddingBottom:C,paddingEnd:F,paddingStart:T,paddingTop:P,bleed:D,animated:M,backgroundColor:O,borderColor:k,borderRadius:U,shadow:V,textAlign:Y,overflow:L,position:X="relative",inset:B,insetTop:u,insetBottom:d,insetStart:p,insetEnd:l,zIndex:y,grow:g,as:w="div",children:x,divided:f,className:m,attributes:_}=t;let A=!!e||!!n||!!a||!!t.direction;const S=t.direction||(A?"column":void 0),$=VN(U),q=qN(D),I=wJ(s),K=u_(i),z=TJ(h),Q=kJ(c),ue=OJ(X),fe=R1(B),G=R1(u,"top"),j=R1(d,"bottom"),ne=R1(p,"start"),se=R1(l,"end"),J=$J(o);let R=0,N;const Z=({className:ie,key:me})=>{const be=Rt(Jt.divider,ie);let ye=!1;return typeof S=="string"&&S.startsWith("row")?ye=!0:S&&(ye=Object.keys(S).reduce((Se,Ee)=>{const Qe=S[Ee];return Qe?Object.assign(Object.assign({},Se),{[Ee]:Qe.startsWith("row")}):Se},{})),te.createElement("div",{className:be,key:`${me}-divider`},te.createElement(GN,{vertical:ye,blank:!0}))},ae=({className:ie,child:me,index:be})=>{var ye,Fe,Se;const Ee=me.type===WN,Qe=me.type===rt,$e=me.key||be,Oe=!!be&&f&&Z({className:ie,key:$e});let at;return Ee?at=te.cloneElement(me,{className:Rt(ie,me.props.className)}):ie||!te.isValidElement(me)?at=te.createElement("div",{className:ie,key:$e},me):at=me,Ee&&(!((ye=me.props)===null||ye===void 0)&&ye.grow)&&(N=me.props.grow),Ee&&((Fe=me.props)===null||Fe===void 0?void 0:Fe.gap)==="auto"&&(N=!0),(Ee||Qe)&&(!((Se=me.props)===null||Se===void 0)&&Se.grow)&&(A=!0),[Oe,at]},pe=te.Children.map(x,(ie,me)=>{if(!ie)return null;const be=R;if(R+=1,ie.type===LF&&typeof ie.props.children!="function"){const ye=ie.props,{children:Fe}=ye,Se=LJ(ye,["children"]),Ee=ie.key||me;return te.createElement(LF,Object.assign({},Se,{key:Ee}),Qe=>ae({className:Qe,child:Fe,index:be}))}return ae({child:ie,index:be})}),W=Rt(Jt.root,m,$==null?void 0:$.classNames,ue==null?void 0:ue.classNames,q==null?void 0:q.classNames,I==null?void 0:I.classNames,K==null?void 0:K.classNames,J==null?void 0:J.classNames,z==null?void 0:z.classNames,Q==null?void 0:Q.classNames,fe==null?void 0:fe.classNames,G==null?void 0:G.classNames,j==null?void 0:j.classNames,ne==null?void 0:ne.classNames,se==null?void 0:se.classNames,Y&&Jt[`--align-text-${Y}`],O&&Jt[`--bg-${O}`],k&&Jt[`--bd-${k}`],k&&Jt["--bd"],V&&Jt[`--shadow-${V}`],L&&Jt[`--overflow-${L}`],M&&Jt["--animated"],f&&Jt["--divided"],(b!==void 0||v!==void 0||E!==void 0)&&Jt["--padding"],C!==void 0&&Jt["--padding-bottom"],F!==void 0&&Jt["--padding-end"],T!==void 0&&Jt["--padding-start"],P!==void 0&&Jt["--padding-top"],(A||N)&&Jt["--flex"],...en(Jt,"--direction",S),...en(Jt,"--align",e),...en(Jt,"--justify",n),...en(Jt,"--nowrap",N||r===!1),...en(Jt,"--wrap",r),...en(Jt,"item--grow",g)),ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_==null?void 0:_.style),br("--rs-view-gap",a)),br("--rs-view-p-vertical",E||b)),br("--rs-view-p-horizontal",v||b)),br("--rs-view-p-bottom",C)),br("--rs-view-p-top",P)),br("--rs-view-p-start",T)),br("--rs-view-p-end",F)),q==null?void 0:q.variables),I==null?void 0:I.variables),K==null?void 0:K.variables),J==null?void 0:J.variables),z==null?void 0:z.variables),Q==null?void 0:Q.variables),fe==null?void 0:fe.variables),G==null?void 0:G.variables),j==null?void 0:j.variables),ne==null?void 0:ne.variables),se==null?void 0:se.variables),y?{"--rs-view-z":y}:{});return te.createElement(w,Object.assign({},_,{className:W,style:ee}),pe)};rt.Item=WN;const UJ="_root_p4nta_1",Z5={root:UJ,"--auto":"_--auto_p4nta_1","--color-neutral":"_--color-neutral_p4nta_1","--color-neutral-faded":"_--color-neutral-faded_p4nta_1","--color-primary":"_--color-primary_p4nta_1","--color-positive":"_--color-positive_p4nta_1","--color-critical":"_--color-critical_p4nta_1","--color-disabled":"_--color-disabled_p4nta_1"},Dc=t=>{const{svg:e,className:n,color:r,size:a="1em",autoWidth:i,attributes:s}=t,o=u_(a),c=Rt(Z5.root,n,o==null?void 0:o.classNames,r&&Z5[`--color-${r}`],i&&Z5["--auto"]),h=typeof e=="object"?e:te.createElement(e,null),b=Object.assign(Object.assign({},s==null?void 0:s.style),o==null?void 0:o.variables);return te.createElement("span",Object.assign({},s,{"aria-hidden":"true",className:c,style:b}),te.cloneElement(h,{focusable:!1}))},k8=t=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>t())})},f_="data-rs-no-transition",jJ=()=>{document.documentElement.setAttribute(f_,"true")},HJ=()=>{document.documentElement.removeAttribute(f_)},zJ=()=>!document.documentElement.hasAttribute(f_),GJ="_root_79hj7_1",Nu={root:GJ,"--clamp":"_--clamp_79hj7_1","--align-start":"_--align-start_79hj7_1","--align-center":"_--align-center_79hj7_1","--align-end":"_--align-end_79hj7_1","--variant-title-1":"_--variant-title-1_79hj7_1","--variant-title-2":"_--variant-title-2_79hj7_1","--variant-title-3":"_--variant-title-3_79hj7_1","--variant-title-4":"_--variant-title-4_79hj7_1","--variant-title-5":"_--variant-title-5_79hj7_1","--variant-title-6":"_--variant-title-6_79hj7_1","--variant-featured-1":"_--variant-featured-1_79hj7_1","--variant-featured-2":"_--variant-featured-2_79hj7_1","--variant-featured-3":"_--variant-featured-3_79hj7_1","--variant-body-1":"_--variant-body-1_79hj7_1","--variant-body-2":"_--variant-body-2_79hj7_1","--variant-body-3":"_--variant-body-3_79hj7_1","--variant-caption-1":"_--variant-caption-1_79hj7_1","--variant-caption-2":"_--variant-caption-2_79hj7_1","--weight-regular":"_--weight-regular_79hj7_1","--weight-medium":"_--weight-medium_79hj7_1","--weight-bold":"_--weight-bold_79hj7_1","--color-neutral":"_--color-neutral_79hj7_1","--color-neutral-faded":"_--color-neutral-faded_79hj7_1","--color-primary":"_--color-primary_79hj7_1","--color-positive":"_--color-positive_79hj7_1","--color-critical":"_--color-critical_79hj7_1","--color-disabled":"_--color-disabled_79hj7_1","--decoration-line-through":"_--decoration-line-through_79hj7_1","--align-start--m":"_--align-start--m_79hj7_1","--align-center--m":"_--align-center--m_79hj7_1","--align-end--m":"_--align-end--m_79hj7_1","--variant-title-1--m":"_--variant-title-1--m_79hj7_1","--variant-title-2--m":"_--variant-title-2--m_79hj7_1","--variant-title-3--m":"_--variant-title-3--m_79hj7_1","--variant-title-4--m":"_--variant-title-4--m_79hj7_1","--variant-title-5--m":"_--variant-title-5--m_79hj7_1","--variant-title-6--m":"_--variant-title-6--m_79hj7_1","--variant-featured-1--m":"_--variant-featured-1--m_79hj7_1","--variant-featured-2--m":"_--variant-featured-2--m_79hj7_1","--variant-featured-3--m":"_--variant-featured-3--m_79hj7_1","--variant-body-1--m":"_--variant-body-1--m_79hj7_1","--variant-body-2--m":"_--variant-body-2--m_79hj7_1","--variant-body-3--m":"_--variant-body-3--m_79hj7_1","--variant-caption-1--m":"_--variant-caption-1--m_79hj7_1","--variant-caption-2--m":"_--variant-caption-2--m_79hj7_1","--align-start--l":"_--align-start--l_79hj7_1","--align-center--l":"_--align-center--l_79hj7_1","--align-end--l":"_--align-end--l_79hj7_1","--variant-title-1--l":"_--variant-title-1--l_79hj7_1","--variant-title-2--l":"_--variant-title-2--l_79hj7_1","--variant-title-3--l":"_--variant-title-3--l_79hj7_1","--variant-title-4--l":"_--variant-title-4--l_79hj7_1","--variant-title-5--l":"_--variant-title-5--l_79hj7_1","--variant-title-6--l":"_--variant-title-6--l_79hj7_1","--variant-featured-1--l":"_--variant-featured-1--l_79hj7_1","--variant-featured-2--l":"_--variant-featured-2--l_79hj7_1","--variant-featured-3--l":"_--variant-featured-3--l_79hj7_1","--variant-body-1--l":"_--variant-body-1--l_79hj7_1","--variant-body-2--l":"_--variant-body-2--l_79hj7_1","--variant-body-3--l":"_--variant-body-3--l_79hj7_1","--variant-caption-1--l":"_--variant-caption-1--l_79hj7_1","--variant-caption-2--l":"_--variant-caption-2--l_79hj7_1","--align-start--xl":"_--align-start--xl_79hj7_1","--align-center--xl":"_--align-center--xl_79hj7_1","--align-end--xl":"_--align-end--xl_79hj7_1","--variant-title-1--xl":"_--variant-title-1--xl_79hj7_1","--variant-title-2--xl":"_--variant-title-2--xl_79hj7_1","--variant-title-3--xl":"_--variant-title-3--xl_79hj7_1","--variant-title-4--xl":"_--variant-title-4--xl_79hj7_1","--variant-title-5--xl":"_--variant-title-5--xl_79hj7_1","--variant-title-6--xl":"_--variant-title-6--xl_79hj7_1","--variant-featured-1--xl":"_--variant-featured-1--xl_79hj7_1","--variant-featured-2--xl":"_--variant-featured-2--xl_79hj7_1","--variant-featured-3--xl":"_--variant-featured-3--xl_79hj7_1","--variant-body-1--xl":"_--variant-body-1--xl_79hj7_1","--variant-body-2--xl":"_--variant-body-2--xl_79hj7_1","--variant-body-3--xl":"_--variant-body-3--xl_79hj7_1","--variant-caption-1--xl":"_--variant-caption-1--xl_79hj7_1","--variant-caption-2--xl":"_--variant-caption-2--xl_79hj7_1"},VJ={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Dn=t=>{const{variant:e,color:n,weight:r,align:a,decoration:i,maxLines:s,children:o,className:c,attributes:h}=t,b=typeof e=="string"?e:(e==null?void 0:e.xl)||(e==null?void 0:e.l)||(e==null?void 0:e.m)||(e==null?void 0:e.s),v=t.as||b&&VJ[b]||"div",E=Rt(Nu.root,n&&Nu[`--color-${n}`],...en(Nu,"--variant",e),...en(Nu,"--align",a),r&&Nu[`--weight-${r}`],i&&Nu[`--decoration-${i}`],s!==void 0&&Nu["--clamp"],c),C=Object.assign(Object.assign({},h==null?void 0:h.style),{"--rs-text-lines":s});return te.createElement(v,Object.assign({},h,{className:E,style:C}),o)},KN=te.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),qJ=KN.Provider,$b=()=>te.useContext(KN),ZN=()=>{const{attributes:t,required:e,hasError:n,disabled:r}=$b();return{attributes:t,required:e,hasError:n,disabled:r}},WJ="_root_1i3ho_1",KJ="_label_1i3ho_1",ZJ="_caption_1i3ho_1",QN={root:WJ,label:KJ,caption:ZJ},X7=(t,e)=>`${t}-${e||"caption"}`,ar=t=>{const{children:e,id:n,required:r,hasError:a,group:i,disabled:s,size:o}=t,c=Wp(n),h=i?"fieldset":"div",[b,v]=te.useState(!1),[E,C]=te.useState(!1),F=[b&&X7(c),E&&X7(c,"error")].filter(Boolean).join(" "),T={id:c,"aria-describedby":F},P=()=>{C(!0)},D=()=>{v(!0)};return te.createElement(h,null,te.createElement(qJ,{value:{required:r,hasError:a,errorRef:P,helperRef:D,attributes:T,group:i,disabled:s,size:o}},e))},QJ=t=>{const{children:e}=t,{attributes:n,required:r,group:a,disabled:i,size:s}=$b(),o=`${n.id}-label`,c=a?{as:"legend",attributes:{id:o}}:{as:"label",attributes:{id:o,htmlFor:n.id}};return te.createElement(Dn,Object.assign({},c,{variant:s==="large"?"body-2":"body-3",weight:"medium",className:QN.label,color:i?"disabled":void 0}),e,r&&te.createElement(Dn,{color:i?"disabled":"critical",as:"span"},"*"))},XN=t=>{const{children:e,variant:n,disabled:r}=t,{attributes:a,size:i,helperRef:s,errorRef:o}=$b(),c=X7(a.id,n),h=n==="error"?"critical":"neutral-faded",b=n==="error"?o:s;return te.createElement(Dn,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":h,attributes:{id:c,role:h?"alert":void 0,ref:b},className:QN.caption},e)},XJ=t=>{const{children:e}=t,{disabled:n}=$b();return te.createElement(XN,{disabled:n},e)},JJ=t=>{const{children:e}=t,{hasError:n}=$b();return n?te.createElement(XN,{variant:"error"},e):null};ar.Label=QJ;ar.Helper=XJ;ar.Error=JJ;const YJ="_root_ovu5c_1",HF={root:YJ,"--side-all":"_--side-all_ovu5c_1","--side-inline":"_--side-inline_ovu5c_1","--side-start":"_--side-start_ovu5c_1","--side-end":"_--side-end_ovu5c_1","--side-block":"_--side-block_ovu5c_1","--side-top":"_--side-top_ovu5c_1","--side-bottom":"_--side-bottom_ovu5c_1"},d_=t=>{const{side:e="all",children:n,className:r,attributes:a}=t,i=typeof e=="string"?[e]:e,s=Rt(HF.root,i.map(o=>HF[`--side-${o}`]),r);return te.createElement("div",Object.assign({},a,{className:s}),n)},eY="_root_1iu93_1",tY="_input_1iu93_1",nY="_affix_1iu93_1",rY="_icon_1iu93_1",aY="_slot_1iu93_1",iY="_attachment_1iu93_1",As={root:eY,input:tY,affix:nY,icon:rY,slot:aY,attachment:iY,"attachment--position-start":"_attachment--position-start_1iu93_1","attachment--position-end":"_attachment--position-end_1iu93_1","--disabled":"_--disabled_1iu93_1","--size-medium":"_--size-medium_1iu93_1","--size-large":"_--size-large_1iu93_1","--size-xlarge":"_--size-xlarge_1iu93_1","--variant-faded":"_--variant-faded_1iu93_1","--variant-headless":"_--variant-headless_1iu93_1","--status-error":"_--status-error_1iu93_1","--size-medium--m":"_--size-medium--m_1iu93_1","--size-large--m":"_--size-large--m_1iu93_1","--size-xlarge--m":"_--size-xlarge--m_1iu93_1","--size-medium--l":"_--size-medium--l_1iu93_1","--size-large--l":"_--size-large--l_1iu93_1","--size-xlarge--l":"_--size-xlarge--l_1iu93_1","--size-medium--xl":"_--size-medium--xl_1iu93_1","--size-large--xl":"_--size-large--xl_1iu93_1","--size-xlarge--xl":"_--size-xlarge--xl_1iu93_1"},zF=t=>{const{slot:e,icon:n,size:r,affix:a,position:i}=t;if(!n&&!e&&!a)return null;const s=Rt(As.attachment,As[`attachment--position-${i}`]),o=[e&&te.createElement("div",{className:As.slot,key:"slot"},e),n&&te.createElement("div",{className:As.icon,key:"icon"},te.createElement(Dc,{size:ed(r,c=>c==="large"?5:c==="xlarge"?6:4),svg:n})),a&&te.createElement("div",{className:As.affix,key:"affix"},a)].filter(Boolean);return te.createElement("span",{className:s},i==="end"?o.reverse():o)},Bm=t=>{var e;const{onChange:n,onFocus:r,onBlur:a,name:i,value:s,defaultValue:o,placeholder:c,icon:h,endIcon:b,startSlot:v,endSlot:E,prefix:C,suffix:F,size:T="medium",variant:P="outline",className:D,attributes:M}=t,O=ZN(),k=Wp(t.id),U=(O==null?void 0:O.attributes.id)||((e=t.inputAttributes)===null||e===void 0?void 0:e.id)||k,V=(O==null?void 0:O.disabled)||t.disabled,Y=(O==null?void 0:O.hasError)||t.hasError,L=Object.assign(Object.assign({},t.inputAttributes),O==null?void 0:O.attributes),X=Rt(As.root,D,T&&en(As,"--size",T),Y&&As["--status-error"],V&&As["--disabled"],P&&As[`--variant-${P}`]),B=u=>{n&&n({name:i,value:u.target.value,event:u})};return te.createElement("div",Object.assign({},M,{"data-rs-aligner-target":!0,className:X}),te.createElement(zF,{position:"start",icon:h,slot:v,size:T,affix:C}),te.createElement("input",Object.assign({},L,{className:As.input,disabled:V,name:i,placeholder:c,value:s,defaultValue:o,onChange:B,onFocus:r||(L==null?void 0:L.onFocus),onBlur:a||(L==null?void 0:L.onBlur),id:U})),te.createElement(zF,{position:"end",icon:b,slot:E,size:T,affix:F}))};Bm.Aligner=d_;const sY="Tab",oY="ArrowUp",cY="ArrowDown",J7="data-rs-keyboard",i6="data-rs-focus";class lY{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(e){return this.chain[e]}isLast(e){return this.tailId!==null&&e===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(e){const n=this.tailId,r=n&&this.get(n),a=this.generateId();return this.chain[a]={previousId:n,data:e},r&&(r.nextId=a),this.tailId=a,a}remove(e){var n,r;const a=this.chain[e];if(!a)return;const i=a.previousId,s=i&&this.get(i),o=a.nextId,c=o&&this.get(o);s&&(s.nextId=(n=a.nextId)!==null&&n!==void 0?n:null),c&&(c.previousId=(r=a.previousId)!==null&&r!==void 0?r:null),o||(this.tailId=i??null);const h=this.get(e).data;return delete this.chain[e],h}removePreviousTill(e,n){const r=this.get(e),a=this.remove(e);return!r||!r.previousId||n(r)?a:this.removePreviousTill(r.previousId,n)}}const JN=()=>document.documentElement.hasAttribute(J7),YN='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',Y7=()=>document.querySelector(`[${i6}]`)||document.activeElement,ew=(t,e)=>{const r=Array.from(t.querySelectorAll(YN)).filter(a=>!a.hasAttribute("disabled")&&a.clientHeight>0);return e&&r.length&&r.unshift(e),r},uY=t=>{const{root:e,extraElement:n,target:r,mode:a}=t,i=ew(e,n),s=i.length-1,o=Y7(),c=i.indexOf(o),h={next:c+1,prev:c-1,first:0,last:s};let b=h[r];const v=b>s||b<0;return v&&(a==="action-menu"?b=r==="prev"?h.first:h.last:b=r==="prev"?h.last:h.first),{overflow:v,el:i[b]}},Q5=(t,e)=>{var n;(n=document.querySelector(`[${i6}]`))===null||n===void 0||n.removeAttribute(i6),e==="selection-menu"?t.setAttribute(i6,"true"):t.focus()},fY=(()=>{let t=[];const e=r=>{let a=r.parentNode&&r.parentNode.firstChild;for(;a;){const i=a!==r,s=a.nodeType===1&&!a.hasAttribute("aria-hidden");i&&s&&(a.setAttribute("aria-hidden","true"),t.push(a)),a=a.nextSibling}},n=()=>{t.forEach(r=>{r.removeAttribute("aria-hidden")}),t=[]};return r=>{let a=r;for(t.length&&n();a!==document.body;)e(a),a=a.parentElement;return{release:n}}})(),I8=(()=>{let t=null,e=null;const n=new lY;return(r,a={})=>{const{mode:i="dialog",onNavigateOutside:s,includeTrigger:o}=a,c=Y7(),h=i==="dialog",b=i==="content-menu",v=i==="selection-menu",E=h||b,C=i==="action-menu"||v,F=ew(r,o?c:void 0);let T;const P=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const k=ew(r,o?c:void 0);k.length&&Q5(k[0],i)}),D=(k={})=>{const{withoutFocusReturn:U}=k;n.removePreviousTill(T,Y=>document.body.contains(Y.data.trigger)),P.disconnect(),c&&c.focus({preventScroll:U||!JN()}),t&&(t(),e&&e.release(),t=null,e=null);const V=n.tailId&&n.get(n.tailId);V&&I8(V.data.root,V.data.options)},M=k=>{const U=k.key,V=U===sY,Y=V&&!k.shiftKey,L=V&&k.shiftKey,X=C&&U===oY,B=C&&U===cY,u=L&&E||X,d=Y&&E||B,p=Y7()===c,l=uY({root:r,target:u?"prev":"next",extraElement:o?c:void 0,mode:i});if(V&&C||b&&V&&l.overflow){L&&!p&&k.preventDefault(),D(),s==null||s();return}!u&&!d||(k.preventDefault(),l.el&&Q5(l.el,i))};if(t&&t(),h&&(e=fY(r)),P.observe(r,{childList:!0,subtree:!0}),!F.length)return null;document.addEventListener("keydown",M),t=()=>document.removeEventListener("keydown",M);const O=n.tailId&&n.get(n.tailId);return(!O||r!==O.data.root)&&(T=n.add({root:r,trigger:c,options:a}),Q5(F[0],i)),D}})(),dY=100,hY=150;let N0={},lo=null;const e$=t=>{N0[t]&&(t===lo&&(lo=N0[t].parentId),delete N0[t],lo===null&&(N0={}))},pY=(t,e,n)=>{var r;const a=lo?N0[lo]:void 0;!((n==null?void 0:n.current)&&a&&((r=a.contentRef.current)===null||r===void 0?void 0:r.contains(n.current)))&&n&&lo&&e$(lo),N0[t]={parentId:lo,triggerRef:n,contentRef:e},lo=t},t$=(t=!1,e,n)=>{const r=Wp(),a=te.useCallback(()=>lo===r,[r]);return te.useEffect(()=>{t?pY(r,e,n):e$(r)},[t,r,e,n]),a},So=typeof window<"u"?te.useLayoutEffect:te.useEffect,cp="+",rs={},X5=[],n$=t=>t===" "?t:t.replace(/\s/g,"").toLowerCase(),h_=t=>n$(t).split(cp).sort().join(cp),GF=t=>{if(t.key)return t.altKey&&t.key!=="Alt"?t.code.toLowerCase().replace(/key|digit|numpad/,""):t.key.toLowerCase()},yY=t=>{const e=[],n=t.join(cp),a=h_(n).split(cp),i=(s,o)=>{o.forEach((c,h)=>{const b=s?`${s}+${c}`:c;e.push(b),i(b,o.slice(h+1))})};return i("",a),e},mY=(t,e)=>{const n=Object.keys(t);n.length&&yY(n).forEach(r=>{e(r)})},J5=(t,e)=>{Object.keys(t).forEach(n=>{n.split(",").forEach(r=>{const a=t[n];a&&e(h_(r),a)})})};class bY{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(e,n)=>{J5(e,(r,a)=>{a&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:a,ref:n}))})},this.unbindHotkeys=e=>{J5(e,(n,r)=>{var a,i;r&&((a=this.hotkeyMap[n])===null||a===void 0||a.data.forEach(s=>{s.callback===r&&this.hotkeyMap[n].data.delete(s)}),!((i=this.hotkeyMap[n])===null||i===void 0)&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(e,n)=>{mY(e,r=>{const a=this.hotkeyMap[r];!a||a.used||a!=null&&a.data.size&&a.data.forEach(i=>{var s;!((s=i.ref)===null||s===void 0)&&s.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(e[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=e=>{const n=h_(e.key);J5(this.hotkeyMap,(r,a)=>{r.split(cp).includes(n)&&(a.used=!1)})}}}const U2=new bY,r$=te.createContext({}),gY=t=>{const{children:e}=t,[n,r]=te.useState(0),[a,i]=te.useState(0),s=te.useCallback(E=>{if(E.repeat||a===0)return;const C=GF(E);C&&(rs[C]=E,(C==="meta"||C==="control")&&(rs.mod=E),r(Object.keys(rs).length),C==="meta"&&X5.push(...Object.keys(rs)),rs.Meta&&X5.push(C))},[a]),o=te.useCallback(E=>{if(a===0)return;const C=GF(E);C&&(delete rs[C],(C==="meta"||C==="control")&&delete rs.mod,C==="meta"&&X5.forEach(F=>{delete rs[F]}),r(Object.keys(rs).length))},[a]),c=E=>!n$(E).split(cp).some(F=>!rs[F]),h=te.useCallback((E,C)=>(i(F=>F+1),U2.bindHotkeys(E,C),()=>{i(F=>F-1),U2.unbindHotkeys(E)}),[]),b=te.useCallback(E=>{E.key&&(s(E),U2.handleKeyDown(rs,E))},[s]),v=te.useCallback(E=>{E.key&&(o(E),U2.handleKeyUp(E))},[o]);return te.useEffect(()=>(window.addEventListener("keydown",b),window.addEventListener("keyup",v),()=>{window.removeEventListener("keydown",b),window.removeEventListener("keyup",v)}),[b,v]),te.createElement(r$.Provider,{value:{addHotkeys:h,isPressed:c}},e)},xY=()=>te.useContext(r$),a$=(t,e=[],n)=>{const{addHotkeys:r,isPressed:a}=xY(),i=te.useRef(null),s=(n==null?void 0:n.ref)||i;return te.useEffect(()=>{const o=r(t,s);return()=>o==null?void 0:o()},[r,Object.keys(t).join(","),...e]),{ref:s,checkHotkeyState:a}},i$=te.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),vY=t=>{const e=te.useState(t||!1),[n,r]=e;return So(()=>{const a=new MutationObserver(i=>{i.forEach(s=>{if(s.attributeName!=="dir")return;const o=s.target.dir==="rtl";n!==o&&r(o)})});return a.observe(document.documentElement,{attributes:!0}),()=>a.disconnect()},[n]),So(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),e},s$=()=>te.useContext(i$).rtl,p_=t=>{const e=t&&window.getComputedStyle(t),n=e==null?void 0:e.overflowY,r=e==null?void 0:e.position,a=n==null?void 0:n.includes("scroll"),i=r==="fixed";return t===document.body||!t?document.body:a&&t.scrollHeight>t.clientHeight||i?t:p_(t.parentElement)},VF=16,j2=["top-start","top","top-end"],H2=["bottom-start","bottom","bottom-end"],z2=["start","start-bottom","start-top"],G2=["end","end-bottom","end-top"],wY={top:[...j2,...H2,...G2,...z2],bottom:[...H2,...j2,...G2,...z2],start:[...z2,...G2,...j2,...H2],end:[...G2,...z2,...j2,...H2]},EY=t=>t.includes("start")?t.replace("start","end"):t.includes("end")?t.replace("end","start"):t,qF=(t,e)=>Math.floor(t/2-e/2),AY=t=>{const n=["top","bottom","start","end"].find(r=>t.startsWith(r))||"bottom";return wY[n]},Y5=t=>{const e=document.documentElement,n=e.scrollLeft,r=n+e.clientWidth,a=e.scrollTop,i=a+e.clientHeight;return t.left>=n&&t.left+t.width<=r&&t.top>=a&&t.top+t.height<=i},WF=(t,e,n,r)=>{const{position:a,rtl:i,width:s}=r;let o=0,c=0,h=a;switch(i&&(h=EY(h)),(s==="full"||s==="trigger")&&(h=h.includes("top")?"top":"bottom"),h){case"bottom":case"top":o=qF(t.width,e.width)+t.left;break;case"start":case"start-top":case"start-bottom":o=t.left-e.width;break;case"end":case"end-top":case"end-bottom":o=t.right;break;case"top-start":case"bottom-start":o=t.left;break;case"top-end":case"bottom-end":o=t.right-e.width;break}switch(h){case"top":case"top-start":case"top-end":c=t.top-e.height;break;case"bottom":case"bottom-start":case"bottom-end":c=t.bottom;break;case"start":case"end":c=qF(t.height,e.height)+t.top;break;case"start-top":case"end-top":c=t.top;break;case"start-bottom":case"end-bottom":c=t.bottom-e.height;break}if(c===void 0||o===void 0)throw Error(`[Reshaped, flyout]: ${h} position is not valid`);c=Math.round(c+(window.scrollY||0)-n.top),o=Math.round(o+(window.scrollX||0)-n.left);let b=Math.ceil(e.width);const v=Math.ceil(e.height);return s==="full"?(o=VF,b=window.innerWidth-VF*2):s==="trigger"&&(b=t.width),{styles:{left:o,top:c,width:b,height:v},position:h}},o$={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},cg={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},_Y=(t,e,n)=>{const{position:r,forcePosition:a,width:i}=n,s=e.cloneNode(!0),o=t.getBoundingClientRect();s.style="",Object.keys(cg).forEach(C=>{const F=cg[C];s.style[C]=F.toString()}),i&&(i==="trigger"?s.style.width=`${o.width}px`:i!=="full"&&(s.style.width=i)),document.body.appendChild(s);const c=s.getBoundingClientRect(),h=p_(t),b=h.getBoundingClientRect(),v={top:b.top+document.documentElement.scrollTop-h.scrollTop,left:b.left+document.documentElement.scrollLeft-h.scrollLeft};let E=WF(o,c,v,n);if(!Y5(E.styles)&&!a){const C=AY(r),F=C.filter(P=>P==="top"||P==="bottom"),T=(P,D={})=>{const{fullWidth:M}=D;P.some(O=>{const k=Object.assign(Object.assign({},n),{width:M?"full":n.width,position:O}),U=WF(o,c,v,k);return Y5(U.styles)?(E=U,!0):!1})};T(C),Y5(E.styles)||T(F,{fullWidth:!0})}return s.parentNode.removeChild(s),E},CY=(t,e)=>{switch(e.type){case"render":return Object.assign(Object.assign({},t),{status:"rendered",styles:Object.assign({pointerEvents:"none"},cg)});case"position":return Object.assign(Object.assign({},t),{status:t.status==="visible"?"visible":"positioned",position:e.payload.position,styles:Object.assign(Object.assign({},o$),e.payload.styles)});case"show":return Object.assign(Object.assign({},t),{status:"visible"});case"hide":return Object.assign(Object.assign({},t),{status:t.status==="idle"?"idle":"hidden"});case"remove":return Object.assign(Object.assign({},t),{status:"idle",styles:cg});default:throw new Error("Invalid reducer type")}},BY=(t,e,n)=>{const{position:r="bottom",forcePosition:a,width:i}=n,[s]=s$(),[o,c]=te.useReducer(CY,{position:r,styles:o$,status:"idle"}),h=te.useCallback(()=>{c({type:"render"})},[]),b=te.useCallback(()=>{c({type:"show"})},[]),v=te.useCallback(()=>{c({type:"hide"})},[]),E=te.useCallback(()=>{c({type:"remove"})},[]),C=te.useCallback(()=>{if(!t.current||!e.current)return;const F=_Y(t.current,e.current,{width:i,position:r,forcePosition:a,rtl:s});c({type:"position",payload:F})},[t,e,r,s,a,i]);return te.useEffect(()=>{o.status==="rendered"&&C(),o.status==="positioned"&&k8(()=>b())},[o.status,C,b]),te.useMemo(()=>({position:o.position,styles:o.styles,status:o.status,updatePosition:C,render:h,hide:v,remove:E}),[h,C,v,E,o.position,o.styles,o.status])},SY=(t,e)=>{te.useEffect(()=>{if(!e)return;const n=r=>{let a=!1;t.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(a=!0)}),!a&&e(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,...t])},c$=te.createContext({}),y_=()=>te.useContext(c$),TY=c$.Provider,l$=t=>{const{triggerType:e="click",onOpen:n,onClose:r,children:a,forcePosition:i,trapFocusMode:s,width:o,disableHideAnimation:c,contentGap:h,contentClassName:b,contentAttributes:v,position:E,active:C,id:F,instanceRef:T}=t,[P]=s$(),D=te.useRef(null),M=te.useRef(null),O=Wp(F),k=te.useRef(),U=te.useRef(null),V=te.useRef(!1),Y=te.useRef(!1),L=te.useRef(!0),X=BY(D,M,{width:o,position:E,defaultActive:C,forcePosition:i}),B=y_(),{status:u,updatePosition:d,render:p,hide:l,remove:y}=X,g=t$(e!=="hover"&&u!=="idle",M,D),w=te.useCallback(()=>{k.current&&clearTimeout(k.current)},[k]),x=te.useCallback(()=>{!V.current&&u==="idle"&&(n==null||n())},[u]),f=te.useCallback(z=>{var Q;!(e==="click"&&!g())&&u!=="idle"&&(r==null||r(),z!=null&&z.closeParents&&((Q=B==null?void 0:B.handleClose)===null||Q===void 0||Q.call(B)))},[u,g,e]),m=te.useCallback(z=>{var Q;!((Q=M.current)===null||Q===void 0)&&Q.contains(z.relatedTarget)||e==="hover"&&s==="content-menu"||Y.current||f()},[f,e,s]),_=te.useCallback(()=>{x()},[x]),A=te.useCallback(()=>{w(),k.current=setTimeout(x,dY)},[w,k,x]),S=te.useCallback(()=>{w(),k.current=setTimeout(()=>f(),hY)},[w,k,f]),$=te.useCallback(()=>{u==="idle"?x():f()},[u,x,f]),q=()=>Y.current=!0,I=()=>Y.current=!1;So(()=>{if(C){p();return}zJ()&&!c?l():y()},[C,p,l,c]);const K=te.useCallback(z=>{M.current!==z.currentTarget||z.propertyName!=="transform"||u==="hidden"&&y()},[y,u]);return So(()=>{u!=="visible"||!M.current||(U.current=I8(M.current,{mode:s,includeTrigger:e==="hover"&&s==="content-menu",onNavigateOutside:()=>{U.current=null,f()}}))},[u,e,f,s]),te.useEffect(()=>{!c&&u!=="hidden"||c&&u!=="idle"||U.current&&(e==="hover"&&(V.current=!0,setTimeout(()=>{V.current=!1},100)),U.current({withoutFocusReturn:!L.current}),U.current=null,L.current=!0)},[u,e,c]),te.useEffect(()=>()=>{U.current&&U.current(),U.current=null},[]),te.useEffect(()=>{const z=oJ(d,10);return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[d]),te.useEffect(()=>{d()},[P,d]),te.useImperativeHandle(T,()=>({open:x,close:f}),[x,f]),a$({Escape:()=>f()},[f]),SY([M,D],()=>{L.current=!1,f()}),te.createElement(TY,{value:{id:O,flyout:X,width:o,triggerElRef:D,flyoutElRef:M,handleClose:f,handleOpen:x,handleFocus:_,handleBlur:m,handleMouseEnter:A,handleMouseLeave:S,handleTransitionEnd:K,handleClick:$,handleContentMouseDown:q,handleContentMouseUp:I,triggerType:e,trapFocusMode:s,contentGap:h,contentClassName:b,contentAttributes:v}},a)},FY=t=>{const{defaultActive:e,onClose:n,onOpen:r}=t,[a,i]=te.useState(e||!1),s=()=>{i(!1),n&&n()},o=()=>{i(!0),r&&r()};return te.createElement(l$,Object.assign({},t,{defaultActive:void 0,active:a,onClose:s,onOpen:o}))},MY=t=>{const{children:e}=t,{id:n,triggerElRef:r,triggerType:a,flyout:i,handleFocus:s,handleBlur:o,handleMouseEnter:c,handleMouseLeave:h,handleClick:b,trapFocusMode:v}=y_();let E={onBlur:o,ref:r};return(a==="click"||v==="action-menu")&&(E.onClick=b),a==="hover"&&(E.onMouseEnter=c,E.onMouseLeave=h),(a==="hover"&&v!=="action-menu"||a==="focus")&&(E.onFocus=s,E["aria-describedby"]=n),(a==="click"||a==="focus"||v==="action-menu")&&(v==="dialog"?E["aria-haspopup"]="dialog":v==="selection-menu"?(E["aria-haspopup"]="listbox",E["aria-autocomplete"]="list"):E["aria-haspopup"]="menu",E["aria-expanded"]=i.status!=="idle",E["aria-controls"]=i.status!=="idle"?n:void 0),te.createElement(te.Fragment,null,e(E))},u$=te.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),m_=te.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),DY=()=>{const{mode:t}=te.useContext(m_);return t},kY=()=>{const{colorMode:t,theme:e,setTheme:n}=te.useContext(u$),{mode:r,setMode:a,invertMode:i}=te.useContext(m_);return te.useMemo(()=>({theme:e,setTheme:n,colorMode:t||r,setColorMode:a,invertColorMode:i}),[t,r,a,i,e,n])},IY="_root_1j8c4_1",OY={root:IY},Lb=t=>{const{name:e,defaultName:n,colorMode:r,children:a,className:i}=t,[s,o]=te.useState(!1),[c,h]=te.useState(n),b=DY(),v=kY(),E=!v.theme,C=e||c||v.theme,F=E?b:v.colorMode,P=r==="inverted"?F==="light"?"dark":"light":r||F,D=Rt(OY.root,i),M=O=>{h(O)};return So(()=>{o(!0)},[]),So(()=>{if(!document||!E)return;const O=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",C),O||document.documentElement.setAttribute("data-rs-color-mode",P),()=>{document.documentElement.removeAttribute("data-rs-theme"),O||document.documentElement.removeAttribute("data-rs-color-mode")}},[C,P,E]),te.createElement(u$.Provider,{value:{theme:C,colorMode:P,setTheme:M}},te.createElement("div",{className:D,"data-rs-theme":E?void 0:C,"data-rs-color-mode":E||!r&&!s?void 0:P},a))},PY=t=>{const{defaultMode:e,children:n}=t,[r,a]=te.useState(e||"light"),i=te.useCallback(o=>{document.documentElement.setAttribute("data-rs-color-mode",o),a(c=>(c!==o&&jJ(),o))},[]);So(()=>{k8(()=>{HJ()})},[r]),So(()=>{const o=document.documentElement.getAttribute("data-rs-color-mode");o&&i(o)},[]);const s=te.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return te.createElement(m_.Provider,{value:s},n)},f$=te.createContext({}),RY=()=>te.useContext(f$),lg=t=>{const{children:e,targetRef:n}=t,r=RY(),a=n||r.scopeRef;return AN.createPortal(te.createElement(Lb,null,e),(a==null?void 0:a.current)||document.body)};function NY(t){const{children:e}=t,n=te.useRef(null);return te.createElement(f$.Provider,{value:{scopeRef:n}},e(n))}lg.Scope=NY;const $Y="_content_2oj3i_1",LY="_inner_2oj3i_1",qd={content:$Y,inner:LY,"--width-trigger":"_--width-trigger_2oj3i_1","--position-top":"_--position-top_2oj3i_1","--position-top-end":"_--position-top-end_2oj3i_1","--position-top-start":"_--position-top-start_2oj3i_1","--position-bottom":"_--position-bottom_2oj3i_1","--position-bottom-end":"_--position-bottom-end_2oj3i_1","--position-bottom-start":"_--position-bottom-start_2oj3i_1","--position-start":"_--position-start_2oj3i_1","--position-start-bottom":"_--position-start-bottom_2oj3i_1","--position-start-top":"_--position-start-top_2oj3i_1","--position-end":"_--position-end_2oj3i_1","--position-end-bottom":"_--position-end-bottom_2oj3i_1","--position-end-top":"_--position-end-top_2oj3i_1","--visible":"_--visible_2oj3i_1","--animated":"_--animated_2oj3i_1"},UY=t=>{const{children:e,className:n,attributes:r}=t,{flyout:a,id:i,flyoutElRef:s,triggerElRef:o,handleTransitionEnd:c,triggerType:h,handleMouseEnter:b,handleMouseLeave:v,handleContentMouseDown:E,handleContentMouseUp:C,contentGap:F,contentClassName:T,contentAttributes:P,trapFocusMode:D,width:M}=y_(),{styles:O,status:k,position:U}=a,[V,Y]=te.useState(!1);if(So(()=>{Y(!0)},[]),k==="idle"||!V)return null;const L=Rt(qd.content,k==="visible"&&qd["--visible"],["visible","hidden"].includes(k)&&qd["--animated"],U&&qd[`--position-${U}`],M==="trigger"&&qd["--width-trigger"]),X=Rt(qd.inner,n,T);let B;h==="hover"?B="tooltip":D==="dialog"?B="dialog":D==="selection-menu"?B="listbox":D==="action-menu"&&(B="menu");const u=te.createElement("div",{className:L,style:Object.assign(Object.assign({},O),{"--rs-flyout-gap":F}),ref:s,onTransitionEnd:c,onMouseEnter:h==="hover"?b:void 0,onMouseLeave:h==="hover"?v:void 0,onMouseDown:E,onTouchStart:E,onMouseUp:C,onTouchEnd:C},te.createElement("div",Object.assign({role:B},r,{id:i,"aria-modal":h==="click",style:P==null?void 0:P.style,className:X}),e)),d=p_(o.current);return te.createElement(lg,{targetRef:d===document.body?void 0:{current:d}},u)},Hf=t=>{const{active:e}=t;return typeof e=="boolean"?te.createElement(l$,Object.assign({},t)):te.createElement(FY,Object.assign({},t))};Hf.Trigger=MY;Hf.Content=UY;const jY="_root_dn36s_1",HY={root:jY},d$=t=>{if(!t)return null;const e=br("--rs-p",t);return{classNames:HY.root,variables:e}};Hf.Trigger;Hf.Content;const zY="_root_13n2x_1",GY="_icon_13n2x_1",VY="_content_13n2x_1",qY="_aligner_13n2x_1",zo={root:zY,icon:GY,content:VY,"--rounded-corners":"_--rounded-corners_13n2x_1","--size-small":"_--size-small_13n2x_1","--size-medium":"_--size-medium_13n2x_1","--size-large":"_--size-large_13n2x_1","--color-neutral":"_--color-neutral_13n2x_1","--selected":"_--selected_13n2x_1","--color-critical":"_--color-critical_13n2x_1","--color-primary":"_--color-primary_13n2x_1","--disabled":"_--disabled_13n2x_1",aligner:qY,"--rounded-corners-true--m":"_--rounded-corners-true--m_13n2x_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13n2x_1","--size-small--m":"_--size-small--m_13n2x_1","--size-medium--m":"_--size-medium--m_13n2x_1","--size-large--m":"_--size-large--m_13n2x_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13n2x_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13n2x_1","--size-small--l":"_--size-small--l_13n2x_1","--size-medium--l":"_--size-medium--l_13n2x_1","--size-large--l":"_--size-large--l_13n2x_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13n2x_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13n2x_1","--size-small--xl":"_--size-small--xl_13n2x_1","--size-medium--xl":"_--size-medium--xl_13n2x_1","--size-large--xl":"_--size-large--xl_13n2x_1"},WY=t=>te.createElement(d_,Object.assign({},t,{side:t.side||"inline",className:[zo.aligner,t.className]})),KY=(t,e)=>{const{icon:n,startSlot:r,endSlot:a,children:i,color:s="primary",selected:o,disabled:c,onClick:h,href:b,size:v="medium",roundedCorners:E,className:C,attributes:F}=t,T=Rt(zo.root,C,en(zo,"--size",v),en(zo,"--rounded-corners",E),s&&zo[`--color-${s}`],o&&zo["--selected"],c&&zo["--disabled"]),P=ed(v,M=>M==="large"?3:2),D=ed(v,M=>M==="large"?5:4);return te.createElement(Kp,{disabled:c,className:T,attributes:Object.assign(Object.assign({},F),{"data-rs-aligner-target":!0}),onClick:h,href:b,ref:e},te.createElement(rt,{direction:"row",gap:P,align:"center"},n&&te.createElement(Dc,{svg:n,className:zo.icon,size:D}),!n&&r,i&&te.createElement(rt.Item,{grow:!0,className:zo.content},i),a))},ZY=te.forwardRef(KY);ZY.Aligner=WY;te.createContext(null);te.createContext({});const QY="_root_1j37c_1",XY="_inner_1j37c_1",V2={root:QY,"rs-reshaped-loader":"_rs-reshaped-loader_1j37c_1",inner:XY,"--color-inherit":"_--color-inherit_1j37c_1","--color-primary":"_--color-primary_1j37c_1","--color-positive":"_--color-positive_1j37c_1","--color-critical":"_--color-critical_1j37c_1","--size-small":"_--size-small_1j37c_1","--size-medium":"_--size-medium_1j37c_1","--size-small--m":"_--size-small--m_1j37c_1","--size-medium--m":"_--size-medium--m_1j37c_1","--size-small--l":"_--size-small--l_1j37c_1","--size-medium--l":"_--size-medium--l_1j37c_1","--size-small--xl":"_--size-small--xl_1j37c_1","--size-medium--xl":"_--size-medium--xl_1j37c_1"},JY=t=>{const{size:e="small",color:n="primary",className:r,attributes:a}=t,i=a==null?void 0:a["aria-label"],s=Rt(V2.root,r,en(V2,"--size",e),n&&V2[`--color-${n}`]);return te.createElement("span",Object.assign({},a,{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:s}),te.createElement("span",{className:V2.inner}))},YY="_root_1pr7i_1",eee="_loader_1pr7i_1",tee="_icon_1pr7i_1",nee="_text_1pr7i_1",ree="_group_1pr7i_1",aee="_aligner_1pr7i_1",Mr={root:YY,loader:eee,icon:tee,"--icon-position-end":"_--icon-position-end_1pr7i_1",text:nee,"--loading":"_--loading_1pr7i_1","--elevated":"_--elevated_1pr7i_1","--icon-only":"_--icon-only_1pr7i_1","--rounded":"_--rounded_1pr7i_1","--size-small":"_--size-small_1pr7i_1","--size-medium":"_--size-medium_1pr7i_1","--size-large":"_--size-large_1pr7i_1","--size-xlarge":"_--size-xlarge_1pr7i_1","--full-width":"_--full-width_1pr7i_1","--variant-faded":"_--variant-faded_1pr7i_1","--color-critical":"_--color-critical_1pr7i_1","--color-inherit":"_--color-inherit_1pr7i_1","--color-neutral":"_--color-neutral_1pr7i_1","--color-positive":"_--color-positive_1pr7i_1","--color-primary":"_--color-primary_1pr7i_1","--variant-ghost":"_--variant-ghost_1pr7i_1","--variant-outline":"_--variant-outline_1pr7i_1","--variant-solid":"_--variant-solid_1pr7i_1","--color-black":"_--color-black_1pr7i_1","--color-white":"_--color-white_1pr7i_1","--highlighted":"_--highlighted_1pr7i_1","--disabled":"_--disabled_1pr7i_1",group:ree,aligner:aee,"--size-small--m":"_--size-small--m_1pr7i_1","--size-medium--m":"_--size-medium--m_1pr7i_1","--size-large--m":"_--size-large--m_1pr7i_1","--size-xlarge--m":"_--size-xlarge--m_1pr7i_1","--full-width-true--m":"_--full-width-true--m_1pr7i_1","--full-width-false--m":"_--full-width-false--m_1pr7i_1","--size-small--l":"_--size-small--l_1pr7i_1","--size-medium--l":"_--size-medium--l_1pr7i_1","--size-large--l":"_--size-large--l_1pr7i_1","--size-xlarge--l":"_--size-xlarge--l_1pr7i_1","--full-width-true--l":"_--full-width-true--l_1pr7i_1","--full-width-false--l":"_--full-width-false--l_1pr7i_1","--size-small--xl":"_--size-small--xl_1pr7i_1","--size-medium--xl":"_--size-medium--xl_1pr7i_1","--size-large--xl":"_--size-large--xl_1pr7i_1","--size-xlarge--xl":"_--size-xlarge--xl_1pr7i_1","--full-width-true--xl":"_--full-width-true--xl_1pr7i_1","--full-width-false--xl":"_--full-width-false--xl_1pr7i_1"},iee=t=>{const{children:e,className:n,attributes:r}=t,a=Rt(Mr.group,n);return te.createElement("div",Object.assign({},r,{className:a,role:"group"}),e)},see=t=>te.createElement(d_,Object.assign({},t,{side:t.side||t.position,className:[Mr.aligner,t.className]})),oee=(t,e)=>{const{variant:n="solid",color:r="neutral",elevated:a,highlighted:i,fullWidth:s,loading:o,disabled:c,type:h,href:b,size:v="medium",className:E,children:C,rounded:F,attributes:T,onClick:P,icon:D,endIcon:M}=t,O=(D||M)&&!C,k=Rt(Mr.root,E,r&&Mr[`--color-${r}`],n&&Mr[`--variant-${n}`],en(Mr,"--size",v),en(Mr,"--full-width",s),a&&n!=="ghost"&&Mr["--elevated"],F&&Mr["--rounded"],c&&Mr["--disabled"],o&&Mr["--loading"],i&&Mr["--highlighted"],O&&Mr["--icon-only"]),U=V=>{if(!(V==="start"&&D||V==="end"&&M))return null;const B=Rt(Mr.icon,V==="end"&&Mr["--icon-position-end"]),u=ed(v,d=>d==="large"?5:d==="xlarge"?6:4);return te.createElement(Dc,{className:B,svg:V==="start"?D:M,size:u,autoWidth:!0})};return te.createElement(Kp,{disabled:c||o,className:k,attributes:Object.assign(Object.assign({},T),{"data-rs-aligner-target":!0}),type:h,onClick:P,href:b,ref:e},o&&te.createElement("div",{className:Mr.loader},te.createElement(JY,{size:"small",color:"inherit"})),U("start"),C&&te.createElement("span",{className:Mr.text},C),U("end"))},kn=te.forwardRef(oee);kn.Group=iee;kn.Aligner=see;const cee="_root_pscqv_1",N1={root:cee,"--color-primary":"_--color-primary_pscqv_1","--color-critical":"_--color-critical_pscqv_1","--color-positive":"_--color-positive_pscqv_1","--color-inherit":"_--color-inherit_pscqv_1","--variant-plain":"_--variant-plain_pscqv_1","--disabled":"_--disabled_pscqv_1","--variant-underline":"_--variant-underline_pscqv_1","--with-icon":"_--with-icon_pscqv_1"},lee=(t,e)=>{const{icon:n,disabled:r,href:a,color:i="primary",variant:s="underline",className:o,children:c,attributes:h,type:b,onClick:v}=t,E=Rt(N1.root,o,r&&N1["--disabled"],s&&N1[`--variant-${s}`],i&&N1[`--color-${i}`],n&&N1["--with-icon"]);return te.createElement(Kp,{href:a,disabled:r,className:E,attributes:h,type:b,onClick:v,ref:e},n&&te.createElement(Dc,{svg:n}),c)};te.forwardRef(lee);const uee="_root_1uhu3_1",fee="_content_1uhu3_1",Wd={root:uee,content:fee,"--selected":"_--selected_1uhu3_1","--elevated":"_--elevated_1uhu3_1","--actionable":"_--actionable_1uhu3_1"},dee=(t,e)=>{const{padding:n=4}=t,{selected:r,elevated:a,bleed:i,height:s,onClick:o,href:c,children:h,className:b,attributes:v,as:E="div"}=t,C=!!c||!!o,F=VN("medium"),T=qN(i),P=d$(n),D=u_(s),M=Rt(Wd.root,F==null?void 0:F.classNames,T==null?void 0:T.classNames,P==null?void 0:P.classNames,D==null?void 0:D.classNames,C&&Wd["--actionable"],a&&Wd["--elevated"],r&&Wd["--selected"],b),O=Object.assign(Object.assign(Object.assign(Object.assign({},v==null?void 0:v.style),T==null?void 0:T.variables),P==null?void 0:P.variables),D==null?void 0:D.variables);return C?te.createElement(Kp,{className:M,attributes:Object.assign(Object.assign({},v),{style:O}),href:c,as:E,onClick:o,ref:e},te.createElement("span",{className:Wd.content},h)):te.createElement(E,Object.assign({},v,{onClick:o,href:c,ref:e,className:M,style:O}),te.createElement("span",{className:Wd.content},h))},b_=te.forwardRef(dee);var KF;(function(t){t.back="back",t.forward="forward"})(KF||(KF={}));const hee="_root_1e26k_1",pee={root:hee},yee=t=>{const{name:e,value:n,type:r,onChange:a,onFocus:i,onBlur:s,checked:o,defaultChecked:c,disabled:h,className:b,attributes:v}=t,E=Rt(pee.root,b);return te.createElement("input",Object.assign({},v,{className:E,type:r,name:e,value:n,checked:o,defaultChecked:c,disabled:h,onChange:a,onFocus:i||(v==null?void 0:v.onFocus),onBlur:s||(v==null?void 0:v.onBlur)}))};te.createContext(null);const mee="_root_2d6rt_1",bee={root:mee},gee=t=>{const{children:e,padding:n=4,width:r,className:a,attributes:i}=t,s=Rt(bee.root,a);return te.createElement(rt,{attributes:i,className:s,paddingInline:n,width:r,maxWidth:"100%"},e)},ZF=t=>{const[e,n]=te.useState(t||!1),r=te.useCallback(()=>{n(!0)},[]),a=te.useCallback(()=>{n(!1)},[]),i=te.useCallback(()=>{n(s=>!s)},[]);return{active:e,activate:r,deactivate:a,toggle:i}},xee=(()=>{let t;return()=>{if(t)return t;const e=document.createElement("div");return e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t}})(),vee=()=>{const[t,e]=te.useState(!1),n=te.useRef(),r=te.useRef(!1),a=te.useCallback(()=>{const{body:s}=document,o=s.getBoundingClientRect();if(r.current=o.left+o.right{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),e(!1)},[e,r,n]);return{scrollLocked:t,lockScroll:a,unlockScroll:i}},wee="_root_1x20z_1",Eee="_wrapper_1x20z_1",Aee="_inner_1x20z_1",_ee="_content_1x20z_1",Kd={root:wee,wrapper:Eee,inner:Aee,content:_ee,"--visible":"_--visible_1x20z_1","--transparent":"_--transparent_1x20z_1"},Cee=t=>{const{active:e,children:n,transparent:r,onClose:a,className:i,attributes:s}=t,[o,c]=te.useState(!1),h=te.useRef(null),b=te.useRef(!1),v=te.useRef(null),{lockScroll:E,unlockScroll:C}=vee(),{active:F,activate:T,deactivate:P}=ZF(e||!1),{active:D,activate:M,deactivate:O}=ZF(e||!1),k=t$(e,h),U=Rt(Kd.root,D&&Kd["--visible"],r&&Kd["--transparent"],i),V=p=>{if(!h.current)return;const l=h.current.firstChild;if(l)return l.contains(p)},Y=()=>{h.current&&(v.current=I8(h.current))},L=()=>{v.current&&(v.current(),v.current=null)},X=te.useCallback(()=>{!D||!k()||a&&a()},[D,k]),B=p=>{b.current=!V(p.target)},u=p=>{const l=!V(p.target);b.current&&l&&!r&&X()},d=p=>{p.propertyName!=="opacity"||p.target!==p.currentTarget||D||(r||C(),P())};return a$({Escape:X},[X]),te.useEffect(()=>{e&&!F&&T(),!e&&F&&O()},[e,T,O,F]),te.useEffect(()=>{F&&(r||E(),k8(()=>M()))},[F,M,E,r]),te.useEffect(()=>{if(F)return Y(),()=>L()},[F]),te.useEffect(()=>()=>{r||C()},[C,r]),So(()=>{c(!0)},[]),!F||!o?null:te.createElement(lg,null,te.createElement(lg.Scope,null,p=>te.createElement("div",Object.assign({},s,{ref:p,role:"button",tabIndex:-1,className:U,onMouseDown:B,onMouseUp:u,onTransitionEnd:d}),te.createElement("div",{className:Kd.wrapper},te.createElement("div",{className:Kd.inner},te.createElement("div",{className:Kd.content,ref:h},typeof n=="function"?n({active:D}):n))))))},Bee="_root_cz0if_1",ev={root:Bee,"--position-center":"_--position-center_cz0if_1","--position-bottom":"_--position-bottom_cz0if_1","--position-start":"_--position-start_cz0if_1","--position-end":"_--position-end_cz0if_1","--active":"_--active_cz0if_1","--position-center--m":"_--position-center--m_cz0if_1","--position-bottom--m":"_--position-bottom--m_cz0if_1","--position-start--m":"_--position-start--m_cz0if_1","--position-end--m":"_--position-end--m_cz0if_1","--position-center--l":"_--position-center--l_cz0if_1","--position-bottom--l":"_--position-bottom--l_cz0if_1","--position-start--l":"_--position-start--l_cz0if_1","--position-end--l":"_--position-end--l_cz0if_1","--position-center--xl":"_--position-center--xl_cz0if_1","--position-bottom--xl":"_--position-bottom--xl_cz0if_1","--position-start--xl":"_--position-start--xl_cz0if_1","--position-end--xl":"_--position-end--xl_cz0if_1"},h$=te.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),p$=()=>te.useContext(h$),See=t=>{const{children:e}=t,{id:n,setTitleMounted:r}=p$();return te.useEffect(()=>(r(!0),()=>r(!1)),[r]),te.createElement(Dn,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`}},e)},Tee=t=>{const{children:e}=t,{id:n,setSubtitleMounted:r}=p$();return te.useEffect(()=>(r(!0),()=>r(!1)),[r]),te.createElement(Dn,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`}},e)},g_=t=>{const{children:e,onClose:n,active:r,size:a,padding:i=4,position:s="center",transparentOverlay:o,className:c,attributes:h}=t,b=Wp(),[v,E]=te.useState(!1),[C,F]=te.useState(!1),T=d$(i),P=te.useMemo(()=>({titleMounted:v,setTitleMounted:E,subtitleMounted:C,setSubtitleMounted:F,id:b}),[b,C,v]);return te.createElement(Cee,{onClose:n,active:r,transparent:o},({active:D})=>{const M=Rt(ev.root,c,T==null?void 0:T.classNames,D&&ev["--active"],en(ev,"--position",s));return te.createElement(h$.Provider,{value:P},te.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign({},T==null?void 0:T.variables),br("--rs-modal-size",a)),"aria-labelledby":v?`${b}-title`:void 0,"aria-describedby":C?`${b}-subtitle`:void 0,className:M,"aria-modal":"true",role:"dialog"}),e))})};g_.Title=See;g_.Subtitle=Tee;te.createContext(null);const QF={short:4e3,long:8e3},qy=["top-start","top","top-end","bottom-start","bottom","bottom-end"],Fee=qy.reduce((t,e)=>Object.assign({[e]:[]},t),{}),y$={queues:Fee,show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},O8=te.createContext(y$),x_=()=>{const{add:t,hide:e}=te.useContext(O8);return te.useMemo(()=>({show:t,hide:e}),[t,e])},Mee="_container_1g6nd_1",Dee="_wrapper_1g6nd_1",kee="_region_1g6nd_1",uo={container:Mee,"container--visible":"_container--visible_1g6nd_1",wrapper:Dee,"container--index-0":"_container--index-0_1g6nd_1","container--index-1":"_container--index-1_1g6nd_1","container--index-2":"_container--index-2_1g6nd_1","container--index-overflow":"_container--index-overflow_1g6nd_1",region:kee,"region--position-top":"_region--position-top_1g6nd_1","region--position-top-start":"_region--position-top-start_1g6nd_1","region--position-top-end":"_region--position-top-end_1g6nd_1","region--position-bottom":"_region--position-bottom_1g6nd_1","region--position-bottom-start":"_region--position-bottom-start_1g6nd_1","region--position-bottom-end":"_region--position-bottom-end_1g6nd_1"},Iee=t=>{const{size:e="small",text:n,children:r,color:a="inverted",icon:i,title:s,actionsSlot:o,startSlot:c,collapsed:h,attributes:b}=t;let v=a==="inverted"||a==="neutral"?"elevation-overlay":a;a==="neutral"&&(v=h?"neutral":"elevation-overlay");const E=a==="neutral"?"neutral-faded":"transparent",C=e==="small"?"span":"div",F=e==="large";let T=[];o&&(T=Array.isArray(o)?o:[o]);const P=(s||n)&&te.createElement(te.Fragment,null,s&&te.createElement(Dn,{variant:"body-3",weight:"bold",as:C},s," "),te.createElement(Dn,{variant:"body-3",as:C},n)),D=te.createElement(rt,{backgroundColor:v,borderColor:E,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:F?"start":"center",className:uo.toast,attributes:b},i&&te.createElement(Dc,{size:5,svg:i,className:uo.icon}),c&&!i&&te.createElement(rt.Item,null,c),te.createElement(rt.Item,{grow:!0},te.createElement(rt,{direction:F?"column":"row",align:F?"start":"center",gap:3},te.createElement(rt.Item,{grow:!0},P&&r||e!=="small"?te.createElement(rt,{gap:.5},P,r&&te.createElement(rt,{gap:3},r)):P||r),T.length&&te.createElement(rt,{direction:"row",align:"center",gap:2},T.map((M,O)=>{const k=e==="large"?O===0:O===T.length-1,V={variant:k?"solid":"ghost",size:"small",color:k?a==="neutral"||a==="inverted"?"neutral":"white":"inherit",elevated:a!=="neutral"};return M.type===kn?te.createElement(kn,Object.assign({},V,M.props,{key:O})):M})))));return a==="inverted"?te.createElement(Lb,{colorMode:"inverted"},D):D},Oee=t=>{const{toastProps:e,id:n,status:r,inspected:a,index:i}=t,{timeout:s="short"}=e,{show:o,hide:c,remove:h}=te.useContext(O8),[b,v]=te.useState(),E=te.useRef(),C=te.useRef(!1),F=te.useRef(null),T=te.useRef(null),P=r==="entered",D=Rt(uo.container,P&&uo["container--visible"],i===0&&uo[`container--index-${i}`],!a&&(i===1||i===2)&&uo[`container--index-${i}`],!a&&i>=3&&uo["container--index-overflow"]),M=te.useCallback(()=>{E.current&&clearTimeout(E.current)},[]),O=te.useCallback(()=>{M();const U=typeof s=="string"?QF[s]:s;s!==0&&(E.current=setTimeout(()=>{c(n)},U??QF.short))},[c,n,s,M]),k=U=>{U.propertyName==="height"&&(P||h(n))};return te.useEffect(()=>{P&&(a?M():O())},[a,O,M,P]),te.useEffect(()=>{T.current&&v(T.current.clientHeight),o(n),O()},[o,n,O]),te.useEffect(()=>{T.current&&(P?F.current=I8(T.current,{includeTrigger:!0,mode:"content-menu"}):F.current&&JN()&&(F.current(),F.current=null))},[P]),te.useEffect(()=>{if(!P||i>0)return;const U=()=>{C.current=!0,k8(()=>{C.current=!1}),T.current&&v(T.current.clientHeight)};return window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[P,i]),te.createElement("li",{className:D,style:{height:r==="entered"?`calc(${b}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:C.current?"0s":void 0},onTransitionEnd:k,onFocus:M,onBlur:O},te.createElement("span",{className:uo.wrapper},te.createElement(Iee,Object.assign({},e,{collapsed:i>0&&!a,attributes:{ref:T}}))))},Pee=t=>{const{position:e}=t,{queues:n,options:r}=te.useContext(O8),[a,i]=te.useState(!1),s=te.useRef(!1),o=te.useRef(null),c=n[e],{width:h,expanded:b}=(r==null?void 0:r[e])||{},v=Rt(uo.region,uo[`region--position-${e}`]),E=c.filter(M=>M.status==="entered").length;let C=0;const F=()=>{s.current=!0},T=M=>{let O=M.target,k=!1;for(;O&&O!==o.current&&!k;)k=O.matches(YN),O=O.parentElement;k||i(U=>!U),s.current=!1},P=()=>{s.current||i(!0)},D=()=>{s.current||i(!1)};return te.useEffect(()=>{c.length===0&&i(!1)},[c.length]),c.length?te.createElement("ul",{role:"region","aria-live":"polite",className:v,ref:o,onTouchStart:F,onClick:T,onMouseEnter:P,onMouseLeave:D,style:{width:h}},c.map((M,O)=>{const k=E-O+C-1;return M.status!=="entered"&&(C+=1),te.createElement(Oee,Object.assign({key:M.id},M,{index:k,inspected:a||!!b}))})):null};var Ree=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a`__rs-toast-${Nee++}`,Lee=(t,e)=>{let n;switch(e.type){case"add":const r=e.payload.toastProps||{},{position:a="bottom-end"}=r,i=Ree(r,["position"]);return Object.assign(Object.assign({},t),{[a]:[...t[a],{id:e.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:s}=e.payload;return n=Object.assign({},t),qy.forEach(h=>{n[h]=n[h].map(b=>b.status!=="entering"?b:b.id===s?Object.assign(Object.assign({},b),{status:"entered"}):b)}),n;case"hide":const{id:o}=e.payload;return n=Object.assign({},t),qy.forEach(h=>{n[h]=n[h].map(b=>b.id===o?Object.assign(Object.assign({},b),{status:"exiting"}):b)}),n;case"remove":const{id:c}=e.payload;return n=Object.assign({},t),qy.forEach(h=>{n[h]=n[h].filter(b=>b.id!==c)}),n}},Uee=t=>{const{children:e,options:n}=t,[r,a]=te.useReducer(Lee,y$.queues),i=te.useCallback(b=>{const v=$ee();return a({type:"add",payload:{toastProps:b,id:v}}),v},[]),s=te.useCallback(b=>{a({type:"show",payload:{id:b}})},[]),o=te.useCallback(b=>{a({type:"hide",payload:{id:b}})},[]),c=te.useCallback(b=>{a({type:"remove",payload:{id:b}})},[]),h=te.useMemo(()=>({queues:r,add:i,show:s,hide:o,remove:c,inspecting:!1,options:n}),[r,s,o,i,c,n]);return te.createElement(O8.Provider,{value:h},e,qy.map(b=>te.createElement(Pee,{position:b,key:b})))},jee=()=>{te.useEffect(()=>{const t=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(J7,"true")},e=()=>{document.documentElement.removeAttribute(J7)};return window.addEventListener("keydown",t),window.addEventListener("mousedown",e),()=>{window.removeEventListener("keydown",t),window.removeEventListener("mousedown",e)}},[])},Hee="_root_a8lj9_1",zee={root:Hee},Gee=t=>{const{children:e,defaultRTL:n,defaultViewport:r="s",toastOptions:a}=t,i=vY(n);return jee(),te.createElement(i$.Provider,{value:{rtl:i,defaultViewport:r}},te.createElement(gY,null,te.createElement(Uee,{options:a},e)))},Vee=t=>{const{theme:e,defaultTheme:n="reshaped",defaultColorMode:r,className:a}=t,i=Rt(zee.root,a);return te.createElement(PY,{defaultMode:r},te.createElement(Lb,{name:e,defaultName:n,className:i},te.createElement(Gee,Object.assign({},t),t.children)))},qee=()=>te.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},te.createElement("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),te.createElement("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),Wee="_root_155r3_1",Kee="_input_155r3_1",Zee="_slot_155r3_1",Qee="_arrow_155r3_1",Us={root:Wee,input:Kee,slot:Zee,arrow:Qee,"--size-medium":"_--size-medium_155r3_1","--size-large":"_--size-large_155r3_1","--size-xlarge":"_--size-xlarge_155r3_1","--variant-faded":"_--variant-faded_155r3_1","--variant-headless":"_--variant-headless_155r3_1","--status-error":"_--status-error_155r3_1","--placeholder":"_--placeholder_155r3_1","--disabled":"_--disabled_155r3_1","--size-medium--m":"_--size-medium--m_155r3_1","--size-large--m":"_--size-large--m_155r3_1","--size-xlarge--m":"_--size-xlarge--m_155r3_1","--size-medium--l":"_--size-medium--l_155r3_1","--size-large--l":"_--size-large--l_155r3_1","--size-xlarge--l":"_--size-xlarge--l_155r3_1","--size-medium--xl":"_--size-medium--xl_155r3_1","--size-large--xl":"_--size-large--xl_155r3_1","--size-xlarge--xl":"_--size-xlarge--xl_155r3_1"},Xee=t=>{var e,n;const{onChange:r,onClick:a,onFocus:i,onBlur:s,name:o,value:c,defaultValue:h,placeholder:b,options:v,children:E,icon:C,startSlot:F,size:T="medium",variant:P="outline",className:D,attributes:M}=t,[O,k]=te.useState(c===void 0?!h:!c),U=ZN(),V=Wp(t.id),Y=((e=U==null?void 0:U.attributes)===null||e===void 0?void 0:e.id)||((n=t.inputAttributes)===null||n===void 0?void 0:n.id)||V,L=(U==null?void 0:U.disabled)||t.disabled,X=(U==null?void 0:U.hasError)||t.hasError,B=Object.assign(Object.assign({},t.inputAttributes),U==null?void 0:U.attributes),u=Rt(Us.root,D,T&&en(Us,"--size",T),X&&Us["--status-error"],L&&Us["--disabled"],O&&v&&Us["--placeholder"],P&&Us[`--variant-${P}`]),d=l=>{const y=l.target.value;c===void 0&&k(!y),r&&r({name:o,value:y,event:l})};te.useEffect(()=>{c!==void 0&&k(!c)},[c]);const p=(F||C)&&te.createElement("div",{className:Us.slot},C?te.createElement(Dc,{size:ed(T,l=>l==="large"?5:l==="xlarge"?6:4),svg:C}):F);return te.createElement("div",Object.assign({},M,{className:u}),v?te.createElement(te.Fragment,null,p,te.createElement("select",Object.assign({},B,{className:Us.input,disabled:L,name:o,value:c,defaultValue:h,onChange:d,onFocus:i||(B==null?void 0:B.onFocus),onBlur:s||(B==null?void 0:B.onBlur),id:Y}),b&&te.createElement("option",{value:""},b),v.map(l=>te.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},l.label)))):te.createElement(te.Fragment,null,te.createElement(Kp,{className:Us.input,disabled:L,onClick:a,attributes:Object.assign(Object.assign({},B),{onFocus:i||(B==null?void 0:B.onFocus),onBlur:s||(B==null?void 0:B.onBlur)})},p,E||(b?te.createElement(Dn,{color:"neutral-faded"},b):null)),te.createElement("input",{type:"hidden",value:c,name:o})),te.createElement("div",{className:Us.arrow},te.createElement(Dc,{svg:qee,color:L?"disabled":"neutral-faded",size:ed(T,l=>l==="large"||l==="xlarge"?5:4)})))},Jee="_root_7e41r_1",Yee="_bar_7e41r_1",ete="_input_7e41r_1",tte="_selection_7e41r_1",nte="_tooltip_7e41r_1",rte="_thumb_7e41r_1",q2={root:Jee,bar:Yee,input:ete,selection:tte,tooltip:nte,thumb:rte,"thumb--active":"_thumb--active_7e41r_1","--disabled":"_--disabled_7e41r_1"},ate=(t,e)=>{const{name:n,value:r,disabled:a,active:i,position:s,max:o,min:c,onChange:h,onDragStart:b,renderValue:v}=t,E=te.useId(),C=Rt(q2.thumb,i&&q2["thumb--active"]),F=v?v({value:r}):r,T=P=>{h(+P.target.value)};return te.createElement(te.Fragment,null,te.createElement("input",{className:q2.input,type:"range",name:n,value:r,onChange:T,disabled:a,max:o,min:c,"aria-labelledby":E}),te.createElement("div",{ref:e,className:C,onMouseDown:b,onTouchStart:b,style:{insetInlineStart:`${s}%`},id:E,"aria-hidden":"true"},te.createElement(Lb,{className:q2.tooltip,colorMode:"inverted"},te.createElement(Dn,{variant:"caption-1",weight:"medium"},F))))};te.forwardRef(ate);var ite=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const e=te.useContext(m$),{id:n}=e,r=ite(e,["id"]);return Object.assign(Object.assign({},r),{panelId:t!==void 0?`${n}-tabs-panel-${t}`:void 0,buttonId:t!==void 0?`${n}-tabs-button-${t}`:void 0})},ote="_root_l28uv_1",cte="_list_l28uv_1",lte="_inner_l28uv_1",ute="_listItem_l28uv_1",fte="_button_l28uv_1",dte="_buttonContent_l28uv_1",hte="_icon_l28uv_1",pte="_radio_l28uv_1",yte="_selector_l28uv_1",mte="_next_l28uv_1",bte="_prev_l28uv_1",gte="_panel_l28uv_1",xte="_item_l28uv_1",Zd={root:ote,list:cte,inner:lte,listItem:ute,button:fte,buttonContent:dte,icon:hte,radio:pte,"--item-active":"_--item-active_l28uv_1",selector:yte,"--selector-hidden":"_--selector-hidden_l28uv_1","--selector-animated":"_--selector-animated_l28uv_1",next:mte,prev:bte,panel:gte,"--panel-hidden":"_--panel-hidden_l28uv_1","--direction-row":"_--direction-row_l28uv_1","--direction-column":"_--direction-column_l28uv_1",item:xte,"--variant-borderless":"_--variant-borderless_l28uv_1","--variant-pills":"_--variant-pills_l28uv_1","--variant-pills-elevated":"_--variant-pills-elevated_l28uv_1","--size-medium":"_--size-medium_l28uv_1","--size-large":"_--size-large_l28uv_1","--item-width-equal":"_--item-width-equal_l28uv_1","--cut-off-end":"_--cut-off-end_l28uv_1","--cut-off-start":"_--cut-off-start_l28uv_1","--cut-off-both":"_--cut-off-both_l28uv_1"},vte=(t,e)=>{const{value:n,children:r,icon:a,href:i,attributes:s}=t,{onChange:o,panelId:c,name:h,size:b,value:v,selection:E,elActiveRef:C,elPrevActiveRef:F,elScrollableRef:T}=ste(n),P=te.useRef(null),D=v===n,M=D&&E.status==="idle",O=Rt(Zd.item,M&&Zd["--item-active"]),k=!!h,U={role:"tab",tabIndex:D?0:-1,"aria-selected":D},V=te.useCallback(()=>{if(!("current"in P))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");F.current=C.current,C.current=P.current},[C,F]),Y=()=>{var L,X,B;if(i&&!o)return;const u=T.current,d=(L=P.current)===null||L===void 0?void 0:L.parentElement,p=(X=C.current)===null||X===void 0?void 0:X.parentElement;if(V(),o&&o({value:n,name:h}),!u||!d||!p||u.scrollWidth===u.clientWidth)return;const l=d.offsetLeft.5)&&((B=P.current)===null||B===void 0||B.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return te.useEffect(()=>{D&&V()},[D,V]),te.createElement("div",Object.assign({},s,{className:O,ref:P,role:"presentation"}),te.createElement(Kp,{ref:e,href:i,insetFocus:!0,onClick:h?void 0:Y,className:Zd.button,as:h?"label":void 0,attributes:Object.assign(Object.assign({},!k&&U),{"aria-controls":c})},h&&te.createElement(yee,{type:"radio",name:h,value:n,checked:M,onChange:Y,className:Zd.radio}),te.createElement("span",{className:Zd.buttonContent},a&&te.createElement(Dc,{svg:a,className:Zd.icon,size:4}),r&&te.createElement(Dn,{variant:b==="large"?"body-2":"body-3"},r))))};te.forwardRef(vte);const wte="_root_kygcp_1",Ete={root:wte},Ate=t=>{const{id:e,text:n,children:r,onOpen:a,onClose:i,position:s="bottom",active:o}=t;return te.createElement(Hf,{id:e,active:o,position:s,onOpen:a,onClose:i,triggerType:"hover"},te.createElement(Hf.Trigger,null,r),te.createElement(Hf.Content,null,te.createElement(Lb,{colorMode:"inverted"},te.createElement(Dn,{variant:"caption-1",className:Ete.root},n))))};var _te=function(e){return Cte(e)&&!Bte(e)};function Cte(t){return!!t&&typeof t=="object"}function Bte(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Fte(t)}var Ste=typeof Symbol=="function"&&Symbol.for,Tte=Ste?Symbol.for("react.element"):60103;function Fte(t){return t.$$typeof===Tte}function Mte(t){return Array.isArray(t)?[]:{}}function ug(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Sm(Mte(t),t,e):t}function Dte(t,e,n){return t.concat(e).map(function(r){return ug(r,n)})}function kte(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(a){r[a]=ug(t[a],n)}),Object.keys(e).forEach(function(a){!n.isMergeableObject(e[a])||!t[a]?r[a]=ug(e[a],n):r[a]=Sm(t[a],e[a],n)}),r}function Sm(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||Dte,n.isMergeableObject=n.isMergeableObject||_te;var r=Array.isArray(e),a=Array.isArray(t),i=r===a;return i?r?n.arrayMerge(t,e,n):kte(t,e,n):ug(e,n)}Sm.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,a){return Sm(r,a,n)},{})};var tw=Sm,W2={},Ite=typeof W2=="object"&&W2&&W2.Object===Object&&W2;const b$=Ite;var Ote=typeof self=="object"&&self&&self.Object===Object&&self,Pte=b$||Ote||Function("return this")();const Oo=Pte;var Rte=Oo.Symbol;const hu=Rte;var g$=Object.prototype,Nte=g$.hasOwnProperty,$te=g$.toString,$1=hu?hu.toStringTag:void 0;function Lte(t){var e=Nte.call(t,$1),n=t[$1];try{t[$1]=void 0;var r=!0}catch{}var a=$te.call(t);return r&&(e?t[$1]=n:delete t[$1]),a}var Ute=Object.prototype,jte=Ute.toString;function Hte(t){return jte.call(t)}var zte="[object Null]",Gte="[object Undefined]",XF=hu?hu.toStringTag:void 0;function xd(t){return t==null?t===void 0?Gte:zte:XF&&XF in Object(t)?Lte(t):Hte(t)}function x$(t,e){return function(n){return t(e(n))}}var Vte=x$(Object.getPrototypeOf,Object);const v_=Vte;function vd(t){return t!=null&&typeof t=="object"}var qte="[object Object]",Wte=Function.prototype,Kte=Object.prototype,v$=Wte.toString,Zte=Kte.hasOwnProperty,Qte=v$.call(Object);function JF(t){if(!vd(t)||xd(t)!=qte)return!1;var e=v_(t);if(e===null)return!0;var n=Zte.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&v$.call(n)==Qte}var YF=Array.isArray,eM=Object.keys,Xte=Object.prototype.hasOwnProperty,Jte=typeof Element<"u";function nw(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=YF(t),r=YF(e),a,i,s;if(n&&r){if(i=t.length,i!=e.length)return!1;for(a=i;a--!==0;)if(!nw(t[a],e[a]))return!1;return!0}if(n!=r)return!1;var o=t instanceof Date,c=e instanceof Date;if(o!=c)return!1;if(o&&c)return t.getTime()==e.getTime();var h=t instanceof RegExp,b=e instanceof RegExp;if(h!=b)return!1;if(h&&b)return t.toString()==e.toString();var v=eM(t);if(i=v.length,i!==eM(e).length)return!1;for(a=i;a--!==0;)if(!Xte.call(e,v[a]))return!1;if(Jte&&t instanceof Element&&e instanceof Element)return t===e;for(a=i;a--!==0;)if(s=v[a],!(s==="_owner"&&t.$$typeof)&&!nw(t[s],e[s]))return!1;return!0}return t!==t&&e!==e}var Yte=function(e,n){try{return nw(e,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const xl=md(Yte);var ene=!0;function w$(t,e){if(!ene){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function tne(){this.__data__=[],this.size=0}function E$(t,e){return t===e||t!==t&&e!==e}function P8(t,e){for(var n=t.length;n--;)if(E$(t[n][0],e))return n;return-1}var nne=Array.prototype,rne=nne.splice;function ane(t){var e=this.__data__,n=P8(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():rne.call(e,n,1),--this.size,!0}function ine(t){var e=this.__data__,n=P8(e,t);return n<0?void 0:e[n][1]}function sne(t){return P8(this.__data__,t)>-1}function one(t,e){var n=this.__data__,r=P8(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function zc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=pre}var yre="[object Arguments]",mre="[object Array]",bre="[object Boolean]",gre="[object Date]",xre="[object Error]",vre="[object Function]",wre="[object Map]",Ere="[object Number]",Are="[object Object]",_re="[object RegExp]",Cre="[object Set]",Bre="[object String]",Sre="[object WeakMap]",Tre="[object ArrayBuffer]",Fre="[object DataView]",Mre="[object Float32Array]",Dre="[object Float64Array]",kre="[object Int8Array]",Ire="[object Int16Array]",Ore="[object Int32Array]",Pre="[object Uint8Array]",Rre="[object Uint8ClampedArray]",Nre="[object Uint16Array]",$re="[object Uint32Array]",yn={};yn[Mre]=yn[Dre]=yn[kre]=yn[Ire]=yn[Ore]=yn[Pre]=yn[Rre]=yn[Nre]=yn[$re]=!0;yn[yre]=yn[mre]=yn[Tre]=yn[bre]=yn[Fre]=yn[gre]=yn[xre]=yn[vre]=yn[wre]=yn[Ere]=yn[Are]=yn[_re]=yn[Cre]=yn[Bre]=yn[Sre]=!1;function Lre(t){return vd(t)&&F$(t.length)&&!!yn[xd(t)]}function w_(t){return function(e){return t(e)}}var M$=typeof ri=="object"&&ri&&!ri.nodeType&&ri,Wy=M$&&typeof ai=="object"&&ai&&!ai.nodeType&&ai,Ure=Wy&&Wy.exports===M$,nv=Ure&&b$.process,jre=function(){try{var t=Wy&&Wy.require&&Wy.require("util").types;return t||nv&&nv.binding&&nv.binding("util")}catch{}}();const lp=jre;var sM=lp&&lp.isTypedArray,Hre=sM?w_(sM):Lre;const zre=Hre;var Gre=Object.prototype,Vre=Gre.hasOwnProperty;function D$(t,e){var n=jb(t),r=!n&&ire(t),a=!n&&!r&&T$(t),i=!n&&!r&&!a&&zre(t),s=n||r||a||i,o=s?ere(t.length,String):[],c=o.length;for(var h in t)(e||Vre.call(t,h))&&!(s&&(h=="length"||a&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||hre(h,c)))&&o.push(h);return o}var qre=Object.prototype;function E_(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||qre;return t===n}var Wre=x$(Object.keys,Object);const Kre=Wre;var Zre=Object.prototype,Qre=Zre.hasOwnProperty;function Xre(t){if(!E_(t))return Kre(t);var e=[];for(var n in Object(t))Qre.call(t,n)&&n!="constructor"&&e.push(n);return e}function k$(t){return t!=null&&F$(t.length)&&!A$(t)}function A_(t){return k$(t)?D$(t):Xre(t)}function Jre(t,e){return t&&N8(e,A_(e),t)}function Yre(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var eae=Object.prototype,tae=eae.hasOwnProperty;function nae(t){if(!Ub(t))return Yre(t);var e=E_(t),n=[];for(var r in t)r=="constructor"&&(e||!tae.call(t,r))||n.push(r);return n}function __(t){return k$(t)?D$(t,!0):nae(t)}function rae(t,e){return t&&N8(e,__(e),t)}var I$=typeof ri=="object"&&ri&&!ri.nodeType&&ri,oM=I$&&typeof ai=="object"&&ai&&!ai.nodeType&&ai,aae=oM&&oM.exports===I$,cM=aae?Oo.Buffer:void 0,lM=cM?cM.allocUnsafe:void 0;function iae(t,e){if(e)return t.slice();var n=t.length,r=lM?lM(n):new t.constructor(n);return t.copy(r),r}function O$(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=0)&&(n[a]=t[a]);return n}function TM(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var K8=ve.createContext(void 0);K8.displayName="FormikContext";var mse=K8.Provider,bse=K8.Consumer;function Z$(){var t=ve.useContext(K8);return t||w$(!1),t}var FM=function(e){return Array.isArray(e)&&e.length===0},fa=function(e){return typeof e=="function"},Hb=function(e){return e!==null&&typeof e=="object"},gse=function(e){return String(Math.floor(Number(e)))===e},rv=function(e){return Object.prototype.toString.call(e)==="[object String]"},Q$=function(e){return ve.Children.count(e)===0},av=function(e){return Hb(e)&&fa(e.then)};function hr(t,e,n,r){r===void 0&&(r=0);for(var a=G$(e);t&&r=0?[]:{}}}return(i===0?t:a)[s[i]]===n?t:(n===void 0?delete a[s[i]]:a[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function X$(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,i=Object.keys(t);a0?ee.map(function(me){return B(me,hr(W,me))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ie).then(function(me){return me.reduce(function(be,ye,Fe){return ye==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||ye&&(be=vo(be,ee[Fe],ye)),be},{})})},[B]),d=ve.useCallback(function(W){return Promise.all([u(W),E.validationSchema?X(W):{},E.validate?L(W):{}]).then(function(ee){var ie=ee[0],me=ee[1],be=ee[2],ye=tw.all([ie,me,be],{arrayMerge:Ese});return ye})},[E.validate,E.validationSchema,u,L,X]),p=hi(function(W){return W===void 0&&(W=V.values),Y({type:"SET_ISVALIDATING",payload:!0}),d(W).then(function(ee){return D.current&&(Y({type:"SET_ISVALIDATING",payload:!1}),Y({type:"SET_ERRORS",payload:ee})),ee})});ve.useEffect(function(){s&&D.current===!0&&xl(C.current,E.initialValues)&&p(C.current)},[s,p]);var l=ve.useCallback(function(W){var ee=W&&W.values?W.values:C.current,ie=W&&W.errors?W.errors:F.current?F.current:E.initialErrors||{},me=W&&W.touched?W.touched:T.current?T.current:E.initialTouched||{},be=W&&W.status?W.status:P.current?P.current:E.initialStatus;C.current=ee,F.current=ie,T.current=me,P.current=be;var ye=function(){Y({type:"RESET_FORM",payload:{isSubmitting:!!W&&!!W.isSubmitting,errors:ie,touched:me,status:be,values:ee,isValidating:!!W&&!!W.isValidating,submitCount:W&&W.submitCount&&typeof W.submitCount=="number"?W.submitCount:0}})};if(E.onReset){var Fe=E.onReset(V.values,j);av(Fe)?Fe.then(ye):ye()}else ye()},[E.initialErrors,E.initialStatus,E.initialTouched,E.onReset]);ve.useEffect(function(){D.current===!0&&!xl(C.current,E.initialValues)&&h&&(C.current=E.initialValues,l(),s&&p(C.current))},[h,E.initialValues,l,s,p]),ve.useEffect(function(){h&&D.current===!0&&!xl(F.current,E.initialErrors)&&(F.current=E.initialErrors||$u,Y({type:"SET_ERRORS",payload:E.initialErrors||$u}))},[h,E.initialErrors]),ve.useEffect(function(){h&&D.current===!0&&!xl(T.current,E.initialTouched)&&(T.current=E.initialTouched||K2,Y({type:"SET_TOUCHED",payload:E.initialTouched||K2}))},[h,E.initialTouched]),ve.useEffect(function(){h&&D.current===!0&&!xl(P.current,E.initialStatus)&&(P.current=E.initialStatus,Y({type:"SET_STATUS",payload:E.initialStatus}))},[h,E.initialStatus,E.initialTouched]);var y=hi(function(W){if(M.current[W]&&fa(M.current[W].validate)){var ee=hr(V.values,W),ie=M.current[W].validate(ee);return av(ie)?(Y({type:"SET_ISVALIDATING",payload:!0}),ie.then(function(me){return me}).then(function(me){Y({type:"SET_FIELD_ERROR",payload:{field:W,value:me}}),Y({type:"SET_ISVALIDATING",payload:!1})})):(Y({type:"SET_FIELD_ERROR",payload:{field:W,value:ie}}),Promise.resolve(ie))}else if(E.validationSchema)return Y({type:"SET_ISVALIDATING",payload:!0}),X(V.values,W).then(function(me){return me}).then(function(me){Y({type:"SET_FIELD_ERROR",payload:{field:W,value:hr(me,W)}}),Y({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),g=ve.useCallback(function(W,ee){var ie=ee.validate;M.current[W]={validate:ie}},[]),w=ve.useCallback(function(W){delete M.current[W]},[]),x=hi(function(W,ee){Y({type:"SET_TOUCHED",payload:W});var ie=ee===void 0?a:ee;return ie?p(V.values):Promise.resolve()}),f=ve.useCallback(function(W){Y({type:"SET_ERRORS",payload:W})},[]),m=hi(function(W,ee){var ie=fa(W)?W(V.values):W;Y({type:"SET_VALUES",payload:ie});var me=ee===void 0?n:ee;return me?p(ie):Promise.resolve()}),_=ve.useCallback(function(W,ee){Y({type:"SET_FIELD_ERROR",payload:{field:W,value:ee}})},[]),A=hi(function(W,ee,ie){Y({type:"SET_FIELD_VALUE",payload:{field:W,value:ee}});var me=ie===void 0?n:ie;return me?p(vo(V.values,W,ee)):Promise.resolve()}),S=ve.useCallback(function(W,ee){var ie=ee,me=W,be;if(!rv(W)){W.persist&&W.persist();var ye=W.target?W.target:W.currentTarget,Fe=ye.type,Se=ye.name,Ee=ye.id,Qe=ye.value,$e=ye.checked,Oe=ye.outerHTML,at=ye.options,qe=ye.multiple;ie=ee||Se||Ee,me=/number|range/.test(Fe)?(be=parseFloat(Qe),isNaN(be)?"":be):/checkbox/.test(Fe)?_se(hr(V.values,ie),$e,Qe):at&&qe?Ase(at):Qe}ie&&A(ie,me)},[A,V.values]),$=hi(function(W){if(rv(W))return function(ee){return S(ee,W)};S(W)}),q=hi(function(W,ee,ie){ee===void 0&&(ee=!0),Y({type:"SET_FIELD_TOUCHED",payload:{field:W,value:ee}});var me=ie===void 0?a:ie;return me?p(V.values):Promise.resolve()}),I=ve.useCallback(function(W,ee){W.persist&&W.persist();var ie=W.target,me=ie.name,be=ie.id,ye=ie.outerHTML,Fe=ee||me||be;q(Fe,!0)},[q]),K=hi(function(W){if(rv(W))return function(ee){return I(ee,W)};I(W)}),z=ve.useCallback(function(W){fa(W)?Y({type:"SET_FORMIK_STATE",payload:W}):Y({type:"SET_FORMIK_STATE",payload:function(){return W}})},[]),Q=ve.useCallback(function(W){Y({type:"SET_STATUS",payload:W})},[]),ue=ve.useCallback(function(W){Y({type:"SET_ISSUBMITTING",payload:W})},[]),fe=hi(function(){return Y({type:"SUBMIT_ATTEMPT"}),p().then(function(W){var ee=W instanceof Error,ie=!ee&&Object.keys(W).length===0;if(ie){var me;try{if(me=ne(),me===void 0)return}catch(be){throw be}return Promise.resolve(me).then(function(be){return D.current&&Y({type:"SUBMIT_SUCCESS"}),be}).catch(function(be){if(D.current)throw Y({type:"SUBMIT_FAILURE"}),be})}else if(D.current&&(Y({type:"SUBMIT_FAILURE"}),ee))throw W})}),G=hi(function(W){W&&W.preventDefault&&fa(W.preventDefault)&&W.preventDefault(),W&&W.stopPropagation&&fa(W.stopPropagation)&&W.stopPropagation(),fe().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),j={resetForm:l,validateForm:p,validateField:y,setErrors:f,setFieldError:_,setFieldTouched:q,setFieldValue:A,setStatus:Q,setSubmitting:ue,setTouched:x,setValues:m,setFormikState:z,submitForm:fe},ne=hi(function(){return b(V.values,j)}),se=hi(function(W){W&&W.preventDefault&&fa(W.preventDefault)&&W.preventDefault(),W&&W.stopPropagation&&fa(W.stopPropagation)&&W.stopPropagation(),l()}),J=ve.useCallback(function(W){return{value:hr(V.values,W),error:hr(V.errors,W),touched:!!hr(V.touched,W),initialValue:hr(C.current,W),initialTouched:!!hr(T.current,W),initialError:hr(F.current,W)}},[V.errors,V.touched,V.values]),R=ve.useCallback(function(W){return{setValue:function(ie,me){return A(W,ie,me)},setTouched:function(ie,me){return q(W,ie,me)},setError:function(ie){return _(W,ie)}}},[A,q,_]),N=ve.useCallback(function(W){var ee=Hb(W),ie=ee?W.name:W,me=hr(V.values,ie),be={name:ie,value:me,onChange:$,onBlur:K};if(ee){var ye=W.type,Fe=W.value,Se=W.as,Ee=W.multiple;ye==="checkbox"?Fe===void 0?be.checked=!!me:(be.checked=!!(Array.isArray(me)&&~me.indexOf(Fe)),be.value=Fe):ye==="radio"?(be.checked=me===Fe,be.value=Fe):Se==="select"&&Ee&&(be.value=be.value||[],be.multiple=!0)}return be},[K,$,V.values]),Z=ve.useMemo(function(){return!xl(C.current,V.values)},[C.current,V.values]),ae=ve.useMemo(function(){return typeof o<"u"?Z?V.errors&&Object.keys(V.errors).length===0:o!==!1&&fa(o)?o(E):o:V.errors&&Object.keys(V.errors).length===0},[o,Z,V.errors,E]),pe=Wt({},V,{initialValues:C.current,initialErrors:F.current,initialTouched:T.current,initialStatus:P.current,handleBlur:K,handleChange:$,handleReset:se,handleSubmit:G,resetForm:l,setErrors:f,setFormikState:z,setFieldTouched:q,setFieldValue:A,setFieldError:_,setStatus:Q,setSubmitting:ue,setTouched:x,setValues:m,submitForm:fe,validateForm:p,validateField:y,isValid:ae,dirty:Z,unregisterField:w,registerField:g,getFieldProps:N,getFieldMeta:J,getFieldHelpers:R,validateOnBlur:a,validateOnChange:n,validateOnMount:s});return pe}function Z8(t){var e=J$(t),n=t.component,r=t.children,a=t.render,i=t.innerRef;return ve.useImperativeHandle(i,function(){return e}),ve.createElement(mse,{value:e},n?ve.createElement(n,e):a?a(e):r?fa(r)?r(e):Q$(r)?null:ve.Children.only(r):null)}function vse(t){var e={};if(t.inner){if(t.inner.length===0)return vo(e,t.path,t.message);for(var a=t.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var i;if(n){if(r>=a.length)break;i=a[r++]}else{if(r=a.next(),r.done)break;i=r.value}var s=i;hr(e,s.path)||(e=vo(e,s.path,s.message))}}return e}function wse(t,e,n,r){n===void 0&&(n=!1);var a=ow(t);return e[n?"validateSync":"validate"](a,{abortEarly:!1,context:r||a})}function ow(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(a){return Array.isArray(a)===!0||JF(a)?ow(a):a!==""?a:void 0}):JF(t[r])?e[r]=ow(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function Ese(t,e,n){var r=t.slice();return e.forEach(function(i,s){if(typeof r[s]>"u"){var o=n.clone!==!1,c=o&&n.isMergeableObject(i);r[s]=c?tw(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=tw(t[s],i,n):t.indexOf(i)===-1&&r.push(i)}),r}function Ase(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function _se(t,e,n){if(typeof t=="boolean")return!!e;var r=[],a=!1,i=-1;if(Array.isArray(t))r=t,i=t.indexOf(n),a=i>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!a?r.concat(n):a?r.slice(0,i).concat(r.slice(i+1)):r}var Cse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ve.useLayoutEffect:ve.useEffect;function hi(t){var e=ve.useRef(t);return Cse(function(){e.current=t}),ve.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;ar?a:r},0);return Array.from(Wt({},e,{length:n+1}))}else return[]},MM=function(e,n){var r=typeof e=="function"?e:n;return function(a){if(Array.isArray(a)||Hb(a)){var i=nd(a);return r(i)}return a}},Y$=function(t){yse(e,t);function e(r){var a;return a=t.call(this,r)||this,a.updateArrayField=function(i,s,o){var c=a.props,h=c.name,b=c.formik.setFormikState;b(function(v){var E=MM(o,i),C=MM(s,i),F=vo(v.values,h,i(hr(v.values,h))),T=o?E(hr(v.errors,h)):void 0,P=s?C(hr(v.touched,h)):void 0;return FM(T)&&(T=void 0),FM(P)&&(P=void 0),Wt({},v,{values:F,errors:o?vo(v.errors,h,T):v.errors,touched:s?vo(v.touched,h,P):v.touched})})},a.push=function(i){return a.updateArrayField(function(s){return[].concat(nd(s),[pse(i)])},!1,!1)},a.handlePush=function(i){return function(){return a.push(i)}},a.swap=function(i,s){return a.updateArrayField(function(o){return Tse(o,i,s)},!0,!0)},a.handleSwap=function(i,s){return function(){return a.swap(i,s)}},a.move=function(i,s){return a.updateArrayField(function(o){return Sse(o,i,s)},!0,!0)},a.handleMove=function(i,s){return function(){return a.move(i,s)}},a.insert=function(i,s){return a.updateArrayField(function(o){return iv(o,i,s)},function(o){return iv(o,i,null)},function(o){return iv(o,i,null)})},a.handleInsert=function(i,s){return function(){return a.insert(i,s)}},a.replace=function(i,s){return a.updateArrayField(function(o){return Fse(o,i,s)},!1,!1)},a.handleReplace=function(i,s){return function(){return a.replace(i,s)}},a.unshift=function(i){var s=-1;return a.updateArrayField(function(o){var c=o?[i].concat(o):[i];return s=c.length,c},function(o){return o?[null].concat(o):[null]},function(o){return o?[null].concat(o):[null]}),s},a.handleUnshift=function(i){return function(){return a.unshift(i)}},a.handleRemove=function(i){return function(){return a.remove(i)}},a.handlePop=function(){return function(){return a.pop()}},a.remove=a.remove.bind(TM(a)),a.pop=a.pop.bind(TM(a)),a}var n=e.prototype;return n.componentDidUpdate=function(a){this.props.validateOnChange&&this.props.formik.validateOnChange&&!xl(hr(a.formik.values,a.name),hr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(a){var i;return this.updateArrayField(function(s){var o=s?nd(s):[];return i||(i=o[a]),fa(o.splice)&&o.splice(a,1),fa(o.every)&&o.every(function(c){return c===void 0})?[]:o},!0,!0),i},n.pop=function(){var a;return this.updateArrayField(function(i){var s=i.slice();return a||(a=s&&s.pop&&s.pop()),s},!0,!0),a},n.render=function(){var a={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,o=i.render,c=i.children,h=i.name,b=i.formik,v=sf(b,["validate","validationSchema"]),E=Wt({},a,{form:v,name:h});return s?ve.createElement(s,E):o?o(E):c?typeof c=="function"?c(E):Q$(c)?null:ve.Children.only(c):null},e}(ve.Component);Y$.defaultProps={validateOnChange:!0};var eL=Bse(Y$);function zb(t,{strict:e=!0}={}){return!t||typeof t!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")}function pu(t){return zb(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const Mse="2.9.23",Dse=()=>`viem@${Mse}`;class Bt extends Error{constructor(e,n={}){var i;super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:Dse()});const r=n.cause instanceof Bt?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,a=n.cause instanceof Bt&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://viem.sh${a}${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` +`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return tL(this,e)}}function tL(t,e){return e!=null&&e(t)?t:t&&typeof t=="object"&&"cause"in t?tL(t.cause,e):e?null:t}class nL extends Bt{constructor({offset:e,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class rL extends Bt{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}function Ad(t,{dir:e,size:n=32}={}){return typeof t=="string"?kse(t,{dir:e,size:n}):Ise(t,{dir:e,size:n})}function kse(t,{dir:e,size:n=32}={}){if(n===null)return t;const r=t.replace("0x","");if(r.length>n*2)throw new rL({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[e==="right"?"padEnd":"padStart"](n*2,"0")}`}function Ise(t,{dir:e,size:n=32}={}){if(n===null)return t;if(t.length>n)throw new rL({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;ae)throw new Pse({givenSize:pu(t),maxSize:e})}function qn(t,e={}){const{signed:n}=e;e.size&&Qp(t,{size:e.size});const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2,i=(1n<e.toString(16).padStart(2,"0"));function st(t,e={}){return typeof t=="number"||typeof t=="bigint"?Js(t,e):typeof t=="string"?Lse(t,e):typeof t=="boolean"?Nse(t,e):Gc(t,e)}function Nse(t,e={}){const n=`0x${Number(t)}`;return typeof e.size=="number"?(Qp(n,{size:e.size}),Ad(n,{size:e.size})):n}function Gc(t,e={}){let n="";for(let a=0;ai||a=Lo.zero&&t<=Lo.nine)return t-Lo.zero;if(t>=Lo.A&&t<=Lo.F)return t-(Lo.A-10);if(t>=Lo.a&&t<=Lo.f)return t-(Lo.a-10)}function wo(t,e={}){let n=t;e.size&&(Qp(n,{size:e.size}),n=Ad(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,i=new Uint8Array(a);for(let s=0,o=0;s0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function iL(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Xa(t.outputLen),Xa(t.blockLen)}function up(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function sL(t,e){R_(t);const n=e.outputLen;if(t.length>cw&Z2)}:{h:Number(t>>cw&Z2)|0,l:Number(t&Z2)|0}}function cL(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0),Gse=(t,e,n)=>t>>>n,Vse=(t,e,n)=>t<<32-n|e>>>n,qse=(t,e,n)=>t>>>n|e<<32-n,Wse=(t,e,n)=>t<<32-n|e>>>n,Kse=(t,e,n)=>t<<64-n|e>>>n-32,Zse=(t,e,n)=>t>>>n-32|e<<64-n,Qse=(t,e)=>e,Xse=(t,e)=>t,lL=(t,e,n)=>t<>>32-n,uL=(t,e,n)=>e<>>32-n,fL=(t,e,n)=>e<>>64-n,dL=(t,e,n)=>t<>>64-n;function Jse(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:a|0}}const Yse=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),eoe=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,toe=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),noe=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0,roe=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0),aoe=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0,ioe={fromBig:oL,split:cL,toBig:zse,shrSH:Gse,shrSL:Vse,rotrSH:qse,rotrSL:Wse,rotrBH:Kse,rotrBL:Zse,rotr32H:Qse,rotr32L:Xse,rotlSH:lL,rotlSL:uL,rotlBH:fL,rotlBL:dL,add:Jse,add3L:Yse,add3H:eoe,add4L:toe,add4H:noe,add5H:aoe,add5L:roe},_t=ioe,sv=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const hL=t=>t instanceof Uint8Array,s6=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),o6=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),js=(t,e)=>t<<32-e|t>>>e,soe=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!soe)throw new Error("Non little-endian hardware is not supported");const ooe=async()=>{};async function kM(t,e,n){let r=Date.now();for(let a=0;a=0&&ir+a.length,0));let n=0;return t.forEach(r=>{if(!hL(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}let N_=class{clone(){return this._cloneInto()}};const uoe={}.toString;function pL(t,e){if(e!==void 0&&uoe.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function Q8(t){const e=r=>t().update(fp(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function foe(t=32){if(sv&&typeof sv.getRandomValues=="function")return sv.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}const[yL,mL,bL]=[[],[],[]],doe=BigInt(0),L1=BigInt(1),hoe=BigInt(2),poe=BigInt(7),yoe=BigInt(256),moe=BigInt(113);for(let t=0,e=L1,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],yL.push(2*(5*r+n)),mL.push((t+1)*(t+2)/2%64);let a=doe;for(let i=0;i<7;i++)e=(e<>poe)*moe)%yoe,e&hoe&&(a^=L1<<(L1<n>32?fL(t,e,n):lL(t,e,n),OM=(t,e,n)=>n>32?dL(t,e,n):uL(t,e,n);function xoe(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,h=n[c],b=n[c+1],v=IM(h,b,1)^n[o],E=OM(h,b,1)^n[o+1];for(let C=0;C<50;C+=10)t[s+C]^=v,t[s+C+1]^=E}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=mL[s],c=IM(a,i,o),h=OM(a,i,o),b=yL[s];a=t[b],i=t[b+1],t[b]=c,t[b+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)n[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=boe[r],t[1]^=goe[r]}n.fill(0)}let voe=class gL extends N_{constructor(e,n,r,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Xa(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=s6(this.state)}keccak(){xoe(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){up(this);const{blockLen:n,state:r}=this;e=fp(e);const a=e.length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-a);e.set(n.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Xa(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(sL(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new gL(n,r,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}};const woe=(t,e,n)=>Q8(()=>new voe(e,t,n)),xL=woe(1,136,256/8);function Eoe(t,e){const n=e||"hex",r=xL(zb(t,{strict:!1})?Zy(t):t);return n==="bytes"?r:st(r)}class Hi extends Bt{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class Aoe extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,n){return super.set(e,n),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}function _oe(t,e){const n=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),r=Eoe(aL(n),"bytes"),a=(e?n.substring(`${e}0x`.length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(r[i>>1]&15)>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());return`0x${a.join("")}`}const Coe=/^0x[a-fA-F0-9]{40}$/,ov=new Aoe(8192);function Rr(t,e){const{strict:n=!0}=e??{};if(ov.has(t))return ov.get(t);const r=Coe.test(t)?t.toLowerCase()===t?!0:n?_oe(t)===t:!0:!1;return ov.set(t,r),r}function _d(t){return`0x${t.reduce((e,n)=>e+n.replace("0x",""),"")}`}function Boe(t,e,n,{strict:r}={}){return zb(t,{strict:!1})?Toe(t,e,n,{strict:r}):Soe(t,e,n,{strict:r})}function vL(t,e){if(typeof e=="number"&&e>0&&e>pu(t)-1)throw new nL({offset:e,position:"start",size:pu(t)})}function wL(t,e,n){if(typeof e=="number"&&typeof n=="number"&&pu(t)!==n-e)throw new nL({offset:n,position:"end",size:pu(t)})}function Soe(t,e,n,{strict:r}={}){vL(t,e);const a=t.slice(e,n);return r&&wL(a,e,n),a}function Toe(t,e,n,{strict:r}={}){vL(t,e);const a=`0x${t.replace("0x","").slice((e??0)*2,(n??t.length)*2)}`;return r&&wL(a,e,n),a}class PM extends Bt{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class Foe extends Bt{constructor({length:e,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class Moe extends Bt{constructor({count:e,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}const Doe={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Moe({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new Foe({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new PM({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new PM({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===1/0)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function EL(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(Doe);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}const AL={gwei:9,wei:18},koe={ether:-9,wei:9};function _L(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[a,i]=[n.slice(0,n.length-e),n.slice(n.length-e)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}function CL(t,e="wei"){return _L(t,AL[e])}function lw(t,e="wei"){return _L(t,koe[e])}function Ioe(t){const e=Object.entries(t).map(([r,a])=>a===void 0||a===!1?null:[r,a]).filter(Boolean),n=e.reduce((r,[a])=>Math.max(r,a.length),0);return e.map(([r,a])=>` ${`${r}:`.padEnd(n+1)} ${a}`).join(` +`)}class Ooe extends Bt{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class Poe extends Bt{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Ioe(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class Roe extends Bt{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class Xp extends Bt{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${lw(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(Xp,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class X8 extends Bt{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${lw(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${lw(r)} gwei`:""}).`].join(` +`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(X8,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});function J8(t,e){return({exclude:n,format:r})=>({exclude:n,format:a=>{const i=e(a);if(n)for(const s of n)delete i[s];return{...i,...r(a)}},type:t})}const Noe={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function $oe(t){const e={};return typeof t.accessList<"u"&&(e.accessList=t.accessList),typeof t.blobVersionedHashes<"u"&&(e.blobVersionedHashes=t.blobVersionedHashes),typeof t.blobs<"u"&&(typeof t.blobs[0]!="string"?e.blobs=t.blobs.map(n=>Gc(n)):e.blobs=t.blobs),typeof t.data<"u"&&(e.data=t.data),typeof t.from<"u"&&(e.from=t.from),typeof t.gas<"u"&&(e.gas=Js(t.gas)),typeof t.gasPrice<"u"&&(e.gasPrice=Js(t.gasPrice)),typeof t.maxFeePerBlobGas<"u"&&(e.maxFeePerBlobGas=Js(t.maxFeePerBlobGas)),typeof t.maxFeePerGas<"u"&&(e.maxFeePerGas=Js(t.maxFeePerGas)),typeof t.maxPriorityFeePerGas<"u"&&(e.maxPriorityFeePerGas=Js(t.maxPriorityFeePerGas)),typeof t.nonce<"u"&&(e.nonce=Js(t.nonce)),typeof t.to<"u"&&(e.to=t.to),typeof t.type<"u"&&(e.type=Noe[t.type]),typeof t.value<"u"&&(e.value=Js(t.value)),e}const BL=J8("transactionRequest",$oe),SL={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function Y8(t){const e={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?Mm(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?Mm(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?SL[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return e.yParity=(()=>{if(t.yParity)return Number(t.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e.type==="eip1559"&&delete e.maxFeePerBlobGas,e}const $_=J8("transaction",Y8);function Loe(t){var n;const e=(n=t.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:Y8(r));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:e,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const L_=J8("block",Loe);function TL(t){const{kzg:e}=t,n=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),r=typeof t.blobs[0]=="string"?t.blobs.map(i=>wo(i)):t.blobs,a=[];for(const i of r)a.push(Uint8Array.from(e.blobToKzgCommitment(i)));return n==="bytes"?a:a.map(i=>Gc(i))}function FL(t){const{kzg:e}=t,n=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),r=typeof t.blobs[0]=="string"?t.blobs.map(s=>wo(s)):t.blobs,a=typeof t.commitments[0]=="string"?t.commitments.map(s=>wo(s)):t.commitments,i=[];for(let s=0;sGc(s))}function Uoe(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const a=BigInt(32),i=BigInt(4294967295),s=Number(n>>a&i),o=Number(n&i),c=r?4:0,h=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+h,o,r)}let U_=class extends N_{constructor(e,n,r,a){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=o6(this.buffer)}update(e){up(this);const{view:n,buffer:r,blockLen:a}=this;e=fp(e);const i=e.length;for(let s=0;sa-s&&(this.process(r,0),s=0);for(let v=s;vb.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;vt&e^~t&n,Hoe=(t,e,n)=>t&e^t&n^e&n,zoe=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]),nl=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rl=new Uint32Array(64);let Goe=class extends U_{constructor(){super(64,32,8,!1),this.A=nl[0]|0,this.B=nl[1]|0,this.C=nl[2]|0,this.D=nl[3]|0,this.E=nl[4]|0,this.F=nl[5]|0,this.G=nl[6]|0,this.H=nl[7]|0}get(){const{A:e,B:n,C:r,D:a,E:i,F:s,G:o,H:c}=this;return[e,n,r,a,i,s,o,c]}set(e,n,r,a,i,s,o,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=c|0}process(e,n){for(let v=0;v<16;v++,n+=4)rl[v]=e.getUint32(n,!1);for(let v=16;v<64;v++){const E=rl[v-15],C=rl[v-2],F=js(E,7)^js(E,18)^E>>>3,T=js(C,17)^js(C,19)^C>>>10;rl[v]=T+rl[v-7]+F+rl[v-16]|0}let{A:r,B:a,C:i,D:s,E:o,F:c,G:h,H:b}=this;for(let v=0;v<64;v++){const E=js(o,6)^js(o,11)^js(o,25),C=b+E+joe(o,c,h)+zoe[v]+rl[v]|0,T=(js(r,2)^js(r,13)^js(r,22))+Hoe(r,a,i)|0;b=h,h=c,c=o,o=s+C|0,s=i,i=a,a=r,r=C+T|0}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,h=h+this.G|0,b=b+this.H|0,this.set(r,a,i,s,o,c,h,b)}roundClean(){rl.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const Cd=Q8(()=>new Goe);function ML(t,e){const n=e||"hex",r=Cd(zb(t,{strict:!1})?Zy(t):t);return n==="bytes"?r:st(r)}function Voe(t){const{commitment:e,version:n=1}=t,r=t.to??(typeof e=="string"?"hex":"bytes"),a=ML(e,"bytes");return a.set([n],0),r==="bytes"?a:Gc(a)}function qoe(t){const{commitments:e,version:n}=t,r=t.to??(typeof e[0]=="string"?"hex":"bytes"),a=[];for(const i of e)a.push(Voe({commitment:i,to:r,version:n}));return a}const RM=6,DL=32,j_=4096,kL=DL*j_,NM=kL*RM-1-1*j_*RM,IL=1;class Woe extends Bt{constructor({maxSize:e,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${n} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class OL extends Bt{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}class Koe extends Bt{constructor({hash:e,size:n}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashSizeError"})}}class Zoe extends Bt{constructor({hash:e,version:n}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${IL}`,`Received: ${n}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidVersionedHashVersionError"})}}function Qoe(t){const e=t.to??(typeof t.data=="string"?"hex":"bytes"),n=typeof t.data=="string"?wo(t.data):t.data,r=pu(n);if(!r)throw new OL;if(r>NM)throw new Woe({maxSize:NM,size:r});const a=[];let i=!0,s=0;for(;i;){const o=EL(new Uint8Array(kL));let c=0;for(;co.bytes):a.map(o=>Gc(o.bytes))}function Xoe(t){const{data:e,kzg:n,to:r}=t,a=t.blobs??Qoe({data:e,to:r}),i=t.commitments??TL({blobs:a,kzg:n,to:r}),s=t.proofs??FL({blobs:a,commitments:i,kzg:n,to:r}),o=[];for(let c=0;cRL(e))):ece(t)}function Yoe(t){const e=t.reduce((a,i)=>a+i.length,0),n=NL(e);return{length:e<=55?1+e:1+n+e,encode(a){e<=55?a.pushByte(192+e):(a.pushByte(247+n),n===1?a.pushUint8(e):n===2?a.pushUint16(e):n===3?a.pushUint24(e):a.pushUint32(e));for(const{encode:i}of t)i(a)}}}function ece(t){const e=typeof t=="string"?wo(t):t,n=NL(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length,encode(a){e.length===1&&e[0]<128?a.pushBytes(e):e.length<=55?(a.pushByte(128+e.length),a.pushBytes(e)):(a.pushByte(183+n),n===1?a.pushUint8(e.length):n===2?a.pushUint16(e.length):n===3?a.pushUint24(e.length):a.pushUint32(e.length),a.pushBytes(e))}}}function NL(t){if(t<2**8)return 1;if(t<2**16)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new Bt("Length is too large.")}const tce={"0x0":"reverted","0x1":"success"};function nce(t){const e={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(n=>PL(n)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Mm(t.transactionIndex):null,status:t.status?tce[t.status]:null,type:t.type?SL[t.type]||t.type:null};return t.blobGasPrice&&(e.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(e.blobGasUsed=BigInt(t.blobGasUsed)),e}const $L=J8("transactionReceipt",nce),rce=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),LL=Uint8Array.from({length:16},(t,e)=>e),ace=LL.map(t=>(9*t+5)%16);let H_=[LL],z_=[ace];for(let t=0;t<4;t++)for(let e of[H_,z_])e.push(e[t].map(n=>rce[n]));const UL=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),ice=H_.map((t,e)=>t.map(n=>UL[e][n])),sce=z_.map((t,e)=>t.map(n=>UL[e][n])),oce=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),cce=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),Q2=(t,e)=>t<>>32-e;function $M(t,e,n,r){return t===0?e^n^r:t===1?e&n|~e&r:t===2?(e|~n)^r:t===3?e&r|n&~r:e^(n|~r)}const X2=new Uint32Array(16);let lce=class extends U_{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:r,h3:a,h4:i}=this;return[e,n,r,a,i]}set(e,n,r,a,i){this.h0=e|0,this.h1=n|0,this.h2=r|0,this.h3=a|0,this.h4=i|0}process(e,n){for(let C=0;C<16;C++,n+=4)X2[C]=e.getUint32(n,!0);let r=this.h0|0,a=r,i=this.h1|0,s=i,o=this.h2|0,c=o,h=this.h3|0,b=h,v=this.h4|0,E=v;for(let C=0;C<5;C++){const F=4-C,T=oce[C],P=cce[C],D=H_[C],M=z_[C],O=ice[C],k=sce[C];for(let U=0;U<16;U++){const V=Q2(r+$M(C,i,o,h)+X2[D[U]]+T,O[U])+v|0;r=v,v=h,h=Q2(o,10)|0,o=i,i=V}for(let U=0;U<16;U++){const V=Q2(a+$M(F,s,c,b)+X2[M[U]]+P,k[U])+E|0;a=E,E=b,b=Q2(c,10)|0,c=s,s=V}}this.set(this.h1+o+b|0,this.h2+h+E|0,this.h3+v+a|0,this.h4+r+s|0,this.h0+i+c|0)}roundClean(){X2.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};const uce=Q8(()=>new lce);function fce(t){const{blobVersionedHashes:e}=t;if(e){if(e.length===0)throw new OL;for(const n of e){const r=pu(n),a=Mm(Boe(n,0,1));if(r!==32)throw new Koe({hash:n,size:r});if(a!==IL)throw new Zoe({hash:n,version:a})}}jL(t)}function jL(t){const{chainId:e,maxPriorityFeePerGas:n,maxFeePerGas:r,to:a}=t;if(e<=0)throw new Jp({chainId:e});if(a&&!Rr(a))throw new Hi({address:a});if(r&&r>2n**256n-1n)throw new Xp({maxFeePerGas:r});if(n&&r&&n>r)throw new X8({maxFeePerGas:r,maxPriorityFeePerGas:n})}function dce(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(e<=0)throw new Jp({chainId:e});if(i&&!Rr(i))throw new Hi({address:i});if(n||a)throw new Bt("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new Xp({maxFeePerGas:r})}function hce(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i,accessList:s}=t;if(i&&!Rr(i))throw new Hi({address:i});if(typeof e<"u"&&e<=0)throw new Jp({chainId:e});if(n||a)throw new Bt("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new Xp({maxFeePerGas:r});if(s)throw new Bt("`accessList` is not a valid Legacy Transaction attribute.")}function Gb(t){if(!t||t.length===0)return[];const e=[];for(let n=0;n"u"||typeof C>"u")){const O=typeof t.blobs[0]=="string"?t.blobs:t.blobs.map(V=>Gc(V)),k=t.kzg,U=TL({blobs:O,kzg:k});if(typeof E>"u"&&(E=qoe({commitments:U})),typeof C>"u"){const V=FL({blobs:O,commitments:U,kzg:k});C=Xoe({blobs:O,commitments:U,proofs:V})}}const F=Gb(b),T=[st(n),a?st(a):"0x",h?st(h):"0x",c?st(c):"0x",r?st(r):"0x",i??"0x",s?st(s):"0x",v??"0x",F,o?st(o):"0x",E??[],...Vb(t,e)],P=[],D=[],M=[];if(C)for(let O=0;O{if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+e.v-27n);const v=27n+(e.v===27n?0n:1n);if(e.v!==v)throw new Ooe({v:e.v});return v})();h=[...h,st(b),e.r,e.s]}else n>0&&(h=[...h,st(n),"0x","0x"]);return kc(h)}function Vb(t,e){const{r:n,s:r,v:a,yParity:i}=e??t;return typeof n>"u"?[]:typeof r>"u"?[]:typeof a>"u"&&typeof i>"u"?[]:[typeof i=="number"?i?st(1):"0x":a===0n?"0x":a===1n?st(1):a===27n?"0x":st(1),fg(n),fg(r)]}function gce(t,e){let[n,r="0"]=t.split(".");const a=n.startsWith("-");if(a&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),e===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>e){const[i,s,o]=[r.slice(0,e-1),r.slice(e-1,e),r.slice(e)],c=Math.round(+`${s}.${o}`);c>9?r=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):r=`${i}${c}`,r.length>e&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,e)}else r=r.padEnd(e,"0");return BigInt(`${a?"-":""}${n}${r}`)}function HL(t,e="wei"){return gce(t,AL[e])}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const zL=BigInt(0),ex=BigInt(1),xce=BigInt(2),tx=t=>t instanceof Uint8Array,vce=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function dp(t){if(!tx(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+a.length,0));let n=0;return t.forEach(r=>{if(!tx(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}function Ece(t,e){if(t.length!==e.length)return!1;for(let n=0;nzL;t>>=ex,e+=1);return e}function Cce(t,e){return t>>BigInt(e)&ex}const Bce=(t,e,n)=>t|(n?ex:zL)<(xce<new Uint8Array(t),LM=t=>Uint8Array.from(t);function VL(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=cv(t),a=cv(t),i=0;const s=()=>{r.fill(1),a.fill(0),i=0},o=(...v)=>n(a,r,...v),c=(v=cv())=>{a=o(LM([0]),v),r=o(),v.length!==0&&(a=o(LM([1]),v),r=o())},h=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const E=[];for(;v{s(),c(v);let C;for(;!(C=E(h()));)c();return s(),C}}const Sce={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function qb(t,e,n={}){const r=(a,i,s)=>{const o=Sce[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[a];if(!(s&&c===void 0)&&!o(c,t))throw new Error(`Invalid param ${String(a)}=${c} (${typeof c}), expected ${i}`)};for(const[a,i]of Object.entries(e))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return t}const Tce=Object.freeze(Object.defineProperty({__proto__:null,bitGet:Cce,bitLen:_ce,bitMask:K_,bitSet:Bce,bytesToHex:dp,bytesToNumberBE:zf,bytesToNumberLE:q_,concatBytes:Dm,createHmacDrbg:VL,ensureBytes:ds,equalBytes:Ece,hexToBytes:hp,hexToNumber:V_,numberToBytesBE:pp,numberToBytesLE:W_,numberToHexUnpadded:GL,numberToVarBytesBE:wce,utf8ToBytes:Ace,validateObject:qb},Symbol.toStringTag,{value:"Module"})),Fce=2n**16n-1n;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const xr=BigInt(0),Hn=BigInt(1),Qu=BigInt(2),Mce=BigInt(3),uw=BigInt(4),UM=BigInt(5),jM=BigInt(8);BigInt(9);BigInt(16);function Ba(t,e){const n=t%e;return n>=xr?n:e+n}function Dce(t,e,n){if(n<=xr||e 0");if(n===Hn)return xr;let r=Hn;for(;e>xr;)e&Hn&&(r=r*t%n),t=t*t%n,e>>=Hn;return r}function pi(t,e,n){let r=t;for(;e-- >xr;)r*=r,r%=n;return r}function fw(t,e){if(t===xr||e<=xr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=Ba(t,e),r=e,a=xr,i=Hn;for(;n!==xr;){const o=r/n,c=r%n,h=a-i*o;r=n,n=c,a=i,i=h}if(r!==Hn)throw new Error("invert: does not exist");return Ba(a,e)}function kce(t){const e=(t-Hn)/Qu;let n,r,a;for(n=t-Hn,r=0;n%Qu===xr;n/=Qu,r++);for(a=Qu;a(r[a]="function",r),e);return qb(t,n)}function Rce(t,e,n){if(n 0");if(n===xr)return t.ONE;if(n===Hn)return e;let r=t.ONE,a=e;for(;n>xr;)n&Hn&&(r=t.mul(r,a)),a=t.sqr(a),n>>=Hn;return r}function Nce(t,e){const n=new Array(e.length),r=e.reduce((i,s,o)=>t.is0(s)?i:(n[o]=i,t.mul(i,s)),t.ONE),a=t.inv(r);return e.reduceRight((i,s,o)=>t.is0(s)?i:(n[o]=t.mul(i,n[o]),t.mul(i,s)),a),n}function qL(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function $ce(t,e,n=!1,r={}){if(t<=xr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:i}=qL(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=Ice(t),o=Object.freeze({ORDER:t,BITS:a,BYTES:i,MASK:K_(a),ZERO:xr,ONE:Hn,create:c=>Ba(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return xr<=c&&cc===xr,isOdd:c=>(c&Hn)===Hn,neg:c=>Ba(-c,t),eql:(c,h)=>c===h,sqr:c=>Ba(c*c,t),add:(c,h)=>Ba(c+h,t),sub:(c,h)=>Ba(c-h,t),mul:(c,h)=>Ba(c*h,t),pow:(c,h)=>Rce(o,c,h),div:(c,h)=>Ba(c*fw(h,t),t),sqrN:c=>c*c,addN:(c,h)=>c+h,subN:(c,h)=>c-h,mulN:(c,h)=>c*h,inv:c=>fw(c,t),sqrt:r.sqrt||(c=>s(o,c)),invertBatch:c=>Nce(o,c),cmov:(c,h,b)=>b?h:c,toBytes:c=>n?W_(c,i):pp(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?q_(c):zf(c)}});return Object.freeze(o)}function WL(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function KL(t){const e=WL(t);return e+Math.ceil(e/2)}function Lce(t,e,n=!1){const r=t.length,a=WL(e),i=KL(e);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const s=n?zf(t):q_(t),o=Ba(s,e-Hn)+Hn;return n?W_(o,a):pp(o,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Uce=BigInt(0),lv=BigInt(1);function jce(t,e){const n=(a,i)=>{const s=i.negate();return a?s:i},r=a=>{const i=Math.ceil(e/a)+1,s=2**(a-1);return{windows:i,windowSize:s}};return{constTimeNegate:n,unsafeLadder(a,i){let s=t.ZERO,o=a;for(;i>Uce;)i&lv&&(s=s.add(o)),o=o.double(),i>>=lv;return s},precomputeWindow(a,i){const{windows:s,windowSize:o}=r(i),c=[];let h=a,b=h;for(let v=0;v>=C,P>c&&(P-=E,s+=lv);const D=T,M=T+Math.abs(P)-1,O=F%2!==0,k=P<0;P===0?b=b.add(n(O,i[D])):h=h.add(n(k,i[M]))}return{p:h,f:b}},wNAFCached(a,i,s,o){const c=a._WINDOW_SIZE||1;let h=i.get(a);return h||(h=this.precomputeWindow(a,c),c!==1&&i.set(a,o(h))),this.wNAF(c,h,s)}}}function ZL(t){return Pce(t.Fp),qb(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...qL(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Hce(t){const e=ZL(t);qb(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a}=e;if(n){if(!r.eql(a,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:zce,hexToBytes:Gce}=Tce,of={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=of;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:zce(r),l:t.subarray(n+2)}},toSig(t){const{Err:e}=of,n=typeof t=="string"?Gce(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");const{d:a,l:i}=of._parseInt(n.subarray(2)),{d:s,l:o}=of._parseInt(i);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r:a,s}},hexFromSig(t){const e=h=>Number.parseInt(h[0],16)&8?"00"+h:h,n=h=>{const b=h.toString(16);return b.length&1?`0${b}`:b},r=e(n(t.s)),a=e(n(t.r)),i=r.length/2,s=a.length/2,o=n(i),c=n(s);return`30${n(s+i+4)}02${c}${a}02${o}${r}`}},yc=BigInt(0),Mi=BigInt(1);BigInt(2);const HM=BigInt(3);BigInt(4);function Vce(t){const e=Hce(t),{Fp:n}=e,r=e.toBytes||((F,T,P)=>{const D=T.toAffine();return Dm(Uint8Array.from([4]),n.toBytes(D.x),n.toBytes(D.y))}),a=e.fromBytes||(F=>{const T=F.subarray(1),P=n.fromBytes(T.subarray(0,n.BYTES)),D=n.fromBytes(T.subarray(n.BYTES,2*n.BYTES));return{x:P,y:D}});function i(F){const{a:T,b:P}=e,D=n.sqr(F),M=n.mul(D,F);return n.add(n.add(M,n.mul(F,T)),P)}if(!n.eql(n.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function s(F){return typeof F=="bigint"&&ycn.eql(O,n.ZERO);return M(P)&&M(D)?v.ZERO:new v(P,D,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(T){const P=n.invertBatch(T.map(D=>D.pz));return T.map((D,M)=>D.toAffine(P[M])).map(v.fromAffine)}static fromHex(T){const P=v.fromAffine(a(ds("pointHex",T)));return P.assertValidity(),P}static fromPrivateKey(T){return v.BASE.multiply(c(T))}_setWindowSize(T){this._WINDOW_SIZE=T,h.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:T,y:P}=this.toAffine();if(!n.isValid(T)||!n.isValid(P))throw new Error("bad point: x or y not FE");const D=n.sqr(P),M=i(T);if(!n.eql(D,M))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:T}=this.toAffine();if(n.isOdd)return!n.isOdd(T);throw new Error("Field doesn't support isOdd")}equals(T){b(T);const{px:P,py:D,pz:M}=this,{px:O,py:k,pz:U}=T,V=n.eql(n.mul(P,U),n.mul(O,M)),Y=n.eql(n.mul(D,U),n.mul(k,M));return V&&Y}negate(){return new v(this.px,n.neg(this.py),this.pz)}double(){const{a:T,b:P}=e,D=n.mul(P,HM),{px:M,py:O,pz:k}=this;let U=n.ZERO,V=n.ZERO,Y=n.ZERO,L=n.mul(M,M),X=n.mul(O,O),B=n.mul(k,k),u=n.mul(M,O);return u=n.add(u,u),Y=n.mul(M,k),Y=n.add(Y,Y),U=n.mul(T,Y),V=n.mul(D,B),V=n.add(U,V),U=n.sub(X,V),V=n.add(X,V),V=n.mul(U,V),U=n.mul(u,U),Y=n.mul(D,Y),B=n.mul(T,B),u=n.sub(L,B),u=n.mul(T,u),u=n.add(u,Y),Y=n.add(L,L),L=n.add(Y,L),L=n.add(L,B),L=n.mul(L,u),V=n.add(V,L),B=n.mul(O,k),B=n.add(B,B),L=n.mul(B,u),U=n.sub(U,L),Y=n.mul(B,X),Y=n.add(Y,Y),Y=n.add(Y,Y),new v(U,V,Y)}add(T){b(T);const{px:P,py:D,pz:M}=this,{px:O,py:k,pz:U}=T;let V=n.ZERO,Y=n.ZERO,L=n.ZERO;const X=e.a,B=n.mul(e.b,HM);let u=n.mul(P,O),d=n.mul(D,k),p=n.mul(M,U),l=n.add(P,D),y=n.add(O,k);l=n.mul(l,y),y=n.add(u,d),l=n.sub(l,y),y=n.add(P,M);let g=n.add(O,U);return y=n.mul(y,g),g=n.add(u,p),y=n.sub(y,g),g=n.add(D,M),V=n.add(k,U),g=n.mul(g,V),V=n.add(d,p),g=n.sub(g,V),L=n.mul(X,y),V=n.mul(B,p),L=n.add(V,L),V=n.sub(d,L),L=n.add(d,L),Y=n.mul(V,L),d=n.add(u,u),d=n.add(d,u),p=n.mul(X,p),y=n.mul(B,y),d=n.add(d,p),p=n.sub(u,p),p=n.mul(X,p),y=n.add(y,p),u=n.mul(d,y),Y=n.add(Y,u),u=n.mul(g,y),V=n.mul(l,V),V=n.sub(V,u),u=n.mul(l,d),L=n.mul(g,L),L=n.add(L,u),new v(V,Y,L)}subtract(T){return this.add(T.negate())}is0(){return this.equals(v.ZERO)}wNAF(T){return C.wNAFCached(this,h,T,P=>{const D=n.invertBatch(P.map(M=>M.pz));return P.map((M,O)=>M.toAffine(D[O])).map(v.fromAffine)})}multiplyUnsafe(T){const P=v.ZERO;if(T===yc)return P;if(o(T),T===Mi)return this;const{endo:D}=e;if(!D)return C.unsafeLadder(this,T);let{k1neg:M,k1:O,k2neg:k,k2:U}=D.splitScalar(T),V=P,Y=P,L=this;for(;O>yc||U>yc;)O&Mi&&(V=V.add(L)),U&Mi&&(Y=Y.add(L)),L=L.double(),O>>=Mi,U>>=Mi;return M&&(V=V.negate()),k&&(Y=Y.negate()),Y=new v(n.mul(Y.px,D.beta),Y.py,Y.pz),V.add(Y)}multiply(T){o(T);let P=T,D,M;const{endo:O}=e;if(O){const{k1neg:k,k1:U,k2neg:V,k2:Y}=O.splitScalar(P);let{p:L,f:X}=this.wNAF(U),{p:B,f:u}=this.wNAF(Y);L=C.constTimeNegate(k,L),B=C.constTimeNegate(V,B),B=new v(n.mul(B.px,O.beta),B.py,B.pz),D=L.add(B),M=X.add(u)}else{const{p:k,f:U}=this.wNAF(P);D=k,M=U}return v.normalizeZ([D,M])[0]}multiplyAndAddUnsafe(T,P,D){const M=v.BASE,O=(U,V)=>V===yc||V===Mi||!U.equals(M)?U.multiplyUnsafe(V):U.multiply(V),k=O(this,P).add(O(T,D));return k.is0()?void 0:k}toAffine(T){const{px:P,py:D,pz:M}=this,O=this.is0();T==null&&(T=O?n.ONE:n.inv(M));const k=n.mul(P,T),U=n.mul(D,T),V=n.mul(M,T);if(O)return{x:n.ZERO,y:n.ZERO};if(!n.eql(V,n.ONE))throw new Error("invZ was invalid");return{x:k,y:U}}isTorsionFree(){const{h:T,isTorsionFree:P}=e;if(T===Mi)return!0;if(P)return P(v,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:T,clearCofactor:P}=e;return T===Mi?this:P?P(v,this):this.multiplyUnsafe(e.h)}toRawBytes(T=!0){return this.assertValidity(),r(v,this,T)}toHex(T=!0){return dp(this.toRawBytes(T))}}v.BASE=new v(e.Gx,e.Gy,n.ONE),v.ZERO=new v(n.ZERO,n.ONE,n.ZERO);const E=e.nBitLength,C=jce(v,e.endo?Math.ceil(E/2):E);return{CURVE:e,ProjectivePoint:v,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:s}}function qce(t){const e=ZL(t);return qb(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function Wce(t){const e=qce(t),{Fp:n,n:r}=e,a=n.BYTES+1,i=2*n.BYTES+1;function s(y){return ycdp(pp(y,e.nByteLength));function F(y){const g=r>>Mi;return y>g}function T(y){return F(y)?o(-y):y}const P=(y,g,w)=>zf(y.slice(g,w));class D{constructor(g,w,x){this.r=g,this.s=w,this.recovery=x,this.assertValidity()}static fromCompact(g){const w=e.nByteLength;return g=ds("compactSignature",g,w*2),new D(P(g,0,w),P(g,w,2*w))}static fromDER(g){const{r:w,s:x}=of.toSig(ds("DER",g));return new D(w,x)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(g){return new D(this.r,this.s,g)}recoverPublicKey(g){const{r:w,s:x,recovery:f}=this,m=Y(ds("msgHash",g));if(f==null||![0,1,2,3].includes(f))throw new Error("recovery id invalid");const _=f===2||f===3?w+e.n:w;if(_>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const A=f&1?"03":"02",S=h.fromHex(A+C(_)),$=c(_),q=o(-m*$),I=o(x*$),K=h.BASE.multiplyAndAddUnsafe(S,q,I);if(!K)throw new Error("point at infinify");return K.assertValidity(),K}hasHighS(){return F(this.s)}normalizeS(){return this.hasHighS()?new D(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return hp(this.toDERHex())}toDERHex(){return of.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return hp(this.toCompactHex())}toCompactHex(){return C(this.r)+C(this.s)}}const M={isValidPrivateKey(y){try{return b(y),!0}catch{return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const y=KL(e.n);return Lce(e.randomBytes(y),e.n)},precompute(y=8,g=h.BASE){return g._setWindowSize(y),g.multiply(BigInt(3)),g}};function O(y,g=!0){return h.fromPrivateKey(y).toRawBytes(g)}function k(y){const g=y instanceof Uint8Array,w=typeof y=="string",x=(g||w)&&y.length;return g?x===a||x===i:w?x===2*a||x===2*i:y instanceof h}function U(y,g,w=!0){if(k(y))throw new Error("first arg must be private key");if(!k(g))throw new Error("second arg must be public key");return h.fromHex(g).multiply(b(y)).toRawBytes(w)}const V=e.bits2int||function(y){const g=zf(y),w=y.length*8-e.nBitLength;return w>0?g>>BigInt(w):g},Y=e.bits2int_modN||function(y){return o(V(y))},L=K_(e.nBitLength);function X(y){if(typeof y!="bigint")throw new Error("bigint expected");if(!(yc<=y&&yQ in w))throw new Error("sign() legacy options not supported");const{hash:x,randomBytes:f}=e;let{lowS:m,prehash:_,extraEntropy:A}=w;m==null&&(m=!0),y=ds("msgHash",y),_&&(y=ds("prehashed msgHash",x(y)));const S=Y(y),$=b(g),q=[X($),X(S)];if(A!=null){const Q=A===!0?f(n.BYTES):A;q.push(ds("extraEntropy",Q))}const I=Dm(...q),K=S;function z(Q){const ue=V(Q);if(!E(ue))return;const fe=c(ue),G=h.BASE.multiply(ue).toAffine(),j=o(G.x);if(j===yc)return;const ne=o(fe*o(K+j*$));if(ne===yc)return;let se=(G.x===j?0:2)|Number(G.y&Mi),J=ne;return m&&F(ne)&&(J=T(ne),se^=1),new D(j,J,se)}return{seed:I,k2sig:z}}const u={lowS:e.lowS,prehash:!1},d={lowS:e.lowS,prehash:!1};function p(y,g,w=u){const{seed:x,k2sig:f}=B(y,g,w),m=e;return VL(m.hash.outputLen,m.nByteLength,m.hmac)(x,f)}h.BASE._setWindowSize(8);function l(y,g,w,x=d){var G;const f=y;if(g=ds("msgHash",g),w=ds("publicKey",w),"strict"in x)throw new Error("options.strict was renamed to lowS");const{lowS:m,prehash:_}=x;let A,S;try{if(typeof f=="string"||f instanceof Uint8Array)try{A=D.fromDER(f)}catch(j){if(!(j instanceof of.Err))throw j;A=D.fromCompact(f)}else if(typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint"){const{r:j,s:ne}=f;A=new D(j,ne)}else throw new Error("PARSE");S=h.fromHex(w)}catch(j){if(j.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(m&&A.hasHighS())return!1;_&&(g=e.hash(g));const{r:$,s:q}=A,I=Y(g),K=c(q),z=o(I*K),Q=o($*K),ue=(G=h.BASE.multiplyAndAddUnsafe(S,z,Q))==null?void 0:G.toAffine();return ue?o(ue.x)===$:!1}return{CURVE:e,getPublicKey:O,getSharedSecret:U,sign:p,verify:l,ProjectivePoint:h,Signature:D,utils:M}}class QL extends N_{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,iL(e);const r=fp(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(r.length>a?e.create().update(r).digest():r);for(let s=0;snew QL(t,e).update(n).digest();nx.create=(t,e)=>new QL(t,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Kce(t){return{hash:t,hmac:(e,...n)=>nx(t,e,loe(...n)),randomBytes:foe}}function Zce(t,e){const n=r=>Wce({...t,...Kce(r)});return Object.freeze({...n(e),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const XL=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),zM=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Qce=BigInt(1),dw=BigInt(2),GM=(t,e)=>(t+e/dw)/e;function Xce(t){const e=XL,n=BigInt(3),r=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),h=t*t*t%e,b=h*h*t%e,v=pi(b,n,e)*b%e,E=pi(v,n,e)*b%e,C=pi(E,dw,e)*h%e,F=pi(C,a,e)*C%e,T=pi(F,i,e)*F%e,P=pi(T,o,e)*T%e,D=pi(P,c,e)*P%e,M=pi(D,o,e)*T%e,O=pi(M,n,e)*b%e,k=pi(O,s,e)*F%e,U=pi(k,r,e)*h%e,V=pi(U,dw,e);if(!hw.eql(hw.sqr(V),t))throw new Error("Cannot find square root");return V}const hw=$ce(XL,void 0,void 0,{sqrt:Xce}),pl=Zce({a:BigInt(0),b:BigInt(7),Fp:hw,n:zM,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=zM,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Qce*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),o=GM(i*t,e),c=GM(-r*t,e);let h=Ba(t-o*n-c*a,e),b=Ba(-o*r-c*i,e);const v=h>s,E=b>s;if(v&&(h=e-h),E&&(b=e-b),h>s||b>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:v,k1:h,k2neg:E,k2:b}}}},Cd);BigInt(0);pl.ProjectivePoint;function Jce(){const t=qp(),{currentNetwork:e}=ci(),n=J$({initialValues:{address:""},validate:r=>{const a={};return Rr(r.address)?a:{address:"Invalid Address"}},onSubmit:r=>{t(`/safe/${e}/${r.address}`)}});return we.jsxs("form",{onSubmit:n.handleSubmit,children:[we.jsxs(ar,{hasError:!n.isValid,children:[we.jsx(ar.Label,{children:"Safe Address:"}),we.jsx(Bm,{value:n.values.address,onChange:({event:r})=>n.handleChange(r),onBlur:n.handleBlur,name:"address"}),n.errors.address&&we.jsx(ar.Error,{children:n.errors.address}),we.jsx(ar.Helper,{children:"Remember to select the correct network"})]}),we.jsx(rt,{children:we.jsx(kn,{type:"submit",children:"Connect to Safe"})})]})}function Yce(){const t=qp(),e=ci().currentNetwork;return we.jsx(rt,{padding:10,justify:"space-between",gap:6,direction:"column",children:we.jsxs(b_,{children:[we.jsx(rt,{paddingBottom:4,gap:4,children:we.jsx(Jce,{})}),we.jsx(GN,{}),we.jsx(rt,{paddingTop:4,children:we.jsx(kn,{onClick:n=>{n.preventDefault(),t(`/safe/${e}/create`)},children:"Create a New Safe"})})]})})}const rx="6.10.0";function ele(t,e,n){const r=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[r])))).reduce((r,a,i)=>(r[e[i]]=a,r),{})}function et(t,e,n){for(let r in e){let a=e[r];const i=n?n[r]:null;i&&ele(a,i,r),Object.defineProperty(t,r,{enumerable:!0,value:a,writable:!1})}}function $0(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map($0).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let n="0x";for(let r=0;r>4],n+=e[t[r]&15];return n}if(typeof t=="object"&&typeof t.toJSON=="function")return $0(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(n=>`${$0(n)}: ${$0(t[n])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Kn(t,e){return t&&t.code===e}function Wb(t){return Kn(t,"CALL_EXCEPTION")}function gn(t,e,n){let r=t;{const i=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${$0(n)}`);for(const s in n){if(s==="shortMessage")continue;const o=n[s];i.push(s+"="+$0(o))}}i.push(`code=${e}`),i.push(`version=${rx}`),i.length&&(t+=" ("+i.join(", ")+")")}let a;switch(e){case"INVALID_ARGUMENT":a=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=new RangeError(t);break;default:a=new Error(t)}return et(a,{code:e}),n&&Object.assign(a,n),a.shortMessage==null&&et(a,{shortMessage:r}),a}function Te(t,e,n,r){if(!t)throw gn(e,n,r)}function le(t,e,n,r){Te(t,e,"INVALID_ARGUMENT",{argument:n,value:r})}function ax(t,e,n){n==null&&(n=""),n&&(n=": "+n),Te(t>=e,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:t,expectedCount:e}),Te(t<=e,"too many arguemnts"+n,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const tle=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function ix(t){Te(tle.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function Po(t,e,n){if(n==null&&(n=""),t!==e){let r=n,a="new";n&&(r+=".",a+=" "+n),Te(!1,`private constructor; use ${r}from* methods`,"UNSUPPORTED_OPERATION",{operation:a})}}function JL(t,e,n){if(t instanceof Uint8Array)return n?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x([0-9a-f][0-9a-f])*$/i)){const r=new Uint8Array((t.length-2)/2);let a=2;for(let i=0;i>4]+VM[a&15]}return n}function jt(t){return"0x"+t.map(e=>Ve(e).substring(2)).join("")}function Ac(t){return bn(t,!0)?(t.length-2)/2:Ze(t).length}function Yt(t,e,n){const r=Ze(t);return n!=null&&n>r.length&&Te(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:n}),Ve(r.slice(e??0,n??r.length))}function YL(t){let e=Ve(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function eU(t,e,n){const r=Ze(t);Te(e>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:e,offset:e+1});const a=new Uint8Array(e);return a.fill(0),n?a.set(r,e-r.length):a.set(r,0),Ve(a)}function zi(t,e){return eU(t,e,!0)}function Kb(t,e){return eU(t,e,!1)}const ox=BigInt(0),Cs=BigInt(1),L0=9007199254740991;function yp(t,e){const n=Yp(t,"value"),r=BigInt(lt(e,"width"));if(Te(n>>r===ox,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),n>>r-Cs){const a=(Cs<=-L0&&t<=L0,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(n){le(!1,`invalid BigNumberish string: ${n.message}`,e||"value",t)}}le(!1,"invalid BigNumberish value",e||"value",t)}function Yp(t,e){const n=it(t,e);return Te(n>=ox,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),n}const qM="0123456789abcdef";function Bd(t){if(t instanceof Uint8Array){let e="0x0";for(const n of t)e+=qM[n>>4],e+=qM[n&15];return BigInt(e)}return it(t)}function lt(t,e){switch(typeof t){case"bigint":return le(t>=-L0&&t<=L0,"overflow",e||"value",t),Number(t);case"number":return le(Number.isInteger(t),"underflow",e||"value",t),le(t>=-L0&&t<=L0,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return lt(BigInt(t),e)}catch(n){le(!1,`invalid numeric string: ${n.message}`,e||"value",t)}}le(!1,"invalid numeric value",e||"value",t)}function Z_(t){return lt(Bd(t))}function Ds(t,e){let r=Yp(t,"value").toString(16);if(e==null)r.length%2&&(r="0"+r);else{const a=lt(e,"width");for(Te(a*2>=r.length,`value exceeds width (${a} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length>6===2;s++)i++;return i}return t==="OVERRUN"?n.length-e-1:0}function ile(t,e,n,r,a){return t==="OVERLONG"?(le(typeof a=="number","invalid bad code point for replacement","badCodepoint",a),r.push(a),0):(r.push(65533),tU(t,e,n))}const Y_=Object.freeze({error:ale,ignore:tU,replace:ile});function nU(t,e){e==null&&(e=Y_.error);const n=Ze(t,"bytes"),r=[];let a=0;for(;a>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?a+=e("UNEXPECTED_CONTINUE",a-1,n,r):a+=e("BAD_PREFIX",a-1,n,r);continue}if(a-1+s>=n.length){a+=e("OVERRUN",a-1,n,r);continue}let c=i&(1<<8-s-1)-1;for(let h=0;h1114111){a+=e("OUT_OF_RANGE",a-1-s,n,r,c);continue}if(c>=55296&&c<=57343){a+=e("UTF16_SURROGATE",a-1-s,n,r,c);continue}if(c<=o){a+=e("OVERLONG",a-1-s,n,r,c);continue}r.push(c)}}return r}function Zn(t,e){e!=null&&(ix(e),t=t.normalize(e));let n=[];for(let r=0;r>6|192),n.push(a&63|128);else if((a&64512)==55296){r++;const i=t.charCodeAt(r);le(r>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128)}else n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128)}return new Uint8Array(n)}function sle(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function yu(t,e){return sle(nU(t,e))}function rU(t,e){return nU(Zn(t,e))}function aU(t){async function e(n,r){const a=n.url.split(":")[0].toLowerCase();Te(a==="http"||a==="https",`unsupported protocol ${a}`,"UNSUPPORTED_OPERATION",{info:{protocol:a},operation:"request"}),Te(a==="https"||!n.credentials||n.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(r){const v=new AbortController;i=v.signal,r.addListener(()=>{v.abort()})}const s={method:n.method,headers:new Headers(Array.from(n)),body:n.body||void 0,signal:i},o=await fetch(n.url,s),c={};o.headers.forEach((v,E)=>{c[E.toLowerCase()]=v});const h=await o.arrayBuffer(),b=h==null?null:new Uint8Array(h);return{statusCode:o.status,statusMessage:o.statusText,headers:c,body:b}}return e}const ole=12,cle=250;let WM=aU();const lle=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),ule=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let uv=!1;async function iU(t,e){try{const n=t.match(lle);if(!n)throw new Error("invalid data");return new Eo(200,"OK",{"content-type":n[1]||"text/plain"},n[2]?X_(n[3]):fle(n[3]))}catch{return new Eo(599,"BAD REQUEST (invalid data: URI)",{},null,new $r(t))}}function sU(t){async function e(n,r){try{const a=n.match(ule);if(!a)throw new Error("invalid link");return new $r(`${t}${a[2]}`)}catch{return new Eo(599,"BAD REQUEST (invalid IPFS URI)",{},null,new $r(n))}}return e}const Y2={data:iU,ipfs:sU("https://gateway.ipfs.io/ipfs/")},oU=new WeakMap;var df,Bl;class eC{constructor(e){xe(this,df,void 0);xe(this,Bl,void 0);re(this,df,[]),re(this,Bl,!1),oU.set(e,()=>{if(!H(this,Bl)){re(this,Bl,!0);for(const n of H(this,df))setTimeout(()=>{n()},0);re(this,df,[])}})}addListener(e){Te(!H(this,Bl),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),H(this,df).push(e)}get cancelled(){return H(this,Bl)}checkSignal(){Te(!this.cancelled,"cancelled","CANCELLED",{})}}df=new WeakMap,Bl=new WeakMap;function e3(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var lh,uh,hs,Yo,fh,dh,dr,Ga,ec,hf,pf,yf,no,tc,Sl,mf,xy;const e8=class e8{constructor(e){xe(this,mf);xe(this,lh,void 0);xe(this,uh,void 0);xe(this,hs,void 0);xe(this,Yo,void 0);xe(this,fh,void 0);xe(this,dh,void 0);xe(this,dr,void 0);xe(this,Ga,void 0);xe(this,ec,void 0);xe(this,hf,void 0);xe(this,pf,void 0);xe(this,yf,void 0);xe(this,no,void 0);xe(this,tc,void 0);xe(this,Sl,void 0);re(this,dh,String(e)),re(this,lh,!1),re(this,uh,!0),re(this,hs,{}),re(this,Yo,""),re(this,fh,3e5),re(this,tc,{slotInterval:cle,maxAttempts:ole}),re(this,Sl,null)}get url(){return H(this,dh)}set url(e){re(this,dh,String(e))}get body(){return H(this,dr)==null?null:new Uint8Array(H(this,dr))}set body(e){if(e==null)re(this,dr,void 0),re(this,Ga,void 0);else if(typeof e=="string")re(this,dr,Zn(e)),re(this,Ga,"text/plain");else if(e instanceof Uint8Array)re(this,dr,e),re(this,Ga,"application/octet-stream");else if(typeof e=="object")re(this,dr,Zn(JSON.stringify(e))),re(this,Ga,"application/json");else throw new Error("invalid body")}hasBody(){return H(this,dr)!=null}get method(){return H(this,Yo)?H(this,Yo):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),re(this,Yo,String(e).toUpperCase())}get headers(){const e=Object.assign({},H(this,hs));return H(this,ec)&&(e.authorization=`Basic ${J_(Zn(H(this,ec)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&H(this,Ga)&&(e["content-type"]=H(this,Ga)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,n){H(this,hs)[String(e).toLowerCase()]=String(n)}clearHeaders(){re(this,hs,{})}[Symbol.iterator](){const e=this.headers,n=Object.keys(e);let r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",e),re(this,fh,e)}get preflightFunc(){return H(this,hf)||null}set preflightFunc(e){re(this,hf,e)}get processFunc(){return H(this,pf)||null}set processFunc(e){re(this,pf,e)}get retryFunc(){return H(this,yf)||null}set retryFunc(e){re(this,yf,e)}get getUrlFunc(){return H(this,Sl)||WM}set getUrlFunc(e){re(this,Sl,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(H(this,tc).slotInterval=e.slotInterval),e.maxAttempts!=null&&(H(this,tc).maxAttempts=e.maxAttempts)}send(){return Te(H(this,no)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),re(this,no,new eC(this)),ke(this,mf,xy).call(this,0,KM()+this.timeout,0,this,new Eo(0,"",{},null,this))}cancel(){Te(H(this,no)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=oU.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const n=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();Te(this.method==="GET"&&(n!=="https"||r!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const a=new e8(e);return a.method="GET",a.allowGzip=this.allowGzip,a.timeout=this.timeout,re(a,hs,Object.assign({},H(this,hs))),H(this,dr)&&re(a,dr,new Uint8Array(H(this,dr))),re(a,Ga,H(this,Ga)),a}clone(){const e=new e8(this.url);return re(e,Yo,H(this,Yo)),H(this,dr)&&re(e,dr,H(this,dr)),re(e,Ga,H(this,Ga)),re(e,hs,Object.assign({},H(this,hs))),re(e,ec,H(this,ec)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),re(e,hf,H(this,hf)),re(e,pf,H(this,pf)),re(e,yf,H(this,yf)),re(e,Sl,H(this,Sl)),e}static lockConfig(){uv=!0}static getGateway(e){return Y2[e.toLowerCase()]||null}static registerGateway(e,n){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(uv)throw new Error("gateways locked");Y2[e]=n}static registerGetUrl(e){if(uv)throw new Error("gateways locked");WM=e}static createGetUrlFunc(e){return aU()}static createDataGateway(){return iU}static createIpfsGatewayFunc(e){return sU(e)}};lh=new WeakMap,uh=new WeakMap,hs=new WeakMap,Yo=new WeakMap,fh=new WeakMap,dh=new WeakMap,dr=new WeakMap,Ga=new WeakMap,ec=new WeakMap,hf=new WeakMap,pf=new WeakMap,yf=new WeakMap,no=new WeakMap,tc=new WeakMap,Sl=new WeakMap,mf=new WeakSet,xy=async function(e,n,r,a,i){var b,v,E;if(e>=H(this,tc).maxAttempts)return i.makeServerError("exceeded maximum retry limit");Te(KM()<=n,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:a}),r>0&&await dle(r);let s=this.clone();const o=(s.url.split(":")[0]||"").toLowerCase();if(o in Y2){const C=await Y2[o](s.url,e3(H(a,no)));if(C instanceof Eo){let F=C;if(this.processFunc){e3(H(a,no));try{F=await this.processFunc(s,F)}catch(T){(T.throttle==null||typeof T.stall!="number")&&F.makeServerError("error in post-processing function",T).assertOk()}}return F}s=C}this.preflightFunc&&(s=await this.preflightFunc(s));const c=await this.getUrlFunc(s,e3(H(a,no)));let h=new Eo(c.statusCode,c.statusMessage,c.headers,c.body,a);if(h.statusCode===301||h.statusCode===302){try{const C=h.headers.location||"";return ke(b=s.redirect(C),mf,xy).call(b,e+1,n,0,a,h)}catch{}return h}else if(h.statusCode===429&&(this.retryFunc==null||await this.retryFunc(s,h,e))){const C=h.headers["retry-after"];let F=H(this,tc).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof C=="string"&&C.match(/^[1-9][0-9]*$/)&&(F=parseInt(C)),ke(v=s.clone(),mf,xy).call(v,e+1,n,F,a,h)}if(this.processFunc){e3(H(a,no));try{h=await this.processFunc(s,h)}catch(C){(C.throttle==null||typeof C.stall!="number")&&h.makeServerError("error in post-processing function",C).assertOk();let F=H(this,tc).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return C.stall>=0&&(F=C.stall),ke(E=s.clone(),mf,xy).call(E,e+1,n,F,a,h)}}return h};let $r=e8;var eb,tb,nb,ps,hh,bf;const rT=class rT{constructor(e,n,r,a,i){xe(this,eb,void 0);xe(this,tb,void 0);xe(this,nb,void 0);xe(this,ps,void 0);xe(this,hh,void 0);xe(this,bf,void 0);re(this,eb,e),re(this,tb,n),re(this,nb,Object.keys(r).reduce((s,o)=>(s[o.toLowerCase()]=String(r[o]),s),{})),re(this,ps,a==null?null:new Uint8Array(a)),re(this,hh,i||null),re(this,bf,{message:""})}toString(){return``}get statusCode(){return H(this,eb)}get statusMessage(){return H(this,tb)}get headers(){return Object.assign({},H(this,nb))}get body(){return H(this,ps)==null?null:new Uint8Array(H(this,ps))}get bodyText(){try{return H(this,ps)==null?"":yu(H(this,ps))}catch{Te(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{Te(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,n=Object.keys(e);let r=0;return{next:()=>{if(r=0,"invalid stall timeout","stall",n);const r=new Error(e||"throttling requests");throw et(r,{stall:n,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return H(this,ps)!=null}get request(){return H(this,hh)}ok(){return H(this,bf).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:n}=H(this,bf);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),Te(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:n})}};eb=new WeakMap,tb=new WeakMap,nb=new WeakMap,ps=new WeakMap,hh=new WeakMap,bf=new WeakMap;let Eo=rT;function KM(){return new Date().getTime()}function fle(t){return Zn(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16))))}function dle(t){return new Promise(e=>setTimeout(e,t))}const hle=BigInt(-1),cs=BigInt(0),U0=BigInt(1),ple=BigInt(5),Qd={};let th="0000";for(;th.length<80;)th+=th;function Lu(t){let e=th;for(;e.length=-a&&tcs?t=yp(gc(t,r),r):t=-yp(gc(-t,r),r)}else{const a=U0<=0&&ti[o]==null?h:(le(typeof i[o]===c,"invalid fixed format ("+o+" not "+c+")","format."+o,i[o]),i[o]);e=s("signed","boolean",e),n=s("width","number",n),r=s("decimals","number",r)}le(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),le(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r);const a=(e?"":"u")+"fixed"+String(n)+"x"+String(r);return{signed:e,width:n,decimals:r,name:a}}function yle(t,e){let n="";t0?r*=Lu(a):a<0&&(n*=Lu(-a)),nr?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=H(this,Xt);return H(this,Xt)cs&&(e+=H(this,la)-U0),e=H(this,Xt)/H(this,la)*H(this,la),ke(this,ms,Go).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const n=this.decimals-e,r=ple*Lu(n-1);let a=this.value+r;const i=Lu(n);return a=a/i*i,U1(a,H(this,ys),"round"),new wl(Qd,a,H(this,ys))}isZero(){return H(this,Xt)===cs}isNegative(){return H(this,Xt)0){const c=Lu(o);Te(s%c===cs,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=c}else o<0&&(s*=Lu(-o));return U1(s,i,"fromValue"),new wl(Qd,s,i)}static fromString(e,n){const r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);le(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);const a=fv(n);let i=r[2]||"0",s=r[3]||"";for(;s.length{Te(r<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:r})};if(t[e]>=248){const r=t[e]-247;n(e+1+r);const a=ZM(t,e+1,r);return n(e+1+r+a),QM(t,e,e+1+r,r+a)}else if(t[e]>=192){const r=t[e]-192;return n(e+1+r),QM(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;n(e+1+r);const a=ZM(t,e+1,r);n(e+1+r+a);const i=Ve(t.slice(e+1+r,e+1+r+a));return{consumed:1+r+a,result:i}}else if(t[e]>=128){const r=t[e]-128;n(e+1+r);const a=Ve(t.slice(e+1,e+1+r));return{consumed:1+r,result:a}}return{consumed:1,result:mle(t[e])}}function Qb(t){const e=Ze(t,"data"),n=cU(e,0);return le(n.consumed===e.length,"unexpected junk after rlp payload","data",t),n.result}function XM(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function lU(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(i){r=r.concat(lU(i))}),r.length<=55)return r.unshift(192+r.length),r;const a=XM(r.length);return a.unshift(247+a.length),a.concat(r)}const e=Array.prototype.slice.call(Ze(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=XM(e.length);return n.unshift(183+n.length),n.concat(e)}const JM="0123456789abcdef";function rd(t){let e="0x";for(const n of lU(t))e+=JM[n>>4],e+=JM[n&15];return e}const uU=["wei","kwei","mwei","gwei","szabo","finney","ether"];function tC(t,e){let n=18;if(typeof e=="string"){const r=uU.indexOf(e);le(r>=0,"invalid unit","unit",e),n=3*r}else e!=null&&(n=lt(e,"unit"));return mp.fromValue(t,n,{decimals:n,width:512}).toString()}function nC(t,e){le(typeof t=="string","value must be a string","value",t);let n=18;if(typeof e=="string"){const r=uU.indexOf(e);le(r>=0,"invalid unit","unit",e),n=3*r}else e!=null&&(n=lt(e,"unit"));return mp.fromString(t,{decimals:n,width:512}).value}function fU(t){return tC(t,18)}function dU(t){return nC(t,18)}function rC(t){const e=Ze(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const n=Ve(e);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}const ma=32,xw=new Uint8Array(ma),ble=["then"],t3={};function j1(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw n.error=e,n}var Tl;const sm=class sm extends Array{constructor(...n){const r=n[0];let a=n[1],i=(n[2]||[]).slice(),s=!0;r!==t3&&(a=n,i=[],s=!1);super(a.length);xe(this,Tl,void 0);a.forEach((c,h)=>{this[h]=c});const o=i.reduce((c,h)=>(typeof h=="string"&&c.set(h,(c.get(h)||0)+1),c),new Map);if(re(this,Tl,Object.freeze(a.map((c,h)=>{const b=i[h];return b!=null&&o.get(b)===1?b:null}))),!!s)return Object.freeze(this),new Proxy(this,{get:(c,h,b)=>{if(typeof h=="string"){if(h.match(/^[0-9]+$/)){const E=lt(h,"%index");if(E<0||E>=this.length)throw new RangeError("out of result range");const C=c[E];return C instanceof Error&&j1(`index ${E}`,C),C}if(ble.indexOf(h)>=0)return Reflect.get(c,h,b);const v=c[h];if(v instanceof Function)return function(...E){return v.apply(this===b?c:this,E)};if(!(h in c))return c.getValue.apply(this===b?c:this,[h])}return Reflect.get(c,h,b)}})}toArray(){const n=[];return this.forEach((r,a)=>{r instanceof Error&&j1(`index ${a}`,r),n.push(r)}),n}toObject(){return H(this,Tl).reduce((n,r,a)=>(Te(r!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),r in n||(n[r]=this.getValue(r)),n),{})}slice(n,r){n==null&&(n=0),n<0&&(n+=this.length,n<0&&(n=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const a=[],i=[];for(let s=n;s{H(this,rc)[e]=YM(n)}}}rc=new WeakMap,gf=new WeakMap,ph=new WeakSet,c6=function(e){return H(this,rc).push(e),re(this,gf,H(this,gf)+e.length),e.length};var Ea,Va,xf,vf,Fl,ob,Ew,t8,pU;const aT=class aT{constructor(e,n,r){xe(this,ob);xe(this,t8);ge(this,"allowLoose");xe(this,Ea,void 0);xe(this,Va,void 0);xe(this,xf,void 0);xe(this,vf,void 0);xe(this,Fl,void 0);et(this,{allowLoose:!!n}),re(this,Ea,ir(e)),re(this,xf,0),re(this,vf,null),re(this,Fl,r??1024),re(this,Va,0)}get data(){return Ve(H(this,Ea))}get dataLength(){return H(this,Ea).length}get consumed(){return H(this,Va)}get bytes(){return new Uint8Array(H(this,Ea))}subReader(e){const n=new aT(H(this,Ea).slice(H(this,Va)+e),this.allowLoose,H(this,Fl));return re(n,vf,this),n}readBytes(e,n){let r=ke(this,t8,pU).call(this,0,e,!!n);return ke(this,ob,Ew).call(this,e),re(this,Va,H(this,Va)+r.length),r.slice(0,e)}readValue(){return Bd(this.readBytes(ma))}readIndex(){return Z_(this.readBytes(ma))}};Ea=new WeakMap,Va=new WeakMap,xf=new WeakMap,vf=new WeakMap,Fl=new WeakMap,ob=new WeakSet,Ew=function(e){var n;if(H(this,vf))return ke(n=H(this,vf),ob,Ew).call(n,e);re(this,xf,H(this,xf)+e),Te(H(this,Fl)<1||H(this,xf)<=H(this,Fl)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${H(this,Fl)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:ir(H(this,Ea)),offset:H(this,Va),length:e,info:{bytesRead:H(this,xf),dataLength:this.dataLength}})},t8=new WeakSet,pU=function(e,n,r){let a=Math.ceil(n/ma)*ma;return H(this,Va)+a>H(this,Ea).length&&(this.allowLoose&&r&&H(this,Va)+n<=H(this,Ea).length?a=n:Te(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:ir(H(this,Ea)),length:H(this,Ea).length,offset:H(this,Va)+a})),H(this,Ea).slice(H(this,Va),H(this,Va)+a)};let ww=aT;function gle(t,e,n,r){iL(t);const a=pL({dkLen:32,asyncTick:10},r),{c:i,dkLen:s,asyncTick:o}=a;if(Xa(i),Xa(s),Xa(o),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=fp(e),h=fp(n),b=new Uint8Array(s),v=nx.create(t,c),E=v._cloneInto().update(h);return{c:i,dkLen:s,asyncTick:o,DK:b,PRF:v,PRFSalt:E}}function xle(t,e,n,r,a){return t.destroy(),e.destroy(),r&&r.destroy(),a.fill(0),n}function aC(t,e,n,r){const{c:a,dkLen:i,DK:s,PRF:o,PRFSalt:c}=gle(t,e,n,r);let h;const b=new Uint8Array(4),v=o6(b),E=new Uint8Array(o.outputLen);for(let C=1,F=0;FBigInt(t))),al=new Uint32Array(80),il=new Uint32Array(80);let Ele=class extends U_{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:r,Bl:a,Ch:i,Cl:s,Dh:o,Dl:c,Eh:h,El:b,Fh:v,Fl:E,Gh:C,Gl:F,Hh:T,Hl:P}=this;return[e,n,r,a,i,s,o,c,h,b,v,E,C,F,T,P]}set(e,n,r,a,i,s,o,c,h,b,v,E,C,F,T,P){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=a|0,this.Ch=i|0,this.Cl=s|0,this.Dh=o|0,this.Dl=c|0,this.Eh=h|0,this.El=b|0,this.Fh=v|0,this.Fl=E|0,this.Gh=C|0,this.Gl=F|0,this.Hh=T|0,this.Hl=P|0}process(e,n){for(let O=0;O<16;O++,n+=4)al[O]=e.getUint32(n),il[O]=e.getUint32(n+=4);for(let O=16;O<80;O++){const k=al[O-15]|0,U=il[O-15]|0,V=_t.rotrSH(k,U,1)^_t.rotrSH(k,U,8)^_t.shrSH(k,U,7),Y=_t.rotrSL(k,U,1)^_t.rotrSL(k,U,8)^_t.shrSL(k,U,7),L=al[O-2]|0,X=il[O-2]|0,B=_t.rotrSH(L,X,19)^_t.rotrBH(L,X,61)^_t.shrSH(L,X,6),u=_t.rotrSL(L,X,19)^_t.rotrBL(L,X,61)^_t.shrSL(L,X,6),d=_t.add4L(Y,u,il[O-7],il[O-16]),p=_t.add4H(d,V,B,al[O-7],al[O-16]);al[O]=p|0,il[O]=d|0}let{Ah:r,Al:a,Bh:i,Bl:s,Ch:o,Cl:c,Dh:h,Dl:b,Eh:v,El:E,Fh:C,Fl:F,Gh:T,Gl:P,Hh:D,Hl:M}=this;for(let O=0;O<80;O++){const k=_t.rotrSH(v,E,14)^_t.rotrSH(v,E,18)^_t.rotrBH(v,E,41),U=_t.rotrSL(v,E,14)^_t.rotrSL(v,E,18)^_t.rotrBL(v,E,41),V=v&C^~v&T,Y=E&F^~E&P,L=_t.add5L(M,U,Y,wle[O],il[O]),X=_t.add5H(L,D,k,V,vle[O],al[O]),B=L|0,u=_t.rotrSH(r,a,28)^_t.rotrBH(r,a,34)^_t.rotrBH(r,a,39),d=_t.rotrSL(r,a,28)^_t.rotrBL(r,a,34)^_t.rotrBL(r,a,39),p=r&i^r&o^i&o,l=a&s^a&c^s&c;D=T|0,M=P|0,T=C|0,P=F|0,C=v|0,F=E|0,{h:v,l:E}=_t.add(h|0,b|0,X|0,B|0),h=o|0,b=c|0,o=i|0,c=s|0,i=r|0,s=a|0;const y=_t.add3L(B,d,l);r=_t.add3H(y,X,u,p),a=y|0}({h:r,l:a}=_t.add(this.Ah|0,this.Al|0,r|0,a|0)),{h:i,l:s}=_t.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:o,l:c}=_t.add(this.Ch|0,this.Cl|0,o|0,c|0),{h,l:b}=_t.add(this.Dh|0,this.Dl|0,h|0,b|0),{h:v,l:E}=_t.add(this.Eh|0,this.El|0,v|0,E|0),{h:C,l:F}=_t.add(this.Fh|0,this.Fl|0,C|0,F|0),{h:T,l:P}=_t.add(this.Gh|0,this.Gl|0,T|0,P|0),{h:D,l:M}=_t.add(this.Hh|0,this.Hl|0,D|0,M|0),this.set(r,a,i,s,o,c,h,b,v,E,C,F,T,P,D,M)}roundClean(){al.fill(0),il.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};const iC=Q8(()=>new Ele);var eD={};function Ale(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof eD<"u")return eD;throw new Error("unable to locate global object")}const tD=Ale(),nD=tD.crypto||tD.msCrypto;function yU(t){switch(t){case"sha256":return Cd.create();case"sha512":return iC.create()}le(!1,"invalid hashing algorithm name","algorithm",t)}function _le(t,e){const n={sha256:Cd,sha512:iC}[t];return le(n!=null,"invalid hmac algorithm","algorithm",t),nx.create(n,e)}function Cle(t,e,n,r,a){const i={sha256:Cd,sha512:iC}[a];return le(i!=null,"invalid pbkdf2 algorithm","algorithm",a),aC(i,t,e,{c:n,dkLen:r})}function Ble(t){Te(nD!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),le(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return nD.getRandomValues(e),e}let mU=!1;const bU=function(t,e,n){return _le(t,e).update(n).digest()};let gU=bU;function qc(t,e,n){const r=Ze(e,"key"),a=Ze(n,"data");return Ve(gU(t,r,a))}qc._=bU;qc.lock=function(){mU=!0};qc.register=function(t){if(mU)throw new Error("computeHmac is locked");gU=t};Object.freeze(qc);let xU=!1;const vU=function(t){return xL(t)};let wU=vU;function Vt(t){const e=Ze(t,"data");return Ve(wU(e))}Vt._=vU;Vt.lock=function(){xU=!0};Vt.register=function(t){if(xU)throw new TypeError("keccak256 is locked");wU=t};Object.freeze(Vt);let EU=!1;const AU=function(t){return uce(t)};let _U=AU;function Wc(t){const e=Ze(t,"data");return Ve(_U(e))}Wc._=AU;Wc.lock=function(){EU=!0};Wc.register=function(t){if(EU)throw new TypeError("ripemd160 is locked");_U=t};Object.freeze(Wc);let CU=!1;const BU=function(t,e,n,r,a){return Cle(t,e,n,r,a)};let SU=BU;function Rs(t,e,n,r,a){const i=Ze(t,"password"),s=Ze(e,"salt");return Ve(SU(i,s,n,r,a))}Rs._=BU;Rs.lock=function(){CU=!0};Rs.register=function(t){if(CU)throw new Error("pbkdf2 is locked");SU=t};Object.freeze(Rs);let TU=!1;const FU=function(t){return new Uint8Array(Ble(t))};let MU=FU;function si(t){return MU(t)}si._=FU;si.lock=function(){TU=!0};si.register=function(t){if(TU)throw new Error("randomBytes is locked");MU=t};Object.freeze(si);const $t=(t,e)=>t<>>32-e;function rD(t,e,n,r,a,i){let s=t[e++]^n[r++],o=t[e++]^n[r++],c=t[e++]^n[r++],h=t[e++]^n[r++],b=t[e++]^n[r++],v=t[e++]^n[r++],E=t[e++]^n[r++],C=t[e++]^n[r++],F=t[e++]^n[r++],T=t[e++]^n[r++],P=t[e++]^n[r++],D=t[e++]^n[r++],M=t[e++]^n[r++],O=t[e++]^n[r++],k=t[e++]^n[r++],U=t[e++]^n[r++],V=s,Y=o,L=c,X=h,B=b,u=v,d=E,p=C,l=F,y=T,g=P,w=D,x=M,f=O,m=k,_=U;for(let A=0;A<8;A+=2)B^=$t(V+x|0,7),l^=$t(B+V|0,9),x^=$t(l+B|0,13),V^=$t(x+l|0,18),y^=$t(u+Y|0,7),f^=$t(y+u|0,9),Y^=$t(f+y|0,13),u^=$t(Y+f|0,18),m^=$t(g+d|0,7),L^=$t(m+g|0,9),d^=$t(L+m|0,13),g^=$t(d+L|0,18),X^=$t(_+w|0,7),p^=$t(X+_|0,9),w^=$t(p+X|0,13),_^=$t(w+p|0,18),Y^=$t(V+X|0,7),L^=$t(Y+V|0,9),X^=$t(L+Y|0,13),V^=$t(X+L|0,18),d^=$t(u+B|0,7),p^=$t(d+u|0,9),B^=$t(p+d|0,13),u^=$t(B+p|0,18),w^=$t(g+y|0,7),l^=$t(w+g|0,9),y^=$t(l+w|0,13),g^=$t(y+l|0,18),x^=$t(_+m|0,7),f^=$t(x+_|0,9),m^=$t(f+x|0,13),_^=$t(m+f|0,18);a[i++]=s+V|0,a[i++]=o+Y|0,a[i++]=c+L|0,a[i++]=h+X|0,a[i++]=b+B|0,a[i++]=v+u|0,a[i++]=E+d|0,a[i++]=C+p|0,a[i++]=F+l|0,a[i++]=T+y|0,a[i++]=P+g|0,a[i++]=D+w|0,a[i++]=M+x|0,a[i++]=O+f|0,a[i++]=k+m|0,a[i++]=U+_|0}function nh(t,e,n,r,a){let i=r+0,s=r+16*a;for(let o=0;o<16;o++)n[s+o]=t[e+(2*a-1)*16+o];for(let o=0;o0&&(s+=16),rD(n,i,t,e+=16,n,s)}function DU(t,e,n){const r=pL({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:a,r:i,p:s,dkLen:o,asyncTick:c,maxmem:h,onProgress:b}=r;if(Xa(a),Xa(i),Xa(s),Xa(o),Xa(c),Xa(h),b!==void 0&&typeof b!="function")throw new Error("progressCb should be function");const v=128*i,E=v/4;if(a<=1||a&a-1||a>=2**(v/8)||a>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(s<0||s>(2**32-1)*32/v)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const C=v*(a+s);if(C>h)throw new Error(`Scrypt: parameters too large, ${C} (128 * r * (N + p)) > ${h} (maxmem)`);const F=aC(Cd,t,e,{c:1,dkLen:v*s}),T=s6(F),P=s6(new Uint8Array(v*a)),D=s6(new Uint8Array(v));let M=()=>{};if(b){const O=2*a*s,k=Math.max(Math.floor(O/1e4),1);let U=0;M=()=>{U++,b&&(!(U%k)||U===O)&&b(U/O)}}return{N:a,r:i,p:s,dkLen:o,blockSize32:E,V:P,B32:T,B:F,tmp:D,blockMixCb:M,asyncTick:c}}function kU(t,e,n,r,a){const i=aC(Cd,t,n,{c:1,dkLen:e});return n.fill(0),r.fill(0),a.fill(0),i}function Sle(t,e,n){const{N:r,r:a,p:i,dkLen:s,blockSize32:o,V:c,B32:h,B:b,tmp:v,blockMixCb:E}=DU(t,e,n);for(let C=0;C{nh(c,P,c,P+=o,a),E()}),nh(c,(r-1)*o,h,T,a),E(),await kM(r,C,()=>{const D=h[T+o-16]%r;for(let M=0;M=n3,"invalid EIP-155 v","v",e),(n-n3)/sD)}static getChainIdV(e,n){return it(e)*sD+BigInt(35+n-27)}static getNormalizedV(e){const n=it(e);return n===aD||n===oD?27:n===iD||n===cD?28:(le(n>=n3,"invalid v","v",e),n&iD?27:28)}static from(e){function n(h,b){le(h,b,"signature",e)}if(e==null)return new Wa(Xd,hg,hg,27);if(typeof e=="string"){const h=Ze(e,"signature");if(h.length===64){const b=Ve(h.slice(0,32)),v=h.slice(32,64),E=v[0]&128?28:27;return v[0]&=127,new Wa(Xd,b,Ve(v),E)}if(h.length===65){const b=Ve(h.slice(0,32)),v=h.slice(32,64);n((v[0]&128)===0,"non-canonical s");const E=Wa.getNormalizedV(h[64]);return new Wa(Xd,b,Ve(v),E)}n(!1,"invalid raw signature length")}if(e instanceof Wa)return e.clone();const r=e.r;n(r!=null,"missing r");const a=lD(r),i=function(h,b){if(h!=null)return lD(h);if(b!=null){n(bn(b,32),"invalid yParityAndS");const v=Ze(b);return v[0]&=127,Ve(v)}n(!1,"missing s")}(e.s,e.yParityAndS);n((Ze(i)[0]&128)==0,"non-canonical s");const{networkV:s,v:o}=function(h,b,v){if(h!=null){const E=it(h);return{networkV:E>=n3?E:void 0,v:Wa.getNormalizedV(E)}}if(b!=null)return n(bn(b,32),"invalid yParityAndS"),{v:Ze(b)[0]&128?28:27};if(v!=null){switch(lt(v,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}n(!1,"invalid yParity")}n(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new Wa(Xd,a,i,o);return s&&re(c,wf,s),n(e.yParity==null||lt(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),n(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}},yh=new WeakMap,mh=new WeakMap,bh=new WeakMap,wf=new WeakMap,Wa);var ac;const Yu=class Yu{constructor(e){xe(this,ac,void 0);le(Ac(e)===32,"invalid private key","privateKey","[REDACTED]"),re(this,ac,Ve(e))}get privateKey(){return H(this,ac)}get publicKey(){return Yu.computePublicKey(H(this,ac))}get compressedPublicKey(){return Yu.computePublicKey(H(this,ac),!0)}sign(e){le(Ac(e)===32,"invalid digest length","digest",e);const n=pl.sign(ir(e),ir(H(this,ac)),{lowS:!0});return ks.from({r:Ds(n.r,32),s:Ds(n.s,32),v:n.recovery?28:27})}computeSharedSecret(e){const n=Yu.computePublicKey(e);return Ve(pl.getSharedSecret(ir(H(this,ac)),Ze(n),!1))}static computePublicKey(e,n){let r=Ze(e,"key");if(r.length===32){const i=pl.getPublicKey(r,!!n);return Ve(i)}if(r.length===64){const i=new Uint8Array(65);i[0]=4,i.set(r,1),r=i}const a=pl.ProjectivePoint.fromHex(r);return Ve(a.toRawBytes(n))}static recoverPublicKey(e,n){le(Ac(e)===32,"invalid digest length","digest",e);const r=ks.from(n);let a=pl.Signature.fromCompact(ir(jt([r.r,r.s])));a=a.addRecoveryBit(r.yParity);const i=a.recoverPublicKey(ir(e));return le(i!=null,"invalid signautre for digest","signature",n),"0x"+i.toHex(!1)}static addPoints(e,n,r){const a=pl.ProjectivePoint.fromHex(Yu.computePublicKey(e).substring(2)),i=pl.ProjectivePoint.fromHex(Yu.computePublicKey(n).substring(2));return"0x"+a.add(i).toHex(!!r)}};ac=new WeakMap;let Gi=Yu;function XU(){qc.lock(),Vt.lock(),Rs.lock(),si.lock(),Wc.lock(),Kc.lock(),Zc.lock(),xa.lock(),e1.lock(),si.lock()}const Fle=BigInt(0),Mle=BigInt(36);function uD(t){t=t.toLowerCase();const e=t.substring(2).split(""),n=new Uint8Array(40);for(let a=0;a<40;a++)n[a]=e[a].charCodeAt(0);const r=Ze(Vt(n));for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&(e[a]=e[a].toUpperCase()),(r[a>>1]&15)>=8&&(e[a+1]=e[a+1].toUpperCase());return"0x"+e.join("")}const oC={};for(let t=0;t<10;t++)oC[String(t)]=String(t);for(let t=0;t<26;t++)oC[String.fromCharCode(65+t)]=String(10+t);const fD=15;function JU(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(r=>oC[r]).join("");for(;e.length>=fD;){let r=e.substring(0,fD);e=parseInt(r,10)%97+e.substring(r.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}const Dle=function(){const t={};for(let e=0;e<36;e++){const n="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[n]=BigInt(e)}return t}();function kle(t){t=t.toLowerCase();let e=Fle;for(let n=0;ne.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return H(this,Ef)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return H(this,Ef)===!0?-1:H(this,Ef)===!1?this.value.length:null}static from(e,n){return new Qo(Wo,e,n)}static uint8(e){return tt(e,8)}static uint16(e){return tt(e,16)}static uint24(e){return tt(e,24)}static uint32(e){return tt(e,32)}static uint40(e){return tt(e,40)}static uint48(e){return tt(e,48)}static uint56(e){return tt(e,56)}static uint64(e){return tt(e,64)}static uint72(e){return tt(e,72)}static uint80(e){return tt(e,80)}static uint88(e){return tt(e,88)}static uint96(e){return tt(e,96)}static uint104(e){return tt(e,104)}static uint112(e){return tt(e,112)}static uint120(e){return tt(e,120)}static uint128(e){return tt(e,128)}static uint136(e){return tt(e,136)}static uint144(e){return tt(e,144)}static uint152(e){return tt(e,152)}static uint160(e){return tt(e,160)}static uint168(e){return tt(e,168)}static uint176(e){return tt(e,176)}static uint184(e){return tt(e,184)}static uint192(e){return tt(e,192)}static uint200(e){return tt(e,200)}static uint208(e){return tt(e,208)}static uint216(e){return tt(e,216)}static uint224(e){return tt(e,224)}static uint232(e){return tt(e,232)}static uint240(e){return tt(e,240)}static uint248(e){return tt(e,248)}static uint256(e){return tt(e,256)}static uint(e){return tt(e,256)}static int8(e){return tt(e,-8)}static int16(e){return tt(e,-16)}static int24(e){return tt(e,-24)}static int32(e){return tt(e,-32)}static int40(e){return tt(e,-40)}static int48(e){return tt(e,-48)}static int56(e){return tt(e,-56)}static int64(e){return tt(e,-64)}static int72(e){return tt(e,-72)}static int80(e){return tt(e,-80)}static int88(e){return tt(e,-88)}static int96(e){return tt(e,-96)}static int104(e){return tt(e,-104)}static int112(e){return tt(e,-112)}static int120(e){return tt(e,-120)}static int128(e){return tt(e,-128)}static int136(e){return tt(e,-136)}static int144(e){return tt(e,-144)}static int152(e){return tt(e,-152)}static int160(e){return tt(e,-160)}static int168(e){return tt(e,-168)}static int176(e){return tt(e,-176)}static int184(e){return tt(e,-184)}static int192(e){return tt(e,-192)}static int200(e){return tt(e,-200)}static int208(e){return tt(e,-208)}static int216(e){return tt(e,-216)}static int224(e){return tt(e,-224)}static int232(e){return tt(e,-232)}static int240(e){return tt(e,-240)}static int248(e){return tt(e,-248)}static int256(e){return tt(e,-256)}static int(e){return tt(e,-256)}static bytes1(e){return Lt(e,1)}static bytes2(e){return Lt(e,2)}static bytes3(e){return Lt(e,3)}static bytes4(e){return Lt(e,4)}static bytes5(e){return Lt(e,5)}static bytes6(e){return Lt(e,6)}static bytes7(e){return Lt(e,7)}static bytes8(e){return Lt(e,8)}static bytes9(e){return Lt(e,9)}static bytes10(e){return Lt(e,10)}static bytes11(e){return Lt(e,11)}static bytes12(e){return Lt(e,12)}static bytes13(e){return Lt(e,13)}static bytes14(e){return Lt(e,14)}static bytes15(e){return Lt(e,15)}static bytes16(e){return Lt(e,16)}static bytes17(e){return Lt(e,17)}static bytes18(e){return Lt(e,18)}static bytes19(e){return Lt(e,19)}static bytes20(e){return Lt(e,20)}static bytes21(e){return Lt(e,21)}static bytes22(e){return Lt(e,22)}static bytes23(e){return Lt(e,23)}static bytes24(e){return Lt(e,24)}static bytes25(e){return Lt(e,25)}static bytes26(e){return Lt(e,26)}static bytes27(e){return Lt(e,27)}static bytes28(e){return Lt(e,28)}static bytes29(e){return Lt(e,29)}static bytes30(e){return Lt(e,30)}static bytes31(e){return Lt(e,31)}static bytes32(e){return Lt(e,32)}static address(e){return new Qo(Wo,"address",e)}static bool(e){return new Qo(Wo,"bool",!!e)}static bytes(e){return new Qo(Wo,"bytes",e)}static string(e){return new Qo(Wo,"string",e)}static array(e,n){throw new Error("not implemented yet")}static tuple(e,n){throw new Error("not implemented yet")}static overrides(e){return new Qo(Wo,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===dD}static dereference(e,n){if(Qo.isTyped(e)){if(e.type!==n)throw new Error(`invalid type: expecetd ${n}, got ${e.type}`);return e.value}return e}};Ef=new WeakMap;let Ar=Qo;class Ile extends Vc{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){let r=Ar.dereference(n,"string");try{r=Et(r)}catch(a){return this._throwError(a.message,n)}return e.writeValue(r)}decode(e){return Et(Ds(e.readValue(),20))}}class Ole extends Vc{constructor(n){super(n.name,n.type,"_",n.dynamic);ge(this,"coder");this.coder=n}defaultValue(){return this.coder.defaultValue()}encode(n,r){return this.coder.encode(n,r)}decode(n){return this.coder.decode(n)}}function nj(t,e,n){let r=[];if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let c={};r=e.map(h=>{const b=h.localName;return Te(b,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:h},value:n}),Te(!c[b],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:h},value:n}),c[b]=!0,n[b]})}else le(!1,"invalid tuple value","tuple",n);le(e.length===r.length,"types/value length mismatch","tuple",n);let a=new vw,i=new vw,s=[];e.forEach((c,h)=>{let b=r[h];if(c.dynamic){let v=i.length;c.encode(i,b);let E=a.writeUpdatableValue();s.push(C=>{E(C+v)})}else c.encode(a,b)}),s.forEach(c=>{c(a.length)});let o=t.appendWriter(a);return o+=t.appendWriter(i),o}function rj(t,e){let n=[],r=[],a=t.subReader(0);return e.forEach(i=>{let s=null;if(i.dynamic){let o=t.readIndex(),c=a.subReader(o);try{s=i.decode(c)}catch(h){if(Kn(h,"BUFFER_OVERRUN"))throw h;s=h,s.baseType=i.name,s.name=i.localName,s.type=i.type}}else try{s=i.decode(t)}catch(o){if(Kn(o,"BUFFER_OVERRUN"))throw o;s=o,s.baseType=i.name,s.name=i.localName,s.type=i.type}if(s==null)throw new Error("investigate");n.push(s),r.push(i.localName||null)}),bp.fromItems(n,r)}class Ple extends Vc{constructor(n,r,a){const i=n.type+"["+(r>=0?r:"")+"]",s=r===-1||n.dynamic;super("array",i,a,s);ge(this,"coder");ge(this,"length");et(this,{coder:n,length:r})}defaultValue(){const n=this.coder.defaultValue(),r=[];for(let a=0;as||a<-(s+Hle))&&this._throwError("value out-of-bounds",r),a=Zb(a,8*ma)}else(agc(i,this.size*8))&&this._throwError("value out-of-bounds",r);return n.writeValue(a)}decode(n){let r=gc(n.readValue(),this.size*8);return this.signed&&(r=yp(r,this.size*8)),r}}class Vle extends aj{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,Zn(Ar.dereference(n,"string")))}decode(e){return yu(super.decode(e))}}class r3 extends Vc{constructor(n,r){let a=!1;const i=[];n.forEach(o=>{o.dynamic&&(a=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,a);ge(this,"coders");et(this,{coders:Object.freeze(n.slice())})}defaultValue(){const n=[];this.coders.forEach(a=>{n.push(a.defaultValue())});const r=this.coders.reduce((a,i)=>{const s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach((a,i)=>{let s=a.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),n[s]==null&&(n[s]=n[i]))}),Object.freeze(n)}encode(n,r){const a=Ar.dereference(r,"tuple");return nj(n,this.coders,a)}decode(n){return rj(n,this.coders)}}function Is(t){return Vt(Zn(t))}var qle="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const hD=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),pD=4;function Wle(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),a=1,i=[0,1];for(let U=1;U>--c&1}const v=31,E=2**v,C=E>>>1,F=C>>1,T=E-1;let P=0;for(let U=0;U1;){let B=V+Y>>>1;U>>1|b(),L=L<<1^C,X=(X^C)<<1|C|1;M=L,O=1+X-L}let k=r-4;return D.map(U=>{switch(U-k){case 3:return k+65792+(t[o++]<<16|t[o++]<<8|t[o++]);case 2:return k+256+(t[o++]<<8|t[o++]);case 1:return k+t[o++];default:return U-1}})}function Kle(t){let e=0;return()=>t[e++]}function ij(t){return Kle(Wle(Zle(t)))}function Zle(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((a,i)=>e[a.charCodeAt(0)]=i);let n=t.length,r=new Uint8Array(6*n>>3);for(let a=0,i=0,s=0,o=0;a=8&&(r[i++]=o>>(s-=8));return r}function Qle(t){return t&1?~t>>1:t>>1}function Xle(t,e){let n=Array(t);for(let r=0,a=0;r{let e=Im(t);if(e.length)return e})}function oj(t){let e=[];for(;;){let n=t();if(n==0)break;e.push(Jle(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(Yle(n,t))}return e.flat()}function Om(t){let e=[];for(;;){let n=t(e.length);if(!n)break;e.push(n)}return e}function cj(t,e,n){let r=Array(t).fill().map(()=>[]);for(let a=0;ar[s].push(i));return r}function Jle(t,e){let n=1+e(),r=e(),a=Om(e);return cj(a.length,1+t,e).flatMap((s,o)=>{let[c,...h]=s;return Array(a[o]).fill().map((b,v)=>{let E=v*r;return[c+v*n,h.map(C=>C+E)]})})}function Yle(t,e){let n=1+e();return cj(n,1+t,e).map(a=>[a[0],a.slice(1)])}function eue(t){let e=[],n=Im(t);return a(r([]),[]),e;function r(i){let s=t(),o=Om(()=>{let c=Im(t).map(h=>n[h]);if(c.length)return r(c)});return{S:s,B:o,Q:i}}function a({S:i,B:s},o,c){if(!(i&4&&c===o[o.length-1])){i&2&&(c=o[o.length-1]),i&1&&e.push(o);for(let h of s)for(let b of h.Q)a(h,[...o,b],c)}}}function tue(t){return t.toString(16).toUpperCase().padStart(2,"0")}function lj(t){return`{${tue(t)}}`}function nue(t){let e=[];for(let n=0,r=t.length;n>24&255}function dj(t){return t&16777215}let Aw,yD,_w,l6;function uue(){let t=ij(aue);Aw=new Map(sj(t).flatMap((e,n)=>e.map(r=>[r,n+1<<24]))),yD=new Set(Im(t)),_w=new Map,l6=new Map;for(let[e,n]of oj(t)){if(!yD.has(e)&&n.length==2){let[r,a]=n,i=l6.get(r);i||(i=new Map,l6.set(r,i)),i.set(a,e)}_w.set(e,n.reverse())}}function hj(t){return t>=Pm&&t=pg&&t=yg&&emg&&e0&&a(mg+h)}else{let s=_w.get(i);s?n.push(...s):a(i)}if(!n.length)break;i=n.pop()}if(r&&e.length>1){let i=vy(e[0]);for(let s=1;s0&&a>=s)s==0?(e.push(r,...n),n.length=0,r=o):n.push(o),a=s;else{let c=fue(r,o);c>=0?r=c:a==0&&s==0?(e.push(r),r=o):(n.push(o),a=s)}}return r>=0&&e.push(r,...n),e}function yj(t){return pj(t).map(dj)}function hue(t){return due(pj(t))}const mD=45,mj=".",bj=65039,gj=1,j0=t=>Array.from(t);function Rm(t,e){return t.P.has(e)||t.Q.has(e)}class pue extends Array{get is_emoji(){return!0}}let Cw,xj,cf,Bw,vj,rh,hv,m0,wj,bD,Sw;function cC(){if(Cw)return;let t=ij(qle);const e=()=>Im(t),n=()=>new Set(e());Cw=new Map(oj(t)),xj=n(),cf=e(),Bw=new Set(e().map(b=>cf[b])),cf=new Set(cf),vj=n(),n();let r=sj(t),a=t();const i=()=>new Set(e().flatMap(b=>r[b]).concat(e()));rh=Om(b=>{let v=Om(t).map(E=>E+96);if(v.length){let E=b>=a;v[0]-=32,v=gp(v),E&&(v=`Restricted[${v}]`);let C=i(),F=i(),T=!t();return{N:v,P:C,Q:F,M:T,R:E}}}),hv=n(),m0=new Map;let s=e().concat(j0(hv)).sort((b,v)=>b-v);s.forEach((b,v)=>{let E=t(),C=s[v]=E?s[v-E]:{V:[],M:new Map};C.V.push(b),hv.has(b)||m0.set(b,C)});for(let{V:b,M:v}of new Set(m0.values())){let E=[];for(let F of b){let T=rh.filter(D=>Rm(D,F)),P=E.find(({G:D})=>T.some(M=>D.has(M)));P||(P={G:new Set,V:[]},E.push(P)),P.V.push(F),T.forEach(D=>P.G.add(D))}let C=E.flatMap(F=>j0(F.G));for(let{G:F,V:T}of E){let P=new Set(C.filter(D=>!F.has(D)));for(let D of T)v.set(D,P)}}let o=new Set,c=new Set;const h=b=>o.has(b)?c.add(b):o.add(b);for(let b of rh){for(let v of b.P)h(v);for(let v of b.Q)h(v)}for(let b of o)!m0.has(b)&&!c.has(b)&&m0.set(b,gj);wj=new Set(j0(o).concat(j0(yj(o)))),bD=eue(t).map(b=>pue.from(b)).sort(rue),Sw=new Map;for(let b of bD){let v=[Sw];for(let E of b){let C=v.map(F=>{let T=F.get(E);return T||(T=new Map,F.set(E,T)),T});E===bj?v.push(...C):v=C}for(let E of v)E.V=b}}function lC(t){return(Ej(t)?"":`${uC(dx([t]))} `)+lj(t)}function uC(t){return`"${t}"‎`}function yue(t){if(t.length>=4&&t[2]==mD&&t[3]==mD)throw new Error(`invalid label extension: "${gp(t.slice(0,4))}"`)}function mue(t){for(let n=t.lastIndexOf(95);n>0;)if(t[--n]!==95)throw new Error("underscore allowed only at start")}function bue(t){let e=t[0],n=hD.get(e);if(n)throw Qy(`leading ${n}`);let r=t.length,a=-1;for(let i=1;i{let i=nue(a),s={input:i,offset:r};r+=i.length+1;try{let o=s.tokens=Cue(i,e,n),c=o.length,h;if(!c)throw new Error("empty label");let b=s.output=o.flat();if(mue(b),!(s.emoji=c>1||o[0].is_emoji)&&b.every(E=>E<128))yue(b),h="ASCII";else{let E=o.flatMap(C=>C.is_emoji?[]:C);if(!E.length)h="Emoji";else{if(cf.has(b[0]))throw Qy("leading combining mark");for(let T=1;Ts.has(o)):j0(s),!n.length)return}else r.push(a)}if(n){for(let a of n)if(r.every(i=>Rm(a,i)))throw new Error(`whole-script confusable: ${t.N}/${a.N}`)}}function Eue(t){let e=rh;for(let n of t){let r=e.filter(a=>Rm(a,n));if(!r.length)throw rh.some(a=>Rm(a,n))?_j(e[0],n):Aj(n);if(e=r,r.length==1)break}return e}function Aue(t){return t.map(({input:e,error:n,output:r})=>{if(n){let a=n.message;throw new Error(t.length==1?a:`Invalid label ${uC(dx(e))}: ${a}`)}return gp(r)}).join(mj)}function Aj(t){return new Error(`disallowed character: ${lC(t)}`)}function _j(t,e){let n=lC(e),r=rh.find(a=>a.P.has(e));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${t.N} + ${n}`)}function Qy(t){return new Error(`illegal placement: ${t}`)}function _ue(t,e){for(let n of e)if(!Rm(t,n))throw _j(t,n);if(t.M){let n=yj(e);for(let r=1,a=n.length;rpD)throw new Error(`excessive non-spacing marks: ${uC(dx(n.slice(r-1,i)))} (${i-r}/${pD})`);r=i}}}function Cue(t,e,n){let r=[],a=[];for(t=t.slice().reverse();t.length;){let i=Sue(t);if(i)a.length&&(r.push(e(a)),a=[]),r.push(n(i));else{let s=t.pop();if(wj.has(s))a.push(s);else{let o=Cw.get(s);if(o)a.push(...o);else if(!xj.has(s))throw Aj(s)}}}return a.length&&r.push(e(a)),r}function Bue(t){return t.filter(e=>e!=bj)}function Sue(t,e){let n=Sw,r,a=t.length;for(;a&&(n=n.get(t[--a]),!!n);){let{V:i}=n;i&&(r=i,e&&e.push(...t.slice(a).reverse()),t.length=a)}return r}const Cj=new Uint8Array(32);Cj.fill(0);function gD(t){return le(t.length!==0,"invalid ENS name; empty component","comp",t),t}function fC(t){const e=Zn(dC(t)),n=[];if(t.length===0)return n;let r=0;for(let a=0;a{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}function pv(t,e){return{address:Et(t),storageKeys:e.map((n,r)=>(le(bn(n,32),"invalid slot",`storageKeys[${r}]`,n),n.toLowerCase()))}}function Ro(t){if(Array.isArray(t))return t.map((n,r)=>Array.isArray(n)?(le(n.length===2,"invalid slot set",`value[${r}]`,n),pv(n[0],n[1])):(le(n!=null&&typeof n=="object","invalid address-slot set","value",t),pv(n.address,n.storageKeys)));le(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(n=>{const r=t[n].reduce((a,i)=>(a[i]=!0,a),{});return pv(n,Object.keys(r).sort())});return e.sort((n,r)=>n.address.localeCompare(r.address)),e}function Sd(t){let e;return typeof t=="string"?e=Gi.computePublicKey(t,!1):e=t.publicKey,Et(Vt("0x"+e.substring(4)).substring(26))}function Xb(t,e){return Sd(Gi.recoverPublicKey(t,e))}const Ta=BigInt(0),Tue=BigInt(2),Fue=BigInt(27),Mue=BigInt(28),Due=BigInt(35),kue=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function pC(t){return t==="0x"?null:Et(t)}function Sj(t,e){try{return Ro(t)}catch(n){le(!1,n.message,e,t)}}function hx(t,e){return t==="0x"?0:lt(t,e)}function pa(t,e){if(t==="0x")return Ta;const n=it(t,e);return le(n<=kue,"value exceeds uint size",e,n),n}function Ir(t,e){const n=it(t,"value"),r=Or(n);return le(r.length<=32,"value too large",`tx.${e}`,n),r}function Tj(t){return Ro(t).map(e=>[e.address,e.storageKeys])}function Iue(t){const e=Qb(t);le(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",t);const n={type:0,nonce:hx(e[0],"nonce"),gasPrice:pa(e[1],"gasPrice"),gasLimit:pa(e[2],"gasLimit"),to:pC(e[3]),value:pa(e[4],"value"),data:Ve(e[5]),chainId:Ta};if(e.length===6)return n;const r=pa(e[6],"v"),a=pa(e[7],"r"),i=pa(e[8],"s");if(a===Ta&&i===Ta)n.chainId=r;else{let s=(r-Due)/Tue;s=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),Te(!n||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),Te(this.type!==0||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const a=[];return this.type!=null?a.push(this.type):n?a.push(2):e?(a.push(1),r||a.push(0)):r?(a.push(1),a.push(2)):(a.push(0),a.push(1),a.push(2)),a.sort(),a}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return El.from(this)}toJSON(){const e=n=>n==null?null:n.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new El;if(typeof e=="string"){const r=Ze(e);if(r[0]>=127)return El.from(Iue(r));switch(r[0]){case 1:return El.from(Pue(r));case 2:return El.from(Oue(r))}Te(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const n=new El;return e.type!=null&&(n.type=e.type),e.to!=null&&(n.to=e.to),e.nonce!=null&&(n.nonce=e.nonce),e.gasLimit!=null&&(n.gasLimit=e.gasLimit),e.gasPrice!=null&&(n.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(n.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(n.data=e.data),e.value!=null&&(n.value=e.value),e.chainId!=null&&(n.chainId=e.chainId),e.signature!=null&&(n.signature=ks.from(e.signature)),e.accessList!=null&&(n.accessList=e.accessList),e.hash!=null&&(le(n.isSigned(),"unsigned transaction cannot define hash","tx",e),le(n.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(le(n.isSigned(),"unsigned transaction cannot define from","tx",e),le(n.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),n}};ic=new WeakMap,gh=new WeakMap,xh=new WeakMap,vh=new WeakMap,wh=new WeakMap,Eh=new WeakMap,Ah=new WeakMap,_h=new WeakMap,Ch=new WeakMap,Bh=new WeakMap,Sh=new WeakMap,Th=new WeakMap;let mu=El;function px(t){return typeof t=="string"&&(t=Zn(t)),Vt(jt([Zn(sC),Zn(String(t.length)),t]))}function Mj(t,e){const n=px(t);return Xb(n,e)}const Rue=new RegExp("^bytes([0-9]+)$"),Nue=new RegExp("^(u?int)([0-9]*)$"),$ue=new RegExp("^(.*)\\[([0-9]*)\\]$");function Dj(t,e,n){switch(t){case"address":return Ze(n?zi(e,32):Et(e));case"string":return Zn(e);case"bytes":return Ze(e);case"bool":return e=e?"0x01":"0x00",Ze(n?zi(e,32):e)}let r=t.match(Nue);if(r){let a=r[1]==="int",i=parseInt(r[2]||"256");return le((!r[2]||r[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),n&&(i=256),a&&(e=Zb(e,i)),Ze(zi(Or(e),i/8))}if(r=t.match(Rue),r){const a=parseInt(r[1]);return le(String(a)===r[1]&&a!==0&&a<=32,"invalid bytes type","type",t),le(Ac(e)===a,`invalid value for ${t}`,"value",e),n?Ze(Kb(e,32)):e}if(r=t.match($ue),r&&Array.isArray(e)){const a=r[1],i=parseInt(r[2]||String(e.length));le(i===e.length,`invalid array length for ${t}`,"value",e);const s=[];return e.forEach(function(o){s.push(Dj(a,o,!0))}),Ze(jt(s))}le(!1,"invalid type","type",t)}function yx(t,e){le(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const n=[];return t.forEach(function(r,a){n.push(Dj(r,e[a]))}),Ve(jt(n))}function kj(t,e){return Vt(yx(t,e))}function Ij(t,e){return xa(yx(t,e))}const Oj=new Uint8Array(32);Oj.fill(0);const Lue=BigInt(-1),Pj=BigInt(0),Rj=BigInt(1),Uue=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function jue(t){const e=Ze(t),n=e.length%32;return n?jt([e,Oj.slice(n)]):Ve(e)}const Hue=Ds(Rj,32),zue=Ds(Pj,32),ED={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},yv=["name","version","chainId","verifyingContract","salt"];function AD(t){return function(e){return le(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const Gue={name:AD("name"),version:AD("version"),chainId:function(t){const e=it(t,"domain.chainId");return le(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):xc(e)},verifyingContract:function(t){try{return Et(t).toLowerCase()}catch{}le(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Ze(t,"domain.salt");return le(e.length===32,'invalid domain value "salt"',"domain.salt",t),Ve(e)}};function mv(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=e[1]==="",r=parseInt(e[2]||"256");le(r%8===0&&r!==0&&r<=256&&(e[2]==null||e[2]===String(r)),"invalid numeric width","type",t);const a=gc(Uue,n?r-1:r),i=n?(a+Rj)*Lue:Pj;return function(s){const o=it(s,"value");return le(o>=i&&o<=a,`value out-of-bounds for ${t}`,"value",o),Ds(n?Zb(o,256):o,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return le(n!==0&&n<=32&&e[1]===String(n),"invalid bytes width","type",t),function(r){const a=Ze(r);return le(a.length===n,`invalid length for ${t}`,"value",r),jue(r)}}}switch(t){case"address":return function(e){return zi(Et(e),32)};case"bool":return function(e){return e?Hue:zue};case"bytes":return function(e){return Vt(e)};case"string":return function(e){return Is(e)}}return null}function _D(t,e){return`${t}(${e.map(({name:n,type:r})=>r+" "+n).join(",")})`}var cb,sc,Fh,n8,Nj;const Ei=class Ei{constructor(e){xe(this,n8);ge(this,"primaryType");xe(this,cb,void 0);xe(this,sc,void 0);xe(this,Fh,void 0);re(this,cb,JSON.stringify(e)),re(this,sc,new Map),re(this,Fh,new Map);const n=new Map,r=new Map,a=new Map;Object.keys(e).forEach(o=>{n.set(o,new Set),r.set(o,[]),a.set(o,new Set)});for(const o in e){const c=new Set;for(const h of e[o]){le(!c.has(h.name),`duplicate variable name ${JSON.stringify(h.name)} in ${JSON.stringify(o)}`,"types",e),c.add(h.name);const b=h.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;le(b!==o,`circular type reference to ${JSON.stringify(b)}`,"types",e),!mv(b)&&(le(r.has(b),`unknown type ${JSON.stringify(b)}`,"types",e),r.get(b).push(o),n.get(o).add(b))}}const i=Array.from(r.keys()).filter(o=>r.get(o).length===0);le(i.length!==0,"missing primary type","types",e),le(i.length===1,`ambiguous primary types or unused types: ${i.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),et(this,{primaryType:i[0]});function s(o,c){le(!c.has(o),`circular type reference to ${JSON.stringify(o)}`,"types",e),c.add(o);for(const h of n.get(o))if(r.has(h)){s(h,c);for(const b of c)a.get(b).add(h)}c.delete(o)}s(this.primaryType,new Set);for(const[o,c]of a){const h=Array.from(c);h.sort(),H(this,sc).set(o,_D(o,e[o])+h.map(b=>_D(b,e[b])).join(""))}}get types(){return JSON.parse(H(this,cb))}getEncoder(e){let n=H(this,Fh).get(e);return n||(n=ke(this,n8,Nj).call(this,e),H(this,Fh).set(e,n)),n}encodeType(e){const n=H(this,sc).get(e);return le(n,`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return Vt(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,r){if(mv(e))return r(e,n);const a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a)return le(!a[3]||parseInt(a[3])===n.length,`array length mismatch; expected length ${parseInt(a[3])}`,"value",n),n.map(s=>this._visit(a[1],s,r));const i=this.types[e];if(i)return i.reduce((s,{name:o,type:c})=>(s[o]=this._visit(c,n[o],r),s),{});le(!1,`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new Ei(e)}static getPrimaryType(e){return Ei.from(e).primaryType}static hashStruct(e,n,r){return Ei.from(n).hashStruct(e,r)}static hashDomain(e){const n=[];for(const r in e){if(e[r]==null)continue;const a=ED[r];le(a,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),n.push({name:r,type:a})}return n.sort((r,a)=>yv.indexOf(r.name)-yv.indexOf(a.name)),Ei.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,r){return jt(["0x1901",Ei.hashDomain(e),Ei.from(n).hash(r)])}static hash(e,n,r){return Vt(Ei.encode(e,n,r))}static async resolveNames(e,n,r,a){e=Object.assign({},e);for(const o in e)e[o]==null&&delete e[o];const i={};e.verifyingContract&&!bn(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const s=Ei.from(n);s.visit(r,(o,c)=>(o==="address"&&!bn(c,20)&&(i[c]="0x"),c));for(const o in i)i[o]=await a(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=s.visit(r,(o,c)=>o==="address"&&i[c]?i[c]:c),{domain:e,value:r}}static getPayload(e,n,r){Ei.hashDomain(e);const a={},i=[];yv.forEach(c=>{const h=e[c];h!=null&&(a[c]=Gue[c](h),i.push({name:c,type:ED[c]}))});const s=Ei.from(n),o=Object.assign({},n);return le(o.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",n),o.EIP712Domain=i,s.encode(r),{types:o,domain:a,primaryType:s.primaryType,message:s.visit(r,(c,h)=>{if(c.match(/^bytes(\d*)/))return Ve(Ze(h));if(c.match(/^u?int/))return it(h).toString();switch(c){case"address":return h.toLowerCase();case"bool":return!!h;case"string":return le(typeof h=="string","invalid string","value",h),h}le(!1,"unsupported type","type",c)})}}};cb=new WeakMap,sc=new WeakMap,Fh=new WeakMap,n8=new WeakSet,Nj=function(e){{const a=mv(e);if(a)return a}const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const a=n[1],i=this.getEncoder(a);return s=>{le(!n[3]||parseInt(n[3])===s.length,`array length mismatch; expected length ${parseInt(n[3])}`,"value",s);let o=s.map(i);return H(this,sc).has(a)&&(o=o.map(Vt)),Vt(jt(o))}}const r=this.types[e];if(r){const a=Is(H(this,sc).get(e));return i=>{const s=r.map(({name:o,type:c})=>{const h=this.getEncoder(c)(i[o]);return H(this,sc).has(c)?Vt(h):h});return s.unshift(a),jt(s)}}le(!1,`unknown type: ${e}`,"type",e)};let Ic=Ei;function $j(t,e,n,r){return Xb(Ic.hash(t,e,n),r)}function ba(t){const e=new Set;return t.forEach(n=>e.add(n)),Object.freeze(e)}const Vue="external public payable",que=ba(Vue.split(" ")),Lj="constant external internal payable private public pure view",Wue=ba(Lj.split(" ")),Uj="constructor error event fallback function receive struct",jj=ba(Uj.split(" ")),Hj="calldata memory storage payable indexed",Kue=ba(Hj.split(" ")),Zue="tuple returns",Que=[Uj,Hj,Zue,Lj].join(" "),Xue=ba(Que.split(" ")),Jue={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Yue=new RegExp("^(\\s*)"),efe=new RegExp("^([0-9]+)"),tfe=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),zj=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),Gj=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var Dr,bs,lb,Tw;const r8=class r8{constructor(e){xe(this,lb);xe(this,Dr,void 0);xe(this,bs,void 0);re(this,Dr,0),re(this,bs,e.slice())}get offset(){return H(this,Dr)}get length(){return H(this,bs).length-H(this,Dr)}clone(){return new r8(H(this,bs))}reset(){re(this,Dr,0)}popKeyword(e){const n=this.peek();if(n.type!=="KEYWORD"||!e.has(n.text))throw new Error(`expected keyword ${n.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const n=ke(this,lb,Tw).call(this,H(this,Dr)+1,e.match+1);return re(this,Dr,e.match+1),n}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const n=[];for(;H(this,Dr)=H(this,bs).length)throw new Error("out-of-bounds");return H(this,bs)[H(this,Dr)]}peekKeyword(e){const n=this.peekType("KEYWORD");return n!=null&&e.has(n)?n:null}peekType(e){if(this.length===0)return null;const n=this.peek();return n.type===e?n.text:null}pop(){const e=this.peek();return Gd(this,Dr)._++,e}toString(){const e=[];for(let n=H(this,Dr);n`}};Dr=new WeakMap,bs=new WeakMap,lb=new WeakSet,Tw=function(e=0,n=0){return new r8(H(this,bs).slice(e,n).map(r=>Object.freeze(Object.assign({},r,{match:r.match-e,linkBack:r.linkBack-e,linkNext:r.linkNext-e}))))};let Os=r8;function Cu(t){const e=[],n=s=>{const o=i0&&e[e.length-1].type==="NUMBER"){const v=e.pop().text;b=v+b,e[e.length-1].value=lt(v)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=b}continue}if(o=s.match(tfe),o){if(c.text=o[1],i+=c.text.length,Xue.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(Gj)){c.type="TYPE";continue}c.type="ID";continue}if(o=s.match(efe),o){c.text=o[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(s[0])} at position ${i}`)}return new Os(e.map(s=>Object.freeze(s)))}function CD(t,e){let n=[];for(const r in e.keys())t.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function mx(t,e){if(e.peekKeyword(jj)){const n=e.pop().text;if(n!==t)throw new Error(`expected ${t}, got ${n}`)}return e.popType("ID")}function Oc(t,e){const n=new Set;for(;;){const r=t.peekType("KEYWORD");if(r==null||e&&!e.has(r))break;if(t.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function Vj(t){let e=Oc(t,Wue);return CD(e,ba("constant payable nonpayable".split(" "))),CD(e,ba("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function _c(t,e){return t.popParams().map(n=>cr.from(n,e))}function qj(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return it(t.pop().text);throw new Error("invalid gas")}return null}function ad(t){if(t.length)throw new Error(`unexpected tokens: ${t.toString()}`)}const nfe=new RegExp(/^(.*)\[([0-9]*)\]$/);function BD(t){const e=t.match(Gj);if(le(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const n=parseInt(e[2]);le(n!==0&&n<=32,"invalid bytes length","type",t)}else if(e[3]){const n=parseInt(e[3]);le(n!==0&&n<=256&&n%8===0,"invalid numeric width","type",t)}return t}const En={},Ra=Symbol.for("_ethers_internal"),SD="_ParamTypeInternal",TD="_ErrorInternal",FD="_EventInternal",MD="_ConstructorInternal",DD="_FallbackInternal",kD="_FunctionInternal",ID="_StructInternal";var Mh,u6;const Ai=class Ai{constructor(e,n,r,a,i,s,o,c){xe(this,Mh);ge(this,"name");ge(this,"type");ge(this,"baseType");ge(this,"indexed");ge(this,"components");ge(this,"arrayLength");ge(this,"arrayChildren");if(Po(e,En,"ParamType"),Object.defineProperty(this,Ra,{value:SD}),s&&(s=Object.freeze(s.slice())),a==="array"){if(o==null||c==null)throw new Error("")}else if(o!=null||c!=null)throw new Error("");if(a==="tuple"){if(s==null)throw new Error("")}else if(s!=null)throw new Error("");et(this,{name:n,type:r,baseType:a,indexed:i,components:s,arrayLength:o,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const r=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=r,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const a={type:this.baseType==="tuple"?"tuple":this.type,name:r};return typeof this.indexed=="boolean"&&(a.indexed=this.indexed),this.isTuple()&&(a.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(a)}let n="";return this.isArray()?(n+=this.arrayChildren.format(e),n+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?n+="("+this.components.map(r=>r.format(e)).join(e==="full"?", ":",")+")":n+=this.type,e!=="sighash"&&(this.indexed===!0&&(n+=" indexed"),e==="full"&&this.name&&(n+=" "+this.name)),n}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,n){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return e.map(a=>r.arrayChildren.walk(a,n))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const r=this;return e.map((a,i)=>r.components[i].walk(a,n))}return n(this.type,e)}async walkAsync(e,n){const r=[],a=[e];return ke(this,Mh,u6).call(this,r,e,n,i=>{a[0]=i}),r.length&&await Promise.all(r),a[0]}static from(e,n){if(Ai.isParamType(e))return e;if(typeof e=="string")try{return Ai.from(Cu(e),n)}catch{le(!1,"invalid param type","obj",e)}else if(e instanceof Os){let o="",c="",h=null;Oc(e,ba(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",h=e.popParams().map(T=>Ai.from(T)),o=`tuple(${h.map(T=>T.format()).join(",")})`):(o=BD(e.popType("TYPE")),c=o);let b=null,v=null;for(;e.length&&e.peekType("BRACKET");){const T=e.pop();b=new Ai(En,"",o,c,null,h,v,b),v=T.value,o+=T.text,c="array",h=null}let E=null;if(Oc(e,Kue).has("indexed")){if(!n)throw new Error("");E=!0}const F=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Ai(En,F,o,c,E,h,v,b)}const r=e.name;le(!r||typeof r=="string"&&r.match(zj),"invalid name","obj.name",r);let a=e.indexed;a!=null&&(le(n,"parameter cannot be indexed","obj.indexed",e.indexed),a=!!a);let i=e.type,s=i.match(nfe);if(s){const o=parseInt(s[2]||"-1"),c=Ai.from({type:s[1],components:e.components});return new Ai(En,r||"",i,"array",a,null,o,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const o=e.components!=null?e.components.map(h=>Ai.from(h)):null;return new Ai(En,r||"",i,"tuple",a,o,null,null)}return i=BD(e.type),new Ai(En,r||"",i,i,a,null,null,null)}static isParamType(e){return e&&e[Ra]===SD}};Mh=new WeakSet,u6=function(e,n,r,a){if(this.isArray()){if(!Array.isArray(n))throw new Error("invalid array value");if(this.arrayLength!==-1&&n.length!==this.arrayLength)throw new Error("array is wrong length");const s=this.arrayChildren,o=n.slice();o.forEach((c,h)=>{var b;ke(b=s,Mh,u6).call(b,e,c,r,v=>{o[h]=v})}),a(o);return}if(this.isTuple()){const s=this.components;let o;if(Array.isArray(n))o=n.slice();else{if(n==null||typeof n!="object")throw new Error("invalid tuple value");o=s.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in n))throw new Error(`missing value for component ${c.name}`);return n[c.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((c,h)=>{var b;ke(b=s[h],Mh,u6).call(b,e,c,r,v=>{o[h]=v})}),a(o);return}const i=r(this.type,n);i.then?e.push(async function(){a(await i)}()):a(i)};let cr=Ai;class Pc{constructor(e,n,r){ge(this,"type");ge(this,"inputs");Po(e,En,"Fragment"),r=Object.freeze(r.slice()),et(this,{type:n,inputs:r})}static from(e){if(typeof e=="string"){try{Pc.from(JSON.parse(e))}catch{}return Pc.from(Cu(e))}if(e instanceof Os)switch(e.peekKeyword(jj)){case"constructor":return Bs.from(e);case"error":return ea.from(e);case"event":return Oi.from(e);case"fallback":case"receive":return _s.from(e);case"function":return Pi.from(e);case"struct":return Cc.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Bs.from(e);case"error":return ea.from(e);case"event":return Oi.from(e);case"fallback":case"receive":return _s.from(e);case"function":return Pi.from(e);case"struct":return Cc.from(e)}Te(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}le(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Bs.isFragment(e)}static isError(e){return ea.isFragment(e)}static isEvent(e){return Oi.isFragment(e)}static isFunction(e){return Pi.isFragment(e)}static isStruct(e){return Cc.isFragment(e)}}class t1 extends Pc{constructor(n,r,a,i){super(n,r,i);ge(this,"name");le(typeof a=="string"&&a.match(zj),"invalid identifier","name",a),i=Object.freeze(i.slice()),et(this,{name:a})}}function $m(t,e){return"("+e.map(n=>n.format(t)).join(t==="full"?", ":",")+")"}class ea extends t1{constructor(e,n,r){super(e,"error",n,r),Object.defineProperty(this,Ra,{value:TD})}get selector(){return Is(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});const n=[];return e!=="sighash"&&n.push("error"),n.push(this.name+$m(e,this.inputs)),n.join(" ")}static from(e){if(ea.isFragment(e))return e;if(typeof e=="string")return ea.from(Cu(e));if(e instanceof Os){const n=mx("error",e),r=_c(e);return ad(e),new ea(En,n,r)}return new ea(En,e.name,e.inputs?e.inputs.map(cr.from):[])}static isFragment(e){return e&&e[Ra]===TD}}class Oi extends t1{constructor(n,r,a,i){super(n,"event",r,a);ge(this,"anonymous");Object.defineProperty(this,Ra,{value:FD}),et(this,{anonymous:i})}get topicHash(){return Is(this.format("sighash"))}format(n){if(n==null&&(n="sighash"),n==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(a=>JSON.parse(a.format(n)))});const r=[];return n!=="sighash"&&r.push("event"),r.push(this.name+$m(n,this.inputs)),n!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(n,r){return r=(r||[]).map(i=>cr.from(i)),new Oi(En,n,r,!1).topicHash}static from(n){if(Oi.isFragment(n))return n;if(typeof n=="string")try{return Oi.from(Cu(n))}catch{le(!1,"invalid event fragment","obj",n)}else if(n instanceof Os){const r=mx("event",n),a=_c(n,!0),i=!!Oc(n,ba(["anonymous"])).has("anonymous");return ad(n),new Oi(En,r,a,i)}return new Oi(En,n.name,n.inputs?n.inputs.map(r=>cr.from(r,!0)):[],!!n.anonymous)}static isFragment(n){return n&&n[Ra]===FD}}class Bs extends Pc{constructor(n,r,a,i,s){super(n,r,a);ge(this,"payable");ge(this,"gas");Object.defineProperty(this,Ra,{value:MD}),et(this,{payable:i,gas:s})}format(n){if(Te(n!=null&&n!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),n==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(a=>JSON.parse(a.format(n)))});const r=[`constructor${$m(n,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(n){if(Bs.isFragment(n))return n;if(typeof n=="string")try{return Bs.from(Cu(n))}catch{le(!1,"invalid constuctor fragment","obj",n)}else if(n instanceof Os){Oc(n,ba(["constructor"]));const r=_c(n),a=!!Oc(n,que).has("payable"),i=qj(n);return ad(n),new Bs(En,"constructor",r,a,i)}return new Bs(En,"constructor",n.inputs?n.inputs.map(cr.from):[],!!n.payable,n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[Ra]===MD}}class _s extends Pc{constructor(n,r,a){super(n,"fallback",r);ge(this,"payable");Object.defineProperty(this,Ra,{value:DD}),et(this,{payable:a})}format(n){const r=this.inputs.length===0?"receive":"fallback";if(n==="json"){const a=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:a})}return`${r}()${this.payable?" payable":""}`}static from(n){if(_s.isFragment(n))return n;if(typeof n=="string")try{return _s.from(Cu(n))}catch{le(!1,"invalid fallback fragment","obj",n)}else if(n instanceof Os){const r=n.toString(),a=n.peekKeyword(ba(["fallback","receive"]));if(le(a,"type must be fallback or receive","obj",r),n.popKeyword(ba(["fallback","receive"]))==="receive"){const c=_c(n);return le(c.length===0,"receive cannot have arguments","obj.inputs",c),Oc(n,ba(["payable"])),ad(n),new _s(En,[],!0)}let s=_c(n);s.length?le(s.length===1&&s[0].type==="bytes","invalid fallback inputs","obj.inputs",s.map(c=>c.format("minimal")).join(", ")):s=[cr.from("bytes")];const o=Vj(n);if(le(o==="nonpayable"||o==="payable","fallback cannot be constants","obj.stateMutability",o),Oc(n,ba(["returns"])).has("returns")){const c=_c(n);le(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(h=>h.format("minimal")).join(", "))}return ad(n),new _s(En,s,o==="payable")}if(n.type==="receive")return new _s(En,[],!0);if(n.type==="fallback"){const r=[cr.from("bytes")],a=n.stateMutability==="payable";return new _s(En,r,a)}le(!1,"invalid fallback description","obj",n)}static isFragment(n){return n&&n[Ra]===DD}}class Pi extends t1{constructor(n,r,a,i,s,o){super(n,"function",r,i);ge(this,"constant");ge(this,"outputs");ge(this,"stateMutability");ge(this,"payable");ge(this,"gas");Object.defineProperty(this,Ra,{value:kD}),s=Object.freeze(s.slice()),et(this,{constant:a==="view"||a==="pure",gas:o,outputs:s,payable:a==="payable",stateMutability:a})}get selector(){return Is(this.format("sighash")).substring(0,10)}format(n){if(n==null&&(n="sighash"),n==="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!=null?this.gas:void 0,inputs:this.inputs.map(a=>JSON.parse(a.format(n))),outputs:this.outputs.map(a=>JSON.parse(a.format(n)))});const r=[];return n!=="sighash"&&r.push("function"),r.push(this.name+$m(n,this.inputs)),n!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push($m(n,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(n,r){return r=(r||[]).map(i=>cr.from(i)),new Pi(En,n,"view",r,[],null).selector}static from(n){if(Pi.isFragment(n))return n;if(typeof n=="string")try{return Pi.from(Cu(n))}catch{le(!1,"invalid function fragment","obj",n)}else if(n instanceof Os){const a=mx("function",n),i=_c(n),s=Vj(n);let o=[];Oc(n,ba(["returns"])).has("returns")&&(o=_c(n));const c=qj(n);return ad(n),new Pi(En,a,s,i,o,c)}let r=n.stateMutability;return r==null&&(r="payable",typeof n.constant=="boolean"?(r="view",n.constant||(r="payable",typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable"))):typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable")),new Pi(En,n.name,r,n.inputs?n.inputs.map(cr.from):[],n.outputs?n.outputs.map(cr.from):[],n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[Ra]===kD}}class Cc extends t1{constructor(e,n,r){super(e,"struct",n,r),Object.defineProperty(this,Ra,{value:ID})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return Cc.from(Cu(e))}catch{le(!1,"invalid struct fragment","obj",e)}else if(e instanceof Os){const n=mx("struct",e),r=_c(e);return ad(e),new Cc(En,n,r)}return new Cc(En,e.name,e.inputs?e.inputs.map(cr.from):[])}static isFragment(e){return e&&e[Ra]===ID}}const Ns=new Map;Ns.set(0,"GENERIC_PANIC");Ns.set(1,"ASSERT_FALSE");Ns.set(17,"OVERFLOW");Ns.set(18,"DIVIDE_BY_ZERO");Ns.set(33,"ENUM_RANGE_ERROR");Ns.set(34,"BAD_STORAGE_DATA");Ns.set(49,"STACK_UNDERFLOW");Ns.set(50,"ARRAY_RANGE_ERROR");Ns.set(65,"OUT_OF_MEMORY");Ns.set(81,"UNINITIALIZED_FUNCTION_CALL");const rfe=new RegExp(/^bytes([0-9]*)$/),afe=new RegExp(/^(u?int)([0-9]*)$/);let bv=null,OD=1024;function ife(t,e,n,r){let a="missing revert data",i=null;const s=null;let o=null;if(n){a="execution reverted";const h=Ze(n);if(n=Ve(n),h.length===0)a+=" (no data present; likely require(false) occurred",i="require(false)";else if(h.length%32!==4)a+=" (could not decode reason; invalid data length)";else if(Ve(h.slice(0,4))==="0x08c379a0")try{i=r.decode(["string"],h.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},a+=`: ${JSON.stringify(i)}`}catch{a+=" (could not decode reason; invalid string data)"}else if(Ve(h.slice(0,4))==="0x4e487b71")try{const b=Number(r.decode(["uint256"],h.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[b]},i=`Panic due to ${Ns.get(b)||"UNKNOWN"}(${b})`,a+=`: ${i}`}catch{a+=" (could not decode panic code)"}else a+=" (unknown custom error)"}const c={to:e.to?Et(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Et(e.from)),gn(a,"CALL_EXCEPTION",{action:t,data:n,reason:i,transaction:c,invocation:s,revert:o})}var Ml,b0;const a8=class a8{constructor(){xe(this,Ml)}getDefaultValue(e){const n=e.map(a=>ke(this,Ml,b0).call(this,cr.from(a)));return new r3(n,"_").defaultValue()}encode(e,n){ax(n.length,e.length,"types/values length mismatch");const r=e.map(s=>ke(this,Ml,b0).call(this,cr.from(s))),a=new r3(r,"_"),i=new vw;return a.encode(i,n),i.data}decode(e,n,r){const a=e.map(s=>ke(this,Ml,b0).call(this,cr.from(s)));return new r3(a,"_").decode(new ww(n,r,OD))}static _setDefaultMaxInflation(e){le(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),OD=e}static defaultAbiCoder(){return bv==null&&(bv=new a8),bv}static getBuiltinCallException(e,n,r){return ife(e,n,r,a8.defaultAbiCoder())}};Ml=new WeakSet,b0=function(e){if(e.isArray())return new Ple(ke(this,Ml,b0).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new r3(e.components.map(r=>ke(this,Ml,b0).call(this,r)),e.name);switch(e.baseType){case"address":return new Ile(e.name);case"bool":return new Rle(e.name);case"string":return new Vle(e.name);case"bytes":return new Nle(e.name);case"":return new Ule(e.name)}let n=e.type.match(afe);if(n){let r=parseInt(n[2]||"256");return le(r!==0&&r<=256&&r%8===0,"invalid "+n[1]+" bit length","param",e),new Gle(r/8,n[1]==="int",e.name)}if(n=e.type.match(rfe),n){let r=parseInt(n[1]);return le(r!==0&&r<=32,"invalid bytes length","param",e),new $le(r,e.name)}le(!1,"invalid type","type",e.type)};let bu=a8;function Wj(t){const e=Zn(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Kb(e,32)}function Kj(t){const e=Ze(t,"bytes");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");let n=31;for(;e[n-1]===0;)n--;return yu(e.slice(0,n))}class yC{constructor(e,n,r){ge(this,"fragment");ge(this,"name");ge(this,"signature");ge(this,"topic");ge(this,"args");const a=e.name,i=e.format();et(this,{fragment:e,name:a,signature:i,topic:n,args:r})}}class mC{constructor(e,n,r,a){ge(this,"fragment");ge(this,"name");ge(this,"args");ge(this,"signature");ge(this,"selector");ge(this,"value");const i=e.name,s=e.format();et(this,{fragment:e,name:i,args:r,signature:s,selector:n,value:a})}}class bC{constructor(e,n,r){ge(this,"fragment");ge(this,"name");ge(this,"args");ge(this,"signature");ge(this,"selector");const a=e.name,i=e.format();et(this,{fragment:e,name:a,args:r,signature:i,selector:n})}}class gg{constructor(e){ge(this,"hash");ge(this,"_isIndexed");et(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const PD={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},RD={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&PD[t.toString()]&&(e=PD[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var ro,ao,io,qr,Dh,f6,kh,d6;const V0=class V0{constructor(e){xe(this,Dh);xe(this,kh);ge(this,"fragments");ge(this,"deploy");ge(this,"fallback");ge(this,"receive");xe(this,ro,void 0);xe(this,ao,void 0);xe(this,io,void 0);xe(this,qr,void 0);let n=[];typeof e=="string"?n=JSON.parse(e):n=e,re(this,io,new Map),re(this,ro,new Map),re(this,ao,new Map);const r=[];for(const s of n)try{r.push(Pc.from(s))}catch(o){console.log("EE",o)}et(this,{fragments:Object.freeze(r)});let a=null,i=!1;re(this,qr,this.getAbiCoder()),this.fragments.forEach((s,o)=>{let c;switch(s.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}et(this,{deploy:s});return;case"fallback":s.inputs.length===0?i=!0:(le(!a||s.payable!==a.payable,"conflicting fallback fragments",`fragments[${o}]`,s),a=s,i=a.payable);return;case"function":c=H(this,io);break;case"event":c=H(this,ao);break;case"error":c=H(this,ro);break;default:return}const h=s.format();c.has(h)||c.set(h,s)}),this.deploy||et(this,{deploy:Bs.from("constructor()")}),et(this,{fallback:a,receive:i})}format(e){const n=e?"minimal":"full";return this.fragments.map(a=>a.format(n))}formatJson(){const e=this.fragments.map(n=>n.format("json"));return JSON.stringify(e.map(n=>JSON.parse(n)))}getAbiCoder(){return bu.defaultAbiCoder()}getFunctionName(e){const n=ke(this,Dh,f6).call(this,e,null,!1);return le(n,"no matching function","key",e),n.name}hasFunction(e){return!!ke(this,Dh,f6).call(this,e,null,!1)}getFunction(e,n){return ke(this,Dh,f6).call(this,e,n||null,!0)}forEachFunction(e){const n=Array.from(H(this,io).keys());n.sort((r,a)=>r.localeCompare(a));for(let r=0;rr.localeCompare(a));for(let r=0;r1){const i=a.map(s=>JSON.stringify(s.format())).join(", ");le(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return a[0]}if(e=ea.from(e).format(),e==="Error(string)")return ea.from("error Error(string)");if(e==="Panic(uint256)")return ea.from("error Panic(uint256)");const r=H(this,ro).get(e);return r||null}forEachError(e){const n=Array.from(H(this,ro).keys());n.sort((r,a)=>r.localeCompare(a));for(let r=0;ri.type==="string"?Is(s):i.type==="bytes"?Vt(Ve(s)):(i.type==="bool"&&typeof s=="boolean"?s=s?"0x01":"0x00":i.type.match(/^u?int/)?s=Ds(s):i.type.match(/^bytes/)?s=Kb(s,32):i.type==="address"&&H(this,qr).encode(["address"],[s]),zi(Ve(s),32));for(n.forEach((i,s)=>{const o=e.inputs[s];if(!o.indexed){le(i==null,"cannot filter non-indexed parameters; must be null","contract."+o.name,i);return}i==null?r.push(null):o.baseType==="array"||o.baseType==="tuple"?le(!1,"filtering with tuples or arrays not supported","contract."+o.name,i):Array.isArray(i)?r.push(i.map(c=>a(o,c))):r.push(a(o,i))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(e,n){if(typeof e=="string"){const s=this.getEvent(e);le(s,"unknown event","eventFragment",e),e=s}const r=[],a=[],i=[];return e.anonymous||r.push(e.topicHash),le(n.length===e.inputs.length,"event arguments/values mismatch","values",n),e.inputs.forEach((s,o)=>{const c=n[o];if(s.indexed)if(s.type==="string")r.push(Is(c));else if(s.type==="bytes")r.push(Vt(c));else{if(s.baseType==="tuple"||s.baseType==="array")throw new Error("not implemented");r.push(H(this,qr).encode([s.type],[c]))}else a.push(s),i.push(c)}),{data:H(this,qr).encode(a,i),topics:r}}decodeEventLog(e,n,r){if(typeof e=="string"){const C=this.getEvent(e);le(C,"unknown event","eventFragment",e),e=C}if(r!=null&&!e.anonymous){const C=e.topicHash;le(bn(r[0],32)&&r[0].toLowerCase()===C,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const a=[],i=[],s=[];e.inputs.forEach((C,F)=>{C.indexed?C.type==="string"||C.type==="bytes"||C.baseType==="tuple"||C.baseType==="array"?(a.push(cr.from({type:"bytes32",name:C.name})),s.push(!0)):(a.push(C),s.push(!1)):(i.push(C),s.push(!1))});const o=r!=null?H(this,qr).decode(a,jt(r)):null,c=H(this,qr).decode(i,n,!0),h=[],b=[];let v=0,E=0;return e.inputs.forEach((C,F)=>{let T=null;if(C.indexed)if(o==null)T=new gg(null);else if(s[F])T=new gg(o[E++]);else try{T=o[E++]}catch(P){T=P}else try{T=c[v++]}catch(P){T=P}h.push(T),b.push(C.name||null)}),bp.fromItems(h,b)}parseTransaction(e){const n=Ze(e.data,"tx.data"),r=it(e.value!=null?e.value:0,"tx.value"),a=this.getFunction(Ve(n.slice(0,4)));if(!a)return null;const i=H(this,qr).decode(a.inputs,n.slice(4));return new mC(a,a.selector,i,r)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new yC(n,n.topicHash,this.decodeEventLog(n,e.data,e.topics))}parseError(e){const n=Ve(e),r=this.getError(Yt(n,0,4));if(!r)return null;const a=H(this,qr).decode(r.inputs,Yt(n,4));return new bC(r,r.selector,a)}static from(e){return e instanceof V0?e:typeof e=="string"?new V0(JSON.parse(e)):typeof e.format=="function"?new V0(e.format("json")):new V0(e)}};ro=new WeakMap,ao=new WeakMap,io=new WeakMap,qr=new WeakMap,Dh=new WeakSet,f6=function(e,n,r){if(bn(e)){const i=e.toLowerCase();for(const s of H(this,io).values())if(i===s.selector)return s;return null}if(e.indexOf("(")===-1){const i=[];for(const[s,o]of H(this,io))s.split("(")[0]===e&&i.push(o);if(n){const s=n.length>0?n[n.length-1]:null;let o=n.length,c=!0;Ar.isTyped(s)&&s.type==="overrides"&&(c=!1,o--);for(let h=i.length-1;h>=0;h--){const b=i[h].inputs.length;b!==o&&(!c||b!==o-1)&&i.splice(h,1)}for(let h=i.length-1;h>=0;h--){const b=i[h].inputs;for(let v=0;v=b.length){if(n[v].type==="overrides")continue;i.splice(h,1);break}if(n[v].type!==b[v].baseType){i.splice(h,1);break}}}}if(i.length===1&&n&&n.length!==i[0].inputs.length){const s=n[n.length-1];(s==null||Array.isArray(s)||typeof s!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&r){const s=i.map(o=>JSON.stringify(o.format())).join(", ");le(!1,`ambiguous function description (i.e. matches ${s})`,"key",e)}return i[0]}const a=H(this,io).get(Pi.from(e).format());return a||null},kh=new WeakSet,d6=function(e,n,r){if(bn(e)){const i=e.toLowerCase();for(const s of H(this,ao).values())if(i===s.topicHash)return s;return null}if(e.indexOf("(")===-1){const i=[];for(const[s,o]of H(this,ao))s.split("(")[0]===e&&i.push(o);if(n){for(let s=i.length-1;s>=0;s--)i[s].inputs.length=0;s--){const o=i[s].inputs;for(let c=0;c1&&r){const s=i.map(o=>JSON.stringify(o.format())).join(", ");le(!1,`ambiguous event description (i.e. matches ${s})`,"key",e)}return i[0]}const a=H(this,ao).get(Oi.from(e).format());return a||null};let vp=V0;const Zj=BigInt(0);function Xy(t){return t??null}function ta(t){return t==null?null:t.toString()}class xg{constructor(e,n,r){ge(this,"gasPrice");ge(this,"maxFeePerGas");ge(this,"maxPriorityFeePerGas");et(this,{gasPrice:Xy(e),maxFeePerGas:Xy(n),maxPriorityFeePerGas:Xy(r)})}toJSON(){const{gasPrice:e,maxFeePerGas:n,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:ta(e),maxFeePerGas:ta(n),maxPriorityFeePerGas:ta(r)}}}function wp(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=Ve(t.data));const n="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const a of n)!(a in t)||t[a]==null||(e[a]=it(t[a],`request.${a}`));const r="type,nonce".split(/,/);for(const a of r)!(a in t)||t[a]==null||(e[a]=lt(t[a],`request.${a}`));return t.accessList&&(e.accessList=Ro(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),e}var oc;class gC{constructor(e,n){ge(this,"provider");ge(this,"number");ge(this,"hash");ge(this,"timestamp");ge(this,"parentHash");ge(this,"nonce");ge(this,"difficulty");ge(this,"gasLimit");ge(this,"gasUsed");ge(this,"miner");ge(this,"extraData");ge(this,"baseFeePerGas");xe(this,oc,void 0);re(this,oc,e.transactions.map(r=>typeof r!="string"?new id(r,n):r)),et(this,{provider:n,hash:Xy(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:Xy(e.baseFeePerGas)})}get transactions(){return H(this,oc).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=H(this,oc).slice();return e.length===0?[]:(Te(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:n,extraData:r,gasLimit:a,gasUsed:i,hash:s,miner:o,nonce:c,number:h,parentHash:b,timestamp:v,transactions:E}=this;return{_type:"Block",baseFeePerGas:ta(e),difficulty:ta(n),extraData:r,gasLimit:ta(a),gasUsed:ta(i),hash:s,miner:o,nonce:c,number:h,parentHash:b,timestamp:v,transactions:E}}[Symbol.iterator](){let e=0;const n=this.transactions;return{next:()=>enew Td(a,n))));let r=Zj;e.effectiveGasPrice!=null?r=e.effectiveGasPrice:e.gasPrice!=null&&(r=e.gasPrice),et(this,{provider:n,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:r,type:e.type,status:e.status,root:e.root})}get logs(){return H(this,ub)}toJSON(){const{to:e,from:n,contractAddress:r,hash:a,index:i,blockHash:s,blockNumber:o,logsBloom:c,logs:h,status:b,root:v}=this;return{_type:"TransactionReceipt",blockHash:s,blockNumber:o,contractAddress:r,cumulativeGasUsed:ta(this.cumulativeGasUsed),from:n,gasPrice:ta(this.gasPrice),gasUsed:ta(this.gasUsed),hash:a,index:i,logs:h,logsBloom:c,root:v,status:b,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:E,nonce:C}=await nr({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(C{if(E==null||E.status!==0)return E;Te(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:E.to,from:E.from,data:""},receipt:E})},b=await this.provider.getTransactionReceipt(this.hash);if(r===0)return h(b);if(b){if(await b.confirmations()>=r)return h(b)}else if(await c(),r===0)return null;return await new Promise((E,C)=>{const F=[],T=()=>{F.forEach(D=>D())};if(F.push(()=>{o=!0}),a>0){const D=setTimeout(()=>{T(),C(gn("wait for transaction timeout","TIMEOUT"))},a);F.push(()=>{clearTimeout(D)})}const P=async D=>{if(await D.confirmations()>=r){T();try{E(h(D))}catch(M){C(M)}}};if(F.push(()=>{this.provider.off(this.hash,P)}),this.provider.on(this.hash,P),i>=0){const D=async()=>{try{await c()}catch(M){if(Kn(M,"TRANSACTION_REPLACED")){T(),C(M);return}}o||this.provider.once("block",D)};F.push(()=>{this.provider.off("block",D)}),this.provider.once("block",D)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return Te(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Xj(this)}reorderedEvent(e){return Te(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Te(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Qj(this,e)}replaceableTransaction(e){le(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const n=new iT(this,this.provider);return re(n,Dl,e),n}};Dl=new WeakMap;let id=iT;function sfe(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function Qj(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function Xj(t){return{orphan:"drop-transaction",tx:t}}function ofe(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class Jb extends Td{constructor(n,r,a){super(n,n.provider);ge(this,"interface");ge(this,"fragment");ge(this,"args");const i=r.decodeEventLog(a,n.data,n.topics);et(this,{args:i,fragment:a,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class gx extends Td{constructor(n,r){super(n,n.provider);ge(this,"error");et(this,{error:r})}}var Ih;class xC extends bx{constructor(n,r,a){super(a,r);xe(this,Ih,void 0);re(this,Ih,n)}get logs(){return super.logs.map(n=>{const r=n.topics.length?H(this,Ih).getEvent(n.topics[0]):null;if(r)try{return new Jb(n,H(this,Ih),r)}catch(a){return new gx(n,a)}return n})}}Ih=new WeakMap;var fb;class Yb extends id{constructor(n,r,a){super(a,r);xe(this,fb,void 0);re(this,fb,n)}async wait(n){const r=await super.wait(n);return r==null?null:new xC(H(this,fb),this.provider,r)}}fb=new WeakMap;class xx extends lx{constructor(n,r,a,i){super(n,r,a);ge(this,"log");et(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class vC extends xx{constructor(e,n,r,a,i){super(e,n,r,new Jb(i,e.interface,a));const s=e.interface.decodeEventLog(a,this.log.data,this.log.topics);et(this,{args:s,fragment:a})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const ND=BigInt(0);function Jj(t){return t&&typeof t.call=="function"}function Yj(t){return t&&typeof t.estimateGas=="function"}function vx(t){return t&&typeof t.resolveName=="function"}function eH(t){return t&&typeof t.sendTransaction=="function"}function tH(t){if(t!=null){if(vx(t))return t;if(t.provider)return t.provider}}var db;class cfe{constructor(e,n,r){xe(this,db,void 0);ge(this,"fragment");if(et(this,{fragment:n}),n.inputs.lengthr[c]==null?null:o.walkAsync(r[c],(b,v)=>b==="address"?Array.isArray(v)?Promise.all(v.map(E=>or(E,i))):or(v,i):v)));return e.interface.encodeFilterTopics(n,s)}())}getTopicFilter(){return H(this,db)}}db=new WeakMap;function sd(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function lf(t){return t==null?null:t.provider||null}async function wC(t,e){const n=Ar.dereference(t,"overrides");le(typeof n=="object","invalid overrides parameter","overrides",t);const r=wp(n);return le(r.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),le(r.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function nH(t,e,n){const r=sd(t,"resolveName"),a=vx(r)?r:null;return await Promise.all(e.map((i,s)=>i.walkAsync(n[s],(o,c)=>(c=Ar.dereference(c,o),o==="address"?or(c,a):c))))}function lfe(t){const e=async function(s){const o=await wC(s,["data"]);o.to=await t.getAddress(),o.from&&(o.from=await or(o.from,tH(t.runner)));const c=t.interface,h=it(o.value||ND,"overrides.value")===ND,b=(o.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!b&&!h&&le(!1,"cannot send data to receive or send value to non-payable fallback","overrides",s),le(c.fallback||b,"cannot send data to receive-only contract","overrides.data",o.data);const v=c.receive||c.fallback&&c.fallback.payable;return le(v||h,"cannot send value to non-payable fallback","overrides.value",o.value),le(c.fallback||b,"cannot send data to receive-only contract","overrides.data",o.data),o},n=async function(s){const o=sd(t.runner,"call");Te(Jj(o),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(s);try{return await o.call(c)}catch(h){throw Wb(h)&&h.data?t.interface.makeError(h.data,c):h}},r=async function(s){const o=t.runner;Te(eH(o),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await o.sendTransaction(await e(s)),h=lf(t.runner);return new Yb(t.interface,h,c)},a=async function(s){const o=sd(t.runner,"estimateGas");return Te(Yj(o),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await o.estimateGas(await e(s))},i=async s=>await r(s);return et(i,{_contract:t,estimateGas:a,populateTransaction:e,send:r,staticCall:n}),i}function ufe(t,e){const n=function(...h){const b=t.interface.getFunction(e,h);return Te(b,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:h}}),b},r=async function(...h){const b=n(...h);let v={};if(b.inputs.length+1===h.length&&(v=await wC(h.pop()),v.from&&(v.from=await or(v.from,tH(t.runner)))),b.inputs.length!==h.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const E=await nH(t.runner,b.inputs,h);return Object.assign({},v,await nr({to:t.getAddress(),data:t.interface.encodeFunctionData(b,E)}))},a=async function(...h){const b=await o(...h);return b.length===1?b[0]:b},i=async function(...h){const b=t.runner;Te(eH(b),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const v=await b.sendTransaction(await r(...h)),E=lf(t.runner);return new Yb(t.interface,E,v)},s=async function(...h){const b=sd(t.runner,"estimateGas");return Te(Yj(b),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await b.estimateGas(await r(...h))},o=async function(...h){const b=sd(t.runner,"call");Te(Jj(b),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const v=await r(...h);let E="0x";try{E=await b.call(v)}catch(F){throw Wb(F)&&F.data?t.interface.makeError(F.data,v):F}const C=n(...h);return t.interface.decodeFunctionResult(C,E)},c=async(...h)=>n(...h).constant?await a(...h):await i(...h);return et(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:n,estimateGas:s,populateTransaction:r,send:i,staticCall:a,staticCallResult:o}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const h=t.interface.getFunction(e);return Te(h,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),h}}),c}function ffe(t,e){const n=function(...a){const i=t.interface.getEvent(e,a);return Te(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:a}}),i},r=function(...a){return new cfe(t,n(...a),a)};return et(r,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const a=t.interface.getEvent(e);return Te(a,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),a}}),r}const vg=Symbol.for("_ethersInternal_contract"),rH=new WeakMap;function dfe(t,e){rH.set(t[vg],e)}function za(t){return rH.get(t[vg])}function hfe(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function EC(t,e){let n,r=null;if(Array.isArray(e)){const i=function(s){if(bn(s,32))return s;const o=t.interface.getEvent(s);return le(o,"unknown fragment","name",s),o.topicHash};n=e.map(s=>s==null?null:Array.isArray(s)?s.map(i):i(s))}else e==="*"?n=[null]:typeof e=="string"?bn(e,32)?n=[e]:(r=t.interface.getEvent(e),le(r,"unknown fragment","event",e),n=[r.topicHash]):hfe(e)?n=await e.getTopicFilter():"fragment"in e?(r=e.fragment,n=[r.topicHash]):le(!1,"unknown event name","event",e);n=n.map(i=>{if(i==null)return null;if(Array.isArray(i)){const s=Array.from(new Set(i.map(o=>o.toLowerCase())).values());return s.length===1?s[0]:(s.sort(),s)}return i.toLowerCase()});const a=n.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:r,tag:a,topics:n}}async function wy(t,e){const{subs:n}=za(t);return n.get((await EC(t,e)).tag)||null}async function $D(t,e,n){const r=lf(t.runner);Te(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:a,tag:i,topics:s}=await EC(t,n),{addr:o,subs:c}=za(t);let h=c.get(i);if(!h){const v={address:o||t,topics:s},E=P=>{let D=a;if(D==null)try{D=t.interface.getEvent(P.topics[0])}catch{}if(D){const M=D,O=a?t.interface.decodeEventLog(a,P.data,P.topics):[];Mw(t,n,O,k=>new vC(t,k,n,M,P))}else Mw(t,n,[],M=>new xx(t,M,n,P))};let C=[];h={tag:i,listeners:[],start:()=>{C.length||C.push(r.on(v,E))},stop:async()=>{if(C.length==0)return;let P=C;C=[],await Promise.all(P),r.off(v,E)}},c.set(i,h)}return h}let Fw=Promise.resolve();async function pfe(t,e,n,r){await Fw;const a=await wy(t,e);if(!a)return!1;const i=a.listeners.length;return a.listeners=a.listeners.filter(({listener:s,once:o})=>{const c=Array.from(n);r&&c.push(r(o?null:s));try{s.call(t,...c)}catch{}return!o}),a.listeners.length===0&&(a.stop(),za(t).subs.delete(a.tag)),i>0}async function Mw(t,e,n,r){try{await Fw}catch{}const a=pfe(t,e,n,r);return Fw=a,await a}const a3=["then"];var HMe;const om=class om{constructor(e,n,r,a){ge(this,"target");ge(this,"interface");ge(this,"runner");ge(this,"filters");ge(this,HMe);ge(this,"fallback");le(typeof e=="string"||fx(e),"invalid value for Contract target","target",e),r==null&&(r=null);const i=vp.from(n);et(this,{target:e,runner:r,interface:i}),Object.defineProperty(this,vg,{value:{}});let s,o=null,c=null;if(a){const v=lf(r);c=new Yb(this.interface,v,a)}let h=new Map;if(typeof e=="string")if(bn(e))o=e,s=Promise.resolve(e);else{const v=sd(r,"resolveName");if(!vx(v))throw gn("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});s=v.resolveName(e).then(E=>{if(E==null)throw gn("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return za(this).addr=E,E})}else s=e.getAddress().then(v=>{if(v==null)throw new Error("TODO");return za(this).addr=v,v});dfe(this,{addrPromise:s,addr:o,deployTx:c,subs:h});const b=new Proxy({},{get:(v,E,C)=>{if(typeof E=="symbol"||a3.indexOf(E)>=0)return Reflect.get(v,E,C);try{return this.getEvent(E)}catch(F){if(!Kn(F,"INVALID_ARGUMENT")||F.argument!=="key")throw F}},has:(v,E)=>a3.indexOf(E)>=0?Reflect.has(v,E):Reflect.has(v,E)||this.interface.hasEvent(String(E))});return et(this,{filters:b}),et(this,{fallback:i.receive||i.fallback?lfe(this):null}),new Proxy(this,{get:(v,E,C)=>{if(typeof E=="symbol"||E in v||a3.indexOf(E)>=0)return Reflect.get(v,E,C);try{return v.getFunction(E)}catch(F){if(!Kn(F,"INVALID_ARGUMENT")||F.argument!=="key")throw F}},has:(v,E)=>typeof E=="symbol"||E in v||a3.indexOf(E)>=0?Reflect.has(v,E):v.interface.hasFunction(E)})}connect(e){return new om(this.target,this.interface,e)}attach(e){return new om(e,this.interface,this.runner)}async getAddress(){return await za(this).addrPromise}async getDeployedCode(){const e=lf(this.runner);Te(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const n=await e.getCode(await this.getAddress());return n==="0x"?null:n}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const r=lf(this.runner);return Te(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((a,i)=>{const s=async()=>{try{if(await this.getDeployedCode()!=null)return a(this);r.once("block",s)}catch(o){i(o)}};s()})}deploymentTransaction(){return za(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),ufe(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),ffe(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,n,r){n==null&&(n=0),r==null&&(r="latest");const{addr:a,addrPromise:i}=za(this),s=a||await i,{fragment:o,topics:c}=await EC(this,e),h={address:s,topics:c,fromBlock:n,toBlock:r},b=lf(this.runner);return Te(b,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await b.getLogs(h)).map(v=>{let E=o;if(E==null)try{E=this.interface.getEvent(v.topics[0])}catch{}if(E)try{return new Jb(v,this.interface,E)}catch(C){return new gx(v,C)}return new Td(v,b)})}async on(e,n){const r=await $D(this,"on",e);return r.listeners.push({listener:n,once:!1}),r.start(),this}async once(e,n){const r=await $D(this,"once",e);return r.listeners.push({listener:n,once:!0}),r.start(),this}async emit(e,...n){return await Mw(this,e,n,null)}async listenerCount(e){if(e){const a=await wy(this,e);return a?a.listeners.length:0}const{subs:n}=za(this);let r=0;for(const{listeners:a}of n.values())r+=a.length;return r}async listeners(e){if(e){const a=await wy(this,e);return a?a.listeners.map(({listener:i})=>i):[]}const{subs:n}=za(this);let r=[];for(const{listeners:a}of n.values())r=r.concat(a.map(({listener:i})=>i));return r}async off(e,n){const r=await wy(this,e);if(!r)return this;if(n){const a=r.listeners.map(({listener:i})=>i).indexOf(n);a>=0&&r.listeners.splice(a,1)}return(n==null||r.listeners.length===0)&&(r.stop(),za(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){const n=await wy(this,e);if(!n)return this;n.stop(),za(this).subs.delete(n.tag)}else{const{subs:n}=za(this);for(const{tag:r,stop:a}of n.values())a(),n.delete(r)}return this}async addListener(e,n){return await this.on(e,n)}async removeListener(e,n){return await this.off(e,n)}static buildClass(e){class n extends om{constructor(a,i=null){super(a,e,i)}}return n}static from(e,n,r){return r==null&&(r=null),new this(e,n,r)}};HMe=vg;let od=om;function yfe(){return od}class su extends yfe(){}class wx{constructor(e,n,r){ge(this,"interface");ge(this,"bytecode");ge(this,"runner");const a=vp.from(e);n instanceof Uint8Array||(typeof n=="object"&&(n=n.object),n.startsWith("0x")||(n="0x"+n)),n=Ve(Ze(n)),et(this,{bytecode:n,interface:a,runner:r||null})}attach(e){return new od(e,this.interface,this.runner)}async getDeployTransaction(...e){let n={};const r=this.interface.deploy;if(r.inputs.length+1===e.length&&(n=await wC(e.pop())),r.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const a=await nH(this.runner,r.inputs,e),i=jt([this.bytecode,this.interface.encodeDeploy(a)]);return Object.assign({},n,{data:i})}async deploy(...e){const n=await this.getDeployTransaction(...e);Te(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const r=await this.runner.sendTransaction(n),a=ux(r);return new od(a,this.interface,this.runner,r)}connect(e){return new wx(this.interface,this.bytecode,e)}static fromSolidity(e,n){le(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const r=e.abi;let a="";return e.bytecode?a=e.bytecode:e.evm&&e.evm.bytecode&&(a=e.evm.bytecode),new this(r,a,n)}}function gv(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):le(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class AC{constructor(e){ge(this,"name");et(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,n){throw new Error("unsupported coin")}async decodeAddress(e,n){throw new Error("unsupported coin")}}const aH=new RegExp("^(ipfs)://(.*)$","i"),LD=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),aH,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var kl,Af,Il,g0,i8,iH;const q0=class q0{constructor(e,n,r){xe(this,Il);ge(this,"provider");ge(this,"address");ge(this,"name");xe(this,kl,void 0);xe(this,Af,void 0);et(this,{provider:e,address:n,name:r}),re(this,kl,null),re(this,Af,new su(n,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return H(this,kl)==null&&re(this,kl,(async()=>{try{return await H(this,Af).supportsInterface("0x9061b923")}catch(e){if(Kn(e,"CALL_EXCEPTION"))return!1;throw re(this,kl,null),e}})()),await H(this,kl)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await ke(this,Il,g0).call(this,"addr(bytes32)");return i==null||i===km?null:i}catch(i){if(Kn(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const s=await ke(this,Il,g0).call(this,"addr(bytes32,uint)",[i]);if(bn(s,20))return Et(s)}let n=null;for(const i of this.provider.plugins)if(i instanceof AC&&i.supportsCoinType(e)){n=i;break}if(n==null)return null;const r=await ke(this,Il,g0).call(this,"addr(bytes32,uint)",[e]);if(r==null||r==="0x")return null;const a=await n.decodeAddress(e,r);if(a!=null)return a;Te(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){const n=await ke(this,Il,g0).call(this,"text(bytes32,string)",[e]);return n==null||n==="0x"?null:n}async getContentHash(){const e=await ke(this,Il,g0).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const n=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const a=n[1]==="e3010170"?"ipfs":"ipns",i=parseInt(n[4],16);if(n[5].length===i*2)return`${a}://${cx("0x"+n[2])}`}const r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&r[1].length===64)return`bzz://${r[1]}`;Te(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(n==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r{if(!Array.isArray(e))throw new Error("not an array");return e.map(n=>t(n))}}function e2(t,e){return n=>{const r={};for(const a in t){let i=a;if(e&&a in e&&!(i in n)){for(const s of e[a])if(s in n){i=s;break}}try{const s=t[a](n[i]);s!==void 0&&(r[a]=s)}catch(s){const o=s instanceof Error?s.message:"not-an-error";Te(!1,`invalid value for value.${a} (${o})`,"BAD_DATA",{value:n})}}return r}}function mfe(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}le(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Ap(t){return le(bn(t,!0),"invalid data","value",t),t}function Vi(t){return le(bn(t,32),"invalid hash","value",t),t}const bfe=e2({address:Et,blockHash:Vi,blockNumber:lt,data:Ap,index:lt,removed:vn(mfe,!1),topics:_C(Vi),transactionHash:Vi,transactionIndex:lt},{index:["logIndex"]});function gfe(t){return bfe(t)}const xfe=e2({hash:vn(Vi),parentHash:Vi,number:lt,timestamp:lt,nonce:vn(Ap),difficulty:it,gasLimit:it,gasUsed:it,miner:vn(Et),extraData:Ap,baseFeePerGas:vn(it)});function vfe(t){const e=xfe(t);return e.transactions=t.transactions.map(n=>typeof n=="string"?n:sH(n)),e}const wfe=e2({transactionIndex:lt,blockNumber:lt,transactionHash:Vi,address:Et,topics:_C(Vi),data:Ap,index:lt,blockHash:Vi},{index:["logIndex"]});function Efe(t){return wfe(t)}const Afe=e2({to:vn(Et,null),from:vn(Et,null),contractAddress:vn(Et,null),index:lt,root:vn(Ve),gasUsed:it,logsBloom:vn(Ap),blockHash:Vi,hash:Vi,logs:_C(Efe),blockNumber:lt,cumulativeGasUsed:it,effectiveGasPrice:vn(it),status:vn(lt),type:vn(lt,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function _fe(t){return Afe(t)}function sH(t){t.to&&it(t.to)===UD&&(t.to="0x0000000000000000000000000000000000000000");const e=e2({hash:Vi,type:n=>n==="0x"||n==null?0:lt(n),accessList:vn(Ro,null),blockHash:vn(Vi,null),blockNumber:vn(lt,null),transactionIndex:vn(lt,null),from:Et,gasPrice:vn(it),maxPriorityFeePerGas:vn(it),maxFeePerGas:vn(it),gasLimit:it,to:vn(Et,null),value:it,nonce:lt,data:Ap,creates:vn(Et,null),chainId:vn(it,null)},{data:["input"],gasLimit:["gas"]})(t);if(e.to==null&&e.creates==null&&(e.creates=ux(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=ks.from(t.signature):e.signature=ks.from(t),e.chainId==null){const n=e.signature.legacyChainId;n!=null&&(e.chainId=n)}return e.blockHash&&it(e.blockHash)===UD&&(e.blockHash=null),e}const Cfe="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Qc{constructor(e){ge(this,"name");et(this,{name:e})}clone(){return new Qc(this.name)}}class n1 extends Qc{constructor(n,r){n==null&&(n=0);super(`org.ethers.network.plugins.GasCost#${n||0}`);ge(this,"effectiveBlock");ge(this,"txBase");ge(this,"txCreate");ge(this,"txDataZero");ge(this,"txDataNonzero");ge(this,"txAccessListStorageKey");ge(this,"txAccessListAddress");const a={effectiveBlock:n};function i(s,o){let c=(r||{})[s];c==null&&(c=o),le(typeof c=="number",`invalud value for ${s}`,"costs",r),a[s]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),et(this,a)}clone(){return new n1(this.effectiveBlock,this)}}class r1 extends Qc{constructor(n,r){super("org.ethers.plugins.network.Ens");ge(this,"address");ge(this,"targetNetwork");et(this,{address:n||Cfe,targetNetwork:r??1})}clone(){return new r1(this.address,this.targetNetwork)}}var _f;const sT=class sT extends Qc{constructor(n){super("org.ethers.plugins.network.FeeData");xe(this,_f,void 0);re(this,_f,n)}get feeDataFunc(){return H(this,_f)}async getFeeData(n){return await H(this,_f).call(this,n)}clone(){return new sT(H(this,_f))}};_f=new WeakMap;let wg=sT;var hb,pb;class CC extends Qc{constructor(n,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");xe(this,hb,void 0);xe(this,pb,void 0);re(this,hb,n),re(this,pb,r)}get url(){return H(this,hb)}get processFunc(){return H(this,pb)}clone(){return this}}hb=new WeakMap,pb=new WeakMap;const xv=new Map;var Oh,Ph,Ol;const W0=class W0{constructor(e,n){xe(this,Oh,void 0);xe(this,Ph,void 0);xe(this,Ol,void 0);re(this,Oh,e),re(this,Ph,it(n)),re(this,Ol,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return H(this,Oh)}set name(e){re(this,Oh,e)}get chainId(){return H(this,Ph)}set chainId(e){re(this,Ph,it(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===it(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===it(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===it(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(H(this,Ol).values())}attachPlugin(e){if(H(this,Ol).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return H(this,Ol).set(e.name,e.clone()),this}getPlugin(e){return H(this,Ol).get(e)||null}getPlugins(e){return this.plugins.filter(n=>n.name.split("#")[0]===e)}clone(){const e=new W0(this.name,this.chainId);return this.plugins.forEach(n=>{e.attachPlugin(n.clone())}),e}computeIntrinsicGas(e){const n=this.getPlugin("org.ethers.plugins.network.GasCost")||new n1;let r=n.txBase;if(e.to==null&&(r+=n.txCreate),e.data)for(let a=2;a9){let a=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||a++,r[1]=a.toString()}return BigInt(r[0]+r[1])}function HD(t){return new CC(t,async(e,n,r)=>{r.setHeader("User-Agent","ethers");let a;try{const[i,s]=await Promise.all([r.send(),e()]);a=i;const o=a.bodyJson.standard;return{gasPrice:s.gasPrice,maxFeePerGas:jD(o.maxFee,9),maxPriorityFeePerGas:jD(o.maxPriorityFee,9)}}catch(i){Te(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:a,error:i})}})}let zD=!1;function Bfe(){if(zD)return;zD=!0;function t(e,n,r){const a=function(){const i=new zn(e,n);return r.ensNetwork!=null&&i.attachPlugin(new r1(null,r.ensNetwork)),i.attachPlugin(new n1),(r.plugins||[]).forEach(s=>{i.attachPlugin(s)}),i};zn.register(e,a),zn.register(n,a),r.altNames&&r.altNames.forEach(i=>{zn.register(i,a)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("matic",137,{ensNetwork:1,plugins:[HD("https://gasstation.polygon.technology/v2")]}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[HD("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("xdai",100,{ensNetwork:1})}function Dw(t){return JSON.parse(JSON.stringify(t))}var cc,Ci,Pl,so,Rh,h6;class Sfe{constructor(e){xe(this,Rh);xe(this,cc,void 0);xe(this,Ci,void 0);xe(this,Pl,void 0);xe(this,so,void 0);re(this,cc,e),re(this,Ci,null),re(this,Pl,4e3),re(this,so,-2)}get pollingInterval(){return H(this,Pl)}set pollingInterval(e){re(this,Pl,e)}start(){H(this,Ci)||(re(this,Ci,H(this,cc)._setTimeout(ke(this,Rh,h6).bind(this),H(this,Pl))),ke(this,Rh,h6).call(this))}stop(){H(this,Ci)&&(H(this,cc)._clearTimeout(H(this,Ci)),re(this,Ci,null))}pause(e){this.stop(),e&&re(this,so,-2)}resume(){this.start()}}cc=new WeakMap,Ci=new WeakMap,Pl=new WeakMap,so=new WeakMap,Rh=new WeakSet,h6=async function(){try{const e=await H(this,cc).getBlockNumber();if(H(this,so)===-2){re(this,so,e);return}if(e!==H(this,so)){for(let n=H(this,so)+1;n<=e;n++){if(H(this,Ci)==null)return;await H(this,cc).emit("block",n)}re(this,so,e)}}catch{}H(this,Ci)!=null&&re(this,Ci,H(this,cc)._setTimeout(ke(this,Rh,h6).bind(this),H(this,Pl)))};var Cf,Bf,Rl;class BC{constructor(e){xe(this,Cf,void 0);xe(this,Bf,void 0);xe(this,Rl,void 0);re(this,Cf,e),re(this,Rl,!1),re(this,Bf,n=>{this._poll(n,H(this,Cf))})}async _poll(e,n){throw new Error("sub-classes must override this")}start(){H(this,Rl)||(re(this,Rl,!0),H(this,Bf).call(this,-2),H(this,Cf).on("block",H(this,Bf)))}stop(){H(this,Rl)&&(re(this,Rl,!1),H(this,Cf).off("block",H(this,Bf)))}pause(e){this.stop()}resume(){this.start()}}Cf=new WeakMap,Bf=new WeakMap,Rl=new WeakMap;var Nh,lc;class Tfe extends BC{constructor(n,r){super(n);xe(this,Nh,void 0);xe(this,lc,void 0);re(this,Nh,r),re(this,lc,-2)}pause(n){n&&re(this,lc,-2),super.pause(n)}async _poll(n,r){const a=await r.getBlock(H(this,Nh));a!=null&&(H(this,lc)===-2?re(this,lc,a.number):a.number>H(this,lc)&&(r.emit(H(this,Nh),a.number),re(this,lc,a.number)))}}Nh=new WeakMap,lc=new WeakMap;var s8;class Ffe extends BC{constructor(n,r){super(n);xe(this,s8,void 0);re(this,s8,Dw(r))}async _poll(n,r){throw new Error("@TODO")}}s8=new WeakMap;var $h;class Mfe extends BC{constructor(n,r){super(n);xe(this,$h,void 0);re(this,$h,r)}async _poll(n,r){const a=await r.getTransactionReceipt(H(this,$h));a&&r.emit(H(this,$h),a)}}$h=new WeakMap;var uc,Lh,Uh,Nl,Bi,o8,oH;class SC{constructor(e,n){xe(this,o8);xe(this,uc,void 0);xe(this,Lh,void 0);xe(this,Uh,void 0);xe(this,Nl,void 0);xe(this,Bi,void 0);re(this,uc,e),re(this,Lh,Dw(n)),re(this,Uh,ke(this,o8,oH).bind(this)),re(this,Nl,!1),re(this,Bi,-2)}start(){H(this,Nl)||(re(this,Nl,!0),H(this,Bi)===-2&&H(this,uc).getBlockNumber().then(e=>{re(this,Bi,e)}),H(this,uc).on("block",H(this,Uh)))}stop(){H(this,Nl)&&(re(this,Nl,!1),H(this,uc).off("block",H(this,Uh)))}pause(e){this.stop(),e&&re(this,Bi,-2)}resume(){this.start()}}uc=new WeakMap,Lh=new WeakMap,Uh=new WeakMap,Nl=new WeakMap,Bi=new WeakMap,o8=new WeakSet,oH=async function(e){if(H(this,Bi)===-2)return;const n=Dw(H(this,Lh));n.fromBlock=H(this,Bi)+1,n.toBlock=e;const r=await H(this,uc).getLogs(n);if(r.length===0){H(this,Bi){if(r==null)return"null";if(typeof r=="bigint")return`bigint:${r.toString()}`;if(typeof r=="string")return r.toLowerCase();if(typeof r=="object"&&!Array.isArray(r)){const a=Object.keys(r);return a.sort(),a.reduce((i,s)=>(i[s]=r[s],i),{})}return r})}class _p{constructor(e){ge(this,"name");et(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function Ife(t){return JSON.parse(JSON.stringify(t))}function kw(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function vv(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(bn(t,32)){const n=t.toLowerCase();return{type:"transaction",tag:p6("tx",{hash:n}),hash:n}}if(t.orphan){const n=t;return{type:"orphan",tag:p6("orphan",n),filter:Ife(n)}}if(t.address||t.topics){const n=t,r={topics:(n.topics||[]).map(a=>a==null?null:Array.isArray(a)?kw(a.map(i=>i.toLowerCase())):a.toLowerCase())};if(n.address){const a=[],i=[],s=o=>{bn(o)?a.push(o):i.push((async()=>{a.push(await or(o,e))})())};Array.isArray(n.address)?n.address.forEach(s):s(n.address),i.length&&await Promise.all(i),r.address=kw(a.map(o=>o.toLowerCase()))}return{filter:r,tag:p6("event",r),type:"event"}}le(!1,"unknown ProviderEvent","event",t)}function wv(){return new Date().getTime()}const Ofe={cacheTimeout:250,pollingInterval:4e3};var Wr,$l,Kr,jh,qa,Sf,Ll,fc,yb,Si,Hh,zh,ua,Ha,mb,Iw,bb,Ow,Tf,Ey,gb,Pw,Ff,Ay,Gh,y6;class Cp{constructor(e,n){xe(this,ua);xe(this,mb);xe(this,bb);xe(this,Tf);xe(this,gb);xe(this,Ff);xe(this,Gh);xe(this,Wr,void 0);xe(this,$l,void 0);xe(this,Kr,void 0);xe(this,jh,void 0);xe(this,qa,void 0);xe(this,Sf,void 0);xe(this,Ll,void 0);xe(this,fc,void 0);xe(this,yb,void 0);xe(this,Si,void 0);xe(this,Hh,void 0);xe(this,zh,void 0);if(re(this,zh,Object.assign({},Ofe,n||{})),e==="any")re(this,Sf,!0),re(this,qa,null);else if(e){const r=zn.from(e);re(this,Sf,!1),re(this,qa,Promise.resolve(r)),setTimeout(()=>{this.emit("network",r,null)},0)}else re(this,Sf,!1),re(this,qa,null);re(this,fc,-1),re(this,Ll,new Map),re(this,Wr,new Map),re(this,$l,new Map),re(this,Kr,null),re(this,jh,!1),re(this,yb,1),re(this,Si,new Map),re(this,Hh,!1)}get pollingInterval(){return H(this,zh).pollingInterval}get provider(){return this}get plugins(){return Array.from(H(this,$l).values())}attachPlugin(e){if(H(this,$l).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return H(this,$l).set(e.name,e.connect(this)),this}getPlugin(e){return H(this,$l).get(e)||null}get disableCcipRead(){return H(this,Hh)}set disableCcipRead(e){re(this,Hh,!!e)}async ccipReadFetch(e,n,r){if(this.disableCcipRead||r.length===0||e.to==null)return null;const a=e.to.toLowerCase(),i=n.toLowerCase(),s=[];for(let o=0;o=500,`response not found during CCIP fetch: ${v}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:v}}),s.push(v)}Te(!1,`error encountered during CCIP fetch: ${s.map(o=>JSON.stringify(o)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:s}})}_wrapBlock(e,n){return new gC(vfe(e),this)}_wrapLog(e,n){return new Td(gfe(e),this)}_wrapTransactionReceipt(e,n){return new bx(_fe(e),this)}_wrapTransactionResponse(e,n){return new id(sH(e),this)}_detectNetwork(){Te(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){Te(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=lt(await ke(this,ua,Ha).call(this,{method:"getBlockNumber"}),"%response");return H(this,fc)>=0&&re(this,fc,e),e}_getAddress(e){return or(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(bn(e))return bn(e,32)?e:xc(e);if(typeof e=="bigint"&&(e=lt(e,"blockTag")),typeof e=="number")return e>=0?xc(e):H(this,fc)>=0?xc(H(this,fc)+e):this.getBlockNumber().then(n=>xc(n+e));le(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const n=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?kw(c.map(h=>h.toLowerCase())):c.toLowerCase()),r="blockHash"in e?e.blockHash:void 0,a=(c,h,b)=>{let v;switch(c.length){case 0:break;case 1:v=c[0];break;default:c.sort(),v=c}if(r&&(h!=null||b!=null))throw new Error("invalid filter");const E={};return v&&(E.address=v),n.length&&(E.topics=n),h&&(E.fromBlock=h),b&&(E.toBlock=b),r&&(E.blockHash=r),E};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let s;"fromBlock"in e&&(s=this._getBlockTag(e.fromBlock));let o;return"toBlock"in e&&(o=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||s!=null&&typeof s!="string"||o!=null&&typeof o!="string"?Promise.all([Promise.all(i),s,o]).then(c=>a(c[0],c[1],c[2])):a(i,s,o)}_getTransactionRequest(e){const n=wp(e),r=[];if(["to","from"].forEach(a=>{if(n[a]==null)return;const i=or(n[a],this);i3(i)?r.push(async function(){n[a]=await i}()):n[a]=i}),n.blockTag!=null){const a=this._getBlockTag(n.blockTag);i3(a)?r.push(async function(){n.blockTag=await a}()):n.blockTag=a}return r.length?async function(){return await Promise.all(r),n}():n}async getNetwork(){if(H(this,qa)==null){const a=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw H(this,qa)===a&&re(this,qa,null),i}})();return re(this,qa,a),(await a).clone()}const e=H(this,qa),[n,r]=await Promise.all([e,this._detectNetwork()]);return n.chainId!==r.chainId&&(H(this,Sf)?(this.emit("network",r,n),H(this,qa)===e&&re(this,qa,Promise.resolve(r))):Te(!1,`network changed: ${n.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),n.clone()}async getFeeData(){const e=await this.getNetwork(),n=async()=>{const{_block:a,gasPrice:i,priorityFee:s}=await nr({_block:ke(this,gb,Pw).call(this,"latest",!1),gasPrice:(async()=>{try{const b=await ke(this,ua,Ha).call(this,{method:"getGasPrice"});return it(b,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const b=await ke(this,ua,Ha).call(this,{method:"getPriorityFee"});return it(b,"%response")}catch{}return null})()});let o=null,c=null;const h=this._wrapBlock(a,e);return h&&h.baseFeePerGas&&(c=s??BigInt("1000000000"),o=h.baseFeePerGas*Dfe+c),new xg(i,o,c)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const a=new $r(r.url),i=await r.processFunc(n,this,a);return new xg(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await n()}async estimateGas(e){let n=this._getTransactionRequest(e);return i3(n)&&(n=await n),it(await ke(this,ua,Ha).call(this,{method:"estimateGas",transaction:n}),"%response")}async call(e){const{tx:n,blockTag:r}=await nr({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await ke(this,bb,Ow).call(this,ke(this,mb,Iw).call(this,n,r,e.enableCcipRead?0:-1))}async getBalance(e,n){return it(await ke(this,Tf,Ey).call(this,{method:"getBalance"},e,n),"%response")}async getTransactionCount(e,n){return lt(await ke(this,Tf,Ey).call(this,{method:"getTransactionCount"},e,n),"%response")}async getCode(e,n){return Ve(await ke(this,Tf,Ey).call(this,{method:"getCode"},e,n))}async getStorage(e,n,r){const a=it(n,"position");return Ve(await ke(this,Tf,Ey).call(this,{method:"getStorage",position:a},e,r))}async broadcastTransaction(e){const{blockNumber:n,hash:r,network:a}=await nr({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=mu.from(e);if(i.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,a).replaceableTransaction(n)}async getBlock(e,n){const{network:r,params:a}=await nr({network:this.getNetwork(),params:ke(this,gb,Pw).call(this,e,!!n)});return a==null?null:this._wrapBlock(a,r)}async getTransaction(e){const{network:n,params:r}=await nr({network:this.getNetwork(),params:ke(this,ua,Ha).call(this,{method:"getTransaction",hash:e})});return r==null?null:this._wrapTransactionResponse(r,n)}async getTransactionReceipt(e){const{network:n,params:r}=await nr({network:this.getNetwork(),params:ke(this,ua,Ha).call(this,{method:"getTransactionReceipt",hash:e})});if(r==null)return null;if(r.gasPrice==null&&r.effectiveGasPrice==null){const a=await ke(this,ua,Ha).call(this,{method:"getTransaction",hash:e});if(a==null)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=a.gasPrice}return this._wrapTransactionReceipt(r,n)}async getTransactionResult(e){const{result:n}=await nr({network:this.getNetwork(),result:ke(this,ua,Ha).call(this,{method:"getTransactionResult",hash:e})});return n==null?null:Ve(n)}async getLogs(e){let n=this._getFilter(e);i3(n)&&(n=await n);const{network:r,params:a}=await nr({network:this.getNetwork(),params:ke(this,ua,Ha).call(this,{method:"getLogs",filter:n})});return a.map(i=>this._wrapLog(i,r))}_getProvider(e){Te(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await Ep.fromName(this,e)}async getAvatar(e){const n=await this.getResolver(e);return n?await n.getAvatar():null}async resolveName(e){const n=await this.getResolver(e);return n?await n.getAddress():null}async lookupAddress(e){e=Et(e);const n=Nm(e.substring(2).toLowerCase()+".addr.reverse");try{const r=await Ep.getEnsAddress(this),i=await new su(r,["function resolver(bytes32) view returns (address)"],this).resolver(n);if(i==null||i===km)return null;const o=await new su(i,["function name(bytes32) view returns (string)"],this).name(n);return await this.resolveName(o)!==e?null:o}catch(r){if(Kn(r,"BAD_DATA")&&r.value==="0x"||Kn(r,"CALL_EXCEPTION"))return null;throw r}return null}async waitForTransaction(e,n,r){const a=n??1;return a===0?this.getTransactionReceipt(e):new Promise(async(i,s)=>{let o=null;const c=async h=>{try{const b=await this.getTransactionReceipt(e);if(b!=null&&h-b.blockNumber+1>=a){i(b),o&&(clearTimeout(o),o=null);return}}catch(b){console.log("EEE",b)}this.once("block",c)};r!=null&&(o=setTimeout(()=>{o!=null&&(o=null,this.off("block",c),s(gn("timeout","TIMEOUT",{reason:"timeout"})))},r)),c(await this.getBlockNumber())})}async waitForBlock(e){Te(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const n=H(this,Si).get(e);n&&(n.timer&&clearTimeout(n.timer),H(this,Si).delete(e))}_setTimeout(e,n){n==null&&(n=0);const r=Gd(this,yb)._++,a=()=>{H(this,Si).delete(r),e()};if(this.paused)H(this,Si).set(r,{timer:null,func:a,time:n});else{const i=setTimeout(a,n);H(this,Si).set(r,{timer:i,func:a,time:wv()})}return r}_forEachSubscriber(e){for(const n of H(this,Wr).values())e(n.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new _p(e.type);case"block":{const n=new Sfe(this);return n.pollingInterval=this.pollingInterval,n}case"safe":case"finalized":return new Tfe(this,e.type);case"event":return new SC(this,e.filter);case"transaction":return new Mfe(this,e.hash);case"orphan":return new Ffe(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,n){for(const r of H(this,Wr).values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=n,r.started&&n.start(),H(this,Kr)!=null&&n.pause(H(this,Kr));break}}async on(e,n){const r=await ke(this,Gh,y6).call(this,e);return r.listeners.push({listener:n,once:!1}),r.started||(r.subscriber.start(),r.started=!0,H(this,Kr)!=null&&r.subscriber.pause(H(this,Kr))),this}async once(e,n){const r=await ke(this,Gh,y6).call(this,e);return r.listeners.push({listener:n,once:!0}),r.started||(r.subscriber.start(),r.started=!0,H(this,Kr)!=null&&r.subscriber.pause(H(this,Kr))),this}async emit(e,...n){const r=await ke(this,Ff,Ay).call(this,e,n);if(!r||r.listeners.length===0)return!1;const a=r.listeners.length;return r.listeners=r.listeners.filter(({listener:i,once:s})=>{const o=new lx(this,s?null:i,e);try{i.call(this,...n,o)}catch{}return!s}),r.listeners.length===0&&(r.started&&r.subscriber.stop(),H(this,Wr).delete(r.tag)),a>0}async listenerCount(e){if(e){const r=await ke(this,Ff,Ay).call(this,e);return r?r.listeners.length:0}let n=0;for(const{listeners:r}of H(this,Wr).values())n+=r.length;return n}async listeners(e){if(e){const r=await ke(this,Ff,Ay).call(this,e);return r?r.listeners.map(({listener:a})=>a):[]}let n=[];for(const{listeners:r}of H(this,Wr).values())n=n.concat(r.map(({listener:a})=>a));return n}async off(e,n){const r=await ke(this,Ff,Ay).call(this,e);if(!r)return this;if(n){const a=r.listeners.map(({listener:i})=>i).indexOf(n);a>=0&&r.listeners.splice(a,1)}return(!n||r.listeners.length===0)&&(r.started&&r.subscriber.stop(),H(this,Wr).delete(r.tag)),this}async removeAllListeners(e){if(e){const{tag:n,started:r,subscriber:a}=await ke(this,Gh,y6).call(this,e);r&&a.stop(),H(this,Wr).delete(n)}else for(const[n,{started:r,subscriber:a}]of H(this,Wr))r&&a.stop(),H(this,Wr).delete(n);return this}async addListener(e,n){return await this.on(e,n)}async removeListener(e,n){return this.off(e,n)}get destroyed(){return H(this,jh)}destroy(){this.removeAllListeners();for(const e of H(this,Si).keys())this._clearTimeout(e);re(this,jh,!0)}get paused(){return H(this,Kr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(re(this,fc,-1),H(this,Kr)!=null){if(H(this,Kr)==!!e)return;Te(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(n=>n.pause(e)),re(this,Kr,!!e);for(const n of H(this,Si).values())n.timer&&clearTimeout(n.timer),n.time=wv()-n.time}resume(){if(H(this,Kr)!=null){this._forEachSubscriber(e=>e.resume()),re(this,Kr,null);for(const e of H(this,Si).values()){let n=e.time;n<0&&(n=0),e.time=wv(),setTimeout(e.func,n)}}}}Wr=new WeakMap,$l=new WeakMap,Kr=new WeakMap,jh=new WeakMap,qa=new WeakMap,Sf=new WeakMap,Ll=new WeakMap,fc=new WeakMap,yb=new WeakMap,Si=new WeakMap,Hh=new WeakMap,zh=new WeakMap,ua=new WeakSet,Ha=async function(e){const n=H(this,zh).cacheTimeout;if(n<0)return await this._perform(e);const r=p6(e.method,e);let a=H(this,Ll).get(r);return a||(a=this._perform(e),H(this,Ll).set(r,a),setTimeout(()=>{H(this,Ll).get(r)===a&&H(this,Ll).delete(r)},n)),await a},mb=new WeakSet,Iw=async function(e,n,r){Te(r=0&&n==="latest"&&a.to!=null&&Yt(i.data,0,4)==="0x556f1830"){const s=i.data,o=await or(a.to,this);let c;try{c=Lfe(Yt(i.data,4))}catch(v){Te(!1,v.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:a,info:{data:s}})}Te(c.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:s,reason:"OffchainLookup",transaction:a,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const h=await this.ccipReadFetch(a,c.calldata,c.urls);Te(h!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:a,info:{data:i.data,errorArgs:c.errorArgs}});const b={to:o,data:jt([c.selector,$fe([h,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:b});try{const v=await ke(this,mb,Iw).call(this,b,n,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},b),result:v}),v}catch(v){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},b),error:v}),v}}throw i}},bb=new WeakSet,Ow=async function(e){const{value:n}=await nr({network:this.getNetwork(),value:e});return n},Tf=new WeakSet,Ey=async function(e,n,r){let a=this._getAddress(n),i=this._getBlockTag(r);return(typeof a!="string"||typeof i!="string")&&([a,i]=await Promise.all([a,i])),await ke(this,bb,Ow).call(this,ke(this,ua,Ha).call(this,Object.assign(e,{address:a,blockTag:i})))},gb=new WeakSet,Pw=async function(e,n){if(bn(e,32))return await ke(this,ua,Ha).call(this,{method:"getBlock",blockHash:e,includeTransactions:n});let r=this._getBlockTag(e);return typeof r!="string"&&(r=await r),await ke(this,ua,Ha).call(this,{method:"getBlock",blockTag:r,includeTransactions:n})},Ff=new WeakSet,Ay=async function(e,n){let r=await vv(e,this);return r.type==="event"&&n&&n.length>0&&n[0].removed===!0&&(r=await vv({orphan:"drop-log",log:n[0]},this)),H(this,Wr).get(r.tag)||null},Gh=new WeakSet,y6=async function(e){const n=await vv(e,this),r=n.tag;let a=H(this,Wr).get(r);return a||(a={subscriber:this._getSubscriber(n),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},H(this,Wr).set(r,a)),a};function Pfe(t,e){try{const n=Rw(t,e);if(n)return yu(n)}catch{}return null}function Rw(t,e){if(t==="0x")return null;try{const n=lt(Yt(t,e,e+32)),r=lt(Yt(t,n,n+32));return Yt(t,n+32,n+32+r)}catch{}return null}function GD(t){const e=Or(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function Rfe(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const Nfe=new Uint8Array([]);function $fe(t){const e=[];let n=0;for(let r=0;r=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=Yt(t,0,32);Te(Yt(n,0,12)===Yt(VD,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Yt(n,12);try{const r=[],a=lt(Yt(t,32,64)),i=lt(Yt(t,a,a+32)),s=Yt(t,a+32);for(let o=0;oe[r]),e}function Jd(t,e){if(t.provider)return t.provider;Te(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function qD(t,e){let n=wp(e);if(n.to!=null&&(n.to=or(n.to,t)),n.from!=null){const r=n.from;n.from=Promise.all([t.getAddress(),or(r,t)]).then(([a,i])=>(le(a.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),a))}else n.from=t.getAddress();return await nr(n)}class a1{constructor(e){ge(this,"provider");et(this,{provider:e||null})}async getNonce(e){return Jd(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await qD(this,e)}async populateTransaction(e){const n=Jd(this,"populateTransaction"),r=await qD(this,e);r.nonce==null&&(r.nonce=await this.getNonce("pending")),r.gasLimit==null&&(r.gasLimit=await this.estimateGas(r));const a=await this.provider.getNetwork();if(r.chainId!=null){const s=it(r.chainId);le(s===a.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=a.chainId;const i=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||i)?le(!1,"eip-1559 transaction do not support gasPrice","tx",e):(r.type===0||r.type===1)&&i&&le(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1){const s=await n.getFeeData();Te(s.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),r.gasPrice==null&&(r.gasPrice=s.gasPrice)}else{const s=await n.getFeeData();if(r.type==null)if(s.maxFeePerGas!=null&&s.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const o=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o}else r.maxFeePerGas==null&&(r.maxFeePerGas=s.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=s.maxPriorityFeePerGas);else s.gasPrice!=null?(Te(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=s.gasPrice),r.type=0):Te(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=s.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=s.maxPriorityFeePerGas))}return await nr(r)}async estimateGas(e){return Jd(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Jd(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Jd(this,"resolveName").resolveName(e)}async sendTransaction(e){const n=Jd(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;const a=mu.from(r);return await n.broadcastTransaction(await this.signTransaction(a))}}var Vh,m6;const oT=class oT extends a1{constructor(n,r){super(r);xe(this,Vh);ge(this,"address");et(this,{address:n})}async getAddress(){return this.address}connect(n){return new oT(this.address,n)}async signTransaction(n){ke(this,Vh,m6).call(this,"transactions","signTransaction")}async signMessage(n){ke(this,Vh,m6).call(this,"messages","signMessage")}async signTypedData(n,r,a){ke(this,Vh,m6).call(this,"typed-data","signTypedData")}};Vh=new WeakSet,m6=function(n,r){Te(!1,`VoidSigner cannot sign ${n}`,"UNSUPPORTED_OPERATION",{operation:r})};let Lm=oT;const WD=new Set;function Bu(t){WD.has(t)||(WD.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (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.org/api-keys/"),console.log("=========================="))}function Ufe(t){return JSON.parse(JSON.stringify(t))}var Aa,oo,Mf,Ul,Df,qh,xb,Nw,vb,$w;class cH{constructor(e){xe(this,xb);xe(this,vb);xe(this,Aa,void 0);xe(this,oo,void 0);xe(this,Mf,void 0);xe(this,Ul,void 0);xe(this,Df,void 0);xe(this,qh,void 0);re(this,Aa,e),re(this,oo,null),re(this,Mf,ke(this,xb,Nw).bind(this)),re(this,Ul,!1),re(this,Df,null),re(this,qh,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,n){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){H(this,Ul)||(re(this,Ul,!0),ke(this,xb,Nw).call(this,-2))}stop(){H(this,Ul)&&(re(this,Ul,!1),re(this,qh,!0),ke(this,vb,$w).call(this),H(this,Aa).off("block",H(this,Mf)))}pause(e){e&&ke(this,vb,$w).call(this),H(this,Aa).off("block",H(this,Mf))}resume(){this.start()}}Aa=new WeakMap,oo=new WeakMap,Mf=new WeakMap,Ul=new WeakMap,Df=new WeakMap,qh=new WeakMap,xb=new WeakSet,Nw=async function(e){try{H(this,oo)==null&&re(this,oo,this._subscribe(H(this,Aa)));let n=null;try{n=await H(this,oo)}catch(i){if(!Kn(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(n==null){re(this,oo,null),H(this,Aa)._recoverSubscriber(this,this._recover(H(this,Aa)));return}const r=await H(this,Aa).getNetwork();if(H(this,Df)||re(this,Df,r),H(this,Df).chainId!==r.chainId)throw new Error("chaid changed");if(H(this,qh))return;const a=await H(this,Aa).send("eth_getFilterChanges",[n]);await this._emitResults(H(this,Aa),a)}catch(n){console.log("@TODO",n)}H(this,Aa).once("block",H(this,Mf))},vb=new WeakSet,$w=function(){const e=H(this,oo);e&&(re(this,oo,null),e.then(n=>{H(this,Aa).send("eth_uninstallFilter",[n])}))};var kf;class jfe extends cH{constructor(n,r){super(n);xe(this,kf,void 0);re(this,kf,Ufe(r))}_recover(n){return new SC(n,H(this,kf))}async _subscribe(n){return await n.send("eth_newFilter",[H(this,kf)])}async _emitResults(n,r){for(const a of r)n.emit(H(this,kf),n._wrapLog(a,n._network))}}kf=new WeakMap;class Hfe extends cH{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,n){for(const r of n)e.emit("pending",r)}}const zfe="bigint,boolean,function,number,string,symbol".split(/,/g);function b6(t){if(t==null||zfe.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(b6);if(typeof t=="object")return Object.keys(t).reduce((e,n)=>(e[n]=t[n],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function Gfe(t){return new Promise(e=>{setTimeout(e,t)})}function Yd(t){return t&&t.toLowerCase()}function KD(t){return t&&typeof t.pollingInterval=="number"}const Vfe={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class Jy extends a1{constructor(n,r){super(n);ge(this,"address");r=Et(r),et(this,{address:r})}connect(n){Te(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(n){return await this.populateCall(n)}async sendUncheckedTransaction(n){const r=b6(n),a=[];if(r.from){const s=r.from;a.push((async()=>{const o=await or(s,this.provider);le(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=o})())}else r.from=this.address;if(r.gasLimit==null&&a.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const s=r.to;a.push((async()=>{r.to=await or(s,this.provider)})())}a.length&&await Promise.all(a);const i=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(n){const r=await this.provider.getBlockNumber(),a=await this.sendUncheckedTransaction(n);return await new Promise((i,s)=>{const o=[1e3,100];let c=0;const h=async()=>{try{const b=await this.provider.getTransaction(a);if(b!=null){i(b.replaceableTransaction(r));return}}catch(b){if(Kn(b,"CANCELLED")||Kn(b,"BAD_DATA")||Kn(b,"NETWORK_ERROR")){b.info==null&&(b.info={}),b.info.sendTransactionHash=a,s(b);return}if(Kn(b,"INVALID_ARGUMENT")&&(c++,b.info==null&&(b.info={}),b.info.sendTransactionHash=a,c>10)){s(b);return}this.provider.emit("error",gn("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:b}))}this.provider._setTimeout(()=>{h()},o.pop()||4e3)};h()})}async signTransaction(n){const r=b6(n);if(r.from){const i=await or(r.from,this.provider);le(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=i}else r.from=this.address;const a=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[a])}async signMessage(n){const r=typeof n=="string"?Zn(n):n;return await this.provider.send("personal_sign",[Ve(r),this.address.toLowerCase()])}async signTypedData(n,r,a){const i=b6(a),s=await Ic.resolveNames(n,r,i,async o=>{const c=await or(o);return le(c!=null,"TypedData does not support null address","value",o),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Ic.getPayload(s.domain,r,s.value))])}async unlock(n){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),n,null])}async _legacySignMessage(n){const r=typeof n=="string"?Zn(n):n;return await this.provider.send("eth_sign",[this.address.toLowerCase(),Ve(r)])}}var If,Wh,dc,co,gs,Ti,_a,wb,Lw;class Ex extends Cp{constructor(n,r){super(n,r);xe(this,wb);xe(this,If,void 0);xe(this,Wh,void 0);xe(this,dc,void 0);xe(this,co,void 0);xe(this,gs,void 0);xe(this,Ti,void 0);xe(this,_a,void 0);re(this,Wh,1),re(this,If,Object.assign({},Vfe,r||{})),re(this,dc,[]),re(this,co,null),re(this,Ti,null),re(this,_a,null);{let i=null;const s=new Promise(o=>{i=o});re(this,gs,{promise:s,resolve:i})}const a=this._getOption("staticNetwork");typeof a=="boolean"?(le(!a||n!=="any","staticNetwork cannot be used on special network 'any'","options",r),a&&n!=null&&re(this,Ti,zn.from(n))):a&&(le(n==null||a.matches(n),"staticNetwork MUST match network object","options",r),re(this,Ti,a))}_getOption(n){return H(this,If)[n]}get _network(){return Te(H(this,Ti),"network is not available yet","NETWORK_ERROR"),H(this,Ti)}async _perform(n){if(n.method==="call"||n.method==="estimateGas"){let a=n.transaction;if(a&&a.type!=null&&it(a.type)&&a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=Object.assign({},n,{transaction:Object.assign({},a,{type:void 0})}))}}const r=this.getRpcRequest(n);return r!=null?await this.send(r.method,r.args):super._perform(n)}async _detectNetwork(){const n=this._getOption("staticNetwork");if(n)if(n===!0){if(H(this,Ti))return H(this,Ti)}else return n;return H(this,_a)?await H(this,_a):this.ready?(re(this,_a,(async()=>{try{const r=zn.from(it(await this.send("eth_chainId",[])));return re(this,_a,null),r}catch(r){throw re(this,_a,null),r}})()),await H(this,_a)):(re(this,_a,(async()=>{const r={id:Gd(this,Wh)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let a;try{a=(await this._send(r))[0],re(this,_a,null)}catch(i){throw re(this,_a,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:a}),"result"in a)return zn.from(it(a.result));throw this.getRpcError(r,a)})()),await H(this,_a))}_start(){H(this,gs)==null||H(this,gs).resolve==null||(H(this,gs).resolve(),re(this,gs,null),(async()=>{for(;H(this,Ti)==null&&!this.destroyed;)try{re(this,Ti,await this._detectNetwork())}catch(n){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",gn("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:n}})),await Gfe(1e3)}ke(this,wb,Lw).call(this)})())}async _waitUntilReady(){if(H(this,gs)!=null)return await H(this,gs).promise}_getSubscriber(n){return n.type==="pending"?new Hfe(this):n.type==="event"?this._getOption("polling")?new SC(this,n.filter):new jfe(this,n.filter):n.type==="orphan"&&n.filter.orphan==="drop-log"?new _p("orphan"):super._getSubscriber(n)}get ready(){return H(this,gs)==null}getRpcTransaction(n){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(a=>{if(n[a]==null)return;let i=a;a==="gasLimit"&&(i="gas"),r[i]=xc(it(n[a],`tx.${a}`))}),["from","to","data"].forEach(a=>{n[a]!=null&&(r[a]=Ve(n[a]))}),n.accessList&&(r.accessList=Ro(n.accessList)),r}getRpcRequest(n){switch(n.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[Yd(n.address),n.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[Yd(n.address),n.blockTag]};case"getCode":return{method:"eth_getCode",args:[Yd(n.address),n.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[Yd(n.address),"0x"+n.position.toString(16),n.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[n.signedTransaction]};case"getBlock":if("blockTag"in n)return{method:"eth_getBlockByNumber",args:[n.blockTag,!!n.includeTransactions]};if("blockHash"in n)return{method:"eth_getBlockByHash",args:[n.blockHash,!!n.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[n.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[n.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(n.transaction),n.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(n.transaction)]};case"getLogs":return n.filter&&n.filter.address!=null&&(Array.isArray(n.filter.address)?n.filter.address=n.filter.address.map(Yd):n.filter.address=Yd(n.filter.address)),{method:"eth_getLogs",args:[n.filter]}}return null}getRpcError(n,r){const{method:a}=n,{error:i}=r;if(a==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return gn("insufficient funds","INSUFFICIENT_FUNDS",{transaction:n.params[0],info:{payload:n,error:i}})}if(a==="eth_call"||a==="eth_estimateGas"){const c=Uw(i),h=bu.getBuiltinCallException(a==="eth_call"?"call":"estimateGas",n.params[0],c?c.data:null);return h.info={error:i,payload:n},h}const s=JSON.stringify(qfe(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return gn("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[a]||"unknown",reason:"rejected",info:{payload:n,error:i}});if(a==="eth_sendRawTransaction"||a==="eth_sendTransaction"){const c=n.params[0];if(s.match(/insufficient funds|base fee exceeds gas limit/i))return gn("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(s.match(/nonce/i)&&s.match(/too low/i))return gn("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(s.match(/replacement transaction/i)&&s.match(/underpriced/i))return gn("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(s.match(/only replay-protected/i))return gn("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:a,info:{transaction:c,info:{error:i}}})}let o=!!s.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?gn("unsupported operation","UNSUPPORTED_OPERATION",{operation:n.method,info:{error:i,payload:n}}):gn("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:n})}send(n,r){if(this.destroyed)return Promise.reject(gn("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n}));const a=Gd(this,Wh)._++,i=new Promise((s,o)=>{H(this,dc).push({resolve:s,reject:o,payload:{method:n,params:r,id:a,jsonrpc:"2.0"}})});return ke(this,wb,Lw).call(this),i}async getSigner(n){n==null&&(n=0);const r=this.send("eth_accounts",[]);if(typeof n=="number"){const i=await r;if(n>=i.length)throw new Error("no such account");return new Jy(this,i[n])}const{accounts:a}=await nr({network:this.getNetwork(),accounts:r});n=Et(n);for(const i of a)if(Et(i)===n)return new Jy(this,n);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new Jy(this,r))}destroy(){H(this,co)&&(clearTimeout(H(this,co)),re(this,co,null));for(const{payload:n,reject:r}of H(this,dc))r(gn("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n.method}));re(this,dc,[]),super.destroy()}}If=new WeakMap,Wh=new WeakMap,dc=new WeakMap,co=new WeakMap,gs=new WeakMap,Ti=new WeakMap,_a=new WeakMap,wb=new WeakSet,Lw=function(){if(H(this,co))return;const n=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");re(this,co,setTimeout(()=>{re(this,co,null);const r=H(this,dc);for(re(this,dc,[]);r.length;){const a=[r.shift()];for(;r.length&&a.length!==H(this,If).batchMaxCount;)if(a.push(r.shift()),JSON.stringify(a.map(s=>s.payload)).length>H(this,If).batchMaxSize){r.unshift(a.pop());break}(async()=>{const i=a.length===1?a[0].payload:a.map(s=>s.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const s=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:s});for(const{resolve:o,reject:c,payload:h}of a){if(this.destroyed){c(gn("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:h.method}));continue}const b=s.filter(v=>v.id===h.id)[0];if(b==null){const v=gn("missing response for request","BAD_DATA",{value:s,info:{payload:h}});this.emit("error",v),c(v);continue}if("error"in b){c(this.getRpcError(h,b));continue}o(b.result)}}catch(s){this.emit("debug",{action:"receiveRpcError",error:s});for(const{reject:o}of a)o(s)}})()}},n))};var jl;class lH extends Ex{constructor(n,r){super(n,r);xe(this,jl,void 0);re(this,jl,4e3)}_getSubscriber(n){const r=super._getSubscriber(n);return KD(r)&&(r.pollingInterval=H(this,jl)),r}get pollingInterval(){return H(this,jl)}set pollingInterval(n){if(!Number.isInteger(n)||n<0)throw new Error("invalid interval");re(this,jl,n),this._forEachSubscriber(r=>{KD(r)&&(r.pollingInterval=H(this,jl))})}}jl=new WeakMap;var Kh;class To extends lH{constructor(n,r,a){n==null&&(n="http://localhost:8545");super(r,a);xe(this,Kh,void 0);typeof n=="string"?re(this,Kh,new $r(n)):re(this,Kh,n.clone())}_getConnection(){return H(this,Kh).clone()}async send(n,r){return await this._start(),await super.send(n,r)}async _send(n){const r=this._getConnection();r.body=JSON.stringify(n),r.setHeader("content-type","application/json");const a=await r.send();a.assertOk();let i=a.bodyJson;return Array.isArray(i)||(i=[i]),i}}Kh=new WeakMap;function Uw(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&bn(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const n=Uw(t[e]);if(n)return n}return null}if(typeof t=="string")try{return Uw(JSON.parse(t))}catch{}return null}function jw(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const n in t)jw(t[n],e);if(typeof t=="string")try{return jw(JSON.parse(t),e)}catch{}}}function qfe(t){const e=[];return jw(t,e),e}const s3="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Wfe(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"matic":return"rpc.ankr.com/polygon";case"arbitrum":return"rpc.ankr.com/arbitrum"}le(!1,"unsupported network","network",t)}class Bp extends To{constructor(n,r){n==null&&(n="mainnet");const a=zn.from(n);r==null&&(r=s3);const i={polling:!0,staticNetwork:a},s=Bp.getRequest(a,r);super(s,a,i);ge(this,"apiKey");et(this,{apiKey:r})}_getProvider(n){try{return new Bp(n,this.apiKey)}catch{}return super._getProvider(n)}static getRequest(n,r){r==null&&(r=s3);const a=new $r(`https://${Wfe(n.name)}/${r}`);return a.allowGzip=!0,r===s3&&(a.retryFunc=async(i,s,o)=>(Bu("AnkrProvider"),!0)),a}getRpcError(n,r){return n.method==="eth_sendRawTransaction"&&r&&r.error&&r.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(r.error.message="replacement transaction underpriced"),super.getRpcError(n,r)}isCommunityResource(){return this.apiKey===s3}}const o3="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function Kfe(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com"}le(!1,"unsupported network","network",t)}class Sp extends To{constructor(n,r){n==null&&(n="mainnet");const a=zn.from(n);r==null&&(r=o3);const i=Sp.getRequest(a,r);super(i,a,{staticNetwork:a});ge(this,"apiKey");et(this,{apiKey:r})}_getProvider(n){try{return new Sp(n,this.apiKey)}catch{}return super._getProvider(n)}async _perform(n){if(n.method==="getTransactionResult"){const{trace:r,tx:a}=await nr({trace:this.send("trace_transaction",[n.hash]),tx:this.getTransaction(n.hash)});if(r==null||a==null)return null;let i,s=!1;try{i=r[0].result.output,s=r[0].error==="Reverted"}catch{}if(i)return Te(!s,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:a,invocation:null,revert:null}),i;Te(!1,"could not parse trace result","BAD_DATA",{value:r})}return await super._perform(n)}isCommunityResource(){return this.apiKey===o3}static getRequest(n,r){r==null&&(r=o3);const a=new $r(`https://${Kfe(n.name)}/v2/${r}`);return a.allowGzip=!0,r===o3&&(a.retryFunc=async(i,s,o)=>(Bu("alchemy"),!0)),a}}class TC extends To{constructor(e){e==null&&(e="mainnet");const n=zn.from(e);le(n.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",n,{staticNetwork:n})}}const ZD=2e3;function Zfe(t){return t&&typeof t.then=="function"}const uH="org.ethers.plugins.provider.Etherscan";class Ax extends Qc{constructor(n){super(uH);ge(this,"baseUrl");et(this,{baseUrl:n})}clone(){return new Ax(this.baseUrl)}}const Qfe=["enableCcipRead"];let Xfe=1;var Zh;class FC extends Cp{constructor(n,r){const a=r??null;super();ge(this,"network");ge(this,"apiKey");xe(this,Zh,void 0);const i=zn.from(n);re(this,Zh,i.getPlugin(uH)),et(this,{apiKey:a,network:i}),this.getBaseUrl()}getBaseUrl(){if(H(this,Zh))return H(this,Zh).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";case"bnb":return"http://api.bscscan.com";case"bnbt":return"http://api-testnet.bscscan.com"}le(!1,"unsupported network","network",this.network)}getUrl(n,r){const a=Object.keys(r).reduce((s,o)=>{const c=r[o];return c!=null&&(s+=`&${o}=${c}`),s},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${n}${a}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(n,r){return r.module=n,r.apikey=this.apiKey,r}async detectNetwork(){return this.network}async fetch(n,r,a){const i=Xfe++,s=a?this.getPostUrl():this.getUrl(n,r),o=a?this.getPostData(n,r):null;this.emit("debug",{action:"sendRequest",id:i,url:s,payload:o});const c=new $r(s);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(v,E,C)=>(this.isCommunityResource()&&Bu("Etherscan"),Promise.resolve(!0)),c.processFunc=async(v,E)=>{const C=E.hasBody()?JSON.parse(yu(E.body)):{},F=(typeof C.result=="string"?C.result:"").toLowerCase().indexOf("rate limit")>=0;return n==="proxy"?C&&C.status==0&&C.message=="NOTOK"&&F&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:C}),E.throwThrottleError(C.result,ZD)):F&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:C.result}),E.throwThrottleError(C.result,ZD)),E},o&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(o).map(v=>`${v}=${o[v]}`).join("&"));const h=await c.send();try{h.assertOk()}catch(v){this.emit("debug",{action:"receiveError",id:i,error:v,reason:"assertOk"}),Te(!1,"response error","SERVER_ERROR",{request:c,response:h})}h.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),Te(!1,"missing response","SERVER_ERROR",{request:c,response:h}));const b=JSON.parse(yu(h.body));return n==="proxy"?(b.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:b,reason:"invalid JSON-RPC"}),Te(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:h,info:{result:b}})),b.error&&(this.emit("debug",{action:"receiveError",id:i,result:b,reason:"JSON-RPC error"}),Te(!1,"error response","SERVER_ERROR",{request:c,response:h,info:{result:b}})),this.emit("debug",{action:"receiveRequest",id:i,result:b}),b.result):b.status==0&&(b.message==="No records found"||b.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:b}),b.result):((b.status!=1||typeof b.message=="string"&&!b.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:b}),Te(!1,"error response","SERVER_ERROR",{request:c,response:h,info:{result:b}})),this.emit("debug",{action:"receiveRequest",id:i,result:b}),b.result)}_getTransactionPostData(n){const r={};for(let a in n){if(Qfe.indexOf(a)>=0||n[a]==null)continue;let i=n[a];a==="type"&&i===0||a==="blockTag"&&i==="latest"||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[a]?i=xc(i):a==="accessList"?i="["+Ro(i).map(s=>`{address:"${s.address}",storageKeys:["${s.storageKeys.join('","')}"]}`).join(",")+"]":i=Ve(i),r[a]=i)}return r}_checkError(n,r,a){let i="";if(Kn(r,"SERVER_ERROR")){try{i=r.info.result.error.message}catch{}if(!i)try{i=r.info.message}catch{}}if(n.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&Te(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:n.transaction}),(n.method==="call"||n.method==="estimateGas")&&i.match(/execution reverted/i)){let s="";try{s=r.info.result.error.data}catch{}const o=bu.getBuiltinCallException(n.method,n.transaction,s);throw o.info={request:n,error:r},o}if(i&&n.method==="broadcastTransaction"){const s=mu.from(n.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&Te(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:s}),i.match(/insufficient funds/)&&Te(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:s}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Te(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:s})}throw r}async _detectNetwork(){return this.network}async _perform(n){switch(n.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(r=>this._checkError(n,r,n.signedTransaction));case"getBlock":if("blockTag"in n)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"});Te(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.hash});case"call":{if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const r=this._getTransactionPostData(n.transaction);r.module="proxy",r.action="eth_call";try{return await this.fetch("proxy",r,!0)}catch(a){return this._checkError(n,a,n.transaction)}}case"estimateGas":{const r=this._getTransactionPostData(n.transaction);r.module="proxy",r.action="eth_estimateGas";try{return await this.fetch("proxy",r,!0)}catch(a){return this._checkError(n,a,n.transaction)}}}return super._perform(n)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(n){let r=this._getAddress(n);Zfe(r)&&(r=await r);try{const a=await this.fetch("contract",{action:"getabi",address:r}),i=JSON.parse(a);return new su(r,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Zh=new WeakMap;var QD={};function Jfe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof QD<"u")return QD;throw new Error("unable to locate global object")}const Yfe=Jfe().WebSocket;var hc,Eb,Hl,Of,zl;class t2{constructor(e,n){xe(this,hc,void 0);xe(this,Eb,void 0);xe(this,Hl,void 0);xe(this,Of,void 0);xe(this,zl,void 0);re(this,hc,e),re(this,Eb,JSON.stringify(n)),re(this,Hl,null),re(this,Of,null),re(this,zl,null)}get filter(){return JSON.parse(H(this,Eb))}start(){re(this,Hl,H(this,hc).send("eth_subscribe",this.filter).then(e=>(H(this,hc)._register(e,this),e)))}stop(){H(this,Hl).then(e=>{H(this,hc).send("eth_unsubscribe",[e])}),re(this,Hl,null)}pause(e){Te(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),re(this,Of,!!e)}resume(){re(this,Of,null)}_handleMessage(e){if(H(this,Hl)!=null&&H(this,Of)===null){let n=H(this,zl);n==null?n=this._emit(H(this,hc),e):n=n.then(async()=>{await this._emit(H(this,hc),e)}),re(this,zl,n.then(()=>{H(this,zl)===n&&re(this,zl,null)}))}}async _emit(e,n){throw new Error("sub-classes must implemente this; _emit")}}hc=new WeakMap,Eb=new WeakMap,Hl=new WeakMap,Of=new WeakMap,zl=new WeakMap;class MC extends t2{constructor(e){super(e,["newHeads"])}async _emit(e,n){e.emit("block",parseInt(n.number))}}class DC extends t2{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,n){e.emit("pending",n)}}var Ab;class kC extends t2{constructor(n,r){super(n,["logs",r]);xe(this,Ab,void 0);re(this,Ab,JSON.stringify(r))}get logFilter(){return JSON.parse(H(this,Ab))}async _emit(n,r){n.emit(this.logFilter,n._wrapLog(r,n._network))}}Ab=new WeakMap;var Pf,Qh,Gl;class IC extends Ex{constructor(n,r){const a=Object.assign({},r??{});le(a.batchMaxCount==null||a.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",r),a.batchMaxCount=1,a.staticNetwork==null&&(a.staticNetwork=!0);super(n,a);xe(this,Pf,void 0);xe(this,Qh,void 0);xe(this,Gl,void 0);re(this,Pf,new Map),re(this,Qh,new Map),re(this,Gl,new Map)}_getSubscriber(n){switch(n.type){case"close":return new _p("close");case"block":return new MC(this);case"pending":return new DC(this);case"event":return new kC(this,n.filter);case"orphan":if(n.filter.orphan==="drop-log")return new _p("drop-log")}return super._getSubscriber(n)}_register(n,r){H(this,Qh).set(n,r);const a=H(this,Gl).get(n);if(a){for(const i of a)r._handleMessage(i);H(this,Gl).delete(n)}}async _send(n){le(!Array.isArray(n),"WebSocket does not support batch send","payload",n);const r=new Promise((a,i)=>{H(this,Pf).set(n.id,{payload:n,resolve:a,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(n)),[await r]}async _processMessage(n){const r=JSON.parse(n);if(r&&typeof r=="object"&&"id"in r){const a=H(this,Pf).get(r.id);if(a==null){this.emit("error",gn("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:r}));return}H(this,Pf).delete(r.id),a.resolve(r)}else if(r&&r.method==="eth_subscription"){const a=r.params.subscription,i=H(this,Qh).get(a);if(i)i._handleMessage(r.params.result);else{let s=H(this,Gl).get(a);s==null&&(s=[],H(this,Gl).set(a,s)),s.push(r.params.result)}}else{this.emit("error",gn("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:r}));return}}async _write(n){throw new Error("sub-classes must override this")}}Pf=new WeakMap,Qh=new WeakMap,Gl=new WeakMap;var Rf,xs;class _x extends IC{constructor(n,r,a){super(r,a);xe(this,Rf,void 0);xe(this,xs,void 0);typeof n=="string"?(re(this,Rf,()=>new Yfe(n)),re(this,xs,H(this,Rf).call(this))):typeof n=="function"?(re(this,Rf,n),re(this,xs,n())):(re(this,Rf,null),re(this,xs,n)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(H(this,xs)==null)throw new Error("websocket closed");return H(this,xs)}async _write(n){this.websocket.send(n)}async destroy(){H(this,xs)!=null&&(H(this,xs).close(),re(this,xs,null)),super.destroy()}}Rf=new WeakMap,xs=new WeakMap;const _y="84842078b09946638c03157f83405213";function ede(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io"}le(!1,"unsupported network","network",t)}class OC extends _x{constructor(n,r){const a=new cd(n,r),i=a._getConnection();Te(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const s=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(s,n);ge(this,"projectId");ge(this,"projectSecret");et(this,{projectId:a.projectId,projectSecret:a.projectSecret})}isCommunityResource(){return this.projectId===_y}}class cd extends To{constructor(n,r,a){n==null&&(n="mainnet");const i=zn.from(n);r==null&&(r=_y),a==null&&(a=null);const s=cd.getRequest(i,r,a);super(s,i,{staticNetwork:i});ge(this,"projectId");ge(this,"projectSecret");et(this,{projectId:r,projectSecret:a})}_getProvider(n){try{return new cd(n,this.projectId,this.projectSecret)}catch{}return super._getProvider(n)}isCommunityResource(){return this.projectId===_y}static getWebSocketProvider(n,r){return new OC(n,r)}static getRequest(n,r,a){r==null&&(r=_y),a==null&&(a=null);const i=new $r(`https://${ede(n.name)}/v3/${r}`);return i.allowGzip=!0,a&&i.setCredentials("",a),r===_y&&(i.retryFunc=async(s,o,c)=>(Bu("InfuraProvider"),!0)),i}}const c3="919b412a057b5e9c9b6dce193c5a60242d6efadb";function tde(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro"}le(!1,"unsupported network","network",t)}class Tp extends To{constructor(n,r){n==null&&(n="mainnet");const a=zn.from(n);r==null&&(r=c3);const i=Tp.getRequest(a,r);super(i,a,{staticNetwork:a});ge(this,"token");et(this,{token:r})}_getProvider(n){try{return new Tp(n,this.token)}catch{}return super._getProvider(n)}isCommunityResource(){return this.token===c3}static getRequest(n,r){r==null&&(r=c3);const a=new $r(`https://${tde(n.name)}/${r}`);return a.allowGzip=!0,r===c3&&(a.retryFunc=async(i,s,o)=>(Bu("QuickNodeProvider"),!0)),a}}const nde=BigInt("1"),rde=BigInt("2");function ade(t){for(let e=t.length-1;e>0;e--){const n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}}function ide(t){return new Promise(e=>{setTimeout(e,t)})}function Hw(){return new Date().getTime()}function Ev(t){return JSON.stringify(t,(e,n)=>typeof n=="bigint"?{type:"bigint",value:n.toString()}:n)}const XD={stallTimeout:400,priority:1,weight:1},JD={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function sde(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const n=await t.provider.getBlockNumber();n>t.blockNumber&&(t.blockNumber=n)}catch(n){t.blockNumber=-2,t._lastFatalError=n,t._lastFatalErrorTimestamp=Hw()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function Yy(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(Yy).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return Yy(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(n=>`${JSON.stringify(n)}:${Yy(t[n])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function Av(t){if("error"in t){const n=t.error;return{tag:Yy(n),value:n}}const e=t.result;return{tag:Yy(e),value:e}}function g6(t,e){const n=new Map;for(const{value:a,tag:i,weight:s}of e){const o=n.get(i)||{value:a,weight:0};o.weight+=s,n.set(i,o)}let r=null;for(const a of n.values())a.weight>=t&&(!r||a.weight>r.weight)&&(r=a);if(r)return r.value}function zw(t,e){let n=0;const r=new Map;let a=null;const i=[];for(const{value:o,tag:c,weight:h}of e)if(o instanceof Error){const b=r.get(c)||{value:o,weight:0};b.weight+=h,r.set(c,b),(a==null||b.weight>a.weight)&&(a=b)}else i.push(BigInt(o)),n+=h;if(n=t?a.value:void 0;i.sort((o,c)=>oo?1:0);const s=Math.floor(i.length/2);return i.length%2?i[s]:(i[s-1]+i[s]+nde)/rde}function _v(t,e){const n=g6(t,e);if(n!==void 0)return n;for(const r of e)if(r.value)return r.value}function ode(t,e){if(t===1)return lt(zw(t,e),"%internal");const n=new Map,r=(s,o)=>{const c=n.get(s)||{result:s,weight:0};c.weight+=o,n.set(s,c)};for(const{weight:s,value:o}of e){const c=lt(o);r(c-1,s),r(c,s),r(c+1,s)}let a=0,i;for(const{weight:s,result:o}of n.values())s>=t&&(s>a||i!=null&&s===a&&o>i)&&(a=s,i=o);return i}var Ca,pc,Xh,c8,fH,_b,Gw,l8,dH,u8,hH,Cb,Vw;class PC extends Cp{constructor(n,r,a){super(r,a);xe(this,c8);xe(this,_b);xe(this,l8);xe(this,u8);xe(this,Cb);ge(this,"quorum");ge(this,"eventQuorum");ge(this,"eventWorkers");xe(this,Ca,void 0);xe(this,pc,void 0);xe(this,Xh,void 0);re(this,Ca,n.map(i=>i instanceof Cp?Object.assign({provider:i},XD,JD):Object.assign({},XD,i,JD))),re(this,pc,-2),re(this,Xh,null),a&&a.quorum!=null?this.quorum=a.quorum:this.quorum=Math.ceil(H(this,Ca).reduce((i,s)=>(i+=s.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,le(this.quorum<=H(this,Ca).reduce((i,s)=>i+s.weight,0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return H(this,Ca).map(n=>{const r=Object.assign({},n);for(const a in r)a[0]==="_"&&delete r[a];return r})}async _detectNetwork(){return zn.from(it(await this._perform({method:"chainId"})))}async _translatePerform(n,r){switch(r.method){case"broadcastTransaction":return await n.broadcastTransaction(r.signedTransaction);case"call":return await n.call(Object.assign({},r.transaction,{blockTag:r.blockTag}));case"chainId":return(await n.getNetwork()).chainId;case"estimateGas":return await n.estimateGas(r.transaction);case"getBalance":return await n.getBalance(r.address,r.blockTag);case"getBlock":{const a="blockHash"in r?r.blockHash:r.blockTag;return await n.getBlock(a,r.includeTransactions)}case"getBlockNumber":return await n.getBlockNumber();case"getCode":return await n.getCode(r.address,r.blockTag);case"getGasPrice":return(await n.getFeeData()).gasPrice;case"getPriorityFee":return(await n.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await n.getLogs(r.filter);case"getStorage":return await n.getStorage(r.address,r.position,r.blockTag);case"getTransaction":return await n.getTransaction(r.hash);case"getTransactionCount":return await n.getTransactionCount(r.address,r.blockTag);case"getTransactionReceipt":return await n.getTransactionReceipt(r.hash);case"getTransactionResult":return await n.getTransactionResult(r.hash)}}async _perform(n){if(n.method==="broadcastTransaction"){const s=H(this,Ca).map(h=>null),o=H(this,Ca).map(async({provider:h,weight:b},v)=>{try{const E=await h._perform(n);s[v]=Object.assign(Av({result:E}),{weight:b})}catch(E){s[v]=Object.assign(Av({error:E}),{weight:b})}});for(;;){const h=s.filter(E=>E!=null);for(const{value:E}of h)if(!(E instanceof Error))return E;const b=g6(this.quorum,s.filter(E=>E!=null));if(Kn(b,"INSUFFICIENT_FUNDS"))throw b;const v=o.filter((E,C)=>s[C]==null);if(v.length===0)break;await Promise.race(v)}const c=_v(this.quorum,s);if(Te(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:s.map(Ev)}}),c instanceof Error)throw c;return c}await ke(this,l8,dH).call(this);const r=new Set;let a=0;for(;;){const s=ke(this,_b,Gw).call(this,r,n);if(s==null||(a+=s.config.weight,a>=this.quorum))break}const i=await ke(this,Cb,Vw).call(this,r,n);for(const s of r)s.perform&&s.result==null&&s.config.lateResponses++;return i}async destroy(){for(const{provider:n}of H(this,Ca))n.destroy();super.destroy()}}Ca=new WeakMap,pc=new WeakMap,Xh=new WeakMap,c8=new WeakSet,fH=function(n){const r=Array.from(n).map(i=>i.config),a=H(this,Ca).slice();ade(a),a.sort((i,s)=>i.priority-s.priority);for(const i of a)if(!i._lastFatalError&&r.indexOf(i)===-1)return i;return null},_b=new WeakSet,Gw=function(n,r){const a=ke(this,c8,fH).call(this,n);if(a==null)return null;const i={config:a,result:null,didBump:!1,perform:null,staller:null},s=Hw();return i.perform=(async()=>{try{a.requests++;const c=await this._translatePerform(a.provider,r);i.result={result:c}}catch(c){a.errorResponses++,i.result={error:c}}const o=Hw()-s;a._totalTime+=o,a.rollingDuration=.95*a.rollingDuration+.05*o,i.perform=null})(),i.staller=(async()=>{await ide(a.stallTimeout),i.staller=null})(),n.add(i),i},l8=new WeakSet,dH=async function(){let n=H(this,Xh);if(!n){const r=[];H(this,Ca).forEach(a=>{r.push((async()=>{await sde(a,0),a._lastFatalError||(a._network=await a.provider.getNetwork())})())}),re(this,Xh,n=(async()=>{await Promise.all(r);let a=null;for(const i of H(this,Ca)){if(i._lastFatalError)continue;const s=i._network;a==null?a=s.chainId:s.chainId!==a&&Te(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await n},u8=new WeakSet,hH=async function(n,r){const a=[];for(const i of n)if(i.result!=null){const{tag:s,value:o}=Av(i.result);a.push({tag:s,value:o,weight:i.config.weight})}if(!(a.reduce((i,s)=>i+s.weight,0)!s._lastFatalError).map(s=>({value:s.blockNumber,tag:lt(s.blockNumber).toString(),weight:s.weight}))))));const i=ode(this.quorum,a);return i===void 0?void 0:(i>H(this,pc)&&re(this,pc,i),H(this,pc))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return zw(this.quorum,a);case"getBlock":return"blockTag"in r&&r.blockTag==="pending"?_v(this.quorum,a):g6(this.quorum,a);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return g6(this.quorum,a);case"broadcastTransaction":return _v(this.quorum,a)}Te(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${Ev(r.method)})`})}},Cb=new WeakSet,Vw=async function(n,r){if(n.size===0)throw new Error("no runners?!");const a=[];let i=0;for(const o of n){if(o.perform&&a.push(o.perform),o.staller){a.push(o.staller);continue}o.didBump||(o.didBump=!0,i++)}const s=await ke(this,u8,hH).call(this,n,r);if(s!==void 0){if(s instanceof Error)throw s;return s}for(let o=0;o0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:Array.from(n).map(o=>Ev(o.result))}}),await Promise.race(a),await ke(this,Cb,Vw).call(this,n,r)};function cde(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const lde="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function pH(t,e){e==null&&(e={});const n=s=>e[s]==="-"?!1:typeof e.exclusive=="string"?s===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(s)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new To(t);if(typeof t=="string"&&t.match(/^wss?:/)||cde(t))return new _x(t);let r=null;try{r=zn.from(t)}catch{}const a=[];if(n("publicPolygon")&&r&&r.name==="matic"&&a.push(new To("https://polygon-rpc.com/",r,{staticNetwork:r})),n("alchemy"))try{a.push(new Sp(t,e.alchemy))}catch{}if(n("ankr")&&e.ankr!=null)try{a.push(new Bp(t,e.ankr))}catch{}if(n("cloudflare"))try{a.push(new TC(t))}catch{}if(n("etherscan"))try{a.push(new FC(t,e.etherscan))}catch{}if(n("infura"))try{let s=e.infura,o;typeof s=="object"&&(o=s.projectSecret,s=s.projectId),a.push(new cd(t,s,o))}catch{}if(n("quicknode"))try{let s=e.quicknode;a.push(new Tp(t,s))}catch{}if(Te(a.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),a.length===1)return a[0];let i=Math.floor(a.length/2);return i>2&&(i=2),r&&lde.indexOf(r.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new PC(a,void 0,{quorum:i})}var Vl,Nf;const cT=class cT extends a1{constructor(n){super(n.provider);ge(this,"signer");xe(this,Vl,void 0);xe(this,Nf,void 0);et(this,{signer:n}),re(this,Vl,null),re(this,Nf,0)}async getAddress(){return this.signer.getAddress()}connect(n){return new cT(this.signer.connect(n))}async getNonce(n){if(n==="pending"){H(this,Vl)==null&&re(this,Vl,super.getNonce("pending"));const r=H(this,Nf);return await H(this,Vl)+r}return super.getNonce(n)}increment(){Gd(this,Nf)._++}reset(){re(this,Nf,0),re(this,Vl,null)}async sendTransaction(n){const r=this.getNonce("pending");return this.increment(),n=await this.signer.populateTransaction(n),n.nonce=await r,await this.signer.sendTransaction(n)}signTransaction(n){return this.signer.signTransaction(n)}signMessage(n){return this.signer.signMessage(n)}signTypedData(n,r,a){return this.signer.signTypedData(n,r,a)}};Vl=new WeakMap,Nf=new WeakMap;let Eg=cT;var Jh;class RC extends lH{constructor(n,r){super(r,{batchMaxCount:1});xe(this,Jh,void 0);re(this,Jh,async(a,i)=>{const s={method:a,params:i};this.emit("debug",{action:"sendEip1193Request",payload:s});try{const o=await n.request(s);return this.emit("debug",{action:"receiveEip1193Result",result:o}),o}catch(o){const c=new Error(o.message);throw c.code=o.code,c.data=o.data,c.payload=s,this.emit("debug",{action:"receiveEip1193Error",error:c}),c}})}async send(n,r){return await this._start(),await super.send(n,r)}async _send(n){le(!Array.isArray(n),"EIP-1193 does not support batch request","payload",n);try{const r=await H(this,Jh).call(this,n.method,n.params||[]);return[{id:n.id,result:r}]}catch(r){return[{id:n.id,error:{code:r.code,data:r.data,message:r.message}}]}}getRpcError(n,r){switch(r=JSON.parse(JSON.stringify(r)),r.error.code||-1){case 4001:r.error.message=`ethers-user-denied: ${r.error.message}`;break;case 4200:r.error.message=`ethers-unsupported: ${r.error.message}`;break}return super.getRpcError(n,r)}async hasSigner(n){n==null&&(n=0);const r=await this.send("eth_accounts",[]);return typeof n=="number"?r.length>n:(n=n.toLowerCase(),r.filter(a=>a.toLowerCase()===n).length!==0)}async getSigner(n){if(n==null&&(n=0),!await this.hasSigner(n))try{await H(this,Jh).call(this,"eth_requestAccounts",[])}catch(r){const a=r.payload;throw this.getRpcError(a,{id:a.id,error:r})}return await super.getSigner(n)}}Jh=new WeakMap;const l3="62e1ad51b37b8e00394bda3b";function ude(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}le(!1,"unsupported network","network",t)}class Um extends To{constructor(n,r,a){n==null&&(n="mainnet");const i=zn.from(n);r==null&&(r=l3),a==null&&(a=null);const s={staticNetwork:i},o=Um.getRequest(i,r,a);super(o,i,s);ge(this,"applicationId");ge(this,"applicationSecret");et(this,{applicationId:r,applicationSecret:a})}_getProvider(n){try{return new Um(n,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(n)}static getRequest(n,r,a){r==null&&(r=l3);const i=new $r(`https://${ude(n.name)}/v1/lb/${r}`);return i.allowGzip=!0,a&&i.setCredentials("",a),r===l3&&(i.retryFunc=async(s,o,c)=>(Bu("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===l3}}const yH=void 0;var Yh;const lT=class lT extends a1{constructor(n,r){super(r);ge(this,"address");xe(this,Yh,void 0);le(n&&typeof n.sign=="function","invalid private key","privateKey","[ REDACTED ]"),re(this,Yh,n);const a=Sd(this.signingKey.publicKey);et(this,{address:a})}get signingKey(){return H(this,Yh)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(n){return new lT(H(this,Yh),n)}async signTransaction(n){const{to:r,from:a}=await nr({to:n.to?or(n.to,this.provider):void 0,from:n.from?or(n.from,this.provider):void 0});r!=null&&(n.to=r),a!=null&&(n.from=a),n.from!=null&&(le(Et(n.from)===this.address,"transaction from address mismatch","tx.from",n.from),delete n.from);const i=mu.from(n);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(n){return this.signMessageSync(n)}signMessageSync(n){return this.signingKey.sign(px(n)).serialized}async signTypedData(n,r,a){const i=await Ic.resolveNames(n,r,a,async s=>{Te(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:s}});const o=await this.provider.resolveName(s);return Te(o!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:s}),o});return this.signingKey.sign(Ic.hash(i.domain,r,i.value)).serialized}};Yh=new WeakMap;let Fp=lT;const Ag=" !#$%&'()*+,-./<=>?@[]^_`{|}~",fde=/^[a-z]*$/i;function YD(t,e){let n=97;return t.reduce((r,a)=>(a===e?n++:a.match(fde)?r.push(String.fromCharCode(n)+a):(n=97,r.push(a)),r),[])}function dde(t,e){for(let a=Ag.length-1;a>=0;a--)t=t.split(Ag[a]).join(e.substring(2*a,2*a+2));const n=[],r=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(a,i,s,o)=>{if(s)for(let c=parseInt(s);c>=0;c--)n.push(";");else n.push(i.toLowerCase());return""});if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return YD(YD(n,";"),":")}function mH(t){return le(t[0]==="0","unsupported auwl data","data",t),dde(t.substring(1+2*Ag.length),t.substring(1,1+2*Ag.length))}class NC{constructor(e){ge(this,"locale");et(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var ep,Bb,$f,Sb,qw;class Cx extends NC{constructor(n,r,a){super(n);xe(this,Sb);xe(this,ep,void 0);xe(this,Bb,void 0);xe(this,$f,void 0);re(this,ep,r),re(this,Bb,a),re(this,$f,null)}get _data(){return H(this,ep)}_decodeWords(){return mH(H(this,ep))}getWord(n){const r=ke(this,Sb,qw).call(this);return le(n>=0&&n=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const r=new Uint8Array(Math.ceil(11*n.length/8));let a=0;for(let h=0;h=0,`invalid mnemonic word at index ${h}`,"mnemonic","[ REDACTED ]");for(let v=0;v<11;v++)b&1<<10-v&&(r[a>>3]|=1<<7-a%8),a++}const i=32*n.length/3,s=n.length/3,o=bH(s),c=Ze(xa(r.slice(0,i/8)))[0]&o;return le(c===(r[r.length-1]&o),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),Ve(r.slice(0,i/8))}function Sv(t,e){le(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=Fo.wordlist());const n=[0];let r=11;for(let s=0;s8?(n[n.length-1]<<=8,n[n.length-1]|=t[s],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=t[s]>>8-r,n.push(t[s]&yde(8-r)),r+=3);const a=t.length/4,i=parseInt(xa(t).substring(2,4),16)&bH(a);return n[n.length-1]<<=a,n[n.length-1]|=i>>8-a,e.join(n.map(s=>e.getWord(s)))}const Tv={};class gu{constructor(e,n,r,a,i){ge(this,"phrase");ge(this,"password");ge(this,"wordlist");ge(this,"entropy");a==null&&(a=""),i==null&&(i=Fo.wordlist()),Po(e,Tv,"Mnemonic"),et(this,{phrase:r,password:a,wordlist:i,entropy:n})}computeSeed(){const e=Zn("mnemonic"+this.password,"NFKD");return Rs(Zn(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,n,r){const a=Bv(e,r);return e=Sv(Ze(a),r),new gu(Tv,a,e,n,r)}static fromEntropy(e,n,r){const a=Ze(e,"entropy"),i=Sv(a,r);return new gu(Tv,Ve(a),i,n,r)}static entropyToPhrase(e,n){const r=Ze(e,"entropy");return Sv(r,n)}static phraseToEntropy(e,n){return Bv(e,n)}static isValidMnemonic(e,n){try{return Bv(e,n),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var Tr=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Fv=function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},x6,gi,Gs;const mde={16:10,24:12,32:14},bde=[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],yi=[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],u3=[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],gde=[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],xde=[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],vde=[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],wde=[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],Ede=[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],Ade=[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],_de=[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],Cde=[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],Bde=[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],Sde=[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],Tde=[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],Fde=[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 Mv(t){const e=[];for(let n=0;n>2,Tr(this,Gs,"f")[s][b%4]=i[b],Tr(this,gi,"f")[n-s][b%4]=i[b];let o=0,c=a,h;for(;c>16&255]<<24^yi[h>>8&255]<<16^yi[h&255]<<8^yi[h>>24&255]^bde[o]<<24,o+=1,a!=8)for(let C=1;C>8&255]<<8^yi[h>>16&255]<<16^yi[h>>24&255]<<24;for(let C=a/2+1;C>2,E=c%4,Tr(this,Gs,"f")[v][E]=i[b],Tr(this,gi,"f")[n-v][E]=i[b++],c++}for(let b=1;b>24&255]^Sde[h>>16&255]^Tde[h>>8&255]^Fde[h&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const n=Tr(this,Gs,"f").length-1,r=[0,0,0,0];let a=Mv(e);for(let o=0;o<4;o++)a[o]^=Tr(this,Gs,"f")[0][o];for(let o=1;o>24&255]^xde[a[(c+1)%4]>>16&255]^vde[a[(c+2)%4]>>8&255]^wde[a[(c+3)%4]&255]^Tr(this,Gs,"f")[o][c];a=r.slice()}const i=new Uint8Array(16);let s=0;for(let o=0;o<4;o++)s=Tr(this,Gs,"f")[n][o],i[4*o]=(yi[a[o]>>24&255]^s>>24)&255,i[4*o+1]=(yi[a[(o+1)%4]>>16&255]^s>>16)&255,i[4*o+2]=(yi[a[(o+2)%4]>>8&255]^s>>8)&255,i[4*o+3]=(yi[a[(o+3)%4]&255]^s)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const n=Tr(this,gi,"f").length-1,r=[0,0,0,0];let a=Mv(e);for(let o=0;o<4;o++)a[o]^=Tr(this,gi,"f")[0][o];for(let o=1;o>24&255]^Ade[a[(c+3)%4]>>16&255]^_de[a[(c+2)%4]>>8&255]^Cde[a[(c+1)%4]&255]^Tr(this,gi,"f")[o][c];a=r.slice()}const i=new Uint8Array(16);let s=0;for(let o=0;o<4;o++)s=Tr(this,gi,"f")[n][o],i[4*o]=(u3[a[o]>>24&255]^s>>24)&255,i[4*o+1]=(u3[a[(o+3)%4]>>16&255]^s>>16)&255,i[4*o+2]=(u3[a[(o+2)%4]>>8&255]^s>>8)&255,i[4*o+3]=(u3[a[(o+1)%4]&255]^s)&255;return i}}x6=new WeakMap,gi=new WeakMap,Gs=new WeakMap;class gH{constructor(e,n,r){if(r&&!(this instanceof r))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new $C(n)},name:{enumerable:!0,value:e}})}}var f3=function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},e0=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Cy,Vo;class LC extends gH{constructor(e,n){if(super("ECC",e,LC),Cy.set(this,void 0),Vo.set(this,void 0),n){if(n.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");f3(this,Cy,new Uint8Array(n),"f")}else f3(this,Cy,new Uint8Array(16),"f");f3(this,Vo,this.iv,"f")}get iv(){return new Uint8Array(e0(this,Cy,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const n=new Uint8Array(e.length);for(let r=0;rNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let n=15;n>=0;--n)mi(this,xi,"f")[n]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");mi(this,xi,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(mi(this,xi,"f")[e]===255)mi(this,xi,"f")[e]=0;else{mi(this,xi,"f")[e]++;break}}encrypt(e){var n,r;const a=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const n=t.length-e;for(let r=0;r0&&(r&r-1)===0,"invalid kdf.N","kdf.N",r),le(a>0&&i>0,"invalid kdf","kdf",e);const s=Un(t,"crypto.kdfparams.dklen:int!");return le(s===32,"invalid kdf.dklen","kdf.dflen",s),{name:"scrypt",salt:n,N:r,r:a,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const n=Un(t,"crypto.kdfparams.salt:data!"),r=Un(t,"crypto.kdfparams.prf:string!"),a=r.split("-").pop();le(a==="sha256"||a==="sha512","invalid kdf.pdf","kdf.pdf",r);const i=Un(t,"crypto.kdfparams.c:int!"),s=Un(t,"crypto.kdfparams.dklen:int!");return le(s===32,"invalid kdf.dklen","kdf.dklen",s),{name:"pbkdf2",salt:n,count:i,dkLen:s,algorithm:a}}}le(!1,"unsupported key-derivation function","kdf",e)}function UC(t,e){const n=JSON.parse(t),r=n2(e),a=wH(n);if(a.name==="pbkdf2"){const{salt:v,count:E,dkLen:C,algorithm:F}=a,T=Rs(r,v,E,C,F);return Cg(n,T)}Te(a.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:a});const{salt:i,N:s,r:o,p:c,dkLen:h}=a,b=Zc(r,i,s,o,c,h);return Cg(n,b)}function ek(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function jC(t,e,n){const r=JSON.parse(t),a=n2(e),i=wH(r);if(i.name==="pbkdf2"){n&&(n(0),await ek(0));const{salt:E,count:C,dkLen:F,algorithm:T}=i,P=Rs(a,E,C,F,T);return n&&(n(1),await ek(0)),Cg(r,P)}Te(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:s,N:o,r:c,p:h,dkLen:b}=i,v=await Kc(a,s,o,c,h,b,n);return Cg(r,v)}function EH(t){const e=t.salt!=null?Ze(t.salt,"options.salt"):si(32);let n=1<<17,r=8,a=1;return t.scrypt&&(t.scrypt.N&&(n=t.scrypt.N),t.scrypt.r&&(r=t.scrypt.r),t.scrypt.p&&(a=t.scrypt.p)),le(typeof n=="number"&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),le(typeof r=="number"&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),le(typeof a=="number"&&a>0&&Number.isSafeInteger(a),"invalid scrypt p parameter","options.p",a),{name:"scrypt",dkLen:32,salt:e,N:n,r,p:a}}function AH(t,e,n,r){const a=Ze(n.privateKey,"privateKey"),i=r.iv!=null?Ze(r.iv,"options.iv"):si(16);le(i.length===16,"invalid options.iv length","options.iv",r.iv);const s=r.uuid!=null?Ze(r.uuid,"options.uuid"):si(16);le(s.length===16,"invalid options.uuid length","options.uuid",r.iv);const o=t.slice(0,16),c=t.slice(16,32),h=new Mp(o,i),b=Ze(h.encrypt(a)),v=Vt(jt([c,b])),E={address:n.address.substring(2).toLowerCase(),id:rC(s),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Ve(i).substring(2)},ciphertext:Ve(b).substring(2),kdf:"scrypt",kdfparams:{salt:Ve(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:v.substring(2)}};if(n.mnemonic){const C=r.client!=null?r.client:`ethers/${rx}`,F=n.mnemonic.path||vH,T=n.mnemonic.locale||"en",P=t.slice(32,64),D=Ze(n.mnemonic.entropy,"account.mnemonic.entropy"),M=si(16),O=new Mp(P,M),k=Ze(O.encrypt(D)),U=new Date,Y="UTC--"+(U.getUTCFullYear()+"-"+H1(U.getUTCMonth()+1,2)+"-"+H1(U.getUTCDate(),2)+"T"+H1(U.getUTCHours(),2)+"-"+H1(U.getUTCMinutes(),2)+"-"+H1(U.getUTCSeconds(),2)+".0Z")+"--"+E.address;E["x-ethers"]={client:C,gethFilename:Y,path:F,locale:T,mnemonicCounter:Ve(M).substring(2),mnemonicCiphertext:Ve(k).substring(2),version:"0.1"}}return JSON.stringify(E)}function Bx(t,e,n){n==null&&(n={});const r=n2(e),a=EH(n),i=Zc(r,a.salt,a.N,a.r,a.p,64);return AH(Ze(i),a,t,n)}async function Sx(t,e,n){n==null&&(n={});const r=n2(e),a=EH(n),i=await Kc(r,a.salt,a.N,a.r,a.p,64,n.progressCallback);return AH(Ze(i),a,t,n)}const em="m/44'/60'/0'/0/0",kde=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),Ao=2147483648,Ide=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Ode="0123456789abcdef";function Bg(t,e){let n="";for(;t;)n=Ode[t%16]+n,t=Math.trunc(t/16);for(;n.length=0;s-=8)a[33+(s>>3)]=t>>24-s&255;const i=Ze(qc("sha512",e,a));return{IL:i.slice(0,32),IR:i.slice(32)}}function CH(t,e){const n=e.split("/");le(n.length>0&&(n[0]==="m"||t.depth>0),"invalid path","path",e),n[0]==="m"&&n.shift();let r=t;for(let a=0;a=16&&a.length<=64,"invalid seed","seed","[REDACTED]");const i=Ze(qc("sha512",kde,a)),s=new Gi(Ve(i.slice(0,32)));return new us(Ys,s,"0x00000000",Ve(i.slice(32)),"m",0,0,r,null)},xe(us,Lf);let Gf=us;class ld extends Lm{constructor(n,r,a,i,s,o,c,h,b){super(r,b);ge(this,"publicKey");ge(this,"fingerprint");ge(this,"parentFingerprint");ge(this,"chainCode");ge(this,"path");ge(this,"index");ge(this,"depth");Po(n,Ys,"HDNodeVoidWallet"),et(this,{publicKey:a});const v=Yt(Wc(xa(a)),0,4);et(this,{publicKey:a,fingerprint:v,parentFingerprint:i,chainCode:s,path:o,index:c,depth:h})}connect(n){return new ld(Ys,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,n)}get extendedKey(){return Te(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Ww(jt(["0x0488B21E",Bg(this.depth,1),this.parentFingerprint,Bg(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(n){const r=lt(n,"index");le(r<=4294967295,"invalid index","index",r);let a=this.path;a&&(a+="/"+(r&~Ao),r&Ao&&(a+="'"));const{IR:i,IL:s}=_H(r,this.chainCode,this.publicKey,null),o=Gi.addPoints(s,this.publicKey,!0),c=Sd(o);return new ld(Ys,c,o,this.fingerprint,Ve(i),a,r,this.depth+1,this.provider)}derivePath(n){return CH(this,n)}}function BH(t){const e=lt(t,"index");return le(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var Fb,Zw;const ef=class ef extends Fp{constructor(e,n){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let r=typeof e=="string"?new Gi(e):e;super(r,n)}connect(e){return new ef(this.signingKey,e)}async encrypt(e,n){const r={address:this.address,privateKey:this.privateKey};return await Sx(r,e,{progressCallback:n})}encryptSync(e){const n={address:this.address,privateKey:this.privateKey};return Bx(n,e)}static async fromEncryptedJson(e,n,r){var i;let a=null;return _g(e)?a=await jC(e,n,r):Sg(e)&&(r&&(r(0),await tk(0)),a=Tg(e,n),r&&(r(1),await tk(0))),ke(i=ef,Fb,Zw).call(i,a)}static fromEncryptedJsonSync(e,n){var a;let r=null;return _g(e)?r=UC(e,n):Sg(e)?r=Tg(e,n):le(!1,"invalid JSON wallet","json","[ REDACTED ]"),ke(a=ef,Fb,Zw).call(a,r)}static createRandom(e){const n=Gf.createRandom();return e?n.connect(e):n}static fromPhrase(e,n){const r=Gf.fromPhrase(e);return n?r.connect(n):r}};Fb=new WeakSet,Zw=function(e){if(le(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const r=gu.fromEntropy(e.mnemonic.entropy),a=Gf.fromMnemonic(r,e.mnemonic.path);if(a.address===e.address&&a.privateKey===e.privateKey)return a;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const n=new ef(e.privateKey);return le(n.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),n},xe(ef,Fb);let Fg=ef;const Pde=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function Rde(t,e){const n=(1<=t;){const c=a>>i-t;a&=(1<{const a=r.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);le(a!==null,"internal error parsing accents","accents",e);let i=0;const s=Rde(parseInt(a[3]),a[4]),o=parseInt(a[2]),c=new RegExp(`([${a[1]}])`,"g");n=n.replace(c,(h,b)=>(--s[i]===0&&(b=String.fromCharCode(b.charCodeAt(0),o),i++),b))}),n.split(",")}var Mb;class TH extends Cx{constructor(n,r,a,i){super(n,r,i);xe(this,Mb,void 0);re(this,Mb,a)}get _accent(){return H(this,Mb)}_decodeWords(){return Nde(this._data,this._accent)}}Mb=new WeakMap;const FH={en:Fo.wordlist()},Mg=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:bu,AbstractProvider:Cp,AbstractSigner:a1,AlchemyProvider:Sp,AnkrProvider:Bp,BaseContract:od,BaseWallet:Fp,Block:gC,BrowserProvider:RC,CloudflareProvider:TC,ConstructorFragment:Bs,Contract:su,ContractEventPayload:vC,ContractFactory:wx,ContractTransactionReceipt:xC,ContractTransactionResponse:Yb,ContractUnknownEventPayload:xx,EnsPlugin:r1,EnsResolver:Ep,ErrorDescription:bC,ErrorFragment:ea,EtherSymbol:QU,EtherscanPlugin:Ax,EtherscanProvider:FC,EventFragment:Oi,EventLog:Jb,EventPayload:lx,FallbackFragment:_s,FallbackProvider:PC,FeeData:xg,FeeDataNetworkPlugin:wg,FetchCancelSignal:eC,FetchRequest:$r,FetchResponse:Eo,FetchUrlFeeDataNetworkPlugin:CC,FixedNumber:mp,Fragment:Pc,FunctionFragment:Pi,GasCostPlugin:n1,HDNodeVoidWallet:ld,HDNodeWallet:Gf,Indexed:gg,InfuraProvider:cd,InfuraWebSocketProvider:OC,Interface:vp,IpcSocketProvider:yH,JsonRpcApiProvider:Ex,JsonRpcProvider:To,JsonRpcSigner:Jy,LangEn:Fo,Log:Td,LogDescription:yC,MaxInt256:ZU,MaxUint256:WU,MessagePrefix:sC,MinInt256:KU,Mnemonic:gu,MulticoinProviderPlugin:AC,N:VU,NamedFragment:t1,Network:zn,NetworkPlugin:Qc,NonceManager:Eg,ParamType:cr,PocketProvider:Um,QuickNodeProvider:Tp,Result:bp,Signature:ks,SigningKey:Gi,SocketBlockSubscriber:MC,SocketEventSubscriber:kC,SocketPendingSubscriber:DC,SocketProvider:IC,SocketSubscriber:t2,StructFragment:Cc,Transaction:mu,TransactionDescription:mC,TransactionReceipt:bx,TransactionResponse:id,Typed:Ar,TypedDataEncoder:Ic,UndecodedEventLog:gx,UnmanagedSubscriber:_p,Utf8ErrorFuncs:Y_,VoidSigner:Lm,Wallet:Fg,WebSocketProvider:_x,WeiPerEther:qU,Wordlist:NC,WordlistOwl:Cx,WordlistOwlA:TH,ZeroAddress:km,ZeroHash:hg,accessListify:Ro,assert:Te,assertArgument:le,assertArgumentCount:ax,assertNormalize:ix,assertPrivate:Po,checkResultErrors:hU,computeAddress:Sd,computeHmac:qc,concat:jt,copyRequest:wp,dataLength:Ac,dataSlice:Yt,decodeBase58:Q_,decodeBase64:X_,decodeBytes32String:Kj,decodeRlp:Qb,decryptCrowdsaleJson:Tg,decryptKeystoreJson:jC,decryptKeystoreJsonSync:UC,defaultPath:em,defineProperties:et,dnsEncode:hC,encodeBase58:cx,encodeBase64:J_,encodeBytes32String:Wj,encodeRlp:rd,encryptKeystoreJson:Sx,encryptKeystoreJsonSync:Bx,ensNormalize:dC,formatEther:fU,formatUnits:tC,fromTwos:yp,getAccountPath:BH,getAddress:Et,getBigInt:it,getBytes:Ze,getBytesCopy:ir,getCreate2Address:ej,getCreateAddress:ux,getDefaultProvider:pH,getIcapAddress:YU,getIndexedAccountPath:SH,getNumber:lt,getUint:Yp,hashMessage:px,hexlify:Ve,id:Is,isAddress:tj,isAddressable:fx,isBytesLike:sx,isCallException:Wb,isCrowdsaleJson:Sg,isError:Kn,isHexString:bn,isKeystoreJson:_g,isValidName:Bj,keccak256:Vt,lock:XU,makeError:gn,mask:gc,namehash:Nm,parseEther:dU,parseUnits:nC,pbkdf2:Rs,randomBytes:si,recoverAddress:Xb,resolveAddress:or,resolveProperties:nr,ripemd160:Wc,scrypt:Kc,scryptSync:Zc,sha256:xa,sha512:e1,showThrottleMessage:Bu,solidityPacked:yx,solidityPackedKeccak256:kj,solidityPackedSha256:Ij,stripZerosLeft:YL,toBeArray:Or,toBeHex:Ds,toBigInt:Bd,toNumber:Z_,toQuantity:xc,toTwos:Zb,toUtf8Bytes:Zn,toUtf8CodePoints:rU,toUtf8String:yu,uuidV4:rC,verifyMessage:Mj,verifyTypedData:$j,version:rx,wordlists:FH,zeroPadBytes:Kb,zeroPadValue:zi},Symbol.toStringTag,{value:"Module"})),$de=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:bu,AbstractProvider:Cp,AbstractSigner:a1,AlchemyProvider:Sp,AnkrProvider:Bp,BaseContract:od,BaseWallet:Fp,Block:gC,BrowserProvider:RC,CloudflareProvider:TC,ConstructorFragment:Bs,Contract:su,ContractEventPayload:vC,ContractFactory:wx,ContractTransactionReceipt:xC,ContractTransactionResponse:Yb,ContractUnknownEventPayload:xx,EnsPlugin:r1,EnsResolver:Ep,ErrorDescription:bC,ErrorFragment:ea,EtherSymbol:QU,EtherscanPlugin:Ax,EtherscanProvider:FC,EventFragment:Oi,EventLog:Jb,EventPayload:lx,FallbackFragment:_s,FallbackProvider:PC,FeeData:xg,FeeDataNetworkPlugin:wg,FetchCancelSignal:eC,FetchRequest:$r,FetchResponse:Eo,FetchUrlFeeDataNetworkPlugin:CC,FixedNumber:mp,Fragment:Pc,FunctionFragment:Pi,GasCostPlugin:n1,HDNodeVoidWallet:ld,HDNodeWallet:Gf,Indexed:gg,InfuraProvider:cd,InfuraWebSocketProvider:OC,Interface:vp,IpcSocketProvider:yH,JsonRpcApiProvider:Ex,JsonRpcProvider:To,JsonRpcSigner:Jy,LangEn:Fo,Log:Td,LogDescription:yC,MaxInt256:ZU,MaxUint256:WU,MessagePrefix:sC,MinInt256:KU,Mnemonic:gu,MulticoinProviderPlugin:AC,N:VU,NamedFragment:t1,Network:zn,NetworkPlugin:Qc,NonceManager:Eg,ParamType:cr,PocketProvider:Um,QuickNodeProvider:Tp,Result:bp,Signature:ks,SigningKey:Gi,SocketBlockSubscriber:MC,SocketEventSubscriber:kC,SocketPendingSubscriber:DC,SocketProvider:IC,SocketSubscriber:t2,StructFragment:Cc,Transaction:mu,TransactionDescription:mC,TransactionReceipt:bx,TransactionResponse:id,Typed:Ar,TypedDataEncoder:Ic,UndecodedEventLog:gx,UnmanagedSubscriber:_p,Utf8ErrorFuncs:Y_,VoidSigner:Lm,Wallet:Fg,WebSocketProvider:_x,WeiPerEther:qU,Wordlist:NC,WordlistOwl:Cx,WordlistOwlA:TH,ZeroAddress:km,ZeroHash:hg,accessListify:Ro,assert:Te,assertArgument:le,assertArgumentCount:ax,assertNormalize:ix,assertPrivate:Po,checkResultErrors:hU,computeAddress:Sd,computeHmac:qc,concat:jt,copyRequest:wp,dataLength:Ac,dataSlice:Yt,decodeBase58:Q_,decodeBase64:X_,decodeBytes32String:Kj,decodeRlp:Qb,decryptCrowdsaleJson:Tg,decryptKeystoreJson:jC,decryptKeystoreJsonSync:UC,defaultPath:em,defineProperties:et,dnsEncode:hC,encodeBase58:cx,encodeBase64:J_,encodeBytes32String:Wj,encodeRlp:rd,encryptKeystoreJson:Sx,encryptKeystoreJsonSync:Bx,ensNormalize:dC,ethers:Mg,formatEther:fU,formatUnits:tC,fromTwos:yp,getAccountPath:BH,getAddress:Et,getBigInt:it,getBytes:Ze,getBytesCopy:ir,getCreate2Address:ej,getCreateAddress:ux,getDefaultProvider:pH,getIcapAddress:YU,getIndexedAccountPath:SH,getNumber:lt,getUint:Yp,hashMessage:px,hexlify:Ve,id:Is,isAddress:tj,isAddressable:fx,isBytesLike:sx,isCallException:Wb,isCrowdsaleJson:Sg,isError:Kn,isHexString:bn,isKeystoreJson:_g,isValidName:Bj,keccak256:Vt,lock:XU,makeError:gn,mask:gc,namehash:Nm,parseEther:dU,parseUnits:nC,pbkdf2:Rs,randomBytes:si,recoverAddress:Xb,resolveAddress:or,resolveProperties:nr,ripemd160:Wc,scrypt:Kc,scryptSync:Zc,sha256:xa,sha512:e1,showThrottleMessage:Bu,solidityPacked:yx,solidityPackedKeccak256:kj,solidityPackedSha256:Ij,stripZerosLeft:YL,toBeArray:Or,toBeHex:Ds,toBigInt:Bd,toNumber:Z_,toQuantity:xc,toTwos:Zb,toUtf8Bytes:Zn,toUtf8CodePoints:rU,toUtf8String:yu,uuidV4:rC,verifyMessage:Mj,verifyTypedData:$j,version:rx,wordlists:FH,zeroPadBytes:Kb,zeroPadValue:zi},Symbol.toStringTag,{value:"Module"}));var Dp={},Tx={},Fx={},MH={};Object.defineProperty(MH,"__esModule",{value:!0});var DH={};Object.defineProperty(DH,"__esModule",{value:!0});var kH={};Object.defineProperty(kH,"__esModule",{value:!0});var IH={};Object.defineProperty(IH,"__esModule",{value:!0});var OH={};Object.defineProperty(OH,"__esModule",{value:!0});var PH={};Object.defineProperty(PH,"__esModule",{value:!0});var RH={};Object.defineProperty(RH,"__esModule",{value:!0});var NH={};Object.defineProperty(NH,"__esModule",{value:!0});var $H={};Object.defineProperty($H,"__esModule",{value:!0});var LH={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.OperationType=void 0,function(e){e[e.Call=0]="Call",e[e.DelegateCall=1]="DelegateCall"}(t.OperationType||(t.OperationType={}))})(LH);(function(t){var e=he&&he.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i);var o=Object.getOwnPropertyDescriptor(a,i);(!o||("get"in o?!a.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,o)}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=he&&he.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,r,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(MH,t),n(DH,t),n(kH,t),n(IH,t),n(OH,t),n(PH,t),n(RH,t),n(NH,t),n($H,t),n(LH,t)})(Fx);var Mx={};const an=lP($de);var on={},ya={};Object.defineProperty(ya,"__esModule",{value:!0});ya.output=ya.exists=ya.hash=ya.bytes=ya.bool=ya.number=void 0;function Dg(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}ya.number=Dg;function UH(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}ya.bool=UH;function Lde(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function HC(t,...e){if(!Lde(t))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}ya.bytes=HC;function jH(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Dg(t.outputLen),Dg(t.blockLen)}ya.hash=jH;function HH(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}ya.exists=HH;function zH(t,e){HC(t);const n=e.outputLen;if(t.length>Qw&d3)}:{h:Number(t>>Qw&d3)|0,l:Number(t&d3)|0}}ut.fromBig=zC;function GH(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0);ut.toBig=VH;const qH=(t,e,n)=>t>>>n;ut.shrSH=qH;const WH=(t,e,n)=>t<<32-n|e>>>n;ut.shrSL=WH;const KH=(t,e,n)=>t>>>n|e<<32-n;ut.rotrSH=KH;const ZH=(t,e,n)=>t<<32-n|e>>>n;ut.rotrSL=ZH;const QH=(t,e,n)=>t<<64-n|e>>>n-32;ut.rotrBH=QH;const XH=(t,e,n)=>t>>>n-32|e<<64-n;ut.rotrBL=XH;const JH=(t,e)=>e;ut.rotr32H=JH;const YH=(t,e)=>t;ut.rotr32L=YH;const ez=(t,e,n)=>t<>>32-n;ut.rotlSH=ez;const tz=(t,e,n)=>e<>>32-n;ut.rotlSL=tz;const nz=(t,e,n)=>e<>>64-n;ut.rotlBH=nz;const rz=(t,e,n)=>t<>>64-n;ut.rotlBL=rz;function az(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:a|0}}ut.add=az;const iz=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);ut.add3L=iz;const sz=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;ut.add3H=sz;const oz=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);ut.add4L=oz;const cz=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0;ut.add4H=cz;const lz=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0);ut.add5L=lz;const uz=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0;ut.add5H=uz;const jde={fromBig:zC,split:GH,toBig:VH,shrSH:qH,shrSL:WH,rotrSH:KH,rotrSL:ZH,rotrBH:QH,rotrBL:XH,rotr32H:JH,rotr32L:YH,rotlSH:ez,rotlSL:tz,rotlBH:nz,rotlBL:rz,add:az,add3L:iz,add3H:sz,add4L:oz,add4H:cz,add5H:uz,add5L:lz};ut.default=jde;var fz={},Dx={};Object.defineProperty(Dx,"__esModule",{value:!0});Dx.crypto=void 0;Dx.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(t){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const e=Dx,n=L=>new Uint8Array(L.buffer,L.byteOffset,L.byteLength);t.u8=n;const r=L=>new Uint32Array(L.buffer,L.byteOffset,Math.floor(L.byteLength/4));t.u32=r;function a(L){return L instanceof Uint8Array||L!=null&&typeof L=="object"&&L.constructor.name==="Uint8Array"}const i=L=>new DataView(L.buffer,L.byteOffset,L.byteLength);t.createView=i;const s=(L,X)=>L<<32-X|L>>>X;if(t.rotr=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!t.isLE)throw new Error("Non little-endian hardware is not supported");const o=Array.from({length:256},(L,X)=>X.toString(16).padStart(2,"0"));function c(L){if(!a(L))throw new Error("Uint8Array expected");let X="";for(let B=0;B=h._0&&L<=h._9)return L-h._0;if(L>=h._A&&L<=h._F)return L-(h._A-10);if(L>=h._a&&L<=h._f)return L-(h._a-10)}function v(L){if(typeof L!="string")throw new Error("hex string expected, got "+typeof L);const X=L.length,B=X/2;if(X%2)throw new Error("padded hex string expected, got unpadded hex of length "+X);const u=new Uint8Array(B);for(let d=0,p=0;d{};t.nextTick=E;async function C(L,X,B){let u=Date.now();for(let d=0;d=0&&pL().update(T(u)).digest(),B=L();return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=()=>L(),X}t.wrapConstructor=k;function U(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapConstructorWithOpts=U;function V(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapXOFConstructorWithOpts=V;function Y(L=32){if(e.crypto&&typeof e.crypto.getRandomValues=="function")return e.crypto.getRandomValues(new Uint8Array(L));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=Y})(fz);Object.defineProperty(on,"__esModule",{value:!0});on.shake256=on.shake128=on.keccak_512=on.keccak_384=on.keccak_256=on.keccak_224=on.sha3_512=on.sha3_384=on.sha3_256=on.sha3_224=on.Keccak=on.keccakP=void 0;const n0=ya,jm=ut,tm=fz,[dz,hz,pz]=[[],[],[]],Hde=BigInt(0),z1=BigInt(1),zde=BigInt(2),Gde=BigInt(7),Vde=BigInt(256),qde=BigInt(113);for(let t=0,e=z1,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],dz.push(2*(5*r+n)),hz.push((t+1)*(t+2)/2%64);let a=Hde;for(let i=0;i<7;i++)e=(e<>Gde)*qde)%Vde,e&zde&&(a^=z1<<(z1<n>32?(0,jm.rotlBH)(t,e,n):(0,jm.rotlSH)(t,e,n),rk=(t,e,n)=>n>32?(0,jm.rotlBL)(t,e,n):(0,jm.rotlSL)(t,e,n);function yz(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,h=n[c],b=n[c+1],v=nk(h,b,1)^n[o],E=rk(h,b,1)^n[o+1];for(let C=0;C<50;C+=10)t[s+C]^=v,t[s+C+1]^=E}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=hz[s],c=nk(a,i,o),h=rk(a,i,o),b=dz[s];a=t[b],i=t[b+1],t[b]=c,t[b+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)n[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=Wde[r],t[1]^=Kde[r]}n.fill(0)}on.keccakP=yz;let GC=class mz extends tm.Hash{constructor(e,n,r,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n0.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,tm.u32)(this.state)}keccak(){yz(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n0.exists)(this);const{blockLen:n,state:r}=this;e=(0,tm.toBytes)(e);const a=e.length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-a);e.set(n.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n0.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n0.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new mz(n,r,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}};on.Keccak=GC;const Su=(t,e,n)=>(0,tm.wrapConstructor)(()=>new GC(e,t,n));on.sha3_224=Su(6,144,224/8);on.sha3_256=Su(6,136,256/8);on.sha3_384=Su(6,104,384/8);on.sha3_512=Su(6,72,512/8);on.keccak_224=Su(1,144,224/8);on.keccak_256=Su(1,136,256/8);on.keccak_384=Su(1,104,384/8);on.keccak_512=Su(1,72,512/8);const bz=(t,e,n)=>(0,tm.wrapXOFConstructorWithOpts)((r={})=>new GC(e,t,r.dkLen===void 0?n:r.dkLen,!0));on.shake128=bz(31,168,128/8);on.shake256=bz(31,136,256/8);var na={};Object.defineProperty(na,"__esModule",{value:!0});na.safeDeploymentsL1ChainIds=na.safeDeploymentsVersions=na.SAFE_BASE_VERSION=na.DEFAULT_SAFE_VERSION=void 0;na.DEFAULT_SAFE_VERSION="1.3.0";na.SAFE_BASE_VERSION="1.0.0";na.safeDeploymentsVersions={"1.4.1":{safeSingletonVersion:"1.4.1",safeSingletonL2Version:"1.4.1",safeProxyFactoryVersion:"1.4.1",compatibilityFallbackHandler:"1.4.1",multiSendVersion:"1.4.1",multiSendCallOnlyVersion:"1.4.1",signMessageLibVersion:"1.4.1",createCallVersion:"1.4.1"},"1.3.0":{safeSingletonVersion:"1.3.0",safeSingletonL2Version:"1.3.0",safeProxyFactoryVersion:"1.3.0",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.3.0",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.2.0":{safeSingletonVersion:"1.2.0",safeSingletonL2Version:void 0,safeProxyFactoryVersion:"1.1.1",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.1.1":{safeSingletonVersion:"1.1.1",safeSingletonL2Version:void 0,safeProxyFactoryVersion:"1.1.1",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.0.0":{safeSingletonVersion:"1.0.0",safeSingletonL2Version:void 0,safeProxyFactoryVersion:"1.0.0",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"}};na.safeDeploymentsL1ChainIds=[1n];var ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.SENTINEL_ADDRESS=ra.EMPTY_DATA=ra.ZERO_ADDRESS=void 0;ra.ZERO_ADDRESS=`0x${"0".repeat(40)}`;ra.EMPTY_DATA="0x";ra.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001";var kx={};Object.defineProperty(kx,"__esModule",{value:!0});kx.createMemoizedFunction=void 0;function Zde(t,e={}){return(...n)=>{const r=JSON.stringify(n);return e[r]=e[r]||t(...n),e[r]}}kx.createMemoizedFunction=Zde;var VC={},qC={},Xc={},Ix={};Ix.byteLength=Jde;Ix.toByteArray=e0e;Ix.fromByteArray=r0e;var po=[],_i=[],Qde=typeof Uint8Array<"u"?Uint8Array:Array,Dv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var r0=0,Xde=Dv.length;r00)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Jde(t){var e=gz(t),n=e[0],r=e[1];return(n+r)*3/4-r}function Yde(t,e,n){return(e+n)*3/4-n}function e0e(t){var e,n=gz(t),r=n[0],a=n[1],i=new Qde(Yde(t,r,a)),s=0,o=a>0?r-4:r,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=_i[t.charCodeAt(c)]<<2|_i[t.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=_i[t.charCodeAt(c)]<<10|_i[t.charCodeAt(c+1)]<<4|_i[t.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function t0e(t){return po[t>>18&63]+po[t>>12&63]+po[t>>6&63]+po[t&63]}function n0e(t,e,n){for(var r,a=[],i=e;io?o:s+i));return r===1?(e=t[n-1],a.push(po[e>>2]+po[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],a.push(po[e>>10]+po[e>>4&63]+po[e<<2&63]+"=")),a.join("")}var WC={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */WC.read=function(t,e,n,r,a){var i,s,o=a*8-r-1,c=(1<>1,b=-7,v=n?a-1:0,E=n?-1:1,C=t[e+v];for(v+=E,i=C&(1<<-b)-1,C>>=-b,b+=o;b>0;i=i*256+t[e+v],v+=E,b-=8);for(s=i&(1<<-b)-1,i>>=-b,b+=r;b>0;s=s*256+t[e+v],v+=E,b-=8);if(i===0)i=1-h;else{if(i===c)return s?NaN:(C?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-h}return(C?-1:1)*s*Math.pow(2,i-r)};WC.write=function(t,e,n,r,a,i){var s,o,c,h=i*8-a-1,b=(1<>1,E=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=r?0:i-1,F=r?1:-1,T=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=b):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+v>=1?e+=E/c:e+=E*Math.pow(2,1-v),e*c>=2&&(s++,c/=2),s+v>=b?(o=0,s=b):s+v>=1?(o=(e*c-1)*Math.pow(2,a),s=s+v):(o=e*Math.pow(2,v-1)*Math.pow(2,a),s=0));a>=8;t[n+C]=o&255,C+=F,o/=256,a-=8);for(s=s<0;t[n+C]=s&255,C+=F,s/=256,h-=8);t[n+C-F]|=T*128};/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */(function(t){var e=Ix,n=WC,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=M,t.INSPECT_MAX_BYTES=50;var a=2147483647;t.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=i(),!o.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 i(){try{var J=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(J,R),J.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(J){if(J>a)throw new RangeError('The value "'+J+'" is invalid for option "size"');var R=new Uint8Array(J);return Object.setPrototypeOf(R,o.prototype),R}function o(J,R,N){if(typeof J=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(J)}return c(J,R,N)}o.poolSize=8192;function c(J,R,N){if(typeof J=="string")return E(J,R);if(ArrayBuffer.isView(J))return F(J);if(J==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof J);if(j(J,ArrayBuffer)||J&&j(J.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(j(J,SharedArrayBuffer)||J&&j(J.buffer,SharedArrayBuffer)))return T(J,R,N);if(typeof J=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var Z=J.valueOf&&J.valueOf();if(Z!=null&&Z!==J)return o.from(Z,R,N);var ae=P(J);if(ae)return ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof J[Symbol.toPrimitive]=="function")return o.from(J[Symbol.toPrimitive]("string"),R,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof J)}o.from=function(J,R,N){return c(J,R,N)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function h(J){if(typeof J!="number")throw new TypeError('"size" argument must be of type number');if(J<0)throw new RangeError('The value "'+J+'" is invalid for option "size"')}function b(J,R,N){return h(J),J<=0?s(J):R!==void 0?typeof N=="string"?s(J).fill(R,N):s(J).fill(R):s(J)}o.alloc=function(J,R,N){return b(J,R,N)};function v(J){return h(J),s(J<0?0:D(J)|0)}o.allocUnsafe=function(J){return v(J)},o.allocUnsafeSlow=function(J){return v(J)};function E(J,R){if((typeof R!="string"||R==="")&&(R="utf8"),!o.isEncoding(R))throw new TypeError("Unknown encoding: "+R);var N=O(J,R)|0,Z=s(N),ae=Z.write(J,R);return ae!==N&&(Z=Z.slice(0,ae)),Z}function C(J){for(var R=J.length<0?0:D(J.length)|0,N=s(R),Z=0;Z=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return J|0}function M(J){return+J!=J&&(J=0),o.alloc(+J)}o.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==o.prototype},o.compare=function(R,N){if(j(R,Uint8Array)&&(R=o.from(R,R.offset,R.byteLength)),j(N,Uint8Array)&&(N=o.from(N,N.offset,N.byteLength)),!o.isBuffer(R)||!o.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===N)return 0;for(var Z=R.length,ae=N.length,pe=0,W=Math.min(Z,ae);peae.length?o.from(W).copy(ae,pe):Uint8Array.prototype.set.call(ae,W,pe);else if(o.isBuffer(W))W.copy(ae,pe);else throw new TypeError('"list" argument must be an Array of Buffers');pe+=W.length}return ae};function O(J,R){if(o.isBuffer(J))return J.length;if(ArrayBuffer.isView(J)||j(J,ArrayBuffer))return J.byteLength;if(typeof J!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof J);var N=J.length,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&N===0)return 0;for(var ae=!1;;)switch(R){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return z(J).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N*2;case"hex":return N>>>1;case"base64":return fe(J).length;default:if(ae)return Z?-1:z(J).length;R=(""+R).toLowerCase(),ae=!0}}o.byteLength=O;function k(J,R,N){var Z=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((N===void 0||N>this.length)&&(N=this.length),N<=0)||(N>>>=0,R>>>=0,N<=R))return"";for(J||(J="utf8");;)switch(J){case"hex":return f(this,R,N);case"utf8":case"utf-8":return l(this,R,N);case"ascii":return w(this,R,N);case"latin1":case"binary":return x(this,R,N);case"base64":return p(this,R,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,R,N);default:if(Z)throw new TypeError("Unknown encoding: "+J);J=(J+"").toLowerCase(),Z=!0}}o.prototype._isBuffer=!0;function U(J,R,N){var Z=J[R];J[R]=J[N],J[N]=Z}o.prototype.swap16=function(){var R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;NN&&(R+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(R,N,Z,ae,pe){if(j(R,Uint8Array)&&(R=o.from(R,R.offset,R.byteLength)),!o.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(N===void 0&&(N=0),Z===void 0&&(Z=R?R.length:0),ae===void 0&&(ae=0),pe===void 0&&(pe=this.length),N<0||Z>R.length||ae<0||pe>this.length)throw new RangeError("out of range index");if(ae>=pe&&N>=Z)return 0;if(ae>=pe)return-1;if(N>=Z)return 1;if(N>>>=0,Z>>>=0,ae>>>=0,pe>>>=0,this===R)return 0;for(var W=pe-ae,ee=Z-N,ie=Math.min(W,ee),me=this.slice(ae,pe),be=R.slice(N,Z),ye=0;ye2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),N=+N,ne(N)&&(N=ae?0:J.length-1),N<0&&(N=J.length+N),N>=J.length){if(ae)return-1;N=J.length-1}else if(N<0)if(ae)N=0;else return-1;if(typeof R=="string"&&(R=o.from(R,Z)),o.isBuffer(R))return R.length===0?-1:Y(J,R,N,Z,ae);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?ae?Uint8Array.prototype.indexOf.call(J,R,N):Uint8Array.prototype.lastIndexOf.call(J,R,N):Y(J,[R],N,Z,ae);throw new TypeError("val must be string, number or Buffer")}function Y(J,R,N,Z,ae){var pe=1,W=J.length,ee=R.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if(J.length<2||R.length<2)return-1;pe=2,W/=2,ee/=2,N/=2}function ie(Se,Ee){return pe===1?Se[Ee]:Se.readUInt16BE(Ee*pe)}var me;if(ae){var be=-1;for(me=N;meW&&(N=W-ee),me=N;me>=0;me--){for(var ye=!0,Fe=0;Feae&&(Z=ae)):Z=ae;var pe=R.length;Z>pe/2&&(Z=pe/2);for(var W=0;W>>0,isFinite(Z)?(Z=Z>>>0,ae===void 0&&(ae="utf8")):(ae=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var pe=this.length-N;if((Z===void 0||Z>pe)&&(Z=pe),R.length>0&&(Z<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var W=!1;;)switch(ae){case"hex":return L(this,R,N,Z);case"utf8":case"utf-8":return X(this,R,N,Z);case"ascii":case"latin1":case"binary":return B(this,R,N,Z);case"base64":return u(this,R,N,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,R,N,Z);default:if(W)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),W=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function p(J,R,N){return R===0&&N===J.length?e.fromByteArray(J):e.fromByteArray(J.slice(R,N))}function l(J,R,N){N=Math.min(J.length,N);for(var Z=[],ae=R;ae239?4:pe>223?3:pe>191?2:1;if(ae+ee<=N){var ie,me,be,ye;switch(ee){case 1:pe<128&&(W=pe);break;case 2:ie=J[ae+1],(ie&192)===128&&(ye=(pe&31)<<6|ie&63,ye>127&&(W=ye));break;case 3:ie=J[ae+1],me=J[ae+2],(ie&192)===128&&(me&192)===128&&(ye=(pe&15)<<12|(ie&63)<<6|me&63,ye>2047&&(ye<55296||ye>57343)&&(W=ye));break;case 4:ie=J[ae+1],me=J[ae+2],be=J[ae+3],(ie&192)===128&&(me&192)===128&&(be&192)===128&&(ye=(pe&15)<<18|(ie&63)<<12|(me&63)<<6|be&63,ye>65535&&ye<1114112&&(W=ye))}}W===null?(W=65533,ee=1):W>65535&&(W-=65536,Z.push(W>>>10&1023|55296),W=56320|W&1023),Z.push(W),ae+=ee}return g(Z)}var y=4096;function g(J){var R=J.length;if(R<=y)return String.fromCharCode.apply(String,J);for(var N="",Z=0;ZZ)&&(N=Z);for(var ae="",pe=R;peZ&&(R=Z),N<0?(N+=Z,N<0&&(N=0)):N>Z&&(N=Z),NN)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(R,N,Z){R=R>>>0,N=N>>>0,Z||_(R,N,this.length);for(var ae=this[R],pe=1,W=0;++W>>0,N=N>>>0,Z||_(R,N,this.length);for(var ae=this[R+--N],pe=1;N>0&&(pe*=256);)ae+=this[R+--N]*pe;return ae},o.prototype.readUint8=o.prototype.readUInt8=function(R,N){return R=R>>>0,N||_(R,1,this.length),this[R]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(R,N){return R=R>>>0,N||_(R,2,this.length),this[R]|this[R+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(R,N){return R=R>>>0,N||_(R,2,this.length),this[R]<<8|this[R+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(R,N){return R=R>>>0,N||_(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(R,N){return R=R>>>0,N||_(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},o.prototype.readIntLE=function(R,N,Z){R=R>>>0,N=N>>>0,Z||_(R,N,this.length);for(var ae=this[R],pe=1,W=0;++W=pe&&(ae-=Math.pow(2,8*N)),ae},o.prototype.readIntBE=function(R,N,Z){R=R>>>0,N=N>>>0,Z||_(R,N,this.length);for(var ae=N,pe=1,W=this[R+--ae];ae>0&&(pe*=256);)W+=this[R+--ae]*pe;return pe*=128,W>=pe&&(W-=Math.pow(2,8*N)),W},o.prototype.readInt8=function(R,N){return R=R>>>0,N||_(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},o.prototype.readInt16LE=function(R,N){R=R>>>0,N||_(R,2,this.length);var Z=this[R]|this[R+1]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt16BE=function(R,N){R=R>>>0,N||_(R,2,this.length);var Z=this[R+1]|this[R]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt32LE=function(R,N){return R=R>>>0,N||_(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},o.prototype.readInt32BE=function(R,N){return R=R>>>0,N||_(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},o.prototype.readFloatLE=function(R,N){return R=R>>>0,N||_(R,4,this.length),n.read(this,R,!0,23,4)},o.prototype.readFloatBE=function(R,N){return R=R>>>0,N||_(R,4,this.length),n.read(this,R,!1,23,4)},o.prototype.readDoubleLE=function(R,N){return R=R>>>0,N||_(R,8,this.length),n.read(this,R,!0,52,8)},o.prototype.readDoubleBE=function(R,N){return R=R>>>0,N||_(R,8,this.length),n.read(this,R,!1,52,8)};function A(J,R,N,Z,ae,pe){if(!o.isBuffer(J))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>ae||RJ.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(R,N,Z,ae){if(R=+R,N=N>>>0,Z=Z>>>0,!ae){var pe=Math.pow(2,8*Z)-1;A(this,R,N,Z,pe,0)}var W=1,ee=0;for(this[N]=R&255;++ee>>0,Z=Z>>>0,!ae){var pe=Math.pow(2,8*Z)-1;A(this,R,N,Z,pe,0)}var W=Z-1,ee=1;for(this[N+W]=R&255;--W>=0&&(ee*=256);)this[N+W]=R/ee&255;return N+Z},o.prototype.writeUint8=o.prototype.writeUInt8=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,1,255,0),this[N]=R&255,N+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,2,65535,0),this[N]=R&255,this[N+1]=R>>>8,N+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,2,65535,0),this[N]=R>>>8,this[N+1]=R&255,N+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,4,4294967295,0),this[N+3]=R>>>24,this[N+2]=R>>>16,this[N+1]=R>>>8,this[N]=R&255,N+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,4,4294967295,0),this[N]=R>>>24,this[N+1]=R>>>16,this[N+2]=R>>>8,this[N+3]=R&255,N+4},o.prototype.writeIntLE=function(R,N,Z,ae){if(R=+R,N=N>>>0,!ae){var pe=Math.pow(2,8*Z-1);A(this,R,N,Z,pe-1,-pe)}var W=0,ee=1,ie=0;for(this[N]=R&255;++W>0)-ie&255;return N+Z},o.prototype.writeIntBE=function(R,N,Z,ae){if(R=+R,N=N>>>0,!ae){var pe=Math.pow(2,8*Z-1);A(this,R,N,Z,pe-1,-pe)}var W=Z-1,ee=1,ie=0;for(this[N+W]=R&255;--W>=0&&(ee*=256);)R<0&&ie===0&&this[N+W+1]!==0&&(ie=1),this[N+W]=(R/ee>>0)-ie&255;return N+Z},o.prototype.writeInt8=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,1,127,-128),R<0&&(R=255+R+1),this[N]=R&255,N+1},o.prototype.writeInt16LE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,2,32767,-32768),this[N]=R&255,this[N+1]=R>>>8,N+2},o.prototype.writeInt16BE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,2,32767,-32768),this[N]=R>>>8,this[N+1]=R&255,N+2},o.prototype.writeInt32LE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,4,2147483647,-2147483648),this[N]=R&255,this[N+1]=R>>>8,this[N+2]=R>>>16,this[N+3]=R>>>24,N+4},o.prototype.writeInt32BE=function(R,N,Z){return R=+R,N=N>>>0,Z||A(this,R,N,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[N]=R>>>24,this[N+1]=R>>>16,this[N+2]=R>>>8,this[N+3]=R&255,N+4};function S(J,R,N,Z,ae,pe){if(N+Z>J.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function $(J,R,N,Z,ae){return R=+R,N=N>>>0,ae||S(J,R,N,4),n.write(J,R,N,Z,23,4),N+4}o.prototype.writeFloatLE=function(R,N,Z){return $(this,R,N,!0,Z)},o.prototype.writeFloatBE=function(R,N,Z){return $(this,R,N,!1,Z)};function q(J,R,N,Z,ae){return R=+R,N=N>>>0,ae||S(J,R,N,8),n.write(J,R,N,Z,52,8),N+8}o.prototype.writeDoubleLE=function(R,N,Z){return q(this,R,N,!0,Z)},o.prototype.writeDoubleBE=function(R,N,Z){return q(this,R,N,!1,Z)},o.prototype.copy=function(R,N,Z,ae){if(!o.isBuffer(R))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!ae&&ae!==0&&(ae=this.length),N>=R.length&&(N=R.length),N||(N=0),ae>0&&ae=this.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),R.length-N>>0,Z=Z===void 0?this.length:Z>>>0,R||(R=0);var W;if(typeof R=="number")for(W=N;W55295&&N<57344){if(!ae){if(N>56319){(R-=3)>-1&&pe.push(239,191,189);continue}else if(W+1===Z){(R-=3)>-1&&pe.push(239,191,189);continue}ae=N;continue}if(N<56320){(R-=3)>-1&&pe.push(239,191,189),ae=N;continue}N=(ae-55296<<10|N-56320)+65536}else ae&&(R-=3)>-1&&pe.push(239,191,189);if(ae=null,N<128){if((R-=1)<0)break;pe.push(N)}else if(N<2048){if((R-=2)<0)break;pe.push(N>>6|192,N&63|128)}else if(N<65536){if((R-=3)<0)break;pe.push(N>>12|224,N>>6&63|128,N&63|128)}else if(N<1114112){if((R-=4)<0)break;pe.push(N>>18|240,N>>12&63|128,N>>6&63|128,N&63|128)}else throw new Error("Invalid code point")}return pe}function Q(J){for(var R=[],N=0;N>8,ae=N%256,pe.push(ae),pe.push(Z);return pe}function fe(J){return e.toByteArray(K(J))}function G(J,R,N,Z){for(var ae=0;ae=R.length||ae>=J.length);++ae)R[ae+N]=J[ae];return ae}function j(J,R){return J instanceof R||J!=null&&J.constructor!=null&&J.constructor.name!=null&&J.constructor.name===R.name}function ne(J){return J!==J}var se=function(){for(var J="0123456789abcdef",R=new Array(256),N=0;N<16;++N)for(var Z=N*16,ae=0;ae<16;++ae)R[Z+ae]=J[N]+J[ae];return R}()})(Xc);var Na={},KC={exports:{}};const a0e={},i0e=Object.freeze(Object.defineProperty({__proto__:null,default:a0e},Symbol.toStringTag,{value:"Module"})),yo=lP(i0e);KC.exports;(function(t){(function(e,n){function r(p,l){if(!p)throw new Error(l||"Assertion failed")}function a(p,l){p.super_=l;var y=function(){};y.prototype=l.prototype,p.prototype=new y,p.prototype.constructor=p}function i(p,l,y){if(i.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,p!==null&&((l==="le"||l==="be")&&(y=l,l=10),this._init(p||0,l||10,y||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=yo.Buffer}catch{}i.isBN=function(l){return l instanceof i?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===i.wordSize&&Array.isArray(l.words)},i.max=function(l,y){return l.cmp(y)>0?l:y},i.min=function(l,y){return l.cmp(y)<0?l:y},i.prototype._init=function(l,y,g){if(typeof l=="number")return this._initNumber(l,y,g);if(typeof l=="object")return this._initArray(l,y,g);y==="hex"&&(y=16),r(y===(y|0)&&y>=2&&y<=36),l=l.toString().replace(/\s+/g,"");var w=0;l[0]==="-"&&(w++,this.negative=1),w=0;w-=3)f=l[w]|l[w-1]<<8|l[w-2]<<16,this.words[x]|=f<>>26-m&67108863,m+=24,m>=26&&(m-=26,x++);else if(g==="le")for(w=0,x=0;w>>26-m&67108863,m+=24,m>=26&&(m-=26,x++);return this._strip()};function o(p,l){var y=p.charCodeAt(l);if(y>=48&&y<=57)return y-48;if(y>=65&&y<=70)return y-55;if(y>=97&&y<=102)return y-87;r(!1,"Invalid character in "+p)}function c(p,l,y){var g=o(p,y);return y-1>=l&&(g|=o(p,y-1)<<4),g}i.prototype._parseHex=function(l,y,g){this.length=Math.ceil((l.length-y)/6),this.words=new Array(this.length);for(var w=0;w=y;w-=2)m=c(l,y,w)<=18?(x-=18,f+=1,this.words[f]|=m>>>26):x+=8;else{var _=l.length-y;for(w=_%2===0?y+1:y;w=18?(x-=18,f+=1,this.words[f]|=m>>>26):x+=8}this._strip()};function h(p,l,y,g){for(var w=0,x=0,f=Math.min(p.length,y),m=l;m=49?x=_-49+10:_>=17?x=_-17+10:x=_,r(_>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch{i.prototype.inspect=v}else i.prototype.inspect=v;function v(){return(this.red?""}var E=["","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"],C=[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],F=[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];i.prototype.toString=function(l,y){l=l||10,y=y|0||1;var g;if(l===16||l==="hex"){g="";for(var w=0,x=0,f=0;f>>24-w&16777215,w+=2,w>=26&&(w-=26,f--),x!==0||f!==this.length-1?g=E[6-_.length]+_+g:g=_+g}for(x!==0&&(g=x.toString(16)+g);g.length%y!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(l===(l|0)&&l>=2&&l<=36){var A=C[l],S=F[l];g="";var $=this.clone();for($.negative=0;!$.isZero();){var q=$.modrn(S).toString(l);$=$.idivn(S),$.isZero()?g=q+g:g=E[A-q.length]+q+g}for(this.isZero()&&(g="0"+g);g.length%y!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(l,y){return this.toArrayLike(s,l,y)}),i.prototype.toArray=function(l,y){return this.toArrayLike(Array,l,y)};var T=function(l,y){return l.allocUnsafe?l.allocUnsafe(y):new l(y)};i.prototype.toArrayLike=function(l,y,g){this._strip();var w=this.byteLength(),x=g||Math.max(1,w);r(w<=x,"byte array longer than desired length"),r(x>0,"Requested array length <= 0");var f=T(l,x),m=y==="le"?"LE":"BE";return this["_toArrayLike"+m](f,w),f},i.prototype._toArrayLikeLE=function(l,y){for(var g=0,w=0,x=0,f=0;x>8&255),g>16&255),f===6?(g>24&255),w=0,f=0):(w=m>>>24,f+=2)}if(g=0&&(l[g--]=m>>8&255),g>=0&&(l[g--]=m>>16&255),f===6?(g>=0&&(l[g--]=m>>24&255),w=0,f=0):(w=m>>>24,f+=2)}if(g>=0)for(l[g--]=w;g>=0;)l[g--]=0},Math.clz32?i.prototype._countBits=function(l){return 32-Math.clz32(l)}:i.prototype._countBits=function(l){var y=l,g=0;return y>=4096&&(g+=13,y>>>=13),y>=64&&(g+=7,y>>>=7),y>=8&&(g+=4,y>>>=4),y>=2&&(g+=2,y>>>=2),g+y},i.prototype._zeroBits=function(l){if(l===0)return 26;var y=l,g=0;return y&8191||(g+=13,y>>>=13),y&127||(g+=7,y>>>=7),y&15||(g+=4,y>>>=4),y&3||(g+=2,y>>>=2),y&1||g++,g},i.prototype.bitLength=function(){var l=this.words[this.length-1],y=this._countBits(l);return(this.length-1)*26+y};function P(p){for(var l=new Array(p.bitLength()),y=0;y>>w&1}return l}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,y=0;yl.length?this.clone().ior(l):l.clone().ior(this)},i.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},i.prototype.iuand=function(l){var y;this.length>l.length?y=l:y=this;for(var g=0;gl.length?this.clone().iand(l):l.clone().iand(this)},i.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},i.prototype.iuxor=function(l){var y,g;this.length>l.length?(y=this,g=l):(y=l,g=this);for(var w=0;wl.length?this.clone().ixor(l):l.clone().ixor(this)},i.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},i.prototype.inotn=function(l){r(typeof l=="number"&&l>=0);var y=Math.ceil(l/26)|0,g=l%26;this._expand(y),g>0&&y--;for(var w=0;w0&&(this.words[w]=~this.words[w]&67108863>>26-g),this._strip()},i.prototype.notn=function(l){return this.clone().inotn(l)},i.prototype.setn=function(l,y){r(typeof l=="number"&&l>=0);var g=l/26|0,w=l%26;return this._expand(g+1),y?this.words[g]=this.words[g]|1<l.length?(g=this,w=l):(g=l,w=this);for(var x=0,f=0;f>>26;for(;x!==0&&f>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;fl.length?this.clone().iadd(l):l.clone().iadd(this)},i.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var y=this.iadd(l);return l.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var g=this.cmp(l);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,x;g>0?(w=this,x=l):(w=l,x=this);for(var f=0,m=0;m>26,this.words[m]=y&67108863;for(;f!==0&&m>26,this.words[m]=y&67108863;if(f===0&&m>>26,$=_&67108863,q=Math.min(A,l.length-1),I=Math.max(0,A-p.length+1);I<=q;I++){var K=A-I|0;w=p.words[K]|0,x=l.words[I]|0,f=w*x+$,S+=f/67108864|0,$=f&67108863}y.words[A]=$|0,_=S|0}return _!==0?y.words[A]=_|0:y.length--,y._strip()}var M=function(l,y,g){var w=l.words,x=y.words,f=g.words,m=0,_,A,S,$=w[0]|0,q=$&8191,I=$>>>13,K=w[1]|0,z=K&8191,Q=K>>>13,ue=w[2]|0,fe=ue&8191,G=ue>>>13,j=w[3]|0,ne=j&8191,se=j>>>13,J=w[4]|0,R=J&8191,N=J>>>13,Z=w[5]|0,ae=Z&8191,pe=Z>>>13,W=w[6]|0,ee=W&8191,ie=W>>>13,me=w[7]|0,be=me&8191,ye=me>>>13,Fe=w[8]|0,Se=Fe&8191,Ee=Fe>>>13,Qe=w[9]|0,$e=Qe&8191,Oe=Qe>>>13,at=x[0]|0,qe=at&8191,Le=at>>>13,xt=x[1]|0,Je=xt&8191,He=xt>>>13,At=x[2]|0,ce=At&8191,de=At>>>13,Ce=x[3]|0,_e=Ce&8191,Ae=Ce>>>13,Xe=x[4]|0,Me=Xe&8191,Be=Xe>>>13,ze=x[5]|0,Pe=ze&8191,Ie=ze>>>13,Ye=x[6]|0,Ue=Ye&8191,De=Ye>>>13,ot=x[7]|0,We=ot&8191,je=ot>>>13,vt=x[8]|0,Ke=vt&8191,Ne=vt>>>13,ht=x[9]|0,pt=ht&8191,yt=ht>>>13;g.negative=l.negative^y.negative,g.length=19,_=Math.imul(q,qe),A=Math.imul(q,Le),A=A+Math.imul(I,qe)|0,S=Math.imul(I,Le);var Qt=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,_=Math.imul(z,qe),A=Math.imul(z,Le),A=A+Math.imul(Q,qe)|0,S=Math.imul(Q,Le),_=_+Math.imul(q,Je)|0,A=A+Math.imul(q,He)|0,A=A+Math.imul(I,Je)|0,S=S+Math.imul(I,He)|0;var Gt=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,_=Math.imul(fe,qe),A=Math.imul(fe,Le),A=A+Math.imul(G,qe)|0,S=Math.imul(G,Le),_=_+Math.imul(z,Je)|0,A=A+Math.imul(z,He)|0,A=A+Math.imul(Q,Je)|0,S=S+Math.imul(Q,He)|0,_=_+Math.imul(q,ce)|0,A=A+Math.imul(q,de)|0,A=A+Math.imul(I,ce)|0,S=S+Math.imul(I,de)|0;var ct=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(ct>>>26)|0,ct&=67108863,_=Math.imul(ne,qe),A=Math.imul(ne,Le),A=A+Math.imul(se,qe)|0,S=Math.imul(se,Le),_=_+Math.imul(fe,Je)|0,A=A+Math.imul(fe,He)|0,A=A+Math.imul(G,Je)|0,S=S+Math.imul(G,He)|0,_=_+Math.imul(z,ce)|0,A=A+Math.imul(z,de)|0,A=A+Math.imul(Q,ce)|0,S=S+Math.imul(Q,de)|0,_=_+Math.imul(q,_e)|0,A=A+Math.imul(q,Ae)|0,A=A+Math.imul(I,_e)|0,S=S+Math.imul(I,Ae)|0;var Tt=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,_=Math.imul(R,qe),A=Math.imul(R,Le),A=A+Math.imul(N,qe)|0,S=Math.imul(N,Le),_=_+Math.imul(ne,Je)|0,A=A+Math.imul(ne,He)|0,A=A+Math.imul(se,Je)|0,S=S+Math.imul(se,He)|0,_=_+Math.imul(fe,ce)|0,A=A+Math.imul(fe,de)|0,A=A+Math.imul(G,ce)|0,S=S+Math.imul(G,de)|0,_=_+Math.imul(z,_e)|0,A=A+Math.imul(z,Ae)|0,A=A+Math.imul(Q,_e)|0,S=S+Math.imul(Q,Ae)|0,_=_+Math.imul(q,Me)|0,A=A+Math.imul(q,Be)|0,A=A+Math.imul(I,Me)|0,S=S+Math.imul(I,Be)|0;var mt=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(mt>>>26)|0,mt&=67108863,_=Math.imul(ae,qe),A=Math.imul(ae,Le),A=A+Math.imul(pe,qe)|0,S=Math.imul(pe,Le),_=_+Math.imul(R,Je)|0,A=A+Math.imul(R,He)|0,A=A+Math.imul(N,Je)|0,S=S+Math.imul(N,He)|0,_=_+Math.imul(ne,ce)|0,A=A+Math.imul(ne,de)|0,A=A+Math.imul(se,ce)|0,S=S+Math.imul(se,de)|0,_=_+Math.imul(fe,_e)|0,A=A+Math.imul(fe,Ae)|0,A=A+Math.imul(G,_e)|0,S=S+Math.imul(G,Ae)|0,_=_+Math.imul(z,Me)|0,A=A+Math.imul(z,Be)|0,A=A+Math.imul(Q,Me)|0,S=S+Math.imul(Q,Be)|0,_=_+Math.imul(q,Pe)|0,A=A+Math.imul(q,Ie)|0,A=A+Math.imul(I,Pe)|0,S=S+Math.imul(I,Ie)|0;var Nt=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,_=Math.imul(ee,qe),A=Math.imul(ee,Le),A=A+Math.imul(ie,qe)|0,S=Math.imul(ie,Le),_=_+Math.imul(ae,Je)|0,A=A+Math.imul(ae,He)|0,A=A+Math.imul(pe,Je)|0,S=S+Math.imul(pe,He)|0,_=_+Math.imul(R,ce)|0,A=A+Math.imul(R,de)|0,A=A+Math.imul(N,ce)|0,S=S+Math.imul(N,de)|0,_=_+Math.imul(ne,_e)|0,A=A+Math.imul(ne,Ae)|0,A=A+Math.imul(se,_e)|0,S=S+Math.imul(se,Ae)|0,_=_+Math.imul(fe,Me)|0,A=A+Math.imul(fe,Be)|0,A=A+Math.imul(G,Me)|0,S=S+Math.imul(G,Be)|0,_=_+Math.imul(z,Pe)|0,A=A+Math.imul(z,Ie)|0,A=A+Math.imul(Q,Pe)|0,S=S+Math.imul(Q,Ie)|0,_=_+Math.imul(q,Ue)|0,A=A+Math.imul(q,De)|0,A=A+Math.imul(I,Ue)|0,S=S+Math.imul(I,De)|0;var Cn=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,_=Math.imul(be,qe),A=Math.imul(be,Le),A=A+Math.imul(ye,qe)|0,S=Math.imul(ye,Le),_=_+Math.imul(ee,Je)|0,A=A+Math.imul(ee,He)|0,A=A+Math.imul(ie,Je)|0,S=S+Math.imul(ie,He)|0,_=_+Math.imul(ae,ce)|0,A=A+Math.imul(ae,de)|0,A=A+Math.imul(pe,ce)|0,S=S+Math.imul(pe,de)|0,_=_+Math.imul(R,_e)|0,A=A+Math.imul(R,Ae)|0,A=A+Math.imul(N,_e)|0,S=S+Math.imul(N,Ae)|0,_=_+Math.imul(ne,Me)|0,A=A+Math.imul(ne,Be)|0,A=A+Math.imul(se,Me)|0,S=S+Math.imul(se,Be)|0,_=_+Math.imul(fe,Pe)|0,A=A+Math.imul(fe,Ie)|0,A=A+Math.imul(G,Pe)|0,S=S+Math.imul(G,Ie)|0,_=_+Math.imul(z,Ue)|0,A=A+Math.imul(z,De)|0,A=A+Math.imul(Q,Ue)|0,S=S+Math.imul(Q,De)|0,_=_+Math.imul(q,We)|0,A=A+Math.imul(q,je)|0,A=A+Math.imul(I,We)|0,S=S+Math.imul(I,je)|0;var Pn=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,_=Math.imul(Se,qe),A=Math.imul(Se,Le),A=A+Math.imul(Ee,qe)|0,S=Math.imul(Ee,Le),_=_+Math.imul(be,Je)|0,A=A+Math.imul(be,He)|0,A=A+Math.imul(ye,Je)|0,S=S+Math.imul(ye,He)|0,_=_+Math.imul(ee,ce)|0,A=A+Math.imul(ee,de)|0,A=A+Math.imul(ie,ce)|0,S=S+Math.imul(ie,de)|0,_=_+Math.imul(ae,_e)|0,A=A+Math.imul(ae,Ae)|0,A=A+Math.imul(pe,_e)|0,S=S+Math.imul(pe,Ae)|0,_=_+Math.imul(R,Me)|0,A=A+Math.imul(R,Be)|0,A=A+Math.imul(N,Me)|0,S=S+Math.imul(N,Be)|0,_=_+Math.imul(ne,Pe)|0,A=A+Math.imul(ne,Ie)|0,A=A+Math.imul(se,Pe)|0,S=S+Math.imul(se,Ie)|0,_=_+Math.imul(fe,Ue)|0,A=A+Math.imul(fe,De)|0,A=A+Math.imul(G,Ue)|0,S=S+Math.imul(G,De)|0,_=_+Math.imul(z,We)|0,A=A+Math.imul(z,je)|0,A=A+Math.imul(Q,We)|0,S=S+Math.imul(Q,je)|0,_=_+Math.imul(q,Ke)|0,A=A+Math.imul(q,Ne)|0,A=A+Math.imul(I,Ke)|0,S=S+Math.imul(I,Ne)|0;var Qn=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,_=Math.imul($e,qe),A=Math.imul($e,Le),A=A+Math.imul(Oe,qe)|0,S=Math.imul(Oe,Le),_=_+Math.imul(Se,Je)|0,A=A+Math.imul(Se,He)|0,A=A+Math.imul(Ee,Je)|0,S=S+Math.imul(Ee,He)|0,_=_+Math.imul(be,ce)|0,A=A+Math.imul(be,de)|0,A=A+Math.imul(ye,ce)|0,S=S+Math.imul(ye,de)|0,_=_+Math.imul(ee,_e)|0,A=A+Math.imul(ee,Ae)|0,A=A+Math.imul(ie,_e)|0,S=S+Math.imul(ie,Ae)|0,_=_+Math.imul(ae,Me)|0,A=A+Math.imul(ae,Be)|0,A=A+Math.imul(pe,Me)|0,S=S+Math.imul(pe,Be)|0,_=_+Math.imul(R,Pe)|0,A=A+Math.imul(R,Ie)|0,A=A+Math.imul(N,Pe)|0,S=S+Math.imul(N,Ie)|0,_=_+Math.imul(ne,Ue)|0,A=A+Math.imul(ne,De)|0,A=A+Math.imul(se,Ue)|0,S=S+Math.imul(se,De)|0,_=_+Math.imul(fe,We)|0,A=A+Math.imul(fe,je)|0,A=A+Math.imul(G,We)|0,S=S+Math.imul(G,je)|0,_=_+Math.imul(z,Ke)|0,A=A+Math.imul(z,Ne)|0,A=A+Math.imul(Q,Ke)|0,S=S+Math.imul(Q,Ne)|0,_=_+Math.imul(q,pt)|0,A=A+Math.imul(q,yt)|0,A=A+Math.imul(I,pt)|0,S=S+Math.imul(I,yt)|0;var Xn=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,_=Math.imul($e,Je),A=Math.imul($e,He),A=A+Math.imul(Oe,Je)|0,S=Math.imul(Oe,He),_=_+Math.imul(Se,ce)|0,A=A+Math.imul(Se,de)|0,A=A+Math.imul(Ee,ce)|0,S=S+Math.imul(Ee,de)|0,_=_+Math.imul(be,_e)|0,A=A+Math.imul(be,Ae)|0,A=A+Math.imul(ye,_e)|0,S=S+Math.imul(ye,Ae)|0,_=_+Math.imul(ee,Me)|0,A=A+Math.imul(ee,Be)|0,A=A+Math.imul(ie,Me)|0,S=S+Math.imul(ie,Be)|0,_=_+Math.imul(ae,Pe)|0,A=A+Math.imul(ae,Ie)|0,A=A+Math.imul(pe,Pe)|0,S=S+Math.imul(pe,Ie)|0,_=_+Math.imul(R,Ue)|0,A=A+Math.imul(R,De)|0,A=A+Math.imul(N,Ue)|0,S=S+Math.imul(N,De)|0,_=_+Math.imul(ne,We)|0,A=A+Math.imul(ne,je)|0,A=A+Math.imul(se,We)|0,S=S+Math.imul(se,je)|0,_=_+Math.imul(fe,Ke)|0,A=A+Math.imul(fe,Ne)|0,A=A+Math.imul(G,Ke)|0,S=S+Math.imul(G,Ne)|0,_=_+Math.imul(z,pt)|0,A=A+Math.imul(z,yt)|0,A=A+Math.imul(Q,pt)|0,S=S+Math.imul(Q,yt)|0;var Jn=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,_=Math.imul($e,ce),A=Math.imul($e,de),A=A+Math.imul(Oe,ce)|0,S=Math.imul(Oe,de),_=_+Math.imul(Se,_e)|0,A=A+Math.imul(Se,Ae)|0,A=A+Math.imul(Ee,_e)|0,S=S+Math.imul(Ee,Ae)|0,_=_+Math.imul(be,Me)|0,A=A+Math.imul(be,Be)|0,A=A+Math.imul(ye,Me)|0,S=S+Math.imul(ye,Be)|0,_=_+Math.imul(ee,Pe)|0,A=A+Math.imul(ee,Ie)|0,A=A+Math.imul(ie,Pe)|0,S=S+Math.imul(ie,Ie)|0,_=_+Math.imul(ae,Ue)|0,A=A+Math.imul(ae,De)|0,A=A+Math.imul(pe,Ue)|0,S=S+Math.imul(pe,De)|0,_=_+Math.imul(R,We)|0,A=A+Math.imul(R,je)|0,A=A+Math.imul(N,We)|0,S=S+Math.imul(N,je)|0,_=_+Math.imul(ne,Ke)|0,A=A+Math.imul(ne,Ne)|0,A=A+Math.imul(se,Ke)|0,S=S+Math.imul(se,Ne)|0,_=_+Math.imul(fe,pt)|0,A=A+Math.imul(fe,yt)|0,A=A+Math.imul(G,pt)|0,S=S+Math.imul(G,yt)|0;var Yn=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,_=Math.imul($e,_e),A=Math.imul($e,Ae),A=A+Math.imul(Oe,_e)|0,S=Math.imul(Oe,Ae),_=_+Math.imul(Se,Me)|0,A=A+Math.imul(Se,Be)|0,A=A+Math.imul(Ee,Me)|0,S=S+Math.imul(Ee,Be)|0,_=_+Math.imul(be,Pe)|0,A=A+Math.imul(be,Ie)|0,A=A+Math.imul(ye,Pe)|0,S=S+Math.imul(ye,Ie)|0,_=_+Math.imul(ee,Ue)|0,A=A+Math.imul(ee,De)|0,A=A+Math.imul(ie,Ue)|0,S=S+Math.imul(ie,De)|0,_=_+Math.imul(ae,We)|0,A=A+Math.imul(ae,je)|0,A=A+Math.imul(pe,We)|0,S=S+Math.imul(pe,je)|0,_=_+Math.imul(R,Ke)|0,A=A+Math.imul(R,Ne)|0,A=A+Math.imul(N,Ke)|0,S=S+Math.imul(N,Ne)|0,_=_+Math.imul(ne,pt)|0,A=A+Math.imul(ne,yt)|0,A=A+Math.imul(se,pt)|0,S=S+Math.imul(se,yt)|0;var er=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(er>>>26)|0,er&=67108863,_=Math.imul($e,Me),A=Math.imul($e,Be),A=A+Math.imul(Oe,Me)|0,S=Math.imul(Oe,Be),_=_+Math.imul(Se,Pe)|0,A=A+Math.imul(Se,Ie)|0,A=A+Math.imul(Ee,Pe)|0,S=S+Math.imul(Ee,Ie)|0,_=_+Math.imul(be,Ue)|0,A=A+Math.imul(be,De)|0,A=A+Math.imul(ye,Ue)|0,S=S+Math.imul(ye,De)|0,_=_+Math.imul(ee,We)|0,A=A+Math.imul(ee,je)|0,A=A+Math.imul(ie,We)|0,S=S+Math.imul(ie,je)|0,_=_+Math.imul(ae,Ke)|0,A=A+Math.imul(ae,Ne)|0,A=A+Math.imul(pe,Ke)|0,S=S+Math.imul(pe,Ne)|0,_=_+Math.imul(R,pt)|0,A=A+Math.imul(R,yt)|0,A=A+Math.imul(N,pt)|0,S=S+Math.imul(N,yt)|0;var tr=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(tr>>>26)|0,tr&=67108863,_=Math.imul($e,Pe),A=Math.imul($e,Ie),A=A+Math.imul(Oe,Pe)|0,S=Math.imul(Oe,Ie),_=_+Math.imul(Se,Ue)|0,A=A+Math.imul(Se,De)|0,A=A+Math.imul(Ee,Ue)|0,S=S+Math.imul(Ee,De)|0,_=_+Math.imul(be,We)|0,A=A+Math.imul(be,je)|0,A=A+Math.imul(ye,We)|0,S=S+Math.imul(ye,je)|0,_=_+Math.imul(ee,Ke)|0,A=A+Math.imul(ee,Ne)|0,A=A+Math.imul(ie,Ke)|0,S=S+Math.imul(ie,Ne)|0,_=_+Math.imul(ae,pt)|0,A=A+Math.imul(ae,yt)|0,A=A+Math.imul(pe,pt)|0,S=S+Math.imul(pe,yt)|0;var sa=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(sa>>>26)|0,sa&=67108863,_=Math.imul($e,Ue),A=Math.imul($e,De),A=A+Math.imul(Oe,Ue)|0,S=Math.imul(Oe,De),_=_+Math.imul(Se,We)|0,A=A+Math.imul(Se,je)|0,A=A+Math.imul(Ee,We)|0,S=S+Math.imul(Ee,je)|0,_=_+Math.imul(be,Ke)|0,A=A+Math.imul(be,Ne)|0,A=A+Math.imul(ye,Ke)|0,S=S+Math.imul(ye,Ne)|0,_=_+Math.imul(ee,pt)|0,A=A+Math.imul(ee,yt)|0,A=A+Math.imul(ie,pt)|0,S=S+Math.imul(ie,yt)|0;var oa=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(oa>>>26)|0,oa&=67108863,_=Math.imul($e,We),A=Math.imul($e,je),A=A+Math.imul(Oe,We)|0,S=Math.imul(Oe,je),_=_+Math.imul(Se,Ke)|0,A=A+Math.imul(Se,Ne)|0,A=A+Math.imul(Ee,Ke)|0,S=S+Math.imul(Ee,Ne)|0,_=_+Math.imul(be,pt)|0,A=A+Math.imul(be,yt)|0,A=A+Math.imul(ye,pt)|0,S=S+Math.imul(ye,yt)|0;var Ru=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,_=Math.imul($e,Ke),A=Math.imul($e,Ne),A=A+Math.imul(Oe,Ke)|0,S=Math.imul(Oe,Ne),_=_+Math.imul(Se,pt)|0,A=A+Math.imul(Se,yt)|0,A=A+Math.imul(Ee,pt)|0,S=S+Math.imul(Ee,yt)|0;var m5=(m+_|0)+((A&8191)<<13)|0;m=(S+(A>>>13)|0)+(m5>>>26)|0,m5&=67108863,_=Math.imul($e,pt),A=Math.imul($e,yt),A=A+Math.imul(Oe,pt)|0,S=Math.imul(Oe,yt);var b5=(m+_|0)+((A&8191)<<13)|0;return m=(S+(A>>>13)|0)+(b5>>>26)|0,b5&=67108863,f[0]=Qt,f[1]=Gt,f[2]=ct,f[3]=Tt,f[4]=mt,f[5]=Nt,f[6]=Cn,f[7]=Pn,f[8]=Qn,f[9]=Xn,f[10]=Jn,f[11]=Yn,f[12]=er,f[13]=tr,f[14]=sa,f[15]=oa,f[16]=Ru,f[17]=m5,f[18]=b5,m!==0&&(f[19]=m,g.length++),g};Math.imul||(M=D);function O(p,l,y){y.negative=l.negative^p.negative,y.length=p.length+l.length;for(var g=0,w=0,x=0;x>>26)|0,w+=f>>>26,f&=67108863}y.words[x]=m,g=f,f=w}return g!==0?y.words[x]=g:y.length--,y._strip()}function k(p,l,y){return O(p,l,y)}i.prototype.mulTo=function(l,y){var g,w=this.length+l.length;return this.length===10&&l.length===10?g=M(this,l,y):w<63?g=D(this,l,y):w<1024?g=O(this,l,y):g=k(this,l,y),g},i.prototype.mul=function(l){var y=new i(null);return y.words=new Array(this.length+l.length),this.mulTo(l,y)},i.prototype.mulf=function(l){var y=new i(null);return y.words=new Array(this.length+l.length),k(this,l,y)},i.prototype.imul=function(l){return this.clone().mulTo(l,this)},i.prototype.imuln=function(l){var y=l<0;y&&(l=-l),r(typeof l=="number"),r(l<67108864);for(var g=0,w=0;w>=26,g+=x/67108864|0,g+=f>>>26,this.words[w]=f&67108863}return g!==0&&(this.words[w]=g,this.length++),y?this.ineg():this},i.prototype.muln=function(l){return this.clone().imuln(l)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(l){var y=P(l);if(y.length===0)return new i(1);for(var g=this,w=0;w=0);var y=l%26,g=(l-y)/26,w=67108863>>>26-y<<26-y,x;if(y!==0){var f=0;for(x=0;x>>26-y}f&&(this.words[x]=f,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x=0);var w;y?w=(y-y%26)/26:w=0;var x=l%26,f=Math.min((l-x)/26,this.length),m=67108863^67108863>>>x<f)for(this.length-=f,A=0;A=0&&(S!==0||A>=w);A--){var $=this.words[A]|0;this.words[A]=S<<26-x|$>>>x,S=$&m}return _&&S!==0&&(_.words[_.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(l,y,g){return r(this.negative===0),this.iushrn(l,y,g)},i.prototype.shln=function(l){return this.clone().ishln(l)},i.prototype.ushln=function(l){return this.clone().iushln(l)},i.prototype.shrn=function(l){return this.clone().ishrn(l)},i.prototype.ushrn=function(l){return this.clone().iushrn(l)},i.prototype.testn=function(l){r(typeof l=="number"&&l>=0);var y=l%26,g=(l-y)/26,w=1<=0);var y=l%26,g=(l-y)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(y!==0&&g++,this.length=Math.min(g,this.length),y!==0){var w=67108863^67108863>>>y<=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},i.prototype.isubn=function(l){if(r(typeof l=="number"),r(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y>26)-(_/67108864|0),this.words[x+g]=f&67108863}for(;x>26,this.words[x+g]=f&67108863;if(m===0)return this._strip();for(r(m===-1),m=0,x=0;x>26,this.words[x]=f&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(l,y){var g=this.length-l.length,w=this.clone(),x=l,f=x.words[x.length-1]|0,m=this._countBits(f);g=26-m,g!==0&&(x=x.ushln(g),w.iushln(g),f=x.words[x.length-1]|0);var _=w.length-x.length,A;if(y!=="mod"){A=new i(null),A.length=_+1,A.words=new Array(A.length);for(var S=0;S=0;q--){var I=(w.words[x.length+q]|0)*67108864+(w.words[x.length+q-1]|0);for(I=Math.min(I/f|0,67108863),w._ishlnsubmul(x,I,q);w.negative!==0;)I--,w.negative=0,w._ishlnsubmul(x,1,q),w.isZero()||(w.negative^=1);A&&(A.words[q]=I)}return A&&A._strip(),w._strip(),y!=="div"&&g!==0&&w.iushrn(g),{div:A||null,mod:w}},i.prototype.divmod=function(l,y,g){if(r(!l.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var w,x,f;return this.negative!==0&&l.negative===0?(f=this.neg().divmod(l,y),y!=="mod"&&(w=f.div.neg()),y!=="div"&&(x=f.mod.neg(),g&&x.negative!==0&&x.iadd(l)),{div:w,mod:x}):this.negative===0&&l.negative!==0?(f=this.divmod(l.neg(),y),y!=="mod"&&(w=f.div.neg()),{div:w,mod:f.mod}):this.negative&l.negative?(f=this.neg().divmod(l.neg(),y),y!=="div"&&(x=f.mod.neg(),g&&x.negative!==0&&x.isub(l)),{div:f.div,mod:x}):l.length>this.length||this.cmp(l)<0?{div:new i(0),mod:this}:l.length===1?y==="div"?{div:this.divn(l.words[0]),mod:null}:y==="mod"?{div:null,mod:new i(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new i(this.modrn(l.words[0]))}:this._wordDiv(l,y)},i.prototype.div=function(l){return this.divmod(l,"div",!1).div},i.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},i.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},i.prototype.divRound=function(l){var y=this.divmod(l);if(y.mod.isZero())return y.div;var g=y.div.negative!==0?y.mod.isub(l):y.mod,w=l.ushrn(1),x=l.andln(1),f=g.cmp(w);return f<0||x===1&&f===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},i.prototype.modrn=function(l){var y=l<0;y&&(l=-l),r(l<=67108863);for(var g=(1<<26)%l,w=0,x=this.length-1;x>=0;x--)w=(g*w+(this.words[x]|0))%l;return y?-w:w},i.prototype.modn=function(l){return this.modrn(l)},i.prototype.idivn=function(l){var y=l<0;y&&(l=-l),r(l<=67108863);for(var g=0,w=this.length-1;w>=0;w--){var x=(this.words[w]|0)+g*67108864;this.words[w]=x/l|0,g=x%l}return this._strip(),y?this.ineg():this},i.prototype.divn=function(l){return this.clone().idivn(l)},i.prototype.egcd=function(l){r(l.negative===0),r(!l.isZero());var y=this,g=l.clone();y.negative!==0?y=y.umod(l):y=y.clone();for(var w=new i(1),x=new i(0),f=new i(0),m=new i(1),_=0;y.isEven()&&g.isEven();)y.iushrn(1),g.iushrn(1),++_;for(var A=g.clone(),S=y.clone();!y.isZero();){for(var $=0,q=1;!(y.words[0]&q)&&$<26;++$,q<<=1);if($>0)for(y.iushrn($);$-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(A),x.isub(S)),w.iushrn(1),x.iushrn(1);for(var I=0,K=1;!(g.words[0]&K)&&I<26;++I,K<<=1);if(I>0)for(g.iushrn(I);I-- >0;)(f.isOdd()||m.isOdd())&&(f.iadd(A),m.isub(S)),f.iushrn(1),m.iushrn(1);y.cmp(g)>=0?(y.isub(g),w.isub(f),x.isub(m)):(g.isub(y),f.isub(w),m.isub(x))}return{a:f,b:m,gcd:g.iushln(_)}},i.prototype._invmp=function(l){r(l.negative===0),r(!l.isZero());var y=this,g=l.clone();y.negative!==0?y=y.umod(l):y=y.clone();for(var w=new i(1),x=new i(0),f=g.clone();y.cmpn(1)>0&&g.cmpn(1)>0;){for(var m=0,_=1;!(y.words[0]&_)&&m<26;++m,_<<=1);if(m>0)for(y.iushrn(m);m-- >0;)w.isOdd()&&w.iadd(f),w.iushrn(1);for(var A=0,S=1;!(g.words[0]&S)&&A<26;++A,S<<=1);if(A>0)for(g.iushrn(A);A-- >0;)x.isOdd()&&x.iadd(f),x.iushrn(1);y.cmp(g)>=0?(y.isub(g),w.isub(x)):(g.isub(y),x.isub(w))}var $;return y.cmpn(1)===0?$=w:$=x,$.cmpn(0)<0&&$.iadd(l),$},i.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var y=this.clone(),g=l.clone();y.negative=0,g.negative=0;for(var w=0;y.isEven()&&g.isEven();w++)y.iushrn(1),g.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=y.cmp(g);if(x<0){var f=y;y=g,g=f}else if(x===0||g.cmpn(1)===0)break;y.isub(g)}while(!0);return g.iushln(w)},i.prototype.invm=function(l){return this.egcd(l).a.umod(l)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(l){return this.words[0]&l},i.prototype.bincn=function(l){r(typeof l=="number");var y=l%26,g=(l-y)/26,w=1<>>26,m&=67108863,this.words[f]=m}return x!==0&&(this.words[f]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(l){var y=l<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this._strip();var g;if(this.length>1)g=1;else{y&&(l=-l),r(l<=67108863,"Number is too big");var w=this.words[0]|0;g=w===l?0:wl.length)return 1;if(this.length=0;g--){var w=this.words[g]|0,x=l.words[g]|0;if(w!==x){wx&&(y=1);break}}return y},i.prototype.gtn=function(l){return this.cmpn(l)===1},i.prototype.gt=function(l){return this.cmp(l)===1},i.prototype.gten=function(l){return this.cmpn(l)>=0},i.prototype.gte=function(l){return this.cmp(l)>=0},i.prototype.ltn=function(l){return this.cmpn(l)===-1},i.prototype.lt=function(l){return this.cmp(l)===-1},i.prototype.lten=function(l){return this.cmpn(l)<=0},i.prototype.lte=function(l){return this.cmp(l)<=0},i.prototype.eqn=function(l){return this.cmpn(l)===0},i.prototype.eq=function(l){return this.cmp(l)===0},i.red=function(l){return new u(l)},i.prototype.toRed=function(l){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(l){return this.red=l,this},i.prototype.forceRed=function(l){return r(!this.red,"Already a number in reduction context"),this._forceRed(l)},i.prototype.redAdd=function(l){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},i.prototype.redIAdd=function(l){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},i.prototype.redSub=function(l){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},i.prototype.redISub=function(l){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},i.prototype.redShl=function(l){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},i.prototype.redMul=function(l){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},i.prototype.redIMul=function(l){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(l){return r(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var U={k256:null,p224:null,p192:null,p25519:null};function V(p,l){this.name=p,this.p=new i(l,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}V.prototype._tmp=function(){var l=new i(null);return l.words=new Array(Math.ceil(this.n/13)),l},V.prototype.ireduce=function(l){var y=l,g;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),g=y.bitLength();while(g>this.n);var w=g0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},V.prototype.split=function(l,y){l.iushrn(this.n,0,y)},V.prototype.imulK=function(l){return l.imul(this.k)};function Y(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(Y,V),Y.prototype.split=function(l,y){for(var g=4194303,w=Math.min(l.length,9),x=0;x>>22,f=m}f>>>=22,l.words[x-10]=f,f===0&&l.length>10?l.length-=10:l.length-=9},Y.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var y=0,g=0;g>>=26,l.words[g]=x,y=w}return y!==0&&(l.words[l.length++]=y),l},i._prime=function(l){if(U[l])return U[l];var y;if(l==="k256")y=new Y;else if(l==="p224")y=new L;else if(l==="p192")y=new X;else if(l==="p25519")y=new B;else throw new Error("Unknown prime "+l);return U[l]=y,y};function u(p){if(typeof p=="string"){var l=i._prime(p);this.m=l.p,this.prime=l}else r(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}u.prototype._verify1=function(l){r(l.negative===0,"red works only with positives"),r(l.red,"red works only with red numbers")},u.prototype._verify2=function(l,y){r((l.negative|y.negative)===0,"red works only with positives"),r(l.red&&l.red===y.red,"red works only with red numbers")},u.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(b(l,l.umod(this.m)._forceRed(this)),l)},u.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},u.prototype.add=function(l,y){this._verify2(l,y);var g=l.add(y);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},u.prototype.iadd=function(l,y){this._verify2(l,y);var g=l.iadd(y);return g.cmp(this.m)>=0&&g.isub(this.m),g},u.prototype.sub=function(l,y){this._verify2(l,y);var g=l.sub(y);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},u.prototype.isub=function(l,y){this._verify2(l,y);var g=l.isub(y);return g.cmpn(0)<0&&g.iadd(this.m),g},u.prototype.shl=function(l,y){return this._verify1(l),this.imod(l.ushln(y))},u.prototype.imul=function(l,y){return this._verify2(l,y),this.imod(l.imul(y))},u.prototype.mul=function(l,y){return this._verify2(l,y),this.imod(l.mul(y))},u.prototype.isqr=function(l){return this.imul(l,l.clone())},u.prototype.sqr=function(l){return this.mul(l,l)},u.prototype.sqrt=function(l){if(l.isZero())return l.clone();var y=this.m.andln(3);if(r(y%2===1),y===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(l,g)}for(var w=this.m.subn(1),x=0;!w.isZero()&&w.andln(1)===0;)x++,w.iushrn(1);r(!w.isZero());var f=new i(1).toRed(this),m=f.redNeg(),_=this.m.subn(1).iushrn(1),A=this.m.bitLength();for(A=new i(2*A*A).toRed(this);this.pow(A,_).cmp(m)!==0;)A.redIAdd(m);for(var S=this.pow(A,w),$=this.pow(l,w.addn(1).iushrn(1)),q=this.pow(l,w),I=x;q.cmp(f)!==0;){for(var K=q,z=0;K.cmp(f)!==0;z++)K=K.redSqr();r(z=0;x--){for(var S=y.words[x],$=A-1;$>=0;$--){var q=S>>$&1;if(f!==w[0]&&(f=this.sqr(f)),q===0&&m===0){_=0;continue}m<<=1,m|=q,_++,!(_!==g&&(x!==0||$!==0))&&(f=this.mul(f,w[m]),_=0,m=0)}A=26}return f},u.prototype.convertTo=function(l){var y=l.umod(this.m);return y===l?y.clone():y},u.prototype.convertFrom=function(l){var y=l.clone();return y.red=null,y},i.mont=function(l){return new d(l)};function d(p){u.call(this,p),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(d,u),d.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},d.prototype.convertFrom=function(l){var y=this.imod(l.mul(this.rinv));return y.red=null,y},d.prototype.imul=function(l,y){if(l.isZero()||y.isZero())return l.words[0]=0,l.length=1,l;var g=l.imul(y),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(w).iushrn(this.shift),f=x;return x.cmp(this.m)>=0?f=x.isub(this.m):x.cmpn(0)<0&&(f=x.iadd(this.m)),f._forceRed(this)},d.prototype.mul=function(l,y){if(l.isZero()||y.isZero())return new i(0)._forceRed(this);var g=l.mul(y),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(w).iushrn(this.shift),f=x;return x.cmp(this.m)>=0?f=x.isub(this.m):x.cmpn(0)<0&&(f=x.iadd(this.m)),f._forceRed(this)},d.prototype.invm=function(l){var y=this.imod(l._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(t,he)})(KC);var r2=KC.exports,ou={},s0e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ou,"__esModule",{value:!0});ou.getLength=ou.decode=ou.encode=void 0;var o0e=s0e(r2);function xz(t){if(Array.isArray(t)){for(var e=[],n=0;nt.length)throw new Error("invalid rlp: total length is larger than the data");if(a=t.slice(n,c),a.length===0)throw new Error("invalid rlp, List has a invalid length");for(;a.length;)i=Jw(a),s.push(i.data),a=i.remainder;return{data:s,remainder:t.slice(c)}}}function vz(t){return t.slice(0,2)==="0x"}function u0e(t){return typeof t!="string"?t:vz(t)?t.slice(2):t}function Yw(t){if(t<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0"+e:e}function f0e(t){return t.length%2?"0"+t:t}function d0e(t){var e=Yw(t);return Buffer.from(e,"hex")}function ZC(t){if(!Buffer.isBuffer(t)){if(typeof t=="string")return vz(t)?Buffer.from(f0e(u0e(t)),"hex"):Buffer.from(t);if(typeof t=="number"||typeof t=="bigint")return t?d0e(t):Buffer.from([]);if(t==null)return Buffer.from([]);if(t instanceof Uint8Array)return Buffer.from(t);if(o0e.default.isBN(t))return Buffer.from(t.toArray());throw new Error("invalid type")}return t}var h0e=he&&he.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),p0e=he&&he.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),y0e=he&&he.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&h0e(e,t,n);return p0e(e,t),e},m0e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Na,"__esModule",{value:!0});Na.rlp=Na.BN=void 0;var b0e=m0e(r2);Na.BN=b0e.default;var g0e=y0e(ou);Na.rlp=g0e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var e=Xc,n=Na;t.MAX_UINT64=new n.BN("ffffffffffffffff",16),t.MAX_INTEGER=new n.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.Buffer.from(t.KECCAK256_RLP_S,"hex")})(qC);var QC={},kv={exports:{}},Iv={},ud={},wz={},Ez=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(n 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]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},x0e=Ez,Ox=function(){return x0e()&&!!Symbol.toStringTag},Ov,ik;function v0e(){if(ik)return Ov;ik=1;var t=typeof Symbol<"u"&&Symbol,e=Ez;return Ov=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Ov}var Pv,sk;function w0e(){if(sk)return Pv;sk=1;var t={foo:{}},e=Object;return Pv=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},Pv}var Rv,ok;function E0e(){if(ok)return Rv;ok=1;var t="Function.prototype.bind called on incompatible ",e=Array.prototype.slice,n=Object.prototype.toString,r="[object Function]";return Rv=function(i){var s=this;if(typeof s!="function"||n.call(s)!==r)throw new TypeError(t+s);for(var o=e.call(arguments,1),c,h=function(){if(this instanceof c){var F=s.apply(this,o.concat(e.call(arguments)));return Object(F)===F?F:this}else return s.apply(i,o.concat(e.call(arguments)))},b=Math.max(0,s.length-o.length),v=[],E=0;E"u"||!b?t:b(Uint8Array),C={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&b?b([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&b?b(b([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!b?t:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!b?t:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&b?b(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":o,"%TypedArray%":E,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(b)try{null.error}catch(d){var F=b(b(d));C["%Error.prototype%"]=F}var T=function d(p){var l;if(p==="%AsyncFunction%")l=a("async function () {}");else if(p==="%GeneratorFunction%")l=a("function* () {}");else if(p==="%AsyncGeneratorFunction%")l=a("async function* () {}");else if(p==="%AsyncGenerator%"){var y=d("%AsyncGeneratorFunction%");y&&(l=y.prototype)}else if(p==="%AsyncIteratorPrototype%"){var g=d("%AsyncGenerator%");g&&b&&(l=b(g.prototype))}return C[p]=l,l},P={"%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"]},D=XC(),M=A0e(),O=D.call(Function.call,Array.prototype.concat),k=D.call(Function.apply,Array.prototype.splice),U=D.call(Function.call,String.prototype.replace),V=D.call(Function.call,String.prototype.slice),Y=D.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,B=function(p){var l=V(p,0,1),y=V(p,-1);if(l==="%"&&y!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(y==="%"&&l!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var g=[];return U(p,L,function(w,x,f,m){g[g.length]=f?U(m,X,"$1"):x||w}),g},u=function(p,l){var y=p,g;if(M(P,y)&&(g=P[y],y="%"+g[0]+"%"),M(C,y)){var w=C[y];if(w===v&&(w=T(y)),typeof w>"u"&&!l)throw new r("intrinsic "+p+" exists, but is not available. Please file an issue!");return{alias:g,name:y,value:w}}throw new e("intrinsic "+p+" does not exist!")};return Lv=function(p,l){if(typeof p!="string"||p.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof l!="boolean")throw new r('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,p)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var y=B(p),g=y.length>0?y[0]:"",w=u("%"+g+"%",l),x=w.name,f=w.value,m=!1,_=w.alias;_&&(g=_[0],k(y,O([0,1],_)));for(var A=1,S=!0;A=y.length){var K=i(f,$);S=!!K,S&&"get"in K&&!("originalValue"in K.get)?f=K.get:f=f[$]}else S=M(f,$),f=f[$];S&&!m&&(C[x]=f)}}return f},Lv}var Uv={exports:{}},fk;function JC(){return fk||(fk=1,function(t){var e=XC(),n=Px(),r=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||e.call(a,r),s=n("%Object.getOwnPropertyDescriptor%",!0),o=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(o)try{o({},"a",{value:1})}catch{o=null}t.exports=function(v){var E=i(e,a,arguments);if(s&&o){var C=s(E,"length");C.configurable&&o(E,"length",{value:1+c(0,v.length-(arguments.length-1))})}return E};var h=function(){return i(e,r,arguments)};o?o(t.exports,"apply",{value:h}):t.exports.apply=h}(Uv)),Uv.exports}var Az=Px(),_z=JC(),_0e=_z(Az("String.prototype.indexOf")),YC=function(e,n){var r=Az(e,!!n);return typeof r=="function"&&_0e(e,".prototype.")>-1?_z(r):r},C0e=Ox(),B0e=YC,eE=B0e("Object.prototype.toString"),Rx=function(e){return C0e&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:eE(e)==="[object Arguments]"},Cz=function(e){return Rx(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&eE(e)!=="[object Array]"&&eE(e.callee)==="[object Function]"},S0e=function(){return Rx(arguments)}();Rx.isLegacyArguments=Cz;var T0e=S0e?Rx:Cz,F0e=Object.prototype.toString,M0e=Function.prototype.toString,D0e=/^\s*(?:function)?\*/,Bz=Ox(),jv=Object.getPrototypeOf,k0e=function(){if(!Bz)return!1;try{return Function("return function*() {}")()}catch{}},Hv,I0e=function(e){if(typeof e!="function")return!1;if(D0e.test(M0e.call(e)))return!0;if(!Bz){var n=F0e.call(e);return n==="[object GeneratorFunction]"}if(!jv)return!1;if(typeof Hv>"u"){var r=k0e();Hv=r?jv(r):!1}return jv(e)===Hv},Sz=Function.prototype.toString,H0=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,tE,v6;if(typeof H0=="function"&&typeof Object.defineProperty=="function")try{tE=Object.defineProperty({},"length",{get:function(){throw v6}}),v6={},H0(function(){throw 42},null,tE)}catch(t){t!==v6&&(H0=null)}else H0=null;var O0e=/^\s*class\b/,nE=function(e){try{var n=Sz.call(e);return O0e.test(n)}catch{return!1}},zv=function(e){try{return nE(e)?!1:(Sz.call(e),!0)}catch{return!1}},w6=Object.prototype.toString,P0e="[object Object]",R0e="[object Function]",N0e="[object GeneratorFunction]",$0e="[object HTMLAllCollection]",L0e="[object HTML document.all class]",U0e="[object HTMLCollection]",j0e=typeof Symbol=="function"&&!!Symbol.toStringTag,H0e=!(0 in[,]),rE=function(){return!1};if(typeof document=="object"){var z0e=document.all;w6.call(z0e)===w6.call(document.all)&&(rE=function(e){if((H0e||!e)&&(typeof e>"u"||typeof e=="object"))try{var n=w6.call(e);return(n===$0e||n===L0e||n===U0e||n===P0e)&&e("")==null}catch{}return!1})}var G0e=H0?function(e){if(rE(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{H0(e,null,tE)}catch(n){if(n!==v6)return!1}return!nE(e)&&zv(e)}:function(e){if(rE(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(j0e)return zv(e);if(nE(e))return!1;var n=w6.call(e);return n!==R0e&&n!==N0e&&!/^\[object HTML/.test(n)?!1:zv(e)},V0e=G0e,q0e=Object.prototype.toString,Tz=Object.prototype.hasOwnProperty,W0e=function(e,n,r){for(var a=0,i=e.length;a=3&&(a=r),q0e.call(e)==="[object Array]"?W0e(e,n,a):typeof e=="string"?K0e(e,n,a):Z0e(e,n,a)},Fz=Q0e,X0e={},Gv=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],J0e=typeof globalThis>"u"?X0e:globalThis,Mz=function(){for(var e=[],n=0;n"u"?ehe:globalThis,Oz=the(),ahe=eB("Array.prototype.indexOf",!0)||function(e,n){for(var r=0;r-1}return A6?she(e):!1},ohe={},Nz=Fz,che=Mz,$z=YC,qv=Dz,lhe=$z("Object.prototype.toString"),Lz=Ox(),dk=typeof globalThis>"u"?ohe:globalThis,uhe=che(),fhe=$z("String.prototype.slice"),Uz={},Wv=Object.getPrototypeOf;Lz&&qv&&Wv&&Nz(uhe,function(t){if(typeof dk[t]=="function"){var e=new dk[t];if(Symbol.toStringTag in e){var n=Wv(e),r=qv(n,Symbol.toStringTag);if(!r){var a=Wv(n);r=qv(a,Symbol.toStringTag)}Uz[t]=r.get}}});var dhe=function(e){var n=!1;return Nz(Uz,function(r,a){if(!n)try{var i=r.call(e);i===a&&(n=i)}catch{}}),n},hhe=Rz,phe=function(e){return hhe(e)?!Lz||!(Symbol.toStringTag in e)?fhe(lhe(e),8,-1):dhe(e):!1};(function(t){var e=T0e,n=I0e,r=phe,a=Rz;function i(Z){return Z.call.bind(Z)}var s=typeof BigInt<"u",o=typeof Symbol<"u",c=i(Object.prototype.toString),h=i(Number.prototype.valueOf),b=i(String.prototype.valueOf),v=i(Boolean.prototype.valueOf);if(s)var E=i(BigInt.prototype.valueOf);if(o)var C=i(Symbol.prototype.valueOf);function F(Z,ae){if(typeof Z!="object")return!1;try{return ae(Z),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=a;function T(Z){return typeof Promise<"u"&&Z instanceof Promise||Z!==null&&typeof Z=="object"&&typeof Z.then=="function"&&typeof Z.catch=="function"}t.isPromise=T;function P(Z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(Z):a(Z)||S(Z)}t.isArrayBufferView=P;function D(Z){return r(Z)==="Uint8Array"}t.isUint8Array=D;function M(Z){return r(Z)==="Uint8ClampedArray"}t.isUint8ClampedArray=M;function O(Z){return r(Z)==="Uint16Array"}t.isUint16Array=O;function k(Z){return r(Z)==="Uint32Array"}t.isUint32Array=k;function U(Z){return r(Z)==="Int8Array"}t.isInt8Array=U;function V(Z){return r(Z)==="Int16Array"}t.isInt16Array=V;function Y(Z){return r(Z)==="Int32Array"}t.isInt32Array=Y;function L(Z){return r(Z)==="Float32Array"}t.isFloat32Array=L;function X(Z){return r(Z)==="Float64Array"}t.isFloat64Array=X;function B(Z){return r(Z)==="BigInt64Array"}t.isBigInt64Array=B;function u(Z){return r(Z)==="BigUint64Array"}t.isBigUint64Array=u;function d(Z){return c(Z)==="[object Map]"}d.working=typeof Map<"u"&&d(new Map);function p(Z){return typeof Map>"u"?!1:d.working?d(Z):Z instanceof Map}t.isMap=p;function l(Z){return c(Z)==="[object Set]"}l.working=typeof Set<"u"&&l(new Set);function y(Z){return typeof Set>"u"?!1:l.working?l(Z):Z instanceof Set}t.isSet=y;function g(Z){return c(Z)==="[object WeakMap]"}g.working=typeof WeakMap<"u"&&g(new WeakMap);function w(Z){return typeof WeakMap>"u"?!1:g.working?g(Z):Z instanceof WeakMap}t.isWeakMap=w;function x(Z){return c(Z)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function f(Z){return x(Z)}t.isWeakSet=f;function m(Z){return c(Z)==="[object ArrayBuffer]"}m.working=typeof ArrayBuffer<"u"&&m(new ArrayBuffer);function _(Z){return typeof ArrayBuffer>"u"?!1:m.working?m(Z):Z instanceof ArrayBuffer}t.isArrayBuffer=_;function A(Z){return c(Z)==="[object DataView]"}A.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&A(new DataView(new ArrayBuffer(1),0,1));function S(Z){return typeof DataView>"u"?!1:A.working?A(Z):Z instanceof DataView}t.isDataView=S;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function q(Z){return c(Z)==="[object SharedArrayBuffer]"}function I(Z){return typeof $>"u"?!1:(typeof q.working>"u"&&(q.working=q(new $)),q.working?q(Z):Z instanceof $)}t.isSharedArrayBuffer=I;function K(Z){return c(Z)==="[object AsyncFunction]"}t.isAsyncFunction=K;function z(Z){return c(Z)==="[object Map Iterator]"}t.isMapIterator=z;function Q(Z){return c(Z)==="[object Set Iterator]"}t.isSetIterator=Q;function ue(Z){return c(Z)==="[object Generator]"}t.isGeneratorObject=ue;function fe(Z){return c(Z)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=fe;function G(Z){return F(Z,h)}t.isNumberObject=G;function j(Z){return F(Z,b)}t.isStringObject=j;function ne(Z){return F(Z,v)}t.isBooleanObject=ne;function se(Z){return s&&F(Z,E)}t.isBigIntObject=se;function J(Z){return o&&F(Z,C)}t.isSymbolObject=J;function R(Z){return G(Z)||j(Z)||ne(Z)||se(Z)||J(Z)}t.isBoxedPrimitive=R;function N(Z){return typeof Uint8Array<"u"&&(_(Z)||I(Z))}t.isAnyArrayBuffer=N,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(Z){Object.defineProperty(t,Z,{enumerable:!1,value:function(){throw new Error(Z+" is not supported in userland")}})})})(wz);var yhe=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},aE={exports:{}};typeof Object.create=="function"?aE.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:aE.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var Gn=aE.exports;(function(t){var e={},n=Object.getOwnPropertyDescriptors||function($){for(var q=Object.keys($),I={},K=0;K=K)return ue;switch(ue){case"%s":return String(I[q++]);case"%d":return Number(I[q++]);case"%j":try{return JSON.stringify(I[q++])}catch{return"[Circular]"}default:return ue}}),Q=I[q];q"u")return function(){return t.deprecate(S,$).apply(this,arguments)};var q=!1;function I(){if(!q){if(process.throwDeprecation)throw new Error($);process.traceDeprecation?console.trace($):console.error($),q=!0}return S.apply(this,arguments)}return I};var a={},i=/^$/;if(e.NODE_DEBUG){var s=e.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}t.debuglog=function(S){if(S=S.toUpperCase(),!a[S])if(i.test(S)){var $=process.pid;a[S]=function(){var q=t.format.apply(t,arguments);console.error("%s %d: %s",S,$,q)}}else a[S]=function(){};return a[S]};function o(S,$){var q={seen:[],stylize:h};return arguments.length>=3&&(q.depth=arguments[2]),arguments.length>=4&&(q.colors=arguments[3]),M($)?q.showHidden=$:$&&t._extend(q,$),L(q.showHidden)&&(q.showHidden=!1),L(q.depth)&&(q.depth=2),L(q.colors)&&(q.colors=!1),L(q.customInspect)&&(q.customInspect=!0),q.colors&&(q.stylize=c),v(q,S,q.depth)}t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(S,$){var q=o.styles[$];return q?"\x1B["+o.colors[q][0]+"m"+S+"\x1B["+o.colors[q][1]+"m":S}function h(S,$){return S}function b(S){var $={};return S.forEach(function(q,I){$[q]=!0}),$}function v(S,$,q){if(S.customInspect&&$&&p($.inspect)&&$.inspect!==t.inspect&&!($.constructor&&$.constructor.prototype===$)){var I=$.inspect(q,S);return V(I)||(I=v(S,I,q)),I}var K=E(S,$);if(K)return K;var z=Object.keys($),Q=b(z);if(S.showHidden&&(z=Object.getOwnPropertyNames($)),d($)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return C($);if(z.length===0){if(p($)){var ue=$.name?": "+$.name:"";return S.stylize("[Function"+ue+"]","special")}if(X($))return S.stylize(RegExp.prototype.toString.call($),"regexp");if(u($))return S.stylize(Date.prototype.toString.call($),"date");if(d($))return C($)}var fe="",G=!1,j=["{","}"];if(D($)&&(G=!0,j=["[","]"]),p($)){var ne=$.name?": "+$.name:"";fe=" [Function"+ne+"]"}if(X($)&&(fe=" "+RegExp.prototype.toString.call($)),u($)&&(fe=" "+Date.prototype.toUTCString.call($)),d($)&&(fe=" "+C($)),z.length===0&&(!G||$.length==0))return j[0]+fe+j[1];if(q<0)return X($)?S.stylize(RegExp.prototype.toString.call($),"regexp"):S.stylize("[Object]","special");S.seen.push($);var se;return G?se=F(S,$,q,Q,z):se=z.map(function(J){return T(S,$,q,Q,J,G)}),S.seen.pop(),P(se,fe,j)}function E(S,$){if(L($))return S.stylize("undefined","undefined");if(V($)){var q="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return S.stylize(q,"string")}if(U($))return S.stylize(""+$,"number");if(M($))return S.stylize(""+$,"boolean");if(O($))return S.stylize("null","null")}function C(S){return"["+Error.prototype.toString.call(S)+"]"}function F(S,$,q,I,K){for(var z=[],Q=0,ue=$.length;Q-1&&(z?ue=ue.split(` +`).map(function(G){return" "+G}).join(` +`).slice(2):ue=` +`+ue.split(` +`).map(function(G){return" "+G}).join(` +`))):ue=S.stylize("[Circular]","special")),L(Q)){if(z&&K.match(/^\d+$/))return ue;Q=JSON.stringify(""+K),Q.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Q=Q.slice(1,-1),Q=S.stylize(Q,"name")):(Q=Q.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Q=S.stylize(Q,"string"))}return Q+": "+ue}function P(S,$,q){var I=S.reduce(function(K,z){return z.indexOf(` +`)>=0,K+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return I>60?q[0]+($===""?"":$+` + `)+" "+S.join(`, + `)+" "+q[1]:q[0]+$+" "+S.join(", ")+" "+q[1]}t.types=wz;function D(S){return Array.isArray(S)}t.isArray=D;function M(S){return typeof S=="boolean"}t.isBoolean=M;function O(S){return S===null}t.isNull=O;function k(S){return S==null}t.isNullOrUndefined=k;function U(S){return typeof S=="number"}t.isNumber=U;function V(S){return typeof S=="string"}t.isString=V;function Y(S){return typeof S=="symbol"}t.isSymbol=Y;function L(S){return S===void 0}t.isUndefined=L;function X(S){return B(S)&&y(S)==="[object RegExp]"}t.isRegExp=X,t.types.isRegExp=X;function B(S){return typeof S=="object"&&S!==null}t.isObject=B;function u(S){return B(S)&&y(S)==="[object Date]"}t.isDate=u,t.types.isDate=u;function d(S){return B(S)&&(y(S)==="[object Error]"||S instanceof Error)}t.isError=d,t.types.isNativeError=d;function p(S){return typeof S=="function"}t.isFunction=p;function l(S){return S===null||typeof S=="boolean"||typeof S=="number"||typeof S=="string"||typeof S=="symbol"||typeof S>"u"}t.isPrimitive=l,t.isBuffer=yhe;function y(S){return Object.prototype.toString.call(S)}function g(S){return S<10?"0"+S.toString(10):S.toString(10)}var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var S=new Date,$=[g(S.getHours()),g(S.getMinutes()),g(S.getSeconds())].join(":");return[S.getDate(),w[S.getMonth()],$].join(" ")}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=Gn,t._extend=function(S,$){if(!$||!B($))return S;for(var q=Object.keys($),I=q.length;I--;)S[q[I]]=$[q[I]];return S};function f(S,$){return Object.prototype.hasOwnProperty.call(S,$)}var m=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(m&&$[m]){var q=$[m];if(typeof q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(q,m,{value:q,enumerable:!1,writable:!1,configurable:!0}),q}function q(){for(var I,K,z=new Promise(function(fe,G){I=fe,K=G}),Q=[],ue=0;ue2?"one of ".concat(P," ").concat(T.slice(0,D-1).join(", "),", or ")+T[D-1]:D===2?"one of ".concat(P," ").concat(T[0]," or ").concat(T[1]):"of ".concat(P," ").concat(T[0])}else return"of ".concat(P," ").concat(String(T))}function E(T,P,D){return T.substr(!D||D<0?0:+D,P.length)===P}function C(T,P,D){return(D===void 0||D>T.length)&&(D=T.length),T.substring(D-P.length,D)===P}function F(T,P,D){return typeof D!="number"&&(D=0),D+P.length>T.length?!1:T.indexOf(P,D)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(T,P,D){c===void 0&&(c=Hm()),c(typeof T=="string","'name' must be a string");var M;typeof P=="string"&&E(P,"not ")?(M="must not be",P=P.replace(/^not /,"")):M="must be";var O;if(C(T," argument"))O="The ".concat(T," ").concat(M," ").concat(v(P,"type"));else{var k=F(T,".")?"property":"argument";O='The "'.concat(T,'" ').concat(k," ").concat(M," ").concat(v(P,"type"))}return O+=". Received type ".concat(t(D)),O},TypeError),b("ERR_INVALID_ARG_VALUE",function(T,P){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";h===void 0&&(h=ud);var M=h.inspect(P);return M.length>128&&(M="".concat(M.slice(0,128),"...")),"The argument '".concat(T,"' ").concat(D,". Received ").concat(M)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(T,P,D){var M;return D&&D.constructor&&D.constructor.name?M="instance of ".concat(D.constructor.name):M="type ".concat(t(D)),"Expected ".concat(T,' to be returned from the "').concat(P,'"')+" function but got ".concat(M,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var T=arguments.length,P=new Array(T),D=0;D0,"At least one arg needs to be specified");var M="The ",O=P.length;switch(P=P.map(function(k){return'"'.concat(k,'"')}),O){case 1:M+="".concat(P[0]," argument");break;case 2:M+="".concat(P[0]," and ").concat(P[1]," arguments");break;default:M+=P.slice(0,O-1).join(", "),M+=", and ".concat(P[O-1]," arguments");break}return"".concat(M," must be specified")},TypeError),Iv.codes=o,Iv}var Kv,pk;function mhe(){if(pk)return Kv;pk=1;function t(y){for(var g=1;g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function b(y,g,w){return h()?b=Reflect.construct:b=function(f,m,_){var A=[null];A.push.apply(A,m);var S=Function.bind.apply(f,A),$=new S;return _&&E($,_.prototype),$},b.apply(null,arguments)}function v(y){return Function.toString.call(y).indexOf("[native code]")!==-1}function E(y,g){return E=Object.setPrototypeOf||function(x,f){return x.__proto__=f,x},E(y,g)}function C(y){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},C(y)}function F(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?F=function(w){return typeof w}:F=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},F(y)}var T=ud,P=T.inspect,D=jz(),M=D.codes.ERR_INVALID_ARG_TYPE;function O(y,g,w){return(w===void 0||w>y.length)&&(w=y.length),y.substring(w-g.length,w)===g}function k(y,g){if(g=Math.floor(g),y.length==0||g==0)return"";var w=y.length*g;for(g=Math.floor(Math.log(g)/Math.log(2));g;)y+=y,g--;return y+=y.substring(0,w-y.length),y}var U="",V="",Y="",L="",X={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},B=10;function u(y){var g=Object.keys(y),w=Object.create(Object.getPrototypeOf(y));return g.forEach(function(x){w[x]=y[x]}),Object.defineProperty(w,"message",{value:y.message}),w}function d(y){return P(y,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function p(y,g,w){var x="",f="",m=0,_="",A=!1,S=d(y),$=S.split(` +`),q=d(g).split(` +`),I=0,K="";if(w==="strictEqual"&&F(y)==="object"&&F(g)==="object"&&y!==null&&g!==null&&(w="strictEqualObject"),$.length===1&&q.length===1&&$[0]!==q[0]){var z=$[0].length+q[0].length;if(z<=B){if((F(y)!=="object"||y===null)&&(F(g)!=="object"||g===null)&&(y!==0||g!==0))return"".concat(X[w],` + +`)+"".concat($[0]," !== ").concat(q[0],` +`)}else if(w!=="strictEqualObject"){var Q=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(z2&&(K=` + `.concat(k(" ",I),"^"),I=0)}}}for(var ue=$[$.length-1],fe=q[q.length-1];ue===fe&&(I++<2?_=` + `.concat(ue).concat(_):x=ue,$.pop(),q.pop(),!($.length===0||q.length===0));)ue=$[$.length-1],fe=q[q.length-1];var G=Math.max($.length,q.length);if(G===0){var j=S.split(` +`);if(j.length>30)for(j[26]="".concat(U,"...").concat(L);j.length>27;)j.pop();return"".concat(X.notIdentical,` + +`).concat(j.join(` +`),` +`)}I>3&&(_=` +`.concat(U,"...").concat(L).concat(_),A=!0),x!==""&&(_=` + `.concat(x).concat(_),x="");var ne=0,se=X[w]+` +`.concat(V,"+ actual").concat(L," ").concat(Y,"- expected").concat(L),J=" ".concat(U,"...").concat(L," Lines skipped");for(I=0;I1&&I>2&&(R>4?(f+=` +`.concat(U,"...").concat(L),A=!0):R>3&&(f+=` + `.concat(q[I-2]),ne++),f+=` + `.concat(q[I-1]),ne++),m=I,x+=` +`.concat(Y,"-").concat(L," ").concat(q[I]),ne++;else if(q.length1&&I>2&&(R>4?(f+=` +`.concat(U,"...").concat(L),A=!0):R>3&&(f+=` + `.concat($[I-2]),ne++),f+=` + `.concat($[I-1]),ne++),m=I,f+=` +`.concat(V,"+").concat(L," ").concat($[I]),ne++;else{var N=q[I],Z=$[I],ae=Z!==N&&(!O(Z,",")||Z.slice(0,-1)!==N);ae&&O(N,",")&&N.slice(0,-1)===Z&&(ae=!1,Z+=","),ae?(R>1&&I>2&&(R>4?(f+=` +`.concat(U,"...").concat(L),A=!0):R>3&&(f+=` + `.concat($[I-2]),ne++),f+=` + `.concat($[I-1]),ne++),m=I,f+=` +`.concat(V,"+").concat(L," ").concat(Z),x+=` +`.concat(Y,"-").concat(L," ").concat(N),ne+=2):(f+=x,x="",(R===1||I===0)&&(f+=` + `.concat(Z),ne++))}if(ne>20&&I30)for(I[26]="".concat(U,"...").concat(L);I.length>27;)I.pop();I.length===1?x=i(this,C(g).call(this,"".concat(q," ").concat(I[0]))):x=i(this,C(g).call(this,"".concat(q,` + +`).concat(I.join(` +`),` +`)))}else{var K=d(A),z="",Q=X[m];m==="notDeepEqual"||m==="notEqual"?(K="".concat(X[m],` + +`).concat(K),K.length>1024&&(K="".concat(K.slice(0,1021),"..."))):(z="".concat(d(S)),K.length>512&&(K="".concat(K.slice(0,509),"...")),z.length>512&&(z="".concat(z.slice(0,509),"...")),m==="deepEqual"||m==="equal"?K="".concat(Q,` + +`).concat(K,` + +should equal + +`):z=" ".concat(m," ").concat(z)),x=i(this,C(g).call(this,"".concat(K).concat(z)))}return Error.stackTraceLimit=$,x.generatedMessage=!f,Object.defineProperty(s(x),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),x.code="ERR_ASSERTION",x.actual=A,x.expected=S,x.operator=m,Error.captureStackTrace&&Error.captureStackTrace(s(x),_),x.stack,x.name="AssertionError",i(x)}return a(g,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:P.custom,value:function(x,f){return P(this,t({},f,{customInspect:!1,depth:0}))}}]),g}(c(Error));return Kv=l,Kv}var Zv,yk;function bhe(){if(yk)return Zv;yk=1;function t(n,r){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var a=Object(n),i=1;i=0&&t.call(n.callee)==="[object Function]"),a},Qv}var Xv,bk;function ghe(){if(bk)return Xv;bk=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Hz(),a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(E){var C=E.constructor;return C&&C.prototype===E},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},b=function(){if(typeof window>"u")return!1;for(var E in window)try{if(!h["$"+E]&&e.call(window,E)&&window[E]!==null&&typeof window[E]=="object")try{c(window[E])}catch{return!0}}catch{return!0}return!1}(),v=function(E){if(typeof window>"u"||!b)return c(E);try{return c(E)}catch{return!1}};t=function(C){var F=C!==null&&typeof C=="object",T=n.call(C)==="[object Function]",P=r(C),D=F&&n.call(C)==="[object String]",M=[];if(!F&&!T&&!P)throw new TypeError("Object.keys called on a non-object");var O=s&&T;if(D&&C.length>0&&!e.call(C,0))for(var k=0;k0)for(var U=0;U2?arguments[2]:{},C=t(v);e&&(C=r.call(C,Object.getOwnPropertySymbols(v)));for(var F=0;F10)return!0;for(var ee=0;ee57)return!0}return W.length===10&&W>=Math.pow(2,32)}function g(W){return Object.keys(W).filter(y).concat(h(W).filter(Object.prototype.propertyIsEnumerable.bind(W)))}/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function w(W,ee){if(W===ee)return 0;for(var ie=W.length,me=ee.length,be=0,ye=Math.min(ie,me);be1?S-1:0),q=1;q1?S-1:0),q=1;q1?S-1:0),q=1;q1?S-1:0),q=1;q",Ohe="MIT",Phe={url:"https://github.com/indutny/elliptic/issues"},Rhe="https://github.com/indutny/elliptic",Nhe={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"},$he={"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"},Lhe={name:Che,version:Bhe,description:She,main:The,files:Fhe,scripts:Mhe,repository:Dhe,keywords:khe,author:Ihe,license:Ohe,bugs:Phe,homepage:Rhe,devDependencies:Nhe,dependencies:$he};var di={},nB={exports:{}};nB.exports;(function(t){(function(e,n){function r(u,d){if(!u)throw new Error(d||"Assertion failed")}function a(u,d){u.super_=d;var p=function(){};p.prototype=d.prototype,u.prototype=new p,u.prototype.constructor=u}function i(u,d,p){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((d==="le"||d==="be")&&(p=d,d=10),this._init(u||0,d||10,p||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=yo.Buffer}catch{}i.isBN=function(d){return d instanceof i?!0:d!==null&&typeof d=="object"&&d.constructor.wordSize===i.wordSize&&Array.isArray(d.words)},i.max=function(d,p){return d.cmp(p)>0?d:p},i.min=function(d,p){return d.cmp(p)<0?d:p},i.prototype._init=function(d,p,l){if(typeof d=="number")return this._initNumber(d,p,l);if(typeof d=="object")return this._initArray(d,p,l);p==="hex"&&(p=16),r(p===(p|0)&&p>=2&&p<=36),d=d.toString().replace(/\s+/g,"");var y=0;d[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=d[y]|d[y-1]<<8|d[y-2]<<16,this.words[g]|=w<>>26-x&67108863,x+=24,x>=26&&(x-=26,g++);else if(l==="le")for(y=0,g=0;y>>26-x&67108863,x+=24,x>=26&&(x-=26,g++);return this.strip()};function o(u,d){var p=u.charCodeAt(d);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(u,d,p){var l=o(u,p);return p-1>=d&&(l|=o(u,p-1)<<4),l}i.prototype._parseHex=function(d,p,l){this.length=Math.ceil((d.length-p)/6),this.words=new Array(this.length);for(var y=0;y=p;y-=2)x=c(d,p,y)<=18?(g-=18,w+=1,this.words[w]|=x>>>26):g+=8;else{var f=d.length-p;for(y=f%2===0?p+1:p;y=18?(g-=18,w+=1,this.words[w]|=x>>>26):g+=8}this.strip()};function h(u,d,p,l){for(var y=0,g=Math.min(u.length,p),w=d;w=49?y+=x-49+10:x>=17?y+=x-17+10:y+=x}return y}i.prototype._parseBase=function(d,p,l){this.words=[0],this.length=1;for(var y=0,g=1;g<=67108863;g*=p)y++;y--,g=g/p|0;for(var w=d.length-l,x=w%y,f=Math.min(w,w-x)+l,m=0,_=l;_1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var b=["","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"],v=[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],E=[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];i.prototype.toString=function(d,p){d=d||10,p=p|0||1;var l;if(d===16||d==="hex"){l="";for(var y=0,g=0,w=0;w>>24-y&16777215,g!==0||w!==this.length-1?l=b[6-f.length]+f+l:l=f+l,y+=2,y>=26&&(y-=26,w--)}for(g!==0&&(l=g.toString(16)+l);l.length%p!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(d===(d|0)&&d>=2&&d<=36){var m=v[d],_=E[d];l="";var A=this.clone();for(A.negative=0;!A.isZero();){var S=A.modn(_).toString(d);A=A.idivn(_),A.isZero()?l=S+l:l=b[m-S.length]+S+l}for(this.isZero()&&(l="0"+l);l.length%p!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var d=this.words[0];return this.length===2?d+=this.words[1]*67108864:this.length===3&&this.words[2]===1?d+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-d:d},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(d,p){return r(typeof s<"u"),this.toArrayLike(s,d,p)},i.prototype.toArray=function(d,p){return this.toArrayLike(Array,d,p)},i.prototype.toArrayLike=function(d,p,l){var y=this.byteLength(),g=l||Math.max(1,y);r(y<=g,"byte array longer than desired length"),r(g>0,"Requested array length <= 0"),this.strip();var w=p==="le",x=new d(g),f,m,_=this.clone();if(w){for(m=0;!_.isZero();m++)f=_.andln(255),_.iushrn(8),x[m]=f;for(;m=4096&&(l+=13,p>>>=13),p>=64&&(l+=7,p>>>=7),p>=8&&(l+=4,p>>>=4),p>=2&&(l+=2,p>>>=2),l+p},i.prototype._zeroBits=function(d){if(d===0)return 26;var p=d,l=0;return p&8191||(l+=13,p>>>=13),p&127||(l+=7,p>>>=7),p&15||(l+=4,p>>>=4),p&3||(l+=2,p>>>=2),p&1||l++,l},i.prototype.bitLength=function(){var d=this.words[this.length-1],p=this._countBits(d);return(this.length-1)*26+p};function C(u){for(var d=new Array(u.bitLength()),p=0;p>>y}return d}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var d=0,p=0;pd.length?this.clone().ior(d):d.clone().ior(this)},i.prototype.uor=function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},i.prototype.iuand=function(d){var p;this.length>d.length?p=d:p=this;for(var l=0;ld.length?this.clone().iand(d):d.clone().iand(this)},i.prototype.uand=function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},i.prototype.iuxor=function(d){var p,l;this.length>d.length?(p=this,l=d):(p=d,l=this);for(var y=0;yd.length?this.clone().ixor(d):d.clone().ixor(this)},i.prototype.uxor=function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},i.prototype.inotn=function(d){r(typeof d=="number"&&d>=0);var p=Math.ceil(d/26)|0,l=d%26;this._expand(p),l>0&&p--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-l),this.strip()},i.prototype.notn=function(d){return this.clone().inotn(d)},i.prototype.setn=function(d,p){r(typeof d=="number"&&d>=0);var l=d/26|0,y=d%26;return this._expand(l+1),p?this.words[l]=this.words[l]|1<d.length?(l=this,y=d):(l=d,y=this);for(var g=0,w=0;w>>26;for(;g!==0&&w>>26;if(this.length=l.length,g!==0)this.words[this.length]=g,this.length++;else if(l!==this)for(;wd.length?this.clone().iadd(d):d.clone().iadd(this)},i.prototype.isub=function(d){if(d.negative!==0){d.negative=0;var p=this.iadd(d);return d.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var l=this.cmp(d);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,g;l>0?(y=this,g=d):(y=d,g=this);for(var w=0,x=0;x>26,this.words[x]=p&67108863;for(;w!==0&&x>26,this.words[x]=p&67108863;if(w===0&&x>>26,A=f&67108863,S=Math.min(m,d.length-1),$=Math.max(0,m-u.length+1);$<=S;$++){var q=m-$|0;y=u.words[q]|0,g=d.words[$]|0,w=y*g+A,_+=w/67108864|0,A=w&67108863}p.words[m]=A|0,f=_|0}return f!==0?p.words[m]=f|0:p.length--,p.strip()}var T=function(d,p,l){var y=d.words,g=p.words,w=l.words,x=0,f,m,_,A=y[0]|0,S=A&8191,$=A>>>13,q=y[1]|0,I=q&8191,K=q>>>13,z=y[2]|0,Q=z&8191,ue=z>>>13,fe=y[3]|0,G=fe&8191,j=fe>>>13,ne=y[4]|0,se=ne&8191,J=ne>>>13,R=y[5]|0,N=R&8191,Z=R>>>13,ae=y[6]|0,pe=ae&8191,W=ae>>>13,ee=y[7]|0,ie=ee&8191,me=ee>>>13,be=y[8]|0,ye=be&8191,Fe=be>>>13,Se=y[9]|0,Ee=Se&8191,Qe=Se>>>13,$e=g[0]|0,Oe=$e&8191,at=$e>>>13,qe=g[1]|0,Le=qe&8191,xt=qe>>>13,Je=g[2]|0,He=Je&8191,At=Je>>>13,ce=g[3]|0,de=ce&8191,Ce=ce>>>13,_e=g[4]|0,Ae=_e&8191,Xe=_e>>>13,Me=g[5]|0,Be=Me&8191,ze=Me>>>13,Pe=g[6]|0,Ie=Pe&8191,Ye=Pe>>>13,Ue=g[7]|0,De=Ue&8191,ot=Ue>>>13,We=g[8]|0,je=We&8191,vt=We>>>13,Ke=g[9]|0,Ne=Ke&8191,ht=Ke>>>13;l.negative=d.negative^p.negative,l.length=19,f=Math.imul(S,Oe),m=Math.imul(S,at),m=m+Math.imul($,Oe)|0,_=Math.imul($,at);var pt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(pt>>>26)|0,pt&=67108863,f=Math.imul(I,Oe),m=Math.imul(I,at),m=m+Math.imul(K,Oe)|0,_=Math.imul(K,at),f=f+Math.imul(S,Le)|0,m=m+Math.imul(S,xt)|0,m=m+Math.imul($,Le)|0,_=_+Math.imul($,xt)|0;var yt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(yt>>>26)|0,yt&=67108863,f=Math.imul(Q,Oe),m=Math.imul(Q,at),m=m+Math.imul(ue,Oe)|0,_=Math.imul(ue,at),f=f+Math.imul(I,Le)|0,m=m+Math.imul(I,xt)|0,m=m+Math.imul(K,Le)|0,_=_+Math.imul(K,xt)|0,f=f+Math.imul(S,He)|0,m=m+Math.imul(S,At)|0,m=m+Math.imul($,He)|0,_=_+Math.imul($,At)|0;var Qt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,f=Math.imul(G,Oe),m=Math.imul(G,at),m=m+Math.imul(j,Oe)|0,_=Math.imul(j,at),f=f+Math.imul(Q,Le)|0,m=m+Math.imul(Q,xt)|0,m=m+Math.imul(ue,Le)|0,_=_+Math.imul(ue,xt)|0,f=f+Math.imul(I,He)|0,m=m+Math.imul(I,At)|0,m=m+Math.imul(K,He)|0,_=_+Math.imul(K,At)|0,f=f+Math.imul(S,de)|0,m=m+Math.imul(S,Ce)|0,m=m+Math.imul($,de)|0,_=_+Math.imul($,Ce)|0;var Gt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,f=Math.imul(se,Oe),m=Math.imul(se,at),m=m+Math.imul(J,Oe)|0,_=Math.imul(J,at),f=f+Math.imul(G,Le)|0,m=m+Math.imul(G,xt)|0,m=m+Math.imul(j,Le)|0,_=_+Math.imul(j,xt)|0,f=f+Math.imul(Q,He)|0,m=m+Math.imul(Q,At)|0,m=m+Math.imul(ue,He)|0,_=_+Math.imul(ue,At)|0,f=f+Math.imul(I,de)|0,m=m+Math.imul(I,Ce)|0,m=m+Math.imul(K,de)|0,_=_+Math.imul(K,Ce)|0,f=f+Math.imul(S,Ae)|0,m=m+Math.imul(S,Xe)|0,m=m+Math.imul($,Ae)|0,_=_+Math.imul($,Xe)|0;var ct=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(ct>>>26)|0,ct&=67108863,f=Math.imul(N,Oe),m=Math.imul(N,at),m=m+Math.imul(Z,Oe)|0,_=Math.imul(Z,at),f=f+Math.imul(se,Le)|0,m=m+Math.imul(se,xt)|0,m=m+Math.imul(J,Le)|0,_=_+Math.imul(J,xt)|0,f=f+Math.imul(G,He)|0,m=m+Math.imul(G,At)|0,m=m+Math.imul(j,He)|0,_=_+Math.imul(j,At)|0,f=f+Math.imul(Q,de)|0,m=m+Math.imul(Q,Ce)|0,m=m+Math.imul(ue,de)|0,_=_+Math.imul(ue,Ce)|0,f=f+Math.imul(I,Ae)|0,m=m+Math.imul(I,Xe)|0,m=m+Math.imul(K,Ae)|0,_=_+Math.imul(K,Xe)|0,f=f+Math.imul(S,Be)|0,m=m+Math.imul(S,ze)|0,m=m+Math.imul($,Be)|0,_=_+Math.imul($,ze)|0;var Tt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,f=Math.imul(pe,Oe),m=Math.imul(pe,at),m=m+Math.imul(W,Oe)|0,_=Math.imul(W,at),f=f+Math.imul(N,Le)|0,m=m+Math.imul(N,xt)|0,m=m+Math.imul(Z,Le)|0,_=_+Math.imul(Z,xt)|0,f=f+Math.imul(se,He)|0,m=m+Math.imul(se,At)|0,m=m+Math.imul(J,He)|0,_=_+Math.imul(J,At)|0,f=f+Math.imul(G,de)|0,m=m+Math.imul(G,Ce)|0,m=m+Math.imul(j,de)|0,_=_+Math.imul(j,Ce)|0,f=f+Math.imul(Q,Ae)|0,m=m+Math.imul(Q,Xe)|0,m=m+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,Xe)|0,f=f+Math.imul(I,Be)|0,m=m+Math.imul(I,ze)|0,m=m+Math.imul(K,Be)|0,_=_+Math.imul(K,ze)|0,f=f+Math.imul(S,Ie)|0,m=m+Math.imul(S,Ye)|0,m=m+Math.imul($,Ie)|0,_=_+Math.imul($,Ye)|0;var mt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(mt>>>26)|0,mt&=67108863,f=Math.imul(ie,Oe),m=Math.imul(ie,at),m=m+Math.imul(me,Oe)|0,_=Math.imul(me,at),f=f+Math.imul(pe,Le)|0,m=m+Math.imul(pe,xt)|0,m=m+Math.imul(W,Le)|0,_=_+Math.imul(W,xt)|0,f=f+Math.imul(N,He)|0,m=m+Math.imul(N,At)|0,m=m+Math.imul(Z,He)|0,_=_+Math.imul(Z,At)|0,f=f+Math.imul(se,de)|0,m=m+Math.imul(se,Ce)|0,m=m+Math.imul(J,de)|0,_=_+Math.imul(J,Ce)|0,f=f+Math.imul(G,Ae)|0,m=m+Math.imul(G,Xe)|0,m=m+Math.imul(j,Ae)|0,_=_+Math.imul(j,Xe)|0,f=f+Math.imul(Q,Be)|0,m=m+Math.imul(Q,ze)|0,m=m+Math.imul(ue,Be)|0,_=_+Math.imul(ue,ze)|0,f=f+Math.imul(I,Ie)|0,m=m+Math.imul(I,Ye)|0,m=m+Math.imul(K,Ie)|0,_=_+Math.imul(K,Ye)|0,f=f+Math.imul(S,De)|0,m=m+Math.imul(S,ot)|0,m=m+Math.imul($,De)|0,_=_+Math.imul($,ot)|0;var Nt=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,f=Math.imul(ye,Oe),m=Math.imul(ye,at),m=m+Math.imul(Fe,Oe)|0,_=Math.imul(Fe,at),f=f+Math.imul(ie,Le)|0,m=m+Math.imul(ie,xt)|0,m=m+Math.imul(me,Le)|0,_=_+Math.imul(me,xt)|0,f=f+Math.imul(pe,He)|0,m=m+Math.imul(pe,At)|0,m=m+Math.imul(W,He)|0,_=_+Math.imul(W,At)|0,f=f+Math.imul(N,de)|0,m=m+Math.imul(N,Ce)|0,m=m+Math.imul(Z,de)|0,_=_+Math.imul(Z,Ce)|0,f=f+Math.imul(se,Ae)|0,m=m+Math.imul(se,Xe)|0,m=m+Math.imul(J,Ae)|0,_=_+Math.imul(J,Xe)|0,f=f+Math.imul(G,Be)|0,m=m+Math.imul(G,ze)|0,m=m+Math.imul(j,Be)|0,_=_+Math.imul(j,ze)|0,f=f+Math.imul(Q,Ie)|0,m=m+Math.imul(Q,Ye)|0,m=m+Math.imul(ue,Ie)|0,_=_+Math.imul(ue,Ye)|0,f=f+Math.imul(I,De)|0,m=m+Math.imul(I,ot)|0,m=m+Math.imul(K,De)|0,_=_+Math.imul(K,ot)|0,f=f+Math.imul(S,je)|0,m=m+Math.imul(S,vt)|0,m=m+Math.imul($,je)|0,_=_+Math.imul($,vt)|0;var Cn=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,f=Math.imul(Ee,Oe),m=Math.imul(Ee,at),m=m+Math.imul(Qe,Oe)|0,_=Math.imul(Qe,at),f=f+Math.imul(ye,Le)|0,m=m+Math.imul(ye,xt)|0,m=m+Math.imul(Fe,Le)|0,_=_+Math.imul(Fe,xt)|0,f=f+Math.imul(ie,He)|0,m=m+Math.imul(ie,At)|0,m=m+Math.imul(me,He)|0,_=_+Math.imul(me,At)|0,f=f+Math.imul(pe,de)|0,m=m+Math.imul(pe,Ce)|0,m=m+Math.imul(W,de)|0,_=_+Math.imul(W,Ce)|0,f=f+Math.imul(N,Ae)|0,m=m+Math.imul(N,Xe)|0,m=m+Math.imul(Z,Ae)|0,_=_+Math.imul(Z,Xe)|0,f=f+Math.imul(se,Be)|0,m=m+Math.imul(se,ze)|0,m=m+Math.imul(J,Be)|0,_=_+Math.imul(J,ze)|0,f=f+Math.imul(G,Ie)|0,m=m+Math.imul(G,Ye)|0,m=m+Math.imul(j,Ie)|0,_=_+Math.imul(j,Ye)|0,f=f+Math.imul(Q,De)|0,m=m+Math.imul(Q,ot)|0,m=m+Math.imul(ue,De)|0,_=_+Math.imul(ue,ot)|0,f=f+Math.imul(I,je)|0,m=m+Math.imul(I,vt)|0,m=m+Math.imul(K,je)|0,_=_+Math.imul(K,vt)|0,f=f+Math.imul(S,Ne)|0,m=m+Math.imul(S,ht)|0,m=m+Math.imul($,Ne)|0,_=_+Math.imul($,ht)|0;var Pn=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,f=Math.imul(Ee,Le),m=Math.imul(Ee,xt),m=m+Math.imul(Qe,Le)|0,_=Math.imul(Qe,xt),f=f+Math.imul(ye,He)|0,m=m+Math.imul(ye,At)|0,m=m+Math.imul(Fe,He)|0,_=_+Math.imul(Fe,At)|0,f=f+Math.imul(ie,de)|0,m=m+Math.imul(ie,Ce)|0,m=m+Math.imul(me,de)|0,_=_+Math.imul(me,Ce)|0,f=f+Math.imul(pe,Ae)|0,m=m+Math.imul(pe,Xe)|0,m=m+Math.imul(W,Ae)|0,_=_+Math.imul(W,Xe)|0,f=f+Math.imul(N,Be)|0,m=m+Math.imul(N,ze)|0,m=m+Math.imul(Z,Be)|0,_=_+Math.imul(Z,ze)|0,f=f+Math.imul(se,Ie)|0,m=m+Math.imul(se,Ye)|0,m=m+Math.imul(J,Ie)|0,_=_+Math.imul(J,Ye)|0,f=f+Math.imul(G,De)|0,m=m+Math.imul(G,ot)|0,m=m+Math.imul(j,De)|0,_=_+Math.imul(j,ot)|0,f=f+Math.imul(Q,je)|0,m=m+Math.imul(Q,vt)|0,m=m+Math.imul(ue,je)|0,_=_+Math.imul(ue,vt)|0,f=f+Math.imul(I,Ne)|0,m=m+Math.imul(I,ht)|0,m=m+Math.imul(K,Ne)|0,_=_+Math.imul(K,ht)|0;var Qn=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,f=Math.imul(Ee,He),m=Math.imul(Ee,At),m=m+Math.imul(Qe,He)|0,_=Math.imul(Qe,At),f=f+Math.imul(ye,de)|0,m=m+Math.imul(ye,Ce)|0,m=m+Math.imul(Fe,de)|0,_=_+Math.imul(Fe,Ce)|0,f=f+Math.imul(ie,Ae)|0,m=m+Math.imul(ie,Xe)|0,m=m+Math.imul(me,Ae)|0,_=_+Math.imul(me,Xe)|0,f=f+Math.imul(pe,Be)|0,m=m+Math.imul(pe,ze)|0,m=m+Math.imul(W,Be)|0,_=_+Math.imul(W,ze)|0,f=f+Math.imul(N,Ie)|0,m=m+Math.imul(N,Ye)|0,m=m+Math.imul(Z,Ie)|0,_=_+Math.imul(Z,Ye)|0,f=f+Math.imul(se,De)|0,m=m+Math.imul(se,ot)|0,m=m+Math.imul(J,De)|0,_=_+Math.imul(J,ot)|0,f=f+Math.imul(G,je)|0,m=m+Math.imul(G,vt)|0,m=m+Math.imul(j,je)|0,_=_+Math.imul(j,vt)|0,f=f+Math.imul(Q,Ne)|0,m=m+Math.imul(Q,ht)|0,m=m+Math.imul(ue,Ne)|0,_=_+Math.imul(ue,ht)|0;var Xn=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,f=Math.imul(Ee,de),m=Math.imul(Ee,Ce),m=m+Math.imul(Qe,de)|0,_=Math.imul(Qe,Ce),f=f+Math.imul(ye,Ae)|0,m=m+Math.imul(ye,Xe)|0,m=m+Math.imul(Fe,Ae)|0,_=_+Math.imul(Fe,Xe)|0,f=f+Math.imul(ie,Be)|0,m=m+Math.imul(ie,ze)|0,m=m+Math.imul(me,Be)|0,_=_+Math.imul(me,ze)|0,f=f+Math.imul(pe,Ie)|0,m=m+Math.imul(pe,Ye)|0,m=m+Math.imul(W,Ie)|0,_=_+Math.imul(W,Ye)|0,f=f+Math.imul(N,De)|0,m=m+Math.imul(N,ot)|0,m=m+Math.imul(Z,De)|0,_=_+Math.imul(Z,ot)|0,f=f+Math.imul(se,je)|0,m=m+Math.imul(se,vt)|0,m=m+Math.imul(J,je)|0,_=_+Math.imul(J,vt)|0,f=f+Math.imul(G,Ne)|0,m=m+Math.imul(G,ht)|0,m=m+Math.imul(j,Ne)|0,_=_+Math.imul(j,ht)|0;var Jn=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,f=Math.imul(Ee,Ae),m=Math.imul(Ee,Xe),m=m+Math.imul(Qe,Ae)|0,_=Math.imul(Qe,Xe),f=f+Math.imul(ye,Be)|0,m=m+Math.imul(ye,ze)|0,m=m+Math.imul(Fe,Be)|0,_=_+Math.imul(Fe,ze)|0,f=f+Math.imul(ie,Ie)|0,m=m+Math.imul(ie,Ye)|0,m=m+Math.imul(me,Ie)|0,_=_+Math.imul(me,Ye)|0,f=f+Math.imul(pe,De)|0,m=m+Math.imul(pe,ot)|0,m=m+Math.imul(W,De)|0,_=_+Math.imul(W,ot)|0,f=f+Math.imul(N,je)|0,m=m+Math.imul(N,vt)|0,m=m+Math.imul(Z,je)|0,_=_+Math.imul(Z,vt)|0,f=f+Math.imul(se,Ne)|0,m=m+Math.imul(se,ht)|0,m=m+Math.imul(J,Ne)|0,_=_+Math.imul(J,ht)|0;var Yn=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,f=Math.imul(Ee,Be),m=Math.imul(Ee,ze),m=m+Math.imul(Qe,Be)|0,_=Math.imul(Qe,ze),f=f+Math.imul(ye,Ie)|0,m=m+Math.imul(ye,Ye)|0,m=m+Math.imul(Fe,Ie)|0,_=_+Math.imul(Fe,Ye)|0,f=f+Math.imul(ie,De)|0,m=m+Math.imul(ie,ot)|0,m=m+Math.imul(me,De)|0,_=_+Math.imul(me,ot)|0,f=f+Math.imul(pe,je)|0,m=m+Math.imul(pe,vt)|0,m=m+Math.imul(W,je)|0,_=_+Math.imul(W,vt)|0,f=f+Math.imul(N,Ne)|0,m=m+Math.imul(N,ht)|0,m=m+Math.imul(Z,Ne)|0,_=_+Math.imul(Z,ht)|0;var er=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(er>>>26)|0,er&=67108863,f=Math.imul(Ee,Ie),m=Math.imul(Ee,Ye),m=m+Math.imul(Qe,Ie)|0,_=Math.imul(Qe,Ye),f=f+Math.imul(ye,De)|0,m=m+Math.imul(ye,ot)|0,m=m+Math.imul(Fe,De)|0,_=_+Math.imul(Fe,ot)|0,f=f+Math.imul(ie,je)|0,m=m+Math.imul(ie,vt)|0,m=m+Math.imul(me,je)|0,_=_+Math.imul(me,vt)|0,f=f+Math.imul(pe,Ne)|0,m=m+Math.imul(pe,ht)|0,m=m+Math.imul(W,Ne)|0,_=_+Math.imul(W,ht)|0;var tr=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(tr>>>26)|0,tr&=67108863,f=Math.imul(Ee,De),m=Math.imul(Ee,ot),m=m+Math.imul(Qe,De)|0,_=Math.imul(Qe,ot),f=f+Math.imul(ye,je)|0,m=m+Math.imul(ye,vt)|0,m=m+Math.imul(Fe,je)|0,_=_+Math.imul(Fe,vt)|0,f=f+Math.imul(ie,Ne)|0,m=m+Math.imul(ie,ht)|0,m=m+Math.imul(me,Ne)|0,_=_+Math.imul(me,ht)|0;var sa=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(sa>>>26)|0,sa&=67108863,f=Math.imul(Ee,je),m=Math.imul(Ee,vt),m=m+Math.imul(Qe,je)|0,_=Math.imul(Qe,vt),f=f+Math.imul(ye,Ne)|0,m=m+Math.imul(ye,ht)|0,m=m+Math.imul(Fe,Ne)|0,_=_+Math.imul(Fe,ht)|0;var oa=(x+f|0)+((m&8191)<<13)|0;x=(_+(m>>>13)|0)+(oa>>>26)|0,oa&=67108863,f=Math.imul(Ee,Ne),m=Math.imul(Ee,ht),m=m+Math.imul(Qe,Ne)|0,_=Math.imul(Qe,ht);var Ru=(x+f|0)+((m&8191)<<13)|0;return x=(_+(m>>>13)|0)+(Ru>>>26)|0,Ru&=67108863,w[0]=pt,w[1]=yt,w[2]=Qt,w[3]=Gt,w[4]=ct,w[5]=Tt,w[6]=mt,w[7]=Nt,w[8]=Cn,w[9]=Pn,w[10]=Qn,w[11]=Xn,w[12]=Jn,w[13]=Yn,w[14]=er,w[15]=tr,w[16]=sa,w[17]=oa,w[18]=Ru,x!==0&&(w[19]=x,l.length++),l};Math.imul||(T=F);function P(u,d,p){p.negative=d.negative^u.negative,p.length=u.length+d.length;for(var l=0,y=0,g=0;g>>26)|0,y+=w>>>26,w&=67108863}p.words[g]=x,l=w,w=y}return l!==0?p.words[g]=l:p.length--,p.strip()}function D(u,d,p){var l=new M;return l.mulp(u,d,p)}i.prototype.mulTo=function(d,p){var l,y=this.length+d.length;return this.length===10&&d.length===10?l=T(this,d,p):y<63?l=F(this,d,p):y<1024?l=P(this,d,p):l=D(this,d,p),l};function M(u,d){this.x=u,this.y=d}M.prototype.makeRBT=function(d){for(var p=new Array(d),l=i.prototype._countBits(d)-1,y=0;y>=1;return y},M.prototype.permute=function(d,p,l,y,g,w){for(var x=0;x>>1)g++;return 1<>>13,l[2*w+1]=g&8191,g=g>>>13;for(w=2*p;w>=26,p+=y/67108864|0,p+=g>>>26,this.words[l]=g&67108863}return p!==0&&(this.words[l]=p,this.length++),this},i.prototype.muln=function(d){return this.clone().imuln(d)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(d){var p=C(d);if(p.length===0)return new i(1);for(var l=this,y=0;y=0);var p=d%26,l=(d-p)/26,y=67108863>>>26-p<<26-p,g;if(p!==0){var w=0;for(g=0;g>>26-p}w&&(this.words[g]=w,this.length++)}if(l!==0){for(g=this.length-1;g>=0;g--)this.words[g+l]=this.words[g];for(g=0;g=0);var y;p?y=(p-p%26)/26:y=0;var g=d%26,w=Math.min((d-g)/26,this.length),x=67108863^67108863>>>g<w)for(this.length-=w,m=0;m=0&&(_!==0||m>=y);m--){var A=this.words[m]|0;this.words[m]=_<<26-g|A>>>g,_=A&x}return f&&_!==0&&(f.words[f.length++]=_),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(d,p,l){return r(this.negative===0),this.iushrn(d,p,l)},i.prototype.shln=function(d){return this.clone().ishln(d)},i.prototype.ushln=function(d){return this.clone().iushln(d)},i.prototype.shrn=function(d){return this.clone().ishrn(d)},i.prototype.ushrn=function(d){return this.clone().iushrn(d)},i.prototype.testn=function(d){r(typeof d=="number"&&d>=0);var p=d%26,l=(d-p)/26,y=1<=0);var p=d%26,l=(d-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(p!==0&&l++,this.length=Math.min(l,this.length),p!==0){var y=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},i.prototype.isubn=function(d){if(r(typeof d=="number"),r(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(f/67108864|0),this.words[g+l]=w&67108863}for(;g>26,this.words[g+l]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,g=0;g>26,this.words[g]=w&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(d,p){var l=this.length-d.length,y=this.clone(),g=d,w=g.words[g.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(g=g.ushln(l),y.iushln(l),w=g.words[g.length-1]|0);var f=y.length-g.length,m;if(p!=="mod"){m=new i(null),m.length=f+1,m.words=new Array(m.length);for(var _=0;_=0;S--){var $=(y.words[g.length+S]|0)*67108864+(y.words[g.length+S-1]|0);for($=Math.min($/w|0,67108863),y._ishlnsubmul(g,$,S);y.negative!==0;)$--,y.negative=0,y._ishlnsubmul(g,1,S),y.isZero()||(y.negative^=1);m&&(m.words[S]=$)}return m&&m.strip(),y.strip(),p!=="div"&&l!==0&&y.iushrn(l),{div:m||null,mod:y}},i.prototype.divmod=function(d,p,l){if(r(!d.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,g,w;return this.negative!==0&&d.negative===0?(w=this.neg().divmod(d,p),p!=="mod"&&(y=w.div.neg()),p!=="div"&&(g=w.mod.neg(),l&&g.negative!==0&&g.iadd(d)),{div:y,mod:g}):this.negative===0&&d.negative!==0?(w=this.divmod(d.neg(),p),p!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&d.negative?(w=this.neg().divmod(d.neg(),p),p!=="div"&&(g=w.mod.neg(),l&&g.negative!==0&&g.isub(d)),{div:w.div,mod:g}):d.length>this.length||this.cmp(d)<0?{div:new i(0),mod:this}:d.length===1?p==="div"?{div:this.divn(d.words[0]),mod:null}:p==="mod"?{div:null,mod:new i(this.modn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new i(this.modn(d.words[0]))}:this._wordDiv(d,p)},i.prototype.div=function(d){return this.divmod(d,"div",!1).div},i.prototype.mod=function(d){return this.divmod(d,"mod",!1).mod},i.prototype.umod=function(d){return this.divmod(d,"mod",!0).mod},i.prototype.divRound=function(d){var p=this.divmod(d);if(p.mod.isZero())return p.div;var l=p.div.negative!==0?p.mod.isub(d):p.mod,y=d.ushrn(1),g=d.andln(1),w=l.cmp(y);return w<0||g===1&&w===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},i.prototype.modn=function(d){r(d<=67108863);for(var p=(1<<26)%d,l=0,y=this.length-1;y>=0;y--)l=(p*l+(this.words[y]|0))%d;return l},i.prototype.idivn=function(d){r(d<=67108863);for(var p=0,l=this.length-1;l>=0;l--){var y=(this.words[l]|0)+p*67108864;this.words[l]=y/d|0,p=y%d}return this.strip()},i.prototype.divn=function(d){return this.clone().idivn(d)},i.prototype.egcd=function(d){r(d.negative===0),r(!d.isZero());var p=this,l=d.clone();p.negative!==0?p=p.umod(d):p=p.clone();for(var y=new i(1),g=new i(0),w=new i(0),x=new i(1),f=0;p.isEven()&&l.isEven();)p.iushrn(1),l.iushrn(1),++f;for(var m=l.clone(),_=p.clone();!p.isZero();){for(var A=0,S=1;!(p.words[0]&S)&&A<26;++A,S<<=1);if(A>0)for(p.iushrn(A);A-- >0;)(y.isOdd()||g.isOdd())&&(y.iadd(m),g.isub(_)),y.iushrn(1),g.iushrn(1);for(var $=0,q=1;!(l.words[0]&q)&&$<26;++$,q<<=1);if($>0)for(l.iushrn($);$-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(m),x.isub(_)),w.iushrn(1),x.iushrn(1);p.cmp(l)>=0?(p.isub(l),y.isub(w),g.isub(x)):(l.isub(p),w.isub(y),x.isub(g))}return{a:w,b:x,gcd:l.iushln(f)}},i.prototype._invmp=function(d){r(d.negative===0),r(!d.isZero());var p=this,l=d.clone();p.negative!==0?p=p.umod(d):p=p.clone();for(var y=new i(1),g=new i(0),w=l.clone();p.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,f=1;!(p.words[0]&f)&&x<26;++x,f<<=1);if(x>0)for(p.iushrn(x);x-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var m=0,_=1;!(l.words[0]&_)&&m<26;++m,_<<=1);if(m>0)for(l.iushrn(m);m-- >0;)g.isOdd()&&g.iadd(w),g.iushrn(1);p.cmp(l)>=0?(p.isub(l),y.isub(g)):(l.isub(p),g.isub(y))}var A;return p.cmpn(1)===0?A=y:A=g,A.cmpn(0)<0&&A.iadd(d),A},i.prototype.gcd=function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var p=this.clone(),l=d.clone();p.negative=0,l.negative=0;for(var y=0;p.isEven()&&l.isEven();y++)p.iushrn(1),l.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;l.isEven();)l.iushrn(1);var g=p.cmp(l);if(g<0){var w=p;p=l,l=w}else if(g===0||l.cmpn(1)===0)break;p.isub(l)}while(!0);return l.iushln(y)},i.prototype.invm=function(d){return this.egcd(d).a.umod(d)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(d){return this.words[0]&d},i.prototype.bincn=function(d){r(typeof d=="number");var p=d%26,l=(d-p)/26,y=1<>>26,x&=67108863,this.words[w]=x}return g!==0&&(this.words[w]=g,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(d){var p=d<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var l;if(this.length>1)l=1;else{p&&(d=-d),r(d<=67108863,"Number is too big");var y=this.words[0]|0;l=y===d?0:yd.length)return 1;if(this.length=0;l--){var y=this.words[l]|0,g=d.words[l]|0;if(y!==g){yg&&(p=1);break}}return p},i.prototype.gtn=function(d){return this.cmpn(d)===1},i.prototype.gt=function(d){return this.cmp(d)===1},i.prototype.gten=function(d){return this.cmpn(d)>=0},i.prototype.gte=function(d){return this.cmp(d)>=0},i.prototype.ltn=function(d){return this.cmpn(d)===-1},i.prototype.lt=function(d){return this.cmp(d)===-1},i.prototype.lten=function(d){return this.cmpn(d)<=0},i.prototype.lte=function(d){return this.cmp(d)<=0},i.prototype.eqn=function(d){return this.cmpn(d)===0},i.prototype.eq=function(d){return this.cmp(d)===0},i.red=function(d){return new X(d)},i.prototype.toRed=function(d){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),d.convertTo(this)._forceRed(d)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(d){return this.red=d,this},i.prototype.forceRed=function(d){return r(!this.red,"Already a number in reduction context"),this._forceRed(d)},i.prototype.redAdd=function(d){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,d)},i.prototype.redIAdd=function(d){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,d)},i.prototype.redSub=function(d){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,d)},i.prototype.redISub=function(d){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,d)},i.prototype.redShl=function(d){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,d)},i.prototype.redMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.mul(this,d)},i.prototype.redIMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.imul(this,d)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(d){return r(this.red&&!d.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,d)};var O={k256:null,p224:null,p192:null,p25519:null};function k(u,d){this.name=u,this.p=new i(d,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var d=new i(null);return d.words=new Array(Math.ceil(this.n/13)),d},k.prototype.ireduce=function(d){var p=d,l;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),l=p.bitLength();while(l>this.n);var y=l0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},k.prototype.split=function(d,p){d.iushrn(this.n,0,p)},k.prototype.imulK=function(d){return d.imul(this.k)};function U(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(U,k),U.prototype.split=function(d,p){for(var l=4194303,y=Math.min(d.length,9),g=0;g>>22,w=x}w>>>=22,d.words[g-10]=w,w===0&&d.length>10?d.length-=10:d.length-=9},U.prototype.imulK=function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var p=0,l=0;l>>=26,d.words[l]=g,p=y}return p!==0&&(d.words[d.length++]=p),d},i._prime=function(d){if(O[d])return O[d];var p;if(d==="k256")p=new U;else if(d==="p224")p=new V;else if(d==="p192")p=new Y;else if(d==="p25519")p=new L;else throw new Error("Unknown prime "+d);return O[d]=p,p};function X(u){if(typeof u=="string"){var d=i._prime(u);this.m=d.p,this.prime=d}else r(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}X.prototype._verify1=function(d){r(d.negative===0,"red works only with positives"),r(d.red,"red works only with red numbers")},X.prototype._verify2=function(d,p){r((d.negative|p.negative)===0,"red works only with positives"),r(d.red&&d.red===p.red,"red works only with red numbers")},X.prototype.imod=function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):d.umod(this.m)._forceRed(this)},X.prototype.neg=function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},X.prototype.add=function(d,p){this._verify2(d,p);var l=d.add(p);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},X.prototype.iadd=function(d,p){this._verify2(d,p);var l=d.iadd(p);return l.cmp(this.m)>=0&&l.isub(this.m),l},X.prototype.sub=function(d,p){this._verify2(d,p);var l=d.sub(p);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},X.prototype.isub=function(d,p){this._verify2(d,p);var l=d.isub(p);return l.cmpn(0)<0&&l.iadd(this.m),l},X.prototype.shl=function(d,p){return this._verify1(d),this.imod(d.ushln(p))},X.prototype.imul=function(d,p){return this._verify2(d,p),this.imod(d.imul(p))},X.prototype.mul=function(d,p){return this._verify2(d,p),this.imod(d.mul(p))},X.prototype.isqr=function(d){return this.imul(d,d.clone())},X.prototype.sqr=function(d){return this.mul(d,d)},X.prototype.sqrt=function(d){if(d.isZero())return d.clone();var p=this.m.andln(3);if(r(p%2===1),p===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(d,l)}for(var y=this.m.subn(1),g=0;!y.isZero()&&y.andln(1)===0;)g++,y.iushrn(1);r(!y.isZero());var w=new i(1).toRed(this),x=w.redNeg(),f=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new i(2*m*m).toRed(this);this.pow(m,f).cmp(x)!==0;)m.redIAdd(x);for(var _=this.pow(m,y),A=this.pow(d,y.addn(1).iushrn(1)),S=this.pow(d,y),$=g;S.cmp(w)!==0;){for(var q=S,I=0;q.cmp(w)!==0;I++)q=q.redSqr();r(I<$);var K=this.pow(_,new i(1).iushln($-I-1));A=A.redMul(K),_=K.redSqr(),S=S.redMul(_),$=I}return A},X.prototype.invm=function(d){var p=d._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},X.prototype.pow=function(d,p){if(p.isZero())return new i(1).toRed(this);if(p.cmpn(1)===0)return d.clone();var l=4,y=new Array(1<=0;g--){for(var _=p.words[g],A=m-1;A>=0;A--){var S=_>>A&1;if(w!==y[0]&&(w=this.sqr(w)),S===0&&x===0){f=0;continue}x<<=1,x|=S,f++,!(f!==l&&(g!==0||A!==0))&&(w=this.mul(w,y[x]),f=0,x=0)}m=26}return w},X.prototype.convertTo=function(d){var p=d.umod(this.m);return p===d?p.clone():p},X.prototype.convertFrom=function(d){var p=d.clone();return p.red=null,p},i.mont=function(d){return new B(d)};function B(u){X.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(B,X),B.prototype.convertTo=function(d){return this.imod(d.ushln(this.shift))},B.prototype.convertFrom=function(d){var p=this.imod(d.mul(this.rinv));return p.red=null,p},B.prototype.imul=function(d,p){if(d.isZero()||p.isZero())return d.words[0]=0,d.length=1,d;var l=d.imul(p),y=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=l.isub(y).iushrn(this.shift),w=g;return g.cmp(this.m)>=0?w=g.isub(this.m):g.cmpn(0)<0&&(w=g.iadd(this.m)),w._forceRed(this)},B.prototype.mul=function(d,p){if(d.isZero()||p.isZero())return new i(0)._forceRed(this);var l=d.mul(p),y=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=l.isub(y).iushrn(this.shift),w=g;return g.cmp(this.m)>=0?w=g.isub(this.m):g.cmpn(0)<0&&(w=g.iadd(this.m)),w._forceRed(this)},B.prototype.invm=function(d){var p=this.imod(d._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,he)})(nB);var Jc=nB.exports,Fd=Zz;function Zz(t,e){if(!t)throw new Error(e||"Assertion failed")}Zz.equal=function(e,n,r){if(e!=n)throw new Error(r||"Assertion failed: "+e+" != "+n)};var rB={};(function(t){var e=t;function n(i,s){if(Array.isArray(i))return i.slice();if(!i)return[];var o=[];if(typeof i!="string"){for(var c=0;c>8,v=h&255;b?o.push(b,v):o.push(v)}return o}e.toArray=n;function r(i){return i.length===1?"0"+i:i}e.zero2=r;function a(i){for(var s="",o=0;o(F>>1)-1?D=(F>>1)-M:D=M,T.isubn(D)):D=0,C[P]=D,T.iushrn(1)}return C}e.getNAF=i;function s(b,v){var E=[[],[]];b=b.clone(),v=v.clone();for(var C=0,F=0,T;b.cmpn(-C)>0||v.cmpn(-F)>0;){var P=b.andln(3)+C&3,D=v.andln(3)+F&3;P===3&&(P=-1),D===3&&(D=-1);var M;P&1?(T=b.andln(7)+C&7,(T===3||T===5)&&D===2?M=-P:M=P):M=0,E[0].push(M);var O;D&1?(T=v.andln(7)+F&7,(T===3||T===5)&&P===2?O=-D:O=D):O=0,E[1].push(O),2*C===M+1&&(C=1-C),2*F===O+1&&(F=1-F),b.iushrn(1),v.iushrn(1)}return E}e.getJSF=s;function o(b,v,E){var C="_"+v;b.prototype[v]=function(){return this[C]!==void 0?this[C]:this[C]=E.call(this)}}e.cachedProperty=o;function c(b){return typeof b=="string"?e.toArray(b,"hex"):b}e.parseBytes=c;function h(b){return new n(b,"hex","le")}e.intFromLE=h})(di);var aB={exports:{}},u9;aB.exports=function(e){return u9||(u9=new Kl(null)),u9.generate(e)};function Kl(t){this.rand=t}aB.exports.Rand=Kl;Kl.prototype.generate=function(e){return this._rand(e)};Kl.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var n=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var $x=Tu;Tu.prototype.point=function(){throw new Error("Not implemented")};Tu.prototype.validate=function(){throw new Error("Not implemented")};Tu.prototype._fixedNafMul=function(e,n){Ig(e.precomputed);var r=e._getDoubles(),a=kg(n,1,this._bitLength),i=(1<=o;h--)c=(c<<1)+a[h];s.push(c)}for(var b=this.jpoint(null,null,null),v=this.jpoint(null,null,null),E=i;E>0;E--){for(o=0;o=0;c--){for(var h=0;c>=0&&s[c]===0;c--)h++;if(c>=0&&h++,o=o.dblp(h),c<0)break;var b=s[c];Ig(b!==0),e.type==="affine"?b>0?o=o.mixedAdd(i[b-1>>1]):o=o.mixedAdd(i[-b-1>>1].neg()):b>0?o=o.add(i[b-1>>1]):o=o.add(i[-b-1>>1].neg())}return e.type==="affine"?o.toP():o};Tu.prototype._wnafMulAdd=function(e,n,r,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,h=0,b,v,E;for(b=0;b=1;b-=2){var F=b-1,T=b;if(s[F]!==1||s[T]!==1){c[F]=kg(r[F],s[F],this._bitLength),c[T]=kg(r[T],s[T],this._bitLength),h=Math.max(c[F].length,h),h=Math.max(c[T].length,h);continue}var P=[n[F],null,null,n[T]];n[F].y.cmp(n[T].y)===0?(P[1]=n[F].add(n[T]),P[2]=n[F].toJ().mixedAdd(n[T].neg())):n[F].y.cmp(n[T].y.redNeg())===0?(P[1]=n[F].toJ().mixedAdd(n[T]),P[2]=n[F].add(n[T].neg())):(P[1]=n[F].toJ().mixedAdd(n[T]),P[2]=n[F].toJ().mixedAdd(n[T].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],M=Uhe(r[F],r[T]);for(h=Math.max(M[0].length,h),c[F]=new Array(h),c[T]=new Array(h),v=0;v=0;b--){for(var Y=0;b>=0;){var L=!0;for(v=0;v=0&&Y++,U=U.dblp(Y),b<0)break;for(v=0;v0?E=o[v][X-1>>1]:X<0&&(E=o[v][-X-1>>1].neg()),E.type==="affine"?U=U.mixedAdd(E):U=U.add(E))}}for(b=0;b=Math.ceil((e.bitLength()+1)/n.step):!1};Ji.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],a=this,i=0;i=0&&(C=h,F=b),v.negative&&(v=v.neg(),E=E.neg()),C.negative&&(C=C.neg(),F=F.neg()),[{a:v,b:E},{a:C,b:F}]};Yi.prototype._endoSplit=function(e){var n=this.endo.basis,r=n[0],a=n[1],i=a.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),c=s.mul(a.a),h=i.mul(r.b),b=s.mul(a.b),v=e.sub(o).sub(c),E=h.add(b).neg();return{k1:v,k2:E}};Yi.prototype.pointFromX=function(e,n){e=new Mn(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=r.redSqrt();if(a.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(n&&!i||!n&&i)&&(a=a.redNeg()),this.point(e,a)};Yi.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,r=e.y,a=this.a.redMul(n),i=n.redSqr().redMul(n).redIAdd(a).redIAdd(this.b);return r.redSqr().redISub(i).cmpn(0)===0};Yi.prototype._endoWnafMulAdd=function(e,n,r){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Sr.prototype.isInfinity=function(){return this.inf};Sr.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 n=this.y.redSub(e.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var r=n.redSqr().redISub(this.x).redISub(e.x),a=n.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)};Sr.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 n=this.curve.a,r=this.x.redSqr(),a=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(n).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)};Sr.prototype.getX=function(){return this.x.fromRed()};Sr.prototype.getY=function(){return this.y.fromRed()};Sr.prototype.mul=function(e){return e=new Mn(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)};Sr.prototype.mulAdd=function(e,n,r){var a=[this,n],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Sr.prototype.jmulAdd=function(e,n,r){var a=[this,n],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Sr.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)};Sr.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,a=function(i){return i.neg()};n.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(a)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(a)}}}return n};Sr.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 Lr(t,e,n,r){i1.BasePoint.call(this,t,"jacobian"),e===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Mn(0)):(this.x=new Mn(e,16),this.y=new Mn(n,16),this.z=new Mn(r,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}sB(Lr,i1.BasePoint);Yi.prototype.jpoint=function(e,n,r){return new Lr(this,e,n,r)};Lr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),r=this.x.redMul(n),a=this.y.redMul(n).redMul(e);return this.curve.point(r,a)};Lr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Lr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),r=this.z.redSqr(),a=this.x.redMul(n),i=e.x.redMul(r),s=this.y.redMul(n.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),c=a.redSub(i),h=s.redSub(o);if(c.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=c.redSqr(),v=b.redMul(c),E=a.redMul(b),C=h.redSqr().redIAdd(v).redISub(E).redISub(E),F=h.redMul(E.redISub(C)).redISub(s.redMul(v)),T=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(C,F,T)};Lr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),r=this.x,a=e.x.redMul(n),i=this.y,s=e.y.redMul(n).redMul(this.z),o=r.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 h=o.redSqr(),b=h.redMul(o),v=r.redMul(h),E=c.redSqr().redIAdd(b).redISub(v).redISub(v),C=c.redMul(v.redISub(E)).redISub(i.redMul(b)),F=this.z.redMul(o);return this.curve.jpoint(E,C,F)};Lr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var r=this;for(n=0;n=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};Lr.prototype.inspect=function(){return this.isInfinity()?"":""};Lr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var z0=Jc,Xz=Gn,Lx=$x,Ghe=di;function s1(t){Lx.call(this,"mont",t),this.a=new z0(t.a,16).toRed(this.red),this.b=new z0(t.b,16).toRed(this.red),this.i4=new z0(4).toRed(this.red).redInvm(),this.two=new z0(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Xz(s1,Lx);var Vhe=s1;s1.prototype.validate=function(e){var n=e.normalize().x,r=n.redSqr(),a=r.redMul(n).redAdd(r.redMul(this.a)).redAdd(n),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Cr(t,e,n){Lx.BasePoint.call(this,t,"projective"),e===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new z0(e,16),this.z=new z0(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Xz(Cr,Lx.BasePoint);s1.prototype.decodePoint=function(e,n){return this.point(Ghe.toArray(e,n),1)};s1.prototype.point=function(e,n){return new Cr(this,e,n)};s1.prototype.pointFromJSON=function(e){return Cr.fromJSON(this,e)};Cr.prototype.precompute=function(){};Cr.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Cr.fromJSON=function(e,n){return new Cr(e,n[0],n[1]||e.one)};Cr.prototype.inspect=function(){return this.isInfinity()?"":""};Cr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Cr.prototype.dbl=function(){var e=this.x.redAdd(this.z),n=e.redSqr(),r=this.x.redSub(this.z),a=r.redSqr(),i=n.redSub(a),s=n.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};Cr.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Cr.prototype.diffAdd=function(e,n){var r=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(r),c=i.redMul(a),h=n.z.redMul(o.redAdd(c).redSqr()),b=n.x.redMul(o.redISub(c).redSqr());return this.curve.point(h,b)};Cr.prototype.mul=function(e){for(var n=e.clone(),r=this,a=this.curve.point(null,null),i=this,s=[];n.cmpn(0)!==0;n.iushrn(1))s.push(n.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(r=r.diffAdd(a,i),a=a.dbl()):(a=r.diffAdd(a,i),r=r.dbl());return a};Cr.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Cr.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Cr.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Cr.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Cr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var qhe=di,vc=Jc,Jz=Gn,Ux=$x,Whe=qhe.assert;function No(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,Ux.call(this,"edwards",t),this.a=new vc(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new vc(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new vc(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),Whe(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}Jz(No,Ux);var Khe=No;No.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};No.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};No.prototype.jpoint=function(e,n,r,a){return this.point(e,n,r,a)};No.prototype.pointFromX=function(e,n){e=new vc(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),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(n&&!c||!n&&c)&&(o=o.redNeg()),this.point(e,o)};No.prototype.pointFromY=function(e,n){e=new vc(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(n)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()!==n&&(o=o.redNeg()),this.point(o,e)};No.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var n=e.x.redSqr(),r=e.y.redSqr(),a=n.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(n).redMul(r)));return a.cmp(i)===0};function dn(t,e,n,r,a){Ux.BasePoint.call(this,t,"projective"),e===null&&n===null&&r===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 vc(e,16),this.y=new vc(n,16),this.z=r?new vc(r,16):this.curve.one,this.t=a&&new vc(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()))))}Jz(dn,Ux.BasePoint);No.prototype.pointFromJSON=function(e){return dn.fromJSON(this,e)};No.prototype.point=function(e,n,r,a){return new dn(this,e,n,r,a)};dn.fromJSON=function(e,n){return new dn(e,n[0],n[1],n[2])};dn.prototype.inspect=function(){return this.isInfinity()?"":""};dn.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};dn.prototype._extDbl=function(){var e=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(n),s=a.redAdd(n),o=s.redSub(r),c=a.redSub(n),h=i.redMul(o),b=s.redMul(c),v=i.redMul(c),E=o.redMul(s);return this.curve.point(h,b,E,v)};dn.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),r=this.y.redSqr(),a,i,s,o,c,h;if(this.curve.twisted){o=this.curve._mulA(n);var b=o.redAdd(r);this.zOne?(a=e.redSub(n).redSub(r).redMul(b.redSub(this.curve.two)),i=b.redMul(o.redSub(r)),s=b.redSqr().redSub(b).redSub(b)):(c=this.z.redSqr(),h=b.redSub(c).redISub(c),a=e.redSub(n).redISub(r).redMul(h),i=b.redMul(o.redSub(r)),s=b.redMul(h))}else o=n.redAdd(r),c=this.curve._mulC(this.z).redSqr(),h=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(h),i=this.curve._mulC(o).redMul(n.redISub(r)),s=o.redMul(h);return this.curve.point(a,i,s)};dn.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};dn.prototype._extAdd=function(e){var n=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=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=r.redSub(n),o=i.redSub(a),c=i.redAdd(a),h=r.redAdd(n),b=s.redMul(o),v=c.redMul(h),E=s.redMul(h),C=o.redMul(c);return this.curve.point(b,v,C,E)};dn.prototype._projAdd=function(e){var n=this.z.redMul(e.z),r=n.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=r.redSub(s),c=r.redAdd(s),h=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),b=n.redMul(o).redMul(h),v,E;return this.curve.twisted?(v=n.redMul(c).redMul(i.redSub(this.curve._mulA(a))),E=o.redMul(c)):(v=n.redMul(c).redMul(i.redSub(a)),E=this.curve._mulC(o).redMul(c)),this.curve.point(b,v,E)};dn.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};dn.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};dn.prototype.mulAdd=function(e,n,r){return this.curve._wnafMulAdd(1,[this,n],[e,r],2,!1)};dn.prototype.jmulAdd=function(e,n,r){return this.curve._wnafMulAdd(1,[this,n],[e,r],2,!0)};dn.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};dn.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};dn.prototype.getX=function(){return this.normalize(),this.x.fromRed()};dn.prototype.getY=function(){return this.normalize(),this.y.fromRed()};dn.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};dn.prototype.eqXToP=function(e){var n=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(n)===0)return!0;for(var r=e.clone(),a=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};dn.prototype.toP=dn.prototype.normalize;dn.prototype.mixedAdd=dn.prototype.add;(function(t){var e=t;e.base=$x,e.short=zhe,e.mont=Vhe,e.edwards=Khe})(iB);var jx={},Hx={},Dt={},Zhe=Fd,Qhe=Gn;Dt.inherits=Qhe;function Xhe(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function Jhe(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),a=0;a>6|192,n[r++]=i&63|128):Xhe(t,a)?(i=65536+((i&1023)<<10)+(t.charCodeAt(++a)&1023),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=i&63|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=i&63|128)}else for(a=0;a>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}Dt.htonl=Yz;function epe(t,e){for(var n="",r=0;r>>0}return i}Dt.join32=tpe;function npe(t,e){for(var n=new Array(t.length*4),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=i&255):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=i&255)}return n}Dt.split32=npe;function rpe(t,e){return t>>>e|t<<32-e}Dt.rotr32=rpe;function ape(t,e){return t<>>32-e}Dt.rotl32=ape;function ipe(t,e){return t+e>>>0}Dt.sum32=ipe;function spe(t,e,n){return t+e+n>>>0}Dt.sum32_3=spe;function ope(t,e,n,r){return t+e+n+r>>>0}Dt.sum32_4=ope;function cpe(t,e,n,r,a){return t+e+n+r+a>>>0}Dt.sum32_5=cpe;function lpe(t,e,n,r){var a=t[e],i=t[e+1],s=r+i>>>0,o=(s>>0,t[e+1]=s}Dt.sum64=lpe;function upe(t,e,n,r){var a=e+r>>>0,i=(a>>0}Dt.sum64_hi=upe;function fpe(t,e,n,r){var a=e+r;return a>>>0}Dt.sum64_lo=fpe;function dpe(t,e,n,r,a,i,s,o){var c=0,h=e;h=h+r>>>0,c+=h>>0,c+=h>>0,c+=h>>0}Dt.sum64_4_hi=dpe;function hpe(t,e,n,r,a,i,s,o){var c=e+r+i+o;return c>>>0}Dt.sum64_4_lo=hpe;function ppe(t,e,n,r,a,i,s,o,c,h){var b=0,v=e;v=v+r>>>0,b+=v>>0,b+=v>>0,b+=v>>0,b+=v>>0}Dt.sum64_5_hi=ppe;function ype(t,e,n,r,a,i,s,o,c,h){var b=e+r+i+o+h;return b>>>0}Dt.sum64_5_lo=ype;function mpe(t,e,n){var r=e<<32-n|t>>>n;return r>>>0}Dt.rotr64_hi=mpe;function bpe(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}Dt.rotr64_lo=bpe;function gpe(t,e,n){return t>>>n}Dt.shr64_hi=gpe;function xpe(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}Dt.shr64_lo=xpe;var o1={},kk=Dt,vpe=Fd;function zx(){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}o1.BlockHash=zx;zx.prototype.update=function(e,n){if(e=kk.toArray(e,n),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=kk.join32(e,0,e.length-r,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>>3}$o.g0_256=Cpe;function Bpe(t){return _o(t,17)^_o(t,19)^t>>>10}$o.g1_256=Bpe;var kp=Dt,Spe=o1,Tpe=$o,f9=kp.rotl32,G1=kp.sum32,Fpe=kp.sum32_5,Mpe=Tpe.ft_1,iG=Spe.BlockHash,Dpe=[1518500249,1859775393,2400959708,3395469782];function Mo(){if(!(this instanceof Mo))return new Mo;iG.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}kp.inherits(Mo,iG);var kpe=Mo;Mo.blockSize=512;Mo.outSize=160;Mo.hmacStrength=80;Mo.padLength=64;Mo.prototype._update=function(e,n){for(var r=this.W,a=0;a<16;a++)r[a]=e[n+a];for(;athis.blockSize&&(e=new this.Hash().update(e).digest()),x1e(e.length<=this.blockSize);for(var n=e.length;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var A1e=xu;xu.prototype._init=function(e,n,r){var a=e.concat(n).concat(r);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(r||[])),this._reseed=1};xu.prototype.generate=function(e,n,r,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(a=r,r=n,n=null),r&&(r=Vf.toArray(r,a||"hex"),this._update(r));for(var i=[];i.length"};var Og=Jc,oB=di,S1e=oB.assert;function Gx(t,e){if(t instanceof Gx)return t;this._importDER(t,e)||(S1e(t.r&&t.s,"Signature without r or s"),this.r=new Og(t.r,16),this.s=new Og(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var T1e=Gx;function F1e(){this.place=0}function y9(t,e){var n=t[e.place++];if(!(n&128))return n;var r=n&15;if(r===0||r>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function Nk(t){for(var e=0,n=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(n|128);--n;)t.push(e>>>(n<<3)&255);t.push(e)}Gx.prototype.toDER=function(e){var n=this.r.toArray(),r=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),r[0]&128&&(r=[0].concat(r)),n=Nk(n),r=Nk(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var a=[2];m9(a,n.length),a=a.concat(n),a.push(2),m9(a,r.length);var i=a.concat(r),s=[48];return m9(s,i.length),s=s.concat(i),oB.encode(s,e)};var qf=Jc,bG=A1e,M1e=di,b9=jx,D1e=Qz,gG=M1e.assert,cB=B1e,Vx=T1e;function Qi(t){if(!(this instanceof Qi))return new Qi(t);typeof t=="string"&&(gG(Object.prototype.hasOwnProperty.call(b9,t),"Unknown curve "+t),t=b9[t]),t instanceof b9.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var k1e=Qi;Qi.prototype.keyPair=function(e){return new cB(this,e)};Qi.prototype.keyFromPrivate=function(e,n){return cB.fromPrivate(this,e,n)};Qi.prototype.keyFromPublic=function(e,n){return cB.fromPublic(this,e,n)};Qi.prototype.genKeyPair=function(e){e||(e={});for(var n=new bG({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||D1e(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new qf(2));;){var i=new qf(n.generate(r));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Qi.prototype._truncateToN=function(e,n){var r=e.byteLength()*8-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e};Qi.prototype.sign=function(e,n,r,a){typeof r=="object"&&(a=r,r=null),a||(a={}),n=this.keyFromPrivate(n,r),e=this._truncateToN(new qf(e,16));for(var i=this.n.byteLength(),s=n.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new bG({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new qf(1)),b=0;;b++){var v=a.k?a.k(b):new qf(c.generate(this.n.byteLength()));if(v=this._truncateToN(v,!0),!(v.cmpn(1)<=0||v.cmp(h)>=0)){var E=this.g.mul(v);if(!E.isInfinity()){var C=E.getX(),F=C.umod(this.n);if(F.cmpn(0)!==0){var T=v.invm(this.n).mul(F.mul(n.getPrivate()).iadd(e));if(T=T.umod(this.n),T.cmpn(0)!==0){var P=(E.getY().isOdd()?1:0)|(C.cmp(F)!==0?2:0);return a.canonical&&T.cmp(this.nh)>0&&(T=this.n.sub(T),P^=1),new Vx({r:F,s:T,recoveryParam:P})}}}}}};Qi.prototype.verify=function(e,n,r,a){e=this._truncateToN(new qf(e,16)),r=this.keyFromPublic(r,a),n=new Vx(n,"hex");var i=n.r,s=n.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),h=o.mul(i).umod(this.n),b;return this.curve._maxwellTrick?(b=this.g.jmulAdd(c,r.getPublic(),h),b.isInfinity()?!1:b.eqXToP(i)):(b=this.g.mulAdd(c,r.getPublic(),h),b.isInfinity()?!1:b.getX().umod(this.n).cmp(i)===0)};Qi.prototype.recoverPubKey=function(t,e,n,r){gG((3&n)===n,"The recovery param is more than two bits"),e=new Vx(e,r);var a=this.n,i=new qf(t),s=e.r,o=e.s,c=n&1,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");h?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var b=e.r.invm(a),v=a.sub(i).mul(b).umod(a),E=o.mul(b).umod(a);return this.g.mulAdd(v,s,E)};Qi.prototype.getKeyRecoveryParam=function(t,e,n,r){if(e=new Vx(e,r),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(t,e,a)}catch{continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var i2=di,xG=i2.assert,$k=i2.parseBytes,u1=i2.cachedProperty;function _r(t,e){this.eddsa=t,this._secret=$k(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=$k(e.pub)}_r.fromPublic=function(e,n){return n instanceof _r?n:new _r(e,{pub:n})};_r.fromSecret=function(e,n){return n instanceof _r?n:new _r(e,{secret:n})};_r.prototype.secret=function(){return this._secret};u1(_r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});u1(_r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});u1(_r,"privBytes",function(){var e=this.eddsa,n=this.hash(),r=e.encodingLength-1,a=n.slice(0,e.encodingLength);return a[0]&=248,a[r]&=127,a[r]|=64,a});u1(_r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});u1(_r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});u1(_r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});_r.prototype.sign=function(e){return xG(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};_r.prototype.verify=function(e,n){return this.eddsa.verify(e,n,this)};_r.prototype.getSecret=function(e){return xG(this._secret,"KeyPair is public only"),i2.encode(this.secret(),e)};_r.prototype.getPublic=function(e){return i2.encode(this.pubBytes(),e)};var I1e=_r,O1e=Jc,qx=di,P1e=qx.assert,Wx=qx.cachedProperty,R1e=qx.parseBytes;function Md(t,e){this.eddsa=t,typeof e!="object"&&(e=R1e(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),P1e(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof O1e&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Wx(Md,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Wx(Md,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Wx(Md,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Wx(Md,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Md.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Md.prototype.toHex=function(){return qx.encode(this.toBytes(),"hex").toUpperCase()};var N1e=Md,$1e=Hx,L1e=jx,Pp=di,U1e=Pp.assert,vG=Pp.parseBytes,wG=I1e,Lk=N1e;function La(t){if(U1e(t==="ed25519","only tested with ed25519 so far"),!(this instanceof La))return new La(t);t=L1e[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=$1e.sha512}var j1e=La;La.prototype.sign=function(e,n){e=vG(e);var r=this.keyFromSecret(n),a=this.hashInt(r.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,r.pubBytes(),e).mul(r.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};La.prototype.verify=function(e,n,r){e=vG(e),n=this.makeSignature(n);var a=this.keyFromPublic(r),i=this.hashInt(n.Rencoded(),a.pubBytes(),e),s=this.g.mul(n.S()),o=n.R().add(a.pub().mul(i));return o.eq(s)};La.prototype.hashInt=function(){for(var e=this.hash(),n=0;n=0)return null;n=n.toRed(kt.red);let r=n.redSqr().redIMul(n).redIAdd(kt.b).redSqrt();return t===3!==r.isOdd()&&(r=r.redNeg()),eo.keyPair({pub:{x:n,y:r}})}function G1e(t,e,n){let r=new nn(e),a=new nn(n);if(r.cmp(kt.p)>=0||a.cmp(kt.p)>=0||(r=r.toRed(kt.red),a=a.toRed(kt.red),(t===6||t===7)&&a.isOdd()!==(t===7)))return null;const i=r.redSqr().redIMul(r);return a.redSqr().redISub(i.redIAdd(kt.b)).isZero()?eo.keyPair({pub:{x:r,y:a}}):null}function ol(t){const e=t[0];switch(e){case 2:case 3:return t.length!==33?null:z1e(e,t.subarray(1,33));case 4:case 6:case 7:return t.length!==65?null:G1e(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function ju(t,e){const n=e.encode(null,t.length===33);for(let r=0;r=0||(n.iadd(new nn(t)),n.cmp(kt.n)>=0&&n.isub(kt.n),n.isZero()))return 1;const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakMul(t,e){let n=new nn(e);if(n.cmp(kt.n)>=0||n.isZero())return 1;n.imul(new nn(t)),n.cmp(kt.n)>=0&&(n=n.umod(kt.n));const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},publicKeyVerify(t){return ol(t)===null?1:0},publicKeyCreate(t,e){const n=new nn(e);if(n.cmp(kt.n)>=0||n.isZero())return 1;const r=eo.keyFromPrivate(e).getPublic();return ju(t,r),0},publicKeyConvert(t,e){const n=ol(e);if(n===null)return 1;const r=n.getPublic();return ju(t,r),0},publicKeyNegate(t,e){const n=ol(e);if(n===null)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),ju(t,r),0},publicKeyCombine(t,e){const n=new Array(e.length);for(let a=0;a=0)return 2;const a=r.getPublic().add(kt.g.mul(n));return a.isInfinity()?2:(ju(t,a),0)},publicKeyTweakMul(t,e,n){const r=ol(e);if(r===null)return 1;if(n=new nn(n),n.cmp(kt.n)>=0||n.isZero())return 2;const a=r.getPublic().mul(n);return ju(t,a),0},signatureNormalize(t){const e=new nn(t.subarray(0,32)),n=new nn(t.subarray(32,64));return e.cmp(kt.n)>=0||n.cmp(kt.n)>=0?1:(n.cmp(eo.nh)===1&&t.set(kt.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){const n=e.subarray(0,32),r=e.subarray(32,64);if(new nn(n).cmp(kt.n)>=0||new nn(r).cmp(kt.n)>=0)return 1;const{output:a}=t;let i=a.subarray(4,37);i[0]=0,i.set(n,1);let s=33,o=0;for(;s>1&&i[o]===0&&!(i[o+1]&128);--s,++o);if(i=i.subarray(o),i[0]&128||s>1&&i[0]===0&&!(i[1]&128))return 1;let c=a.subarray(39,72);c[0]=0,c.set(r,1);let h=33,b=0;for(;h>1&&c[b]===0&&!(c[b+1]&128);--h,++b);return c=c.subarray(b),c[0]&128||h>1&&c[0]===0&&!(c[1]&128)?1:(t.outputlen=6+s+h,a[0]=48,a[1]=t.outputlen-2,a[2]=2,a[3]=i.length,a.set(i,4),a[4+s]=2,a[5+s]=c.length,a.set(c,6+s),0)},signatureImport(t,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;const n=e[3];if(n===0||5+n>=e.length||e[4+n]!==2)return 1;const r=e[5+n];if(r===0||6+n+r!==e.length||e[4]&128||n>1&&e[4]===0&&!(e[5]&128)||e[n+6]&128||r>1&&e[n+6]===0&&!(e[n+7]&128))return 1;let a=e.subarray(4,4+n);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let i=e.subarray(6+n);if(i.length===33&&i[0]===0&&(i=i.slice(1)),i.length>32)throw new Error("S length is too long");let s=new nn(a);s.cmp(kt.n)>=0&&(s=new nn(0));let o=new nn(e.subarray(6+n));return o.cmp(kt.n)>=0&&(o=new nn(0)),t.set(s.toArrayLike(Uint8Array,"be",32),0),t.set(o.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,n,r,a){if(a){const o=a;a=c=>{const h=o(e,n,null,r,c);if(!(h instanceof Uint8Array&&h.length===32))throw new Error("This is the way");return new nn(h)}}const i=new nn(n);if(i.cmp(kt.n)>=0||i.isZero())return 1;let s;try{s=eo.sign(e,n,{canonical:!0,k:a,pers:r})}catch{return 1}return t.signature.set(s.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(s.s.toArrayLike(Uint8Array,"be",32),32),t.recid=s.recoveryParam,0},ecdsaVerify(t,e,n){const r={r:t.subarray(0,32),s:t.subarray(32,64)},a=new nn(r.r),i=new nn(r.s);if(a.cmp(kt.n)>=0||i.cmp(kt.n)>=0)return 1;if(i.cmp(eo.nh)===1||a.isZero()||i.isZero())return 3;const s=ol(n);if(s===null)return 2;const o=s.getPublic();return eo.verify(e,r,o)?0:3},ecdsaRecover(t,e,n,r){const a={r:e.slice(0,32),s:e.slice(32,64)},i=new nn(a.r),s=new nn(a.s);if(i.cmp(kt.n)>=0||s.cmp(kt.n)>=0)return 1;if(i.isZero()||s.isZero())return 2;let o;try{o=eo.recoverPubKey(r,a,n)}catch{return 2}return ju(t,o),0},ecdh(t,e,n,r,a,i,s){const o=ol(e);if(o===null)return 1;const c=new nn(n);if(c.cmp(kt.n)>=0||c.isZero())return 2;const h=o.getPublic().mul(c);if(a===void 0){const b=h.encode(null,!0),v=eo.hash().update(b).digest();for(let E=0;E<32;++E)t[E]=v[E]}else{i||(i=new Uint8Array(32));const b=h.getX().toArray("be",32);for(let F=0;F<32;++F)i[F]=b[F];s||(s=new Uint8Array(32));const v=h.getY().toArray("be",32);for(let F=0;F<32;++F)s[F]=v[F];const E=a(i,s,r);if(!(E instanceof Uint8Array&&E.length===t.length))return 2;t.set(E)}return 0}};const Ut={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function Di(t,e){if(!t)throw new Error(e)}function It(t,e,n){if(Di(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),n!==void 0)if(Array.isArray(n)){const r=n.join(", "),a=`Expected ${t} to be an Uint8Array with length [${r}]`;Di(n.includes(e.length),a)}else{const r=`Expected ${t} to be an Uint8Array with length ${n}`;Di(e.length===n,r)}}function Hu(t){Di(x0(t)==="Boolean","Expected compressed to be a Boolean")}function is(t=n=>new Uint8Array(n),e){return typeof t=="function"&&(t=t(e)),It("output",t,e),t}function x0(t){return Object.prototype.toString.call(t).slice(8,-1)}var q1e=t=>({contextRandomize(e){switch(Di(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&It("seed",e,32),t.contextRandomize(e)){case 1:throw new Error(Ut.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return It("private key",e,32),t.privateKeyVerify(e)===0},privateKeyNegate(e){switch(It("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error(Ut.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,n){switch(It("private key",e,32),It("tweak",n,32),t.privateKeyTweakAdd(e,n)){case 0:return e;case 1:throw new Error(Ut.TWEAK_ADD)}},privateKeyTweakMul(e,n){switch(It("private key",e,32),It("tweak",n,32),t.privateKeyTweakMul(e,n)){case 0:return e;case 1:throw new Error(Ut.TWEAK_MUL)}},publicKeyVerify(e){return It("public key",e,[33,65]),t.publicKeyVerify(e)===0},publicKeyCreate(e,n=!0,r){switch(It("private key",e,32),Hu(n),r=is(r,n?33:65),t.publicKeyCreate(r,e)){case 0:return r;case 1:throw new Error(Ut.SECKEY_INVALID);case 2:throw new Error(Ut.PUBKEY_SERIALIZE)}},publicKeyConvert(e,n=!0,r){switch(It("public key",e,[33,65]),Hu(n),r=is(r,n?33:65),t.publicKeyConvert(r,e)){case 0:return r;case 1:throw new Error(Ut.PUBKEY_PARSE);case 2:throw new Error(Ut.PUBKEY_SERIALIZE)}},publicKeyNegate(e,n=!0,r){switch(It("public key",e,[33,65]),Hu(n),r=is(r,n?33:65),t.publicKeyNegate(r,e)){case 0:return r;case 1:throw new Error(Ut.PUBKEY_PARSE);case 2:throw new Error(Ut.IMPOSSIBLE_CASE);case 3:throw new Error(Ut.PUBKEY_SERIALIZE)}},publicKeyCombine(e,n=!0,r){Di(Array.isArray(e),"Expected public keys to be an Array"),Di(e.length>0,"Expected public keys array will have more than zero items");for(const a of e)It("public key",a,[33,65]);switch(Hu(n),r=is(r,n?33:65),t.publicKeyCombine(r,e)){case 0:return r;case 1:throw new Error(Ut.PUBKEY_PARSE);case 2:throw new Error(Ut.PUBKEY_COMBINE);case 3:throw new Error(Ut.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,n,r=!0,a){switch(It("public key",e,[33,65]),It("tweak",n,32),Hu(r),a=is(a,r?33:65),t.publicKeyTweakAdd(a,e,n)){case 0:return a;case 1:throw new Error(Ut.PUBKEY_PARSE);case 2:throw new Error(Ut.TWEAK_ADD)}},publicKeyTweakMul(e,n,r=!0,a){switch(It("public key",e,[33,65]),It("tweak",n,32),Hu(r),a=is(a,r?33:65),t.publicKeyTweakMul(a,e,n)){case 0:return a;case 1:throw new Error(Ut.PUBKEY_PARSE);case 2:throw new Error(Ut.TWEAK_MUL)}},signatureNormalize(e){switch(It("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error(Ut.SIG_PARSE)}},signatureExport(e,n){It("signature",e,64),n=is(n,72);const r={output:n,outputlen:72};switch(t.signatureExport(r,e)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(Ut.SIG_PARSE);case 2:throw new Error(Ut.IMPOSSIBLE_CASE)}},signatureImport(e,n){switch(It("signature",e),n=is(n,64),t.signatureImport(n,e)){case 0:return n;case 1:throw new Error(Ut.SIG_PARSE);case 2:throw new Error(Ut.IMPOSSIBLE_CASE)}},ecdsaSign(e,n,r={},a){It("message",e,32),It("private key",n,32),Di(x0(r)==="Object","Expected options to be an Object"),r.data!==void 0&&It("options.data",r.data),r.noncefn!==void 0&&Di(x0(r.noncefn)==="Function","Expected options.noncefn to be a Function"),a=is(a,64);const i={signature:a,recid:null};switch(t.ecdsaSign(i,e,n,r.data,r.noncefn)){case 0:return i;case 1:throw new Error(Ut.SIGN);case 2:throw new Error(Ut.IMPOSSIBLE_CASE)}},ecdsaVerify(e,n,r){switch(It("signature",e,64),It("message",n,32),It("public key",r,[33,65]),t.ecdsaVerify(e,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(Ut.SIG_PARSE);case 2:throw new Error(Ut.PUBKEY_PARSE)}},ecdsaRecover(e,n,r,a=!0,i){switch(It("signature",e,64),Di(x0(n)==="Number"&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),It("message",r,32),Hu(a),i=is(i,a?33:65),t.ecdsaRecover(i,e,n,r)){case 0:return i;case 1:throw new Error(Ut.SIG_PARSE);case 2:throw new Error(Ut.RECOVER);case 3:throw new Error(Ut.IMPOSSIBLE_CASE)}},ecdh(e,n,r={},a){switch(It("public key",e,[33,65]),It("private key",n,32),Di(x0(r)==="Object","Expected options to be an Object"),r.data!==void 0&&It("options.data",r.data),r.hashfn!==void 0?(Di(x0(r.hashfn)==="Function","Expected options.hashfn to be a Function"),r.xbuf!==void 0&&It("options.xbuf",r.xbuf,32),r.ybuf!==void 0&&It("options.ybuf",r.ybuf,32),It("output",a)):a=is(a,32),t.ecdh(a,e,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return a;case 1:throw new Error(Ut.PUBKEY_PARSE);case 2:throw new Error(Ut.ECDH)}}}),Uk=q1e(V1e),Kx={},cE={exports:{}},lE={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(t,e){var n=Xc,r=n.Buffer;function a(s,o){for(var c in s)o[c]=s[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=i);function i(s,o,c){return r(s,o,c)}i.prototype=Object.create(r.prototype),a(r,i),i.from=function(s,o,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,o,c)},i.alloc=function(s,o,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var h=r(s);return o!==void 0?typeof c=="string"?h.fill(o,c):h.fill(o):h.fill(0),h},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}})(lE,lE.exports);var es=lE.exports,jk={},g9=65536,W1e=4294967295;function K1e(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var Z1e=es.Buffer,Pg=jk.crypto||jk.msCrypto;Pg&&Pg.getRandomValues?cE.exports=Q1e:cE.exports=K1e;function Q1e(t,e){if(t>W1e)throw new RangeError("requested too many random bytes");var n=Z1e.allocUnsafe(t);if(t>0)if(t>g9)for(var r=0;r0&&F[F.length-1])&&(M[0]===6||M[0]===2)){v=0;continue}if(M[0]===3&&(!F||M[1]>F[0]&&M[1]=0})}rn.arrayContainsArray=tye;function nye(t){var e="",n=0,r=t.length;for(t.substring(0,2)==="0x"&&(n=2);n=u.length&&(u=void 0),{value:u&&u[l++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},n=he&&he.__read||function(u,d){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var l=p.call(u),y,g=[],w;try{for(;(d===void 0||d-- >0)&&!(y=l.next()).done;)g.push(y.value)}catch(x){w={error:x}}finally{try{y&&!y.done&&(p=l.return)&&p.call(l)}finally{if(w)throw w.error}}return g};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var r=Na,a=rn,i=ni,s=function(u){if(!Number.isSafeInteger(u)||u<0)throw new Error("Received an invalid integer type: ".concat(u));return"0x".concat(u.toString(16))};t.intToHex=s;var o=function(u){var d=(0,t.intToHex)(u);return Buffer.from((0,a.padToEven)(d.slice(2)),"hex")};t.intToBuffer=o;var c=function(u){return Buffer.allocUnsafe(u).fill(0)};t.zeros=c;var h=function(u,d,p){var l=(0,t.zeros)(d);return p?u.length0&&d.toString()==="0";)u=u.slice(1),d=u[0];return u},C=function(u){return(0,i.assertIsBuffer)(u),E(u)};t.unpadBuffer=C;var F=function(u){return(0,i.assertIsArray)(u),E(u)};t.unpadArray=F;var T=function(u){return(0,i.assertIsHexString)(u),u=(0,a.stripHexPrefix)(u),E(u)};t.unpadHexString=T;var P=function(u){if(u==null)return Buffer.allocUnsafe(0);if(Buffer.isBuffer(u)||Array.isArray(u)||u instanceof Uint8Array)return Buffer.from(u);if(typeof u=="string"){if(!(0,a.isHexString)(u))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(u));return Buffer.from((0,a.padToEven)((0,a.stripHexPrefix)(u)),"hex")}if(typeof u=="number")return(0,t.intToBuffer)(u);if(r.BN.isBN(u)){if(u.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(u));return u.toArrayLike(Buffer)}if(u.toArray)return Buffer.from(u.toArray());if(u.toBuffer)return Buffer.from(u.toBuffer());throw new Error("invalid type")};t.toBuffer=P;var D=function(u){return new r.BN((0,t.toBuffer)(u)).toNumber()};t.bufferToInt=D;var M=function(u){return u=(0,t.toBuffer)(u),"0x"+u.toString("hex")};t.bufferToHex=M;var O=function(u){return new r.BN(u).fromTwos(256)};t.fromSigned=O;var k=function(u){return Buffer.from(u.toTwos(256).toArray())};t.toUnsigned=k;var U=function(u){return typeof u!="string"||(0,a.isHexPrefixed)(u)?u:"0x"+u};t.addHexPrefix=U;var V=function(u){var d=/^(00)+|(00)+$/g;if(u=(0,a.stripHexPrefix)(u),u.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var p=Buffer.from(u.replace(d,""),"hex");return p.toString("utf8")};t.toUtf8=V;var Y=function(u){if(Buffer.isBuffer(u))return"0x".concat(u.toString("hex"));if(u instanceof Array){for(var d=[],p=0;p0&&x[0]===0)throw new Error("".concat(w," cannot have leading zeroes, received: ").concat(x.toString("hex")))}}catch(f){d={error:f}}finally{try{y&&!y.done&&(p=l.return)&&p.call(l)}finally{if(d)throw d.error}}};t.validateNoLeadingZeroes=L;function X(u){return Array.isArray(u)?u.map(function(d){return X(d)}):Buffer.from(u)}t.arrToBufArr=X;function B(u){return Array.isArray(u)?u.map(function(d){return B(d)}):Uint8Array.from(u??[])}t.bufArrToArr=B})(Fu);var Zx={},f1={},lB={};Object.defineProperty(lB,"__esModule",{value:!0});function dye(t){return function(e){var n=t();return n.update(e),Buffer.from(n.digest())}}lB.createHashFunction=dye;var BG={};const Hk=[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];BG.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],r=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],i=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],o=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],b=t[8]^t[18]^t[28]^t[38]^t[48],v=t[9]^t[19]^t[29]^t[39]^t[49];let E=b^(a<<1|i>>>31),C=v^(i<<1|a>>>31);const F=t[0]^E,T=t[1]^C,P=t[10]^E,D=t[11]^C,M=t[20]^E,O=t[21]^C,k=t[30]^E,U=t[31]^C,V=t[40]^E,Y=t[41]^C;E=n^(s<<1|o>>>31),C=r^(o<<1|s>>>31);const L=t[2]^E,X=t[3]^C,B=t[12]^E,u=t[13]^C,d=t[22]^E,p=t[23]^C,l=t[32]^E,y=t[33]^C,g=t[42]^E,w=t[43]^C;E=a^(c<<1|h>>>31),C=i^(h<<1|c>>>31);const x=t[4]^E,f=t[5]^C,m=t[14]^E,_=t[15]^C,A=t[24]^E,S=t[25]^C,$=t[34]^E,q=t[35]^C,I=t[44]^E,K=t[45]^C;E=s^(b<<1|v>>>31),C=o^(v<<1|b>>>31);const z=t[6]^E,Q=t[7]^C,ue=t[16]^E,fe=t[17]^C,G=t[26]^E,j=t[27]^C,ne=t[36]^E,se=t[37]^C,J=t[46]^E,R=t[47]^C;E=c^(n<<1|r>>>31),C=h^(r<<1|n>>>31);const N=t[8]^E,Z=t[9]^C,ae=t[18]^E,pe=t[19]^C,W=t[28]^E,ee=t[29]^C,ie=t[38]^E,me=t[39]^C,be=t[48]^E,ye=t[49]^C,Fe=F,Se=T,Ee=D<<4|P>>>28,Qe=P<<4|D>>>28,$e=M<<3|O>>>29,Oe=O<<3|M>>>29,at=U<<9|k>>>23,qe=k<<9|U>>>23,Le=V<<18|Y>>>14,xt=Y<<18|V>>>14,Je=L<<1|X>>>31,He=X<<1|L>>>31,At=u<<12|B>>>20,ce=B<<12|u>>>20,de=d<<10|p>>>22,Ce=p<<10|d>>>22,_e=y<<13|l>>>19,Ae=l<<13|y>>>19,Xe=g<<2|w>>>30,Me=w<<2|g>>>30,Be=f<<30|x>>>2,ze=x<<30|f>>>2,Pe=m<<6|_>>>26,Ie=_<<6|m>>>26,Ye=S<<11|A>>>21,Ue=A<<11|S>>>21,De=$<<15|q>>>17,ot=q<<15|$>>>17,We=K<<29|I>>>3,je=I<<29|K>>>3,vt=z<<28|Q>>>4,Ke=Q<<28|z>>>4,Ne=fe<<23|ue>>>9,ht=ue<<23|fe>>>9,pt=G<<25|j>>>7,yt=j<<25|G>>>7,Qt=ne<<21|se>>>11,Gt=se<<21|ne>>>11,ct=R<<24|J>>>8,Tt=J<<24|R>>>8,mt=N<<27|Z>>>5,Nt=Z<<27|N>>>5,Cn=ae<<20|pe>>>12,Pn=pe<<20|ae>>>12,Qn=ee<<7|W>>>25,Xn=W<<7|ee>>>25,Jn=ie<<8|me>>>24,Yn=me<<8|ie>>>24,er=be<<14|ye>>>18,tr=ye<<14|be>>>18;t[0]=Fe^~At&Ye,t[1]=Se^~ce&Ue,t[10]=vt^~Cn&$e,t[11]=Ke^~Pn&Oe,t[20]=Je^~Pe&pt,t[21]=He^~Ie&yt,t[30]=mt^~Ee&de,t[31]=Nt^~Qe&Ce,t[40]=Be^~Ne&Qn,t[41]=ze^~ht&Xn,t[2]=At^~Ye&Qt,t[3]=ce^~Ue&Gt,t[12]=Cn^~$e&_e,t[13]=Pn^~Oe&Ae,t[22]=Pe^~pt&Jn,t[23]=Ie^~yt&Yn,t[32]=Ee^~de&De,t[33]=Qe^~Ce&ot,t[42]=Ne^~Qn&at,t[43]=ht^~Xn&qe,t[4]=Ye^~Qt&er,t[5]=Ue^~Gt&tr,t[14]=$e^~_e&We,t[15]=Oe^~Ae&je,t[24]=pt^~Jn&Le,t[25]=yt^~Yn&xt,t[34]=de^~De&ct,t[35]=Ce^~ot&Tt,t[44]=Qn^~at&Xe,t[45]=Xn^~qe&Me,t[6]=Qt^~er&Fe,t[7]=Gt^~tr&Se,t[16]=_e^~We&vt,t[17]=Ae^~je&Ke,t[26]=Jn^~Le&Je,t[27]=Yn^~xt&He,t[36]=De^~ct&mt,t[37]=ot^~Tt&Nt,t[46]=at^~Xe&Be,t[47]=qe^~Me&ze,t[8]=er^~Fe&At,t[9]=tr^~Se&ce,t[18]=We^~vt&Cn,t[19]=je^~Ke&Pn,t[28]=Le^~Je&Pe,t[29]=xt^~He&Ie,t[38]=ct^~mt&Ee,t[39]=Tt^~Nt&Qe,t[48]=Xe^~Be&Ne,t[49]=Me^~ze&ht,t[0]^=Hk[e*2],t[1]^=Hk[e*2+1]}};const Rg=BG;function d1(){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}d1.prototype.initialize=function(t,e){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};d1.prototype.absorb=function(t){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Rg.p1600(this.state),this.count=0);return e};d1.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};var hye=d1,uE={exports:{}},uB={exports:{}},ah=typeof Reflect=="object"?Reflect:null,zk=ah&&typeof ah.apply=="function"?ah.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},_6;ah&&typeof ah.ownKeys=="function"?_6=ah.ownKeys:Object.getOwnPropertySymbols?_6=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:_6=function(e){return Object.getOwnPropertyNames(e)};function pye(t){console&&console.warn&&console.warn(t)}var SG=Number.isNaN||function(e){return e!==e};function tn(){tn.init.call(this)}uB.exports=tn;uB.exports.once=gye;tn.EventEmitter=tn;tn.prototype._events=void 0;tn.prototype._eventsCount=0;tn.prototype._maxListeners=void 0;var Gk=10;function Qx(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(tn,"defaultMaxListeners",{enumerable:!0,get:function(){return Gk},set:function(t){if(typeof t!="number"||t<0||SG(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Gk=t}});tn.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};tn.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||SG(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 TG(t){return t._maxListeners===void 0?tn.defaultMaxListeners:t._maxListeners}tn.prototype.getMaxListeners=function(){return TG(this)};tn.prototype.emit=function(e){for(var n=[],r=1;r0&&(s=n[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")zk(c,this,n);else for(var h=c.length,b=IG(c,h),r=0;r0&&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=t,o.type=e,o.count=s.length,pye(o)}return t}tn.prototype.addListener=function(e,n){return FG(this,e,n,!1)};tn.prototype.on=tn.prototype.addListener;tn.prototype.prependListener=function(e,n){return FG(this,e,n,!0)};function yye(){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 MG(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},a=yye.bind(r);return a.listener=n,r.wrapFn=a,a}tn.prototype.once=function(e,n){return Qx(n),this.on(e,MG(this,e,n)),this};tn.prototype.prependOnceListener=function(e,n){return Qx(n),this.prependListener(e,MG(this,e,n)),this};tn.prototype.removeListener=function(e,n){var r,a,i,s,o;if(Qx(n),a=this._events,a===void 0)return this;if(r=a[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){o=r[s].listener,i=s;break}if(i<0)return this;i===0?r.shift():mye(r,i),r.length===1&&(a[e]=r[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||n)}return this};tn.prototype.off=tn.prototype.removeListener;tn.prototype.removeAllListeners=function(e){var n,r,a;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var i=Object.keys(r),s;for(a=0;a=0;a--)this.removeListener(e,n[a]);return this};function DG(t,e,n){var r=t._events;if(r===void 0)return[];var a=r[e];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?bye(a):IG(a,a.length)}tn.prototype.listeners=function(e){return DG(this,e,!0)};tn.prototype.rawListeners=function(e){return DG(this,e,!1)};tn.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):kG.call(t,e)};tn.prototype.listenerCount=kG;function kG(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}tn.prototype.eventNames=function(){return this._eventsCount>0?_6(this._events):[]};function IG(t,e){for(var n=new Array(e),r=0;r0?this.tail.next=D:this.head=D,this.tail=D,++this.length}},{key:"unshift",value:function(P){var D={data:P,next:this.head};this.length===0&&(this.tail=D),this.head=D,++this.length}},{key:"shift",value:function(){if(this.length!==0){var P=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,P}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(P){if(this.length===0)return"";for(var D=this.head,M=""+D.data;D=D.next;)M+=P+D.data;return M}},{key:"concat",value:function(P){if(this.length===0)return h.alloc(0);for(var D=h.allocUnsafe(P>>>0),M=this.head,O=0;M;)C(M.data,D,O),O+=M.data.length,M=M.next;return D}},{key:"consume",value:function(P,D){var M;return Pk.length?k.length:P;if(U===k.length?O+=k:O+=k.slice(0,P),P-=U,P===0){U===k.length?(++M,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=k.slice(U));break}++M}return this.length-=M,O}},{key:"_getBuffer",value:function(P){var D=h.allocUnsafe(P),M=this.head,O=1;for(M.data.copy(D),P-=M.data.length;M=M.next;){var k=M.data,U=P>k.length?k.length:P;if(k.copy(D,D.length-P,0,U),P-=U,P===0){U===k.length?(++O,M.next?this.head=M.next:this.head=this.tail=null):(this.head=M,M.data=k.slice(U));break}++O}return this.length-=O,D}},{key:E,value:function(P,D){return v(this,e(e({},D),{},{depth:0,customInspect:!1}))}}]),F}(),x9}function wye(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(fE,this,t)):process.nextTick(fE,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(i){!e&&i?n._writableState?n._writableState.errorEmitted?process.nextTick(C6,n):(n._writableState.errorEmitted=!0,process.nextTick(qk,n,i)):process.nextTick(qk,n,i):e?(process.nextTick(C6,n),e(i)):process.nextTick(C6,n)}),this)}function qk(t,e){fE(t,e),C6(t)}function C6(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function Eye(){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 fE(t,e){t.emit("error",e)}function Aye(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}var RG={destroy:wye,undestroy:Eye,errorOrDestroy:Aye},Dd={};function _ye(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var NG={};function ts(t,e,n){n||(n=Error);function r(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){_ye(s,i);function s(o,c,h){return i.call(this,r(o,c,h))||this}return s}(n);a.prototype.name=n.name,a.prototype.code=t,NG[t]=a}function Wk(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(r){return String(r)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:n===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function Cye(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function Bye(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function Sye(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}ts("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);ts("ERR_INVALID_ARG_TYPE",function(t,e,n){var r;typeof e=="string"&&Cye(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be";var a;if(Bye(t," argument"))a="The ".concat(t," ").concat(r," ").concat(Wk(e,"type"));else{var i=Sye(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(i," ").concat(r," ").concat(Wk(e,"type"))}return a+=". Received type ".concat(typeof n),a},TypeError);ts("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ts("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});ts("ERR_STREAM_PREMATURE_CLOSE","Premature close");ts("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});ts("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ts("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ts("ERR_STREAM_WRITE_AFTER_END","write after end");ts("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ts("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);ts("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Dd.codes=NG;var Tye=Dd.codes.ERR_INVALID_OPT_VALUE;function Fye(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function Mye(t,e,n,r){var a=Fye(e,r,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=r?n:"highWaterMark";throw new Tye(i,a)}return Math.floor(a)}return t.objectMode?16:16*1024}var $G={getHighWaterMark:Mye},Kk={},Dye=kye;function kye(t,e){if(v9("noDeprecation"))return t;var n=!1;function r(){if(!n){if(v9("throwDeprecation"))throw new Error(e);v9("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return r}function v9(t){try{if(!Kk.localStorage)return!1}catch{return!1}var e=Kk.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var w9,Zk;function LG(){if(Zk)return w9;Zk=1;var t={};w9=X;function e(K){var z=this;this.next=null,this.entry=null,this.finish=function(){I(z,K)}}var n;X.WritableState=Y;var r={deprecate:Dye},a=PG,i=Xc.Buffer,s=(typeof t<"u"?t:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(K){return i.from(K)}function c(K){return i.isBuffer(K)||K instanceof s}var h=RG,b=$G,v=b.getHighWaterMark,E=Dd.codes,C=E.ERR_INVALID_ARG_TYPE,F=E.ERR_METHOD_NOT_IMPLEMENTED,T=E.ERR_MULTIPLE_CALLBACK,P=E.ERR_STREAM_CANNOT_PIPE,D=E.ERR_STREAM_DESTROYED,M=E.ERR_STREAM_NULL_VALUES,O=E.ERR_STREAM_WRITE_AFTER_END,k=E.ERR_UNKNOWN_ENCODING,U=h.errorOrDestroy;Gn(X,a);function V(){}function Y(K,z,Q){n=n||Rp(),K=K||{},typeof Q!="boolean"&&(Q=z instanceof n),this.objectMode=!!K.objectMode,Q&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=v(this,K,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ue=K.decodeStrings===!1;this.decodeStrings=!ue,this.defaultEncoding=K.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(fe){w(z,fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var z=this.bufferedRequest,Q=[];z;)Q.push(z),z=z.next;return Q},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(X,Symbol.hasInstance,{value:function(z){return L.call(this,z)?!0:this!==X?!1:z&&z._writableState instanceof Y}})):L=function(z){return z instanceof this};function X(K){n=n||Rp();var z=this instanceof n;if(!z&&!L.call(X,this))return new X(K);this._writableState=new Y(K,this,z),this.writable=!0,K&&(typeof K.write=="function"&&(this._write=K.write),typeof K.writev=="function"&&(this._writev=K.writev),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.final=="function"&&(this._final=K.final)),a.call(this)}X.prototype.pipe=function(){U(this,new P)};function B(K,z){var Q=new O;U(K,Q),process.nextTick(z,Q)}function u(K,z,Q,ue){var fe;return Q===null?fe=new M:typeof Q!="string"&&!z.objectMode&&(fe=new C("chunk",["string","Buffer"],Q)),fe?(U(K,fe),process.nextTick(ue,fe),!1):!0}X.prototype.write=function(K,z,Q){var ue=this._writableState,fe=!1,G=!ue.objectMode&&c(K);return G&&!i.isBuffer(K)&&(K=o(K)),typeof z=="function"&&(Q=z,z=null),G?z="buffer":z||(z=ue.defaultEncoding),typeof Q!="function"&&(Q=V),ue.ending?B(this,Q):(G||u(this,ue,K,Q))&&(ue.pendingcb++,fe=p(this,ue,G,K,z,Q)),fe},X.prototype.cork=function(){this._writableState.corked++},X.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,!K.writing&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&m(this,K))},X.prototype.setDefaultEncoding=function(z){if(typeof z=="string"&&(z=z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((z+"").toLowerCase())>-1))throw new k(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function d(K,z,Q){return!K.objectMode&&K.decodeStrings!==!1&&typeof z=="string"&&(z=i.from(z,Q)),z}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p(K,z,Q,ue,fe,G){if(!Q){var j=d(z,ue,fe);ue!==j&&(Q=!0,fe="buffer",ue=j)}var ne=z.objectMode?1:ue.length;z.length+=ne;var se=z.length>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function Pye(t,e,n){var r=e.length-1;if(r=0?(a>0&&(t.lastNeed=a-1),a):--r=0?(a>0&&(t.lastNeed=a-2),a):--r=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function Rye(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function Nye(t){var e=this.lastTotal-this.lastNeed,n=Rye(this,t);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function $ye(t,e){var n=Pye(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function Lye(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function Uye(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function jye(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function Hye(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function zye(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Gye(t){return t.toString(this.encoding)}function Vye(t){return t&&t.length?this.write(t):""}var Jk=Dd.codes.ERR_STREAM_PREMATURE_CLOSE;function qye(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),a=0;a0)if(typeof j!="string"&&!R.objectMode&&Object.getPrototypeOf(j)!==a.prototype&&(j=s(j)),se)R.endEmitted?V(G,new M):d(G,R,j,!0);else if(R.ended)V(G,new P);else{if(R.destroyed)return!1;R.reading=!1,R.decoder&&!ne?(j=R.decoder.write(j),R.objectMode||j.length!==0?d(G,R,j,!1):m(G,R)):d(G,R,j,!1)}else se||(R.reading=!1,m(G,R))}return!R.ended&&(R.length=l?G=l:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}function g(G,j){return G<=0||j.length===0&&j.ended?0:j.objectMode?1:G!==G?j.flowing&&j.length?j.buffer.head.data.length:j.length:(G>j.highWaterMark&&(j.highWaterMark=y(G)),G<=j.length?G:j.ended?j.length:(j.needReadable=!0,0))}B.prototype.read=function(G){h("read",G),G=parseInt(G,10);var j=this._readableState,ne=G;if(G!==0&&(j.emittedReadable=!1),G===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return h("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?Q(this):x(this),null;if(G=g(G,j),G===0&&j.ended)return j.length===0&&Q(this),null;var se=j.needReadable;h("need readable",se),(j.length===0||j.length-G0?J=z(G,j):J=null,J===null?(j.needReadable=j.length<=j.highWaterMark,G=0):(j.length-=G,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),ne!==G&&j.ended&&Q(this)),J!==null&&this.emit("data",J),J};function w(G,j){if(h("onEofChunk"),!j.ended){if(j.decoder){var ne=j.decoder.end();ne&&ne.length&&(j.buffer.push(ne),j.length+=j.objectMode?1:ne.length)}j.ended=!0,j.sync?x(G):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,f(G)))}}function x(G){var j=G._readableState;h("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(h("emitReadable",j.flowing),j.emittedReadable=!0,process.nextTick(f,G))}function f(G){var j=G._readableState;h("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(G.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,K(G)}function m(G,j){j.readingMore||(j.readingMore=!0,process.nextTick(_,G,j))}function _(G,j){for(;!j.reading&&!j.ended&&(j.length1&&fe(se.pipes,G)!==-1)&&!pe&&(h("false write response, pause",se.awaitDrain),se.awaitDrain++),ne.pause())}function ie(Fe){h("onerror",Fe),ye(),G.removeListener("error",ie),n(G,"error")===0&&V(G,Fe)}L(G,"error",ie);function me(){G.removeListener("finish",be),ye()}G.once("close",me);function be(){h("onfinish"),G.removeListener("close",me),ye()}G.once("finish",be);function ye(){h("unpipe"),ne.unpipe(G)}return G.emit("pipe",ne),se.flowing||(h("pipe resume"),ne.resume()),G};function A(G){return function(){var ne=G._readableState;h("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&n(G,"data")&&(ne.flowing=!0,K(G))}}B.prototype.unpipe=function(G){var j=this._readableState,ne={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return G&&G!==j.pipes?this:(G||(G=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,G&&G.emit("unpipe",this,ne),this);if(!G){var se=j.pipes,J=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var R=0;R0,se.flowing!==!1&&this.resume()):G==="readable"&&!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.flowing=!1,se.emittedReadable=!1,h("on readable",se.length,se.reading),se.length?x(this):se.reading||process.nextTick($,this)),ne},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(G,j){var ne=r.prototype.removeListener.call(this,G,j);return G==="readable"&&process.nextTick(S,this),ne},B.prototype.removeAllListeners=function(G){var j=r.prototype.removeAllListeners.apply(this,arguments);return(G==="readable"||G===void 0)&&process.nextTick(S,this),j};function S(G){var j=G._readableState;j.readableListening=G.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:G.listenerCount("data")>0&&G.resume()}function $(G){h("readable nexttick read 0"),G.read(0)}B.prototype.resume=function(){var G=this._readableState;return G.flowing||(h("resume"),G.flowing=!G.readableListening,q(this,G)),G.paused=!1,this};function q(G,j){j.resumeScheduled||(j.resumeScheduled=!0,process.nextTick(I,G,j))}function I(G,j){h("resume",j.reading),j.reading||G.read(0),j.resumeScheduled=!1,G.emit("resume"),K(G),j.flowing&&!j.reading&&G.read(0)}B.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(G){var j=G._readableState;for(h("flow",j.flowing);j.flowing&&G.read()!==null;);}B.prototype.wrap=function(G){var j=this,ne=this._readableState,se=!1;G.on("end",function(){if(h("wrapped end"),ne.decoder&&!ne.ended){var N=ne.decoder.end();N&&N.length&&j.push(N)}j.push(null)}),G.on("data",function(N){if(h("wrapped data"),ne.decoder&&(N=ne.decoder.write(N)),!(ne.objectMode&&N==null)&&!(!ne.objectMode&&(!N||!N.length))){var Z=j.push(N);Z||(se=!0,G.pause())}});for(var J in G)this[J]===void 0&&typeof G[J]=="function"&&(this[J]=function(Z){return function(){return G[Z].apply(G,arguments)}}(J));for(var R=0;R=j.length?(j.decoder?ne=j.buffer.join(""):j.buffer.length===1?ne=j.buffer.first():ne=j.buffer.concat(j.length),j.buffer.clear()):ne=j.buffer.consume(G,j.decoder),ne}function Q(G){var j=G._readableState;h("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,process.nextTick(ue,j,G))}function ue(G,j){if(h("endReadableNT",G.endEmitted,G.length),!G.endEmitted&&G.length===0&&(G.endEmitted=!0,j.readable=!1,j.emit("end"),G.autoDestroy)){var ne=j._writableState;(!ne||ne.autoDestroy&&ne.finished)&&j.destroy()}}typeof Symbol=="function"&&(B.from=function(G,j){return U===void 0&&(U=Qye()),U(B,G,j)});function fe(G,j){for(var ne=0,se=G.length;ne0;return cme(s,c,h,function(b){a||(a=b),b&&i.forEach(aI),!c&&(i.forEach(aI),r(a))})});return e.reduce(lme)}var dme=fme;(function(t,e){e=t.exports=jG(),e.Stream=e,e.Readable=e,e.Writable=LG(),e.Duplex=Rp(),e.Transform=HG,e.PassThrough=rme,e.finished=hB,e.pipeline=dme})(uE,uE.exports);var pB=uE.exports;const{Transform:hme}=pB;var pme=t=>class VG extends hme{constructor(n,r,a,i,s){super(s),this._rate=n,this._capacity=r,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new t,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,a){let i=null;try{this.update(n,r)}catch(s){i=s}a(i)}_flush(n){let r=null;try{this.push(this.digest())}catch(a){r=a}n(r)}update(n,r){if(!Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(n)||(n=Buffer.from(n,r)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let r=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(r=r.toString(n)),this._resetState(),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new VG(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const{Transform:yme}=pB;var mme=t=>class qG extends yme{constructor(n,r,a,i){super(i),this._rate=n,this._capacity=r,this._delimitedSuffix=a,this._options=i,this._state=new t,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,a){let i=null;try{this.update(n,r)}catch(s){i=s}a(i)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,r){if(!Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(n)||(n=Buffer.from(n,r)),this._state.absorb(n),this}squeeze(n,r){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(n);return r!==void 0&&(a=a.toString(r)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new qG(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const bme=pme,gme=mme;var xme=function(t){const e=bme(t),n=gme(t);return function(r,a){switch(typeof r=="string"?r.toLowerCase():r){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 n(1344,256,31,a);case"shake256":return new n(1088,512,31,a);default:throw new Error("Invald algorithm: "+r)}}},vme=xme(hye);Object.defineProperty(f1,"__esModule",{value:!0});var Yx=lB,e4=vme;f1.keccak224=Yx.createHashFunction(function(){return e4("keccak224")});f1.keccak256=Yx.createHashFunction(function(){return e4("keccak256")});f1.keccak384=Yx.createHashFunction(function(){return e4("keccak384")});f1.keccak512=Yx.createHashFunction(function(){return e4("keccak512")});var $g=es.Buffer,WG=pB.Transform,wme=Gn;function Eme(t,e){if(!$g.isBuffer(t)&&typeof t!="string")throw new TypeError(e+" must be a string or a buffer")}function Mu(t){WG.call(this),this._block=$g.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}wme(Mu,WG);Mu.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(a){r=a}n(r)};Mu.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)};Mu.prototype.update=function(t,e){if(Eme(t,"Data"),this._finalized)throw new Error("Digest already called");$g.isBuffer(t)||(t=$g.from(t,e));for(var n=this._block,r=0;this._blockOffset+t.length-r>=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};Mu.prototype._update=function(){throw new Error("_update is not implemented")};Mu.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e};Mu.prototype._digest=function(){throw new Error("_digest is not implemented")};var KG=Mu,Ame=Gn,ZG=KG,_me=es.Buffer,Cme=new Array(16);function t4(){ZG.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Ame(t4,ZG);t4.prototype._update=function(){for(var t=Cme,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var n=this._a,r=this._b,a=this._c,i=this._d;n=Hr(n,r,a,i,t[0],3614090360,7),i=Hr(i,n,r,a,t[1],3905402710,12),a=Hr(a,i,n,r,t[2],606105819,17),r=Hr(r,a,i,n,t[3],3250441966,22),n=Hr(n,r,a,i,t[4],4118548399,7),i=Hr(i,n,r,a,t[5],1200080426,12),a=Hr(a,i,n,r,t[6],2821735955,17),r=Hr(r,a,i,n,t[7],4249261313,22),n=Hr(n,r,a,i,t[8],1770035416,7),i=Hr(i,n,r,a,t[9],2336552879,12),a=Hr(a,i,n,r,t[10],4294925233,17),r=Hr(r,a,i,n,t[11],2304563134,22),n=Hr(n,r,a,i,t[12],1804603682,7),i=Hr(i,n,r,a,t[13],4254626195,12),a=Hr(a,i,n,r,t[14],2792965006,17),r=Hr(r,a,i,n,t[15],1236535329,22),n=zr(n,r,a,i,t[1],4129170786,5),i=zr(i,n,r,a,t[6],3225465664,9),a=zr(a,i,n,r,t[11],643717713,14),r=zr(r,a,i,n,t[0],3921069994,20),n=zr(n,r,a,i,t[5],3593408605,5),i=zr(i,n,r,a,t[10],38016083,9),a=zr(a,i,n,r,t[15],3634488961,14),r=zr(r,a,i,n,t[4],3889429448,20),n=zr(n,r,a,i,t[9],568446438,5),i=zr(i,n,r,a,t[14],3275163606,9),a=zr(a,i,n,r,t[3],4107603335,14),r=zr(r,a,i,n,t[8],1163531501,20),n=zr(n,r,a,i,t[13],2850285829,5),i=zr(i,n,r,a,t[2],4243563512,9),a=zr(a,i,n,r,t[7],1735328473,14),r=zr(r,a,i,n,t[12],2368359562,20),n=Gr(n,r,a,i,t[5],4294588738,4),i=Gr(i,n,r,a,t[8],2272392833,11),a=Gr(a,i,n,r,t[11],1839030562,16),r=Gr(r,a,i,n,t[14],4259657740,23),n=Gr(n,r,a,i,t[1],2763975236,4),i=Gr(i,n,r,a,t[4],1272893353,11),a=Gr(a,i,n,r,t[7],4139469664,16),r=Gr(r,a,i,n,t[10],3200236656,23),n=Gr(n,r,a,i,t[13],681279174,4),i=Gr(i,n,r,a,t[0],3936430074,11),a=Gr(a,i,n,r,t[3],3572445317,16),r=Gr(r,a,i,n,t[6],76029189,23),n=Gr(n,r,a,i,t[9],3654602809,4),i=Gr(i,n,r,a,t[12],3873151461,11),a=Gr(a,i,n,r,t[15],530742520,16),r=Gr(r,a,i,n,t[2],3299628645,23),n=Vr(n,r,a,i,t[0],4096336452,6),i=Vr(i,n,r,a,t[7],1126891415,10),a=Vr(a,i,n,r,t[14],2878612391,15),r=Vr(r,a,i,n,t[5],4237533241,21),n=Vr(n,r,a,i,t[12],1700485571,6),i=Vr(i,n,r,a,t[3],2399980690,10),a=Vr(a,i,n,r,t[10],4293915773,15),r=Vr(r,a,i,n,t[1],2240044497,21),n=Vr(n,r,a,i,t[8],1873313359,6),i=Vr(i,n,r,a,t[15],4264355552,10),a=Vr(a,i,n,r,t[6],2734768916,15),r=Vr(r,a,i,n,t[13],1309151649,21),n=Vr(n,r,a,i,t[4],4149444226,6),i=Vr(i,n,r,a,t[11],3174756917,10),a=Vr(a,i,n,r,t[2],718787259,15),r=Vr(r,a,i,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0};t4.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 t=_me.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function n4(t,e){return t<>>32-e}function Hr(t,e,n,r,a,i,s){return n4(t+(e&n|~e&r)+a+i|0,s)+e|0}function zr(t,e,n,r,a,i,s){return n4(t+(e&r|n&~r)+a+i|0,s)+e|0}function Gr(t,e,n,r,a,i,s){return n4(t+(e^n^r)+a+i|0,s)+e|0}function Vr(t,e,n,r,a,i,s){return n4(t+(n^(e|~r))+a+i|0,s)+e|0}var Bme=t4,T9=Xc.Buffer,Sme=Gn,QG=KG,Tme=new Array(16),q1=[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],W1=[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],K1=[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],Z1=[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],Q1=[0,1518500249,1859775393,2400959708,2840853838],X1=[1352829926,1548603684,1836072691,2053994217,0];function r4(){QG.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Sme(r4,QG);r4.prototype._update=function(){for(var t=Tme,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,h=this._c|0,b=this._d|0,v=this._e|0,E=0;E<80;E+=1){var C,F;E<16?(C=iI(n,r,a,i,s,t[q1[E]],Q1[0],K1[E]),F=lI(o,c,h,b,v,t[W1[E]],X1[0],Z1[E])):E<32?(C=sI(n,r,a,i,s,t[q1[E]],Q1[1],K1[E]),F=cI(o,c,h,b,v,t[W1[E]],X1[1],Z1[E])):E<48?(C=oI(n,r,a,i,s,t[q1[E]],Q1[2],K1[E]),F=oI(o,c,h,b,v,t[W1[E]],X1[2],Z1[E])):E<64?(C=cI(n,r,a,i,s,t[q1[E]],Q1[3],K1[E]),F=sI(o,c,h,b,v,t[W1[E]],X1[3],Z1[E])):(C=lI(n,r,a,i,s,t[q1[E]],Q1[4],K1[E]),F=iI(o,c,h,b,v,t[W1[E]],X1[4],Z1[E])),n=s,s=i,i=dd(a,10),a=r,r=C,o=v,v=b,b=dd(h,10),h=c,c=F}var T=this._b+a+b|0;this._b=this._c+i+v|0,this._c=this._d+s+o|0,this._d=this._e+n+c|0,this._e=this._a+r+h|0,this._a=T};r4.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 t=T9.alloc?T9.alloc(20):new T9(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};function dd(t,e){return t<>>32-e}function iI(t,e,n,r,a,i,s,o){return dd(t+(e^n^r)+i+s|0,o)+a|0}function sI(t,e,n,r,a,i,s,o){return dd(t+(e&n|~e&r)+i+s|0,o)+a|0}function oI(t,e,n,r,a,i,s,o){return dd(t+((e|~n)^r)+i+s|0,o)+a|0}function cI(t,e,n,r,a,i,s,o){return dd(t+(e&r|n&~r)+i+s|0,o)+a|0}function lI(t,e,n,r,a,i,s,o){return dd(t+(e^(n|~r))+i+s|0,o)+a|0}var Fme=r4,XG={exports:{}},JG=es.Buffer;function a4(t,e){this._block=JG.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}a4.prototype.update=function(t,e){typeof t=="string"&&(e=e||"utf8",t=JG.from(t,e));for(var n=this._block,r=this._blockSize,a=t.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return t?i.toString(t):i};a4.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var h1=a4,Mme=Gn,YG=h1,Dme=es.Buffer,kme=[1518500249,1859775393,-1894007588,-899497514],Ime=new Array(80);function o2(){this.init(),this._w=Ime,YG.call(this,64,56)}Mme(o2,YG);o2.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Ome(t){return t<<5|t>>>27}function Pme(t){return t<<30|t>>>2}function Rme(t,e,n,r){return t===0?e&n|~e&r:t===2?e&n|e&r|n&r:e^n^r}o2.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=t.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 h=~~(c/20),b=Ome(n)+Rme(h,r,a,i)+s+e[c]+kme[h]|0;s=i,i=a,a=Pme(r),r=n,n=b}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};o2.prototype._hash=function(){var t=Dme.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var Nme=o2,$me=Gn,eV=h1,Lme=es.Buffer,Ume=[1518500249,1859775393,-1894007588,-899497514],jme=new Array(80);function c2(){this.init(),this._w=jme,eV.call(this,64,56)}$me(c2,eV);c2.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Hme(t){return t<<1|t>>>31}function zme(t){return t<<5|t>>>27}function Gme(t){return t<<30|t>>>2}function Vme(t,e,n,r){return t===0?e&n|~e&r:t===2?e&n|e&r|n&r:e^n^r}c2.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=t.readInt32BE(o*4);for(;o<80;++o)e[o]=Hme(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var h=~~(c/20),b=zme(n)+Vme(h,r,a,i)+s+e[c]+Ume[h]|0;s=i,i=a,a=Gme(r),r=n,n=b}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};c2.prototype._hash=function(){var t=Lme.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var qme=c2,Wme=Gn,tV=h1,Kme=es.Buffer,Zme=[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],Qme=new Array(64);function l2(){this.init(),this._w=Qme,tV.call(this,64,56)}Wme(l2,tV);l2.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 Xme(t,e,n){return n^t&(e^n)}function Jme(t,e,n){return t&e|n&(t|e)}function Yme(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function ebe(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function tbe(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function nbe(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}l2.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,h=this._h|0,b=0;b<16;++b)e[b]=t.readInt32BE(b*4);for(;b<64;++b)e[b]=nbe(e[b-2])+e[b-7]+tbe(e[b-15])+e[b-16]|0;for(var v=0;v<64;++v){var E=h+ebe(s)+Xme(s,o,c)+Zme[v]+e[v]|0,C=Yme(n)+Jme(n,r,a)|0;h=c,c=o,o=s,s=i+E|0,i=a,a=r,r=n,n=E+C|0}this._a=n+this._a|0,this._b=r+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=h+this._h|0};l2.prototype._hash=function(){var t=Kme.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};var nV=l2,rbe=Gn,abe=nV,ibe=h1,sbe=es.Buffer,obe=new Array(64);function i4(){this.init(),this._w=obe,ibe.call(this,64,56)}rbe(i4,abe);i4.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};i4.prototype._hash=function(){var t=sbe.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};var cbe=i4,lbe=Gn,rV=h1,ube=es.Buffer,uI=[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],fbe=new Array(160);function u2(){this.init(),this._w=fbe,rV.call(this,128,112)}lbe(u2,rV);u2.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 fI(t,e,n){return n^t&(e^n)}function dI(t,e,n){return t&e|n&(t|e)}function hI(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function pI(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function dbe(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function hbe(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function pbe(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function ybe(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function lr(t,e){return t>>>0>>0?1:0}u2.prototype._update=function(t){for(var e=this._w,n=this._ah|0,r=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,h=this._hh|0,b=this._al|0,v=this._bl|0,E=this._cl|0,C=this._dl|0,F=this._el|0,T=this._fl|0,P=this._gl|0,D=this._hl|0,M=0;M<32;M+=2)e[M]=t.readInt32BE(M*4),e[M+1]=t.readInt32BE(M*4+4);for(;M<160;M+=2){var O=e[M-30],k=e[M-15*2+1],U=dbe(O,k),V=hbe(k,O);O=e[M-2*2],k=e[M-2*2+1];var Y=pbe(O,k),L=ybe(k,O),X=e[M-7*2],B=e[M-7*2+1],u=e[M-16*2],d=e[M-16*2+1],p=V+B|0,l=U+X+lr(p,V)|0;p=p+L|0,l=l+Y+lr(p,L)|0,p=p+d|0,l=l+u+lr(p,d)|0,e[M]=l,e[M+1]=p}for(var y=0;y<160;y+=2){l=e[y],p=e[y+1];var g=dI(n,r,a),w=dI(b,v,E),x=hI(n,b),f=hI(b,n),m=pI(s,F),_=pI(F,s),A=uI[y],S=uI[y+1],$=fI(s,o,c),q=fI(F,T,P),I=D+_|0,K=h+m+lr(I,D)|0;I=I+q|0,K=K+$+lr(I,q)|0,I=I+S|0,K=K+A+lr(I,S)|0,I=I+p|0,K=K+l+lr(I,p)|0;var z=f+w|0,Q=x+g+lr(z,f)|0;h=c,D=P,c=o,P=T,o=s,T=F,F=C+I|0,s=i+K+lr(F,C)|0,i=a,C=E,a=r,E=v,r=n,v=b,b=I+z|0,n=K+Q+lr(b,I)|0}this._al=this._al+b|0,this._bl=this._bl+v|0,this._cl=this._cl+E|0,this._dl=this._dl+C|0,this._el=this._el+F|0,this._fl=this._fl+T|0,this._gl=this._gl+P|0,this._hl=this._hl+D|0,this._ah=this._ah+n+lr(this._al,b)|0,this._bh=this._bh+r+lr(this._bl,v)|0,this._ch=this._ch+a+lr(this._cl,E)|0,this._dh=this._dh+i+lr(this._dl,C)|0,this._eh=this._eh+s+lr(this._el,F)|0,this._fh=this._fh+o+lr(this._fl,T)|0,this._gh=this._gh+c+lr(this._gl,P)|0,this._hh=this._hh+h+lr(this._hl,D)|0};u2.prototype._hash=function(){var t=ube.allocUnsafe(64);function e(n,r,a){t.writeInt32BE(n,a),t.writeInt32BE(r,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),t};var aV=u2,mbe=Gn,bbe=aV,gbe=h1,xbe=es.Buffer,vbe=new Array(160);function s4(){this.init(),this._w=vbe,gbe.call(this,128,112)}mbe(s4,bbe);s4.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};s4.prototype._hash=function(){var t=xbe.allocUnsafe(48);function e(n,r,a){t.writeInt32BE(n,a),t.writeInt32BE(r,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),t};var wbe=s4,kd=XG.exports=function(e){e=e.toLowerCase();var n=kd[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n};kd.sha=Nme;kd.sha1=qme;kd.sha224=cbe;kd.sha256=nV;kd.sha384=wbe;kd.sha512=aV;var Ebe=XG.exports,iV=es.Buffer,sV=yo.Transform,Abe=Ng.StringDecoder,_be=Gn;function $s(t){sV.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}_be($s,sV);$s.prototype.update=function(t,e,n){typeof t=="string"&&(t=iV.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)};$s.prototype.setAutoPadding=function(){};$s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};$s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};$s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};$s.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(a){r=a}finally{n(r)}};$s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)};$s.prototype._finalOrDigest=function(t){var e=this.__final()||iV.alloc(0);return t&&(e=this._toString(e,t,!0)),e};$s.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new Abe(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r};var Cbe=$s,Bbe=Gn,Sbe=Bme,Tbe=Fme,Fbe=Ebe,oV=Cbe;function o4(t){oV.call(this,"digest"),this._hash=t}Bbe(o4,oV);o4.prototype._update=function(t){this._hash.update(t)};o4.prototype._final=function(){return this._hash.digest()};var Mbe=function(e){return e=e.toLowerCase(),e==="md5"?new Sbe:e==="rmd160"||e==="ripemd160"?new Tbe:new o4(Fbe(e))};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var e=f1,n=Mbe,r=Na,a=Fu,i=ni,s=function(k,U){switch(U===void 0&&(U=256),(0,i.assertIsBuffer)(k),U){case 224:return(0,e.keccak224)(k);case 256:return(0,e.keccak256)(k);case 384:return(0,e.keccak384)(k);case 512:return(0,e.keccak512)(k);default:throw new Error("Invald algorithm: keccak".concat(U))}};t.keccak=s;var o=function(k){return(0,t.keccak)(k)};t.keccak256=o;var c=function(k,U){U===void 0&&(U=256),(0,i.assertIsString)(k);var V=Buffer.from(k,"utf8");return(0,t.keccak)(V,U)};t.keccakFromString=c;var h=function(k,U){return U===void 0&&(U=256),(0,i.assertIsHexString)(k),(0,t.keccak)((0,a.toBuffer)(k),U)};t.keccakFromHexString=h;var b=function(k,U){return U===void 0&&(U=256),(0,i.assertIsArray)(k),(0,t.keccak)((0,a.toBuffer)(k),U)};t.keccakFromArray=b;var v=function(k){return k=(0,a.toBuffer)(k),n("sha256").update(k).digest()},E=function(k){return(0,i.assertIsBuffer)(k),v(k)};t.sha256=E;var C=function(k){return(0,i.assertIsString)(k),v(k)};t.sha256FromString=C;var F=function(k){return(0,i.assertIsArray)(k),v(k)};t.sha256FromArray=F;var T=function(k,U){k=(0,a.toBuffer)(k);var V=n("rmd160").update(k).digest();return U===!0?(0,a.setLengthLeft)(V,32):V},P=function(k,U){return(0,i.assertIsBuffer)(k),T(k,U)};t.ripemd160=P;var D=function(k,U){return(0,i.assertIsString)(k),T(k,U)};t.ripemd160FromString=D;var M=function(k,U){return(0,i.assertIsArray)(k),T(k,U)};t.ripemd160FromArray=M;var O=function(k){return(0,t.keccak)(r.rlp.encode(k))};t.rlphash=O})(Zx);var c4={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var e=Na,n=rn,r=Fu;function a(h){return"0x".concat(h.toString(16))}t.bnToHex=a;function i(h){return(0,r.unpadBuffer)(h.toArrayLike(Buffer))}t.bnToUnpaddedBuffer=i;function s(h){return i(h)}t.bnToRlp=s;var o;(function(h){h[h.Number=0]="Number",h[h.BN=1]="BN",h[h.Buffer=2]="Buffer",h[h.PrefixedHexString=3]="PrefixedHexString"})(o=t.TypeOutput||(t.TypeOutput={}));function c(h,b){if(h===null)return null;if(h!==void 0){if(typeof h=="string"&&!(0,n.isHexString)(h))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(h));if(typeof h=="number"&&!Number.isSafeInteger(h))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var v=(0,r.toBuffer)(h);if(b===o.Buffer)return v;if(b===o.BN)return new e.BN(v);if(b===o.Number){var E=new e.BN(v),C=new e.BN(Number.MAX_SAFE_INTEGER.toString());if(E.gt(C))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return E.toNumber()}else return"0x".concat(v.toString("hex"))}}t.toType=c})(c4);(function(t){var e=he&&he.__read||function(B,u){var d=typeof Symbol=="function"&&B[Symbol.iterator];if(!d)return B;var p=d.call(B),l,y=[],g;try{for(;(u===void 0||u-- >0)&&!(l=p.next()).done;)y.push(l.value)}catch(w){g={error:w}}finally{try{l&&!l.done&&(d=p.return)&&d.call(p)}finally{if(g)throw g.error}}return y},n=he&&he.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var r=n(Hm()),a=Na,i=tB,s=rn,o=qC,c=Fu,h=Zx,b=ni,v=c4,E=function(){function B(u,d,p,l){u===void 0&&(u=new a.BN(0)),d===void 0&&(d=new a.BN(0)),p===void 0&&(p=o.KECCAK256_RLP),l===void 0&&(l=o.KECCAK256_NULL),this.nonce=u,this.balance=d,this.stateRoot=p,this.codeHash=l,this._validate()}return B.fromAccountData=function(u){var d=u.nonce,p=u.balance,l=u.stateRoot,y=u.codeHash;return new B(d?new a.BN((0,c.toBuffer)(d)):void 0,p?new a.BN((0,c.toBuffer)(p)):void 0,l?(0,c.toBuffer)(l):void 0,y?(0,c.toBuffer)(y):void 0)},B.fromRlpSerializedAccount=function(u){var d=a.rlp.decode(u);if(!Array.isArray(d))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(d)},B.fromValuesArray=function(u){var d=e(u,4),p=d[0],l=d[1],y=d[2],g=d[3];return new B(new a.BN(p),new a.BN(l),y,g)},B.prototype._validate=function(){if(this.nonce.lt(new a.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new a.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},B.prototype.raw=function(){return[(0,v.bnToUnpaddedBuffer)(this.nonce),(0,v.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},B.prototype.serialize=function(){return a.rlp.encode(this.raw())},B.prototype.isContract=function(){return!this.codeHash.equals(o.KECCAK256_NULL)},B.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(o.KECCAK256_NULL)},B}();t.Account=E;var C=function(B){try{(0,b.assertIsString)(B)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(B)};t.isValidAddress=C;var F=function(B,u){(0,b.assertIsHexString)(B);var d=(0,s.stripHexPrefix)(B).toLowerCase(),p="";if(u){var l=(0,v.toType)(u,v.TypeOutput.BN);p=l.toString()+"0x"}for(var y=(0,h.keccakFromString)(p+d).toString("hex"),g="0x",w=0;w=8?g+=d[w].toUpperCase():g+=d[w];return g};t.toChecksumAddress=F;var T=function(B,u){return(0,t.isValidAddress)(B)&&(0,t.toChecksumAddress)(B,u)===B};t.isValidChecksumAddress=T;var P=function(B,u){(0,b.assertIsBuffer)(B),(0,b.assertIsBuffer)(u);var d=new a.BN(u);return d.isZero()?(0,h.rlphash)([B,null]).slice(-20):(0,h.rlphash)([B,Buffer.from(d.toArray())]).slice(-20)};t.generateAddress=P;var D=function(B,u,d){(0,b.assertIsBuffer)(B),(0,b.assertIsBuffer)(u),(0,b.assertIsBuffer)(d),(0,r.default)(B.length===20),(0,r.default)(u.length===32);var p=(0,h.keccak256)(Buffer.concat([Buffer.from("ff","hex"),B,u,(0,h.keccak256)(d)]));return p.slice(-20)};t.generateAddress2=D;var M=function(B){return(0,i.privateKeyVerify)(B)};t.isValidPrivate=M;var O=function(B,u){return u===void 0&&(u=!1),(0,b.assertIsBuffer)(B),B.length===64?(0,i.publicKeyVerify)(Buffer.concat([Buffer.from([4]),B])):u?(0,i.publicKeyVerify)(B):!1};t.isValidPublic=O;var k=function(B,u){return u===void 0&&(u=!1),(0,b.assertIsBuffer)(B),u&&B.length!==64&&(B=Buffer.from((0,i.publicKeyConvert)(B,!1).slice(1))),(0,r.default)(B.length===64),(0,h.keccak)(B).slice(-20)};t.pubToAddress=k,t.publicToAddress=t.pubToAddress;var U=function(B){return(0,b.assertIsBuffer)(B),Buffer.from((0,i.publicKeyCreate)(B,!1)).slice(1)};t.privateToPublic=U;var V=function(B){return(0,t.publicToAddress)((0,t.privateToPublic)(B))};t.privateToAddress=V;var Y=function(B){return(0,b.assertIsBuffer)(B),B.length!==64&&(B=Buffer.from((0,i.publicKeyConvert)(B,!1).slice(1))),B};t.importPublic=Y;var L=function(){var B=20,u=(0,c.zeros)(B);return(0,c.bufferToHex)(u)};t.zeroAddress=L;var X=function(B){try{(0,b.assertIsString)(B)}catch{return!1}var u=(0,t.zeroAddress)();return u===B};t.isZeroAddress=X})(QC);var l4={},Dbe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(l4,"__esModule",{value:!0});l4.Address=void 0;var zu=Dbe(Hm()),p3=Na,yI=Fu,J1=QC,kbe=function(){function t(e){(0,zu.default)(e.length===20,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,yI.zeros)(20))},t.fromString=function(e){return(0,zu.default)((0,J1.isValidAddress)(e),"Invalid address"),new t((0,yI.toBuffer)(e))},t.fromPublicKey=function(e){(0,zu.default)(Buffer.isBuffer(e),"Public key should be Buffer");var n=(0,J1.pubToAddress)(e);return new t(n)},t.fromPrivateKey=function(e){(0,zu.default)(Buffer.isBuffer(e),"Private key should be Buffer");var n=(0,J1.privateToAddress)(e);return new t(n)},t.generate=function(e,n){return(0,zu.default)(p3.BN.isBN(n)),new t((0,J1.generateAddress)(e.buf,n.toArrayLike(Buffer)))},t.generate2=function(e,n,r){return(0,zu.default)(Buffer.isBuffer(n)),(0,zu.default)(Buffer.isBuffer(r)),new t((0,J1.generateAddress2)(e.buf,n,r))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new p3.BN(this.buf),n=new p3.BN(0),r=new p3.BN("ffff","hex");return e.gte(n)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return Buffer.from(this.buf)},t}();l4.Address=kbe;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.hashPersonalMessage=Zr.isValidSignature=Zr.fromRpcSig=Zr.toCompactSig=Zr.toRpcSig=Zr.ecrecover=Zr.ecsign=void 0;var dE=tB,Ty=Na,$i=Fu,Ibe=Zx,Obe=ni,fo=c4;function Pbe(t,e,n){var r=(0,dE.ecdsaSign)(t,e),a=r.signature,i=r.recid,s=Buffer.from(a.slice(0,32)),o=Buffer.from(a.slice(32,64));if(!n||typeof n=="number"){if(n&&!Number.isSafeInteger(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var c=n?i+(n*2+35):i+27;return{r:s,s:o,v:c}}var h=(0,fo.toType)(n,fo.TypeOutput.BN),b=h.muln(2).addn(35).addn(i).toArrayLike(Buffer);return{r:s,s:o,v:b}}Zr.ecsign=Pbe;function u4(t,e){var n=(0,fo.toType)(t,fo.TypeOutput.BN);if(n.eqn(0)||n.eqn(1))return(0,fo.toType)(t,fo.TypeOutput.BN);if(!e)return n.subn(27);var r=(0,fo.toType)(e,fo.TypeOutput.BN);return n.sub(r.muln(2).addn(35))}function f4(t){var e=new Ty.BN(t);return e.eqn(0)||e.eqn(1)}var Rbe=function(t,e,n,r,a){var i=Buffer.concat([(0,$i.setLengthLeft)(n,32),(0,$i.setLengthLeft)(r,32)],64),s=u4(e,a);if(!f4(s))throw new Error("Invalid signature v value");var o=(0,dE.ecdsaRecover)(i,s.toNumber(),t);return Buffer.from((0,dE.publicKeyConvert)(o,!1).slice(1))};Zr.ecrecover=Rbe;var Nbe=function(t,e,n,r){var a=u4(t,r);if(!f4(a))throw new Error("Invalid signature v value");return(0,$i.bufferToHex)(Buffer.concat([(0,$i.setLengthLeft)(e,32),(0,$i.setLengthLeft)(n,32),(0,$i.toBuffer)(t)]))};Zr.toRpcSig=Nbe;var $be=function(t,e,n,r){var a=u4(t,r);if(!f4(a))throw new Error("Invalid signature v value");var i=(0,fo.toType)(t,fo.TypeOutput.Number),s=n;return(i>28&&i%2===1||i===1||i===28)&&(s=Buffer.from(n),s[0]|=128),(0,$i.bufferToHex)(Buffer.concat([(0,$i.setLengthLeft)(e,32),(0,$i.setLengthLeft)(s,32)]))};Zr.toCompactSig=$be;var Lbe=function(t){var e=(0,$i.toBuffer)(t),n,r,a;if(e.length>=65)n=e.slice(0,32),r=e.slice(32,64),a=(0,$i.bufferToInt)(e.slice(64));else if(e.length===64)n=e.slice(0,32),r=e.slice(32,64),a=(0,$i.bufferToInt)(e.slice(32,33))>>7,r[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a+=27),{v:a,r:n,s:r}};Zr.fromRpcSig=Lbe;var Ube=function(t,e,n,r,a){r===void 0&&(r=!0);var i=new Ty.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new Ty.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(e.length!==32||n.length!==32||!f4(u4(t,a)))return!1;var o=new Ty.BN(e),c=new Ty.BN(n);return!(o.isZero()||o.gt(s)||c.isZero()||c.gt(s)||r&&c.cmp(i)===1)};Zr.isValidSignature=Ube;var jbe=function(t){(0,Obe.assertIsBuffer)(t);var e=Buffer.from(`Ethereum Signed Message: +`.concat(t.length),"utf-8");return(0,Ibe.keccak)(Buffer.concat([e,t]))};Zr.hashPersonalMessage=jbe;var d4={},Hbe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(d4,"__esModule",{value:!0});d4.defineProperties=void 0;var mI=Hbe(Hm()),zbe=rn,bI=Na,y3=Fu,Gbe=function(t,e,n){if(t.raw=[],t._fields=[],t.toJSON=function(a){if(a===void 0&&(a=!1),a){var i={};return t._fields.forEach(function(s){i[s]="0x".concat(t[s].toString("hex"))}),i}return(0,y3.baToJSON)(t.raw)},t.serialize=function(){return bI.rlp.encode(t.raw)},e.forEach(function(a,i){t._fields.push(a.name);function s(){return t.raw[i]}function o(c){c=(0,y3.toBuffer)(c),c.toString("hex")==="00"&&!a.allowZero&&(c=Buffer.allocUnsafe(0)),a.allowLess&&a.length?(c=(0,y3.unpadBuffer)(c),(0,mI.default)(a.length>=c.length,"The field ".concat(a.name," must not have more ").concat(a.length," bytes"))):!(a.allowZero&&c.length===0)&&a.length&&(0,mI.default)(a.length===c.length,"The field ".concat(a.name," must have byte length of ").concat(a.length)),t.raw[i]=c}Object.defineProperty(t,a.name,{enumerable:!0,configurable:!0,get:s,set:o}),a.default&&(t[a.name]=a.default),a.alias&&Object.defineProperty(t,a.alias,{enumerable:!1,configurable:!0,set:o,get:s})}),n)if(typeof n=="string"&&(n=Buffer.from((0,zbe.stripHexPrefix)(n),"hex")),Buffer.isBuffer(n)&&(n=bI.rlp.decode(n)),Array.isArray(n)){if(n.length>t._fields.length)throw new Error("wrong number of fields in data");n.forEach(function(a,i){t[t._fields[i]]=(0,y3.toBuffer)(a)})}else if(typeof n=="object"){var r=Object.keys(n);e.forEach(function(a){r.indexOf(a.name)!==-1&&(t[a.name]=n[a.name]),r.indexOf(a.alias)!==-1&&(t[a.alias]=n[a.alias])})}else throw new Error("invalid data")};d4.defineProperties=Gbe;(function(t){var e=he&&he.__createBinding||(Object.create?function(a,i,s,o){o===void 0&&(o=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,o,c)}:function(a,i,s,o){o===void 0&&(o=s),a[o]=i[s]}),n=he&&he.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,n(qC,t),n(QC,t),n(l4,t),n(Zx,t),n(Zr,t),n(Fu,t),n(d4,t),n(Na,t),n(c4,t);var r=rn;Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return r.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return r.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return r.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return r.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return r.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return r.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return r.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return r.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return r.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return r.isHexString}})})(VC);var F9,gI;function Vbe(){return gI||(gI=1,F9=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),F9}var qbe=Ht;Ht.Node=hd;Ht.create=Ht;function Ht(t){var e=this;if(e instanceof Ht||(e=new Ht),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(a){e.push(a)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=e;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;r!==null;a++)n=t(n,r.value,a),r=r.next;return n};Ht.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;r!==null;a--)n=t(n,r.value,a),r=r.prev;return n};Ht.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;n!==null;e++)t[e]=n.value,n=n.next;return t};Ht.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;n!==null;e++)t[e]=n.value,n=n.prev;return t};Ht.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new Ht;if(ethis.length&&(e=this.length);for(var r=0,a=this.head;a!==null&&rthis.length&&(e=this.length);for(var r=this.length,a=this.tail;a!==null&&r>e;r--)a=a.prev;for(;a!==null&&r>t;r--,a=a.prev)n.push(a.value);return n};Ht.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,a=this.head;a!==null&&r1;class Xbe{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[Xu]=e.max||1/0;const n=e.length||M9;if(this[a0]=typeof n!="function"?M9:n,this[nm]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[uf]=e.maxAge||0,this[Ko]=e.dispose,this[xI]=e.noDisposeOnSet||!1,this[cV]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Xu]=e||1/0,Y1(this)}get max(){return this[Xu]}set allowStale(e){this[nm]=!!e}get allowStale(){return this[nm]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[uf]=e,Y1(this)}get maxAge(){return this[uf]}set lengthCalculator(e){typeof e!="function"&&(e=M9),e!==this[a0]&&(this[a0]=e,this[Jo]=0,this[fr].forEach(n=>{n.length=this[a0](n.value,n.key),this[Jo]+=n.length})),Y1(this)}get lengthCalculator(){return this[a0]}get length(){return this[Jo]}get itemCount(){return this[fr].length}rforEach(e,n){n=n||this;for(let r=this[fr].tail;r!==null;){const a=r.prev;vI(this,e,r,n),r=a}}forEach(e,n){n=n||this;for(let r=this[fr].head;r!==null;){const a=r.next;vI(this,e,r,n),r=a}}keys(){return this[fr].toArray().map(e=>e.key)}values(){return this[fr].toArray().map(e=>e.value)}reset(){this[Ko]&&this[fr]&&this[fr].length&&this[fr].forEach(e=>this[Ko](e.key,e.value)),this[ls]=new Map,this[fr]=new Qbe,this[Jo]=0}dump(){return this[fr].map(e=>Lg(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[fr]}set(e,n,r){if(r=r||this[uf],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0,i=this[a0](n,e);if(this[ls].has(e)){if(i>this[Xu])return ih(this,this[ls].get(e)),!1;const c=this[ls].get(e).value;return this[Ko]&&(this[xI]||this[Ko](e,c.value)),c.now=a,c.maxAge=r,c.value=n,this[Jo]+=i-c.length,c.length=i,this.get(e),Y1(this),!0}const s=new Jbe(e,n,i,a,r);return s.length>this[Xu]?(this[Ko]&&this[Ko](e,n),!1):(this[Jo]+=s.length,this[fr].unshift(s),this[ls].set(e,this[fr].head),Y1(this),!0)}has(e){if(!this[ls].has(e))return!1;const n=this[ls].get(e).value;return!Lg(this,n)}get(e){return D9(this,e,!0)}peek(e){return D9(this,e,!1)}pop(){const e=this[fr].tail;return e?(ih(this,e),e.value):null}del(e){ih(this,this[ls].get(e))}load(e){this.reset();const n=Date.now();for(let r=e.length-1;r>=0;r--){const a=e[r],i=a.e||0;if(i===0)this.set(a.k,a.v);else{const s=i-n;s>0&&this.set(a.k,a.v,s)}}}prune(){this[ls].forEach((e,n)=>D9(this,n,!1))}}const D9=(t,e,n)=>{const r=t[ls].get(e);if(r){const a=r.value;if(Lg(t,a)){if(ih(t,r),!t[nm])return}else n&&(t[cV]&&(r.value.now=Date.now()),t[fr].unshiftNode(r));return a.value}},Lg=(t,e)=>{if(!e||!e.maxAge&&!t[uf])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[uf]&&n>t[uf]},Y1=t=>{if(t[Jo]>t[Xu])for(let e=t[fr].tail;t[Jo]>t[Xu]&&e!==null;){const n=e.prev;ih(t,e),e=n}},ih=(t,e)=>{if(e){const n=e.value;t[Ko]&&t[Ko](n.key,n.value),t[Jo]-=n.length,t[ls].delete(n.key),t[fr].removeNode(e)}};class Jbe{constructor(e,n,r,a,i){this.key=e,this.value=n,this.length=r,this.now=a,this.maxAge=i||0}}const vI=(t,e,n,r)=>{let a=n.value;Lg(t,a)&&(ih(t,n),t[nm]||(a=void 0)),a&&e.call(r,a.value,a.key,t)};var lV=Xbe;const Ybe=Object.freeze({loose:!0}),e2e=Object.freeze({}),t2e=t=>t?typeof t!="object"?Ybe:t:e2e;var yB=t2e,hE={exports:{}};const n2e="2.0.0",uV=256,r2e=Number.MAX_SAFE_INTEGER||9007199254740991,a2e=16,i2e=uV-6,s2e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var mB={MAX_LENGTH:uV,MAX_SAFE_COMPONENT_LENGTH:a2e,MAX_SAFE_BUILD_LENGTH:i2e,MAX_SAFE_INTEGER:r2e,RELEASE_TYPES:s2e,SEMVER_SPEC_VERSION:n2e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},k9={};const o2e=typeof process=="object"&&k9&&k9.NODE_DEBUG&&/\bsemver\b/i.test(k9.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var h4=o2e;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:a}=mB,i=h4;e=t.exports={};const s=e.re=[],o=e.safeRe=[],c=e.src=[],h=e.t={};let b=0;const v="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",a],[v,r]],C=T=>{for(const[P,D]of E)T=T.split(`${P}*`).join(`${P}{0,${D}}`).split(`${P}+`).join(`${P}{1,${D}}`);return T},F=(T,P,D)=>{const M=C(P),O=b++;i(T,O,P),h[T]=O,c[O]=P,s[O]=new RegExp(P,D?"g":void 0),o[O]=new RegExp(M,D?"g":void 0)};F("NUMERICIDENTIFIER","0|[1-9]\\d*"),F("NUMERICIDENTIFIERLOOSE","\\d+"),F("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${v}*`),F("MAINVERSION",`(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})`),F("MAINVERSIONLOOSE",`(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})`),F("PRERELEASEIDENTIFIER",`(?:${c[h.NUMERICIDENTIFIER]}|${c[h.NONNUMERICIDENTIFIER]})`),F("PRERELEASEIDENTIFIERLOOSE",`(?:${c[h.NUMERICIDENTIFIERLOOSE]}|${c[h.NONNUMERICIDENTIFIER]})`),F("PRERELEASE",`(?:-(${c[h.PRERELEASEIDENTIFIER]}(?:\\.${c[h.PRERELEASEIDENTIFIER]})*))`),F("PRERELEASELOOSE",`(?:-?(${c[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[h.PRERELEASEIDENTIFIERLOOSE]})*))`),F("BUILDIDENTIFIER",`${v}+`),F("BUILD",`(?:\\+(${c[h.BUILDIDENTIFIER]}(?:\\.${c[h.BUILDIDENTIFIER]})*))`),F("FULLPLAIN",`v?${c[h.MAINVERSION]}${c[h.PRERELEASE]}?${c[h.BUILD]}?`),F("FULL",`^${c[h.FULLPLAIN]}$`),F("LOOSEPLAIN",`[v=\\s]*${c[h.MAINVERSIONLOOSE]}${c[h.PRERELEASELOOSE]}?${c[h.BUILD]}?`),F("LOOSE",`^${c[h.LOOSEPLAIN]}$`),F("GTLT","((?:<|>)?=?)"),F("XRANGEIDENTIFIERLOOSE",`${c[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),F("XRANGEIDENTIFIER",`${c[h.NUMERICIDENTIFIER]}|x|X|\\*`),F("XRANGEPLAIN",`[v=\\s]*(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:${c[h.PRERELEASE]})?${c[h.BUILD]}?)?)?`),F("XRANGEPLAINLOOSE",`[v=\\s]*(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:${c[h.PRERELEASELOOSE]})?${c[h.BUILD]}?)?)?`),F("XRANGE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAIN]}$`),F("XRANGELOOSE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAINLOOSE]}$`),F("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),F("COERCERTL",c[h.COERCE],!0),F("LONETILDE","(?:~>?)"),F("TILDETRIM",`(\\s*)${c[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",F("TILDE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAIN]}$`),F("TILDELOOSE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAINLOOSE]}$`),F("LONECARET","(?:\\^)"),F("CARETTRIM",`(\\s*)${c[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",F("CARET",`^${c[h.LONECARET]}${c[h.XRANGEPLAIN]}$`),F("CARETLOOSE",`^${c[h.LONECARET]}${c[h.XRANGEPLAINLOOSE]}$`),F("COMPARATORLOOSE",`^${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]})$|^$`),F("COMPARATOR",`^${c[h.GTLT]}\\s*(${c[h.FULLPLAIN]})$|^$`),F("COMPARATORTRIM",`(\\s*)${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]}|${c[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",F("HYPHENRANGE",`^\\s*(${c[h.XRANGEPLAIN]})\\s+-\\s+(${c[h.XRANGEPLAIN]})\\s*$`),F("HYPHENRANGELOOSE",`^\\s*(${c[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[h.XRANGEPLAINLOOSE]})\\s*$`),F("STAR","(<|>)?=?\\s*\\*"),F("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),F("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(hE,hE.exports);var bB=hE.exports;const wI=/^[0-9]+$/,fV=(t,e)=>{const n=wI.test(t),r=wI.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tfV(e,t);var l2e={compareIdentifiers:fV,rcompareIdentifiers:c2e};const m3=h4,{MAX_LENGTH:EI,MAX_SAFE_INTEGER:b3}=mB,{safeRe:AI,t:_I}=bB,u2e=yB,{compareIdentifiers:i0}=l2e;let f2e=class Vs{constructor(e,n){if(n=u2e(n),e instanceof Vs){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>EI)throw new TypeError(`version is longer than ${EI} characters`);m3("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?AI[_I.LOOSE]:AI[_I.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>b3||this.major<0)throw new TypeError("Invalid major version");if(this.minor>b3||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>b3||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const i=+a;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let i=[n,a];r===!1&&(i=[n]),i0(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var gB=f2e;const CI=gB,d2e=(t,e,n)=>new CI(t,n).compare(new CI(e,n));var p1=d2e;const h2e=p1,p2e=(t,e,n)=>h2e(t,e,n)===0;var y2e=p2e;const m2e=p1,b2e=(t,e,n)=>m2e(t,e,n)!==0;var g2e=b2e;const x2e=p1,v2e=(t,e,n)=>x2e(t,e,n)>0;var w2e=v2e;const E2e=p1,A2e=(t,e,n)=>E2e(t,e,n)>=0;var _2e=A2e;const C2e=p1,B2e=(t,e,n)=>C2e(t,e,n)<0;var S2e=B2e;const T2e=p1,F2e=(t,e,n)=>T2e(t,e,n)<=0;var M2e=F2e;const D2e=y2e,k2e=g2e,I2e=w2e,O2e=_2e,P2e=S2e,R2e=M2e,N2e=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return D2e(t,n,r);case"!=":return k2e(t,n,r);case">":return I2e(t,n,r);case">=":return O2e(t,n,r);case"<":return P2e(t,n,r);case"<=":return R2e(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};var $2e=N2e,I9,BI;function L2e(){if(BI)return I9;BI=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(b,v){if(v=n(v),b instanceof e){if(b.loose===!!v.loose)return b;b=b.value}b=b.trim().split(/\s+/).join(" "),s("comparator",b,v),this.options=v,this.loose=!!v.loose,this.parse(b),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(b){const v=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],E=b.match(v);if(!E)throw new TypeError(`Invalid comparator: ${b}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new o(E[2],this.options.loose):this.semver=t}toString(){return this.value}test(b){if(s("Comparator.test",b,this.options.loose),this.semver===t||b===t)return!0;if(typeof b=="string")try{b=new o(b,this.options)}catch{return!1}return i(b,this.operator,this.semver,this.options)}intersects(b,v){if(!(b instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(b.value,v).test(this.value):b.operator===""?b.value===""?!0:new c(this.value,v).test(b.semver):(v=n(v),v.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&b.operator.startsWith(">")||this.operator.startsWith("<")&&b.operator.startsWith("<")||this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")||i(this.semver,"<",b.semver,v)&&this.operator.startsWith(">")&&b.operator.startsWith("<")||i(this.semver,">",b.semver,v)&&this.operator.startsWith("<")&&b.operator.startsWith(">")))}}I9=e;const n=yB,{safeRe:r,t:a}=bB,i=$2e,s=h4,o=gB,c=dV();return I9}var O9,SI;function dV(){if(SI)return O9;SI=1;class t{constructor(l,y){if(y=r(y),l instanceof t)return l.loose===!!y.loose&&l.includePrerelease===!!y.includePrerelease?l:new t(l.raw,y);if(l instanceof a)return this.raw=l.value,this.set=[[l]],this.format(),this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=l.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(w=>!F(w[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&T(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(l=>l.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(l){const g=((this.options.includePrerelease&&E)|(this.options.loose&&C))+":"+l,w=n.get(g);if(w)return w;const x=this.options.loose,f=x?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];l=l.replace(f,u(this.options.includePrerelease)),i("hyphen replace",l),l=l.replace(o[c.COMPARATORTRIM],h),i("comparator trim",l),l=l.replace(o[c.TILDETRIM],b),i("tilde trim",l),l=l.replace(o[c.CARETTRIM],v),i("caret trim",l);let m=l.split(" ").map($=>D($,this.options)).join(" ").split(/\s+/).map($=>B($,this.options));x&&(m=m.filter($=>(i("loose invalid filter",$,this.options),!!$.match(o[c.COMPARATORLOOSE])))),i("range list",m);const _=new Map,A=m.map($=>new a($,this.options));for(const $ of A){if(F($))return[$];_.set($.value,$)}_.size>1&&_.has("")&&_.delete("");const S=[..._.values()];return n.set(g,S),S}intersects(l,y){if(!(l instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>P(g,y)&&l.set.some(w=>P(w,y)&&g.every(x=>w.every(f=>x.intersects(f,y)))))}test(l){if(!l)return!1;if(typeof l=="string")try{l=new s(l,this.options)}catch{return!1}for(let y=0;yp.value==="<0.0.0-0",T=p=>p.value==="",P=(p,l)=>{let y=!0;const g=p.slice();let w=g.pop();for(;y&&g.length;)y=g.every(x=>w.intersects(x,l)),w=g.pop();return y},D=(p,l)=>(i("comp",p,l),p=U(p,l),i("caret",p),p=O(p,l),i("tildes",p),p=Y(p,l),i("xrange",p),p=X(p,l),i("stars",p),p),M=p=>!p||p.toLowerCase()==="x"||p==="*",O=(p,l)=>p.trim().split(/\s+/).map(y=>k(y,l)).join(" "),k=(p,l)=>{const y=l.loose?o[c.TILDELOOSE]:o[c.TILDE];return p.replace(y,(g,w,x,f,m)=>{i("tilde",p,g,w,x,f,m);let _;return M(w)?_="":M(x)?_=`>=${w}.0.0 <${+w+1}.0.0-0`:M(f)?_=`>=${w}.${x}.0 <${w}.${+x+1}.0-0`:m?(i("replaceTilde pr",m),_=`>=${w}.${x}.${f}-${m} <${w}.${+x+1}.0-0`):_=`>=${w}.${x}.${f} <${w}.${+x+1}.0-0`,i("tilde return",_),_})},U=(p,l)=>p.trim().split(/\s+/).map(y=>V(y,l)).join(" "),V=(p,l)=>{i("caret",p,l);const y=l.loose?o[c.CARETLOOSE]:o[c.CARET],g=l.includePrerelease?"-0":"";return p.replace(y,(w,x,f,m,_)=>{i("caret",p,w,x,f,m,_);let A;return M(x)?A="":M(f)?A=`>=${x}.0.0${g} <${+x+1}.0.0-0`:M(m)?x==="0"?A=`>=${x}.${f}.0${g} <${x}.${+f+1}.0-0`:A=`>=${x}.${f}.0${g} <${+x+1}.0.0-0`:_?(i("replaceCaret pr",_),x==="0"?f==="0"?A=`>=${x}.${f}.${m}-${_} <${x}.${f}.${+m+1}-0`:A=`>=${x}.${f}.${m}-${_} <${x}.${+f+1}.0-0`:A=`>=${x}.${f}.${m}-${_} <${+x+1}.0.0-0`):(i("no pr"),x==="0"?f==="0"?A=`>=${x}.${f}.${m}${g} <${x}.${f}.${+m+1}-0`:A=`>=${x}.${f}.${m}${g} <${x}.${+f+1}.0-0`:A=`>=${x}.${f}.${m} <${+x+1}.0.0-0`),i("caret return",A),A})},Y=(p,l)=>(i("replaceXRanges",p,l),p.split(/\s+/).map(y=>L(y,l)).join(" ")),L=(p,l)=>{p=p.trim();const y=l.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return p.replace(y,(g,w,x,f,m,_)=>{i("xRange",p,g,w,x,f,m,_);const A=M(x),S=A||M(f),$=S||M(m),q=$;return w==="="&&q&&(w=""),_=l.includePrerelease?"-0":"",A?w===">"||w==="<"?g="<0.0.0-0":g="*":w&&q?(S&&(f=0),m=0,w===">"?(w=">=",S?(x=+x+1,f=0,m=0):(f=+f+1,m=0)):w==="<="&&(w="<",S?x=+x+1:f=+f+1),w==="<"&&(_="-0"),g=`${w+x}.${f}.${m}${_}`):S?g=`>=${x}.0.0${_} <${+x+1}.0.0-0`:$&&(g=`>=${x}.${f}.0${_} <${x}.${+f+1}.0-0`),i("xRange return",g),g})},X=(p,l)=>(i("replaceStars",p,l),p.trim().replace(o[c.STAR],"")),B=(p,l)=>(i("replaceGTE0",p,l),p.trim().replace(o[l.includePrerelease?c.GTE0PRE:c.GTE0],"")),u=p=>(l,y,g,w,x,f,m,_,A,S,$,q,I)=>(M(g)?y="":M(w)?y=`>=${g}.0.0${p?"-0":""}`:M(x)?y=`>=${g}.${w}.0${p?"-0":""}`:f?y=`>=${y}`:y=`>=${y}${p?"-0":""}`,M(A)?_="":M(S)?_=`<${+A+1}.0.0-0`:M($)?_=`<${A}.${+S+1}.0-0`:q?_=`<=${A}.${S}.${$}-${q}`:p?_=`<${A}.${S}.${+$+1}-0`:_=`<=${_}`,`${y} ${_}`.trim()),d=(p,l,y)=>{for(let g=0;g0){const w=p[g].semver;if(w.major===l.major&&w.minor===l.minor&&w.patch===l.patch)return!0}return!1}return!0};return O9}const U2e=dV(),j2e=(t,e,n)=>{try{e=new U2e(e,n)}catch{return!1}return e.test(t)};var Id=j2e,Ct={},hV={},pV={};Object.defineProperty(pV,"__esModule",{value:!0});var yV={};const H2e="0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",z2e=!0,G2e="SafeL2",V2e="1.4.1",q2e={1:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",5:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",10:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",56:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",71:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",97:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",100:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",137:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",1030:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",1101:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",1442:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",3636:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",4337:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",7771:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",8192:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",8194:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",8453:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",10242:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",10243:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",11235:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",13337:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",17e3:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",42161:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",42220:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",54211:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",80001:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",81457:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",84531:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",84532:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",444444:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",11155111:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",11155420:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762"},W2e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"SafeModuleTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{indexed:!1,internalType:"uint256",name:"safeTxGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gasPrice",type:"uint256"},{indexed:!1,internalType:"address",name:"gasToken",type:"address"},{indexed:!1,internalType:"address payable",name:"refundReceiver",type:"address"},{indexed:!1,internalType:"bytes",name:"signatures",type:"bytes"},{indexed:!1,internalType:"bytes",name:"additionalInfo",type:"bytes"}],name:"SafeMultiSigTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],K2e={defaultAddress:H2e,released:z2e,contractName:G2e,version:V2e,networkAddresses:q2e,abi:W2e},Z2e="0x41675C099F32341bf84BFc5382aF534df5C7461a",Q2e=!0,X2e="Safe",J2e="1.4.1",Y2e={1:"0x41675C099F32341bf84BFc5382aF534df5C7461a",5:"0x41675C099F32341bf84BFc5382aF534df5C7461a",10:"0x41675C099F32341bf84BFc5382aF534df5C7461a",56:"0x41675C099F32341bf84BFc5382aF534df5C7461a",71:"0x41675C099F32341bf84BFc5382aF534df5C7461a",97:"0x41675C099F32341bf84BFc5382aF534df5C7461a",100:"0x41675C099F32341bf84BFc5382aF534df5C7461a",137:"0x41675C099F32341bf84BFc5382aF534df5C7461a",1030:"0x41675C099F32341bf84BFc5382aF534df5C7461a",1101:"0x41675C099F32341bf84BFc5382aF534df5C7461a",1442:"0x41675C099F32341bf84BFc5382aF534df5C7461a",3636:"0x41675C099F32341bf84BFc5382aF534df5C7461a",4337:"0x41675C099F32341bf84BFc5382aF534df5C7461a",7771:"0x41675C099F32341bf84BFc5382aF534df5C7461a",8192:"0x41675C099F32341bf84BFc5382aF534df5C7461a",8194:"0x41675C099F32341bf84BFc5382aF534df5C7461a",8453:"0x41675C099F32341bf84BFc5382aF534df5C7461a",10242:"0x41675C099F32341bf84BFc5382aF534df5C7461a",10243:"0x41675C099F32341bf84BFc5382aF534df5C7461a",11235:"0x41675C099F32341bf84BFc5382aF534df5C7461a",13337:"0x41675C099F32341bf84BFc5382aF534df5C7461a",17e3:"0x41675C099F32341bf84BFc5382aF534df5C7461a",42161:"0x41675C099F32341bf84BFc5382aF534df5C7461a",42220:"0x41675C099F32341bf84BFc5382aF534df5C7461a",54211:"0x41675C099F32341bf84BFc5382aF534df5C7461a",80001:"0x41675C099F32341bf84BFc5382aF534df5C7461a",81457:"0x41675C099F32341bf84BFc5382aF534df5C7461a",84531:"0x41675C099F32341bf84BFc5382aF534df5C7461a",84532:"0x41675C099F32341bf84BFc5382aF534df5C7461a",444444:"0x41675C099F32341bf84BFc5382aF534df5C7461a",11155111:"0x41675C099F32341bf84BFc5382aF534df5C7461a",11155420:"0x41675C099F32341bf84BFc5382aF534df5C7461a"},e3e=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],t3e={defaultAddress:Z2e,released:Q2e,contractName:X2e,version:J2e,networkAddresses:Y2e,abi:e3e},n3e="0x3E5c63644E683549055b9Be8653de26E0B4CD36E",r3e=!0,a3e="GnosisSafeL2",i3e="1.3.0",s3e={1:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",5:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",10:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",11:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",12:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",18:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",25:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",28:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",30:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",31:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",39:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",40:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",41:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",43:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",44:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",46:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",50:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",51:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",56:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",57:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",61:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",63:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",69:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",71:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",81:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",82:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",83:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",97:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",100:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",106:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",108:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",109:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",111:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",122:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",123:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",137:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",148:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",155:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",169:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",195:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",204:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",246:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",250:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",252:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",255:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",280:"0x1727c2c531cf966f902E5927b98490fDFb3b2b70",288:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",291:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",300:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",321:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",322:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",324:"0x1727c2c531cf966f902E5927b98490fDFb3b2b70",336:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",338:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",420:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",424:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",570:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",588:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",592:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",595:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",599:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",686:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",787:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",919:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1030:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1088:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1101:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1111:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1112:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1115:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1116:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1230:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1231:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1284:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1285:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1287:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1294:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1442:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1559:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1663:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1729:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1807:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1890:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1891:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1984:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1998:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2001:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2002:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2019:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2020:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2021:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2221:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2222:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2358:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",3737:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",3776:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4002:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4202:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4337:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4460:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4689:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",4918:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4919:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",5e3:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",5001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",5003:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",5700:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",6102:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7e3:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7332:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7341:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",7700:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",8192:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",8194:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",8217:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",8453:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",9e3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",9001:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",9728:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1e4:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10081:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10200:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",10242:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10243:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",11235:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",11437:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",11891:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",12357:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",13337:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",13371:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",13473:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",17e3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",17172:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",18231:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",23294:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",23295:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",34443:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42161:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42170:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42220:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",43113:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",43114:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",43288:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",44787:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",45e3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",47805:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",54211:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",56288:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",57e3:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",58008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",59140:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",59144:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",71401:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",71402:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",73799:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",80001:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",80085:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",81457:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",84531:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",84532:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",103454:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",167008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",200101:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",200202:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",333999:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",421611:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",421613:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",421614:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",534351:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",534352:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",534353:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",622277:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",713715:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7777777:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",11155111:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",11155420:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",168587773:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",222000222:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",245022926:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",245022934:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",333000333:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",999999999:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1313161554:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1313161555:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",16666e5:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",16667e5:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","11297108099":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11297108109":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E"},o3e=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"SafeModuleTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{indexed:!1,internalType:"uint256",name:"safeTxGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gasPrice",type:"uint256"},{indexed:!1,internalType:"address",name:"gasToken",type:"address"},{indexed:!1,internalType:"address payable",name:"refundReceiver",type:"address"},{indexed:!1,internalType:"bytes",name:"signatures",type:"bytes"},{indexed:!1,internalType:"bytes",name:"additionalInfo",type:"bytes"}],name:"SafeMultiSigTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],c3e={defaultAddress:n3e,released:r3e,contractName:a3e,version:i3e,networkAddresses:s3e,abi:o3e},l3e="0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",u3e=!0,f3e="GnosisSafe",d3e="1.3.0",h3e={1:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",5:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",10:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",11:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",12:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",18:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",25:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",28:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",30:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",31:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",39:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",40:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",41:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",43:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",44:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",46:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",50:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",51:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",56:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",57:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",61:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",63:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",69:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",71:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",81:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",82:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",83:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",97:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",100:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",106:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",108:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",109:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",111:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",122:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",123:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",137:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",148:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",155:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",169:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",195:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",204:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",246:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",250:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",252:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",255:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",280:"0xB00ce5CCcdEf57e539ddcEd01DF43a13855d9910",288:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",291:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",300:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",321:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",322:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",324:"0xB00ce5CCcdEf57e539ddcEd01DF43a13855d9910",336:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",338:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",420:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",424:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",570:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",588:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",592:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",595:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",599:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",686:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",787:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",919:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1030:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1088:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1101:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1111:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1112:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1115:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1116:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1230:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1231:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1284:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1285:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1287:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1294:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1442:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1559:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1663:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1729:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1807:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1890:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1891:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1984:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1998:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2001:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2002:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2019:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2020:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2021:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2221:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2222:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2358:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",3737:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",3776:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4002:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4202:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4337:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4460:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4689:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",4918:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4919:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",5e3:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",5001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",5003:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",5700:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",6102:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7e3:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7332:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7341:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",7700:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",8192:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",8194:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",8217:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",8453:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",9e3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",9001:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",9728:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1e4:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10081:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10200:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",10242:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10243:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",11235:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",11437:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",11891:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",12357:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",13337:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",13371:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",13473:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",17e3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",17172:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",18231:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",23294:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",23295:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",34443:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42161:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42170:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42220:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",43113:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",43114:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",43288:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",44787:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",45e3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",47805:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",54211:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",56288:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",57e3:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",58008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",59140:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",59144:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",71401:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",71402:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",73799:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",80001:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",80085:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",81457:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",84531:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",84532:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",103454:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",167008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",200101:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",200202:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",333999:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",421611:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",421613:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",421614:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",534351:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",534352:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",534353:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",622277:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",713715:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7777777:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",11155111:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",11155420:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",168587773:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",222000222:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",245022926:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",245022934:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",333000333:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",999999999:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1313161554:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1313161555:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",16666e5:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",16667e5:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","11297108099":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11297108109":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552"},p3e=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],y3e={defaultAddress:l3e,released:u3e,contractName:f3e,version:d3e,networkAddresses:h3e,abi:p3e},m3e="0x6851D6fDFAfD08c0295C392436245E5bc78B0185",b3e=!0,g3e="GnosisSafe",x3e="1.2.0",v3e={1:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",4:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",5:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",42:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",88:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",100:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",246:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",73799:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185"},w3e=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],E3e={defaultAddress:m3e,released:b3e,contractName:g3e,version:x3e,networkAddresses:v3e,abi:w3e},A3e="0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",_3e=!0,C3e="GnosisSafe",B3e="1.1.1",S3e={1:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",4:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",5:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",42:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",88:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",100:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",246:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",73799:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F"},T3e=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],F3e={defaultAddress:A3e,released:_3e,contractName:C3e,version:B3e,networkAddresses:S3e,abi:T3e},M3e="0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",D3e=!0,k3e="GnosisSafe",I3e="1.0.0",O3e={1:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",4:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",5:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",42:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",100:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A"},P3e=[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],R3e={defaultAddress:M3e,released:D3e,contractName:k3e,version:I3e,networkAddresses:O3e,abi:P3e};var Du={};const N3e=Object.freeze({loose:!0}),$3e=Object.freeze({}),L3e=t=>t?typeof t!="object"?N3e:t:$3e;var xB=L3e,pE={exports:{}};const U3e="2.0.0",j3e=256,H3e=Number.MAX_SAFE_INTEGER||9007199254740991,z3e=16,G3e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var vB={MAX_LENGTH:j3e,MAX_SAFE_COMPONENT_LENGTH:z3e,MAX_SAFE_INTEGER:H3e,RELEASE_TYPES:G3e,SEMVER_SPEC_VERSION:U3e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},P9={};const V3e=typeof process=="object"&&P9&&P9.NODE_DEBUG&&/\bsemver\b/i.test(P9.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var p4=V3e;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n}=vB,r=p4;e=t.exports={};const a=e.re=[],i=e.src=[],s=e.t={};let o=0;const c=(h,b,v)=>{const E=o++;r(h,E,b),s[h]=E,i[E]=b,a[E]=new RegExp(b,v?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),c("FULL",`^${i[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),c("LOOSE",`^${i[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),c("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",i[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(pE,pE.exports);var wB=pE.exports;const TI=/^[0-9]+$/,mV=(t,e)=>{const n=TI.test(t),r=TI.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tmV(e,t);var W3e={compareIdentifiers:mV,rcompareIdentifiers:q3e};const g3=p4,{MAX_LENGTH:FI,MAX_SAFE_INTEGER:x3}=vB,{re:MI,t:DI}=wB,K3e=xB,{compareIdentifiers:s0}=W3e;let Z3e=class qs{constructor(e,n){if(n=K3e(n),e instanceof qs){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>FI)throw new TypeError(`version is longer than ${FI} characters`);g3("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?MI[DI.LOOSE]:MI[DI.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>x3||this.major<0)throw new TypeError("Invalid major version");if(this.minor>x3||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>x3||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const i=+a;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let i=[n,a];r===!1&&(i=[n]),s0(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};var EB=Z3e;const kI=EB,Q3e=(t,e,n)=>new kI(t,n).compare(new kI(e,n));var y1=Q3e;const X3e=y1,J3e=(t,e,n)=>X3e(t,e,n)===0;var Y3e=J3e;const e6e=y1,t6e=(t,e,n)=>e6e(t,e,n)!==0;var n6e=t6e;const r6e=y1,a6e=(t,e,n)=>r6e(t,e,n)>0;var i6e=a6e;const s6e=y1,o6e=(t,e,n)=>s6e(t,e,n)>=0;var c6e=o6e;const l6e=y1,u6e=(t,e,n)=>l6e(t,e,n)<0;var f6e=u6e;const d6e=y1,h6e=(t,e,n)=>d6e(t,e,n)<=0;var p6e=h6e;const y6e=Y3e,m6e=n6e,b6e=i6e,g6e=c6e,x6e=f6e,v6e=p6e,w6e=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return y6e(t,n,r);case"!=":return m6e(t,n,r);case">":return b6e(t,n,r);case">=":return g6e(t,n,r);case"<":return x6e(t,n,r);case"<=":return v6e(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};var E6e=w6e,R9,II;function A6e(){if(II)return R9;II=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(b,v){if(v=n(v),b instanceof e){if(b.loose===!!v.loose)return b;b=b.value}s("comparator",b,v),this.options=v,this.loose=!!v.loose,this.parse(b),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(b){const v=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],E=b.match(v);if(!E)throw new TypeError(`Invalid comparator: ${b}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new o(E[2],this.options.loose):this.semver=t}toString(){return this.value}test(b){if(s("Comparator.test",b,this.options.loose),this.semver===t||b===t)return!0;if(typeof b=="string")try{b=new o(b,this.options)}catch{return!1}return i(b,this.operator,this.semver,this.options)}intersects(b,v){if(!(b instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(b.value,v).test(this.value):b.operator===""?b.value===""?!0:new c(this.value,v).test(b.semver):(v=n(v),v.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&b.operator.startsWith(">")||this.operator.startsWith("<")&&b.operator.startsWith("<")||this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")||i(this.semver,"<",b.semver,v)&&this.operator.startsWith(">")&&b.operator.startsWith("<")||i(this.semver,">",b.semver,v)&&this.operator.startsWith("<")&&b.operator.startsWith(">")))}}R9=e;const n=xB,{re:r,t:a}=wB,i=E6e,s=p4,o=EB,c=bV();return R9}var N9,OI;function bV(){if(OI)return N9;OI=1;class t{constructor(l,y){if(y=r(y),l instanceof t)return l.loose===!!y.loose&&l.includePrerelease===!!y.includePrerelease?l:new t(l.raw,y);if(l instanceof a)return this.raw=l.value,this.set=[[l]],this.format(),this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=l,this.set=l.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${l}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(w=>!F(w[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&T(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(l=>l.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(l){l=l.trim();const g=((this.options.includePrerelease&&E)|(this.options.loose&&C))+":"+l,w=n.get(g);if(w)return w;const x=this.options.loose,f=x?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];l=l.replace(f,u(this.options.includePrerelease)),i("hyphen replace",l),l=l.replace(o[c.COMPARATORTRIM],h),i("comparator trim",l),l=l.replace(o[c.TILDETRIM],b),l=l.replace(o[c.CARETTRIM],v),l=l.split(/\s+/).join(" ");let m=l.split(" ").map($=>D($,this.options)).join(" ").split(/\s+/).map($=>B($,this.options));x&&(m=m.filter($=>(i("loose invalid filter",$,this.options),!!$.match(o[c.COMPARATORLOOSE])))),i("range list",m);const _=new Map,A=m.map($=>new a($,this.options));for(const $ of A){if(F($))return[$];_.set($.value,$)}_.size>1&&_.has("")&&_.delete("");const S=[..._.values()];return n.set(g,S),S}intersects(l,y){if(!(l instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>P(g,y)&&l.set.some(w=>P(w,y)&&g.every(x=>w.every(f=>x.intersects(f,y)))))}test(l){if(!l)return!1;if(typeof l=="string")try{l=new s(l,this.options)}catch{return!1}for(let y=0;yp.value==="<0.0.0-0",T=p=>p.value==="",P=(p,l)=>{let y=!0;const g=p.slice();let w=g.pop();for(;y&&g.length;)y=g.every(x=>w.intersects(x,l)),w=g.pop();return y},D=(p,l)=>(i("comp",p,l),p=U(p,l),i("caret",p),p=O(p,l),i("tildes",p),p=Y(p,l),i("xrange",p),p=X(p,l),i("stars",p),p),M=p=>!p||p.toLowerCase()==="x"||p==="*",O=(p,l)=>p.trim().split(/\s+/).map(y=>k(y,l)).join(" "),k=(p,l)=>{const y=l.loose?o[c.TILDELOOSE]:o[c.TILDE];return p.replace(y,(g,w,x,f,m)=>{i("tilde",p,g,w,x,f,m);let _;return M(w)?_="":M(x)?_=`>=${w}.0.0 <${+w+1}.0.0-0`:M(f)?_=`>=${w}.${x}.0 <${w}.${+x+1}.0-0`:m?(i("replaceTilde pr",m),_=`>=${w}.${x}.${f}-${m} <${w}.${+x+1}.0-0`):_=`>=${w}.${x}.${f} <${w}.${+x+1}.0-0`,i("tilde return",_),_})},U=(p,l)=>p.trim().split(/\s+/).map(y=>V(y,l)).join(" "),V=(p,l)=>{i("caret",p,l);const y=l.loose?o[c.CARETLOOSE]:o[c.CARET],g=l.includePrerelease?"-0":"";return p.replace(y,(w,x,f,m,_)=>{i("caret",p,w,x,f,m,_);let A;return M(x)?A="":M(f)?A=`>=${x}.0.0${g} <${+x+1}.0.0-0`:M(m)?x==="0"?A=`>=${x}.${f}.0${g} <${x}.${+f+1}.0-0`:A=`>=${x}.${f}.0${g} <${+x+1}.0.0-0`:_?(i("replaceCaret pr",_),x==="0"?f==="0"?A=`>=${x}.${f}.${m}-${_} <${x}.${f}.${+m+1}-0`:A=`>=${x}.${f}.${m}-${_} <${x}.${+f+1}.0-0`:A=`>=${x}.${f}.${m}-${_} <${+x+1}.0.0-0`):(i("no pr"),x==="0"?f==="0"?A=`>=${x}.${f}.${m}${g} <${x}.${f}.${+m+1}-0`:A=`>=${x}.${f}.${m}${g} <${x}.${+f+1}.0-0`:A=`>=${x}.${f}.${m} <${+x+1}.0.0-0`),i("caret return",A),A})},Y=(p,l)=>(i("replaceXRanges",p,l),p.split(/\s+/).map(y=>L(y,l)).join(" ")),L=(p,l)=>{p=p.trim();const y=l.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return p.replace(y,(g,w,x,f,m,_)=>{i("xRange",p,g,w,x,f,m,_);const A=M(x),S=A||M(f),$=S||M(m),q=$;return w==="="&&q&&(w=""),_=l.includePrerelease?"-0":"",A?w===">"||w==="<"?g="<0.0.0-0":g="*":w&&q?(S&&(f=0),m=0,w===">"?(w=">=",S?(x=+x+1,f=0,m=0):(f=+f+1,m=0)):w==="<="&&(w="<",S?x=+x+1:f=+f+1),w==="<"&&(_="-0"),g=`${w+x}.${f}.${m}${_}`):S?g=`>=${x}.0.0${_} <${+x+1}.0.0-0`:$&&(g=`>=${x}.${f}.0${_} <${x}.${+f+1}.0-0`),i("xRange return",g),g})},X=(p,l)=>(i("replaceStars",p,l),p.trim().replace(o[c.STAR],"")),B=(p,l)=>(i("replaceGTE0",p,l),p.trim().replace(o[l.includePrerelease?c.GTE0PRE:c.GTE0],"")),u=p=>(l,y,g,w,x,f,m,_,A,S,$,q,I)=>(M(g)?y="":M(w)?y=`>=${g}.0.0${p?"-0":""}`:M(x)?y=`>=${g}.${w}.0${p?"-0":""}`:f?y=`>=${y}`:y=`>=${y}${p?"-0":""}`,M(A)?_="":M(S)?_=`<${+A+1}.0.0-0`:M($)?_=`<${A}.${+S+1}.0-0`:q?_=`<=${A}.${S}.${$}-${q}`:p?_=`<${A}.${S}.${+$+1}-0`:_=`<=${_}`,`${y} ${_}`.trim()),d=(p,l,y)=>{for(let g=0;g0){const w=p[g].semver;if(w.major===l.major&&w.minor===l.minor&&w.patch===l.patch)return!0}return!1}return!0};return N9}const _6e=bV(),C6e=(t,e,n)=>{try{e=new _6e(e,n)}catch{return!1}return e.test(t)};var B6e=C6e,S6e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Du,"__esModule",{value:!0});Du.findDeployment=void 0;const T6e=S6e(B6e),PI={released:!0},F6e=(t=PI,e)=>{const n=Object.assign(Object.assign({},PI),t);return e.find(r=>!(typeof n.version<"u"&&!(0,T6e.default)(r.version,n.version)||typeof n.released=="boolean"&&r.released!=n.released||n.network&&!r.networkAddresses[n.network]))};Du.findDeployment=F6e;(function(t){var e=he&&he.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSafeL2SingletonDeployment=t._safeL2Deployments=t.getSafeSingletonDeployment=t._safeDeployments=void 0;const n=e(K2e),r=e(t3e),a=e(c3e),i=e(y3e),s=e(E3e),o=e(F3e),c=e(R3e),h=Du;t._safeDeployments=[r.default,i.default,s.default,o.default,c.default];const b=E=>(0,h.findDeployment)(E,t._safeDeployments);t.getSafeSingletonDeployment=b,t._safeL2Deployments=[n.default,a.default];const v=E=>(0,h.findDeployment)(E,t._safeL2Deployments);t.getSafeL2SingletonDeployment=v})(yV);var y4={};const M6e="0x12302fE9c02ff50939BaAaaf415fc226C078613C",D6e=!0,k6e="ProxyFactory",I6e="1.0.0",O6e={1:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",4:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",5:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",42:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",100:"0x12302fE9c02ff50939BaAaaf415fc226C078613C"},P6e=[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}],R6e={defaultAddress:M6e,released:D6e,contractName:k6e,version:I6e,networkAddresses:O6e,abi:P6e},N6e="0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",$6e=!0,L6e="ProxyFactory",U6e="1.1.1",j6e={1:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",4:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",5:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",42:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",88:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",100:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",246:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",73799:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B"},H6e=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}],z6e={defaultAddress:N6e,released:$6e,contractName:L6e,version:U6e,networkAddresses:j6e,abi:H6e},G6e="0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",V6e=!0,q6e="GnosisSafeProxyFactory",W6e="1.3.0",K6e={1:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",5:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",10:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",11:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",12:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",18:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",25:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",28:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",30:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",31:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",39:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",40:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",41:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",43:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",44:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",46:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",50:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",51:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",56:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",57:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",61:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",63:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",69:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",71:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",81:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",82:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",83:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",97:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",100:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",106:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",108:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",109:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",111:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",122:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",123:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",137:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",148:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",155:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",169:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",195:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",204:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",246:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",250:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",252:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",255:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",280:"0xDAec33641865E4651fB43181C6DB6f7232Ee91c2",288:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",291:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",300:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",321:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",322:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",324:"0xDAec33641865E4651fB43181C6DB6f7232Ee91c2",336:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",338:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",420:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",424:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",570:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",588:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",592:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",595:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",599:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",686:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",787:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",919:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1030:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1088:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1101:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1111:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1112:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1115:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1116:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1230:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1231:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1284:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1285:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1287:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1294:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1442:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1559:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1663:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1729:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1807:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1890:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1891:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1984:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1998:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2001:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2002:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2019:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2020:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2021:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2221:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2222:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2358:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",3737:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",3776:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4002:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4202:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4337:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4460:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4689:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",4918:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4919:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",5e3:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",5001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",5003:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",5700:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",6102:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7e3:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7332:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7341:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",7700:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",8192:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",8194:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",8217:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",8453:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",9e3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",9001:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",9728:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1e4:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10081:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10200:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",10242:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10243:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",11235:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",11437:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",11891:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",12357:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",13337:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",13371:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",13473:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",17e3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",17172:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",18231:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",23294:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",23295:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",34443:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42161:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42170:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42220:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",43113:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",43114:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",43288:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",44787:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",45e3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",47805:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",54211:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",56288:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",57e3:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",58008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",59140:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",59144:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",71401:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",71402:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",73799:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",80001:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",80085:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",81457:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",84531:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",84532:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",103454:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",167008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",200101:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",200202:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",333999:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",421611:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",421613:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",421614:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",534351:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",534352:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",534353:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",622277:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",713715:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7777777:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",11155111:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",11155420:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",168587773:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",222000222:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",245022926:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",245022934:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",333000333:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",999999999:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1313161554:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1313161555:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",16666e5:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",16667e5:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","11297108099":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11297108109":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2"},Z6e=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}],Q6e={defaultAddress:G6e,released:V6e,contractName:q6e,version:W6e,networkAddresses:K6e,abi:Z6e},X6e="0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",J6e="SafeProxyFactory",Y6e="1.4.1",ege=!0,tge={1:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",5:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",10:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",56:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",71:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",97:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",100:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",137:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",1030:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",1101:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",1442:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",3636:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",4337:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",7771:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",8192:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",8194:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",8453:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",10242:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",10243:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",11235:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",13337:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",17e3:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",42161:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",42220:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",54211:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",80001:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",81457:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",84531:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",84532:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",444444:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",11155111:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",11155420:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"},nge=[{anonymous:!1,inputs:[{indexed:!0,internalType:"contract SafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createChainSpecificProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}],rge={defaultAddress:X6e,contractName:J6e,version:Y6e,released:ege,networkAddresses:tge,abi:nge};var m4=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(y4,"__esModule",{value:!0});y4.getProxyFactoryDeployment=void 0;const age=m4(R6e),ige=m4(z6e),sge=m4(Q6e),oge=m4(rge),cge=Du,lge=[oge.default,sge.default,ige.default,age.default],uge=t=>(0,cge.findDeployment)(t,lge);y4.getProxyFactoryDeployment=uge;var mo={};const fge="0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",dge=!0,hge="CreateCall",pge="1.3.0",yge={1:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",5:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",10:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",11:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",12:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",18:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",25:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",28:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",30:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",31:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",39:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",40:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",41:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",43:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",44:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",46:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",50:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",51:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",56:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",57:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",61:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",63:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",69:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",71:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",81:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",82:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",83:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",97:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",100:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",106:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",108:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",109:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",111:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",122:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",123:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",137:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",148:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",155:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",169:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",195:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",204:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",246:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",250:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",252:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",255:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",280:"0xcB8e5E438c5c2b45FbE17B02Ca9aF91509a8ad56",288:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",291:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",300:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",321:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",322:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",324:"0xcB8e5E438c5c2b45FbE17B02Ca9aF91509a8ad56",336:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",338:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",420:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",424:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",570:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",588:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",592:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",595:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",599:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",686:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",787:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",919:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1030:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1088:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1101:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1111:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1112:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1115:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1116:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1230:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1231:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1284:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1285:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1287:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1294:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1442:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1559:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1663:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1729:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1807:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1890:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1891:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1984:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1998:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2001:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2002:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2019:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2020:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2021:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2221:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2222:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2358:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",3737:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",3776:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4002:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4202:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4337:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4460:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4689:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",4918:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4919:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",5e3:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",5001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",5003:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",5700:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",6102:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7e3:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7332:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7341:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",7700:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",8192:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",8194:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",8217:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",8453:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",9e3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",9001:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",9728:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1e4:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10081:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10200:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",10242:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10243:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",11235:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",11437:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",11891:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",12357:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",13337:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",13371:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",13473:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",17e3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",17172:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",18231:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",23294:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",23295:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",34443:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42161:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42170:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42220:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",43113:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",43114:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",43288:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",44787:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",45e3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",47805:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",54211:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",56288:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",57e3:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",58008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",59140:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",59144:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",71401:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",71402:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",73799:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",80001:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",80085:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",81457:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",84531:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",84532:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",103454:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",167008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",200101:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",200202:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",333999:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",421611:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",421613:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",421614:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",534351:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",534352:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",534353:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",622277:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",713715:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7777777:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",11155111:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",11155420:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",168587773:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",222000222:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",245022926:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",245022934:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",333000333:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",999999999:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1313161554:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1313161555:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",16666e5:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",16667e5:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","11297108099":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11297108109":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4"},mge=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}],bge={defaultAddress:fge,released:dge,contractName:hge,version:pge,networkAddresses:yge,abi:mge},gge="0x9b35Af71d77eaf8d7e40252370304687390A1A52",xge=!0,vge="CreateCall",wge="1.4.1",Ege={1:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",5:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",10:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",56:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",71:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",97:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",100:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",137:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",1030:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",1101:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",1442:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",3636:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",4337:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",7771:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",8192:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",8194:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",8453:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",10242:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",10243:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",11235:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",13337:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",17e3:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",42161:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",42220:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",54211:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",80001:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",81457:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",84531:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",84532:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",444444:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",11155111:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",11155420:"0x9b35Af71d77eaf8d7e40252370304687390A1A52"},Age=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}],_ge={defaultAddress:gge,released:xge,contractName:vge,version:wge,networkAddresses:Ege,abi:Age},Cge="0x8D29bE29923b68abfDD21e541b9374737B49cdAD",Bge=!0,Sge="MultiSend",Tge="1.1.1",Fge={1:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",4:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",5:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",42:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",88:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",100:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",246:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",73799:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD"},Mge=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],Dge={defaultAddress:Cge,released:Bge,contractName:Sge,version:Tge,networkAddresses:Fge,abi:Mge},kge="0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",Ige=!0,Oge="MultiSend",Pge="1.3.0",Rge={1:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",5:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",10:"0x998739BFdAAdde7C933B942a68053933098f9EDa",11:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",12:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",18:"0x998739BFdAAdde7C933B942a68053933098f9EDa",25:"0x998739BFdAAdde7C933B942a68053933098f9EDa",28:"0x998739BFdAAdde7C933B942a68053933098f9EDa",30:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",31:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",39:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",40:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",41:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",43:"0x998739BFdAAdde7C933B942a68053933098f9EDa",44:"0x998739BFdAAdde7C933B942a68053933098f9EDa",46:"0x998739BFdAAdde7C933B942a68053933098f9EDa",50:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",51:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",56:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",57:"0x998739BFdAAdde7C933B942a68053933098f9EDa",61:"0x998739BFdAAdde7C933B942a68053933098f9EDa",63:"0x998739BFdAAdde7C933B942a68053933098f9EDa",69:"0x998739BFdAAdde7C933B942a68053933098f9EDa",71:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",81:"0x998739BFdAAdde7C933B942a68053933098f9EDa",82:"0x998739BFdAAdde7C933B942a68053933098f9EDa",83:"0x998739BFdAAdde7C933B942a68053933098f9EDa",97:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",100:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",106:"0x998739BFdAAdde7C933B942a68053933098f9EDa",108:"0x998739BFdAAdde7C933B942a68053933098f9EDa",109:"0x998739BFdAAdde7C933B942a68053933098f9EDa",111:"0x998739BFdAAdde7C933B942a68053933098f9EDa",122:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",123:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",137:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",148:"0x998739BFdAAdde7C933B942a68053933098f9EDa",155:"0x998739BFdAAdde7C933B942a68053933098f9EDa",169:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",195:"0x998739BFdAAdde7C933B942a68053933098f9EDa",204:"0x998739BFdAAdde7C933B942a68053933098f9EDa",246:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",250:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",252:"0x998739BFdAAdde7C933B942a68053933098f9EDa",255:"0x998739BFdAAdde7C933B942a68053933098f9EDa",280:"0x0dFcccB95225ffB03c6FBB2559B530C2B7C8A912",288:"0x998739BFdAAdde7C933B942a68053933098f9EDa",291:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",300:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",321:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",322:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",324:"0x0dFcccB95225ffB03c6FBB2559B530C2B7C8A912",336:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",338:"0x998739BFdAAdde7C933B942a68053933098f9EDa",420:"0x998739BFdAAdde7C933B942a68053933098f9EDa",424:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",570:"0x998739BFdAAdde7C933B942a68053933098f9EDa",588:"0x998739BFdAAdde7C933B942a68053933098f9EDa",592:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",595:"0x998739BFdAAdde7C933B942a68053933098f9EDa",599:"0x998739BFdAAdde7C933B942a68053933098f9EDa",686:"0x998739BFdAAdde7C933B942a68053933098f9EDa",787:"0x998739BFdAAdde7C933B942a68053933098f9EDa",919:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1030:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1088:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1101:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1111:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1112:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1115:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1116:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1230:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1231:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1284:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1285:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1287:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1294:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1442:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1559:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1663:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1729:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1807:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1890:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1891:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1984:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1998:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2001:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2002:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2019:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2020:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2021:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2221:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2222:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2358:"0x998739BFdAAdde7C933B942a68053933098f9EDa",3737:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",3776:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4002:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4202:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4337:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4460:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4689:"0x998739BFdAAdde7C933B942a68053933098f9EDa",4918:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4919:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",5e3:"0x998739BFdAAdde7C933B942a68053933098f9EDa",5001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",5003:"0x998739BFdAAdde7C933B942a68053933098f9EDa",5700:"0x998739BFdAAdde7C933B942a68053933098f9EDa",6102:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7e3:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7332:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7341:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",7700:"0x998739BFdAAdde7C933B942a68053933098f9EDa",8192:"0x998739BFdAAdde7C933B942a68053933098f9EDa",8194:"0x998739BFdAAdde7C933B942a68053933098f9EDa",8217:"0x998739BFdAAdde7C933B942a68053933098f9EDa",8453:"0x998739BFdAAdde7C933B942a68053933098f9EDa",9e3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",9001:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",9728:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1e4:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10081:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10200:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",10242:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10243:"0x998739BFdAAdde7C933B942a68053933098f9EDa",11235:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",11437:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",11891:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",12357:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",13337:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",13371:"0x998739BFdAAdde7C933B942a68053933098f9EDa",13473:"0x998739BFdAAdde7C933B942a68053933098f9EDa",17e3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",17172:"0x998739BFdAAdde7C933B942a68053933098f9EDa",18231:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",23294:"0x998739BFdAAdde7C933B942a68053933098f9EDa",23295:"0x998739BFdAAdde7C933B942a68053933098f9EDa",34443:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42161:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42170:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42220:"0x998739BFdAAdde7C933B942a68053933098f9EDa",43113:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",43114:"0x998739BFdAAdde7C933B942a68053933098f9EDa",43288:"0x998739BFdAAdde7C933B942a68053933098f9EDa",44787:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",45e3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",47805:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",54211:"0x998739BFdAAdde7C933B942a68053933098f9EDa",56288:"0x998739BFdAAdde7C933B942a68053933098f9EDa",57e3:"0x998739BFdAAdde7C933B942a68053933098f9EDa",58008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",59140:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",59144:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",71401:"0x998739BFdAAdde7C933B942a68053933098f9EDa",71402:"0x998739BFdAAdde7C933B942a68053933098f9EDa",73799:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",80001:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",80085:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",81457:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",84531:"0x998739BFdAAdde7C933B942a68053933098f9EDa",84532:"0x998739BFdAAdde7C933B942a68053933098f9EDa",103454:"0x998739BFdAAdde7C933B942a68053933098f9EDa",167008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",200101:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",200202:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",333999:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",421611:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",421613:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",421614:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",534351:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",534352:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",534353:"0x998739BFdAAdde7C933B942a68053933098f9EDa",622277:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",713715:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7777777:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",11155111:"0x998739BFdAAdde7C933B942a68053933098f9EDa",11155420:"0x998739BFdAAdde7C933B942a68053933098f9EDa",168587773:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",222000222:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",245022926:"0x998739BFdAAdde7C933B942a68053933098f9EDa",245022934:"0x998739BFdAAdde7C933B942a68053933098f9EDa",333000333:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",999999999:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1313161554:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1313161555:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",16666e5:"0x998739BFdAAdde7C933B942a68053933098f9EDa",16667e5:"0x998739BFdAAdde7C933B942a68053933098f9EDa","11297108099":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11297108109":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"},Nge=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],$ge={defaultAddress:kge,released:Ige,contractName:Oge,version:Pge,networkAddresses:Rge,abi:Nge},Lge="0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",Uge=!0,jge="MultiSend",Hge="1.4.1",zge={1:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",5:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",10:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",56:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",71:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",97:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",100:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",137:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",1030:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",1101:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",1442:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",3636:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",4337:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",7771:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",8192:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",8194:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",8453:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",10242:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",10243:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",11235:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",13337:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",17e3:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",42161:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",42220:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",54211:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",80001:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",81457:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",84531:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",84532:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",444444:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",11155111:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",11155420:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526"},Gge=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],Vge={defaultAddress:Lge,released:Uge,contractName:jge,version:Hge,networkAddresses:zge,abi:Gge},qge="0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",Wge=!0,Kge="MultiSendCallOnly",Zge="1.3.0",Qge={1:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",5:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",10:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",11:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",12:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",18:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",25:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",28:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",30:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",31:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",39:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",40:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",41:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",43:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",44:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",46:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",50:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",51:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",56:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",57:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",61:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",63:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",69:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",71:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",81:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",82:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",83:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",97:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",100:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",106:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",108:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",109:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",111:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",122:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",123:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",137:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",148:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",155:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",169:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",195:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",204:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",246:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",250:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",252:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",255:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",280:"0xf220D3b4DFb23C4ade8C88E526C1353AbAcbC38F",288:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",291:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",300:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",321:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",322:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",324:"0xf220D3b4DFb23C4ade8C88E526C1353AbAcbC38F",336:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",338:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",420:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",424:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",570:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",588:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",592:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",595:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",599:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",686:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",787:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",919:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1030:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1088:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1101:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1111:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1112:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1115:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1116:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1230:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1231:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1284:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1285:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1287:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1294:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1442:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1559:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1663:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1729:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1807:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1890:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1891:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1984:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1998:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2001:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2002:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2019:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2020:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2021:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2221:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2222:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2358:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",3737:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",3776:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4002:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4202:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4337:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4460:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4689:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",4918:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4919:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",5e3:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",5001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",5003:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",5700:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",6102:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7e3:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7332:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7341:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",7700:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",8192:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",8194:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",8217:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",8453:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",9e3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",9001:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",9728:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1e4:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10081:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10200:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",10242:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10243:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",11235:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",11437:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",11891:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",12357:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",13337:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",13371:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",13473:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",17e3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",17172:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",18231:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",23294:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",23295:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",34443:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42161:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42170:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42220:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",43113:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",43114:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",43288:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",44787:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",45e3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",47805:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",54211:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",56288:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",57e3:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",58008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",59140:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",59144:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",71401:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",71402:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",73799:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",80001:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",80085:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",81457:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",84531:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",84532:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",103454:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",167008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",200101:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",200202:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",333999:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",421611:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",421613:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",421614:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",534351:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",534352:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",534353:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",622277:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",713715:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7777777:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",11155111:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",11155420:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",168587773:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",222000222:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",245022926:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",245022934:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",333000333:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",999999999:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1313161554:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1313161555:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",16666e5:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",16667e5:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","11297108099":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11297108109":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"},Xge=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],Jge={defaultAddress:qge,released:Wge,contractName:Kge,version:Zge,networkAddresses:Qge,abi:Xge},Yge="0x9641d764fc13c8B624c04430C7356C1C7C8102e2",e8e=!0,t8e="MultiSendCallOnly",n8e="1.4.1",r8e={1:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",5:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",10:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",56:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",71:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",97:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",100:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",137:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",1030:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",1101:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",1442:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",3636:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",4337:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",7771:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",8192:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",8194:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",8453:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",10242:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",10243:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",11235:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",13337:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",17e3:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",42161:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",42220:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",54211:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",80001:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",81457:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",84531:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",84532:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",444444:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",11155111:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",11155420:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2"},a8e=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],i8e={defaultAddress:Yge,released:e8e,contractName:t8e,version:n8e,networkAddresses:r8e,abi:a8e},s8e="0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",o8e="SignMessageLib",c8e="1.3.0",l8e=!0,u8e={1:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",5:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",10:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",11:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",12:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",18:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",25:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",28:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",30:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",31:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",39:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",40:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",41:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",43:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",44:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",46:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",50:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",51:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",56:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",57:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",61:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",63:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",69:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",71:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",81:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",82:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",83:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",97:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",100:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",106:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",108:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",109:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",111:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",122:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",123:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",137:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",148:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",155:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",169:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",195:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",204:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",246:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",250:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",252:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",255:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",280:"0x357147caf9C0cCa67DfA0CF5369318d8193c8407",288:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",291:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",300:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",321:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",322:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",324:"0x357147caf9C0cCa67DfA0CF5369318d8193c8407",336:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",338:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",420:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",424:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",570:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",588:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",592:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",595:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",599:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",686:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",787:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",919:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1030:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1088:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1101:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1111:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1112:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1115:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1116:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1230:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1231:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1284:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1285:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1287:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1294:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1442:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1559:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1663:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1729:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1807:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1890:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1891:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1984:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1998:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2001:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2002:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2019:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2020:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2021:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2221:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2222:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2358:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",3737:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",3776:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4002:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4202:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4337:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4460:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4689:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",4918:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4919:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",5e3:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",5001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",5003:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",5700:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",6102:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7e3:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7332:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7341:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",7700:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",8192:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",8194:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",8217:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",8453:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",9e3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",9001:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",9728:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1e4:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10081:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10200:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",10242:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10243:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",11235:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",11437:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",11891:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",12357:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",13337:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",13371:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",13473:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",17e3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",17172:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",18231:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",23294:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",23295:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",34443:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42161:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42170:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42220:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",43113:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",43114:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",43288:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",44787:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",45e3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",47805:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",54211:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",56288:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",57e3:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",58008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",59140:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",59144:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",71401:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",71402:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",73799:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",80001:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",80085:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",81457:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",84531:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",84532:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",103454:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",167008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",200101:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",200202:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",333999:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",421611:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",421613:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",421614:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",534351:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",534352:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",534353:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",622277:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",713715:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7777777:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",11155111:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",11155420:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",168587773:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",222000222:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",245022926:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",245022934:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",333000333:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",999999999:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1313161554:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1313161555:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",16666e5:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",16667e5:"0x98FFBBF51bb33A056B08ddf711f289936AafF717","11297108099":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11297108109":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2"},f8e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}],d8e={defaultAddress:s8e,contractName:o8e,version:c8e,released:l8e,networkAddresses:u8e,abi:f8e},h8e="0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",p8e="SignMessageLib",y8e="1.4.1",m8e=!0,b8e={1:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",5:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",10:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",56:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",71:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",97:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",100:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",137:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",1030:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",1101:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",1442:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",3636:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",4337:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",7771:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",8192:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",8194:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",8453:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",10242:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",10243:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",11235:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",13337:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",17e3:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",42161:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",42220:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",54211:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",80001:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",81457:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",84531:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",84532:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",444444:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",11155111:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",11155420:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9"},g8e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}],x8e={defaultAddress:h8e,contractName:p8e,version:y8e,released:m8e,networkAddresses:b8e,abi:g8e};var Yc=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mo,"__esModule",{value:!0});mo.getSignMessageLibDeployment=mo.getCreateCallDeployment=mo.getMultiSendCallOnlyDeployment=mo.getMultiSendDeployment=void 0;const v8e=Yc(bge),w8e=Yc(_ge),E8e=Yc(Dge),A8e=Yc($ge),_8e=Yc(Vge),C8e=Yc(Jge),B8e=Yc(i8e),S8e=Yc(d8e),T8e=Yc(x8e),b4=Du,F8e=[_8e.default,A8e.default,E8e.default],M8e=t=>(0,b4.findDeployment)(t,F8e);mo.getMultiSendDeployment=M8e;const D8e=[B8e.default,C8e.default],k8e=t=>(0,b4.findDeployment)(t,D8e);mo.getMultiSendCallOnlyDeployment=k8e;const I8e=[w8e.default,v8e.default],O8e=t=>(0,b4.findDeployment)(t,I8e);mo.getCreateCallDeployment=O8e;const P8e=[T8e.default,S8e.default],R8e=t=>(0,b4.findDeployment)(t,P8e);mo.getSignMessageLibDeployment=R8e;var cu={};const N8e="0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",$8e=!0,L8e="DefaultCallbackHandler",U8e="1.1.1",j8e={1:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",4:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",5:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",42:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",88:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",100:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",246:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",73799:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44"},H8e=[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,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"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,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"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,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"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],z8e={defaultAddress:N8e,released:$8e,contractName:L8e,version:U8e,networkAddresses:j8e,abi:H8e},G8e="0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",V8e=!0,q8e="CompatibilityFallbackHandler",W8e="1.3.0",K8e={1:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",5:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",10:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",11:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",12:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",18:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",25:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",28:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",30:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",31:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",39:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",40:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",41:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",43:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",44:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",46:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",50:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",51:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",56:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",57:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",61:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",63:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",69:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",71:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",81:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",82:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",83:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",97:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",100:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",106:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",108:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",109:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",111:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",122:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",123:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",137:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",148:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",155:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",169:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",195:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",204:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",246:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",250:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",252:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",255:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",280:"0x2f870a80647BbC554F3a0EBD093f11B4d2a7492A",288:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",291:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",300:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",321:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",322:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",324:"0x2f870a80647BbC554F3a0EBD093f11B4d2a7492A",336:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",338:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",420:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",424:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",570:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",588:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",592:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",595:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",599:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",686:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",787:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",919:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1030:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1088:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1101:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1111:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1112:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1115:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1116:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1230:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1231:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1284:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1285:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1287:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1294:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1442:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1559:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1663:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1729:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1807:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1890:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1891:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1984:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1998:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2001:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2002:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2019:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2020:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2021:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2221:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2222:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2358:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",3737:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",3776:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4002:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4202:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4337:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4460:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4689:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",4918:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4919:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",5e3:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",5001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",5003:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",5700:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",6102:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7e3:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7332:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7341:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",7700:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",8192:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",8194:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",8217:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",8453:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",9e3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",9001:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",9728:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1e4:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10081:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10200:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",10242:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10243:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",11235:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",11437:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",11891:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",12357:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",13337:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",13371:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",13473:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",17e3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",17172:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",18231:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",23294:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",23295:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",34443:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42161:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42170:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42220:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",43113:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",43114:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",43288:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",44787:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",45e3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",47805:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",54211:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",56288:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",57e3:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",58008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",59140:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",59144:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",71401:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",71402:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",73799:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",80001:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",80085:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",81457:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",84531:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",84532:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",103454:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",167008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",200101:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",200202:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",333999:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",421611:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",421613:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",421614:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",534351:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",534352:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",534353:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",622277:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",713715:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7777777:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",11155111:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",11155420:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",168587773:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",222000222:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",245022926:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",245022934:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",333000333:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",999999999:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1313161554:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1313161555:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",16666e5:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",16667e5:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","11297108099":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11297108109":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4"},Z8e=[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}],Q8e={defaultAddress:G8e,released:V8e,contractName:q8e,version:W8e,networkAddresses:K8e,abi:Z8e},X8e="0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",J8e=!0,Y8e="CompatibilityFallbackHandler",exe="1.4.1",txe={1:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",5:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",10:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",56:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",71:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",97:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",100:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",137:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",1030:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",1101:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",1442:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",3636:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",4337:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",7771:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",8192:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",8194:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",8453:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",10242:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",10243:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",11235:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",13337:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",17e3:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",42161:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",42220:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",54211:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",80001:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",81457:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",84531:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",84532:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",444444:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",11155111:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",11155420:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99"},nxe=[{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"encodeMessageDataForSafe",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}],rxe={defaultAddress:X8e,released:J8e,contractName:Y8e,version:exe,networkAddresses:txe,abi:nxe};var AB=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cu,"__esModule",{value:!0});cu.getFallbackHandlerDeployment=cu.getCompatibilityFallbackHandlerDeployment=cu.getDefaultCallbackHandlerDeployment=void 0;const gV=AB(z8e),xV=AB(Q8e),vV=AB(rxe),_B=Du,axe=[gV.default],ixe=t=>(0,_B.findDeployment)(t,axe);cu.getDefaultCallbackHandlerDeployment=ixe;const sxe=[vV.default,xV.default],oxe=t=>(0,_B.findDeployment)(t,sxe);cu.getCompatibilityFallbackHandlerDeployment=oxe;const cxe=[vV.default,xV.default,gV.default],lxe=t=>(0,_B.findDeployment)(t,cxe);cu.getFallbackHandlerDeployment=lxe;var g4={};const uxe="0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",fxe=!0,dxe="SimulateTxAccessor",hxe="1.3.0",pxe={1:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",5:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",10:"0x727a77a074D1E6c4530e814F89E618a3298FC044",11:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",12:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",18:"0x727a77a074D1E6c4530e814F89E618a3298FC044",25:"0x727a77a074D1E6c4530e814F89E618a3298FC044",28:"0x727a77a074D1E6c4530e814F89E618a3298FC044",30:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",31:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",39:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",40:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",41:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",43:"0x727a77a074D1E6c4530e814F89E618a3298FC044",44:"0x727a77a074D1E6c4530e814F89E618a3298FC044",46:"0x727a77a074D1E6c4530e814F89E618a3298FC044",50:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",51:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",56:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",57:"0x727a77a074D1E6c4530e814F89E618a3298FC044",61:"0x727a77a074D1E6c4530e814F89E618a3298FC044",63:"0x727a77a074D1E6c4530e814F89E618a3298FC044",69:"0x727a77a074D1E6c4530e814F89E618a3298FC044",71:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",81:"0x727a77a074D1E6c4530e814F89E618a3298FC044",82:"0x727a77a074D1E6c4530e814F89E618a3298FC044",83:"0x727a77a074D1E6c4530e814F89E618a3298FC044",97:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",100:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",106:"0x727a77a074D1E6c4530e814F89E618a3298FC044",108:"0x727a77a074D1E6c4530e814F89E618a3298FC044",109:"0x727a77a074D1E6c4530e814F89E618a3298FC044",111:"0x727a77a074D1E6c4530e814F89E618a3298FC044",122:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",123:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",137:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",148:"0x727a77a074D1E6c4530e814F89E618a3298FC044",155:"0x727a77a074D1E6c4530e814F89E618a3298FC044",169:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",195:"0x727a77a074D1E6c4530e814F89E618a3298FC044",204:"0x727a77a074D1E6c4530e814F89E618a3298FC044",246:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",250:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",252:"0x727a77a074D1E6c4530e814F89E618a3298FC044",255:"0x727a77a074D1E6c4530e814F89E618a3298FC044",280:"0x4191E2e12E8BC5002424CE0c51f9947b02675a44",288:"0x727a77a074D1E6c4530e814F89E618a3298FC044",291:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",300:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",321:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",322:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",324:"0x4191E2e12E8BC5002424CE0c51f9947b02675a44",336:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",338:"0x727a77a074D1E6c4530e814F89E618a3298FC044",420:"0x727a77a074D1E6c4530e814F89E618a3298FC044",424:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",570:"0x727a77a074D1E6c4530e814F89E618a3298FC044",588:"0x727a77a074D1E6c4530e814F89E618a3298FC044",592:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",595:"0x727a77a074D1E6c4530e814F89E618a3298FC044",599:"0x727a77a074D1E6c4530e814F89E618a3298FC044",686:"0x727a77a074D1E6c4530e814F89E618a3298FC044",787:"0x727a77a074D1E6c4530e814F89E618a3298FC044",919:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1008:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1030:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1088:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1101:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1111:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1112:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1115:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1116:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1230:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1231:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1284:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1285:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1287:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1294:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1442:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1559:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1663:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1729:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1807:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1890:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1891:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1984:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1998:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2001:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2002:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2008:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2019:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2020:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2021:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2221:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2222:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2358:"0x727a77a074D1E6c4530e814F89E618a3298FC044",3737:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",3776:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4002:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4202:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4337:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4460:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4689:"0x727a77a074D1E6c4530e814F89E618a3298FC044",4918:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4919:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",5e3:"0x727a77a074D1E6c4530e814F89E618a3298FC044",5001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",5003:"0x727a77a074D1E6c4530e814F89E618a3298FC044",5700:"0x727a77a074D1E6c4530e814F89E618a3298FC044",6102:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7e3:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7332:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7341:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",7700:"0x727a77a074D1E6c4530e814F89E618a3298FC044",8192:"0x727a77a074D1E6c4530e814F89E618a3298FC044",8194:"0x727a77a074D1E6c4530e814F89E618a3298FC044",8217:"0x727a77a074D1E6c4530e814F89E618a3298FC044",8453:"0x727a77a074D1E6c4530e814F89E618a3298FC044",9e3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",9001:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",9728:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1e4:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10081:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10200:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",10242:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10243:"0x727a77a074D1E6c4530e814F89E618a3298FC044",11235:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",11437:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",11891:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",12357:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",13337:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",13371:"0x727a77a074D1E6c4530e814F89E618a3298FC044",13473:"0x727a77a074D1E6c4530e814F89E618a3298FC044",17e3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",17172:"0x727a77a074D1E6c4530e814F89E618a3298FC044",18231:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",23294:"0x727a77a074D1E6c4530e814F89E618a3298FC044",23295:"0x727a77a074D1E6c4530e814F89E618a3298FC044",34443:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42161:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42170:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42220:"0x727a77a074D1E6c4530e814F89E618a3298FC044",43113:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",43114:"0x727a77a074D1E6c4530e814F89E618a3298FC044",43288:"0x727a77a074D1E6c4530e814F89E618a3298FC044",44787:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",45e3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",47805:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",54211:"0x727a77a074D1E6c4530e814F89E618a3298FC044",56288:"0x727a77a074D1E6c4530e814F89E618a3298FC044",57e3:"0x727a77a074D1E6c4530e814F89E618a3298FC044",58008:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",59140:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",59144:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",71401:"0x727a77a074D1E6c4530e814F89E618a3298FC044",71402:"0x727a77a074D1E6c4530e814F89E618a3298FC044",73799:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",80001:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",80085:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",81457:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",84531:"0x727a77a074D1E6c4530e814F89E618a3298FC044",84532:"0x727a77a074D1E6c4530e814F89E618a3298FC044",103454:"0x727a77a074D1E6c4530e814F89E618a3298FC044",167008:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",200101:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",200202:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",333999:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",421611:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",421613:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",421614:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",534351:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",534352:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",534353:"0x727a77a074D1E6c4530e814F89E618a3298FC044",622277:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",713715:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7777777:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",11155111:"0x727a77a074D1E6c4530e814F89E618a3298FC044",11155420:"0x727a77a074D1E6c4530e814F89E618a3298FC044",168587773:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",222000222:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",245022926:"0x727a77a074D1E6c4530e814F89E618a3298FC044",245022934:"0x727a77a074D1E6c4530e814F89E618a3298FC044",333000333:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",999999999:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1313161554:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1313161555:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",16666e5:"0x727a77a074D1E6c4530e814F89E618a3298FC044",16667e5:"0x727a77a074D1E6c4530e814F89E618a3298FC044","11297108099":"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da","11297108109":"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da"},yxe=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}],mxe={defaultAddress:uxe,released:fxe,contractName:dxe,version:hxe,networkAddresses:pxe,abi:yxe},bxe="0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",gxe=!0,xxe="SimulateTxAccessor",vxe="1.4.1",wxe={1:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",5:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",10:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",56:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",71:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",97:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",100:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",137:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",1030:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",1101:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",1442:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",3636:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",4337:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",7771:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",8192:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",8194:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",8453:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",10242:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",10243:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",11235:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",13337:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",17e3:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",42161:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",42220:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",54211:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",80001:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",81457:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",84531:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",84532:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",444444:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",11155111:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",11155420:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199"},Exe=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}],Axe={defaultAddress:bxe,released:gxe,contractName:xxe,version:vxe,networkAddresses:wxe,abi:Exe};var wV=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(g4,"__esModule",{value:!0});g4.getSimulateTxAccessorDeployment=void 0;const _xe=wV(mxe),Cxe=wV(Axe),Bxe=Du,Sxe=[Cxe.default,_xe.default],Txe=t=>(0,Bxe.findDeployment)(t,Sxe);g4.getSimulateTxAccessorDeployment=Txe;(function(t){var e=he&&he.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i);var o=Object.getOwnPropertyDescriptor(a,i);(!o||("get"in o?!a.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,o)}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=he&&he.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,r,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(pV,t),n(yV,t),n(y4,t),n(mo,t),n(cu,t),n(g4,t)})(hV);Object.defineProperty(Ct,"__esModule",{value:!0});Ct.getSimulateTxAccessorContract=Ct.getCreateCallContract=Ct.getSignMessageLibContract=Ct.getMultiSendCallOnlyContract=Ct.getMultiSendContract=Ct.getCompatibilityFallbackHandlerContract=Ct.getProxyFactoryContract=Ct.getSafeContract=Ct.getSimulateTxAccessorContractDeployment=Ct.getCreateCallContractDeployment=Ct.getSignMessageLibContractDeployment=Ct.getSafeProxyFactoryContractDeployment=Ct.getMultiSendContractDeployment=Ct.getMultiSendCallOnlyContractDeployment=Ct.getCompatibilityFallbackHandlerContractDeployment=Ct.getSafeContractDeployment=void 0;const Lc=hV,Uc=na;function EV(t,e,n=!1){const a={version:Uc.safeDeploymentsVersions[t].safeSingletonVersion,network:e.toString(),released:!0};return Uc.safeDeploymentsL1ChainIds.includes(e)||n?(0,Lc.getSafeSingletonDeployment)(a):(0,Lc.getSafeL2SingletonDeployment)(a)}Ct.getSafeContractDeployment=EV;function AV(t,e){const n=Uc.safeDeploymentsVersions[t].compatibilityFallbackHandler;return(0,Lc.getCompatibilityFallbackHandlerDeployment)({version:n,network:e.toString(),released:!0})}Ct.getCompatibilityFallbackHandlerContractDeployment=AV;function _V(t,e){const n=Uc.safeDeploymentsVersions[t].multiSendCallOnlyVersion;return(0,Lc.getMultiSendCallOnlyDeployment)({version:n,network:e.toString(),released:!0})}Ct.getMultiSendCallOnlyContractDeployment=_V;function CV(t,e){const n=Uc.safeDeploymentsVersions[t].multiSendVersion;return(0,Lc.getMultiSendDeployment)({version:n,network:e.toString(),released:!0})}Ct.getMultiSendContractDeployment=CV;function BV(t,e){const n=Uc.safeDeploymentsVersions[t].safeProxyFactoryVersion;return(0,Lc.getProxyFactoryDeployment)({version:n,network:e.toString(),released:!0})}Ct.getSafeProxyFactoryContractDeployment=BV;function SV(t,e){const n=Uc.safeDeploymentsVersions[t].signMessageLibVersion;return(0,Lc.getSignMessageLibDeployment)({version:n,network:e.toString(),released:!0})}Ct.getSignMessageLibContractDeployment=SV;function TV(t,e){const n=Uc.safeDeploymentsVersions[t].createCallVersion;return(0,Lc.getCreateCallDeployment)({version:n,network:e.toString(),released:!0})}Ct.getCreateCallContractDeployment=TV;function FV(t,e){const n=Uc.safeDeploymentsVersions[t].createCallVersion;return(0,Lc.getSimulateTxAccessorDeployment)({version:n,network:e.toString(),released:!0})}Ct.getSimulateTxAccessorContractDeployment=FV;async function Fxe({ethAdapter:t,safeVersion:e,customSafeAddress:n,isL1SafeSingleton:r,customContracts:a}){const i=await t.getChainId(),s=EV(e,i,r),o=await t.getSafeContract({safeVersion:e,singletonDeployment:s,customContractAddress:n??(a==null?void 0:a.safeSingletonAddress),customContractAbi:a==null?void 0:a.safeSingletonAbi});if(!await t.isContractDeployed(await o.getAddress()))throw new Error("SafeProxy contract is not deployed on the current network");return o}Ct.getSafeContract=Fxe;async function Mxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=BV(e,r),i=await t.getSafeProxyFactoryContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.safeProxyFactoryAddress,customContractAbi:n==null?void 0:n.safeProxyFactoryAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("SafeProxyFactory contract is not deployed on the current network");return i}Ct.getProxyFactoryContract=Mxe;async function Dxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=AV(e,r),i=await t.getCompatibilityFallbackHandlerContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.fallbackHandlerAddress,customContractAbi:n==null?void 0:n.fallbackHandlerAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("CompatibilityFallbackHandler contract is not deployed on the current network");return i}Ct.getCompatibilityFallbackHandlerContract=Dxe;async function kxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=CV(e,r),i=await t.getMultiSendContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.multiSendAddress,customContractAbi:n==null?void 0:n.multiSendAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("MultiSend contract is not deployed on the current network");return i}Ct.getMultiSendContract=kxe;async function Ixe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=_V(e,r),i=await t.getMultiSendCallOnlyContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.multiSendCallOnlyAddress,customContractAbi:n==null?void 0:n.multiSendCallOnlyAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("MultiSendCallOnly contract is not deployed on the current network");return i}Ct.getMultiSendCallOnlyContract=Ixe;async function Oxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=SV(e,r),i=await t.getSignMessageLibContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.signMessageLibAddress,customContractAbi:n==null?void 0:n.signMessageLibAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("SignMessageLib contract is not deployed on the current network");return i}Ct.getSignMessageLibContract=Oxe;async function Pxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=TV(e,r),i=await t.getCreateCallContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.createCallAddress,customContractAbi:n==null?void 0:n.createCallAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("CreateCall contract is not deployed on the current network");return i}Ct.getCreateCallContract=Pxe;async function Rxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=FV(e,r),i=await t.getSimulateTxAccessorContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.simulateTxAccessorAddress,customContractAbi:n==null?void 0:n.simulateTxAccessorAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("SimulateTxAccessor contract is not deployed on the current network");return i}Ct.getSimulateTxAccessorContract=Rxe;(function(t){var e=he&&he.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(t,"__esModule",{value:!0}),t.zkSyncEraCreate2Address=t.validateSafeDeploymentConfig=t.validateSafeAccountConfig=t.predictSafeAddress=t.getChainSpecificDefaultSaltNonce=t.encodeSetupCallData=t.encodeCreateProxyWithNonce=t.PREDETERMINED_SALT_NONCE=void 0;const n=an,r=on,a=na,i=ra,s=kx,o=VC,c=e(Id),h=Ct;t.PREDETERMINED_SALT_NONCE="0xb1073742015cbcf5a3a4d9d1ae33ecf619439710b89475f92e2abd2117e90f90";const b=324n,v=280n,E={"1.3.0":{deployedBytecodeHash:"0x0100004124426fb9ebb25e27d670c068e52f9ba631bd383279a188be47e3f86d"}},C="0x2020dba91b30cc0006188af794c2fb30dd8520db7e2c088b7fc7c103c00ca494";function F(X,B,u){return X.encode("createProxyWithNonce",[B,u,t.PREDETERMINED_SALT_NONCE])}t.encodeCreateProxyWithNonce=F;const T=(0,s.createMemoizedFunction)(h.getCompatibilityFallbackHandlerContract);async function P({ethAdapter:X,safeAccountConfig:B,safeContract:u,customContracts:d,customSafeVersion:p}){const{owners:l,threshold:y,to:g=i.ZERO_ADDRESS,data:w=i.EMPTY_DATA,fallbackHandler:x,paymentToken:f=i.ZERO_ADDRESS,payment:m=0,paymentReceiver:_=i.ZERO_ADDRESS}=B,A=p||await u.getVersion();if((0,c.default)(A,"<=1.0.0"))return u.encode("setup",[l,y,g,w,f,m,_]);let S=x;return S!==void 0&&(0,n.isAddress)(S)||(S=await(await T({ethAdapter:X,safeVersion:A,customContracts:d})).getAddress()),u.encode("setup",[l,y,g,w,S,f,m,_])}t.encodeSetupCallData=P;const D=(0,s.createMemoizedFunction)(({ethAdapter:X,safeVersion:B,customContracts:u})=>(0,h.getProxyFactoryContract)({ethAdapter:X,safeVersion:B,customContracts:u})),M=(0,s.createMemoizedFunction)(async({ethAdapter:X,safeVersion:B,customContracts:u,chainId:d})=>(await D({ethAdapter:X,safeVersion:B,customContracts:u,chainId:d})).proxyCreationCode()),O=(0,s.createMemoizedFunction)(({ethAdapter:X,safeVersion:B,isL1SafeSingleton:u,customContracts:d})=>(0,h.getSafeContract)({ethAdapter:X,safeVersion:B,isL1SafeSingleton:u,customContracts:d}));function k(X){return`0x${Buffer.from((0,r.keccak_256)(t.PREDETERMINED_SALT_NONCE+X)).toString("hex")}`}t.getChainSpecificDefaultSaltNonce=k;async function U({ethAdapter:X,chainId:B,safeAccountConfig:u,safeDeploymentConfig:d={},isL1SafeSingleton:p=!1,customContracts:l}){(0,t.validateSafeAccountConfig)(u),(0,t.validateSafeDeploymentConfig)(d);const{safeVersion:y=a.DEFAULT_SAFE_VERSION,saltNonce:g=k(B)}=d,w=await D({ethAdapter:X,safeVersion:y,customContracts:l,chainId:B.toString()}),x=await M({ethAdapter:X,safeVersion:y,customContracts:l,chainId:B.toString()}),f=await O({ethAdapter:X,safeVersion:y,isL1SafeSingleton:p,customContracts:l,chainId:B.toString()}),m=await P({ethAdapter:X,safeAccountConfig:u,safeContract:f,customContracts:l,customSafeVersion:y}),_=(0,o.toBuffer)(X.encodeParameters(["uint256"],[g])).toString("hex"),A=(0,o.keccak256)((0,o.toBuffer)("0x"+(0,o.keccak256)((0,o.toBuffer)(m)).toString("hex")+_)),S=X.encodeParameters(["address"],[await f.getAddress()]),$=await w.getAddress();if([b,v].includes(B)){const Q=L($,y,A,S);return X.getChecksummedAddress(Q)}const I=(0,o.toBuffer)(S).toString("hex"),K=x+I,z="0x"+(0,o.generateAddress2)((0,o.toBuffer)($),(0,o.toBuffer)(A),(0,o.toBuffer)(K)).toString("hex");return X.getChecksummedAddress(z)}t.predictSafeAddress=U;const V=({owners:X,threshold:B})=>{if(X.length<=0)throw new Error("Owner list must have at least one owner");if(B<=0)throw new Error("Threshold must be greater than or equal to 1");if(B>X.length)throw new Error("Threshold must be lower than or equal to owners length")};t.validateSafeAccountConfig=V;const Y=({saltNonce:X})=>{if(X&&BigInt(X)<0)throw new Error("saltNonce must be greater than or equal to 0")};t.validateSafeDeploymentConfig=Y;function L(X,B,u,d){const p=E[B].deployedBytecodeHash,l=(0,o.keccak256)((0,o.toBuffer)(d));return(0,o.keccak256)((0,o.toBuffer)(C+(0,n.zeroPadValue)(X,32).slice(2)+u.toString("hex")+p.slice(2)+l.toString("hex"))).toString("hex").slice(24)}t.zkSyncEraCreate2Address=L})(Mx);var x4={},f2={};Object.defineProperty(f2,"__esModule",{value:!0});f2.isSafeConfigWithPredictedSafe=void 0;function Nxe(t){return t.predictedSafe!==void 0}f2.isSafeConfigWithPredictedSafe=Nxe;var ey=he&&he.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},ty=he&&he.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},B6,S6,T6,F6,M6;Object.defineProperty(x4,"__esModule",{value:!0});const $9=na,v3=Ct,$xe=f2;class CB{constructor(){B6.set(this,void 0),S6.set(this,void 0),T6.set(this,void 0),F6.set(this,void 0),M6.set(this,void 0)}static async create(e){const n=new CB;return await n.init(e),n}async init(e){var b;const{ethAdapter:n,isL1SafeSingleton:r,contractNetworks:a,predictedSafe:i,safeAddress:s}=e,o=await n.getChainId(),c=a==null?void 0:a[o.toString()];ey(this,B6,a,"f"),ey(this,S6,r,"f");let h;if((0,$xe.isSafeConfigWithPredictedSafe)(e))h=((b=i==null?void 0:i.safeDeploymentConfig)==null?void 0:b.safeVersion)??$9.DEFAULT_SAFE_VERSION;else{const v=await(0,v3.getSafeContract)({ethAdapter:n,safeVersion:$9.DEFAULT_SAFE_VERSION,isL1SafeSingleton:r,customSafeAddress:s,customContracts:c});h=await v.getVersion();const E=h===$9.DEFAULT_SAFE_VERSION;ey(this,T6,E?v:await(0,v3.getSafeContract)({ethAdapter:n,safeVersion:h,isL1SafeSingleton:r,customSafeAddress:s,customContracts:c}),"f")}ey(this,F6,await(0,v3.getMultiSendContract)({ethAdapter:n,safeVersion:h,customContracts:c}),"f"),ey(this,M6,await(0,v3.getMultiSendCallOnlyContract)({ethAdapter:n,safeVersion:h,customContracts:c}),"f")}get contractNetworks(){return ty(this,B6,"f")}get isL1SafeSingleton(){return ty(this,S6,"f")}get safeContract(){return ty(this,T6,"f")}get multiSendContract(){return ty(this,F6,"f")}get multiSendCallOnlyContract(){return ty(this,M6,"f")}}B6=new WeakMap,S6=new WeakMap,T6=new WeakMap,F6=new WeakMap,M6=new WeakMap;x4.default=CB;var BB={},L9={},Fs={};Object.defineProperty(Fs,"__esModule",{value:!0});Fs.isRestrictedAddress=Fs.isZeroAddress=Fs.sameString=void 0;const MV=ra;function SB(t,e){return t.toLowerCase()===e.toLowerCase()}Fs.sameString=SB;function DV(t){return SB(t,MV.ZERO_ADDRESS)}Fs.isZeroAddress=DV;function Lxe(t){return SB(t,MV.SENTINEL_ADDRESS)}function Uxe(t){return DV(t)||Lxe(t)}Fs.isRestrictedAddress=Uxe;var Fa={};function Ug(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var TB={exports:{}};TB.exports;(function(t){(function(e,n){function r(B,u){if(!B)throw new Error(u||"Assertion failed")}function a(B,u){B.super_=u;var d=function(){};d.prototype=u.prototype,B.prototype=new d,B.prototype.constructor=B}function i(B,u,d){if(i.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((u==="le"||u==="be")&&(d=u,u=10),this._init(B||0,u||10,d||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{s=Ug("buffer").Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,d){return u.cmp(d)>0?u:d},i.min=function(u,d){return u.cmp(d)<0?u:d},i.prototype._init=function(u,d,p){if(typeof u=="number")return this._initNumber(u,d,p);if(typeof u=="object")return this._initArray(u,d,p);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),u=u.toString().replace(/\s+/g,"");var l=0;u[0]==="-"&&l++,d===16?this._parseHex(u,l):this._parseBase(u,d,l),u[0]==="-"&&(this.negative=1),this.strip(),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initNumber=function(u,d,p){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initArray=function(u,d,p){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var l=0;l=0;l-=3)g=u[l]|u[l-1]<<8|u[l-2]<<16,this.words[y]|=g<>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);else if(p==="le")for(l=0,y=0;l>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);return this.strip()};function o(B,u,d){for(var p=0,l=Math.min(B.length,d),y=u;y=49&&g<=54?p|=g-49+10:g>=17&&g<=22?p|=g-17+10:p|=g&15}return p}i.prototype._parseHex=function(u,d){this.length=Math.ceil((u.length-d)/6),this.words=new Array(this.length);for(var p=0;p=d;p-=6)y=o(u,p,p+6),this.words[l]|=y<>>26-g&4194303,g+=24,g>=26&&(g-=26,l++);p+6!==d&&(y=o(u,d,p+6),this.words[l]|=y<>>26-g&4194303),this.strip()};function c(B,u,d,p){for(var l=0,y=Math.min(B.length,d),g=u;g=49?l+=w-49+10:w>=17?l+=w-17+10:l+=w}return l}i.prototype._parseBase=function(u,d,p){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=d)l++;l--,y=y/d|0;for(var g=u.length-p,w=g%l,x=Math.min(g,g-w)+p,f=0,m=p;m1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],b=[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],v=[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];i.prototype.toString=function(u,d){u=u||10,d=d|0||1;var p;if(u===16||u==="hex"){p="";for(var l=0,y=0,g=0;g>>24-l&16777215,y!==0||g!==this.length-1?p=h[6-x.length]+x+p:p=x+p,l+=2,l>=26&&(l-=26,g--)}for(y!==0&&(p=y.toString(16)+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(u===(u|0)&&u>=2&&u<=36){var f=b[u],m=v[u];p="";var _=this.clone();for(_.negative=0;!_.isZero();){var A=_.modn(m).toString(u);_=_.idivn(m),_.isZero()?p=A+p:p=h[f-A.length]+A+p}for(this.isZero()&&(p="0"+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,d){return r(typeof s<"u"),this.toArrayLike(s,u,d)},i.prototype.toArray=function(u,d){return this.toArrayLike(Array,u,d)},i.prototype.toArrayLike=function(u,d,p){var l=this.byteLength(),y=p||Math.max(1,l);r(l<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var g=d==="le",w=new u(y),x,f,m=this.clone();if(g){for(f=0;!m.isZero();f++)x=m.andln(255),m.iushrn(8),w[f]=x;for(;f=4096&&(p+=13,d>>>=13),d>=64&&(p+=7,d>>>=7),d>=8&&(p+=4,d>>>=4),d>=2&&(p+=2,d>>>=2),p+d},i.prototype._zeroBits=function(u){if(u===0)return 26;var d=u,p=0;return d&8191||(p+=13,d>>>=13),d&127||(p+=7,d>>>=7),d&15||(p+=4,d>>>=4),d&3||(p+=2,d>>>=2),d&1||p++,p},i.prototype.bitLength=function(){var u=this.words[this.length-1],d=this._countBits(u);return(this.length-1)*26+d};function E(B){for(var u=new Array(B.bitLength()),d=0;d>>l}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,d=0;du.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var d;this.length>u.length?d=u:d=this;for(var p=0;pu.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var d,p;this.length>u.length?(d=this,p=u):(d=u,p=this);for(var l=0;lu.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var d=Math.ceil(u/26)|0,p=u%26;this._expand(d),p>0&&d--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-p),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,d){r(typeof u=="number"&&u>=0);var p=u/26|0,l=u%26;return this._expand(p+1),d?this.words[p]=this.words[p]|1<u.length?(p=this,l=u):(p=u,l=this);for(var y=0,g=0;g>>26;for(;y!==0&&g>>26;if(this.length=p.length,y!==0)this.words[this.length]=y,this.length++;else if(p!==this)for(;gu.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var d=this.iadd(u);return u.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var p=this.cmp(u);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var l,y;p>0?(l=this,y=u):(l=u,y=this);for(var g=0,w=0;w>26,this.words[w]=d&67108863;for(;g!==0&&w>26,this.words[w]=d&67108863;if(g===0&&w>>26,_=x&67108863,A=Math.min(f,u.length-1),S=Math.max(0,f-B.length+1);S<=A;S++){var $=f-S|0;l=B.words[$]|0,y=u.words[S]|0,g=l*y+_,m+=g/67108864|0,_=g&67108863}d.words[f]=_|0,x=m|0}return x!==0?d.words[f]=x|0:d.length--,d.strip()}var F=function(u,d,p){var l=u.words,y=d.words,g=p.words,w=0,x,f,m,_=l[0]|0,A=_&8191,S=_>>>13,$=l[1]|0,q=$&8191,I=$>>>13,K=l[2]|0,z=K&8191,Q=K>>>13,ue=l[3]|0,fe=ue&8191,G=ue>>>13,j=l[4]|0,ne=j&8191,se=j>>>13,J=l[5]|0,R=J&8191,N=J>>>13,Z=l[6]|0,ae=Z&8191,pe=Z>>>13,W=l[7]|0,ee=W&8191,ie=W>>>13,me=l[8]|0,be=me&8191,ye=me>>>13,Fe=l[9]|0,Se=Fe&8191,Ee=Fe>>>13,Qe=y[0]|0,$e=Qe&8191,Oe=Qe>>>13,at=y[1]|0,qe=at&8191,Le=at>>>13,xt=y[2]|0,Je=xt&8191,He=xt>>>13,At=y[3]|0,ce=At&8191,de=At>>>13,Ce=y[4]|0,_e=Ce&8191,Ae=Ce>>>13,Xe=y[5]|0,Me=Xe&8191,Be=Xe>>>13,ze=y[6]|0,Pe=ze&8191,Ie=ze>>>13,Ye=y[7]|0,Ue=Ye&8191,De=Ye>>>13,ot=y[8]|0,We=ot&8191,je=ot>>>13,vt=y[9]|0,Ke=vt&8191,Ne=vt>>>13;p.negative=u.negative^d.negative,p.length=19,x=Math.imul(A,$e),f=Math.imul(A,Oe),f=f+Math.imul(S,$e)|0,m=Math.imul(S,Oe);var ht=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,x=Math.imul(q,$e),f=Math.imul(q,Oe),f=f+Math.imul(I,$e)|0,m=Math.imul(I,Oe),x=x+Math.imul(A,qe)|0,f=f+Math.imul(A,Le)|0,f=f+Math.imul(S,qe)|0,m=m+Math.imul(S,Le)|0;var pt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(z,$e),f=Math.imul(z,Oe),f=f+Math.imul(Q,$e)|0,m=Math.imul(Q,Oe),x=x+Math.imul(q,qe)|0,f=f+Math.imul(q,Le)|0,f=f+Math.imul(I,qe)|0,m=m+Math.imul(I,Le)|0,x=x+Math.imul(A,Je)|0,f=f+Math.imul(A,He)|0,f=f+Math.imul(S,Je)|0,m=m+Math.imul(S,He)|0;var yt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(fe,$e),f=Math.imul(fe,Oe),f=f+Math.imul(G,$e)|0,m=Math.imul(G,Oe),x=x+Math.imul(z,qe)|0,f=f+Math.imul(z,Le)|0,f=f+Math.imul(Q,qe)|0,m=m+Math.imul(Q,Le)|0,x=x+Math.imul(q,Je)|0,f=f+Math.imul(q,He)|0,f=f+Math.imul(I,Je)|0,m=m+Math.imul(I,He)|0,x=x+Math.imul(A,ce)|0,f=f+Math.imul(A,de)|0,f=f+Math.imul(S,ce)|0,m=m+Math.imul(S,de)|0;var Qt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,x=Math.imul(ne,$e),f=Math.imul(ne,Oe),f=f+Math.imul(se,$e)|0,m=Math.imul(se,Oe),x=x+Math.imul(fe,qe)|0,f=f+Math.imul(fe,Le)|0,f=f+Math.imul(G,qe)|0,m=m+Math.imul(G,Le)|0,x=x+Math.imul(z,Je)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(Q,Je)|0,m=m+Math.imul(Q,He)|0,x=x+Math.imul(q,ce)|0,f=f+Math.imul(q,de)|0,f=f+Math.imul(I,ce)|0,m=m+Math.imul(I,de)|0,x=x+Math.imul(A,_e)|0,f=f+Math.imul(A,Ae)|0,f=f+Math.imul(S,_e)|0,m=m+Math.imul(S,Ae)|0;var Gt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x=Math.imul(R,$e),f=Math.imul(R,Oe),f=f+Math.imul(N,$e)|0,m=Math.imul(N,Oe),x=x+Math.imul(ne,qe)|0,f=f+Math.imul(ne,Le)|0,f=f+Math.imul(se,qe)|0,m=m+Math.imul(se,Le)|0,x=x+Math.imul(fe,Je)|0,f=f+Math.imul(fe,He)|0,f=f+Math.imul(G,Je)|0,m=m+Math.imul(G,He)|0,x=x+Math.imul(z,ce)|0,f=f+Math.imul(z,de)|0,f=f+Math.imul(Q,ce)|0,m=m+Math.imul(Q,de)|0,x=x+Math.imul(q,_e)|0,f=f+Math.imul(q,Ae)|0,f=f+Math.imul(I,_e)|0,m=m+Math.imul(I,Ae)|0,x=x+Math.imul(A,Me)|0,f=f+Math.imul(A,Be)|0,f=f+Math.imul(S,Me)|0,m=m+Math.imul(S,Be)|0;var ct=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ct>>>26)|0,ct&=67108863,x=Math.imul(ae,$e),f=Math.imul(ae,Oe),f=f+Math.imul(pe,$e)|0,m=Math.imul(pe,Oe),x=x+Math.imul(R,qe)|0,f=f+Math.imul(R,Le)|0,f=f+Math.imul(N,qe)|0,m=m+Math.imul(N,Le)|0,x=x+Math.imul(ne,Je)|0,f=f+Math.imul(ne,He)|0,f=f+Math.imul(se,Je)|0,m=m+Math.imul(se,He)|0,x=x+Math.imul(fe,ce)|0,f=f+Math.imul(fe,de)|0,f=f+Math.imul(G,ce)|0,m=m+Math.imul(G,de)|0,x=x+Math.imul(z,_e)|0,f=f+Math.imul(z,Ae)|0,f=f+Math.imul(Q,_e)|0,m=m+Math.imul(Q,Ae)|0,x=x+Math.imul(q,Me)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(I,Me)|0,m=m+Math.imul(I,Be)|0,x=x+Math.imul(A,Pe)|0,f=f+Math.imul(A,Ie)|0,f=f+Math.imul(S,Pe)|0,m=m+Math.imul(S,Ie)|0;var Tt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,x=Math.imul(ee,$e),f=Math.imul(ee,Oe),f=f+Math.imul(ie,$e)|0,m=Math.imul(ie,Oe),x=x+Math.imul(ae,qe)|0,f=f+Math.imul(ae,Le)|0,f=f+Math.imul(pe,qe)|0,m=m+Math.imul(pe,Le)|0,x=x+Math.imul(R,Je)|0,f=f+Math.imul(R,He)|0,f=f+Math.imul(N,Je)|0,m=m+Math.imul(N,He)|0,x=x+Math.imul(ne,ce)|0,f=f+Math.imul(ne,de)|0,f=f+Math.imul(se,ce)|0,m=m+Math.imul(se,de)|0,x=x+Math.imul(fe,_e)|0,f=f+Math.imul(fe,Ae)|0,f=f+Math.imul(G,_e)|0,m=m+Math.imul(G,Ae)|0,x=x+Math.imul(z,Me)|0,f=f+Math.imul(z,Be)|0,f=f+Math.imul(Q,Me)|0,m=m+Math.imul(Q,Be)|0,x=x+Math.imul(q,Pe)|0,f=f+Math.imul(q,Ie)|0,f=f+Math.imul(I,Pe)|0,m=m+Math.imul(I,Ie)|0,x=x+Math.imul(A,Ue)|0,f=f+Math.imul(A,De)|0,f=f+Math.imul(S,Ue)|0,m=m+Math.imul(S,De)|0;var mt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(be,$e),f=Math.imul(be,Oe),f=f+Math.imul(ye,$e)|0,m=Math.imul(ye,Oe),x=x+Math.imul(ee,qe)|0,f=f+Math.imul(ee,Le)|0,f=f+Math.imul(ie,qe)|0,m=m+Math.imul(ie,Le)|0,x=x+Math.imul(ae,Je)|0,f=f+Math.imul(ae,He)|0,f=f+Math.imul(pe,Je)|0,m=m+Math.imul(pe,He)|0,x=x+Math.imul(R,ce)|0,f=f+Math.imul(R,de)|0,f=f+Math.imul(N,ce)|0,m=m+Math.imul(N,de)|0,x=x+Math.imul(ne,_e)|0,f=f+Math.imul(ne,Ae)|0,f=f+Math.imul(se,_e)|0,m=m+Math.imul(se,Ae)|0,x=x+Math.imul(fe,Me)|0,f=f+Math.imul(fe,Be)|0,f=f+Math.imul(G,Me)|0,m=m+Math.imul(G,Be)|0,x=x+Math.imul(z,Pe)|0,f=f+Math.imul(z,Ie)|0,f=f+Math.imul(Q,Pe)|0,m=m+Math.imul(Q,Ie)|0,x=x+Math.imul(q,Ue)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(I,Ue)|0,m=m+Math.imul(I,De)|0,x=x+Math.imul(A,We)|0,f=f+Math.imul(A,je)|0,f=f+Math.imul(S,We)|0,m=m+Math.imul(S,je)|0;var Nt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,x=Math.imul(Se,$e),f=Math.imul(Se,Oe),f=f+Math.imul(Ee,$e)|0,m=Math.imul(Ee,Oe),x=x+Math.imul(be,qe)|0,f=f+Math.imul(be,Le)|0,f=f+Math.imul(ye,qe)|0,m=m+Math.imul(ye,Le)|0,x=x+Math.imul(ee,Je)|0,f=f+Math.imul(ee,He)|0,f=f+Math.imul(ie,Je)|0,m=m+Math.imul(ie,He)|0,x=x+Math.imul(ae,ce)|0,f=f+Math.imul(ae,de)|0,f=f+Math.imul(pe,ce)|0,m=m+Math.imul(pe,de)|0,x=x+Math.imul(R,_e)|0,f=f+Math.imul(R,Ae)|0,f=f+Math.imul(N,_e)|0,m=m+Math.imul(N,Ae)|0,x=x+Math.imul(ne,Me)|0,f=f+Math.imul(ne,Be)|0,f=f+Math.imul(se,Me)|0,m=m+Math.imul(se,Be)|0,x=x+Math.imul(fe,Pe)|0,f=f+Math.imul(fe,Ie)|0,f=f+Math.imul(G,Pe)|0,m=m+Math.imul(G,Ie)|0,x=x+Math.imul(z,Ue)|0,f=f+Math.imul(z,De)|0,f=f+Math.imul(Q,Ue)|0,m=m+Math.imul(Q,De)|0,x=x+Math.imul(q,We)|0,f=f+Math.imul(q,je)|0,f=f+Math.imul(I,We)|0,m=m+Math.imul(I,je)|0,x=x+Math.imul(A,Ke)|0,f=f+Math.imul(A,Ne)|0,f=f+Math.imul(S,Ke)|0,m=m+Math.imul(S,Ne)|0;var Cn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,x=Math.imul(Se,qe),f=Math.imul(Se,Le),f=f+Math.imul(Ee,qe)|0,m=Math.imul(Ee,Le),x=x+Math.imul(be,Je)|0,f=f+Math.imul(be,He)|0,f=f+Math.imul(ye,Je)|0,m=m+Math.imul(ye,He)|0,x=x+Math.imul(ee,ce)|0,f=f+Math.imul(ee,de)|0,f=f+Math.imul(ie,ce)|0,m=m+Math.imul(ie,de)|0,x=x+Math.imul(ae,_e)|0,f=f+Math.imul(ae,Ae)|0,f=f+Math.imul(pe,_e)|0,m=m+Math.imul(pe,Ae)|0,x=x+Math.imul(R,Me)|0,f=f+Math.imul(R,Be)|0,f=f+Math.imul(N,Me)|0,m=m+Math.imul(N,Be)|0,x=x+Math.imul(ne,Pe)|0,f=f+Math.imul(ne,Ie)|0,f=f+Math.imul(se,Pe)|0,m=m+Math.imul(se,Ie)|0,x=x+Math.imul(fe,Ue)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(G,Ue)|0,m=m+Math.imul(G,De)|0,x=x+Math.imul(z,We)|0,f=f+Math.imul(z,je)|0,f=f+Math.imul(Q,We)|0,m=m+Math.imul(Q,je)|0,x=x+Math.imul(q,Ke)|0,f=f+Math.imul(q,Ne)|0,f=f+Math.imul(I,Ke)|0,m=m+Math.imul(I,Ne)|0;var Pn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(Se,Je),f=Math.imul(Se,He),f=f+Math.imul(Ee,Je)|0,m=Math.imul(Ee,He),x=x+Math.imul(be,ce)|0,f=f+Math.imul(be,de)|0,f=f+Math.imul(ye,ce)|0,m=m+Math.imul(ye,de)|0,x=x+Math.imul(ee,_e)|0,f=f+Math.imul(ee,Ae)|0,f=f+Math.imul(ie,_e)|0,m=m+Math.imul(ie,Ae)|0,x=x+Math.imul(ae,Me)|0,f=f+Math.imul(ae,Be)|0,f=f+Math.imul(pe,Me)|0,m=m+Math.imul(pe,Be)|0,x=x+Math.imul(R,Pe)|0,f=f+Math.imul(R,Ie)|0,f=f+Math.imul(N,Pe)|0,m=m+Math.imul(N,Ie)|0,x=x+Math.imul(ne,Ue)|0,f=f+Math.imul(ne,De)|0,f=f+Math.imul(se,Ue)|0,m=m+Math.imul(se,De)|0,x=x+Math.imul(fe,We)|0,f=f+Math.imul(fe,je)|0,f=f+Math.imul(G,We)|0,m=m+Math.imul(G,je)|0,x=x+Math.imul(z,Ke)|0,f=f+Math.imul(z,Ne)|0,f=f+Math.imul(Q,Ke)|0,m=m+Math.imul(Q,Ne)|0;var Qn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,x=Math.imul(Se,ce),f=Math.imul(Se,de),f=f+Math.imul(Ee,ce)|0,m=Math.imul(Ee,de),x=x+Math.imul(be,_e)|0,f=f+Math.imul(be,Ae)|0,f=f+Math.imul(ye,_e)|0,m=m+Math.imul(ye,Ae)|0,x=x+Math.imul(ee,Me)|0,f=f+Math.imul(ee,Be)|0,f=f+Math.imul(ie,Me)|0,m=m+Math.imul(ie,Be)|0,x=x+Math.imul(ae,Pe)|0,f=f+Math.imul(ae,Ie)|0,f=f+Math.imul(pe,Pe)|0,m=m+Math.imul(pe,Ie)|0,x=x+Math.imul(R,Ue)|0,f=f+Math.imul(R,De)|0,f=f+Math.imul(N,Ue)|0,m=m+Math.imul(N,De)|0,x=x+Math.imul(ne,We)|0,f=f+Math.imul(ne,je)|0,f=f+Math.imul(se,We)|0,m=m+Math.imul(se,je)|0,x=x+Math.imul(fe,Ke)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(G,Ke)|0,m=m+Math.imul(G,Ne)|0;var Xn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,x=Math.imul(Se,_e),f=Math.imul(Se,Ae),f=f+Math.imul(Ee,_e)|0,m=Math.imul(Ee,Ae),x=x+Math.imul(be,Me)|0,f=f+Math.imul(be,Be)|0,f=f+Math.imul(ye,Me)|0,m=m+Math.imul(ye,Be)|0,x=x+Math.imul(ee,Pe)|0,f=f+Math.imul(ee,Ie)|0,f=f+Math.imul(ie,Pe)|0,m=m+Math.imul(ie,Ie)|0,x=x+Math.imul(ae,Ue)|0,f=f+Math.imul(ae,De)|0,f=f+Math.imul(pe,Ue)|0,m=m+Math.imul(pe,De)|0,x=x+Math.imul(R,We)|0,f=f+Math.imul(R,je)|0,f=f+Math.imul(N,We)|0,m=m+Math.imul(N,je)|0,x=x+Math.imul(ne,Ke)|0,f=f+Math.imul(ne,Ne)|0,f=f+Math.imul(se,Ke)|0,m=m+Math.imul(se,Ne)|0;var Jn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,x=Math.imul(Se,Me),f=Math.imul(Se,Be),f=f+Math.imul(Ee,Me)|0,m=Math.imul(Ee,Be),x=x+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ie)|0,f=f+Math.imul(ye,Pe)|0,m=m+Math.imul(ye,Ie)|0,x=x+Math.imul(ee,Ue)|0,f=f+Math.imul(ee,De)|0,f=f+Math.imul(ie,Ue)|0,m=m+Math.imul(ie,De)|0,x=x+Math.imul(ae,We)|0,f=f+Math.imul(ae,je)|0,f=f+Math.imul(pe,We)|0,m=m+Math.imul(pe,je)|0,x=x+Math.imul(R,Ke)|0,f=f+Math.imul(R,Ne)|0,f=f+Math.imul(N,Ke)|0,m=m+Math.imul(N,Ne)|0;var Yn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,x=Math.imul(Se,Pe),f=Math.imul(Se,Ie),f=f+Math.imul(Ee,Pe)|0,m=Math.imul(Ee,Ie),x=x+Math.imul(be,Ue)|0,f=f+Math.imul(be,De)|0,f=f+Math.imul(ye,Ue)|0,m=m+Math.imul(ye,De)|0,x=x+Math.imul(ee,We)|0,f=f+Math.imul(ee,je)|0,f=f+Math.imul(ie,We)|0,m=m+Math.imul(ie,je)|0,x=x+Math.imul(ae,Ke)|0,f=f+Math.imul(ae,Ne)|0,f=f+Math.imul(pe,Ke)|0,m=m+Math.imul(pe,Ne)|0;var er=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(Se,Ue),f=Math.imul(Se,De),f=f+Math.imul(Ee,Ue)|0,m=Math.imul(Ee,De),x=x+Math.imul(be,We)|0,f=f+Math.imul(be,je)|0,f=f+Math.imul(ye,We)|0,m=m+Math.imul(ye,je)|0,x=x+Math.imul(ee,Ke)|0,f=f+Math.imul(ee,Ne)|0,f=f+Math.imul(ie,Ke)|0,m=m+Math.imul(ie,Ne)|0;var tr=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(tr>>>26)|0,tr&=67108863,x=Math.imul(Se,We),f=Math.imul(Se,je),f=f+Math.imul(Ee,We)|0,m=Math.imul(Ee,je),x=x+Math.imul(be,Ke)|0,f=f+Math.imul(be,Ne)|0,f=f+Math.imul(ye,Ke)|0,m=m+Math.imul(ye,Ne)|0;var sa=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(Se,Ke),f=Math.imul(Se,Ne),f=f+Math.imul(Ee,Ke)|0,m=Math.imul(Ee,Ne);var oa=(w+x|0)+((f&8191)<<13)|0;return w=(m+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,g[0]=ht,g[1]=pt,g[2]=yt,g[3]=Qt,g[4]=Gt,g[5]=ct,g[6]=Tt,g[7]=mt,g[8]=Nt,g[9]=Cn,g[10]=Pn,g[11]=Qn,g[12]=Xn,g[13]=Jn,g[14]=Yn,g[15]=er,g[16]=tr,g[17]=sa,g[18]=oa,w!==0&&(g[19]=w,p.length++),p};Math.imul||(F=C);function T(B,u,d){d.negative=u.negative^B.negative,d.length=B.length+u.length;for(var p=0,l=0,y=0;y>>26)|0,l+=g>>>26,g&=67108863}d.words[y]=w,p=g,g=l}return p!==0?d.words[y]=p:d.length--,d.strip()}function P(B,u,d){var p=new D;return p.mulp(B,u,d)}i.prototype.mulTo=function(u,d){var p,l=this.length+u.length;return this.length===10&&u.length===10?p=F(this,u,d):l<63?p=C(this,u,d):l<1024?p=T(this,u,d):p=P(this,u,d),p};function D(B,u){this.x=B,this.y=u}D.prototype.makeRBT=function(u){for(var d=new Array(u),p=i.prototype._countBits(u)-1,l=0;l>=1;return l},D.prototype.permute=function(u,d,p,l,y,g){for(var w=0;w>>1)y++;return 1<>>13,p[2*g+1]=y&8191,y=y>>>13;for(g=2*d;g>=26,d+=l/67108864|0,d+=y>>>26,this.words[p]=y&67108863}return d!==0&&(this.words[p]=d,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var d=E(u);if(d.length===0)return new i(1);for(var p=this,l=0;l=0);var d=u%26,p=(u-d)/26,l=67108863>>>26-d<<26-d,y;if(d!==0){var g=0;for(y=0;y>>26-d}g&&(this.words[y]=g,this.length++)}if(p!==0){for(y=this.length-1;y>=0;y--)this.words[y+p]=this.words[y];for(y=0;y=0);var l;d?l=(d-d%26)/26:l=0;var y=u%26,g=Math.min((u-y)/26,this.length),w=67108863^67108863>>>y<g)for(this.length-=g,f=0;f=0&&(m!==0||f>=l);f--){var _=this.words[f]|0;this.words[f]=m<<26-y|_>>>y,m=_&w}return x&&m!==0&&(x.words[x.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,d,p){return r(this.negative===0),this.iushrn(u,d,p)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var d=u%26,p=(u-d)/26,l=1<=0);var d=u%26,p=(u-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(d!==0&&p++,this.length=Math.min(p,this.length),d!==0){var l=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(x/67108864|0),this.words[y+p]=g&67108863}for(;y>26,this.words[y+p]=g&67108863;if(w===0)return this.strip();for(r(w===-1),w=0,y=0;y>26,this.words[y]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,d){var p=this.length-u.length,l=this.clone(),y=u,g=y.words[y.length-1]|0,w=this._countBits(g);p=26-w,p!==0&&(y=y.ushln(p),l.iushln(p),g=y.words[y.length-1]|0);var x=l.length-y.length,f;if(d!=="mod"){f=new i(null),f.length=x+1,f.words=new Array(f.length);for(var m=0;m=0;A--){var S=(l.words[y.length+A]|0)*67108864+(l.words[y.length+A-1]|0);for(S=Math.min(S/g|0,67108863),l._ishlnsubmul(y,S,A);l.negative!==0;)S--,l.negative=0,l._ishlnsubmul(y,1,A),l.isZero()||(l.negative^=1);f&&(f.words[A]=S)}return f&&f.strip(),l.strip(),d!=="div"&&p!==0&&l.iushrn(p),{div:f||null,mod:l}},i.prototype.divmod=function(u,d,p){if(r(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var l,y,g;return this.negative!==0&&u.negative===0?(g=this.neg().divmod(u,d),d!=="mod"&&(l=g.div.neg()),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.iadd(u)),{div:l,mod:y}):this.negative===0&&u.negative!==0?(g=this.divmod(u.neg(),d),d!=="mod"&&(l=g.div.neg()),{div:l,mod:g.mod}):this.negative&u.negative?(g=this.neg().divmod(u.neg(),d),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.isub(u)),{div:g.div,mod:y}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?d==="div"?{div:this.divn(u.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,d)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var d=this.divmod(u);if(d.mod.isZero())return d.div;var p=d.div.negative!==0?d.mod.isub(u):d.mod,l=u.ushrn(1),y=u.andln(1),g=p.cmp(l);return g<0||y===1&&g===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modn=function(u){r(u<=67108863);for(var d=(1<<26)%u,p=0,l=this.length-1;l>=0;l--)p=(d*p+(this.words[l]|0))%u;return p},i.prototype.idivn=function(u){r(u<=67108863);for(var d=0,p=this.length-1;p>=0;p--){var l=(this.words[p]|0)+d*67108864;this.words[p]=l/u|0,d=l%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=new i(0),w=new i(1),x=0;d.isEven()&&p.isEven();)d.iushrn(1),p.iushrn(1),++x;for(var f=p.clone(),m=d.clone();!d.isZero();){for(var _=0,A=1;!(d.words[0]&A)&&_<26;++_,A<<=1);if(_>0)for(d.iushrn(_);_-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(f),y.isub(m)),l.iushrn(1),y.iushrn(1);for(var S=0,$=1;!(p.words[0]&$)&&S<26;++S,$<<=1);if(S>0)for(p.iushrn(S);S-- >0;)(g.isOdd()||w.isOdd())&&(g.iadd(f),w.isub(m)),g.iushrn(1),w.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(g),y.isub(w)):(p.isub(d),g.isub(l),w.isub(y))}return{a:g,b:w,gcd:p.iushln(x)}},i.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=p.clone();d.cmpn(1)>0&&p.cmpn(1)>0;){for(var w=0,x=1;!(d.words[0]&x)&&w<26;++w,x<<=1);if(w>0)for(d.iushrn(w);w-- >0;)l.isOdd()&&l.iadd(g),l.iushrn(1);for(var f=0,m=1;!(p.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(p.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(g),y.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(y)):(p.isub(d),y.isub(l))}var _;return d.cmpn(1)===0?_=l:_=y,_.cmpn(0)<0&&_.iadd(u),_},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var d=this.clone(),p=u.clone();d.negative=0,p.negative=0;for(var l=0;d.isEven()&&p.isEven();l++)d.iushrn(1),p.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;p.isEven();)p.iushrn(1);var y=d.cmp(p);if(y<0){var g=d;d=p,p=g}else if(y===0||p.cmpn(1)===0)break;d.isub(p)}while(!0);return p.iushln(l)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){r(typeof u=="number");var d=u%26,p=(u-d)/26,l=1<>>26,w&=67108863,this.words[g]=w}return y!==0&&(this.words[g]=y,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var d=u<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var p;if(this.length>1)p=1;else{d&&(u=-u),r(u<=67108863,"Number is too big");var l=this.words[0]|0;p=l===u?0:lu.length)return 1;if(this.length=0;p--){var l=this.words[p]|0,y=u.words[p]|0;if(l!==y){ly&&(d=1);break}}return d},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new L(u)},i.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var M={k256:null,p224:null,p192:null,p25519:null};function O(B,u){this.name=B,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},O.prototype.ireduce=function(u){var d=u,p;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),p=d.bitLength();while(p>this.n);var l=p0?d.isub(this.p):d.strip(),d},O.prototype.split=function(u,d){u.iushrn(this.n,0,d)},O.prototype.imulK=function(u){return u.imul(this.k)};function k(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(k,O),k.prototype.split=function(u,d){for(var p=4194303,l=Math.min(u.length,9),y=0;y>>22,g=w}g>>>=22,u.words[y-10]=g,g===0&&u.length>10?u.length-=10:u.length-=9},k.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var d=0,p=0;p>>=26,u.words[p]=y,d=l}return d!==0&&(u.words[u.length++]=d),u},i._prime=function(u){if(M[u])return M[u];var d;if(u==="k256")d=new k;else if(u==="p224")d=new U;else if(u==="p192")d=new V;else if(u==="p25519")d=new Y;else throw new Error("Unknown prime "+u);return M[u]=d,d};function L(B){if(typeof B=="string"){var u=i._prime(B);this.m=u.p,this.prime=u}else r(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}L.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},L.prototype._verify2=function(u,d){r((u.negative|d.negative)===0,"red works only with positives"),r(u.red&&u.red===d.red,"red works only with red numbers")},L.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},L.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},L.prototype.add=function(u,d){this._verify2(u,d);var p=u.add(d);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},L.prototype.iadd=function(u,d){this._verify2(u,d);var p=u.iadd(d);return p.cmp(this.m)>=0&&p.isub(this.m),p},L.prototype.sub=function(u,d){this._verify2(u,d);var p=u.sub(d);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},L.prototype.isub=function(u,d){this._verify2(u,d);var p=u.isub(d);return p.cmpn(0)<0&&p.iadd(this.m),p},L.prototype.shl=function(u,d){return this._verify1(u),this.imod(u.ushln(d))},L.prototype.imul=function(u,d){return this._verify2(u,d),this.imod(u.imul(d))},L.prototype.mul=function(u,d){return this._verify2(u,d),this.imod(u.mul(d))},L.prototype.isqr=function(u){return this.imul(u,u.clone())},L.prototype.sqr=function(u){return this.mul(u,u)},L.prototype.sqrt=function(u){if(u.isZero())return u.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(u,p)}for(var l=this.m.subn(1),y=0;!l.isZero()&&l.andln(1)===0;)y++,l.iushrn(1);r(!l.isZero());var g=new i(1).toRed(this),w=g.redNeg(),x=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,x).cmp(w)!==0;)f.redIAdd(w);for(var m=this.pow(f,l),_=this.pow(u,l.addn(1).iushrn(1)),A=this.pow(u,l),S=y;A.cmp(g)!==0;){for(var $=A,q=0;$.cmp(g)!==0;q++)$=$.redSqr();r(q=0;y--){for(var m=d.words[y],_=f-1;_>=0;_--){var A=m>>_&1;if(g!==l[0]&&(g=this.sqr(g)),A===0&&w===0){x=0;continue}w<<=1,w|=A,x++,!(x!==p&&(y!==0||_!==0))&&(g=this.mul(g,l[w]),x=0,w=0)}f=26}return g},L.prototype.convertTo=function(u){var d=u.umod(this.m);return d===u?d.clone():d},L.prototype.convertFrom=function(u){var d=u.clone();return d.red=null,d},i.mont=function(u){return new X(u)};function X(B){L.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(X,L),X.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},X.prototype.convertFrom=function(u){var d=this.imod(u.mul(this.rinv));return d.red=null,d},X.prototype.imul=function(u,d){if(u.isZero()||d.isZero())return u.words[0]=0,u.length=1,u;var p=u.imul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.mul=function(u,d){if(u.isZero()||d.isZero())return new i(0)._forceRed(this);var p=u.mul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.invm=function(u){var d=this.imod(u._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(t,he)})(TB);var jxe=TB.exports,FB={exports:{}};FB.exports;(function(t){(function(e,n){function r(B,u){if(!B)throw new Error(u||"Assertion failed")}function a(B,u){B.super_=u;var d=function(){};d.prototype=u.prototype,B.prototype=new d,B.prototype.constructor=B}function i(B,u,d){if(i.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((u==="le"||u==="be")&&(d=u,u=10),this._init(B||0,u||10,d||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{s=Ug("buffer").Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,d){return u.cmp(d)>0?u:d},i.min=function(u,d){return u.cmp(d)<0?u:d},i.prototype._init=function(u,d,p){if(typeof u=="number")return this._initNumber(u,d,p);if(typeof u=="object")return this._initArray(u,d,p);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),u=u.toString().replace(/\s+/g,"");var l=0;u[0]==="-"&&l++,d===16?this._parseHex(u,l):this._parseBase(u,d,l),u[0]==="-"&&(this.negative=1),this.strip(),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initNumber=function(u,d,p){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initArray=function(u,d,p){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var l=0;l=0;l-=3)g=u[l]|u[l-1]<<8|u[l-2]<<16,this.words[y]|=g<>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);else if(p==="le")for(l=0,y=0;l>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);return this.strip()};function o(B,u,d){for(var p=0,l=Math.min(B.length,d),y=u;y=49&&g<=54?p|=g-49+10:g>=17&&g<=22?p|=g-17+10:p|=g&15}return p}i.prototype._parseHex=function(u,d){this.length=Math.ceil((u.length-d)/6),this.words=new Array(this.length);for(var p=0;p=d;p-=6)y=o(u,p,p+6),this.words[l]|=y<>>26-g&4194303,g+=24,g>=26&&(g-=26,l++);p+6!==d&&(y=o(u,d,p+6),this.words[l]|=y<>>26-g&4194303),this.strip()};function c(B,u,d,p){for(var l=0,y=Math.min(B.length,d),g=u;g=49?l+=w-49+10:w>=17?l+=w-17+10:l+=w}return l}i.prototype._parseBase=function(u,d,p){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=d)l++;l--,y=y/d|0;for(var g=u.length-p,w=g%l,x=Math.min(g,g-w)+p,f=0,m=p;m1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],b=[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],v=[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];i.prototype.toString=function(u,d){u=u||10,d=d|0||1;var p;if(u===16||u==="hex"){p="";for(var l=0,y=0,g=0;g>>24-l&16777215,y!==0||g!==this.length-1?p=h[6-x.length]+x+p:p=x+p,l+=2,l>=26&&(l-=26,g--)}for(y!==0&&(p=y.toString(16)+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(u===(u|0)&&u>=2&&u<=36){var f=b[u],m=v[u];p="";var _=this.clone();for(_.negative=0;!_.isZero();){var A=_.modn(m).toString(u);_=_.idivn(m),_.isZero()?p=A+p:p=h[f-A.length]+A+p}for(this.isZero()&&(p="0"+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,d){return r(typeof s<"u"),this.toArrayLike(s,u,d)},i.prototype.toArray=function(u,d){return this.toArrayLike(Array,u,d)},i.prototype.toArrayLike=function(u,d,p){var l=this.byteLength(),y=p||Math.max(1,l);r(l<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var g=d==="le",w=new u(y),x,f,m=this.clone();if(g){for(f=0;!m.isZero();f++)x=m.andln(255),m.iushrn(8),w[f]=x;for(;f=4096&&(p+=13,d>>>=13),d>=64&&(p+=7,d>>>=7),d>=8&&(p+=4,d>>>=4),d>=2&&(p+=2,d>>>=2),p+d},i.prototype._zeroBits=function(u){if(u===0)return 26;var d=u,p=0;return d&8191||(p+=13,d>>>=13),d&127||(p+=7,d>>>=7),d&15||(p+=4,d>>>=4),d&3||(p+=2,d>>>=2),d&1||p++,p},i.prototype.bitLength=function(){var u=this.words[this.length-1],d=this._countBits(u);return(this.length-1)*26+d};function E(B){for(var u=new Array(B.bitLength()),d=0;d>>l}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,d=0;du.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var d;this.length>u.length?d=u:d=this;for(var p=0;pu.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var d,p;this.length>u.length?(d=this,p=u):(d=u,p=this);for(var l=0;lu.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var d=Math.ceil(u/26)|0,p=u%26;this._expand(d),p>0&&d--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-p),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,d){r(typeof u=="number"&&u>=0);var p=u/26|0,l=u%26;return this._expand(p+1),d?this.words[p]=this.words[p]|1<u.length?(p=this,l=u):(p=u,l=this);for(var y=0,g=0;g>>26;for(;y!==0&&g>>26;if(this.length=p.length,y!==0)this.words[this.length]=y,this.length++;else if(p!==this)for(;gu.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var d=this.iadd(u);return u.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var p=this.cmp(u);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var l,y;p>0?(l=this,y=u):(l=u,y=this);for(var g=0,w=0;w>26,this.words[w]=d&67108863;for(;g!==0&&w>26,this.words[w]=d&67108863;if(g===0&&w>>26,_=x&67108863,A=Math.min(f,u.length-1),S=Math.max(0,f-B.length+1);S<=A;S++){var $=f-S|0;l=B.words[$]|0,y=u.words[S]|0,g=l*y+_,m+=g/67108864|0,_=g&67108863}d.words[f]=_|0,x=m|0}return x!==0?d.words[f]=x|0:d.length--,d.strip()}var F=function(u,d,p){var l=u.words,y=d.words,g=p.words,w=0,x,f,m,_=l[0]|0,A=_&8191,S=_>>>13,$=l[1]|0,q=$&8191,I=$>>>13,K=l[2]|0,z=K&8191,Q=K>>>13,ue=l[3]|0,fe=ue&8191,G=ue>>>13,j=l[4]|0,ne=j&8191,se=j>>>13,J=l[5]|0,R=J&8191,N=J>>>13,Z=l[6]|0,ae=Z&8191,pe=Z>>>13,W=l[7]|0,ee=W&8191,ie=W>>>13,me=l[8]|0,be=me&8191,ye=me>>>13,Fe=l[9]|0,Se=Fe&8191,Ee=Fe>>>13,Qe=y[0]|0,$e=Qe&8191,Oe=Qe>>>13,at=y[1]|0,qe=at&8191,Le=at>>>13,xt=y[2]|0,Je=xt&8191,He=xt>>>13,At=y[3]|0,ce=At&8191,de=At>>>13,Ce=y[4]|0,_e=Ce&8191,Ae=Ce>>>13,Xe=y[5]|0,Me=Xe&8191,Be=Xe>>>13,ze=y[6]|0,Pe=ze&8191,Ie=ze>>>13,Ye=y[7]|0,Ue=Ye&8191,De=Ye>>>13,ot=y[8]|0,We=ot&8191,je=ot>>>13,vt=y[9]|0,Ke=vt&8191,Ne=vt>>>13;p.negative=u.negative^d.negative,p.length=19,x=Math.imul(A,$e),f=Math.imul(A,Oe),f=f+Math.imul(S,$e)|0,m=Math.imul(S,Oe);var ht=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,x=Math.imul(q,$e),f=Math.imul(q,Oe),f=f+Math.imul(I,$e)|0,m=Math.imul(I,Oe),x=x+Math.imul(A,qe)|0,f=f+Math.imul(A,Le)|0,f=f+Math.imul(S,qe)|0,m=m+Math.imul(S,Le)|0;var pt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(z,$e),f=Math.imul(z,Oe),f=f+Math.imul(Q,$e)|0,m=Math.imul(Q,Oe),x=x+Math.imul(q,qe)|0,f=f+Math.imul(q,Le)|0,f=f+Math.imul(I,qe)|0,m=m+Math.imul(I,Le)|0,x=x+Math.imul(A,Je)|0,f=f+Math.imul(A,He)|0,f=f+Math.imul(S,Je)|0,m=m+Math.imul(S,He)|0;var yt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(fe,$e),f=Math.imul(fe,Oe),f=f+Math.imul(G,$e)|0,m=Math.imul(G,Oe),x=x+Math.imul(z,qe)|0,f=f+Math.imul(z,Le)|0,f=f+Math.imul(Q,qe)|0,m=m+Math.imul(Q,Le)|0,x=x+Math.imul(q,Je)|0,f=f+Math.imul(q,He)|0,f=f+Math.imul(I,Je)|0,m=m+Math.imul(I,He)|0,x=x+Math.imul(A,ce)|0,f=f+Math.imul(A,de)|0,f=f+Math.imul(S,ce)|0,m=m+Math.imul(S,de)|0;var Qt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,x=Math.imul(ne,$e),f=Math.imul(ne,Oe),f=f+Math.imul(se,$e)|0,m=Math.imul(se,Oe),x=x+Math.imul(fe,qe)|0,f=f+Math.imul(fe,Le)|0,f=f+Math.imul(G,qe)|0,m=m+Math.imul(G,Le)|0,x=x+Math.imul(z,Je)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(Q,Je)|0,m=m+Math.imul(Q,He)|0,x=x+Math.imul(q,ce)|0,f=f+Math.imul(q,de)|0,f=f+Math.imul(I,ce)|0,m=m+Math.imul(I,de)|0,x=x+Math.imul(A,_e)|0,f=f+Math.imul(A,Ae)|0,f=f+Math.imul(S,_e)|0,m=m+Math.imul(S,Ae)|0;var Gt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,x=Math.imul(R,$e),f=Math.imul(R,Oe),f=f+Math.imul(N,$e)|0,m=Math.imul(N,Oe),x=x+Math.imul(ne,qe)|0,f=f+Math.imul(ne,Le)|0,f=f+Math.imul(se,qe)|0,m=m+Math.imul(se,Le)|0,x=x+Math.imul(fe,Je)|0,f=f+Math.imul(fe,He)|0,f=f+Math.imul(G,Je)|0,m=m+Math.imul(G,He)|0,x=x+Math.imul(z,ce)|0,f=f+Math.imul(z,de)|0,f=f+Math.imul(Q,ce)|0,m=m+Math.imul(Q,de)|0,x=x+Math.imul(q,_e)|0,f=f+Math.imul(q,Ae)|0,f=f+Math.imul(I,_e)|0,m=m+Math.imul(I,Ae)|0,x=x+Math.imul(A,Me)|0,f=f+Math.imul(A,Be)|0,f=f+Math.imul(S,Me)|0,m=m+Math.imul(S,Be)|0;var ct=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ct>>>26)|0,ct&=67108863,x=Math.imul(ae,$e),f=Math.imul(ae,Oe),f=f+Math.imul(pe,$e)|0,m=Math.imul(pe,Oe),x=x+Math.imul(R,qe)|0,f=f+Math.imul(R,Le)|0,f=f+Math.imul(N,qe)|0,m=m+Math.imul(N,Le)|0,x=x+Math.imul(ne,Je)|0,f=f+Math.imul(ne,He)|0,f=f+Math.imul(se,Je)|0,m=m+Math.imul(se,He)|0,x=x+Math.imul(fe,ce)|0,f=f+Math.imul(fe,de)|0,f=f+Math.imul(G,ce)|0,m=m+Math.imul(G,de)|0,x=x+Math.imul(z,_e)|0,f=f+Math.imul(z,Ae)|0,f=f+Math.imul(Q,_e)|0,m=m+Math.imul(Q,Ae)|0,x=x+Math.imul(q,Me)|0,f=f+Math.imul(q,Be)|0,f=f+Math.imul(I,Me)|0,m=m+Math.imul(I,Be)|0,x=x+Math.imul(A,Pe)|0,f=f+Math.imul(A,Ie)|0,f=f+Math.imul(S,Pe)|0,m=m+Math.imul(S,Ie)|0;var Tt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,x=Math.imul(ee,$e),f=Math.imul(ee,Oe),f=f+Math.imul(ie,$e)|0,m=Math.imul(ie,Oe),x=x+Math.imul(ae,qe)|0,f=f+Math.imul(ae,Le)|0,f=f+Math.imul(pe,qe)|0,m=m+Math.imul(pe,Le)|0,x=x+Math.imul(R,Je)|0,f=f+Math.imul(R,He)|0,f=f+Math.imul(N,Je)|0,m=m+Math.imul(N,He)|0,x=x+Math.imul(ne,ce)|0,f=f+Math.imul(ne,de)|0,f=f+Math.imul(se,ce)|0,m=m+Math.imul(se,de)|0,x=x+Math.imul(fe,_e)|0,f=f+Math.imul(fe,Ae)|0,f=f+Math.imul(G,_e)|0,m=m+Math.imul(G,Ae)|0,x=x+Math.imul(z,Me)|0,f=f+Math.imul(z,Be)|0,f=f+Math.imul(Q,Me)|0,m=m+Math.imul(Q,Be)|0,x=x+Math.imul(q,Pe)|0,f=f+Math.imul(q,Ie)|0,f=f+Math.imul(I,Pe)|0,m=m+Math.imul(I,Ie)|0,x=x+Math.imul(A,Ue)|0,f=f+Math.imul(A,De)|0,f=f+Math.imul(S,Ue)|0,m=m+Math.imul(S,De)|0;var mt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(be,$e),f=Math.imul(be,Oe),f=f+Math.imul(ye,$e)|0,m=Math.imul(ye,Oe),x=x+Math.imul(ee,qe)|0,f=f+Math.imul(ee,Le)|0,f=f+Math.imul(ie,qe)|0,m=m+Math.imul(ie,Le)|0,x=x+Math.imul(ae,Je)|0,f=f+Math.imul(ae,He)|0,f=f+Math.imul(pe,Je)|0,m=m+Math.imul(pe,He)|0,x=x+Math.imul(R,ce)|0,f=f+Math.imul(R,de)|0,f=f+Math.imul(N,ce)|0,m=m+Math.imul(N,de)|0,x=x+Math.imul(ne,_e)|0,f=f+Math.imul(ne,Ae)|0,f=f+Math.imul(se,_e)|0,m=m+Math.imul(se,Ae)|0,x=x+Math.imul(fe,Me)|0,f=f+Math.imul(fe,Be)|0,f=f+Math.imul(G,Me)|0,m=m+Math.imul(G,Be)|0,x=x+Math.imul(z,Pe)|0,f=f+Math.imul(z,Ie)|0,f=f+Math.imul(Q,Pe)|0,m=m+Math.imul(Q,Ie)|0,x=x+Math.imul(q,Ue)|0,f=f+Math.imul(q,De)|0,f=f+Math.imul(I,Ue)|0,m=m+Math.imul(I,De)|0,x=x+Math.imul(A,We)|0,f=f+Math.imul(A,je)|0,f=f+Math.imul(S,We)|0,m=m+Math.imul(S,je)|0;var Nt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,x=Math.imul(Se,$e),f=Math.imul(Se,Oe),f=f+Math.imul(Ee,$e)|0,m=Math.imul(Ee,Oe),x=x+Math.imul(be,qe)|0,f=f+Math.imul(be,Le)|0,f=f+Math.imul(ye,qe)|0,m=m+Math.imul(ye,Le)|0,x=x+Math.imul(ee,Je)|0,f=f+Math.imul(ee,He)|0,f=f+Math.imul(ie,Je)|0,m=m+Math.imul(ie,He)|0,x=x+Math.imul(ae,ce)|0,f=f+Math.imul(ae,de)|0,f=f+Math.imul(pe,ce)|0,m=m+Math.imul(pe,de)|0,x=x+Math.imul(R,_e)|0,f=f+Math.imul(R,Ae)|0,f=f+Math.imul(N,_e)|0,m=m+Math.imul(N,Ae)|0,x=x+Math.imul(ne,Me)|0,f=f+Math.imul(ne,Be)|0,f=f+Math.imul(se,Me)|0,m=m+Math.imul(se,Be)|0,x=x+Math.imul(fe,Pe)|0,f=f+Math.imul(fe,Ie)|0,f=f+Math.imul(G,Pe)|0,m=m+Math.imul(G,Ie)|0,x=x+Math.imul(z,Ue)|0,f=f+Math.imul(z,De)|0,f=f+Math.imul(Q,Ue)|0,m=m+Math.imul(Q,De)|0,x=x+Math.imul(q,We)|0,f=f+Math.imul(q,je)|0,f=f+Math.imul(I,We)|0,m=m+Math.imul(I,je)|0,x=x+Math.imul(A,Ke)|0,f=f+Math.imul(A,Ne)|0,f=f+Math.imul(S,Ke)|0,m=m+Math.imul(S,Ne)|0;var Cn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,x=Math.imul(Se,qe),f=Math.imul(Se,Le),f=f+Math.imul(Ee,qe)|0,m=Math.imul(Ee,Le),x=x+Math.imul(be,Je)|0,f=f+Math.imul(be,He)|0,f=f+Math.imul(ye,Je)|0,m=m+Math.imul(ye,He)|0,x=x+Math.imul(ee,ce)|0,f=f+Math.imul(ee,de)|0,f=f+Math.imul(ie,ce)|0,m=m+Math.imul(ie,de)|0,x=x+Math.imul(ae,_e)|0,f=f+Math.imul(ae,Ae)|0,f=f+Math.imul(pe,_e)|0,m=m+Math.imul(pe,Ae)|0,x=x+Math.imul(R,Me)|0,f=f+Math.imul(R,Be)|0,f=f+Math.imul(N,Me)|0,m=m+Math.imul(N,Be)|0,x=x+Math.imul(ne,Pe)|0,f=f+Math.imul(ne,Ie)|0,f=f+Math.imul(se,Pe)|0,m=m+Math.imul(se,Ie)|0,x=x+Math.imul(fe,Ue)|0,f=f+Math.imul(fe,De)|0,f=f+Math.imul(G,Ue)|0,m=m+Math.imul(G,De)|0,x=x+Math.imul(z,We)|0,f=f+Math.imul(z,je)|0,f=f+Math.imul(Q,We)|0,m=m+Math.imul(Q,je)|0,x=x+Math.imul(q,Ke)|0,f=f+Math.imul(q,Ne)|0,f=f+Math.imul(I,Ke)|0,m=m+Math.imul(I,Ne)|0;var Pn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(Se,Je),f=Math.imul(Se,He),f=f+Math.imul(Ee,Je)|0,m=Math.imul(Ee,He),x=x+Math.imul(be,ce)|0,f=f+Math.imul(be,de)|0,f=f+Math.imul(ye,ce)|0,m=m+Math.imul(ye,de)|0,x=x+Math.imul(ee,_e)|0,f=f+Math.imul(ee,Ae)|0,f=f+Math.imul(ie,_e)|0,m=m+Math.imul(ie,Ae)|0,x=x+Math.imul(ae,Me)|0,f=f+Math.imul(ae,Be)|0,f=f+Math.imul(pe,Me)|0,m=m+Math.imul(pe,Be)|0,x=x+Math.imul(R,Pe)|0,f=f+Math.imul(R,Ie)|0,f=f+Math.imul(N,Pe)|0,m=m+Math.imul(N,Ie)|0,x=x+Math.imul(ne,Ue)|0,f=f+Math.imul(ne,De)|0,f=f+Math.imul(se,Ue)|0,m=m+Math.imul(se,De)|0,x=x+Math.imul(fe,We)|0,f=f+Math.imul(fe,je)|0,f=f+Math.imul(G,We)|0,m=m+Math.imul(G,je)|0,x=x+Math.imul(z,Ke)|0,f=f+Math.imul(z,Ne)|0,f=f+Math.imul(Q,Ke)|0,m=m+Math.imul(Q,Ne)|0;var Qn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,x=Math.imul(Se,ce),f=Math.imul(Se,de),f=f+Math.imul(Ee,ce)|0,m=Math.imul(Ee,de),x=x+Math.imul(be,_e)|0,f=f+Math.imul(be,Ae)|0,f=f+Math.imul(ye,_e)|0,m=m+Math.imul(ye,Ae)|0,x=x+Math.imul(ee,Me)|0,f=f+Math.imul(ee,Be)|0,f=f+Math.imul(ie,Me)|0,m=m+Math.imul(ie,Be)|0,x=x+Math.imul(ae,Pe)|0,f=f+Math.imul(ae,Ie)|0,f=f+Math.imul(pe,Pe)|0,m=m+Math.imul(pe,Ie)|0,x=x+Math.imul(R,Ue)|0,f=f+Math.imul(R,De)|0,f=f+Math.imul(N,Ue)|0,m=m+Math.imul(N,De)|0,x=x+Math.imul(ne,We)|0,f=f+Math.imul(ne,je)|0,f=f+Math.imul(se,We)|0,m=m+Math.imul(se,je)|0,x=x+Math.imul(fe,Ke)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(G,Ke)|0,m=m+Math.imul(G,Ne)|0;var Xn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,x=Math.imul(Se,_e),f=Math.imul(Se,Ae),f=f+Math.imul(Ee,_e)|0,m=Math.imul(Ee,Ae),x=x+Math.imul(be,Me)|0,f=f+Math.imul(be,Be)|0,f=f+Math.imul(ye,Me)|0,m=m+Math.imul(ye,Be)|0,x=x+Math.imul(ee,Pe)|0,f=f+Math.imul(ee,Ie)|0,f=f+Math.imul(ie,Pe)|0,m=m+Math.imul(ie,Ie)|0,x=x+Math.imul(ae,Ue)|0,f=f+Math.imul(ae,De)|0,f=f+Math.imul(pe,Ue)|0,m=m+Math.imul(pe,De)|0,x=x+Math.imul(R,We)|0,f=f+Math.imul(R,je)|0,f=f+Math.imul(N,We)|0,m=m+Math.imul(N,je)|0,x=x+Math.imul(ne,Ke)|0,f=f+Math.imul(ne,Ne)|0,f=f+Math.imul(se,Ke)|0,m=m+Math.imul(se,Ne)|0;var Jn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,x=Math.imul(Se,Me),f=Math.imul(Se,Be),f=f+Math.imul(Ee,Me)|0,m=Math.imul(Ee,Be),x=x+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ie)|0,f=f+Math.imul(ye,Pe)|0,m=m+Math.imul(ye,Ie)|0,x=x+Math.imul(ee,Ue)|0,f=f+Math.imul(ee,De)|0,f=f+Math.imul(ie,Ue)|0,m=m+Math.imul(ie,De)|0,x=x+Math.imul(ae,We)|0,f=f+Math.imul(ae,je)|0,f=f+Math.imul(pe,We)|0,m=m+Math.imul(pe,je)|0,x=x+Math.imul(R,Ke)|0,f=f+Math.imul(R,Ne)|0,f=f+Math.imul(N,Ke)|0,m=m+Math.imul(N,Ne)|0;var Yn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,x=Math.imul(Se,Pe),f=Math.imul(Se,Ie),f=f+Math.imul(Ee,Pe)|0,m=Math.imul(Ee,Ie),x=x+Math.imul(be,Ue)|0,f=f+Math.imul(be,De)|0,f=f+Math.imul(ye,Ue)|0,m=m+Math.imul(ye,De)|0,x=x+Math.imul(ee,We)|0,f=f+Math.imul(ee,je)|0,f=f+Math.imul(ie,We)|0,m=m+Math.imul(ie,je)|0,x=x+Math.imul(ae,Ke)|0,f=f+Math.imul(ae,Ne)|0,f=f+Math.imul(pe,Ke)|0,m=m+Math.imul(pe,Ne)|0;var er=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(Se,Ue),f=Math.imul(Se,De),f=f+Math.imul(Ee,Ue)|0,m=Math.imul(Ee,De),x=x+Math.imul(be,We)|0,f=f+Math.imul(be,je)|0,f=f+Math.imul(ye,We)|0,m=m+Math.imul(ye,je)|0,x=x+Math.imul(ee,Ke)|0,f=f+Math.imul(ee,Ne)|0,f=f+Math.imul(ie,Ke)|0,m=m+Math.imul(ie,Ne)|0;var tr=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(tr>>>26)|0,tr&=67108863,x=Math.imul(Se,We),f=Math.imul(Se,je),f=f+Math.imul(Ee,We)|0,m=Math.imul(Ee,je),x=x+Math.imul(be,Ke)|0,f=f+Math.imul(be,Ne)|0,f=f+Math.imul(ye,Ke)|0,m=m+Math.imul(ye,Ne)|0;var sa=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(Se,Ke),f=Math.imul(Se,Ne),f=f+Math.imul(Ee,Ke)|0,m=Math.imul(Ee,Ne);var oa=(w+x|0)+((f&8191)<<13)|0;return w=(m+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,g[0]=ht,g[1]=pt,g[2]=yt,g[3]=Qt,g[4]=Gt,g[5]=ct,g[6]=Tt,g[7]=mt,g[8]=Nt,g[9]=Cn,g[10]=Pn,g[11]=Qn,g[12]=Xn,g[13]=Jn,g[14]=Yn,g[15]=er,g[16]=tr,g[17]=sa,g[18]=oa,w!==0&&(g[19]=w,p.length++),p};Math.imul||(F=C);function T(B,u,d){d.negative=u.negative^B.negative,d.length=B.length+u.length;for(var p=0,l=0,y=0;y>>26)|0,l+=g>>>26,g&=67108863}d.words[y]=w,p=g,g=l}return p!==0?d.words[y]=p:d.length--,d.strip()}function P(B,u,d){var p=new D;return p.mulp(B,u,d)}i.prototype.mulTo=function(u,d){var p,l=this.length+u.length;return this.length===10&&u.length===10?p=F(this,u,d):l<63?p=C(this,u,d):l<1024?p=T(this,u,d):p=P(this,u,d),p};function D(B,u){this.x=B,this.y=u}D.prototype.makeRBT=function(u){for(var d=new Array(u),p=i.prototype._countBits(u)-1,l=0;l>=1;return l},D.prototype.permute=function(u,d,p,l,y,g){for(var w=0;w>>1)y++;return 1<>>13,p[2*g+1]=y&8191,y=y>>>13;for(g=2*d;g>=26,d+=l/67108864|0,d+=y>>>26,this.words[p]=y&67108863}return d!==0&&(this.words[p]=d,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var d=E(u);if(d.length===0)return new i(1);for(var p=this,l=0;l=0);var d=u%26,p=(u-d)/26,l=67108863>>>26-d<<26-d,y;if(d!==0){var g=0;for(y=0;y>>26-d}g&&(this.words[y]=g,this.length++)}if(p!==0){for(y=this.length-1;y>=0;y--)this.words[y+p]=this.words[y];for(y=0;y=0);var l;d?l=(d-d%26)/26:l=0;var y=u%26,g=Math.min((u-y)/26,this.length),w=67108863^67108863>>>y<g)for(this.length-=g,f=0;f=0&&(m!==0||f>=l);f--){var _=this.words[f]|0;this.words[f]=m<<26-y|_>>>y,m=_&w}return x&&m!==0&&(x.words[x.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,d,p){return r(this.negative===0),this.iushrn(u,d,p)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var d=u%26,p=(u-d)/26,l=1<=0);var d=u%26,p=(u-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(d!==0&&p++,this.length=Math.min(p,this.length),d!==0){var l=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(x/67108864|0),this.words[y+p]=g&67108863}for(;y>26,this.words[y+p]=g&67108863;if(w===0)return this.strip();for(r(w===-1),w=0,y=0;y>26,this.words[y]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,d){var p=this.length-u.length,l=this.clone(),y=u,g=y.words[y.length-1]|0,w=this._countBits(g);p=26-w,p!==0&&(y=y.ushln(p),l.iushln(p),g=y.words[y.length-1]|0);var x=l.length-y.length,f;if(d!=="mod"){f=new i(null),f.length=x+1,f.words=new Array(f.length);for(var m=0;m=0;A--){var S=(l.words[y.length+A]|0)*67108864+(l.words[y.length+A-1]|0);for(S=Math.min(S/g|0,67108863),l._ishlnsubmul(y,S,A);l.negative!==0;)S--,l.negative=0,l._ishlnsubmul(y,1,A),l.isZero()||(l.negative^=1);f&&(f.words[A]=S)}return f&&f.strip(),l.strip(),d!=="div"&&p!==0&&l.iushrn(p),{div:f||null,mod:l}},i.prototype.divmod=function(u,d,p){if(r(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var l,y,g;return this.negative!==0&&u.negative===0?(g=this.neg().divmod(u,d),d!=="mod"&&(l=g.div.neg()),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.iadd(u)),{div:l,mod:y}):this.negative===0&&u.negative!==0?(g=this.divmod(u.neg(),d),d!=="mod"&&(l=g.div.neg()),{div:l,mod:g.mod}):this.negative&u.negative?(g=this.neg().divmod(u.neg(),d),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.isub(u)),{div:g.div,mod:y}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?d==="div"?{div:this.divn(u.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,d)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var d=this.divmod(u);if(d.mod.isZero())return d.div;var p=d.div.negative!==0?d.mod.isub(u):d.mod,l=u.ushrn(1),y=u.andln(1),g=p.cmp(l);return g<0||y===1&&g===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modn=function(u){r(u<=67108863);for(var d=(1<<26)%u,p=0,l=this.length-1;l>=0;l--)p=(d*p+(this.words[l]|0))%u;return p},i.prototype.idivn=function(u){r(u<=67108863);for(var d=0,p=this.length-1;p>=0;p--){var l=(this.words[p]|0)+d*67108864;this.words[p]=l/u|0,d=l%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=new i(0),w=new i(1),x=0;d.isEven()&&p.isEven();)d.iushrn(1),p.iushrn(1),++x;for(var f=p.clone(),m=d.clone();!d.isZero();){for(var _=0,A=1;!(d.words[0]&A)&&_<26;++_,A<<=1);if(_>0)for(d.iushrn(_);_-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(f),y.isub(m)),l.iushrn(1),y.iushrn(1);for(var S=0,$=1;!(p.words[0]&$)&&S<26;++S,$<<=1);if(S>0)for(p.iushrn(S);S-- >0;)(g.isOdd()||w.isOdd())&&(g.iadd(f),w.isub(m)),g.iushrn(1),w.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(g),y.isub(w)):(p.isub(d),g.isub(l),w.isub(y))}return{a:g,b:w,gcd:p.iushln(x)}},i.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=p.clone();d.cmpn(1)>0&&p.cmpn(1)>0;){for(var w=0,x=1;!(d.words[0]&x)&&w<26;++w,x<<=1);if(w>0)for(d.iushrn(w);w-- >0;)l.isOdd()&&l.iadd(g),l.iushrn(1);for(var f=0,m=1;!(p.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(p.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(g),y.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(y)):(p.isub(d),y.isub(l))}var _;return d.cmpn(1)===0?_=l:_=y,_.cmpn(0)<0&&_.iadd(u),_},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var d=this.clone(),p=u.clone();d.negative=0,p.negative=0;for(var l=0;d.isEven()&&p.isEven();l++)d.iushrn(1),p.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;p.isEven();)p.iushrn(1);var y=d.cmp(p);if(y<0){var g=d;d=p,p=g}else if(y===0||p.cmpn(1)===0)break;d.isub(p)}while(!0);return p.iushln(l)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){r(typeof u=="number");var d=u%26,p=(u-d)/26,l=1<>>26,w&=67108863,this.words[g]=w}return y!==0&&(this.words[g]=y,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var d=u<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var p;if(this.length>1)p=1;else{d&&(u=-u),r(u<=67108863,"Number is too big");var l=this.words[0]|0;p=l===u?0:lu.length)return 1;if(this.length=0;p--){var l=this.words[p]|0,y=u.words[p]|0;if(l!==y){ly&&(d=1);break}}return d},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new L(u)},i.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var M={k256:null,p224:null,p192:null,p25519:null};function O(B,u){this.name=B,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},O.prototype.ireduce=function(u){var d=u,p;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),p=d.bitLength();while(p>this.n);var l=p0?d.isub(this.p):d.strip(),d},O.prototype.split=function(u,d){u.iushrn(this.n,0,d)},O.prototype.imulK=function(u){return u.imul(this.k)};function k(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(k,O),k.prototype.split=function(u,d){for(var p=4194303,l=Math.min(u.length,9),y=0;y>>22,g=w}g>>>=22,u.words[y-10]=g,g===0&&u.length>10?u.length-=10:u.length-=9},k.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var d=0,p=0;p>>=26,u.words[p]=y,d=l}return d!==0&&(u.words[u.length++]=d),u},i._prime=function(u){if(M[u])return M[u];var d;if(u==="k256")d=new k;else if(u==="p224")d=new U;else if(u==="p192")d=new V;else if(u==="p25519")d=new Y;else throw new Error("Unknown prime "+u);return M[u]=d,d};function L(B){if(typeof B=="string"){var u=i._prime(B);this.m=u.p,this.prime=u}else r(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}L.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},L.prototype._verify2=function(u,d){r((u.negative|d.negative)===0,"red works only with positives"),r(u.red&&u.red===d.red,"red works only with red numbers")},L.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},L.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},L.prototype.add=function(u,d){this._verify2(u,d);var p=u.add(d);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},L.prototype.iadd=function(u,d){this._verify2(u,d);var p=u.iadd(d);return p.cmp(this.m)>=0&&p.isub(this.m),p},L.prototype.sub=function(u,d){this._verify2(u,d);var p=u.sub(d);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},L.prototype.isub=function(u,d){this._verify2(u,d);var p=u.isub(d);return p.cmpn(0)<0&&p.iadd(this.m),p},L.prototype.shl=function(u,d){return this._verify1(u),this.imod(u.ushln(d))},L.prototype.imul=function(u,d){return this._verify2(u,d),this.imod(u.imul(d))},L.prototype.mul=function(u,d){return this._verify2(u,d),this.imod(u.mul(d))},L.prototype.isqr=function(u){return this.imul(u,u.clone())},L.prototype.sqr=function(u){return this.mul(u,u)},L.prototype.sqrt=function(u){if(u.isZero())return u.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(u,p)}for(var l=this.m.subn(1),y=0;!l.isZero()&&l.andln(1)===0;)y++,l.iushrn(1);r(!l.isZero());var g=new i(1).toRed(this),w=g.redNeg(),x=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,x).cmp(w)!==0;)f.redIAdd(w);for(var m=this.pow(f,l),_=this.pow(u,l.addn(1).iushrn(1)),A=this.pow(u,l),S=y;A.cmp(g)!==0;){for(var $=A,q=0;$.cmp(g)!==0;q++)$=$.redSqr();r(q=0;y--){for(var m=d.words[y],_=f-1;_>=0;_--){var A=m>>_&1;if(g!==l[0]&&(g=this.sqr(g)),A===0&&w===0){x=0;continue}w<<=1,w|=A,x++,!(x!==p&&(y!==0||_!==0))&&(g=this.mul(g,l[w]),x=0,w=0)}f=26}return g},L.prototype.convertTo=function(u){var d=u.umod(this.m);return d===u?d.clone():d},L.prototype.convertFrom=function(u){var d=u.clone();return d.red=null,d},i.mont=function(u){return new X(u)};function X(B){L.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(X,L),X.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},X.prototype.convertFrom=function(u){var d=this.imod(u.mul(this.rinv));return d.red=null,d},X.prototype.imul=function(u,d){if(u.isZero()||d.isZero())return u.words[0]=0,u.length=1,u;var p=u.imul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.mul=function(u,d){if(u.isZero()||d.isZero())return new i(0)._forceRed(this);var p=u.mul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.invm=function(u){var d=this.imod(u._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(t,he)})(FB);var Hxe=FB.exports,zxe=function(e){if(typeof e!="string")throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return e.slice(0,2)==="0x"},Gxe=zxe,Vxe=function(e){return typeof e!="string"?e:Gxe(e)?e.slice(2):e},ny=Hxe,RI=Vxe,kV=function(e){if(typeof e=="string"||typeof e=="number"){var n=new ny(1),r=String(e).toLowerCase().trim(),a=r.substr(0,2)==="0x"||r.substr(0,3)==="-0x",i=RI(r);if(i.substr(0,1)==="-"&&(i=RI(i.slice(1)),n=new ny(-1,10)),i=i===""?"0":i,!i.match(/^-?[0-9]+$/)&&i.match(/^[0-9A-Fa-f]+$/)||i.match(/^[a-fA-F]+$/)||a===!0&&i.match(/^[0-9A-Fa-f]+$/))return new ny(i,16).mul(n);if((i.match(/^-?[0-9]+$/)||i==="")&&a===!1)return new ny(i,10).mul(n)}else if(typeof e=="object"&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new ny(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")},sh=jxe,qxe=kV,Wxe=new sh(0),IV=new sh(-1),Gm={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function MB(t){var e=t?t.toLowerCase():"ether",n=Gm[e];if(typeof n!="string")throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(Gm,null,2));return new sh(n,10)}function OV(t){if(typeof t=="string"){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}else{if(typeof t=="number")return String(t);if(typeof t=="object"&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10)}throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}function Kxe(t,e,n){var r=qxe(t),a=r.lt(Wxe),i=MB(e),s=Gm[e].length-1||1,o=n||{};a&&(r=r.mul(IV));for(var c=r.mod(i).toString(10);c.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var o=s[0],c=s[1];if(o||(o="0"),c||(c="0"),c.length>a)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;c.length=55296&&O<=56319&&D65535&&(M-=65536,O+=n(M>>>10&1023|55296),M=56320|M&1023),O+=n(M);return O}function i(T){if(T>=55296&&T<=57343)throw Error("Lone surrogate U+"+T.toString(16).toUpperCase()+" is not a scalar value")}function s(T,P){return n(T>>P&63|128)}function o(T){if(!(T&4294967168))return n(T);var P="";return T&4294965248?T&4294901760?T&4292870144||(P=n(T>>18&7|240),P+=s(T,12),P+=s(T,6)):(i(T),P=n(T>>12&15|224),P+=s(T,6)):P=n(T>>6&31|192),P+=n(T&63|128),P}function c(T){for(var P=r(T),D=P.length,M=-1,O,k="";++M=E)throw Error("Invalid byte index");var T=v[C]&255;if(C++,(T&192)==128)return T&63;throw Error("Invalid continuation byte")}function b(){var T,P,D,M,O;if(C>E)throw Error("Invalid byte index");if(C==E)return!1;if(T=v[C]&255,C++,!(T&128))return T;if((T&224)==192){if(P=h(),O=(T&31)<<6|P,O>=128)return O;throw Error("Invalid continuation byte")}if((T&240)==224){if(P=h(),D=h(),O=(T&15)<<12|P<<6|D,O>=2048)return i(O),O;throw Error("Invalid continuation byte")}if((T&248)==240&&(P=h(),D=h(),M=h(),O=(T&7)<<18|P<<12|D<<6|M,O>=65536&&O<=1114111))return O;throw Error("Invalid UTF-8 detected")}var v,E,C;function F(T){v=r(T),E=v.length,C=0;for(var P=[],D;(D=b())!==!1;)P.push(D);return a(P)}e.version="3.0.0",e.encode=c,e.decode=F})(t)})(PV);var RV={},v4={},w4={},NV={},Np={},E4={},gr={};Object.defineProperty(gr,"__esModule",{value:!0});gr.output=gr.exists=gr.hash=gr.bytes=gr.bool=gr.number=void 0;function jg(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}gr.number=jg;function $V(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}gr.bool=$V;function Xxe(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function DB(t,...e){if(!Xxe(t))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}gr.bytes=DB;function LV(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");jg(t.outputLen),jg(t.blockLen)}gr.hash=LV;function UV(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}gr.exists=UV;function jV(t,e){DB(t);const n=e.outputLen;if(t.lengthnew Uint8Array(L.buffer,L.byteOffset,L.byteLength);t.u8=n;const r=L=>new Uint32Array(L.buffer,L.byteOffset,Math.floor(L.byteLength/4));t.u32=r;function a(L){return L instanceof Uint8Array||L!=null&&typeof L=="object"&&L.constructor.name==="Uint8Array"}const i=L=>new DataView(L.buffer,L.byteOffset,L.byteLength);t.createView=i;const s=(L,X)=>L<<32-X|L>>>X;if(t.rotr=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!t.isLE)throw new Error("Non little-endian hardware is not supported");const o=Array.from({length:256},(L,X)=>X.toString(16).padStart(2,"0"));function c(L){if(!a(L))throw new Error("Uint8Array expected");let X="";for(let B=0;B=h._0&&L<=h._9)return L-h._0;if(L>=h._A&&L<=h._F)return L-(h._A-10);if(L>=h._a&&L<=h._f)return L-(h._a-10)}function v(L){if(typeof L!="string")throw new Error("hex string expected, got "+typeof L);const X=L.length,B=X/2;if(X%2)throw new Error("padded hex string expected, got unpadded hex of length "+X);const u=new Uint8Array(B);for(let d=0,p=0;d{};t.nextTick=E;async function C(L,X,B){let u=Date.now();for(let d=0;d=0&&pL().update(T(u)).digest(),B=L();return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=()=>L(),X}t.wrapConstructor=k;function U(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapConstructorWithOpts=U;function V(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapXOFConstructorWithOpts=V;function Y(L=32){if(e.crypto&&typeof e.crypto.getRandomValues=="function")return e.crypto.getRandomValues(new Uint8Array(L));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=Y})(jc);Object.defineProperty(E4,"__esModule",{value:!0});E4.SHA2=void 0;const U9=gr,ry=jc;function Yxe(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const a=BigInt(32),i=BigInt(4294967295),s=Number(n>>a&i),o=Number(n&i),c=r?4:0,h=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+h,o,r)}class e4e extends ry.Hash{constructor(e,n,r,a){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,ry.createView)(this.buffer)}update(e){(0,U9.exists)(this);const{view:n,buffer:r,blockLen:a}=this;e=(0,ry.toBytes)(e);const i=e.length;for(let s=0;sa-s&&(this.process(r,0),s=0);for(let v=s;vb.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;vt&e^~t&n,r4e=(t,e,n)=>t&e^t&n^e&n,a4e=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]),cl=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),ll=new Uint32Array(64);class HV extends t4e.SHA2{constructor(){super(64,32,8,!1),this.A=cl[0]|0,this.B=cl[1]|0,this.C=cl[2]|0,this.D=cl[3]|0,this.E=cl[4]|0,this.F=cl[5]|0,this.G=cl[6]|0,this.H=cl[7]|0}get(){const{A:e,B:n,C:r,D:a,E:i,F:s,G:o,H:c}=this;return[e,n,r,a,i,s,o,c]}set(e,n,r,a,i,s,o,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=c|0}process(e,n){for(let v=0;v<16;v++,n+=4)ll[v]=e.getUint32(n,!1);for(let v=16;v<64;v++){const E=ll[v-15],C=ll[v-2],F=(0,wi.rotr)(E,7)^(0,wi.rotr)(E,18)^E>>>3,T=(0,wi.rotr)(C,17)^(0,wi.rotr)(C,19)^C>>>10;ll[v]=T+ll[v-7]+F+ll[v-16]|0}let{A:r,B:a,C:i,D:s,E:o,F:c,G:h,H:b}=this;for(let v=0;v<64;v++){const E=(0,wi.rotr)(o,6)^(0,wi.rotr)(o,11)^(0,wi.rotr)(o,25),C=b+E+n4e(o,c,h)+a4e[v]+ll[v]|0,T=((0,wi.rotr)(r,2)^(0,wi.rotr)(r,13)^(0,wi.rotr)(r,22))+r4e(r,a,i)|0;b=h,h=c,c=o,o=s+C|0,s=i,i=a,a=r,r=C+T|0}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,h=h+this.G|0,b=b+this.H|0,this.set(r,a,i,s,o,c,h,b)}roundClean(){ll.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class i4e extends HV{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}Np.sha256=(0,wi.wrapConstructor)(()=>new HV);Np.sha224=(0,wi.wrapConstructor)(()=>new i4e);var bt={},dt={};Object.defineProperty(dt,"__esModule",{value:!0});dt.validateObject=dt.createHmacDrbg=dt.bitMask=dt.bitSet=dt.bitGet=dt.bitLen=dt.utf8ToBytes=dt.equalBytes=dt.concatBytes=dt.ensureBytes=dt.numberToVarBytesBE=dt.numberToBytesLE=dt.numberToBytesBE=dt.bytesToNumberLE=dt.bytesToNumberBE=dt.hexToBytes=dt.hexToNumber=dt.numberToHexUnpadded=dt.bytesToHex=dt.isBytes=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const zV=BigInt(0),_4=BigInt(1),s4e=BigInt(2);function m1(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}dt.isBytes=m1;const o4e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function kB(t){if(!m1(t))throw new Error("Uint8Array expected");let e="";for(let n=0;n=Uo._0&&t<=Uo._9)return t-Uo._0;if(t>=Uo._A&&t<=Uo._F)return t-(Uo._A-10);if(t>=Uo._a&&t<=Uo._f)return t-(Uo._a-10)}function C4(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let a=0,i=0;azV;t>>=_4,e+=1);return e}dt.bitLen=y4e;function m4e(t,e){return t>>BigInt(e)&_4}dt.bitGet=m4e;const b4e=(t,e,n)=>t|(n?_4:zV)<(s4e<new Uint8Array(t),$I=t=>Uint8Array.from(t);function x4e(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=j9(t),a=j9(t),i=0;const s=()=>{r.fill(1),a.fill(0),i=0},o=(...v)=>n(a,r,...v),c=(v=j9())=>{a=o($I([0]),v),r=o(),v.length!==0&&(a=o($I([1]),v),r=o())},h=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const E=[];for(;v{s(),c(v);let C;for(;!(C=E(h()));)c();return s(),C}}dt.createHmacDrbg=x4e;const v4e={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||m1(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function w4e(t,e,n={}){const r=(a,i,s)=>{const o=v4e[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[a];if(!(s&&c===void 0)&&!o(c,t))throw new Error(`Invalid param ${String(a)}=${c} (${typeof c}), expected ${i}`)};for(const[a,i]of Object.entries(e))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return t}dt.validateObject=w4e;Object.defineProperty(bt,"__esModule",{value:!0});bt.mapHashToField=bt.getMinHashLength=bt.getFieldBytesLength=bt.hashToPrivateScalar=bt.FpSqrtEven=bt.FpSqrtOdd=bt.Field=bt.nLength=bt.FpIsSquare=bt.FpDiv=bt.FpInvertBatch=bt.FpPow=bt.validateField=bt.isNegativeLE=bt.FpSqrt=bt.tonelliShanks=bt.invert=bt.pow2=bt.pow=bt.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ya=dt,vr=BigInt(0),un=BigInt(1),Cl=BigInt(2),E4e=BigInt(3),yE=BigInt(4),LI=BigInt(5),UI=BigInt(8);BigInt(9);BigInt(16);function Za(t,e){const n=t%e;return n>=vr?n:e+n}bt.mod=Za;function WV(t,e,n){if(n<=vr||e 0");if(n===un)return vr;let r=un;for(;e>vr;)e&un&&(r=r*t%n),t=t*t%n,e>>=un;return r}bt.pow=WV;function A4e(t,e,n){let r=t;for(;e-- >vr;)r*=r,r%=n;return r}bt.pow2=A4e;function Hg(t,e){if(t===vr||e<=vr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=Za(t,e),r=e,a=vr,i=un;for(;n!==vr;){const o=r/n,c=r%n,h=a-i*o;r=n,n=c,a=i,i=h}if(r!==un)throw new Error("invert: does not exist");return Za(a,e)}bt.invert=Hg;function KV(t){const e=(t-un)/Cl;let n,r,a;for(n=t-un,r=0;n%Cl===vr;n/=Cl,r++);for(a=Cl;a(Za(t,e)&un)===un;bt.isNegativeLE=_4e;const C4e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function B4e(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=C4e.reduce((r,a)=>(r[a]="function",r),e);return(0,Ya.validateObject)(t,n)}bt.validateField=B4e;function QV(t,e,n){if(n 0");if(n===vr)return t.ONE;if(n===un)return e;let r=t.ONE,a=e;for(;n>vr;)n&un&&(r=t.mul(r,a)),a=t.sqr(a),n>>=un;return r}bt.FpPow=QV;function XV(t,e){const n=new Array(e.length),r=e.reduce((i,s,o)=>t.is0(s)?i:(n[o]=i,t.mul(i,s)),t.ONE),a=t.inv(r);return e.reduceRight((i,s,o)=>t.is0(s)?i:(n[o]=t.mul(i,n[o]),t.mul(i,s)),a),n}bt.FpInvertBatch=XV;function S4e(t,e,n){return t.mul(e,typeof n=="bigint"?Hg(n,t.ORDER):t.inv(n))}bt.FpDiv=S4e;function T4e(t){const e=(t.ORDER-un)/Cl;return n=>{const r=t.pow(n,e);return t.eql(r,t.ZERO)||t.eql(r,t.ONE)}}bt.FpIsSquare=T4e;function OB(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}bt.nLength=OB;function F4e(t,e,n=!1,r={}){if(t<=vr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:i}=OB(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=ZV(t),o=Object.freeze({ORDER:t,BITS:a,BYTES:i,MASK:(0,Ya.bitMask)(a),ZERO:vr,ONE:un,create:c=>Za(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return vr<=c&&cc===vr,isOdd:c=>(c&un)===un,neg:c=>Za(-c,t),eql:(c,h)=>c===h,sqr:c=>Za(c*c,t),add:(c,h)=>Za(c+h,t),sub:(c,h)=>Za(c-h,t),mul:(c,h)=>Za(c*h,t),pow:(c,h)=>QV(o,c,h),div:(c,h)=>Za(c*Hg(h,t),t),sqrN:c=>c*c,addN:(c,h)=>c+h,subN:(c,h)=>c-h,mulN:(c,h)=>c*h,inv:c=>Hg(c,t),sqrt:r.sqrt||(c=>s(o,c)),invertBatch:c=>XV(o,c),cmov:(c,h,b)=>b?h:c,toBytes:c=>n?(0,Ya.numberToBytesLE)(c,i):(0,Ya.numberToBytesBE)(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?(0,Ya.bytesToNumberLE)(c):(0,Ya.bytesToNumberBE)(c)}});return Object.freeze(o)}bt.Field=F4e;function M4e(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?n:t.neg(n)}bt.FpSqrtOdd=M4e;function D4e(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n}bt.FpSqrtEven=D4e;function k4e(t,e,n=!1){t=(0,Ya.ensureBytes)("privateHash",t);const r=t.length,a=OB(e).nByteLength+8;if(a<24||r1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${r}`);const i=n?(0,Ya.bytesToNumberLE)(t):(0,Ya.bytesToNumberBE)(t);return Za(i,e-un)+un}bt.hashToPrivateScalar=k4e;function PB(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}bt.getFieldBytesLength=PB;function JV(t){const e=PB(t);return e+Math.ceil(e/2)}bt.getMinHashLength=JV;function I4e(t,e,n=!1){const r=t.length,a=PB(e),i=JV(e);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const s=n?(0,Ya.bytesToNumberBE)(t):(0,Ya.bytesToNumberLE)(t),o=Za(s,e-un)+un;return n?(0,Ya.numberToBytesLE)(o,a):(0,Ya.numberToBytesBE)(o,a)}bt.mapHashToField=I4e;var RB={},$p={};Object.defineProperty($p,"__esModule",{value:!0});$p.validateBasic=$p.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const jI=bt,O4e=dt,P4e=BigInt(0),H9=BigInt(1);function R4e(t,e){const n=(a,i)=>{const s=i.negate();return a?s:i},r=a=>{const i=Math.ceil(e/a)+1,s=2**(a-1);return{windows:i,windowSize:s}};return{constTimeNegate:n,unsafeLadder(a,i){let s=t.ZERO,o=a;for(;i>P4e;)i&H9&&(s=s.add(o)),o=o.double(),i>>=H9;return s},precomputeWindow(a,i){const{windows:s,windowSize:o}=r(i),c=[];let h=a,b=h;for(let v=0;v>=C,P>c&&(P-=E,s+=H9);const D=T,M=T+Math.abs(P)-1,O=F%2!==0,k=P<0;P===0?b=b.add(n(O,i[D])):h=h.add(n(k,i[M]))}return{p:h,f:b}},wNAFCached(a,i,s,o){const c=a._WINDOW_SIZE||1;let h=i.get(a);return h||(h=this.precomputeWindow(a,c),c!==1&&i.set(a,o(h))),this.wNAF(c,h,s)}}}$p.wNAF=R4e;function N4e(t){return(0,jI.validateField)(t.Fp),(0,O4e.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,jI.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}$p.validateBasic=N4e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=bt,n=dt,r=dt,a=$p;function i(M){const O=(0,a.validateBasic)(M);n.validateObject(O,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:k,Fp:U,a:V}=O;if(k){if(!U.eql(V,U.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof k!="object"||typeof k.beta!="bigint"||typeof k.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...O})}const{bytesToNumberBE:s,hexToBytes:o}=n;t.DER={Err:class extends Error{constructor(O=""){super(O)}},_parseInt(M){const{Err:O}=t.DER;if(M.length<2||M[0]!==2)throw new O("Invalid signature integer tag");const k=M[1],U=M.subarray(2,k+2);if(!k||U.length!==k)throw new O("Invalid signature integer: wrong length");if(U[0]&128)throw new O("Invalid signature integer: negative");if(U[0]===0&&!(U[1]&128))throw new O("Invalid signature integer: unnecessary leading zero");return{d:s(U),l:M.subarray(k+2)}},toSig(M){const{Err:O}=t.DER,k=typeof M=="string"?o(M):M;if(!n.isBytes(k))throw new Error("ui8a expected");let U=k.length;if(U<2||k[0]!=48)throw new O("Invalid signature tag");if(k[1]!==U-2)throw new O("Invalid signature: incorrect length");const{d:V,l:Y}=t.DER._parseInt(k.subarray(2)),{d:L,l:X}=t.DER._parseInt(Y);if(X.length)throw new O("Invalid signature: left bytes after parsing");return{r:V,s:L}},hexFromSig(M){const O=u=>Number.parseInt(u[0],16)&8?"00"+u:u,k=u=>{const d=u.toString(16);return d.length&1?`0${d}`:d},U=O(k(M.s)),V=O(k(M.r)),Y=U.length/2,L=V.length/2,X=k(Y),B=k(L);return`30${k(L+Y+4)}02${B}${V}02${X}${U}`}};const c=BigInt(0),h=BigInt(1),b=BigInt(2),v=BigInt(3),E=BigInt(4);function C(M){const O=i(M),{Fp:k}=O,U=O.toBytes||((g,w,x)=>{const f=w.toAffine();return n.concatBytes(Uint8Array.from([4]),k.toBytes(f.x),k.toBytes(f.y))}),V=O.fromBytes||(g=>{const w=g.subarray(1),x=k.fromBytes(w.subarray(0,k.BYTES)),f=k.fromBytes(w.subarray(k.BYTES,2*k.BYTES));return{x,y:f}});function Y(g){const{a:w,b:x}=O,f=k.sqr(g),m=k.mul(f,g);return k.add(k.add(m,k.mul(g,w)),x)}if(!k.eql(k.sqr(O.Gy),Y(O.Gx)))throw new Error("bad generator point: equation left != right");function L(g){return typeof g=="bigint"&&ck.eql(_,k.ZERO);return m(x)&&m(f)?p.ZERO:new p(x,f,k.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(w){const x=k.invertBatch(w.map(f=>f.pz));return w.map((f,m)=>f.toAffine(x[m])).map(p.fromAffine)}static fromHex(w){const x=p.fromAffine(V((0,r.ensureBytes)("pointHex",w)));return x.assertValidity(),x}static fromPrivateKey(w){return p.BASE.multiply(B(w))}_setWindowSize(w){this._WINDOW_SIZE=w,u.delete(this)}assertValidity(){if(this.is0()){if(O.allowInfinityPoint&&!k.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:w,y:x}=this.toAffine();if(!k.isValid(w)||!k.isValid(x))throw new Error("bad point: x or y not FE");const f=k.sqr(x),m=Y(w);if(!k.eql(f,m))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:w}=this.toAffine();if(k.isOdd)return!k.isOdd(w);throw new Error("Field doesn't support isOdd")}equals(w){d(w);const{px:x,py:f,pz:m}=this,{px:_,py:A,pz:S}=w,$=k.eql(k.mul(x,S),k.mul(_,m)),q=k.eql(k.mul(f,S),k.mul(A,m));return $&&q}negate(){return new p(this.px,k.neg(this.py),this.pz)}double(){const{a:w,b:x}=O,f=k.mul(x,v),{px:m,py:_,pz:A}=this;let S=k.ZERO,$=k.ZERO,q=k.ZERO,I=k.mul(m,m),K=k.mul(_,_),z=k.mul(A,A),Q=k.mul(m,_);return Q=k.add(Q,Q),q=k.mul(m,A),q=k.add(q,q),S=k.mul(w,q),$=k.mul(f,z),$=k.add(S,$),S=k.sub(K,$),$=k.add(K,$),$=k.mul(S,$),S=k.mul(Q,S),q=k.mul(f,q),z=k.mul(w,z),Q=k.sub(I,z),Q=k.mul(w,Q),Q=k.add(Q,q),q=k.add(I,I),I=k.add(q,I),I=k.add(I,z),I=k.mul(I,Q),$=k.add($,I),z=k.mul(_,A),z=k.add(z,z),I=k.mul(z,Q),S=k.sub(S,I),q=k.mul(z,K),q=k.add(q,q),q=k.add(q,q),new p(S,$,q)}add(w){d(w);const{px:x,py:f,pz:m}=this,{px:_,py:A,pz:S}=w;let $=k.ZERO,q=k.ZERO,I=k.ZERO;const K=O.a,z=k.mul(O.b,v);let Q=k.mul(x,_),ue=k.mul(f,A),fe=k.mul(m,S),G=k.add(x,f),j=k.add(_,A);G=k.mul(G,j),j=k.add(Q,ue),G=k.sub(G,j),j=k.add(x,m);let ne=k.add(_,S);return j=k.mul(j,ne),ne=k.add(Q,fe),j=k.sub(j,ne),ne=k.add(f,m),$=k.add(A,S),ne=k.mul(ne,$),$=k.add(ue,fe),ne=k.sub(ne,$),I=k.mul(K,j),$=k.mul(z,fe),I=k.add($,I),$=k.sub(ue,I),I=k.add(ue,I),q=k.mul($,I),ue=k.add(Q,Q),ue=k.add(ue,Q),fe=k.mul(K,fe),j=k.mul(z,j),ue=k.add(ue,fe),fe=k.sub(Q,fe),fe=k.mul(K,fe),j=k.add(j,fe),Q=k.mul(ue,j),q=k.add(q,Q),Q=k.mul(ne,j),$=k.mul(G,$),$=k.sub($,Q),Q=k.mul(G,ue),I=k.mul(ne,I),I=k.add(I,Q),new p($,q,I)}subtract(w){return this.add(w.negate())}is0(){return this.equals(p.ZERO)}wNAF(w){return y.wNAFCached(this,u,w,x=>{const f=k.invertBatch(x.map(m=>m.pz));return x.map((m,_)=>m.toAffine(f[_])).map(p.fromAffine)})}multiplyUnsafe(w){const x=p.ZERO;if(w===c)return x;if(X(w),w===h)return this;const{endo:f}=O;if(!f)return y.unsafeLadder(this,w);let{k1neg:m,k1:_,k2neg:A,k2:S}=f.splitScalar(w),$=x,q=x,I=this;for(;_>c||S>c;)_&h&&($=$.add(I)),S&h&&(q=q.add(I)),I=I.double(),_>>=h,S>>=h;return m&&($=$.negate()),A&&(q=q.negate()),q=new p(k.mul(q.px,f.beta),q.py,q.pz),$.add(q)}multiply(w){X(w);let x=w,f,m;const{endo:_}=O;if(_){const{k1neg:A,k1:S,k2neg:$,k2:q}=_.splitScalar(x);let{p:I,f:K}=this.wNAF(S),{p:z,f:Q}=this.wNAF(q);I=y.constTimeNegate(A,I),z=y.constTimeNegate($,z),z=new p(k.mul(z.px,_.beta),z.py,z.pz),f=I.add(z),m=K.add(Q)}else{const{p:A,f:S}=this.wNAF(x);f=A,m=S}return p.normalizeZ([f,m])[0]}multiplyAndAddUnsafe(w,x,f){const m=p.BASE,_=(S,$)=>$===c||$===h||!S.equals(m)?S.multiplyUnsafe($):S.multiply($),A=_(this,x).add(_(w,f));return A.is0()?void 0:A}toAffine(w){const{px:x,py:f,pz:m}=this,_=this.is0();w==null&&(w=_?k.ONE:k.inv(m));const A=k.mul(x,w),S=k.mul(f,w),$=k.mul(m,w);if(_)return{x:k.ZERO,y:k.ZERO};if(!k.eql($,k.ONE))throw new Error("invZ was invalid");return{x:A,y:S}}isTorsionFree(){const{h:w,isTorsionFree:x}=O;if(w===h)return!0;if(x)return x(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:w,clearCofactor:x}=O;return w===h?this:x?x(p,this):this.multiplyUnsafe(O.h)}toRawBytes(w=!0){return this.assertValidity(),U(p,this,w)}toHex(w=!0){return n.bytesToHex(this.toRawBytes(w))}}p.BASE=new p(O.Gx,O.Gy,k.ONE),p.ZERO=new p(k.ZERO,k.ONE,k.ZERO);const l=O.nBitLength,y=(0,a.wNAF)(p,O.endo?Math.ceil(l/2):l);return{CURVE:O,ProjectivePoint:p,normPrivateKeyToScalar:B,weierstrassEquation:Y,isWithinCurveOrder:L}}t.weierstrassPoints=C;function F(M){const O=(0,a.validateBasic)(M);return n.validateObject(O,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...O})}function T(M){const O=F(M),{Fp:k,n:U}=O,V=k.BYTES+1,Y=2*k.BYTES+1;function L(j){return cn.bytesToHex(n.numberToBytesBE(j,O.nByteLength));function g(j){const ne=U>>h;return j>ne}function w(j){return g(j)?X(-j):j}const x=(j,ne,se)=>n.bytesToNumberBE(j.slice(ne,se));class f{constructor(ne,se,J){this.r=ne,this.s=se,this.recovery=J,this.assertValidity()}static fromCompact(ne){const se=O.nByteLength;return ne=(0,r.ensureBytes)("compactSignature",ne,se*2),new f(x(ne,0,se),x(ne,se,2*se))}static fromDER(ne){const{r:se,s:J}=t.DER.toSig((0,r.ensureBytes)("DER",ne));return new f(se,J)}assertValidity(){if(!l(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!l(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ne){return new f(this.r,this.s,ne)}recoverPublicKey(ne){const{r:se,s:J,recovery:R}=this,N=q((0,r.ensureBytes)("msgHash",ne));if(R==null||![0,1,2,3].includes(R))throw new Error("recovery id invalid");const Z=R===2||R===3?se+O.n:se;if(Z>=k.ORDER)throw new Error("recovery id 2 or 3 invalid");const ae=R&1?"03":"02",pe=u.fromHex(ae+y(Z)),W=B(Z),ee=X(-N*W),ie=X(J*W),me=u.BASE.multiplyAndAddUnsafe(pe,ee,ie);if(!me)throw new Error("point at infinify");return me.assertValidity(),me}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new f(this.r,X(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return y(this.r)+y(this.s)}}const m={isValidPrivateKey(j){try{return d(j),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const j=e.getMinHashLength(O.n);return e.mapHashToField(O.randomBytes(j),O.n)},precompute(j=8,ne=u.BASE){return ne._setWindowSize(j),ne.multiply(BigInt(3)),ne}};function _(j,ne=!0){return u.fromPrivateKey(j).toRawBytes(ne)}function A(j){const ne=n.isBytes(j),se=typeof j=="string",J=(ne||se)&&j.length;return ne?J===V||J===Y:se?J===2*V||J===2*Y:j instanceof u}function S(j,ne,se=!0){if(A(j))throw new Error("first arg must be private key");if(!A(ne))throw new Error("second arg must be public key");return u.fromHex(ne).multiply(d(j)).toRawBytes(se)}const $=O.bits2int||function(j){const ne=n.bytesToNumberBE(j),se=j.length*8-O.nBitLength;return se>0?ne>>BigInt(se):ne},q=O.bits2int_modN||function(j){return X($(j))},I=n.bitMask(O.nBitLength);function K(j){if(typeof j!="bigint")throw new Error("bigint expected");if(!(c<=j&&jye in se))throw new Error("sign() legacy options not supported");const{hash:J,randomBytes:R}=O;let{lowS:N,prehash:Z,extraEntropy:ae}=se;N==null&&(N=!0),j=(0,r.ensureBytes)("msgHash",j),Z&&(j=(0,r.ensureBytes)("prehashed msgHash",J(j)));const pe=q(j),W=d(ne),ee=[K(W),K(pe)];if(ae!=null){const ye=ae===!0?R(k.BYTES):ae;ee.push((0,r.ensureBytes)("extraEntropy",ye))}const ie=n.concatBytes(...ee),me=pe;function be(ye){const Fe=$(ye);if(!l(Fe))return;const Se=B(Fe),Ee=u.BASE.multiply(Fe).toAffine(),Qe=X(Ee.x);if(Qe===c)return;const $e=X(Se*X(me+Qe*W));if($e===c)return;let Oe=(Ee.x===Qe?0:2)|Number(Ee.y&h),at=$e;return N&&g($e)&&(at=w($e),Oe^=1),new f(Qe,at,Oe)}return{seed:ie,k2sig:be}}const Q={lowS:O.lowS,prehash:!1},ue={lowS:O.lowS,prehash:!1};function fe(j,ne,se=Q){const{seed:J,k2sig:R}=z(j,ne,se),N=O;return n.createHmacDrbg(N.hash.outputLen,N.nByteLength,N.hmac)(J,R)}u.BASE._setWindowSize(8);function G(j,ne,se,J=ue){var Ee;const R=j;if(ne=(0,r.ensureBytes)("msgHash",ne),se=(0,r.ensureBytes)("publicKey",se),"strict"in J)throw new Error("options.strict was renamed to lowS");const{lowS:N,prehash:Z}=J;let ae,pe;try{if(typeof R=="string"||n.isBytes(R))try{ae=f.fromDER(R)}catch(Qe){if(!(Qe instanceof t.DER.Err))throw Qe;ae=f.fromCompact(R)}else if(typeof R=="object"&&typeof R.r=="bigint"&&typeof R.s=="bigint"){const{r:Qe,s:$e}=R;ae=new f(Qe,$e)}else throw new Error("PARSE");pe=u.fromHex(se)}catch(Qe){if(Qe.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(N&&ae.hasHighS())return!1;Z&&(ne=O.hash(ne));const{r:W,s:ee}=ae,ie=q(ne),me=B(ee),be=X(ie*me),ye=X(W*me),Fe=(Ee=u.BASE.multiplyAndAddUnsafe(pe,be,ye))==null?void 0:Ee.toAffine();return Fe?X(Fe.x)===W:!1}return{CURVE:O,getPublicKey:_,getSharedSecret:S,sign:fe,verify:G,ProjectivePoint:u,Signature:f,utils:m}}t.weierstrass=T;function P(M,O){const k=M.ORDER;let U=c;for(let g=k-h;g%b===c;g/=b)U+=h;const V=U,Y=b<{let x=p,f=M.pow(w,u),m=M.sqr(f);m=M.mul(m,w);let _=M.mul(g,m);_=M.pow(_,B),_=M.mul(_,f),f=M.mul(_,w),m=M.mul(_,g);let A=M.mul(m,f);_=M.pow(A,d);let S=M.eql(_,M.ONE);f=M.mul(m,l),_=M.mul(A,x),m=M.cmov(f,m,S),A=M.cmov(_,A,S);for(let $=V;$>h;$--){let q=$-b;q=b<{let m=M.sqr(f);const _=M.mul(x,f);m=M.mul(m,_);let A=M.pow(m,g);A=M.mul(A,_);const S=M.mul(A,w),$=M.mul(M.sqr(A),f),q=M.eql($,x);let I=M.cmov(S,A,q);return{isValid:q,value:I}}}return y}t.SWUFpSqrtRatio=P;function D(M,O){if(e.validateField(M),!M.isValid(O.A)||!M.isValid(O.B)||!M.isValid(O.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const k=P(M,O.Z);if(!M.isOdd)throw new Error("Fp.isOdd is not implemented!");return U=>{let V,Y,L,X,B,u,d,p;V=M.sqr(U),V=M.mul(V,O.Z),Y=M.sqr(V),Y=M.add(Y,V),L=M.add(Y,M.ONE),L=M.mul(L,O.B),X=M.cmov(O.Z,M.neg(Y),!M.eql(Y,M.ZERO)),X=M.mul(X,O.A),Y=M.sqr(L),u=M.sqr(X),B=M.mul(u,O.A),Y=M.add(Y,B),Y=M.mul(Y,L),u=M.mul(u,X),B=M.mul(u,O.B),Y=M.add(Y,B),d=M.mul(V,L);const{isValid:l,value:y}=k(Y,u);p=M.mul(V,U),p=M.mul(p,y),d=M.cmov(d,L,l),p=M.cmov(p,y,l);const g=M.isOdd(U)===M.isOdd(p);return p=M.cmov(M.neg(p),p,g),d=M.div(d,X),{x:d,y:p}}}t.mapToCurveSimpleSWU=D})(RB);var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0});Ri.createHasher=Ri.isogenyMap=Ri.hash_to_field=Ri.expand_message_xof=Ri.expand_message_xmd=void 0;const $4e=bt,Qa=dt;function L4e(t){if((0,Qa.isBytes)(t))return t;if(typeof t=="string")return(0,Qa.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}const U4e=Qa.bytesToNumberBE;function vl(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=t&255,t>>>=8;return new Uint8Array(n)}function j4e(t,e){const n=new Uint8Array(t.length);for(let r=0;r255&&(e=r((0,Qa.concatBytes)((0,Qa.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:a,blockLen:i}=r,s=Math.ceil(n/a);if(s>255)throw new Error("Invalid xmd length");const o=(0,Qa.concatBytes)(e,vl(e.length,1)),c=vl(0,i),h=vl(n,2),b=new Array(s),v=r((0,Qa.concatBytes)(c,t,h,vl(0,1),o));b[0]=r((0,Qa.concatBytes)(v,vl(1,1),o));for(let C=1;C<=s;C++){const F=[j4e(v,b[C-1]),vl(C+1,1),o];b[C]=r((0,Qa.concatBytes)(...F))}return(0,Qa.concatBytes)(...b).slice(0,n)}Ri.expand_message_xmd=YV;function eq(t,e,n,r,a){if(Vm(t),Vm(e),NB(n),e.length>255){const i=Math.ceil(2*r/8);e=a.create({dkLen:i}).update((0,Qa.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:n}).update(t).update(vl(n,2)).update(e).update(vl(e.length,1)).digest()}Ri.expand_message_xof=eq;function mE(t,e,n){(0,Qa.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:r,k:a,m:i,hash:s,expand:o,DST:c}=n;Vm(t),NB(e);const h=L4e(c),b=r.toString(2).length,v=Math.ceil((b+a)/8),E=e*i*v;let C;if(o==="xmd")C=YV(t,h,E,s);else if(o==="xof")C=eq(t,h,E,a,s);else if(o==="_internal_pass")C=t;else throw new Error('expand must be "xmd" or "xof"');const F=new Array(e);for(let T=0;TArray.from(r).reverse());return(r,a)=>{const[i,s,o,c]=n.map(h=>h.reduce((b,v)=>t.add(t.mul(b,r),v)));return r=t.div(i,s),a=t.mul(a,t.div(o,c)),{x:r,y:a}}}Ri.isogenyMap=H4e;function z4e(t,e,n){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(r,a){const i=mE(r,2,{...n,DST:n.DST,...a}),s=t.fromAffine(e(i[0])),o=t.fromAffine(e(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,a){const i=mE(r,1,{...n,DST:n.encodeDST,...a}),s=t.fromAffine(e(i[0])).clearCofactor();return s.assertValidity(),s}}}Ri.createHasher=z4e;var Lp={},tq={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const e=gr,n=jc;class r extends n.Hash{constructor(s,o){super(),this.finished=!1,this.destroyed=!1,(0,e.hash)(s);const c=(0,n.toBytes)(o);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,b=new Uint8Array(h);b.set(c.length>h?s.create().update(c).digest():c);for(let v=0;vnew r(i,s).update(o).digest();t.hmac=a,t.hmac.create=(i,s)=>new r(i,s)})(tq);Object.defineProperty(Lp,"__esModule",{value:!0});Lp.createCurve=Lp.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const G4e=tq,HI=jc,V4e=RB;function nq(t){return{hash:t,hmac:(e,...n)=>(0,G4e.hmac)(t,e,(0,HI.concatBytes)(...n)),randomBytes:HI.randomBytes}}Lp.getHash=nq;function q4e(t,e){const n=r=>(0,V4e.weierstrass)({...t,...nq(r)});return Object.freeze({...n(e),create:n})}Lp.createCurve=q4e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Np,n=jc,r=bt,a=RB,i=dt,s=Ri,o=Lp,c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),b=BigInt(1),v=BigInt(2),E=(f,m)=>(f+m/v)/m;function C(f){const m=c,_=BigInt(3),A=BigInt(6),S=BigInt(11),$=BigInt(22),q=BigInt(23),I=BigInt(44),K=BigInt(88),z=f*f*f%m,Q=z*z*f%m,ue=(0,r.pow2)(Q,_,m)*Q%m,fe=(0,r.pow2)(ue,_,m)*Q%m,G=(0,r.pow2)(fe,v,m)*z%m,j=(0,r.pow2)(G,S,m)*G%m,ne=(0,r.pow2)(j,$,m)*j%m,se=(0,r.pow2)(ne,I,m)*ne%m,J=(0,r.pow2)(se,K,m)*se%m,R=(0,r.pow2)(J,I,m)*ne%m,N=(0,r.pow2)(R,_,m)*Q%m,Z=(0,r.pow2)(N,q,m)*j%m,ae=(0,r.pow2)(Z,A,m)*z%m,pe=(0,r.pow2)(ae,v,m);if(!F.eql(F.sqr(pe),f))throw new Error("Cannot find square root");return pe}const F=(0,r.Field)(c,void 0,void 0,{sqrt:C});t.secp256k1=(0,o.createCurve)({a:BigInt(0),b:BigInt(7),Fp:F,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:f=>{const m=h,_=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),A=-b*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),S=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$=_,q=BigInt("0x100000000000000000000000000000000"),I=E($*f,m),K=E(-A*f,m);let z=(0,r.mod)(f-I*_-K*S,m),Q=(0,r.mod)(-I*A-K*$,m);const ue=z>q,fe=Q>q;if(ue&&(z=m-z),fe&&(Q=m-Q),z>q||Q>q)throw new Error("splitScalar: Endomorphism failed, k="+f);return{k1neg:ue,k1:z,k2neg:fe,k2:Q}}}},e.sha256);const T=BigInt(0),P=f=>typeof f=="bigint"&&Ttypeof f=="bigint"&&TS.charCodeAt(0)));_=(0,i.concatBytes)(A,A),M[f]=_}return(0,e.sha256)((0,i.concatBytes)(_,...m))}const k=f=>f.toRawBytes(!0).slice(1),U=f=>(0,i.numberToBytesBE)(f,32),V=f=>(0,r.mod)(f,c),Y=f=>(0,r.mod)(f,h),L=t.secp256k1.ProjectivePoint,X=(f,m,_)=>L.BASE.multiplyAndAddUnsafe(f,m,_);function B(f){let m=t.secp256k1.utils.normPrivateKeyToScalar(f),_=L.fromPrivateKey(m);return{scalar:_.hasEvenY()?m:Y(-m),bytes:k(_)}}function u(f){if(!P(f))throw new Error("bad x: need 0 < x < p");const m=V(f*f),_=V(m*f+BigInt(7));let A=C(_);A%v!==T&&(A=V(-A));const S=new L(f,A,b);return S.assertValidity(),S}function d(...f){return Y((0,i.bytesToNumberBE)(O("BIP0340/challenge",...f)))}function p(f){return B(f).bytes}function l(f,m,_=(0,n.randomBytes)(32)){const A=(0,i.ensureBytes)("message",f),{bytes:S,scalar:$}=B(m),q=(0,i.ensureBytes)("auxRand",_,32),I=U($^(0,i.bytesToNumberBE)(O("BIP0340/aux",q))),K=O("BIP0340/nonce",I,S,A),z=Y((0,i.bytesToNumberBE)(K));if(z===T)throw new Error("sign failed: k is zero");const{bytes:Q,scalar:ue}=B(z),fe=d(Q,S,A),G=new Uint8Array(64);if(G.set(Q,0),G.set(U(Y(ue+fe*$)),32),!y(G,A,S))throw new Error("sign: Invalid signature produced");return G}function y(f,m,_){const A=(0,i.ensureBytes)("signature",f,64),S=(0,i.ensureBytes)("message",m),$=(0,i.ensureBytes)("publicKey",_,32);try{const q=u((0,i.bytesToNumberBE)($)),I=(0,i.bytesToNumberBE)(A.subarray(0,32));if(!P(I))return!1;const K=(0,i.bytesToNumberBE)(A.subarray(32,64));if(!D(K))return!1;const z=d(U(I),k(q),S),Q=X(q,K,Y(-z));return!(!Q||!Q.hasEvenY()||Q.toAffine().x!==I)}catch{return!1}}t.schnorr={getPublicKey:p,sign:l,verify:y,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:u,pointToBytes:k,numberToBytesBE:i.numberToBytesBE,bytesToNumberBE:i.bytesToNumberBE,taggedHash:O,mod:r.mod}};const g=(0,s.isogenyMap)(F,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(f=>f.map(m=>BigInt(m)))),w=(0,a.mapToCurveSimpleSWU)(F,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:F.create(BigInt("-11"))}),x=(0,s.createHasher)(t.secp256k1.ProjectivePoint,f=>{const{x:m,y:_}=w(F.create(f[0]));return g(m,_)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:F.ORDER,m:1,k:128,expand:"xmd",hash:e.sha256});t.hashToCurve=x.hashToCurve,t.encodeToCurve=x.encodeToCurve})(NV);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var e=NV;Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return e.secp256k1}})})(w4);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;const e=Xc,n=w4;t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=n.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=n.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=e.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16})(v4);var B4={};Object.defineProperty(B4,"__esModule",{value:!0});B4.GWEI_TO_WEI=void 0;B4.GWEI_TO_WEI=BigInt(1e9);var $B={},bo={};Object.defineProperty(bo,"__esModule",{value:!0});bo.RLP=bo.utils=bo.decode=bo.encode=void 0;function LB(t){if(Array.isArray(t)){const n=[];let r=0;for(let a=0;at.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,n)}function zI(t){if(t[0]===0)throw new Error("invalid RLP: extra zeros");return iq(aq(t))}function GI(t,e){if(t<56)return Uint8Array.from([t+e]);const n=xE(t),r=n.length/2,a=xE(e+55+r);return Uint8Array.from(zg(a+n))}function rq(t,e=!1){if(typeof t>"u"||t===null||t.length===0)return Uint8Array.from([]);const n=cq(t),r=bE(n);if(e)return r;if(r.remainder.length!==0)throw new Error("invalid RLP: remainder must be zero");return r.data}bo.decode=rq;function bE(t){let e,n,r,a,i;const s=[],o=t[0];if(o<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(o<=183){if(e=o-127,o===128?r=Uint8Array.from([]):r=o0(t,1,e),e===2&&r[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:r,remainder:t.slice(e)}}else if(o<=191){if(n=o-182,t.length-1t.length)throw new Error("invalid RLP: total length is larger than the data");for(a=o0(t,n,c);a.length;)i=bE(a),s.push(i.data),a=i.remainder;return{data:s,remainder:t.slice(c)}}}const W4e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function aq(t){let e="";for(let n=0;nr+a.length,0),n=new Uint8Array(e);for(let r=0,a=0;r=2&&t[0]==="0"&&t[1]==="x"}function Z4e(t){return typeof t!="string"?t:oq(t)?t.slice(2):t}function cq(t){if(t instanceof Uint8Array)return t;if(typeof t=="string")return oq(t)?zg(K4e(Z4e(t))):sq(t);if(typeof t=="number"||typeof t=="bigint")return t?zg(xE(t)):Uint8Array.from([]);if(t==null)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}bo.utils={bytesToHex:aq,concatBytes:gE,hexToBytes:zg,utf8ToBytes:sq};bo.RLP={encode:LB,decode:rq};var Li={},cn={},ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.add5L=ft.add5H=ft.add4H=ft.add4L=ft.add3H=ft.add3L=ft.add=ft.rotlBL=ft.rotlBH=ft.rotlSL=ft.rotlSH=ft.rotr32L=ft.rotr32H=ft.rotrBL=ft.rotrBH=ft.rotrSL=ft.rotrSH=ft.shrSL=ft.shrSH=ft.toBig=ft.split=ft.fromBig=void 0;const w3=BigInt(2**32-1),vE=BigInt(32);function UB(t,e=!1){return e?{h:Number(t&w3),l:Number(t>>vE&w3)}:{h:Number(t>>vE&w3)|0,l:Number(t&w3)|0}}ft.fromBig=UB;function lq(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0);ft.toBig=uq;const fq=(t,e,n)=>t>>>n;ft.shrSH=fq;const dq=(t,e,n)=>t<<32-n|e>>>n;ft.shrSL=dq;const hq=(t,e,n)=>t>>>n|e<<32-n;ft.rotrSH=hq;const pq=(t,e,n)=>t<<32-n|e>>>n;ft.rotrSL=pq;const yq=(t,e,n)=>t<<64-n|e>>>n-32;ft.rotrBH=yq;const mq=(t,e,n)=>t>>>n-32|e<<64-n;ft.rotrBL=mq;const bq=(t,e)=>e;ft.rotr32H=bq;const gq=(t,e)=>t;ft.rotr32L=gq;const xq=(t,e,n)=>t<>>32-n;ft.rotlSH=xq;const vq=(t,e,n)=>e<>>32-n;ft.rotlSL=vq;const wq=(t,e,n)=>e<>>64-n;ft.rotlBH=wq;const Eq=(t,e,n)=>t<>>64-n;ft.rotlBL=Eq;function Aq(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:a|0}}ft.add=Aq;const _q=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);ft.add3L=_q;const Cq=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;ft.add3H=Cq;const Bq=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);ft.add4L=Bq;const Sq=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0;ft.add4H=Sq;const Tq=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0);ft.add5L=Tq;const Fq=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0;ft.add5H=Fq;const Q4e={fromBig:UB,split:lq,toBig:uq,shrSH:fq,shrSL:dq,rotrSH:hq,rotrSL:pq,rotrBH:yq,rotrBL:mq,rotr32H:bq,rotr32L:gq,rotlSH:xq,rotlSL:vq,rotlBH:wq,rotlBL:Eq,add:Aq,add3L:_q,add3H:Cq,add4L:Bq,add4H:Sq,add5H:Fq,add5L:Tq};ft.default=Q4e;Object.defineProperty(cn,"__esModule",{value:!0});cn.shake256=cn.shake128=cn.keccak_512=cn.keccak_384=cn.keccak_256=cn.keccak_224=cn.sha3_512=cn.sha3_384=cn.sha3_256=cn.sha3_224=cn.Keccak=cn.keccakP=void 0;const c0=gr,qm=ft,rm=jc,[Mq,Dq,kq]=[[],[],[]],X4e=BigInt(0),ay=BigInt(1),J4e=BigInt(2),Y4e=BigInt(7),e5e=BigInt(256),t5e=BigInt(113);for(let t=0,e=ay,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],Mq.push(2*(5*r+n)),Dq.push((t+1)*(t+2)/2%64);let a=X4e;for(let i=0;i<7;i++)e=(e<>Y4e)*t5e)%e5e,e&J4e&&(a^=ay<<(ay<n>32?(0,qm.rotlBH)(t,e,n):(0,qm.rotlSH)(t,e,n),qI=(t,e,n)=>n>32?(0,qm.rotlBL)(t,e,n):(0,qm.rotlSL)(t,e,n);function Iq(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,h=n[c],b=n[c+1],v=VI(h,b,1)^n[o],E=qI(h,b,1)^n[o+1];for(let C=0;C<50;C+=10)t[s+C]^=v,t[s+C+1]^=E}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=Dq[s],c=VI(a,i,o),h=qI(a,i,o),b=Mq[s];a=t[b],i=t[b+1],t[b]=c,t[b+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)n[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=n5e[r],t[1]^=r5e[r]}n.fill(0)}cn.keccakP=Iq;class d2 extends rm.Hash{constructor(e,n,r,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,c0.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,rm.u32)(this.state)}keccak(){Iq(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,c0.exists)(this);const{blockLen:n,state:r}=this;e=(0,rm.toBytes)(e);const a=e.length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-a);e.set(n.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,c0.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,c0.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new d2(n,r,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}}cn.Keccak=d2;const ku=(t,e,n)=>(0,rm.wrapConstructor)(()=>new d2(e,t,n));cn.sha3_224=ku(6,144,224/8);cn.sha3_256=ku(6,136,256/8);cn.sha3_384=ku(6,104,384/8);cn.sha3_512=ku(6,72,512/8);cn.keccak_224=ku(1,144,224/8);cn.keccak_256=ku(1,136,256/8);cn.keccak_384=ku(1,104,384/8);cn.keccak_512=ku(1,72,512/8);const Oq=(t,e,n)=>(0,rm.wrapXOFConstructorWithOpts)((r={})=>new d2(e,t,r.dkLen===void 0?n:r.dkLen,!0));cn.shake128=Oq(31,168,128/8);cn.shake256=Oq(31,136,256/8);var Gg={exports:{}};Gg.exports;(function(t,e){var n=he&&he.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;const r=n(gr),a=jc,i=r.default.bool;e.assertBool=i;const s=r.default.bytes;e.assertBytes=s;var o=jc;Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return o.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return o.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return o.utf8ToBytes}});function c(E){if(!(E instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof E}`);return new TextDecoder().decode(E)}e.bytesToUtf8=c;function h(E){const C=E.startsWith("0x")?E.substring(2):E;return(0,a.hexToBytes)(C)}e.hexToBytes=h;function b(E,C){if(E.length!==C.length)return!1;for(let F=0;F(r.default.bytes(C),E(C))}e.wrapHash=v,e.crypto=(()=>{const E=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,C=typeof Ug=="function"&&Ug.bind(t);return{node:C&&!E?C("crypto"):void 0,web:E}})()})(Gg,Gg.exports);var Pq=Gg.exports;Object.defineProperty(Li,"__esModule",{value:!0});Li.keccak512=Li.keccak384=Li.keccak256=Li.keccak224=void 0;const Wm=cn,S4=Pq;Li.keccak224=(0,S4.wrapHash)(Wm.keccak_224);Li.keccak256=(()=>{const t=(0,S4.wrapHash)(Wm.keccak_256);return t.create=Wm.keccak_256.create,t})();Li.keccak384=(0,S4.wrapHash)(Wm.keccak_384);Li.keccak512=(0,S4.wrapHash)(Wm.keccak_512);var Od={},Ui={},ln={};Object.defineProperty(ln,"__esModule",{value:!0});ln.isHexString=ln.getKeys=ln.fromAscii=ln.fromUtf8=ln.toAscii=ln.arrayContainsArray=ln.getBinarySize=ln.padToEven=ln.stripHexPrefix=ln.isHexPrefixed=void 0;function Rq(t){if(typeof t!="string")throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof t}`);return t[0]==="0"&&t[1]==="x"}ln.isHexPrefixed=Rq;const a5e=t=>{if(typeof t!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof t}`);return Rq(t)?t.slice(2):t};ln.stripHexPrefix=a5e;function Nq(t){let e=t;if(typeof e!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof e}`);return e.length%2&&(e=`0${e}`),e}ln.padToEven=Nq;function i5e(t){if(typeof t!="string")throw new Error(`[getBinarySize] method requires input type 'string', received ${typeof t}`);return Buffer.byteLength(t,"utf8")}ln.getBinarySize=i5e;function s5e(t,e,n){if(Array.isArray(t)!==!0)throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof t}'`);if(Array.isArray(e)!==!0)throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof e}'`);return e[n===!0?"some":"every"](r=>t.indexOf(r)>=0)}ln.arrayContainsArray=s5e;function o5e(t){let e="",n=0;const r=t.length;for(t.substring(0,2)==="0x"&&(n=2);n0&&t.length!==2+2*e)}ln.isHexString=f5e;Object.defineProperty(Ui,"__esModule",{value:!0});Ui.assertIsString=Ui.assertIsArray=Ui.assertIsBuffer=Ui.assertIsHexString=void 0;const d5e=ln,h5e=function(t){if(!(0,d5e.isHexString)(t)){const e=`This method only supports 0x-prefixed hex strings but input was: ${t}`;throw new Error(e)}};Ui.assertIsHexString=h5e;const p5e=function(t){if(!Buffer.isBuffer(t)){const e=`This method only supports Buffer but input was: ${t}`;throw new Error(e)}};Ui.assertIsBuffer=p5e;const y5e=function(t){if(!Array.isArray(t)){const e=`This method only supports number arrays but input was: ${t}`;throw new Error(e)}};Ui.assertIsArray=y5e;const m5e=function(t){if(typeof t!="string"){const e=`This method only supports strings but input was: ${t}`;throw new Error(e)}};Ui.assertIsString=m5e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;const e=Ui,n=ln,r=function(l){if(!Number.isSafeInteger(l)||l<0)throw new Error(`Received an invalid integer type: ${l}`);return`0x${l.toString(16)}`};t.intToHex=r;const a=function(l){const y=(0,t.intToHex)(l);return Buffer.from((0,n.padToEven)(y.slice(2)),"hex")};t.intToBuffer=a;const i=function(l){return Buffer.allocUnsafe(l).fill(0)};t.zeros=i;const s=function(l,y,g){const w=(0,t.zeros)(y);return g?l.length0&&y.toString()==="0";)l=l.slice(1),y=l[0];return l},b=function(l){return(0,e.assertIsBuffer)(l),h(l)};t.unpadBuffer=b;const v=function(l){return(0,e.assertIsArray)(l),h(l)};t.unpadArray=v;const E=function(l){return(0,e.assertIsHexString)(l),l=(0,n.stripHexPrefix)(l),"0x"+h(l)};t.unpadHexString=E;const C=function(l){if(l==null)return Buffer.allocUnsafe(0);if(Buffer.isBuffer(l)||Array.isArray(l)||l instanceof Uint8Array)return Buffer.from(l);if(typeof l=="string"){if(!(0,n.isHexString)(l))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${l}`);return Buffer.from((0,n.padToEven)((0,n.stripHexPrefix)(l)),"hex")}if(typeof l=="number")return(0,t.intToBuffer)(l);if(typeof l=="bigint"){if(l0&&g[0]===0)throw new Error(`${y} cannot have leading zeroes, received: ${g.toString("hex")}`)};t.validateNoLeadingZeroes=L;function X(l){return Array.isArray(l)?l.map(y=>X(y)):Buffer.from(l)}t.arrToBufArr=X;function B(l){return Array.isArray(l)?l.map(y=>B(y)):Uint8Array.from(l??[])}t.bufArrToArr=B;const u=l=>"0x"+l.toString(16);t.bigIntToHex=u;function d(l){return(0,t.unpadBuffer)(P(l))}t.bigIntToUnpaddedBuffer=d;function p(l){return(0,t.unpadBuffer)((0,t.intToBuffer)(l))}t.intToUnpaddedBuffer=p})(Od);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;const e=bo,n=Li,r=w4,a=Pq,i=Od,s=v4,o=Ui,c=ln,h=BigInt(0);class b{constructor(p=h,l=h,y=s.KECCAK256_RLP,g=s.KECCAK256_NULL){this.nonce=p,this.balance=l,this.storageRoot=y,this.codeHash=g,this._validate()}static fromAccountData(p){const{nonce:l,balance:y,storageRoot:g,codeHash:w}=p;return new b(l!==void 0?(0,i.bufferToBigInt)((0,i.toBuffer)(l)):void 0,y!==void 0?(0,i.bufferToBigInt)((0,i.toBuffer)(y)):void 0,g!==void 0?(0,i.toBuffer)(g):void 0,w!==void 0?(0,i.toBuffer)(w):void 0)}static fromRlpSerializedAccount(p){const l=(0,i.arrToBufArr)(e.RLP.decode(Uint8Array.from(p)));if(!Array.isArray(l))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(l)}static fromValuesArray(p){const[l,y,g,w]=p;return new b((0,i.bufferToBigInt)(l),(0,i.bufferToBigInt)(y),g,w)}_validate(){if(this.nonce=8?x+=l[f].toUpperCase():x+=l[f];return x};t.toChecksumAddress=E;const C=function(d,p){return(0,t.isValidAddress)(d)&&(0,t.toChecksumAddress)(d,p)===d};t.isValidChecksumAddress=C;const F=function(d,p){return(0,o.assertIsBuffer)(d),(0,o.assertIsBuffer)(p),(0,i.bufferToBigInt)(p)===BigInt(0)?Buffer.from((0,n.keccak256)(e.RLP.encode((0,i.bufArrToArr)([d,null])))).slice(-20):Buffer.from((0,n.keccak256)(e.RLP.encode((0,i.bufArrToArr)([d,p])))).slice(-20)};t.generateAddress=F;const T=function(d,p,l){if((0,o.assertIsBuffer)(d),(0,o.assertIsBuffer)(p),(0,o.assertIsBuffer)(l),d.length!==20)throw new Error("Expected from to be of length 20");if(p.length!==32)throw new Error("Expected salt to be of length 32");const y=(0,n.keccak256)(Buffer.concat([Buffer.from("ff","hex"),d,p,(0,n.keccak256)(l)]));return(0,i.toBuffer)(y).slice(-20)};t.generateAddress2=T;const P=function(d){return r.secp256k1.utils.isValidPrivateKey(d)};t.isValidPrivate=P;const D=function(d,p=!1){if((0,o.assertIsBuffer)(d),d.length===64)try{return r.secp256k1.ProjectivePoint.fromHex(Buffer.concat([Buffer.from([4]),d])),!0}catch{return!1}if(!p)return!1;try{return r.secp256k1.ProjectivePoint.fromHex(d),!0}catch{return!1}};t.isValidPublic=D;const M=function(d,p=!1){if((0,o.assertIsBuffer)(d),p&&d.length!==64&&(d=Buffer.from(r.secp256k1.ProjectivePoint.fromHex(d).toRawBytes(!1).slice(1))),d.length!==64)throw new Error("Expected pubKey to be of length 64");return Buffer.from((0,n.keccak256)(d)).slice(-20)};t.pubToAddress=M,t.publicToAddress=t.pubToAddress;const O=function(d){return(0,o.assertIsBuffer)(d),Buffer.from(r.secp256k1.ProjectivePoint.fromPrivateKey(d).toRawBytes(!1).slice(1))};t.privateToPublic=O;const k=function(d){return(0,t.publicToAddress)((0,t.privateToPublic)(d))};t.privateToAddress=k;const U=function(d){return(0,o.assertIsBuffer)(d),d.length!==64&&(d=Buffer.from(r.secp256k1.ProjectivePoint.fromHex(d).toRawBytes(!1).slice(1))),d};t.importPublic=U;const V=function(){const p=(0,i.zeros)(20);return(0,i.bufferToHex)(p)};t.zeroAddress=V;const Y=function(d){try{(0,o.assertIsString)(d)}catch{return!1}return(0,t.zeroAddress)()===d};t.isZeroAddress=Y;function L(d){const[p,l,y,g]=d;return[p,l,(0,i.arrToBufArr)(y).length===0?s.KECCAK256_RLP:y,(0,i.arrToBufArr)(g).length===0?s.KECCAK256_NULL:g]}t.accountBodyFromSlim=L;const X=new Uint8Array(0);function B(d){const[p,l,y,g]=d;return[p,l,(0,i.arrToBufArr)(y).equals(s.KECCAK256_RLP)?X:y,(0,i.arrToBufArr)(g).equals(s.KECCAK256_NULL)?X:g]}t.accountBodyToSlim=B;function u(d,p=!0){const l=p?L(d):d;return(0,i.arrToBufArr)(e.RLP.encode(l))}t.accountBodyToRLP=u})($B);var h2={};Object.defineProperty(h2,"__esModule",{value:!0});h2.Address=void 0;const iy=$B,E3=Od;class Zo{constructor(e){if(e.length!==20)throw new Error("Invalid address length");this.buf=e}static zero(){return new Zo((0,E3.zeros)(20))}static fromString(e){if(!(0,iy.isValidAddress)(e))throw new Error("Invalid address");return new Zo((0,E3.toBuffer)(e))}static fromPublicKey(e){if(!Buffer.isBuffer(e))throw new Error("Public key should be Buffer");const n=(0,iy.pubToAddress)(e);return new Zo(n)}static fromPrivateKey(e){if(!Buffer.isBuffer(e))throw new Error("Private key should be Buffer");const n=(0,iy.privateToAddress)(e);return new Zo(n)}static generate(e,n){if(typeof n!="bigint")throw new Error("Expected nonce to be a bigint");return new Zo((0,iy.generateAddress)(e.buf,(0,E3.bigIntToBuffer)(n)))}static generate2(e,n,r){if(!Buffer.isBuffer(n))throw new Error("Expected salt to be a Buffer");if(!Buffer.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new Zo((0,iy.generateAddress2)(e.buf,n,r))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(Zo.zero())}isPrecompileOrSystemAddress(){const e=(0,E3.bufferToBigInt)(this.buf),n=BigInt(0),r=BigInt("0xffff");return e>=n&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return Buffer.from(this.buf)}}h2.Address=Zo;var T4={},jB={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;const e=Od,n=ln;var r;(function(i){i[i.Number=0]="Number",i[i.BigInt=1]="BigInt",i[i.Buffer=2]="Buffer",i[i.PrefixedHexString=3]="PrefixedHexString"})(r=t.TypeOutput||(t.TypeOutput={}));function a(i,s){if(i===null)return null;if(i===void 0)return;if(typeof i=="string"&&!(0,n.isHexString)(i))throw new Error(`A string must be provided with a 0x-prefix, given: ${i}`);if(typeof i=="number"&&!Number.isSafeInteger(i))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const o=(0,e.toBuffer)(i);switch(s){case r.Buffer:return o;case r.BigInt:return(0,e.bufferToBigInt)(o);case r.Number:{const c=(0,e.bufferToBigInt)(o);if(c>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(c)}case r.PrefixedHexString:return(0,e.bufferToHex)(o);default:throw new Error("unknown outputType")}}t.toType=a})(jB);Object.defineProperty(T4,"__esModule",{value:!0});T4.Withdrawal=void 0;const WI=h2,z9=Od,Bn=jB;class am{constructor(e,n,r,a){this.index=e,this.validatorIndex=n,this.address=r,this.amount=a}static fromWithdrawalData(e){const{index:n,validatorIndex:r,address:a,amount:i}=e,s=(0,Bn.toType)(n,Bn.TypeOutput.BigInt),o=(0,Bn.toType)(r,Bn.TypeOutput.BigInt),c=new WI.Address((0,Bn.toType)(a,Bn.TypeOutput.Buffer)),h=(0,Bn.toType)(i,Bn.TypeOutput.BigInt);return new am(s,o,c,h)}static fromValuesArray(e){if(e.length!==4)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[n,r,a,i]=e;return am.fromWithdrawalData({index:n,validatorIndex:r,address:a,amount:i})}static toBufferArray(e){const{index:n,validatorIndex:r,address:a,amount:i}=e,s=(0,Bn.toType)(n,Bn.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,Bn.toType)(n,Bn.TypeOutput.Buffer),o=(0,Bn.toType)(r,Bn.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,Bn.toType)(r,Bn.TypeOutput.Buffer);let c;a instanceof WI.Address?c=a.buf:c=(0,Bn.toType)(a,Bn.TypeOutput.Buffer);const h=(0,Bn.toType)(i,Bn.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,Bn.toType)(i,Bn.TypeOutput.Buffer);return[s,o,c,h]}raw(){return am.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,z9.bigIntToHex)(this.index),validatorIndex:(0,z9.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,z9.bigIntToHex)(this.amount)}}}T4.Withdrawal=am;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.hashPersonalMessage=Qr.isValidSignature=Qr.fromRpcSig=Qr.toCompactSig=Qr.toRpcSig=Qr.ecrecover=Qr.ecsign=void 0;const b5e=Li,$q=w4,ka=Od,G9=v4,g5e=Ui;function x5e(t,e,n){const r=$q.secp256k1.sign(t,e),a=r.toCompactRawBytes(),i=Buffer.from(a.slice(0,32)),s=Buffer.from(a.slice(32,64)),o=n===void 0?BigInt(r.recovery+27):BigInt(r.recovery+35)+BigInt(n)*BigInt(2);return{r:i,s,v:o}}Qr.ecsign=x5e;function F4(t,e){return t===BigInt(0)||t===BigInt(1)?t:e===void 0?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function M4(t){return t===BigInt(0)||t===BigInt(1)}const v5e=function(t,e,n,r,a){const i=Buffer.concat([(0,ka.setLengthLeft)(n,32),(0,ka.setLengthLeft)(r,32)],64),s=F4(e,a);if(!M4(s))throw new Error("Invalid signature v value");const c=$q.secp256k1.Signature.fromCompact(i).addRecoveryBit(Number(s)).recoverPublicKey(t);return Buffer.from(c.toRawBytes(!1).slice(1))};Qr.ecrecover=v5e;const w5e=function(t,e,n,r){const a=F4(t,r);if(!M4(a))throw new Error("Invalid signature v value");return(0,ka.bufferToHex)(Buffer.concat([(0,ka.setLengthLeft)(e,32),(0,ka.setLengthLeft)(n,32),(0,ka.toBuffer)(t)]))};Qr.toRpcSig=w5e;const E5e=function(t,e,n,r){const a=F4(t,r);if(!M4(a))throw new Error("Invalid signature v value");let i=n;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&(i=Buffer.from(n),i[0]|=128),(0,ka.bufferToHex)(Buffer.concat([(0,ka.setLengthLeft)(e,32),(0,ka.setLengthLeft)(i,32)]))};Qr.toCompactSig=E5e;const A5e=function(t){const e=(0,ka.toBuffer)(t);let n,r,a;if(e.length>=65)n=e.slice(0,32),r=e.slice(32,64),a=(0,ka.bufferToBigInt)(e.slice(64));else if(e.length===64)n=e.slice(0,32),r=e.slice(32,64),a=BigInt((0,ka.bufferToInt)(e.slice(32,33))>>7),r[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a=a+BigInt(27)),{v:a,r:n,s:r}};Qr.fromRpcSig=A5e;const _5e=function(t,e,n,r=!0,a){if(e.length!==32||n.length!==32||!M4(F4(t,a)))return!1;const i=(0,ka.bufferToBigInt)(e),s=(0,ka.bufferToBigInt)(n);return!(i===BigInt(0)||i>=G9.SECP256K1_ORDER||s===BigInt(0)||s>=G9.SECP256K1_ORDER||r&&s>=G9.SECP256K1_ORDER_DIV_2)};Qr.isValidSignature=_5e;const C5e=function(t){(0,g5e.assertIsBuffer)(t);const e=Buffer.from(`Ethereum Signed Message: +${t.length}`,"utf-8");return Buffer.from((0,b5e.keccak256)(Buffer.concat([e,t])))};Qr.hashPersonalMessage=C5e;var Lq={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0;const e=s=>s.length>0&&s[s.length-1]===16;t.hasTerminator=e;const n=(s,o)=>{for(let c=0,h=0;h{let o=0;(0,t.hasTerminator)(s)&&(o=1,s=s.subarray(0,s.length-1));const c=new Uint8Array(s.length/2+1);return c[0]=o<<5,(s.length&1)===1&&(c[0]|=16,c[0]|=s[0],s=s.subarray(1)),(0,t.nibblesToBytes)(s,c.subarray(1)),c};t.nibblesToCompactBytes=r;const a=s=>{const o=s.length*2+1,c=new Uint8Array(o);for(let h=0;h{if(s.length===0)return s;let o=(0,t.bytesToNibbles)(s);o[0]<2&&(o=o.subarray(0,o.length-1));const c=2-(o[0]&1);return o.subarray(c)};t.compactBytesToNibbles=i})(Lq);var D4={};Object.defineProperty(D4,"__esModule",{value:!0});D4.AsyncEventEmitter=void 0;const B5e=fB;async function S5e(t,e,n){let r;for await(const a of e)try{a.length<2?a.call(t,n):await new Promise((i,s)=>{a.call(t,n,o=>{o?s(o):i()})})}catch(i){r=i}if(r)throw r}class T5e extends B5e.EventEmitter{emit(e,...n){let[r,a]=n;const i=this;let s=i._events[e]??[];return a===void 0&&typeof r=="function"&&(a=r,r=void 0),(e==="newListener"||e==="removeListener")&&(r={event:r,fn:a},a=void 0),s=Array.isArray(s)?s:[s],S5e(i,s.slice(),r).then(a).catch(a),i.listenerCount(e)>0}once(e,n){const r=this;let a;if(typeof n!="function")throw new TypeError("listener must be a function");return n.length>=2?a=function(i,s){r.removeListener(e,a),n(i,s)}:a=function(i){r.removeListener(e,a),n(i,a)},r.on(e,a),r}first(e,n){let r=this._events[e]??[];if(typeof n!="function")throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(n),this}before(e,n,r){return this.beforeOrAfter(e,n,r)}after(e,n,r){return this.beforeOrAfter(e,n,r,"after")}beforeOrAfter(e,n,r,a){let i=this._events[e]??[],s,o;const c=a==="after"?1:0;if(typeof r!="function")throw new TypeError("listener must be a function");if(typeof n!="function")throw new TypeError("target must be a function");for(Array.isArray(i)||(this._events[e]=i=[i]),o=i.length,s=i.length;s--;)if(i[s]===n){o=s+c;break}return i.splice(o,0,r),this}on(e,n){return super.on(e,n)}addListener(e,n){return super.addListener(e,n)}prependListener(e,n){return super.prependListener(e,n)}prependOnceListener(e,n){return super.prependOnceListener(e,n)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,n){return super.removeListener(e,n)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}D4.AsyncEventEmitter=T5e;var k4={};Object.defineProperty(k4,"__esModule",{value:!0});k4.Lock=void 0;class F5e{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(e=>this.promiseResolverQueue.push(e))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(this.permits===1&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}k4.Lock=F5e;var Up={},pd={};Object.defineProperty(pd,"__esModule",{value:!0});pd.InvalidStatusCodeError=pd.InvalidCertError=void 0;const Uq=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class wE extends Error{constructor(e,n){super(e),this.fingerprint256=n}}pd.InvalidCertError=wE;class HB extends Error{constructor(e){super(`Request Failed. Status Code: ${e}`),this.statusCode=e}}pd.InvalidStatusCodeError=HB;function jq(t,e){if(!e||e==="text"||e==="json")try{let n=new TextDecoder("utf8",{fatal:!0}).decode(t);if(e==="text")return n;try{return JSON.parse(n)}catch(r){if(e==="json")throw r;return n}}catch(n){if(e==="text"||e==="json")throw n}return t}let KI={};function EE(t,e){var E;let n={...Uq,...e};const r=yo,a=yo,i=yo,{promisify:s}=ud,{resolve:o}=yo,c=!!/^https/.test(t);let h={method:n.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const b=C=>C.replace(/:| /g,"").toLowerCase();if(n.keepAlive){const C={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},F=[c,c&&((E=n.sslPinnedCertificates)==null?void 0:E.map(T=>b(T)).sort())].join();h.agent=KI[F]||(KI[F]=new(c?a:r).Agent(C))}n.type==="json"&&(h.headers["Content-Type"]="application/json"),n.data&&(n.method||(h.method="POST"),h.body=n.type==="json"?JSON.stringify(n.data):n.data),h.headers={...h.headers,...n.headers},n.sslAllowSelfSigned&&(h.rejectUnauthorized=!1);const v=async C=>{const F=C.statusCode;if(n.redirect&&300<=F&&F<400&&C.headers.location){if(n._redirectCount==10)throw new Error("Request failed. Too much redirects.");return n._redirectCount+=1,await EE(o(t,C.headers.location),n)}if(n.expectStatusCode&&F!==n.expectStatusCode)throw C.resume(),new HB(F);let T=[];for await(const O of C)T.push(O);let P=Buffer.concat(T);const D=C.headers["content-encoding"];D==="br"&&(P=await s(i.brotliDecompress)(P)),(D==="gzip"||D==="deflate")&&(P=await s(i.unzip)(P));const M=jq(P,n.type);return n.full?{headers:C.headers,status:F,body:M}:M};return new Promise((C,F)=>{var O;const T=async k=>{if(k&&k.code==="DEPTH_ZERO_SELF_SIGNED_CERT")try{await EE(t,{...n,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(U){U&&U.fingerprint256&&(k=new wE(`Self-signed SSL certificate: ${U.fingerprint256}`,U.fingerprint256))}F(k)},P=(c?a:r).request(t,h,k=>{k.on("error",T),(async()=>{try{C(await v(k))}catch(U){F(U)}})()});P.on("error",T);const D=(O=n.sslPinnedCertificates)==null?void 0:O.map(k=>b(k)),M=k=>{var V;const U=b(((V=k.getPeerCertificate())==null?void 0:V.fingerprint256)||"");if(!(!U&&k.isSessionReused())&&!D.includes(U))return P.emit("error",new wE(`Invalid SSL certificate: ${U} Expected: ${D}`,U)),P.abort()};n.sslPinnedCertificates&&P.on("socket",k=>{k.listeners("secureConnect").map(V=>(V.name||"").replace("bound ","")).includes("mfetchSecureConnect")||k.on("secureConnect",M.bind(null,k))}),n.keepAlive&&P.setNoDelay(!0),h.body&&P.write(h.body),P.end()})}const M5e=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map(t=>t.toLowerCase())),D5e=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map(t=>t.toLowerCase()));async function k5e(t,e){let n={...Uq,...e};const r=new Headers;n.type==="json"&&r.set("Content-Type","application/json");let a=new URL(t);if(a.username){const c=btoa(`${a.username}:${a.password}`);r.set("Authorization",`Basic ${c}`),a.username="",a.password=""}t=""+a;for(let c in n.headers){const h=c.toLowerCase();(M5e.has(h)||n.cors&&!D5e.has(h))&&r.set(c,n.headers[c])}let i={headers:r,redirect:n.redirect?"follow":"manual"};n.referrer||(i.referrerPolicy="no-referrer"),n.cors&&(i.mode="cors"),n.data&&(n.method||(i.method="POST"),i.body=n.type==="json"?JSON.stringify(n.data):n.data);const s=await fetch(t,i);if(n.expectStatusCode&&s.status!==n.expectStatusCode)throw new HB(s.status);const o=jq(new Uint8Array(await s.arrayBuffer()),n.type);return n.full?{headers:Object.fromEntries(s.headers.entries()),status:s.status,body:o}:o}const I5e=!!(typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8);function O5e(t,e){return(I5e?EE:k5e)(t,e)}pd.default=O5e;Object.defineProperty(Up,"__esModule",{value:!0});Up.getProvider=Up.fetchFromProvider=void 0;const P5e=pd,R5e=async(t,e)=>(await(0,P5e.default)(t,{headers:{"content-type":"application/json"},type:"json",data:{method:e.method,params:e.params,jsonrpc:"2.0",id:1}})).result;Up.fetchFromProvider=R5e;const N5e=t=>{var e;if(typeof t=="string")return t;if(((e=t==null?void 0:t.connection)==null?void 0:e.url)!==void 0)return t.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")};Up.getProvider=N5e;(function(t){var e=he&&he.__createBinding||(Object.create?function(a,i,s,o){o===void 0&&(o=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,o,c)}:function(a,i,s,o){o===void 0&&(o=s),a[o]=i[s]}),n=he&&he.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,n(v4,t),n(B4,t),n($B,t),n(h2,t),n(T4,t),n(Qr,t),n(Od,t),n(jB,t),n(Lq,t),n(D4,t);var r=ln;Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return r.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return r.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return r.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return r.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return r.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return r.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return r.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return r.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return r.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return r.toAscii}}),n(k4,t),n(Up,t)})(RV);var el={},b1={},Hq={exports:{}};(function(t){var e={};/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.8.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2018 + * @license MIT + */(function(){var n="input is invalid type",r="finalize already called",a=typeof window=="object",i=a?window:{};i.JS_SHA3_NO_WINDOW&&(a=!1);var s=!a&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=e:s&&(i=self);var c=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,h=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",b="0123456789abcdef".split(""),v=[31,7936,2031616,520093696],E=[4,1024,262144,67108864],C=[1,256,65536,16777216],F=[6,1536,393216,100663296],T=[0,8,16,24],P=[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],D=[224,256,384,512],M=[128,256],O=["hex","buffer","arrayBuffer","array","digest"],k={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(I){return Object.prototype.toString.call(I)==="[object Array]"}),h&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(I){return typeof I=="object"&&I.buffer&&I.buffer.constructor===ArrayBuffer});for(var U=function(I,K,z){return function(Q){return new S(I,K,I).update(Q)[z]()}},V=function(I,K,z){return function(Q,ue){return new S(I,K,ue).update(Q)[z]()}},Y=function(I,K,z){return function(Q,ue,fe,G){return y["cshake"+I].update(Q,ue,fe,G)[z]()}},L=function(I,K,z){return function(Q,ue,fe,G){return y["kmac"+I].update(Q,ue,fe,G)[z]()}},X=function(I,K,z,Q){for(var ue=0;ue>5,this.byteCount=this.blockCount<<2,this.outputBlocks=z>>5,this.extraBytes=(z&31)>>3;for(var Q=0;Q<50;++Q)this.s[Q]=0}S.prototype.update=function(I){if(this.finalized)throw new Error(r);var K,z=typeof I;if(z!=="string"){if(z==="object"){if(I===null)throw new Error(n);if(h&&I.constructor===ArrayBuffer)I=new Uint8Array(I);else if(!Array.isArray(I)&&(!h||!ArrayBuffer.isView(I)))throw new Error(n)}else throw new Error(n);K=!0}for(var Q=this.blocks,ue=this.byteCount,fe=I.length,G=this.blockCount,j=0,ne=this.s,se,J;j>2]|=I[j]<>2]|=J<>2]|=(192|J>>6)<>2]|=(128|J&63)<=57344?(Q[se>>2]|=(224|J>>12)<>2]|=(128|J>>6&63)<>2]|=(128|J&63)<>2]|=(240|J>>18)<>2]|=(128|J>>12&63)<>2]|=(128|J>>6&63)<>2]|=(128|J&63)<=ue){for(this.start=se-ue,this.block=Q[G],se=0;se>8,z=I&255;z>0;)ue.unshift(z),I=I>>8,z=I&255,++Q;return K?ue.push(Q):ue.unshift(Q),this.update(ue),ue.length},S.prototype.encodeString=function(I){var K,z=typeof I;if(z!=="string"){if(z==="object"){if(I===null)throw new Error(n);if(h&&I.constructor===ArrayBuffer)I=new Uint8Array(I);else if(!Array.isArray(I)&&(!h||!ArrayBuffer.isView(I)))throw new Error(n)}else throw new Error(n);K=!0}var Q=0,ue=I.length;if(K)Q=ue;else for(var fe=0;fe=57344?Q+=3:(G=65536+((G&1023)<<10|I.charCodeAt(++fe)&1023),Q+=4)}return Q+=this.encode(Q*8),this.update(I),Q},S.prototype.bytepad=function(I,K){for(var z=this.encode(K),Q=0;Q>2]|=this.padding[K&3],this.lastByteIndex===this.byteCount)for(I[0]=I[z],K=1;K>4&15]+b[j&15]+b[j>>12&15]+b[j>>8&15]+b[j>>20&15]+b[j>>16&15]+b[j>>28&15]+b[j>>24&15];fe%I===0&&(q(K),ue=0)}return Q&&(j=K[ue],G+=b[j>>4&15]+b[j&15],Q>1&&(G+=b[j>>12&15]+b[j>>8&15]),Q>2&&(G+=b[j>>20&15]+b[j>>16&15])),G},S.prototype.arrayBuffer=function(){this.finalize();var I=this.blockCount,K=this.s,z=this.outputBlocks,Q=this.extraBytes,ue=0,fe=0,G=this.outputBits>>3,j;Q?j=new ArrayBuffer(z+1<<2):j=new ArrayBuffer(G);for(var ne=new Uint32Array(j);fe>8&255,G[j+2]=ne>>16&255,G[j+3]=ne>>24&255;fe%I===0&&q(K)}return Q&&(j=fe<<2,ne=K[ue],G[j]=ne&255,Q>1&&(G[j+1]=ne>>8&255),Q>2&&(G[j+2]=ne>>16&255)),G};function $(I,K,z){S.call(this,I,K,z)}$.prototype=new S,$.prototype.finalize=function(){return this.encode(this.outputBits,!0),S.prototype.finalize.call(this)};var q=function(I){var K,z,Q,ue,fe,G,j,ne,se,J,R,N,Z,ae,pe,W,ee,ie,me,be,ye,Fe,Se,Ee,Qe,$e,Oe,at,qe,Le,xt,Je,He,At,ce,de,Ce,_e,Ae,Xe,Me,Be,ze,Pe,Ie,Ye,Ue,De,ot,We,je,vt,Ke,Ne,ht,pt,yt,Qt,Gt,ct,Tt,mt,Nt;for(Q=0;Q<48;Q+=2)ue=I[0]^I[10]^I[20]^I[30]^I[40],fe=I[1]^I[11]^I[21]^I[31]^I[41],G=I[2]^I[12]^I[22]^I[32]^I[42],j=I[3]^I[13]^I[23]^I[33]^I[43],ne=I[4]^I[14]^I[24]^I[34]^I[44],se=I[5]^I[15]^I[25]^I[35]^I[45],J=I[6]^I[16]^I[26]^I[36]^I[46],R=I[7]^I[17]^I[27]^I[37]^I[47],N=I[8]^I[18]^I[28]^I[38]^I[48],Z=I[9]^I[19]^I[29]^I[39]^I[49],K=N^(G<<1|j>>>31),z=Z^(j<<1|G>>>31),I[0]^=K,I[1]^=z,I[10]^=K,I[11]^=z,I[20]^=K,I[21]^=z,I[30]^=K,I[31]^=z,I[40]^=K,I[41]^=z,K=ue^(ne<<1|se>>>31),z=fe^(se<<1|ne>>>31),I[2]^=K,I[3]^=z,I[12]^=K,I[13]^=z,I[22]^=K,I[23]^=z,I[32]^=K,I[33]^=z,I[42]^=K,I[43]^=z,K=G^(J<<1|R>>>31),z=j^(R<<1|J>>>31),I[4]^=K,I[5]^=z,I[14]^=K,I[15]^=z,I[24]^=K,I[25]^=z,I[34]^=K,I[35]^=z,I[44]^=K,I[45]^=z,K=ne^(N<<1|Z>>>31),z=se^(Z<<1|N>>>31),I[6]^=K,I[7]^=z,I[16]^=K,I[17]^=z,I[26]^=K,I[27]^=z,I[36]^=K,I[37]^=z,I[46]^=K,I[47]^=z,K=J^(ue<<1|fe>>>31),z=R^(fe<<1|ue>>>31),I[8]^=K,I[9]^=z,I[18]^=K,I[19]^=z,I[28]^=K,I[29]^=z,I[38]^=K,I[39]^=z,I[48]^=K,I[49]^=z,ae=I[0],pe=I[1],Ye=I[11]<<4|I[10]>>>28,Ue=I[10]<<4|I[11]>>>28,at=I[20]<<3|I[21]>>>29,qe=I[21]<<3|I[20]>>>29,ct=I[31]<<9|I[30]>>>23,Tt=I[30]<<9|I[31]>>>23,Be=I[40]<<18|I[41]>>>14,ze=I[41]<<18|I[40]>>>14,At=I[2]<<1|I[3]>>>31,ce=I[3]<<1|I[2]>>>31,W=I[13]<<12|I[12]>>>20,ee=I[12]<<12|I[13]>>>20,De=I[22]<<10|I[23]>>>22,ot=I[23]<<10|I[22]>>>22,Le=I[33]<<13|I[32]>>>19,xt=I[32]<<13|I[33]>>>19,mt=I[42]<<2|I[43]>>>30,Nt=I[43]<<2|I[42]>>>30,Ne=I[5]<<30|I[4]>>>2,ht=I[4]<<30|I[5]>>>2,de=I[14]<<6|I[15]>>>26,Ce=I[15]<<6|I[14]>>>26,ie=I[25]<<11|I[24]>>>21,me=I[24]<<11|I[25]>>>21,We=I[34]<<15|I[35]>>>17,je=I[35]<<15|I[34]>>>17,Je=I[45]<<29|I[44]>>>3,He=I[44]<<29|I[45]>>>3,Ee=I[6]<<28|I[7]>>>4,Qe=I[7]<<28|I[6]>>>4,pt=I[17]<<23|I[16]>>>9,yt=I[16]<<23|I[17]>>>9,_e=I[26]<<25|I[27]>>>7,Ae=I[27]<<25|I[26]>>>7,be=I[36]<<21|I[37]>>>11,ye=I[37]<<21|I[36]>>>11,vt=I[47]<<24|I[46]>>>8,Ke=I[46]<<24|I[47]>>>8,Pe=I[8]<<27|I[9]>>>5,Ie=I[9]<<27|I[8]>>>5,$e=I[18]<<20|I[19]>>>12,Oe=I[19]<<20|I[18]>>>12,Qt=I[29]<<7|I[28]>>>25,Gt=I[28]<<7|I[29]>>>25,Xe=I[38]<<8|I[39]>>>24,Me=I[39]<<8|I[38]>>>24,Fe=I[48]<<14|I[49]>>>18,Se=I[49]<<14|I[48]>>>18,I[0]=ae^~W&ie,I[1]=pe^~ee&me,I[10]=Ee^~$e&at,I[11]=Qe^~Oe&qe,I[20]=At^~de&_e,I[21]=ce^~Ce&Ae,I[30]=Pe^~Ye&De,I[31]=Ie^~Ue&ot,I[40]=Ne^~pt&Qt,I[41]=ht^~yt&Gt,I[2]=W^~ie&be,I[3]=ee^~me&ye,I[12]=$e^~at&Le,I[13]=Oe^~qe&xt,I[22]=de^~_e&Xe,I[23]=Ce^~Ae&Me,I[32]=Ye^~De&We,I[33]=Ue^~ot&je,I[42]=pt^~Qt&ct,I[43]=yt^~Gt&Tt,I[4]=ie^~be&Fe,I[5]=me^~ye&Se,I[14]=at^~Le&Je,I[15]=qe^~xt&He,I[24]=_e^~Xe&Be,I[25]=Ae^~Me&ze,I[34]=De^~We&vt,I[35]=ot^~je&Ke,I[44]=Qt^~ct&mt,I[45]=Gt^~Tt&Nt,I[6]=be^~Fe&ae,I[7]=ye^~Se&pe,I[16]=Le^~Je&Ee,I[17]=xt^~He&Qe,I[26]=Xe^~Be&At,I[27]=Me^~ze&ce,I[36]=We^~vt&Pe,I[37]=je^~Ke&Ie,I[46]=ct^~mt&Ne,I[47]=Tt^~Nt&ht,I[8]=Fe^~ae&W,I[9]=Se^~pe&ee,I[18]=Je^~Ee&$e,I[19]=He^~Qe&Oe,I[28]=Be^~At&de,I[29]=ze^~ce&Ce,I[38]=vt^~Pe&Ye,I[39]=Ke^~Ie&Ue,I[48]=mt^~Ne&pt,I[49]=Nt^~ht&yt,I[0]^=P[Q],I[1]^=P[Q+1]};if(c)t.exports=y;else for(w=0;w{const n=/^0x/i.test(t)||typeof t=="number";t=t.toString().replace(/^0x/i,"");const r=e-t.length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(r).join("0")+t};function j5e(t){const e=[];for(let n=0;n>>4).toString(16)),e.push((t[n]&15).toString(16));return`0x${e.join("").replace(/^0+/,"")}`}b1.bytesToHex=j5e;function zq(t){if(t==null)throw new Error("cannot convert null value to array");if(typeof t=="string"){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if(e[1]!=="0x")throw new Error("hex string must have 0x prefix");t=t.substring(2),t.length%2&&(t="0"+t);const n=[];for(let r=0;r=256||parseInt(String(n))!=n)return!1}return!0}function AE(t){return t.slice!==void 0||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return AE(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}Object.defineProperty(el,"__esModule",{value:!0});const _E=b1;function I4(t){return typeof t!="string"||!/^(0x)?[0-9a-f]{512}$/i.test(t)?!1:!!(/^(0x)?[0-9a-f]{512}$/.test(t)||/^(0x)?[0-9A-F]{512}$/.test(t))}el.isBloom=I4;function O4(t,e){typeof e=="object"&&e.constructor===Uint8Array&&(e=_E.bytesToHex(e));const n=_E.keccak256(e).replace("0x","");for(let r=0;r<12;r+=4){const a=(parseInt(n.substr(r,2),16)<<8)+parseInt(n.substr(r+2,2),16)&2047,i=z5e(t.charCodeAt(t.length-1-Math.floor(a/4))),s=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function G5e(t,e){if(!I4(t))throw new Error("Invalid bloom given");if(!zB(e))throw new Error(`Invalid ethereum address given: "${e}"`);const n=_E.padLeft(e,64);return O4(t,n)}el.isUserEthereumAddressInBloom=G5e;function V5e(t,e){if(!I4(t))throw new Error("Invalid bloom given");if(!zB(e))throw new Error(`Invalid contract address given: "${e}"`);return O4(t,e)}el.isContractAddressInBloom=V5e;function q5e(t,e){if(!I4(t))throw new Error("Invalid bloom given");if(!Gq(e))throw new Error("Invalid topic");return O4(t,e)}el.isTopicInBloom=q5e;function Gq(t){if(typeof t!="string")return!1;if(/^(0x)?[0-9a-f]{64}$/i.test(t)){if(/^(0x)?[0-9a-f]{64}$/.test(t)||/^(0x)?[0-9A-F]{64}$/.test(t))return!0}else return!1;return!1}el.isTopic=Gq;function zB(t){return typeof t!="string"?!1:!!(t.match(/^(0x)?[0-9a-fA-F]{40}$/)||t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}el.isAddress=zB;var jp=r2,W5e=kV,Vq=PV,ZI=RV,g1=el,{keccak256:qq}=Li,GB=function(t){return jp.isBN(t)},Wq=function(t){return t&&t.constructor&&t.constructor.name==="BigNumber"},p2=function(t){try{return W5e.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},K5e=function(t){return"0x"+p2(t).toTwos(256).toString(16,64)},Kq=function(t){return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:Zq(t):!1},Zq=function(t){t=t.replace(/^0x/i,"");for(var e=P4(t.toLowerCase()).replace(/^0x/i,""),n=0;n<40;n++)if(parseInt(e[n],16)>7&&t[n].toUpperCase()!==t[n]||parseInt(e[n],16)<=7&&t[n].toLowerCase()!==t[n])return!1;return!0},Z5e=function(t,e,n){var r=/^0x/i.test(t)||typeof t=="number";t=t.toString(16).replace(/^0x/i,"");var a=e-t.length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(a).join(n||"0")+t},Q5e=function(t,e,n){var r=/^0x/i.test(t)||typeof t=="number";t=t.toString(16).replace(/^0x/i,"");var a=e-t.length+1>=0?e-t.length+1:0;return(r?"0x":"")+t+new Array(a).join(n||"0")},CE=function(t){t=Vq.encode(t);var e="";t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join("");for(var n=0;nNumber.MAX_SAFE_INTEGER||n>>4).toString(16)),e.push((t[n]&15).toString(16));return"0x"+e.join("")},eve=function(t){if(t=t.toString(16),!Pd(t))throw new Error('Given value "'+t+'" is not a valid hex string.');t=t.replace(/^0x/i,"");for(var e=[],n=0;n32||r256)throw new Error("Invalid uint"+r+" size");if(a=QI(e),a.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+a.bitLength());if(a.lt(new ff(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return r?Ja.leftPad(a.toString("hex"),r/8*2):a}else if(t.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if(a=QI(e),a.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+a.bitLength());return a.lt(new ff(0))?a.toTwos(r).toString("hex"):r?Ja.leftPad(a.toString("hex"),r/8*2):a}else throw new Error("Unsupported or invalid type: "+t)},qB=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,n="",r,a;if(t&&typeof t=="object"&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,n=t.hasOwnProperty("v")?t.v:t.value):(e=Ja.toHex(t,!0),n=Ja.toHex(t),!e.startsWith("int")&&!e.startsWith("uint")&&(e="bytes")),(e.startsWith("int")||e.startsWith("uint"))&&typeof n=="string"&&!/^(-)?0x/i.test(n)&&(n=new ff(n)),Array.isArray(n)){if(a=dve(e),a&&n.length!==a)throw new Error(e+" is not matching the given array "+JSON.stringify(n));a=n.length}return Array.isArray(n)?(r=n.map(function(i){return XI(e,i,a).toString("hex").replace("0x","")}),r.join("")):(r=XI(e,n,a),r.toString("hex").replace("0x",""))},hve=function(){var t=Array.prototype.slice.call(arguments),e=t.map(qB);return Ja.sha3("0x"+e.join(""))},pve=function(){return Ja.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(qB).join(""))},yve=function(){var t=Array.prototype.slice.call(arguments),e=t.map(qB);return"0x"+e.join("").toLowerCase()},mve={soliditySha3:hve,soliditySha3Raw:pve,encodePacked:yve},yd=Qxe,gt=eW,V9=mve,bve=EG,JI=r2,gve=function(t,e,n,r,a){return t&&typeof t=="object"&&!(t instanceof Error)&&t.data&&((t.data&&typeof t.data=="object"||Array.isArray(t.data))&&(t.data=JSON.stringify(t.data,null,2)),t=t.message+` +`+t.data),typeof t=="string"&&(t=new Error(t)),typeof r=="function"&&r(t,a),typeof n=="function"&&((e&&typeof e.listeners=="function"&&e.listeners("error").length||typeof r=="function")&&e.catch(function(){}),setTimeout(function(){n(t)},1)),e&&typeof e.emit=="function"&&setTimeout(function(){e.emit("error",t,a),e.removeAllListeners()},1),e},xve=function(t){return t&&typeof t=="object"&&t.name&&t.name.indexOf("(")!==-1?t.name:t.name+"("+WB(!1,t.inputs).join(",")+")"},WB=function(t,e){var n=[];return e.forEach(function(r){if(typeof r.components=="object"){if(r.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");var a="",i=r.type.indexOf("[");i>=0&&(a=r.type.substring(i));var s=WB(t,r.components);Array.isArray(s)&&t?n.push("tuple("+s.join(",")+")"+a):t?n.push("("+s+")"):n.push("("+s.join(",")+")"+a)}else n.push(r.type)}),n},vve=function(t){return"0x"+bve(t).toString("hex")},YI=function(t){if(!gt.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",n=0,r=t.length;for(t.substring(0,2)==="0x"&&(n=2);n"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(t))throw new Error('Given address "'+t+'" is not a valid Ethereum address.');t=t.toLowerCase().replace(/^0x/i,"");for(var e=gt.sha3(t).replace(/^0x/i,""),n="0x",r=0;r7?n+=t[r].toUpperCase():n+=t[r];return n},_ve=function(t,e){if(t===e)return 0;if((t==="genesis"||t==="earliest"||t===0)&&(e==="genesis"||e==="earliest"||e===0))return 0;if(t==="genesis"||t==="earliest"||t===0)return-1;if(e==="genesis"||e==="earliest"||e===0)return 1;if(t==="latest"||t==="finalized")return e==="pending"?-1:1;if(e==="latest"||e==="finalized")return t==="pending"?1:-1;if(t==="pending")return 1;if(e==="pending")return-1;if(t==="safe"||e==="safe")return;{let n=new JI(t),r=new JI(e);return n.lt(r)?-1:n.eq(r)?0:1}},nW={_fireError:gve,_jsonInterfaceMethodToString:xve,_flattenTypes:WB,randomHex:vve,BN:gt.BN,isBN:gt.isBN,isBigNumber:gt.isBigNumber,isHex:gt.isHex,isHexStrict:gt.isHexStrict,sha3:gt.sha3,sha3Raw:gt.sha3Raw,keccak256:gt.sha3,soliditySha3:V9.soliditySha3,soliditySha3Raw:V9.soliditySha3Raw,encodePacked:V9.encodePacked,isAddress:gt.isAddress,checkAddressChecksum:gt.checkAddressChecksum,toChecksumAddress:Ave,toHex:gt.toHex,toBN:gt.toBN,bytesToHex:gt.bytesToHex,hexToBytes:gt.hexToBytes,hexToNumberString:gt.hexToNumberString,hexToNumber:gt.hexToNumber,toDecimal:gt.hexToNumber,numberToHex:gt.numberToHex,fromDecimal:gt.numberToHex,hexToUtf8:gt.hexToUtf8,hexToString:gt.hexToUtf8,toUtf8:gt.hexToUtf8,stripHexPrefix:gt.stripHexPrefix,utf8ToHex:gt.utf8ToHex,stringToHex:gt.utf8ToHex,fromUtf8:gt.utf8ToHex,hexToAscii:YI,toAscii:YI,asciiToHex:eO,fromAscii:eO,unitMap:yd.unitMap,toWei:Eve,fromWei:wve,padLeft:gt.leftPad,leftPad:gt.leftPad,padRight:gt.rightPad,rightPad:gt.rightPad,toTwosComplement:gt.toTwosComplement,isBloom:gt.isBloom,isUserEthereumAddressInBloom:gt.isUserEthereumAddressInBloom,isContractAddressInBloom:gt.isContractAddressInBloom,isTopic:gt.isTopic,isTopicInBloom:gt.isTopicInBloom,isInBloom:gt.isInBloom,compareBlockNumbers:_ve,toNumber:gt.toNumber},rW={};(function(t){var e={};Object.defineProperty(t,"__esModule",{value:!0}),t.networks=void 0,t.networks=[{chainId:1n,shortName:"eth"},{chainId:3n,shortName:"rop"},{chainId:4n,shortName:"rin"},{chainId:5n,shortName:"gor"},{chainId:10n,shortName:"oeth"},{chainId:11n,shortName:"meta"},{chainId:12n,shortName:"kal"},{chainId:18n,shortName:"tst"},{chainId:25n,shortName:"cro"},{chainId:28n,shortName:"bobarinkeby"},{chainId:30n,shortName:"rsk"},{chainId:31n,shortName:"trsk"},{chainId:39n,shortName:"u2u"},{chainId:40n,shortName:"telosevm"},{chainId:41n,shortName:"telosevmtestnet"},{chainId:42n,shortName:"kov"},{chainId:44n,shortName:"crab"},{chainId:46n,shortName:"darwinia"},{chainId:50n,shortName:"xdc"},{chainId:51n,shortName:"txdc"},{chainId:56n,shortName:"bnb"},{chainId:57n,shortName:"sys"},{chainId:61n,shortName:"etc"},{chainId:63n,shortName:"metc"},{chainId:69n,shortName:"okov"},{chainId:71n,shortName:"cfxtest"},{chainId:81n,shortName:"joc"},{chainId:82n,shortName:"meter"},{chainId:83n,shortName:"meter-test"},{chainId:88n,shortName:"tomo"},{chainId:97n,shortName:"bnbt"},{chainId:100n,shortName:"gno"},{chainId:106n,shortName:"vlx"},{chainId:108n,shortName:"tt"},{chainId:111n,shortName:"etl"},{chainId:122n,shortName:"fuse"},{chainId:123n,shortName:"spark"},{chainId:137n,shortName:"matic"},{chainId:148n,shortName:"shimmerevm-mainnet"},{chainId:155n,shortName:"tenet-testnet"},{chainId:169n,shortName:"manta"},{chainId:204n,shortName:"opbnb"},{chainId:246n,shortName:"ewt"},{chainId:250n,shortName:"ftm"},{chainId:255n,shortName:"kroma"},{chainId:280n,shortName:"zksync-goerli"},{chainId:288n,shortName:"boba"},{chainId:291n,shortName:"orderly"},{chainId:300n,shortName:"ogn"},{chainId:321n,shortName:"kcs"},{chainId:322n,shortName:"kcst"},{chainId:324n,shortName:"zksync"},{chainId:336n,shortName:"sdn"},{chainId:338n,shortName:"tcro"},{chainId:420n,shortName:"ogor"},{chainId:424n,shortName:"PNG"},{chainId:570n,shortName:"sys-rollux"},{chainId:588n,shortName:"metis-stardust"},{chainId:592n,shortName:"astr"},{chainId:595n,shortName:"maca"},{chainId:599n,shortName:"metis-goerli"},{chainId:686n,shortName:"kar"},{chainId:787n,shortName:"aca"},{chainId:1001n,shortName:"baobab"},{chainId:1008n,shortName:"eun"},{chainId:1030n,shortName:"cfx"},{chainId:1088n,shortName:"metis-andromeda"},{chainId:1101n,shortName:"zkevm"},{chainId:1111n,shortName:"wemix"},{chainId:1112n,shortName:"twemix"},{chainId:1115n,shortName:"tcore"},{chainId:1116n,shortName:"core"},{chainId:1230n,shortName:"UltronTestnet"},{chainId:1231n,shortName:"UltronMainnet"},{chainId:1284n,shortName:"mbeam"},{chainId:1285n,shortName:"mriver"},{chainId:1287n,shortName:"mbase"},{chainId:1294n,shortName:"bobabeam"},{chainId:1442n,shortName:"testnet-zkEVM-mango"},{chainId:1559n,shortName:"tenet"},{chainId:1663n,shortName:"Gobi"},{chainId:1807n,shortName:"rana"},{chainId:1890n,shortName:"lightlink_phoenix"},{chainId:1891n,shortName:"lightlink_pegasus"},{chainId:1984n,shortName:"euntest"},{chainId:2001n,shortName:"milkada"},{chainId:2002n,shortName:"milkalgo"},{chainId:2008n,shortName:"cloudwalk_testnet"},{chainId:2019n,shortName:"pmint_test"},{chainId:2020n,shortName:"pmint"},{chainId:2021n,shortName:"edg"},{chainId:2221n,shortName:"tkava"},{chainId:2222n,shortName:"kava"},{chainId:2358n,shortName:"kroma-sepolia"},{chainId:3737n,shortName:"csb"},{chainId:4002n,shortName:"tftm"},{chainId:4337n,shortName:"beam"},{chainId:4460n,shortName:"orderlyl2"},{chainId:4689n,shortName:"iotex-mainnet"},{chainId:4918n,shortName:"txvm"},{chainId:4919n,shortName:"xvm"},{chainId:5000n,shortName:"mantle"},{chainId:5001n,shortName:"mantle-testnet"},{chainId:5700n,shortName:"tsys"},{chainId:6102n,shortName:"cascadia"},{chainId:7001n,shortName:"zetachain-athens"},{chainId:7332n,shortName:"EON"},{chainId:7341n,shortName:"shyft"},{chainId:7700n,shortName:"canto"},{chainId:8192n,shortName:"tqf"},{chainId:8194n,shortName:"ttqf"},{chainId:8217n,shortName:"cypress"},{chainId:8453n,shortName:"base"},{chainId:9000n,shortName:"evmos-testnet"},{chainId:9001n,shortName:"evmos"},{chainId:9728n,shortName:"boba-testnet"},{chainId:10000n,shortName:"smartbch"},{chainId:10001n,shortName:"smartbchtest"},{chainId:10081n,shortName:"joct"},{chainId:10200n,shortName:"chi"},{chainId:10243n,shortName:"aa"},{chainId:11235n,shortName:"islm"},{chainId:11437n,shortName:"shyftt"},{chainId:11891n,shortName:"Arianee"},{chainId:12357n,shortName:"rei-testnet"},{chainId:13337n,shortName:"beam-testnet"},{chainId:17000n,shortName:"holesky"},{chainId:23294n,shortName:"sapphire"},{chainId:23295n,shortName:"sapphire-testnet"},{chainId:34443n,shortName:"mode"},{chainId:42161n,shortName:"arb1"},{chainId:42170n,shortName:"arb-nova"},{chainId:42220n,shortName:"celo"},{chainId:43113n,shortName:"fuji"},{chainId:43114n,shortName:"avax"},{chainId:43288n,shortName:"boba-avax"},{chainId:44787n,shortName:"alfa"},{chainId:45000n,shortName:"autobahnnetwork"},{chainId:47805n,shortName:"rei"},{chainId:54211n,shortName:"islmt"},{chainId:56288n,shortName:"boba-bnb"},{chainId:57000n,shortName:"tsys-rollux"},{chainId:58008n,shortName:"sepPNG"},{chainId:59140n,shortName:"linea-testnet"},{chainId:59144n,shortName:"linea"},{chainId:71401n,shortName:"gw-testnet-v1"},{chainId:71402n,shortName:"gw-mainnet-v1"},{chainId:73799n,shortName:"vt"},{chainId:80001n,shortName:"maticmum"},{chainId:84531n,shortName:"basegor"},{chainId:84532n,shortName:"basesep"},{chainId:200101n,shortName:"milktada"},{chainId:200202n,shortName:"milktalgo"},{chainId:333999n,shortName:"olympus"},{chainId:421611n,shortName:"arb-rinkeby"},{chainId:421613n,shortName:"arb-goerli"},{chainId:421614n,shortName:"arb-sep"},{chainId:534351n,shortName:"scr-sepolia"},{chainId:534352n,shortName:"scr"},{chainId:534353n,shortName:"scr-alpha"},{chainId:622277n,shortName:"rth"},{chainId:7777777n,shortName:"zora"},{chainId:11155111n,shortName:"sep"},{chainId:222000222n,shortName:"kanazawa"},{chainId:245022926n,shortName:"neonevm-devnet"},{chainId:245022934n,shortName:"neonevm-mainnet"},{chainId:333000333n,shortName:"meld"},{chainId:1313161554n,shortName:"aurora"},{chainId:1313161555n,shortName:"aurora-testnet"},{chainId:1666600000n,shortName:"hmy-s0"},{chainId:1666700000n,shortName:"hmy-b-s0"},{chainId:11297108099n,shortName:"tpalm"},{chainId:11297108109n,shortName:"palm"}],e.TEST_NETWORK==="hardhat"?t.networks.push({shortName:"local",chainId:31337n}):e.TEST_NETWORK==="ganache"&&t.networks.push({shortName:"local",chainId:1337n})})(rW);Object.defineProperty(Fa,"__esModule",{value:!0});Fa.validateEip3770Address=Fa.validateEthereumAddress=Fa.validateEip3770NetworkPrefix=Fa.isValidEip3770NetworkPrefix=Fa.getEip3770NetworkPrefixFromChainId=Fa.parseEip3770Address=void 0;const tO=nW,aW=rW;function iW(t){const e=t.split(":"),n=e.length>1?e[1]:e[0];return{prefix:e.length>1?e[0]:"",address:n}}Fa.parseEip3770Address=iW;function sW(t){const e=aW.networks.find(n=>t===n.chainId);if(!e)throw new Error("No network prefix supported for the current chainId");return e.shortName}Fa.getEip3770NetworkPrefixFromChainId=sW;function oW(t){return aW.networks.some(({shortName:e})=>e===t)}Fa.isValidEip3770NetworkPrefix=oW;function cW(t,e){const n=t===sW(e);if(!oW(t)||!n)throw new Error("The network prefix must match the current network")}Fa.validateEip3770NetworkPrefix=cW;function lW(t){if(!((0,tO.isHexStrict)(t)&&(0,tO.isAddress)(t)))throw new Error(`Invalid Ethereum address ${t}`)}Fa.validateEthereumAddress=lW;function Cve(t,e){const{address:n,prefix:r}=iW(t);return lW(n),r&&cW(r,e),{address:n,prefix:r}}Fa.validateEip3770Address=Cve;var R4={};(function(t){var e=he&&he.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateTypedData=t.hashSafeMessage=t.hashTypedData=t.getEip712MessageTypes=t.getEip712TxTypes=t.EIP712_DOMAIN=t.EIP712_DOMAIN_BEFORE_V130=void 0;const n=an,r=e(Id),a=">=1.3.0";t.EIP712_DOMAIN_BEFORE_V130=[{type:"address",name:"verifyingContract"}],t.EIP712_DOMAIN=[{type:"uint256",name:"chainId"},{type:"address",name:"verifyingContract"}];function i(v){return{EIP712Domain:(0,r.default)(v,a)?t.EIP712_DOMAIN:t.EIP712_DOMAIN_BEFORE_V130,SafeTx:[{type:"address",name:"to"},{type:"uint256",name:"value"},{type:"bytes",name:"data"},{type:"uint8",name:"operation"},{type:"uint256",name:"safeTxGas"},{type:"uint256",name:"baseGas"},{type:"uint256",name:"gasPrice"},{type:"address",name:"gasToken"},{type:"address",name:"refundReceiver"},{type:"uint256",name:"nonce"}]}}t.getEip712TxTypes=i;function s(v){return{EIP712Domain:(0,r.default)(v,a)?t.EIP712_DOMAIN:t.EIP712_DOMAIN_BEFORE_V130,SafeMessage:[{type:"bytes",name:"message"}]}}t.getEip712MessageTypes=s;const o=v=>{const{EIP712Domain:E,...C}=v.types;return n.ethers.TypedDataEncoder.hash(v.domain,C,v.message)};t.hashTypedData=o;const c=v=>n.ethers.hashMessage(v),h=v=>typeof v=="string"?c(v):(0,t.hashTypedData)(v);t.hashSafeMessage=h;function b({safeAddress:v,safeVersion:E,chainId:C,data:F}){const T=F.hasOwnProperty("to"),P=(0,r.default)(E,a);let D;if(T){const M=F;D={types:i(E),domain:{verifyingContract:v},primaryType:"SafeTx",message:{...M,value:M.value,safeTxGas:M.safeTxGas,baseGas:M.baseGas,gasPrice:M.gasPrice,nonce:M.nonce}}}else{const M=F;D={types:s(E),domain:{verifyingContract:v},primaryType:"SafeMessage",message:{message:(0,t.hashSafeMessage)(M)}}}return P&&(D.domain.chainId=C.toString()),D}t.generateTypedData=b})(R4);var Hp={},Bve=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Hp,"__esModule",{value:!0});Hp.hasSafeFeature=Hp.SAFE_FEATURES=void 0;const Sve=Bve(Id);var Ju;(function(t){t.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",t.SAFE_TX_GUARDS="SAFE_TX_GUARDS",t.SAFE_FALLBACK_HANDLER="SAFE_FALLBACK_HANDLER",t.ETH_SIGN="ETH_SIGN",t.ACCOUNT_ABSTRACTION="ACCOUNT_ABSTRACTION"})(Ju||(Hp.SAFE_FEATURES=Ju={}));const nO={[Ju.SAFE_TX_GAS_OPTIONAL]:">=1.3.0",[Ju.SAFE_TX_GUARDS]:">=1.3.0",[Ju.SAFE_FALLBACK_HANDLER]:">=1.1.1",[Ju.ETH_SIGN]:">=1.1.0",[Ju.ACCOUNT_ABSTRACTION]:">=1.3.0"},Tve=(t,e)=>t in nO?(0,Sve.default)(e,nO[t]):!1;Hp.hasSafeFeature=Tve;var N4={},y2={};Object.defineProperty(y2,"__esModule",{value:!0});y2.EthSafeSignature=void 0;class Fve{constructor(e,n,r=!1){this.signer=e,this.data=n,this.isContractSignature=r}staticPart(e){return this.isContractSignature?`${this.signer.slice(2).padStart(64,"0")}${e||""}00`:this.data}dynamicPart(){return this.isContractSignature?`${(this.data.slice(2).length/2).toString(16).padStart(64,"0")}${this.data.slice(2)}`:""}}y2.EthSafeSignature=Fve;var KB={},Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});Rd.SigningMethod=void 0;var rO;(function(t){t.ETH_SIGN="eth_sign",t.ETH_SIGN_TYPED_DATA="eth_signTypedData",t.ETH_SIGN_TYPED_DATA_V3="eth_signTypedData_v3",t.ETH_SIGN_TYPED_DATA_V4="eth_signTypedData_v4",t.SAFE_SIGNATURE="safe_sign"})(rO||(Rd.SigningMethod=rO={}));(function(t){var e=he&&he.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSafeMessageHash=t.calculateSafeTransactionHash=t.preimageSafeMessageHash=t.preimageSafeTransactionHash=t.buildSignatureBytes=t.buildContractSignature=t.generateEIP712Signature=t.generateSignature=t.adjustVInSignature=t.isTxHashSignedWithPrefix=t.generatePreValidatedSignature=void 0;const n=an,r=VC,a=e(Id),i=Fs,s=y2,o=R4,c=Rd;function h(U){const V="0x000000000000000000000000"+U.slice(2)+"000000000000000000000000000000000000000000000000000000000000000001";return new s.EthSafeSignature(U,V)}t.generatePreValidatedSignature=h;function b(U,V,Y){let L;try{const X={r:Buffer.from(V.slice(2,66),"hex"),s:Buffer.from(V.slice(66,130),"hex"),v:parseInt(V.slice(130,132),16)},B=(0,r.ecrecover)(Buffer.from(U.slice(2),"hex"),X.v,X.r,X.s),u=(0,r.bufferToHex)((0,r.pubToAddress)(B));L=!(0,i.sameString)(u,Y)}catch{L=!0}return L}t.isTxHashSignedWithPrefix=b;const v=(U,V,Y,L)=>{const X=[0,1,27,28],B=27;let u=parseInt(V.slice(-2),16);if(!X.includes(u))throw new Error("Invalid signature");if(U===c.SigningMethod.ETH_SIGN){unew s.EthSafeSignature(V,(0,t.buildSignatureBytes)(U),!0);t.buildContractSignature=F;const T=U=>{U.sort((X,B)=>X.signer.toLowerCase().localeCompare(B.signer.toLowerCase()));let Y="0x",L="";for(const X of U)if(X.isContractSignature){const B=(U.length*65+L.length/2).toString(16).padStart(64,"0");Y+=X.staticPart(B),L+=X.dynamicPart()}else Y+=X.data.slice(2);return Y+L};t.buildSignatureBytes=T;const P=(U,V,Y,L)=>{const X=(0,o.getEip712TxTypes)(Y);return n.ethers.TypedDataEncoder.encode({verifyingContract:U,chainId:L},{SafeTx:X.SafeTx},V)};t.preimageSafeTransactionHash=P;const D=(U,V,Y,L)=>{const X=(0,o.getEip712MessageTypes)(Y);return n.ethers.TypedDataEncoder.encode({verifyingContract:U,chainId:L},{SafeMessage:X.SafeMessage},{message:V})};t.preimageSafeMessageHash=D;const M=">=1.3.0",O=(U,V,Y,L)=>{const X=(0,o.getEip712TxTypes)(Y),B={verifyingContract:U};return(0,a.default)(Y,M)&&(B.chainId=L),n.ethers.TypedDataEncoder.hash(B,{SafeTx:X.SafeTx},V)};t.calculateSafeTransactionHash=O;const k=(U,V,Y,L)=>{const X=(0,o.getEip712MessageTypes)(Y);return n.ethers.TypedDataEncoder.hash({verifyingContract:U,chainId:L},{SafeMessage:X.SafeMessage},{message:V})};t.calculateSafeMessageHash=k})(KB);(function(t){var e=he&&he.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i);var o=Object.getOwnPropertyDescriptor(a,i);(!o||("get"in o?!a.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,o)}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=he&&he.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,r,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(y2,t),n(KB,t)})(N4);var q9={},ei={},Mve=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ei,"__esModule",{value:!0});ei.estimateSafeDeploymentGas=ei.estimateSafeTxGas=ei.estimateTxBaseGas=ei.estimateTxGas=ei.estimateGas=void 0;const Dve=Fx,kve=Mve(Id),SE=ra,Km=Ct,Ive=4,TE=16,Ove=2e4,Pve=5e3,Rve=1500,Nve=6e3,$ve=32e3,Lve=1*TE+2*32*TE+Nve;function uW(t){return t.match(/.{2}/g).reduce((n,r)=>r==="0x"?n+0:r==="00"?n+Ive:n+TE,0)}async function Uve(t,e,n,r,a,i,s,o){const c=await n.getChainId(),h=await(0,Km.getSimulateTxAccessorContract)({ethAdapter:n,safeVersion:t,customContracts:o==null?void 0:o[c.toString()]}),b=h.encode("simulate",[r,a,i,s]),v=e.encode("simulateAndRevert",[await h.getAddress(),b]),E=await e.getAddress(),C={to:E,value:"0",data:v,from:E};try{const F=await n.call(C);return im(F)}catch(F){return fW(F)}}ei.estimateGas=Uve;async function jve(t,e,n,r,a,i){let s=0;const o=await t.getAddress(),c=t.encode("requiredTxGas",[n,r,a,i]);try{s=+("0x"+(await e.estimateGas({to:o,from:o,data:c})).substring(138))+1e4}catch{}if(s>0){const h=uW(c);let b=1e4;for(let v=0;v<10;v++){try{if(await e.call({to:o,from:o,data:c,gasPrice:"0",gasLimit:(s+h+b).toString()})!=="0x")break}catch{}s=s+b,b*=2}return(s+b).toString()}try{return await e.estimateGas({to:n,from:o,value:r,data:a})}catch(h){return i===Dve.OperationType.DelegateCall?"0":Promise.reject(h)}}ei.estimateTxGas=jve;async function Hve(t,e){var p;const n=e.data,{to:r,value:a,data:i,operation:s,safeTxGas:o,gasToken:c,refundReceiver:h}=n,b=await t.getThreshold(),v=await t.getNonce(),E=b*Lve,C=o||0,F=0,T=1,P=c||SE.ZERO_ADDRESS,D=h||SE.ZERO_ADDRESS,M="0x",O=await t.getContractVersion(),k=t.getEthAdapter(),U=t.getContractManager().isL1SafeSingleton,V=await t.getChainId(),Y=(p=t.getContractManager().contractNetworks)==null?void 0:p[V.toString()],X=(await(0,Km.getSafeContract)({ethAdapter:k,safeVersion:O,isL1SafeSingleton:U,customContracts:Y})).encode("execTransaction",[r,a,i,s,C,F,T,P,D,M]),u=v!==0?Pve:Ove;let d=E+uW(X)+u+Rve;return d>65536?d+=64:d+=128,d+=$ve,d.toString()}ei.estimateTxBaseGas=Hve;async function zve(t,e){const n=await t.getContractVersion();if((0,kve.default)(n,">=1.3.0")){const a=await Vve(t,e);return aO(a)}const r=await Gve(t,e);return aO(r)}ei.estimateSafeTxGas=zve;function aO(t){return Math.round(Number(t)*1.05).toString()}async function Gve(t,e){var C,F,T;const n=await t.isSafeDeployed(),r=await t.getAddress(),a=await t.getContractVersion(),i=t.getEthAdapter(),s=t.getContractManager().isL1SafeSingleton,o=await t.getChainId(),c=(C=t.getContractManager().contractNetworks)==null?void 0:C[o.toString()],h=await(0,Km.getSafeContract)({ethAdapter:i,safeVersion:a,isL1SafeSingleton:s,customContracts:c}),b=h.encode("requiredTxGas",[e.data.to,e.data.value,e.data.data,e.data.operation]),E={to:n?r:await h.getAddress(),value:"0",data:b,from:r};try{return"0x"+(await i.call(E)).slice(-32)}catch(P){try{const D=(T=(F=P==null?void 0:P.info)==null?void 0:F.error)==null?void 0:T.data;if(D&&D.startsWith("Reverted ")){const[,M]=D.split("Reverted ");return Number(M).toString()}}catch{return"0"}}return"0"}function im(t){const[,e]=t.split("0x");return(+("0x"+("0x"+e).slice(184).slice(0,10))).toString()}function fW(t){var a,i,s;const e=t==null?void 0:t.data;if(e)return im(e);const n=(i=(a=t==null?void 0:t.info)==null?void 0:a.error)==null?void 0:i.data;if(n){const c=typeof n=="string"?n:n.data;return im(c)}if((s=t==null?void 0:t.message)==null?void 0:s.includes("0x"))return im(t==null?void 0:t.message);throw new Error("Could not parse SafeTxGas from Estimation response, Details: "+(t==null?void 0:t.message))}async function Vve(t,e){var T;const n=await t.isSafeDeployed(),r=await t.getAddress(),a=await t.getContractVersion(),i=t.getEthAdapter(),s=await t.getChainId(),o=(T=t.getContractManager().contractNetworks)==null?void 0:T[s.toString()],c=t.getContractManager().isL1SafeSingleton,h=await(0,Km.getSafeContract)({ethAdapter:i,safeVersion:a,isL1SafeSingleton:c,customContracts:o}),b=await(0,Km.getSimulateTxAccessorContract)({ethAdapter:i,safeVersion:a,customContracts:o}),v=b.encode("simulate",[e.data.to,e.data.value,e.data.data,e.data.operation]),E=n?r:await h.getAddress(),C=h.encode("simulateAndRevert",[await b.getAddress(),v]),F={to:E,value:"0",data:C,from:r};try{const P=await i.call(F);return im(P)}catch(P){return fW(P)}return"0"}async function qve(t){if(await t.isSafeDeployed())return"0";const n=t.getEthAdapter(),r=await t.createSafeDeploymentTransaction();return await n.estimateGas({...r,from:SE.ZERO_ADDRESS})}ei.estimateSafeDeploymentGas=qve;var $4={};Object.defineProperty($4,"__esModule",{value:!0});const Wve=N4;class Kve{constructor(e){this.signatures=new Map,this.data=e}getSignature(e){return this.signatures.get(e.toLowerCase())}addSignature(e){this.signatures.set(e.signer.toLowerCase(),e)}encodedSignatures(){return(0,Wve.buildSignatureBytes)(Array.from(this.signatures.values()))}}$4.default=Kve;var dW={};Object.defineProperty(dW,"__esModule",{value:!0});var ja={},iO;function ZB(){if(iO)return ja;iO=1;var t=he&&he.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(ja,"__esModule",{value:!0}),ja.isSafeMultisigTransactionResponse=ja.decodeMultiSendData=ja.encodeMultiSendData=ja.standardizeSafeTransactionData=ja.standardizeMetaTransactionData=void 0;const e=an,n=na,r=Nd(),a=ra,i=Fx,s=t(Id),o=nW,c=ei;function h(T){return{...T,operation:T.operation??i.OperationType.Call}}ja.standardizeMetaTransactionData=h;async function b({safeContract:T,predictedSafe:P,ethAdapter:D,tx:M,contractNetworks:O}){var L;const k={to:M.to,value:M.value,data:M.data,operation:M.operation??i.OperationType.Call,baseGas:M.baseGas??"0",gasPrice:M.gasPrice??"0",gasToken:M.gasToken||a.ZERO_ADDRESS,refundReceiver:M.refundReceiver||a.ZERO_ADDRESS,nonce:M.nonce??(T?await T.getNonce():0)};if(typeof M.safeTxGas<"u")return{...k,safeTxGas:M.safeTxGas};let U;if(P)U=((L=P==null?void 0:P.safeDeploymentConfig)==null?void 0:L.safeVersion)||n.DEFAULT_SAFE_VERSION;else{if(!T)throw new Error("Safe is not deployed");U=await T.getVersion()}const V=(0,r.hasSafeFeature)(r.SAFE_FEATURES.SAFE_TX_GAS_OPTIONAL,U);if(V&&k.gasPrice==="0"||V&&P)return{...k,safeTxGas:"0"};if(!T)throw new Error("Safe is not deployed");let Y;return(0,s.default)(U,">=1.3.0")?Y=await(0,c.estimateGas)(U,T,D,k.to,k.value,k.data,k.operation,O):Y=await(0,c.estimateTxGas)(T,D,k.to,k.value,k.data,k.operation),{...k,safeTxGas:Y}}ja.standardizeSafeTransactionData=b;function v(T){const P=(0,e.getBytes)(T.data);return(0,e.solidityPacked)(["uint8","address","uint256","uint256","bytes"],[T.operation,T.to,T.value,P.length,P]).slice(2)}function E(T){return"0x"+T.map(P=>v(P)).join("")}ja.encodeMultiSendData=E;function C(T){const P=new e.Interface(["function multiSend(bytes memory transactions) public payable"]),[D]=P.decodeFunctionData("multiSend",T),M=[];let O=2;for(;O(0,W9.sameString)(i,e))>=0)throw new Error("Module provided is already enabled")}validateModuleIsEnabled(e,n){const r=n.findIndex(i=>(0,W9.sameString)(i,e));if(!(r>=0))throw new Error("Module provided is not enabled yet");return r}async getModules(){if(!jo(this,ss,"f"))throw new Error("Safe is not deployed");return jo(this,ss,"f").getModules()}async isModuleEnabled(e){if(!jo(this,ss,"f"))throw new Error("Safe is not deployed");return jo(this,ss,"f").isModuleEnabled(e)}async encodeEnableModuleData(e){if(!jo(this,ss,"f"))throw new Error("Safe is not deployed");this.validateModuleAddress(e);const n=await this.getModules();return this.validateModuleIsNotEnabled(e,n),jo(this,ss,"f").encode("enableModule",[e])}async encodeDisableModuleData(e){if(!jo(this,ss,"f"))throw new Error("Safe is not deployed");this.validateModuleAddress(e);const n=await this.getModules(),r=this.validateModuleIsEnabled(e,n),a=r===0?e9e.SENTINEL_ADDRESS:n[r-1];return jo(this,ss,"f").encode("disableModule",[a,e])}}D6=new WeakMap,ss=new WeakMap;XB.default=t9e;var JB={},fO=he&&he.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},ca=he&&he.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},k6,Fr;Object.defineProperty(JB,"__esModule",{value:!0});const K9=Fs,dO=ra;class n9e{constructor(e,n){k6.set(this,void 0),Fr.set(this,void 0),fO(this,k6,e,"f"),fO(this,Fr,n,"f")}validateOwnerAddress(e,n){if(!ca(this,k6,"f").isAddress(e)||(0,K9.isRestrictedAddress)(e))throw new Error(n||"Invalid owner address provided")}validateThreshold(e,n){if(e<=0)throw new Error("Threshold needs to be greater than 0");if(e>n)throw new Error("Threshold cannot exceed owner count")}validateAddressIsNotOwner(e,n,r){if(n.findIndex(s=>(0,K9.sameString)(s,e))>=0)throw new Error(r||"Address provided is already an owner")}validateAddressIsOwner(e,n,r){const a=n.findIndex(s=>(0,K9.sameString)(s,e));if(!(a>=0))throw new Error(r||"Address provided is not an owner");return a}async getOwners(){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");return[...await ca(this,Fr,"f").getOwners()]}async getThreshold(){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");return ca(this,Fr,"f").getThreshold()}async isOwner(e){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");return ca(this,Fr,"f").isOwner(e)}async encodeAddOwnerWithThresholdData(e,n){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");this.validateOwnerAddress(e);const r=await this.getOwners();this.validateAddressIsNotOwner(e,r);const a=n??await this.getThreshold();return this.validateThreshold(a,r.length+1),ca(this,Fr,"f").encode("addOwnerWithThreshold",[e,a])}async encodeRemoveOwnerData(e,n){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");this.validateOwnerAddress(e);const r=await this.getOwners(),a=this.validateAddressIsOwner(e,r),i=n??await this.getThreshold()-1;this.validateThreshold(i,r.length-1);const s=a===0?dO.SENTINEL_ADDRESS:r[a-1];return ca(this,Fr,"f").encode("removeOwner",[s,e,i])}async encodeSwapOwnerData(e,n){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");this.validateOwnerAddress(n,"Invalid new owner address provided"),this.validateOwnerAddress(e,"Invalid old owner address provided");const r=await this.getOwners();this.validateAddressIsNotOwner(n,r,"New address provided is already an owner");const a=this.validateAddressIsOwner(e,r,"Old address provided is not an owner"),i=a===0?dO.SENTINEL_ADDRESS:r[a-1];return ca(this,Fr,"f").encode("swapOwner",[i,e,n])}async encodeChangeThresholdData(e){if(!ca(this,Fr,"f"))throw new Error("Safe is not deployed");const n=await this.getOwners();return this.validateThreshold(e,n.length),ca(this,Fr,"f").encode("changeThreshold",[e])}}k6=new WeakMap,Fr=new WeakMap;JB.default=n9e;var YB={};Object.defineProperty(YB,"__esModule",{value:!0});const r9e=N4;class a9e{constructor(e){this.signatures=new Map,this.data=e}getSignature(e){return this.signatures.get(e.toLowerCase())}addSignature(e){this.signatures.set(e.signer.toLowerCase(),e)}encodedSignatures(){return(0,r9e.buildSignatureBytes)(Array.from(this.signatures.values()))}}YB.default=a9e;var ul=he&&he.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},Re=he&&he.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Iu=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Rn,Ot,wt,Zs,Zu,v0,w0,DE,kE;Object.defineProperty(Tx,"__esModule",{value:!0});const Z9=Fx,Q9=Mx,hO=na,pO=Iu(x4),i9e=Iu(BB),s9e=Iu(QB),o9e=Iu(XB),c9e=Iu(JB),bi=Rd,qt=Nd(),yO=Iu($4),cy=ZB(),l9e=f2,ly=Ct,u9e=Iu(YB),A3=Iu(Id),mO=">=1.4.1",bO=">=1.3.0";let f9e=class E0{constructor(){Rn.set(this,void 0),Ot.set(this,void 0),wt.set(this,void 0),Zs.set(this,void 0),Zu.set(this,void 0),v0.set(this,void 0),w0.set(this,void 0),DE.set(this,"0x1626ba7e"),kE.set(this,"0x20c13b0b"),this.getSafeMessageHash=async e=>{const n=await this.getAddress(),r=await this.getContractVersion(),a=await this.getChainId();return(0,qt.calculateSafeMessageHash)(n,e,r,a)},this.isValidSignature=async(e,n="0x")=>{const r=await this.getAddress(),a=await this.getFallbackHandlerContract(),i=n&&Array.isArray(n)?(0,qt.buildSignatureBytes)(n):n,s=a.encode("isValidSignature(bytes32,bytes)",[e,i]),o=a.encode("isValidSignature(bytes,bytes)",[e,i]);try{const c=await Promise.all([Re(this,Ot,"f").call({from:r,to:r,data:s}),Re(this,Ot,"f").call({from:r,to:r,data:o})]);return!!c.length&&(c[0].slice(0,10).toLowerCase()===Re(this,DE,"f")||c[1].slice(0,10).toLowerCase()===Re(this,kE,"f"))}catch{return!1}}}static async create(e){const n=new E0;return await n.init(e),n}async init(e){const{ethAdapter:n,isL1SafeSingleton:r,contractNetworks:a}=e;ul(this,Ot,n,"f"),(0,l9e.isSafeConfigWithPredictedSafe)(e)?(ul(this,Rn,e.predictedSafe,"f"),ul(this,wt,await pO.default.create({ethAdapter:Re(this,Ot,"f"),predictedSafe:Re(this,Rn,"f"),isL1SafeSingleton:r,contractNetworks:a}),"f")):ul(this,wt,await pO.default.create({ethAdapter:Re(this,Ot,"f"),safeAddress:e.safeAddress,isL1SafeSingleton:r,contractNetworks:a}),"f"),ul(this,Zs,new c9e.default(Re(this,Ot,"f"),Re(this,wt,"f").safeContract),"f"),ul(this,Zu,new o9e.default(Re(this,Ot,"f"),Re(this,wt,"f").safeContract),"f"),ul(this,v0,new s9e.default(Re(this,Ot,"f"),Re(this,wt,"f").safeContract),"f"),ul(this,w0,new i9e.default(Re(this,Ot,"f"),Re(this,wt,"f").safeContract),"f")}async connect(e){const{ethAdapter:n,safeAddress:r,predictedSafe:a,isL1SafeSingleton:i,contractNetworks:s}=e,o={ethAdapter:n||Re(this,Ot,"f"),isL1SafeSingleton:i||Re(this,wt,"f").isL1SafeSingleton,contractNetworks:s||Re(this,wt,"f").contractNetworks};return r?await E0.create({safeAddress:r,...o}):a?await E0.create({predictedSafe:a,...o}):Re(this,Rn,"f")?await E0.create({predictedSafe:Re(this,Rn,"f"),...o}):await E0.create({safeAddress:await this.getAddress(),...o})}async getAddress(){var e;if(Re(this,Rn,"f")){const n=await this.getContractVersion();if(!(0,qt.hasSafeFeature)(qt.SAFE_FEATURES.ACCOUNT_ABSTRACTION,n))throw new Error("Account Abstraction functionality is not available for Safes with version lower than v1.3.0");const r=await Re(this,Ot,"f").getChainId();return(0,Q9.predictSafeAddress)({ethAdapter:Re(this,Ot,"f"),chainId:r,customContracts:(e=Re(this,wt,"f").contractNetworks)==null?void 0:e[r.toString()],...Re(this,Rn,"f")})}if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");return await Re(this,wt,"f").safeContract.getAddress()}getContractManager(){return Re(this,wt,"f")}getEthAdapter(){return Re(this,Ot,"f")}async getMultiSendAddress(){return await Re(this,wt,"f").multiSendContract.getAddress()}async getMultiSendCallOnlyAddress(){return await Re(this,wt,"f").multiSendCallOnlyContract.getAddress()}async isSafeDeployed(){const e=await this.getAddress();return await Re(this,Ot,"f").isContractDeployed(e)}async getContractVersion(){var e,n;return Re(this,wt,"f").safeContract?Re(this,wt,"f").safeContract.getVersion():(n=(e=Re(this,Rn,"f"))==null?void 0:e.safeDeploymentConfig)!=null&&n.safeVersion?Promise.resolve(Re(this,Rn,"f").safeDeploymentConfig.safeVersion):Promise.resolve(hO.DEFAULT_SAFE_VERSION)}async getOwners(){var e;return(e=Re(this,Rn,"f"))!=null&&e.safeAccountConfig.owners?Promise.resolve(Re(this,Rn,"f").safeAccountConfig.owners):Re(this,Zs,"f").getOwners()}async getNonce(){return Re(this,wt,"f").safeContract?Re(this,wt,"f").safeContract.getNonce():Promise.resolve(0)}async getThreshold(){var e;return(e=Re(this,Rn,"f"))!=null&&e.safeAccountConfig.threshold?Promise.resolve(Re(this,Rn,"f").safeAccountConfig.threshold):Re(this,Zs,"f").getThreshold()}async getChainId(){return Re(this,Ot,"f").getChainId()}async getBalance(){return Re(this,Ot,"f").getBalance(await this.getAddress())}getFallbackHandler(){return Re(this,w0,"f").getFallbackHandler()}async getGuard(){return Re(this,v0,"f").getGuard()}async getModules(){return Re(this,Zu,"f").getModules()}async isModuleEnabled(e){return Re(this,Zu,"f").isModuleEnabled(e)}async isOwner(e){var n,r;return(n=Re(this,Rn,"f"))!=null&&n.safeAccountConfig.owners?Promise.resolve((r=Re(this,Rn,"f"))==null?void 0:r.safeAccountConfig.owners.some(a=>(0,qt.sameString)(a,e))):Re(this,Zs,"f").isOwner(e)}async createTransaction({transactions:e,onlyCalls:n=!1,options:r}){const a=await this.getContractVersion();if(Re(this,Rn,"f")&&!(0,qt.hasSafeFeature)(qt.SAFE_FEATURES.ACCOUNT_ABSTRACTION,a))throw new Error("Account Abstraction functionality is not available for Safes with version lower than v1.3.0");if(e.length===0)throw new Error("Invalid empty array of transactions");let i;if(e.length>1){const s=n?Re(this,wt,"f").multiSendCallOnlyContract:Re(this,wt,"f").multiSendContract,o=(0,cy.encodeMultiSendData)(e.map(cy.standardizeMetaTransactionData));i={...r,to:await s.getAddress(),value:"0",data:s.encode("multiSend",[o]),operation:Z9.OperationType.DelegateCall}}else i={...r,...e[0]};if(Re(this,Rn,"f"))return new yO.default(await(0,cy.standardizeSafeTransactionData)({predictedSafe:Re(this,Rn,"f"),ethAdapter:Re(this,Ot,"f"),tx:i,contractNetworks:Re(this,wt,"f").contractNetworks}));if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");return new yO.default(await(0,cy.standardizeSafeTransactionData)({safeContract:Re(this,wt,"f").safeContract,ethAdapter:Re(this,Ot,"f"),tx:i,contractNetworks:Re(this,wt,"f").contractNetworks}))}async createRejectionTransaction(e){const n={to:await this.getAddress(),value:"0",data:"0x"},r={nonce:e,safeTxGas:"0"};return this.createTransaction({transactions:[n],options:r})}async copyTransaction(e){const{to:n,value:r,data:a,operation:i,...s}=e.data,o={to:n,value:r,data:a,operation:i},c=await this.createTransaction({transactions:[o],options:s});return e.signatures.forEach(h=>{c.addSignature(h)}),c}async getTransactionHash(e){const n=await this.getAddress(),r=await this.getContractVersion(),a=await this.getChainId();return(0,qt.calculateSafeTransactionHash)(n,e.data,r,a)}async signHash(e){return await(0,qt.generateSignature)(Re(this,Ot,"f"),e)}createMessage(e){return new u9e.default(e)}async signMessage(e,n=bi.SigningMethod.ETH_SIGN_TYPED_DATA_V4,r){const a=await this.getOwners(),i=await Re(this,Ot,"f").getSignerAddress();if(!i)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!a.some(b=>i&&(0,qt.sameString)(b,i)))throw new Error("Messages can only be signed by Safe owners");const o=await this.getContractVersion();if(n===bi.SigningMethod.SAFE_SIGNATURE&&(0,A3.default)(o,mO)&&!r)throw new Error("The parent Safe account address is mandatory for contract signatures");let c;if(n===bi.SigningMethod.ETH_SIGN_TYPED_DATA_V4)c=await this.signTypedData(e,"v4");else if(n===bi.SigningMethod.ETH_SIGN_TYPED_DATA_V3)c=await this.signTypedData(e,"v3");else if(n===bi.SigningMethod.ETH_SIGN_TYPED_DATA)c=await this.signTypedData(e,void 0);else{const b=await this.getChainId();if(!(0,qt.hasSafeFeature)(qt.SAFE_FEATURES.ETH_SIGN,o))throw new Error("eth_sign is only supported by Safes >= v1.1.0");let v;if(n===bi.SigningMethod.SAFE_SIGNATURE&&r&&(0,A3.default)(o,mO)){const E=(0,qt.preimageSafeMessageHash)(r,(0,qt.hashSafeMessage)(e.data),o,b);v=await this.getSafeMessageHash(E)}else v=await this.getSafeMessageHash((0,qt.hashSafeMessage)(e.data));c=await this.signHash(v)}const h=this.createMessage(e.data);return e.signatures.forEach(b=>{h.addSignature(b)}),h.addSignature(c),h}async signTypedData(e,n){const r={safeAddress:await this.getAddress(),safeVersion:await this.getContractVersion(),chainId:await this.getEthAdapter().getChainId(),data:e.data};return(0,qt.generateEIP712Signature)(Re(this,Ot,"f"),r,n)}async signTransaction(e,n=bi.SigningMethod.ETH_SIGN_TYPED_DATA_V4,r){const a=(0,qt.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,i=await this.getOwners(),s=await Re(this,Ot,"f").getSignerAddress();if(!s)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!i.some(v=>s&&(0,qt.sameString)(v,s)))throw new Error("Transactions can only be signed by Safe owners");const c=await this.getContractVersion();if(n===bi.SigningMethod.SAFE_SIGNATURE&&(0,A3.default)(c,bO)&&!r)throw new Error("The parent Safe account address is mandatory for contract signatures");let h;if(n===bi.SigningMethod.ETH_SIGN_TYPED_DATA_V4)h=await this.signTypedData(a,"v4");else if(n===bi.SigningMethod.ETH_SIGN_TYPED_DATA_V3)h=await this.signTypedData(a,"v3");else if(n===bi.SigningMethod.ETH_SIGN_TYPED_DATA)h=await this.signTypedData(a,void 0);else{const v=await this.getContractVersion(),E=await this.getChainId();if(!(0,qt.hasSafeFeature)(qt.SAFE_FEATURES.ETH_SIGN,v))throw new Error("eth_sign is only supported by Safes >= v1.1.0");let C;if(n===bi.SigningMethod.SAFE_SIGNATURE&&(0,A3.default)(v,bO)&&r){const F=(0,qt.preimageSafeTransactionHash)(r,e.data,v,E);C=await this.getSafeMessageHash(F)}else C=await this.getTransactionHash(a);h=await this.signHash(C)}const b=await this.copyTransaction(a);return b.addSignature(h),b}async approveTransactionHash(e,n){if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const r=await this.getOwners(),a=await Re(this,Ot,"f").getSignerAddress();if(!a)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!r.some(s=>a&&(0,qt.sameString)(s,a)))throw new Error("Transaction hashes can only be approved by Safe owners");if(n!=null&&n.gas&&(n!=null&&n.gasLimit))throw new Error("Cannot specify gas and gasLimit together in transaction options");return Re(this,wt,"f").safeContract.approveHash(e,{from:a,...n})}async getOwnersWhoApprovedTx(e){if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const n=await this.getOwners(),r=[];for(const a of n)await Re(this,wt,"f").safeContract.approvedHashes(a,e)>0&&r.push(a);return r}async createEnableFallbackHandlerTx(e,n){const r={to:await this.getAddress(),value:"0",data:await Re(this,w0,"f").encodeEnableFallbackHandlerData(e)};return await this.createTransaction({transactions:[r],options:n})}async createDisableFallbackHandlerTx(e){const n={to:await this.getAddress(),value:"0",data:await Re(this,w0,"f").encodeDisableFallbackHandlerData()};return await this.createTransaction({transactions:[n],options:e})}async createEnableGuardTx(e,n){const r={to:await this.getAddress(),value:"0",data:await Re(this,v0,"f").encodeEnableGuardData(e)};return await this.createTransaction({transactions:[r],options:n})}async createDisableGuardTx(e){const n={to:await this.getAddress(),value:"0",data:await Re(this,v0,"f").encodeDisableGuardData()};return await this.createTransaction({transactions:[n],options:e})}async createEnableModuleTx(e,n){const r={to:await this.getAddress(),value:"0",data:await Re(this,Zu,"f").encodeEnableModuleData(e)};return await this.createTransaction({transactions:[r],options:n})}async createDisableModuleTx(e,n){const r={to:await this.getAddress(),value:"0",data:await Re(this,Zu,"f").encodeDisableModuleData(e)};return await this.createTransaction({transactions:[r],options:n})}async createAddOwnerTx({ownerAddress:e,threshold:n},r){const a={to:await this.getAddress(),value:"0",data:await Re(this,Zs,"f").encodeAddOwnerWithThresholdData(e,n)};return await this.createTransaction({transactions:[a],options:r})}async createRemoveOwnerTx({ownerAddress:e,threshold:n},r){const a={to:await this.getAddress(),value:"0",data:await Re(this,Zs,"f").encodeRemoveOwnerData(e,n)};return await this.createTransaction({transactions:[a],options:r})}async createSwapOwnerTx({oldOwnerAddress:e,newOwnerAddress:n},r){const a={to:await this.getAddress(),value:"0",data:await Re(this,Zs,"f").encodeSwapOwnerData(e,n)};return await this.createTransaction({transactions:[a],options:r})}async createChangeThresholdTx(e,n){const r={to:await this.getAddress(),value:"0",data:await Re(this,Zs,"f").encodeChangeThresholdData(e)};return await this.createTransaction({transactions:[r],options:n})}async toSafeTransactionType(e){var i;const n={to:e.to,value:e.value,data:e.data||"0x",operation:e.operation},r={safeTxGas:e.safeTxGas.toString(),baseGas:e.baseGas.toString(),gasPrice:e.gasPrice,gasToken:e.gasToken,refundReceiver:e.refundReceiver,nonce:e.nonce},a=await this.createTransaction({transactions:[n],options:r});return(i=e.confirmations)==null||i.map(s=>{const o=new qt.EthSafeSignature(s.owner,s.signature);a.addSignature(o)}),a}async isValidTransaction(e,n){if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const r=(0,qt.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.copyTransaction(r),i=await this.getTransactionHash(a),s=await this.getOwnersWhoApprovedTx(i);for(const b of s)a.addSignature((0,qt.generatePreValidatedSignature)(b));const o=await this.getOwners(),c=await Re(this,Ot,"f").getSignerAddress();if(!c)throw new Error("EthAdapter must be initialized with a signer to use this method");return o.includes(c)&&a.addSignature((0,qt.generatePreValidatedSignature)(c)),await Re(this,wt,"f").safeContract.isValidTransaction(a,{from:c,...n})}async executeTransaction(e,n){if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const r=(0,qt.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.copyTransaction(r),i=await this.getTransactionHash(a),s=await this.getOwnersWhoApprovedTx(i);for(const E of s)a.addSignature((0,qt.generatePreValidatedSignature)(E));const o=await this.getOwners(),c=await this.getThreshold(),h=await Re(this,Ot,"f").getSignerAddress();if(c>a.signatures.size&&h&&o.includes(h)&&a.addSignature((0,qt.generatePreValidatedSignature)(h)),c>a.signatures.size){const E=c-a.signatures.size;throw new Error(`There ${E>1?"are":"is"} ${E} signature${E>1?"s":""} missing`)}const b=BigInt(a.data.value);if(b!==0n){const E=await this.getBalance();if(b>E)throw new Error("Not enough Ether funds")}if(n!=null&&n.gas&&(n!=null&&n.gasLimit))throw new Error("Cannot specify gas and gasLimit together in transaction options");return await Re(this,wt,"f").safeContract.execTransaction(a,{from:h,...n})}async getEncodedTransaction(e){var c;const n=await this.getContractVersion(),r=await this.getChainId(),a=(c=Re(this,wt,"f").contractNetworks)==null?void 0:c[r.toString()],i=Re(this,wt,"f").isL1SafeSingleton;return(await(0,ly.getSafeContract)({ethAdapter:Re(this,Ot,"f"),safeVersion:n,isL1SafeSingleton:i,customContracts:a})).encode("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()])}async wrapSafeTransactionIntoDeploymentBatch(e,n,r){if(await this.isSafeDeployed())throw new Error("Safe already deployed");const i=await this.createSafeDeploymentTransaction(r),s={to:i.to,value:i.value,data:i.data,operation:Z9.OperationType.Call},o={to:await this.getAddress(),value:"0",data:await this.getEncodedTransaction(e),operation:Z9.OperationType.Call},c=[s,o];return await this.createTransactionBatch(c,n)}async createSafeDeploymentTransaction(e,n){var T;if(!Re(this,Rn,"f"))throw new Error("Predict Safe should be present");const{safeAccountConfig:r,safeDeploymentConfig:a}=Re(this,Rn,"f"),i=await this.getContractVersion(),s=Re(this,Ot,"f"),o=await s.getChainId(),c=Re(this,wt,"f").isL1SafeSingleton,h=(T=Re(this,wt,"f").contractNetworks)==null?void 0:T[o.toString()],b=await(0,ly.getSafeContract)({ethAdapter:Re(this,Ot,"f"),safeVersion:i,isL1SafeSingleton:c,customContracts:h}),v=await(0,ly.getProxyFactoryContract)({ethAdapter:s,safeVersion:i,customContracts:h}),E=await(0,Q9.encodeSetupCallData)({ethAdapter:s,safeContract:b,safeAccountConfig:r,customContracts:h}),C=e||(a==null?void 0:a.saltNonce)||(0,Q9.getChainSpecificDefaultSaltNonce)(o);return{...n,to:await v.getAddress(),value:"0",data:v.encode("createProxyWithNonce",[await b.getAddress(),E,C])}}async createTransactionBatch(e,n){var o;const r=await Re(this,Ot,"f").getChainId(),a=await(0,ly.getMultiSendCallOnlyContract)({ethAdapter:Re(this,Ot,"f"),safeVersion:await this.getContractVersion(),customContracts:(o=Re(this,wt,"f").contractNetworks)==null?void 0:o[r.toString()]}),i=a.encode("multiSend",[(0,cy.encodeMultiSendData)(e)]);return{...n,to:await a.getAddress(),value:"0",data:i}}async getFallbackHandlerContract(){var a;if(!Re(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const e=await Re(this,wt,"f").safeContract.getVersion()??hO.DEFAULT_SAFE_VERSION,n=await Re(this,Ot,"f").getChainId();return await(0,ly.getCompatibilityFallbackHandlerContract)({ethAdapter:Re(this,Ot,"f"),safeVersion:e,customContracts:(a=Re(this,wt,"f").contractNetworks)==null?void 0:a[n.toString()]})}};Rn=new WeakMap,Ot=new WeakMap,wt=new WeakMap,Zs=new WeakMap,Zu=new WeakMap,v0=new WeakMap,w0=new WeakMap,DE=new WeakMap,kE=new WeakMap;Tx.default=f9e;var Xr={},eS={},yr={},L4={};Object.defineProperty(L4,"__esModule",{value:!0});L4.Gnosis_safe__factory=void 0;const gO=an,IE=[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}];let hW=class{static createInterface(){return new gO.Interface(IE)}static connect(e,n){return new gO.Contract(e,IE,n)}};L4.Gnosis_safe__factory=hW;hW.abi=IE;var U4={};Object.defineProperty(U4,"__esModule",{value:!0});U4.Proxy_factory__factory=void 0;const xO=an,OE=[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}];let pW=class{static createInterface(){return new xO.Interface(OE)}static connect(e,n){return new xO.Contract(e,OE,n)}};U4.Proxy_factory__factory=pW;pW.abi=OE;var j4={};Object.defineProperty(j4,"__esModule",{value:!0});j4.Gnosis_safe__factory=void 0;const vO=an,PE=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}];let yW=class{static createInterface(){return new vO.Interface(PE)}static connect(e,n){return new vO.Contract(e,PE,n)}};j4.Gnosis_safe__factory=yW;yW.abi=PE;var H4={};Object.defineProperty(H4,"__esModule",{value:!0});H4.Multi_send__factory=void 0;const wO=an,RE=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}];let mW=class{static createInterface(){return new wO.Interface(RE)}static connect(e,n){return new wO.Contract(e,RE,n)}};H4.Multi_send__factory=mW;mW.abi=RE;var z4={};Object.defineProperty(z4,"__esModule",{value:!0});z4.Proxy_factory__factory=void 0;const EO=an,NE=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}];let bW=class{static createInterface(){return new EO.Interface(NE)}static connect(e,n){return new EO.Contract(e,NE,n)}};z4.Proxy_factory__factory=bW;bW.abi=NE;var G4={};Object.defineProperty(G4,"__esModule",{value:!0});G4.Gnosis_safe__factory=void 0;const AO=an,$E=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}];let gW=class{static createInterface(){return new AO.Interface($E)}static connect(e,n){return new AO.Contract(e,$E,n)}};G4.Gnosis_safe__factory=gW;gW.abi=$E;var V4={};Object.defineProperty(V4,"__esModule",{value:!0});V4.Compatibility_fallback_handler__factory=void 0;const _O=an,LE=[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}];let xW=class{static createInterface(){return new _O.Interface(LE)}static connect(e,n){return new _O.Contract(e,LE,n)}};V4.Compatibility_fallback_handler__factory=xW;xW.abi=LE;var q4={};Object.defineProperty(q4,"__esModule",{value:!0});q4.Create_call__factory=void 0;const CO=an,UE=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}];let vW=class{static createInterface(){return new CO.Interface(UE)}static connect(e,n){return new CO.Contract(e,UE,n)}};q4.Create_call__factory=vW;vW.abi=UE;var W4={};Object.defineProperty(W4,"__esModule",{value:!0});W4.Gnosis_safe__factory=void 0;const BO=an,jE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];class wW{static createInterface(){return new BO.Interface(jE)}static connect(e,n){return new BO.Contract(e,jE,n)}}W4.Gnosis_safe__factory=wW;wW.abi=jE;var K4={};Object.defineProperty(K4,"__esModule",{value:!0});K4.Multi_send__factory=void 0;const SO=an,HE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];let EW=class{static createInterface(){return new SO.Interface(HE)}static connect(e,n){return new SO.Contract(e,HE,n)}};K4.Multi_send__factory=EW;EW.abi=HE;var Z4={};Object.defineProperty(Z4,"__esModule",{value:!0});Z4.Multi_send_call_only__factory=void 0;const TO=an,zE=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];let AW=class{static createInterface(){return new TO.Interface(zE)}static connect(e,n){return new TO.Contract(e,zE,n)}};Z4.Multi_send_call_only__factory=AW;AW.abi=zE;var Q4={};Object.defineProperty(Q4,"__esModule",{value:!0});Q4.Proxy_factory__factory=void 0;const FO=an,GE=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}];class _W{static createInterface(){return new FO.Interface(GE)}static connect(e,n){return new FO.Contract(e,GE,n)}}Q4.Proxy_factory__factory=_W;_W.abi=GE;var X4={};Object.defineProperty(X4,"__esModule",{value:!0});X4.Sign_message_lib__factory=void 0;const MO=an,VE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}];let CW=class{static createInterface(){return new MO.Interface(VE)}static connect(e,n){return new MO.Contract(e,VE,n)}};X4.Sign_message_lib__factory=CW;CW.abi=VE;var J4={};Object.defineProperty(J4,"__esModule",{value:!0});J4.Simulate_tx_accessor__factory=void 0;const DO=an,qE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}];let BW=class{static createInterface(){return new DO.Interface(qE)}static connect(e,n){return new DO.Contract(e,qE,n)}};J4.Simulate_tx_accessor__factory=BW;BW.abi=qE;var Y4={};Object.defineProperty(Y4,"__esModule",{value:!0});Y4.Compatibility_fallback_handler__factory=void 0;const kO=an,WE=[{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"encodeMessageDataForSafe",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}];class SW{static createInterface(){return new kO.Interface(WE)}static connect(e,n){return new kO.Contract(e,WE,n)}}Y4.Compatibility_fallback_handler__factory=SW;SW.abi=WE;var e5={};Object.defineProperty(e5,"__esModule",{value:!0});e5.Create_call__factory=void 0;const IO=an,KE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}];class TW{static createInterface(){return new IO.Interface(KE)}static connect(e,n){return new IO.Contract(e,KE,n)}}e5.Create_call__factory=TW;TW.abi=KE;var t5={};Object.defineProperty(t5,"__esModule",{value:!0});t5.Multi_send__factory=void 0;const OO=an,ZE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];class FW{static createInterface(){return new OO.Interface(ZE)}static connect(e,n){return new OO.Contract(e,ZE,n)}}t5.Multi_send__factory=FW;FW.abi=ZE;var n5={};Object.defineProperty(n5,"__esModule",{value:!0});n5.Multi_send_call_only__factory=void 0;const PO=an,QE=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];class MW{static createInterface(){return new PO.Interface(QE)}static connect(e,n){return new PO.Contract(e,QE,n)}}n5.Multi_send_call_only__factory=MW;MW.abi=QE;var r5={};Object.defineProperty(r5,"__esModule",{value:!0});r5.Safe__factory=void 0;const RO=an,XE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];class DW{static createInterface(){return new RO.Interface(XE)}static connect(e,n){return new RO.Contract(e,XE,n)}}r5.Safe__factory=DW;DW.abi=XE;var a5={};Object.defineProperty(a5,"__esModule",{value:!0});a5.Safe_proxy_factory__factory=void 0;const NO=an,JE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"contract SafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createChainSpecificProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}];class kW{static createInterface(){return new NO.Interface(JE)}static connect(e,n){return new NO.Contract(e,JE,n)}}a5.Safe_proxy_factory__factory=kW;kW.abi=JE;var i5={};Object.defineProperty(i5,"__esModule",{value:!0});i5.Sign_message_lib__factory=void 0;const $O=an,YE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}];class IW{static createInterface(){return new $O.Interface(YE)}static connect(e,n){return new $O.Contract(e,YE,n)}}i5.Sign_message_lib__factory=IW;IW.abi=YE;var s5={};Object.defineProperty(s5,"__esModule",{value:!0});s5.Simulate_tx_accessor__factory=void 0;const LO=an,eA=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}];class OW{static createInterface(){return new LO.Interface(eA)}static connect(e,n){return new LO.Contract(e,eA,n)}}s5.Simulate_tx_accessor__factory=OW;OW.abi=eA;var tS={},o5={};Object.defineProperty(o5,"__esModule",{value:!0});class d9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}o5.default=d9e;var h9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tS,"__esModule",{value:!0});const p9e=h9e(o5);class y9e extends p9e.default{constructor(e){super(e),this.contract=e}}tS.default=y9e;var nS={},m9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nS,"__esModule",{value:!0});const b9e=m9e(o5);class g9e extends b9e.default{constructor(e){super(e),this.contract=e}}nS.default=g9e;var rS={},m2={},wr={};Object.defineProperty(wr,"__esModule",{value:!0});wr.isSignerCompatible=wr.isTypedDataSigner=wr.toTxResult=wr.sameString=void 0;function x9e(t,e){return t.toLowerCase()===e.toLowerCase()}wr.sameString=x9e;function v9e(t,e){return{hash:t.hash,options:e,transactionResponse:t}}wr.toTxResult=v9e;function w9e(t){return t.signTypedData!==void 0}wr.isTypedDataSigner=w9e;function E9e(t){const e=t,n=typeof e.signTransaction=="function",r=typeof e.signMessage=="function",a=typeof e.getAddress=="function";return n&&r&&a}wr.isSignerCompatible=E9e;Object.defineProperty(m2,"__esModule",{value:!0});const UO=wr;class A9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}async performCreate2(e,n,r,a){a&&!a.gasLimit&&(a.gasLimit=await this.estimateGas("performCreate2",[e,n,r],{...a}));const i=await this.contract.performCreate2(e,n,r);return(0,UO.toTxResult)(i,a)}async performCreate(e,n,r){r&&!r.gasLimit&&(r.gasLimit=await this.estimateGas("performCreate",[e,n],{...r}));const a=await this.contract.performCreate(e,n,{...r});return(0,UO.toTxResult)(a,r)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}m2.default=A9e;var _9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rS,"__esModule",{value:!0});const C9e=_9e(m2);class B9e extends C9e.default{constructor(e){super(e),this.contract=e}}rS.default=B9e;var aS={},S9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(aS,"__esModule",{value:!0});const T9e=S9e(m2);class F9e extends T9e.default{constructor(e){super(e),this.contract=e}}aS.default=F9e;var iS={},x1={};Object.defineProperty(x1,"__esModule",{value:!0});class M9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}x1.default=M9e;var D9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(iS,"__esModule",{value:!0});const k9e=D9e(x1);class I9e extends k9e.default{constructor(e){super(e),this.contract=e}}iS.default=I9e;var sS={},O9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sS,"__esModule",{value:!0});const P9e=O9e(x1);class R9e extends P9e.default{constructor(e){super(e),this.contract=e}}sS.default=R9e;var oS={},N9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oS,"__esModule",{value:!0});const $9e=N9e(x1);class L9e extends $9e.default{constructor(e){super(e),this.contract=e}}oS.default=L9e;var cS={},b2={};Object.defineProperty(b2,"__esModule",{value:!0});class U9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}b2.default=U9e;var j9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cS,"__esModule",{value:!0});const H9e=j9e(b2);class z9e extends H9e.default{constructor(e){super(e),this.contract=e}}cS.default=z9e;var lS={},G9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lS,"__esModule",{value:!0});const V9e=G9e(b2);class q9e extends V9e.default{constructor(e){super(e),this.contract=e}}lS.default=q9e;var uS={},qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.SENTINEL_ADDRESS=qi.EMPTY_DATA=qi.ZERO_ADDRESS=void 0;qi.ZERO_ADDRESS=`0x${"0".repeat(40)}`;qi.EMPTY_DATA="0x";qi.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001";var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});const jO=wr;class W9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}async getVersion(){return await this.contract.VERSION()}getAddress(){return this.contract.getAddress()}async getNonce(){return Number(await this.contract.nonce())}async getThreshold(){return Number(await this.contract.getThreshold())}async getOwners(){return this.contract.getOwners()}async isOwner(e){return this.contract.isOwner(e)}async getTransactionHash(e){return this.contract.getTransactionHash(e.to,e.value,e.data,e.operation,e.safeTxGas,e.baseGas,e.gasPrice,e.gasToken,e.refundReceiver,e.nonce)}async approvedHashes(e,n){return this.contract.approvedHashes(e,n)}async approveHash(e,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("approveHash",[e],{...n}));const r=await this.contract.approveHash(e,{...n});return(0,jO.toTxResult)(r,n)}async isValidTransaction(e,n){let r=!1;try{n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n})),r=await this.contract.execTransaction.staticCall(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures(),{...n})}catch{}return r}async execTransaction(e,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n}));const r=await this.contract.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures(),{...n});return(0,jO.toTxResult)(r,n)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}Ou.default=W9e;var K9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uS,"__esModule",{value:!0});const HO=wr,_3=qi,Z9e=K9e(Ou);class Q9e extends Z9e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=_3.ZERO_ADDRESS,data:s=_3.EMPTY_DATA,paymentToken:o=_3.ZERO_ADDRESS,payment:c=0,paymentReceiver:h=_3.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h],{...n}));const b=await this.contract.setup(r,a,i,s,o,c,h,{...n});return(0,HO.toTxResult)(b,n)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,HO.sameString)(a,e))}}uS.default=Q9e;var fS={},X9e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fS,"__esModule",{value:!0});const zO=wr,uy=qi,J9e=X9e(Ou);class Y9e extends J9e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=uy.ZERO_ADDRESS,data:s=uy.EMPTY_DATA,fallbackHandler:o=uy.ZERO_ADDRESS,paymentToken:c=uy.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=uy.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,zO.toTxResult)(v,n)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,zO.sameString)(a,e))}}fS.default=Y9e;var dS={},e7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dS,"__esModule",{value:!0});const t7e=wr,fy=qi,n7e=e7e(Ou);class r7e extends n7e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=fy.ZERO_ADDRESS,data:s=fy.EMPTY_DATA,fallbackHandler:o=fy.ZERO_ADDRESS,paymentToken:c=fy.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=fy.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,t7e.toTxResult)(v,n)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}}dS.default=r7e;var hS={},a7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hS,"__esModule",{value:!0});const i7e=wr,l0=qi,s7e=a7e(Ou);class o7e extends s7e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=l0.ZERO_ADDRESS,data:s=l0.EMPTY_DATA,fallbackHandler:o=l0.ZERO_ADDRESS,paymentToken:c=l0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=l0.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,i7e.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.getModulesPaginated(l0.SENTINEL_ADDRESS,10);return e}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}}hS.default=o7e;var pS={},c7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pS,"__esModule",{value:!0});const l7e=wr,u0=qi,u7e=c7e(Ou);class f7e extends u7e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=u0.ZERO_ADDRESS,data:s=u0.EMPTY_DATA,fallbackHandler:o=u0.ZERO_ADDRESS,paymentToken:c=u0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=u0.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,l7e.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.getModulesPaginated(u0.SENTINEL_ADDRESS,10);return e}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}}pS.default=f7e;var yS={},$d={};Object.defineProperty($d,"__esModule",{value:!0});class d7e{constructor(e){this.contract=e}getAddress(){return this.contract.getAddress()}async proxyCreationCode(){return this.contract.proxyCreationCode()}async createProxy({safeSingletonAddress:e,initializer:n,saltNonce:r,options:a,callback:i}){if(BigInt(r)<0)throw new Error("saltNonce must be greater than or equal to 0");return a&&!a.gasLimit&&(a.gasLimit=await this.estimateGas("createProxyWithNonce",[e,n,r],{...a})),this.contract.createProxyWithNonce(e,n,r,{...a}).then(async o=>{i&&i(o.hash);const c=await o.wait(),b=(c==null?void 0:c.logs).find(E=>(E==null?void 0:E.eventName)==="ProxyCreation");if(!b||!b.args)throw new Error("SafeProxy was not deployed correctly");return b.args[0]})}encode(e,n){return this.contract.interface.encodeFunctionData(e,n)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}$d.default=d7e;var h7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yS,"__esModule",{value:!0});const p7e=h7e($d);class y7e extends p7e.default{constructor(e){super(e),this.contract=e}}yS.default=y7e;var mS={},m7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mS,"__esModule",{value:!0});const b7e=m7e($d);class g7e extends b7e.default{constructor(e){super(e),this.contract=e}}mS.default=g7e;var bS={},x7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bS,"__esModule",{value:!0});const v7e=x7e($d);class w7e extends v7e.default{constructor(e){super(e),this.contract=e}}bS.default=w7e;var gS={},E7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gS,"__esModule",{value:!0});const A7e=E7e($d);class _7e extends A7e.default{constructor(e){super(e),this.contract=e}}gS.default=_7e;var xS={},g2={};Object.defineProperty(g2,"__esModule",{value:!0});const C7e=wr;class B7e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}async signMessage(e,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("signMessage",[e],{...n}));const r=await this.contract.signMessage(e,{...n});return(0,C7e.toTxResult)(r,n)}async getMessageHash(e){return this.contract.getMessageHash(e)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}g2.default=B7e;var S7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xS,"__esModule",{value:!0});const T7e=S7e(g2);class F7e extends T7e.default{constructor(e){super(e),this.contract=e}}xS.default=F7e;var vS={},M7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vS,"__esModule",{value:!0});const D7e=M7e(g2);class k7e extends D7e.default{constructor(e){super(e),this.contract=e}}vS.default=k7e;var wS={},c5={};Object.defineProperty(c5,"__esModule",{value:!0});class I7e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}c5.default=I7e;var O7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wS,"__esModule",{value:!0});const P7e=O7e(c5);class R7e extends P7e.default{constructor(e){super(e),this.contract=e}}wS.default=R7e;var ES={},N7e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ES,"__esModule",{value:!0});const $7e=N7e(c5);class L7e extends $7e.default{constructor(e){super(e),this.contract=e}}ES.default=L7e;var In=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yr,"__esModule",{value:!0});yr.getSimulateTxAccessorContractInstance=yr.getCreateCallContractInstance=yr.getSignMessageLibContractInstance=yr.getSafeProxyFactoryContractInstance=yr.getMultiSendCallOnlyContractInstance=yr.getMultiSendContractInstance=yr.getCompatibilityFallbackHandlerContractInstance=yr.getSafeContractInstance=void 0;const U7e=L4,j7e=U4,H7e=j4,z7e=H4,G7e=z4,V7e=G4,q7e=V4,W7e=q4,K7e=W4,Z7e=K4,Q7e=Z4,X7e=Q4,J7e=X4,Y7e=J4,ewe=Y4,twe=e5,nwe=t5,rwe=n5,awe=r5,iwe=a5,swe=i5,owe=s5,cwe=In(tS),lwe=In(nS),uwe=In(rS),fwe=In(aS),dwe=In(iS),hwe=In(sS),pwe=In(oS),ywe=In(cS),mwe=In(lS),bwe=In(uS),gwe=In(fS),xwe=In(dS),vwe=In(hS),wwe=In(pS),Ewe=In(yS),Awe=In(mS),_we=In(bS),Cwe=In(gS),Bwe=In(xS),Swe=In(vS),Twe=In(wS),Fwe=In(ES);function Mwe(t,e,n){let r;switch(t){case"1.4.1":return r=awe.Safe__factory.connect(e,n),new wwe.default(r);case"1.3.0":return r=K7e.Gnosis_safe__factory.connect(e,n),new vwe.default(r);case"1.2.0":return r=V7e.Gnosis_safe__factory.connect(e,n),new xwe.default(r);case"1.1.1":return r=H7e.Gnosis_safe__factory.connect(e,n),new gwe.default(r);case"1.0.0":return r=U7e.Gnosis_safe__factory.connect(e,n),new bwe.default(r);default:throw new Error("Invalid Safe version")}}yr.getSafeContractInstance=Mwe;function Dwe(t,e,n){let r;switch(t){case"1.4.1":return r=ewe.Compatibility_fallback_handler__factory.connect(e,n),new lwe.default(r);case"1.3.0":case"1.2.0":case"1.1.1":return r=q7e.Compatibility_fallback_handler__factory.connect(e,n),new cwe.default(r);default:throw new Error("Invalid Safe version")}}yr.getCompatibilityFallbackHandlerContractInstance=Dwe;function kwe(t,e,n){let r;switch(t){case"1.4.1":return r=nwe.Multi_send__factory.connect(e,n),new pwe.default(r);case"1.3.0":return r=Z7e.Multi_send__factory.connect(e,n),new hwe.default(r);case"1.2.0":case"1.1.1":case"1.0.0":return r=z7e.Multi_send__factory.connect(e,n),new dwe.default(r);default:throw new Error("Invalid Safe version")}}yr.getMultiSendContractInstance=kwe;function Iwe(t,e,n){let r;switch(t){case"1.4.1":return r=rwe.Multi_send_call_only__factory.connect(e,n),new mwe.default(r);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return r=Q7e.Multi_send_call_only__factory.connect(e,n),new ywe.default(r);default:throw new Error("Invalid Safe version")}}yr.getMultiSendCallOnlyContractInstance=Iwe;function Owe(t,e,n){let r;switch(t){case"1.4.1":return r=iwe.Safe_proxy_factory__factory.connect(e,n),new Cwe.default(r);case"1.3.0":return r=X7e.Proxy_factory__factory.connect(e,n),new _we.default(r);case"1.2.0":case"1.1.1":return r=G7e.Proxy_factory__factory.connect(e,n),new Awe.default(r);case"1.0.0":return r=j7e.Proxy_factory__factory.connect(e,n),new Ewe.default(r);default:throw new Error("Invalid Safe version")}}yr.getSafeProxyFactoryContractInstance=Owe;function Pwe(t,e,n){let r;switch(t){case"1.4.1":return r=swe.Sign_message_lib__factory.connect(e,n),new Swe.default(r);case"1.3.0":return r=J7e.Sign_message_lib__factory.connect(e,n),new Bwe.default(r);default:throw new Error("Invalid Safe version")}}yr.getSignMessageLibContractInstance=Pwe;function Rwe(t,e,n){let r;switch(t){case"1.4.1":return r=twe.Create_call__factory.connect(e,n),new fwe.default(r);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return r=W7e.Create_call__factory.connect(e,n),new uwe.default(r);default:throw new Error("Invalid Safe version")}}yr.getCreateCallContractInstance=Rwe;function Nwe(t,e,n){let r;switch(t){case"1.4.1":return r=owe.Simulate_tx_accessor__factory.connect(e,n),new Fwe.default(r);case"1.3.0":return r=Y7e.Simulate_tx_accessor__factory.connect(e,n),new Twe.default(r);default:throw new Error("Invalid Safe version")}}yr.getSimulateTxAccessorContractInstance=Nwe;var C3=he&&he.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},St=he&&he.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},yl,ur,Sn;Object.defineProperty(eS,"__esModule",{value:!0});const GO=Nd(),fl=yr,VO=wr;class $we{constructor({ethers:e,signerOrProvider:n}){if(yl.set(this,void 0),ur.set(this,void 0),Sn.set(this,void 0),!e)throw new Error("ethers property missing from options");if(C3(this,yl,e,"f"),(0,VO.isSignerCompatible)(n)){const a=n;if(!a.provider)throw new Error("Signer must be connected to a provider");C3(this,Sn,a.provider,"f"),C3(this,ur,a,"f")}else C3(this,Sn,n,"f")}getProvider(){return St(this,Sn,"f")}getSigner(){return St(this,ur,"f")}isAddress(e){return St(this,yl,"f").isAddress(e)}async getEip3770Address(e){const n=await this.getChainId();return(0,GO.validateEip3770Address)(e,n)}async getBalance(e,n){return St(this,Sn,"f").getBalance(e,n)}async getNonce(e,n){return St(this,Sn,"f").getTransactionCount(e,n)}async getChainId(){return(await St(this,Sn,"f").getNetwork()).chainId}getChecksummedAddress(e){return St(this,yl,"f").getAddress(e)}async getSafeContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SafeProxy contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getSafeContractInstance)(e,i,s)}async getSafeProxyFactoryContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SafeProxyFactory contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getSafeProxyFactoryContractInstance)(e,i,s)}async getMultiSendContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid MultiSend contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getMultiSendContractInstance)(e,i,s)}async getMultiSendCallOnlyContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid MultiSendCallOnly contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getMultiSendCallOnlyContractInstance)(e,i,s)}async getCompatibilityFallbackHandlerContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid CompatibilityFallbackHandler contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getCompatibilityFallbackHandlerContractInstance)(e,i,s)}async getSignMessageLibContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SignMessageLib contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getSignMessageLibContractInstance)(e,i,s)}async getCreateCallContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid CreateCall contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getCreateCallContractInstance)(e,i,s)}async getSimulateTxAccessorContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SimulateTxAccessor contract address");const s=St(this,ur,"f")||St(this,Sn,"f");return(0,fl.getSimulateTxAccessorContractInstance)(e,i,s)}async getContractCode(e,n){return St(this,Sn,"f").getCode(e,n)}async isContractDeployed(e,n){return await St(this,Sn,"f").getCode(e,n)!=="0x"}async getStorageAt(e,n){const r=await St(this,Sn,"f").getStorage(e,n);return this.decodeParameters(["address"],r)[0]}async getTransaction(e){return St(this,Sn,"f").getTransaction(e)}async getSignerAddress(){var e;return(e=St(this,ur,"f"))==null?void 0:e.getAddress()}signMessage(e){if(!St(this,ur,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");const n=St(this,yl,"f").getBytes(e);return St(this,ur,"f").signMessage(n)}async signTypedData(e){if(!St(this,ur,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");if((0,VO.isTypedDataSigner)(St(this,ur,"f"))){const n=(0,GO.generateTypedData)(e);return await St(this,ur,"f").signTypedData(n.domain,n.primaryType==="SafeMessage"?{SafeMessage:n.types.SafeMessage}:{SafeTx:n.types.SafeTx},n.message)}throw new Error("The current signer does not implement EIP-712 to sign typed data")}async estimateGas(e){return(await St(this,Sn,"f").estimateGas(e)).toString()}call(e,n){return St(this,Sn,"f").call({...e,blockTag:n})}encodeParameters(e,n){return new(St(this,yl,"f")).AbiCoder().encode(e,n)}decodeParameters(e,n){return new(St(this,yl,"f")).AbiCoder().decode(e,n)}}yl=new WeakMap,ur=new WeakMap,Sn=new WeakMap;eS.default=$we;var Ld=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.SignMessageLibEthersContract=Xr.SafeProxyFactoryEthersContract=Xr.SafeContractEthers=Xr.MultiSendEthersContract=Xr.MultiSendCallOnlyEthersContract=Xr.EthersAdapter=Xr.CreateCallEthersContract=void 0;const Lwe=Ld(eS);Xr.EthersAdapter=Lwe.default;const Uwe=Ld(m2);Xr.CreateCallEthersContract=Uwe.default;const jwe=Ld(x1);Xr.MultiSendEthersContract=jwe.default;const Hwe=Ld(b2);Xr.MultiSendCallOnlyEthersContract=Hwe.default;const zwe=Ld(Ou);Xr.SafeContractEthers=zwe.default;const Gwe=Ld($d);Xr.SafeProxyFactoryEthersContract=Gwe.default;const Vwe=Ld(g2);Xr.SignMessageLibEthersContract=Vwe.default;var Jr={},AS={},mr={},_S={},l5={};Object.defineProperty(l5,"__esModule",{value:!0});class qwe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}l5.default=qwe;var Wwe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_S,"__esModule",{value:!0});const Kwe=Wwe(l5);class Zwe extends Kwe.default{constructor(e){super(e),this.contract=e}}_S.default=Zwe;var CS={},Qwe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CS,"__esModule",{value:!0});const Xwe=Qwe(l5);class Jwe extends Xwe.default{constructor(e){super(e),this.contract=e}}CS.default=Jwe;var BS={},x2={},Ua={};Object.defineProperty(Ua,"__esModule",{value:!0});Ua.toTxResult=Ua.sameString=void 0;function Ywe(t,e){return t.toLowerCase()===e.toLowerCase()}Ua.sameString=Ywe;async function eEe(t,e){return new Promise((n,r)=>t.once("transactionHash",a=>n({hash:a,promiEvent:t,options:e})).catch(r))}Ua.toTxResult=eEe;Object.defineProperty(x2,"__esModule",{value:!0});const qO=Ua;class tEe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}async performCreate2(e,n,r,a){a&&!a.gas&&(a.gas=await this.estimateGas("performCreate2",[e,n,r],{...a}));const i=this.contract.methods.performCreate2(e,n,r).send(a);return(0,qO.toTxResult)(i,a)}async performCreate(e,n,r){r&&!r.gas&&(r.gas=await this.estimateGas("performCreate",[e,n],{...r}));const a=this.contract.methods.performCreate(e,n).send(r);return(0,qO.toTxResult)(a,r)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}x2.default=tEe;var nEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(BS,"__esModule",{value:!0});const rEe=nEe(x2);class aEe extends rEe.default{constructor(e){super(e),this.contract=e}}BS.default=aEe;var SS={},iEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(SS,"__esModule",{value:!0});const sEe=iEe(x2);class oEe extends sEe.default{constructor(e){super(e),this.contract=e}}SS.default=oEe;var TS={},v1={};Object.defineProperty(v1,"__esModule",{value:!0});class cEe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}v1.default=cEe;var lEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(TS,"__esModule",{value:!0});const uEe=lEe(v1);class fEe extends uEe.default{constructor(e){super(e),this.contract=e}}TS.default=fEe;var FS={},dEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(FS,"__esModule",{value:!0});const hEe=dEe(v1);class pEe extends hEe.default{constructor(e){super(e),this.contract=e}}FS.default=pEe;var MS={},yEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(MS,"__esModule",{value:!0});const mEe=yEe(v1);class bEe extends mEe.default{constructor(e){super(e),this.contract=e}}MS.default=bEe;var DS={},v2={};Object.defineProperty(v2,"__esModule",{value:!0});class gEe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}v2.default=gEe;var xEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(DS,"__esModule",{value:!0});const vEe=xEe(v2);class wEe extends vEe.default{constructor(e){super(e),this.contract=e}}DS.default=wEe;var kS={},EEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(kS,"__esModule",{value:!0});const AEe=EEe(v2);class _Ee extends AEe.default{constructor(e){super(e),this.contract=e}}kS.default=_Ee;var IS={},Wi={};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.SENTINEL_ADDRESS=Wi.EMPTY_DATA=Wi.ZERO_ADDRESS=void 0;Wi.ZERO_ADDRESS=`0x${"0".repeat(40)}`;Wi.EMPTY_DATA="0x";Wi.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001";var Pu={};Object.defineProperty(Pu,"__esModule",{value:!0});const WO=Ua;class CEe{constructor(e){this.contract=e}async getVersion(){return await this.contract.methods.VERSION().call()}getAddress(){return Promise.resolve(this.contract.options.address)}async getNonce(){return Number(await this.contract.methods.nonce().call())}async getThreshold(){return Number(await this.contract.methods.getThreshold().call())}async getOwners(){return this.contract.methods.getOwners().call()}async isOwner(e){return this.contract.methods.isOwner(e).call()}async getTransactionHash(e){return this.contract.methods.getTransactionHash(e.to,e.value,e.data,e.operation,e.safeTxGas,e.baseGas,e.gasPrice,e.gasToken,e.refundReceiver,e.nonce).call()}async approvedHashes(e,n){return BigInt(await this.contract.methods.approvedHashes(e,n).call())}async approveHash(e,n){n&&!n.gas&&(n.gas=await this.estimateGas("approveHash",[e],{...n}));const r=this.contract.methods.approveHash(e).send(n);return(0,WO.toTxResult)(r,n)}async isValidTransaction(e,n){let r=!1;try{n&&!n.gas&&(n.gas=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n})),r=await this.contract.methods.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()).call(n)}catch{}return r}async execTransaction(e,n){n&&!n.gas&&(n.gas=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n}));const r=this.contract.methods.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()).send(n);return(0,WO.toTxResult)(r,n)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}Pu.default=CEe;var BEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(IS,"__esModule",{value:!0});const KO=Ua,B3=Wi,SEe=BEe(Pu);class TEe extends SEe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=B3.ZERO_ADDRESS,data:s=B3.EMPTY_DATA,paymentToken:o=B3.ZERO_ADDRESS,payment:c=0,paymentReceiver:h=B3.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h],{...n}));const b=this.contract.methods.setup(r,a,i,s,o,c,h).send(n);return(0,KO.toTxResult)(b,n)}async getModules(){return this.contract.methods.getModules().call()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,KO.sameString)(a,e))}}IS.default=TEe;var OS={},FEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(OS,"__esModule",{value:!0});const ZO=Ua,dy=Wi,MEe=FEe(Pu);class DEe extends MEe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=dy.ZERO_ADDRESS,data:s=dy.EMPTY_DATA,fallbackHandler:o=dy.ZERO_ADDRESS,paymentToken:c=dy.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=dy.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,ZO.toTxResult)(v,n)}async getModules(){return this.contract.methods.getModules().call()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,ZO.sameString)(a,e))}}OS.default=DEe;var PS={},kEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(PS,"__esModule",{value:!0});const IEe=Ua,hy=Wi,OEe=kEe(Pu);class PEe extends OEe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=hy.ZERO_ADDRESS,data:s=hy.EMPTY_DATA,fallbackHandler:o=hy.ZERO_ADDRESS,paymentToken:c=hy.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=hy.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,IEe.toTxResult)(v,n)}async getModules(){return this.contract.methods.getModules().call()}async isModuleEnabled(e){return this.contract.methods.isModuleEnabled(e).call()}}PS.default=PEe;var RS={},REe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(RS,"__esModule",{value:!0});const NEe=Ua,f0=Wi,$Ee=REe(Pu);class LEe extends $Ee.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=f0.ZERO_ADDRESS,data:s=f0.EMPTY_DATA,fallbackHandler:o=f0.ZERO_ADDRESS,paymentToken:c=f0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=f0.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,NEe.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.methods.getModulesPaginated(f0.SENTINEL_ADDRESS,10).call();return e}async isModuleEnabled(e){return this.contract.methods.isModuleEnabled(e).call()}}RS.default=LEe;var NS={},UEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(NS,"__esModule",{value:!0});const jEe=Ua,d0=Wi,HEe=UEe(Pu);class zEe extends HEe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=d0.ZERO_ADDRESS,data:s=d0.EMPTY_DATA,fallbackHandler:o=d0.ZERO_ADDRESS,paymentToken:c=d0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=d0.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,jEe.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.methods.getModulesPaginated(d0.SENTINEL_ADDRESS,10).call();return e}async isModuleEnabled(e){return this.contract.methods.isModuleEnabled(e).call()}}NS.default=zEe;var $S={},Ud={};Object.defineProperty(Ud,"__esModule",{value:!0});const GEe=Ua;class VEe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}async proxyCreationCode(){return this.contract.methods.proxyCreationCode().call()}async createProxy({safeSingletonAddress:e,initializer:n,saltNonce:r,options:a,callback:i}){var h,b,v;if(BigInt(r)<0)throw new Error("saltNonce must be greater than or equal to 0");a&&!a.gas&&(a.gas=await this.estimateGas("createProxyWithNonce",[e,n,r],{...a}));const s=this.contract.methods.createProxyWithNonce(e,n,r).send(a);if(i){const E=await(0,GEe.toTxResult)(s);i(E.hash)}const c=(v=(b=(h=(await new Promise((E,C)=>s.once("receipt",F=>E(F)).catch(C))).events)==null?void 0:h.ProxyCreation)==null?void 0:b.returnValues)==null?void 0:v.proxy;if(!c)throw new Error("SafeProxy was not deployed correctly");return c}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}Ud.default=VEe;var qEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($S,"__esModule",{value:!0});const WEe=qEe(Ud);class KEe extends WEe.default{constructor(e){super(e),this.contract=e}}$S.default=KEe;var LS={},ZEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(LS,"__esModule",{value:!0});const QEe=ZEe(Ud);class XEe extends QEe.default{constructor(e){super(e),this.contract=e}}LS.default=XEe;var US={},JEe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(US,"__esModule",{value:!0});const YEe=JEe(Ud);class eAe extends YEe.default{constructor(e){super(e),this.contract=e}}US.default=eAe;var jS={},tAe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jS,"__esModule",{value:!0});const nAe=tAe(Ud);class rAe extends nAe.default{constructor(e){super(e),this.contract=e}}jS.default=rAe;var HS={},w2={};Object.defineProperty(w2,"__esModule",{value:!0});const aAe=Ua;class iAe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}async signMessage(e,n){n&&!n.gas&&(n.gas=await this.estimateGas("signMessage",[e],{...n}));const r=this.contract.methods.signMessage(e).send(n);return(0,aAe.toTxResult)(r,n)}async getMessageHash(e){return this.contract.methods.getMessageHash(e).call()}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}w2.default=iAe;var sAe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(HS,"__esModule",{value:!0});const oAe=sAe(w2);class cAe extends oAe.default{constructor(e){super(e),this.contract=e}}HS.default=cAe;var zS={},lAe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zS,"__esModule",{value:!0});const uAe=lAe(w2);class fAe extends uAe.default{constructor(e){super(e),this.contract=e}}zS.default=fAe;var GS={},u5={};Object.defineProperty(u5,"__esModule",{value:!0});class dAe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}u5.default=dAe;var hAe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(GS,"__esModule",{value:!0});const pAe=hAe(u5);class yAe extends pAe.default{constructor(e){super(e),this.contract=e}}GS.default=yAe;var VS={},mAe=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(VS,"__esModule",{value:!0});const bAe=mAe(u5);class gAe extends bAe.default{constructor(e){super(e),this.contract=e}}VS.default=gAe;var On=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mr,"__esModule",{value:!0});mr.getSimulateTxAccessorContractInstance=mr.getCreateCallContractInstance=mr.getSignMessageLibContractInstance=mr.getSafeProxyFactoryContractInstance=mr.getMultiSendCallOnlyContractInstance=mr.getMultiSendContractInstance=mr.getCompatibilityFallbackHandlerContractInstance=mr.getSafeContractInstance=void 0;const xAe=On(_S),vAe=On(CS),wAe=On(BS),EAe=On(SS),AAe=On(TS),_Ae=On(FS),CAe=On(MS),BAe=On(DS),SAe=On(kS),TAe=On(IS),FAe=On(OS),MAe=On(PS),DAe=On(RS),kAe=On(NS),IAe=On($S),OAe=On(LS),PAe=On(US),RAe=On(jS),NAe=On(HS),$Ae=On(zS),LAe=On(GS),UAe=On(VS);function jAe(t,e){switch(t){case"1.4.1":return new kAe.default(e);case"1.3.0":return new DAe.default(e);case"1.2.0":return new MAe.default(e);case"1.1.1":return new FAe.default(e);case"1.0.0":return new TAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getSafeContractInstance=jAe;function HAe(t,e){switch(t){case"1.4.1":return new vAe.default(e);case"1.3.0":case"1.2.0":case"1.1.1":return new xAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getCompatibilityFallbackHandlerContractInstance=HAe;function zAe(t,e){switch(t){case"1.4.1":return new CAe.default(e);case"1.3.0":return new _Ae.default(e);case"1.2.0":case"1.1.1":case"1.0.0":return new AAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getMultiSendContractInstance=zAe;function GAe(t,e){switch(t){case"1.4.1":return new SAe.default(e);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return new BAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getMultiSendCallOnlyContractInstance=GAe;function VAe(t,e){switch(t){case"1.4.1":return new RAe.default(e);case"1.3.0":return new PAe.default(e);case"1.2.0":case"1.1.1":return new OAe.default(e);case"1.0.0":return new IAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getSafeProxyFactoryContractInstance=VAe;function qAe(t,e){switch(t){case"1.4.1":return new $Ae.default(e);case"1.3.0":return new NAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getSignMessageLibContractInstance=qAe;function WAe(t,e){switch(t){case"1.4.1":return new EAe.default(e);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return new wAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getCreateCallContractInstance=WAe;function KAe(t,e){switch(t){case"1.4.1":return new UAe.default(e);case"1.3.0":return new LAe.default(e);default:throw new Error("Invalid Safe version")}}mr.getSimulateTxAccessorContractInstance=KAe;var QO=he&&he.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},hn=he&&he.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Nn,Qs;Object.defineProperty(AS,"__esModule",{value:!0});const XO=Nd(),dl=mr,X9=Rd;class ZAe{constructor({web3:e,signerAddress:n}){if(Nn.set(this,void 0),Qs.set(this,void 0),!e)throw new Error("web3 property missing from options");QO(this,Nn,e,"f"),QO(this,Qs,n,"f")}isAddress(e){return hn(this,Nn,"f").utils.isAddress(e)}async getEip3770Address(e){const n=await this.getChainId();return(0,XO.validateEip3770Address)(e,n)}async getBalance(e,n){const r=n?await hn(this,Nn,"f").eth.getBalance(e,n):await hn(this,Nn,"f").eth.getBalance(e);return BigInt(r)}async getNonce(e,n){return n?await hn(this,Nn,"f").eth.getTransactionCount(e,n):await hn(this,Nn,"f").eth.getTransactionCount(e)}async getChainId(){return BigInt(await hn(this,Nn,"f").eth.getChainId())}getChecksummedAddress(e){return hn(this,Nn,"f").utils.toChecksumAddress(e)}async getSafeContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SafeProxy contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getSafeContractInstance)(e,o)}async getSafeProxyFactoryContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SafeProxyFactory contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getSafeProxyFactoryContractInstance)(e,o)}async getMultiSendContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid MultiSend contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getMultiSendContractInstance)(e,o)}async getMultiSendCallOnlyContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid MultiSendCallOnly contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getMultiSendCallOnlyContractInstance)(e,o)}async getCompatibilityFallbackHandlerContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid Compatibility Fallback Handler contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getCompatibilityFallbackHandlerContractInstance)(e,o)}async getSignMessageLibContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SignMessageLib contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getSignMessageLibContractInstance)(e,o)}async getCreateCallContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid CreateCall contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getCreateCallContractInstance)(e,o)}async getSimulateTxAccessorContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SimulateTxAccessor contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,dl.getSimulateTxAccessorContractInstance)(e,o)}getContract(e,n,r){return new(hn(this,Nn,"f")).eth.Contract(n,e,r)}async getContractCode(e,n){return n?await hn(this,Nn,"f").eth.getCode(e,n):await hn(this,Nn,"f").eth.getCode(e)}async isContractDeployed(e,n){return await this.getContractCode(e,n)!=="0x"}async getStorageAt(e,n){const r=await hn(this,Nn,"f").eth.getStorageAt(e,n);return this.decodeParameters(["address"],r)[0]}async getTransaction(e){return hn(this,Nn,"f").eth.getTransaction(e)}async getSignerAddress(){return hn(this,Qs,"f")}signMessage(e){if(!hn(this,Qs,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");return hn(this,Nn,"f").eth.sign(e,hn(this,Qs,"f"))}async signTypedData(e,n){if(!hn(this,Qs,"f"))throw new Error("This method requires a signer");const r=(0,XO.generateTypedData)(e);let a=X9.SigningMethod.ETH_SIGN_TYPED_DATA_V3;n==="v4"?a=X9.SigningMethod.ETH_SIGN_TYPED_DATA_V4:n||(a=X9.SigningMethod.ETH_SIGN_TYPED_DATA);const i=JSON.stringify(r),s={jsonrpc:"2.0",method:a,params:n==="v3"||n==="v4"?[hn(this,Qs,"f"),i]:[i,hn(this,Qs,"f")],from:hn(this,Qs,"f"),id:new Date().getTime()};return new Promise((o,c)=>{const h=hn(this,Nn,"f").currentProvider;function b(v,E){if(v){c(v);return}if((E==null?void 0:E.result)==null){c(new Error("EIP-712 is not supported by user's wallet"));return}o(E.result)}h.send(s,b)})}async estimateGas(e,n){return(await hn(this,Nn,"f").eth.estimateGas(e,n)).toString()}call(e,n){return hn(this,Nn,"f").eth.call(e,n)}encodeParameters(e,n){return hn(this,Nn,"f").eth.abi.encodeParameters(e,n)}decodeParameters(e,n){return hn(this,Nn,"f").eth.abi.decodeParameters(e,n)}}Nn=new WeakMap,Qs=new WeakMap;AS.default=ZAe;var jd=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.Web3Adapter=Jr.SignMessageLibWeb3Contract=Jr.SafeProxyFactoryWeb3Contract=Jr.SafeContractWeb3=Jr.MultiSendWeb3Contract=Jr.MultiSendCallOnlyWeb3Contract=Jr.CreateCallWeb3Contract=void 0;const QAe=jd(AS);Jr.Web3Adapter=QAe.default;const XAe=jd(x2);Jr.CreateCallWeb3Contract=XAe.default;const JAe=jd(v1);Jr.MultiSendWeb3Contract=JAe.default;const YAe=jd(v2);Jr.MultiSendCallOnlyWeb3Contract=YAe.default;const e_e=jd(Pu);Jr.SafeContractWeb3=e_e.default;const t_e=jd(Ud);Jr.SafeProxyFactoryWeb3Contract=t_e.default;const n_e=jd(w2);Jr.SignMessageLibWeb3Contract=n_e.default;var qS={},h0=he&&he.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},Vn=he&&he.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},r_e=he&&he.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},A0,Dy,ky,vi,Iy,Oy;Object.defineProperty(qS,"__esModule",{value:!0});const a_e=r_e(Tx),i_e=na,JO=Ct,p0=Mx;class WS{constructor(){A0.set(this,void 0),Dy.set(this,void 0),ky.set(this,void 0),vi.set(this,void 0),Iy.set(this,void 0),Oy.set(this,void 0)}static async create({ethAdapter:e,safeVersion:n=i_e.DEFAULT_SAFE_VERSION,isL1SafeSingleton:r=!1,contractNetworks:a}){const i=new WS;return await i.init({ethAdapter:e,safeVersion:n,isL1SafeSingleton:r,contractNetworks:a}),i}async init({ethAdapter:e,safeVersion:n,isL1SafeSingleton:r,contractNetworks:a}){h0(this,vi,e,"f"),h0(this,ky,n,"f"),h0(this,Dy,r,"f"),h0(this,A0,a,"f");const i=await Vn(this,vi,"f").getChainId(),s=a==null?void 0:a[i.toString()];h0(this,Iy,await(0,JO.getProxyFactoryContract)({ethAdapter:e,safeVersion:n,customContracts:s}),"f"),h0(this,Oy,await(0,JO.getSafeContract)({ethAdapter:e,safeVersion:n,isL1SafeSingleton:r,customContracts:s}),"f")}getEthAdapter(){return Vn(this,vi,"f")}getSafeVersion(){return Vn(this,ky,"f")}getAddress(){return Vn(this,Iy,"f").getAddress()}async getChainId(){return Vn(this,vi,"f").getChainId()}async predictSafeAddress(e,n){var o;const r=await Vn(this,vi,"f").getChainId(),a=(o=Vn(this,A0,"f"))==null?void 0:o[r.toString()],i=Vn(this,ky,"f"),s={saltNonce:n||(0,p0.getChainSpecificDefaultSaltNonce)(r),safeVersion:i};return(0,p0.predictSafeAddress)({ethAdapter:Vn(this,vi,"f"),chainId:r,safeAccountConfig:e,safeDeploymentConfig:s,isL1SafeSingleton:Vn(this,Dy,"f"),customContracts:a})}async deploySafe({safeAccountConfig:e,saltNonce:n,options:r,callback:a}){var E;(0,p0.validateSafeAccountConfig)(e),(0,p0.validateSafeDeploymentConfig)({saltNonce:n});const i=await Vn(this,vi,"f").getSignerAddress();if(!i)throw new Error("EthAdapter must be initialized with a signer to use this method");const s=await this.getChainId(),o=(E=Vn(this,A0,"f"))==null?void 0:E[s.toString()],c=await(0,p0.encodeSetupCallData)({ethAdapter:Vn(this,vi,"f"),safeAccountConfig:e,safeContract:Vn(this,Oy,"f"),customContracts:o});if(r!=null&&r.gas&&(r!=null&&r.gasLimit))throw new Error("Cannot specify gas and gasLimit together in transaction options");const h=await Vn(this,Iy,"f").createProxy({safeSingletonAddress:await Vn(this,Oy,"f").getAddress(),initializer:c,saltNonce:n||(0,p0.getChainSpecificDefaultSaltNonce)(s),options:{from:i,...r},callback:a});if(!await Vn(this,vi,"f").isContractDeployed(h))throw new Error("SafeProxy contract is not deployed on the current network");return await a_e.default.create({ethAdapter:Vn(this,vi,"f"),safeAddress:h,isL1SafeSingleton:Vn(this,Dy,"f"),contractNetworks:Vn(this,A0,"f")})}}A0=new WeakMap,Dy=new WeakMap,ky=new WeakMap,vi=new WeakMap,Iy=new WeakMap,Oy=new WeakMap;qS.default=WS;var lu={};Object.defineProperty(lu,"__esModule",{value:!0});lu.createERC20TokenTransferTransaction=lu.isGasTokenCompatibleWithHandlePayment=lu.getERC20Decimals=void 0;const PW=an,s_e=ra,RW=["function transfer(address recipient, uint256 amount) returns (bool)","function decimals() view returns (uint8)"];async function NW(t,e){const n=e.getEthAdapter(),r=new PW.Interface(RW),a={to:t,from:t,value:"0",data:r.encodeFunctionData("decimals")},i=await n.call(a),s=Number(i);if(Number.isNaN(s))throw new Error("Invalid ERC-20 decimals");return s}lu.getERC20Decimals=NW;const o_e=18;async function c_e(t,e){return t===s_e.ZERO_ADDRESS?!0:await NW(t,e)===o_e}lu.isGasTokenCompatibleWithHandlePayment=c_e;function l_e(t,e,n){const r=new PW.Interface(RW);return{to:t,value:"0",data:r.encodeFunctionData("transfer",[e,n])}}lu.createERC20TokenTransferTransaction=l_e;(function(t){var e=he&&he.__importDefault||function(P){return P&&P.__esModule?P:{default:P}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashSafeMessage=t.getEip712MessageTypes=t.getEip712TxTypes=t.preimageSafeMessageHash=t.preimageSafeTransactionHash=t.buildSignatureBytes=t.buildContractSignature=t.generateEIP712Signature=t.generateSignature=t.validateEthereumAddress=t.validateEip3770Address=t.standardizeSafeTransactionData=t.predictSafeAddress=t.isGasTokenCompatibleWithHandlePayment=t.getSignMessageLibContract=t.getSafeContract=t.getProxyFactoryContract=t.getMultiSendContract=t.getMultiSendCallOnlyContract=t.getERC20Decimals=t.getCreateCallContract=t.getCompatibilityFallbackHandlerContract=t.encodeSetupCallData=t.encodeMultiSendData=t.encodeCreateProxyWithNonce=t.Web3Adapter=t.SigningMethod=t.SignMessageLibWeb3Contract=t.SignMessageLibEthersContract=t.SafeProxyFactoryWeb3Contract=t.SafeProxyFactoryEthersContract=t.SafeFactory=t.SafeContractWeb3=t.SafeContractEthers=t.PREDETERMINED_SALT_NONCE=t.MultiSendWeb3Contract=t.MultiSendEthersContract=t.MultiSendCallOnlyWeb3Contract=t.MultiSendCallOnlyEthersContract=t.EthersAdapter=t.EthSafeSignature=t.DEFAULT_SAFE_VERSION=t.createERC20TokenTransferTransaction=t.CreateCallWeb3Contract=t.CreateCallEthersContract=t.ContractManager=t.estimateSafeDeploymentGas=t.estimateSafeTxGas=t.estimateTxGas=t.estimateTxBaseGas=void 0,t.generateTypedData=void 0;const n=e(Tx),r=Xr;Object.defineProperty(t,"CreateCallEthersContract",{enumerable:!0,get:function(){return r.CreateCallEthersContract}}),Object.defineProperty(t,"EthersAdapter",{enumerable:!0,get:function(){return r.EthersAdapter}}),Object.defineProperty(t,"MultiSendCallOnlyEthersContract",{enumerable:!0,get:function(){return r.MultiSendCallOnlyEthersContract}}),Object.defineProperty(t,"MultiSendEthersContract",{enumerable:!0,get:function(){return r.MultiSendEthersContract}}),Object.defineProperty(t,"SafeContractEthers",{enumerable:!0,get:function(){return r.SafeContractEthers}}),Object.defineProperty(t,"SafeProxyFactoryEthersContract",{enumerable:!0,get:function(){return r.SafeProxyFactoryEthersContract}}),Object.defineProperty(t,"SignMessageLibEthersContract",{enumerable:!0,get:function(){return r.SignMessageLibEthersContract}});const a=Jr;Object.defineProperty(t,"CreateCallWeb3Contract",{enumerable:!0,get:function(){return a.CreateCallWeb3Contract}}),Object.defineProperty(t,"MultiSendCallOnlyWeb3Contract",{enumerable:!0,get:function(){return a.MultiSendCallOnlyWeb3Contract}}),Object.defineProperty(t,"MultiSendWeb3Contract",{enumerable:!0,get:function(){return a.MultiSendWeb3Contract}}),Object.defineProperty(t,"SafeContractWeb3",{enumerable:!0,get:function(){return a.SafeContractWeb3}}),Object.defineProperty(t,"SafeProxyFactoryWeb3Contract",{enumerable:!0,get:function(){return a.SafeProxyFactoryWeb3Contract}}),Object.defineProperty(t,"SignMessageLibWeb3Contract",{enumerable:!0,get:function(){return a.SignMessageLibWeb3Contract}}),Object.defineProperty(t,"Web3Adapter",{enumerable:!0,get:function(){return a.Web3Adapter}});const i=na;Object.defineProperty(t,"DEFAULT_SAFE_VERSION",{enumerable:!0,get:function(){return i.DEFAULT_SAFE_VERSION}});const s=Ct;Object.defineProperty(t,"getCompatibilityFallbackHandlerContract",{enumerable:!0,get:function(){return s.getCompatibilityFallbackHandlerContract}}),Object.defineProperty(t,"getCreateCallContract",{enumerable:!0,get:function(){return s.getCreateCallContract}}),Object.defineProperty(t,"getMultiSendCallOnlyContract",{enumerable:!0,get:function(){return s.getMultiSendCallOnlyContract}}),Object.defineProperty(t,"getMultiSendContract",{enumerable:!0,get:function(){return s.getMultiSendContract}}),Object.defineProperty(t,"getProxyFactoryContract",{enumerable:!0,get:function(){return s.getProxyFactoryContract}}),Object.defineProperty(t,"getSafeContract",{enumerable:!0,get:function(){return s.getSafeContract}}),Object.defineProperty(t,"getSignMessageLibContract",{enumerable:!0,get:function(){return s.getSignMessageLibContract}});const o=Mx;Object.defineProperty(t,"PREDETERMINED_SALT_NONCE",{enumerable:!0,get:function(){return o.PREDETERMINED_SALT_NONCE}}),Object.defineProperty(t,"encodeCreateProxyWithNonce",{enumerable:!0,get:function(){return o.encodeCreateProxyWithNonce}}),Object.defineProperty(t,"encodeSetupCallData",{enumerable:!0,get:function(){return o.encodeSetupCallData}}),Object.defineProperty(t,"predictSafeAddress",{enumerable:!0,get:function(){return o.predictSafeAddress}});const c=e(x4);t.ContractManager=c.default;const h=e(qS);t.SafeFactory=h.default;const b=Rd;Object.defineProperty(t,"SigningMethod",{enumerable:!0,get:function(){return b.SigningMethod}});const v=Nd();Object.defineProperty(t,"EthSafeSignature",{enumerable:!0,get:function(){return v.EthSafeSignature}}),Object.defineProperty(t,"estimateTxBaseGas",{enumerable:!0,get:function(){return v.estimateTxBaseGas}}),Object.defineProperty(t,"estimateTxGas",{enumerable:!0,get:function(){return v.estimateTxGas}}),Object.defineProperty(t,"estimateSafeTxGas",{enumerable:!0,get:function(){return v.estimateSafeTxGas}}),Object.defineProperty(t,"estimateSafeDeploymentGas",{enumerable:!0,get:function(){return v.estimateSafeDeploymentGas}}),Object.defineProperty(t,"validateEthereumAddress",{enumerable:!0,get:function(){return v.validateEthereumAddress}}),Object.defineProperty(t,"validateEip3770Address",{enumerable:!0,get:function(){return v.validateEip3770Address}});const E=ZB();Object.defineProperty(t,"encodeMultiSendData",{enumerable:!0,get:function(){return E.encodeMultiSendData}}),Object.defineProperty(t,"standardizeSafeTransactionData",{enumerable:!0,get:function(){return E.standardizeSafeTransactionData}});const C=lu;Object.defineProperty(t,"getERC20Decimals",{enumerable:!0,get:function(){return C.getERC20Decimals}}),Object.defineProperty(t,"isGasTokenCompatibleWithHandlePayment",{enumerable:!0,get:function(){return C.isGasTokenCompatibleWithHandlePayment}}),Object.defineProperty(t,"createERC20TokenTransferTransaction",{enumerable:!0,get:function(){return C.createERC20TokenTransferTransaction}});const F=KB;Object.defineProperty(t,"generateSignature",{enumerable:!0,get:function(){return F.generateSignature}}),Object.defineProperty(t,"generateEIP712Signature",{enumerable:!0,get:function(){return F.generateEIP712Signature}}),Object.defineProperty(t,"buildContractSignature",{enumerable:!0,get:function(){return F.buildContractSignature}}),Object.defineProperty(t,"buildSignatureBytes",{enumerable:!0,get:function(){return F.buildSignatureBytes}}),Object.defineProperty(t,"preimageSafeTransactionHash",{enumerable:!0,get:function(){return F.preimageSafeTransactionHash}}),Object.defineProperty(t,"preimageSafeMessageHash",{enumerable:!0,get:function(){return F.preimageSafeMessageHash}});const T=R4;Object.defineProperty(t,"getEip712TxTypes",{enumerable:!0,get:function(){return T.getEip712TxTypes}}),Object.defineProperty(t,"getEip712MessageTypes",{enumerable:!0,get:function(){return T.getEip712MessageTypes}}),Object.defineProperty(t,"hashSafeMessage",{enumerable:!0,get:function(){return T.hashSafeMessage}}),Object.defineProperty(t,"generateTypedData",{enumerable:!0,get:function(){return T.generateTypedData}}),t.default=n.default})(Dp);const u_e=md(Dp),f_e=oe({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]},default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),d_e={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},KS={block:L_({format(t){var n;return{transactions:(n=t.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const a=Y8(r);return a.typeHex==="0x7e"&&(a.isSystemTx=r.isSystemTx,a.mint=r.mint?qn(r.mint):void 0,a.sourceHash=r.sourceHash,a.type="deposit"),a}),stateRoot:t.stateRoot}}}),transaction:$_({format(t){const e={};return t.type==="0x7e"&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?qn(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:$L({format(t){return{l1GasPrice:t.l1GasPrice?qn(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?qn(t.l1GasUsed):null,l1Fee:t.l1Fee?qn(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null}}})};function h_e(t,e){return m_e(t)?y_e(t):G_(t,e)}const p_e={transaction:h_e};function y_e(t){b_e(t);const{sourceHash:e,data:n,from:r,gas:a,isSystemTx:i,mint:s,to:o,value:c}=t,h=[e,r,o??"0x",s?st(s):"0x",c?st(c):"0x",a?st(a):"0x",i?"0x1":"0x",n??"0x"];return _d(["0x7e",kc(h)])}function m_e(t){return t.type==="deposit"||typeof t.sourceHash<"u"}function b_e(t){const{from:e,to:n}=t;if(e&&!Rr(e))throw new Hi({address:e});if(n&&!Rr(n))throw new Hi({address:n})}const zt={contracts:d_e,formatters:KS,serializers:p_e},S3=1,g_e=oe({...zt,id:888888888,name:"Ancient8",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 explorer",url:"https://scan.ancient8.gg",apiUrl:"https://scan.ancient8.gg/api"}},contracts:{...zt.contracts,l2OutputOracle:{[S3]:{address:"0xB09DC08428C8b4EFB4ff9C0827386CDF34277996"}},portal:{[S3]:{address:"0x639F2AECE398Aa76b07e59eF6abe2cFe32bacb68",blockCreated:19070571}},l1StandardBridge:{[S3]:{address:"0xd5e3eDf5b68135D559D572E26bF863FBC1950033",blockCreated:19070571}}},sourceId:S3}),T3=11155111,x_e=oe({...zt,id:28122024,name:"Ancient8 Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpcv2-testnet.ancient8.gg"]}},blockExplorers:{default:{name:"Ancient8 Celestia Testnet explorer",url:"https://scanv2-testnet.ancient8.gg",apiUrl:"https://scanv2-testnet.ancient8.gg/api"}},contracts:{...zt.contracts,l2OutputOracle:{[T3]:{address:"0x942fD5017c0F60575930D8574Eaca13BEcD6e1bB"}},portal:{[T3]:{address:"0xfa1d9E26A6aCD7b22115D27572c1221B9803c960",blockCreated:4972908}},l1StandardBridge:{[T3]:{address:"0xF6Bc0146d3c74D48306e79Ae134A260E418C9335",blockCreated:4972908}}},sourceId:T3}),v_e=oe({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),w_e=oe({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),tA=oe({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),nA=oe({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),rA=oe({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),E_e=oe({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),A_e=oe({id:3776,name:"Astar zkEVM",network:"AstarZkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/astar-zkevm"]}},blockExplorers:{default:{name:"Astar zkEVM Explorer",url:"https://astar-zkevm.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:93528}},testnet:!1}),__e=oe({id:6038361,name:"Astar zkEVM Testnet zKyoto",network:"zKyoto",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.startale.com/zkyoto"]}},blockExplorers:{default:{name:"zKyoto Explorer",url:"https://zkyoto.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:196153}},testnet:!0}),aA=oe({id:421614,name:"Arbitrum Sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://api-sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),C_e=oe({id:463,name:"Areon Network",nativeCurrency:{decimals:18,name:"AREA",symbol:"AREA"},rpcUrls:{default:{http:["https://mainnet-rpc.areon.network"],webSocket:["wss://mainnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!1}),B_e=oe({id:462,name:"Areon Network Testnet",nativeCurrency:{decimals:18,name:"TAREA",symbol:"TAREA"},rpcUrls:{default:{http:["https://testnet-rpc.areon.network"],webSocket:["wss://testnet-ws.areon.network"]}},blockExplorers:{default:{name:"Areonscan",url:"https://areonscan.com"}},testnet:!0}),S_e=oe({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),T_e=oe({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),F_e=oe({id:205205,name:"Auroria Testnet",network:"auroria",nativeCurrency:{name:"Auroria Stratis",symbol:"tSTRAX",decimals:18},rpcUrls:{default:{http:["https://auroria.rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Auroria Testnet Explorer",url:"https://auroria.explorer.stratisevm.com"}},testnet:!0}),M_e=oe({id:43114,name:"Avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowScan",url:"https://snowscan.xyz",apiUrl:"https://api.snowscan.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),D_e=oe({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowScan",url:"https://testnet.snowscan.xyz",apiUrl:"https://api-testnet.snowscan.xyz"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),k_e=oe({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]},public:{http:["https://rpc1.bahamut.io","https://bahamut-rpc.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut-rpc.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),F3=1,Vg=oe({...zt,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...zt.contracts,l2OutputOracle:{[F3]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[F3]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[F3]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:F3}),M3=5,$W=oe({...zt,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...zt.contracts,l2OutputOracle:{[M3]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[M3]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[M3]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:M3}),D3=11155111,iA=oe({...zt,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...zt.contracts,l2OutputOracle:{[D3]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[D3]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[D3]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:D3}),I_e=oe({id:4337,name:"Beam",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{public:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]},default:{http:["https://build.onbeam.com/rpc"],webSocket:["wss://build.onbeam.com/ws"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets.avax.network/beam"}},contracts:{multicall3:{address:"0x4956f15efdc3dc16645e90cc356eafa65ffc65ec",blockCreated:1}}}),O_e=oe({id:13337,name:"Beam Testnet",network:"beam",nativeCurrency:{decimals:18,name:"Beam",symbol:"BEAM"},rpcUrls:{public:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]},default:{http:["https://build.onbeam.com/rpc/testnet"],webSocket:["wss://build.onbeam.com/ws/testnet"]}},blockExplorers:{default:{name:"Beam Explorer",url:"https://subnets-test.avax.network/beam"}},contracts:{multicall3:{address:"0x9bf49b704ee2a095b95c1f2d4eb9010510c41c9e",blockCreated:3}},testnet:!0}),P_e=oe({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),R_e=oe({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),N_e=oe({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},testnet:!0}),$_e=oe({id:11501,name:"BEVM Mainnet",nativeCurrency:{name:"Bitcoin",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc-mainnet-1.bevm.io"]}},blockExplorers:{default:{name:"Bevmscan",url:"https://scan-mainnet.bevm.io",apiUrl:"https://scan-mainnet-api.bevm.io/api"}}}),L_e=oe({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]},public:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}}}),U_e=oe({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]},public:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),j_e=1,qg=oe({id:81457,name:"Blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://blastscan.io",apiUrl:"https://api.blastscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:212929}},sourceId:j_e}),H_e=11155111,Wg=oe({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://sepolia.blastscan.io",apiUrl:"https://api-sepolia.blastscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:H_e}),z_e=oe({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),G_e=oe({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),V_e=oe({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),q_e=oe({id:56,name:"BNB Smart Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),W_e=oe({id:97,name:"Binance Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),K_e=oe({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),Z_e=oe({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),Q_e=oe({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}}}),X_e=oe({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}});function Zl(t){return t===0||t===0n||t===void 0||t===null||t==="0"||t===""||typeof t=="string"&&(fg(t).toLowerCase()==="0x"||fg(t).toLowerCase()==="0x00")}function ha(t){return!Zl(t)}function LW(t){return typeof t.maxFeePerGas<"u"&&typeof t.maxPriorityFeePerGas<"u"}function UW(t){return t.type==="cip42"?!0:LW(t)&&(ha(t.feeCurrency)||ha(t.gatewayFeeRecipient)||ha(t.gatewayFee))}function jW(t){return t.type==="cip64"?!0:LW(t)&&ha(t.feeCurrency)&&Zl(t.gatewayFee)&&Zl(t.gatewayFeeRecipient)}const J_e={block:L_({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(t){var n;const e=(n=t.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:{...Y8(r),feeCurrency:r.feeCurrency,...r.type!=="0x7b"?{gatewayFee:r.gatewayFee?qn(r.gatewayFee):null,gatewayFeeRecipient:r.gatewayFeeRecipient||null}:{}});return{randomness:t.randomness,transactions:e}}}),transaction:$_({format(t){const e={feeCurrency:t.feeCurrency};return t.type==="0x7b"?e.type="cip64":(t.type==="0x7c"&&(e.type="cip42"),e.gatewayFee=t.gatewayFee?qn(t.gatewayFee):null,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}}),transactionRequest:BL({format(t){const e={feeCurrency:t.feeCurrency};return jW(t)?e.type="0x7b":(UW(t)&&(e.type="0x7c"),e.gatewayFee=typeof t.gatewayFee<"u"?Js(t.gatewayFee):void 0,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}})},Y_e={estimateFeesPerGas:async t=>{var r;if(!((r=t.request)!=null&&r.feeCurrency))return null;const[e,n]=await Promise.all([eCe(t.client,t.request.feeCurrency),tCe(t.client,t.request.feeCurrency)]);return{maxFeePerGas:e,maxPriorityFeePerGas:n}}};async function eCe(t,e){const n=await t.request({method:"eth_gasPrice",params:[e]});return BigInt(n)}async function tCe(t,e){const n=await t.request({method:"eth_maxPriorityFeePerGas",params:[e]});return BigInt(n)}function nCe(t,e){return jW(t)?iCe(t,e):UW(t)?aCe(t,e):G_(t,e)}const rCe={transaction:nCe};function aCe(t,e){sCe(t);const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:h,feeCurrency:b,gatewayFeeRecipient:v,gatewayFee:E,data:C}=t,F=[st(n),a?st(a):"0x",c?st(c):"0x",o?st(o):"0x",r?st(r):"0x",b??"0x",v??"0x",E?st(E):"0x",i??"0x",s?st(s):"0x",C??"0x",Gb(h),...Vb(t,e)];return _d(["0x7c",kc(F)])}function iCe(t,e){oCe(t);const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:h,feeCurrency:b,data:v}=t,E=[st(n),a?st(a):"0x",c?st(c):"0x",o?st(o):"0x",r?st(r):"0x",i??"0x",s?st(s):"0x",v??"0x",Gb(h),b,...Vb(t,e)];return _d(["0x7b",kc(E)])}const HW=2n**256n-1n;function sCe(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i,feeCurrency:s,gatewayFee:o,gatewayFeeRecipient:c}=t;if(e<=0)throw new Jp({chainId:e});if(i&&!Rr(i))throw new Hi({address:i});if(r)throw new Bt("`gasPrice` is not a valid CIP-42 Transaction attribute.");if(ha(a)&&a>HW)throw new Xp({maxFeePerGas:a});if(ha(n)&&ha(a)&&n>a)throw new X8({maxFeePerGas:a,maxPriorityFeePerGas:n});if(ha(o)&&Zl(c)||ha(c)&&Zl(o))throw new Bt("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if(ha(s)&&!Rr(s))throw new Bt("`feeCurrency` MUST be a token address for CIP-42 transactions.");if(ha(c)&&!Rr(c))throw new Hi(c);if(Zl(s)&&Zl(c))throw new Bt("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}function oCe(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i,feeCurrency:s}=t;if(e<=0)throw new Jp({chainId:e});if(i&&!Rr(i))throw new Hi({address:i});if(r)throw new Bt("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(ha(a)&&a>HW)throw new Xp({maxFeePerGas:a});if(ha(n)&&ha(a)&&n>a)throw new X8({maxFeePerGas:a,maxPriorityFeePerGas:n});if(ha(s)&&!Rr(s))throw new Bt("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(Zl(s))throw new Bt("`feeCurrency` must be provided for CIP-64 transactions.")}const zW={formatters:J_e,serializers:rCe,fees:Y_e},cCe=oe({...zW,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet",apiUrl:"https://explorer.celo.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),lCe=oe({...zW,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores",apiUrl:"https://explorer.celo.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0}),uCe=oe({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}}}),fCe=oe({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),dCe=oe({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),hCe=oe({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),pCe=oe({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),yCe=oe({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://explorer.cronos.org",apiUrl:"https://explorer-api.cronos.org/mainnet/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),mCe=oe({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),bCe=oe({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),gCe=oe({id:46,name:"Darwinia Network",nativeCurrency:{decimals:18,name:"RING",symbol:"RING"},rpcUrls:{default:{http:["https://rpc.darwinia.network"],webSocket:["wss://rpc.darwinia.network"]}},blockExplorers:{default:{name:"Explorer",url:"https://darwinia.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:69420}}}),xCe=oe({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:8},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]},public:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),vCe=oe({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:8},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]},public:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),wCe=oe({id:666666666,name:"Degen",nativeCurrency:{decimals:18,name:"Degen",symbol:"DEGEN"},rpcUrls:{default:{http:["https://rpc.degen.tips"],webSocket:["wss://rpc.degen.tips"]}},blockExplorers:{default:{name:"Degen Chain Explorer",url:"https://explorer.degen.tips",apiUrl:"https://explorer.degen.tips/api/v2"}}}),ECe=oe({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14790551}}}),ACe=oe({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}}}),_Ce=oe({id:23451,name:"DreyerX Mainnet",nativeCurrency:{name:"DreyerX",symbol:"DRX",decimals:18},rpcUrls:{default:{http:["https://rpc.dreyerx.com"]}},blockExplorers:{default:{name:"DreyerX Scan",url:"https://scan.dreyerx.com"}}}),CCe=oe({id:2026,name:"Edgeless Network",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://rpc.edgeless.network/http"],webSocket:["wss://rpc.edgeless.network/ws"]}},blockExplorers:{default:{name:"Edgeless Explorer",url:"https://explorer.edgeless.network"}}}),BCe=oe({id:202,name:"Edgeless Testnet",nativeCurrency:{name:"Edgeless Wrapped ETH",symbol:"EwETH",decimals:18},rpcUrls:{default:{http:["https://edgeless-testnet.rpc.caldera.xyz/http"],webSocket:["wss://edgeless-testnet.rpc.caldera.xyz/ws"]}},blockExplorers:{default:{name:"Edgeless Testnet Explorer",url:"https://testnet.explorer.edgeless.network"}}}),SCe=oe({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),TCe=oe({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}}}),FCe=oe({id:7332,name:"Horizen EON",nativeCurrency:{decimals:18,name:"ZEN",symbol:"ZEN"},rpcUrls:{default:{http:["https://eon-rpc.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"EON Explorer",url:"https://eon-explorer.horizenlabs.io"}},contracts:{}}),MCe=oe({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),DCe=oe({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),kCe=oe({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet-explorer.etherlink.com"}},testnet:!0}),ICe=oe({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),OCe=oe({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),PCe=oe({id:1994,name:"Ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io",apiUrl:"https://ektascan.io/api"}}}),RCe=oe({id:1004,name:"Ekta Testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io",apiUrl:"https://test.ektascan.io/api"}},testnet:!0}),NCe=oe({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),$Ce=oe({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),LCe=oe({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}}),UCe=oe({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),jCe=oe({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),HCe=oe({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}},testnet:!0}),zCe=oe({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}},testnet:!0}),GCe=oe({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}}}),VCe=oe({id:114,name:"Coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),qCe=oe({id:646,name:"FlowEVM Previewnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://previewnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Previewnet Explorer",url:"https://previewnet.flowdiver.io"}}}),WCe=oe({id:747,name:"FlowEVM Mainnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://mainnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Mainnet Explorer",url:"https://flowdiver.io"}}}),KCe=oe({id:545,name:"FlowEVM Testnet",nativeCurrency:{decimals:18,name:"Flow",symbol:"FLOW"},rpcUrls:{default:{http:["https://testnet.evm.nodes.onflow.org"]}},blockExplorers:{default:{name:"Flow Diver",url:"https://testnet.flowdiver.io"}}}),ZCe=oe({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),k3=1,QCe=oe({...zt,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax Ether",symbol:"frxETH",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...zt.contracts,l2OutputOracle:{[k3]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[k3]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[k3]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:k3}),I3=17e3,XCe=oe({...zt,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax Ether",symbol:"frxETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...zt.contracts,l2OutputOracle:{[I3]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[I3]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[I3]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:I3}),JCe=oe({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),YCe=oe({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),eBe=oe({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}}),tBe=oe({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},testnet:!0}),nBe=oe({id:8899,name:"JIBCHAIN L1",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]},public:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),rBe=oe({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]},default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),aBe=oe({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),ZS=oe({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),iBe=oe({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),sBe=oe({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),oBe=oe({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),cBe=oe({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),lBe=oe({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),uBe=oe({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}}}),fBe=oe({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),dBe=oe({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),hBe=oe({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),pBe=oe({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",blockCreated:801613},ensUniversalResolver:{address:"0xa6AC935D4971E3CD133b950aE053bECD16fE7f3b",blockCreated:973484}},testnet:!0}),yBe=oe({id:13371,name:"Immutable zkEVM",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.immutable.com"]}},blockExplorers:{default:{name:"Immutable Explorer",url:"https://explorer.immutable.com"}},contracts:{multicall3:{address:"0x236bdA4589e44e6850f5aC6a74BfCa398a86c6c0",blockCreated:4335972}}}),mBe=oe({id:13473,name:"Immutable zkEVM Testnet",nativeCurrency:{decimals:18,name:"Immutable Coin",symbol:"IMX"},rpcUrls:{default:{http:["https://rpc.testnet.immutable.com"]}},blockExplorers:{default:{name:"Immutable Testnet Explorer",url:"https://explorer.testnet.immutable.com/"}},contracts:{multicall3:{address:"0x2CC787Ed364600B0222361C4188308Fa8E68bA60",blockCreated:5977391}},testnet:!0}),bBe=oe({id:107107114116,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),gBe=oe({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),xBe=oe({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),vBe=oe({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]},public:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1}),wBe=oe({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),EBe=oe({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),ABe=oe({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},testnet:!1}),_Be=oe({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},testnet:!0}),CBe=oe({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},testnet:!0}),BBe=oe({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},testnet:!1}),SBe=oe({id:59144,name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),TBe=oe({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://api-goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),FBe=oe({id:59141,name:"Linea Sepolia Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.linea.build"],webSocket:["wss://rpc.sepolia.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.lineascan.build",apiUrl:"https://api-sepolia.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:227427}},testnet:!0}),MBe=oe({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),O3=11155111,DBe=oe({...zt,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...zt.contracts,l2OutputOracle:{[O3]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[O3]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[O3]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:O3}),kBe=oe({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),IBe=oe({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:468183}}}),OBe=oe({id:4201,name:"LUKSO Testnet",nativeCurrency:{decimals:18,name:"LUKSO Testnet",symbol:"LYXt"},rpcUrls:{default:{http:["https://rpc.testnet.lukso.network"],webSocket:["wss://ws-rpc.testnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Testnet Explorer",url:"https://explorer.execution.testnet.lukso.network",apiUrl:"https://api.explorer.execution.testnet.lukso.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:605348}},testnet:!0}),QS=oe({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),PBe=oe({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]},default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),RBe=oe({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),NBe=oe({id:3441006,name:"Manta Pacific Sepolia Testnet",network:"manta-sepolia",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.sepolia-testnet.manta.network/http"]}},blockExplorers:{default:{name:"Manta Sepolia Testnet Explorer",url:"https://pacific-explorer.sepolia-testnet.manta.network",apiUrl:"https://pacific-explorer.sepolia-testnet.manta.network/api"}},contracts:{multicall3:{address:"0xca54918f7B525C8df894668846506767412b53E3",blockCreated:479584}},testnet:!0}),$Be=oe({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),LBe=oe({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",apiUrl:"https://explorer.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),UBe=oe({id:5003,name:"Mantle Sepolia Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.sepolia.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.sepolia.mantle.xyz/",apiUrl:"https://explorer.sepolia.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4584012}},testnet:!0}),jBe=oe({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),HBe=oe({id:4200,name:"Merlin",nativeCurrency:{name:"BTC",symbol:"BTC",decimals:18},rpcUrls:{default:{http:["https://rpc.merlinchain.io"]}},blockExplorers:{default:{name:"blockscout",url:"https://scan.merlinchain.io",apiUrl:"https://scan.merlinchain.io/api"}}}),zBe=oe({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),GBe=oe({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),VBe=oe({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),qBe=oe({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),WBe=oe({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io",apiUrl:"https://andromeda-explorer.metis.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),KBe=oe({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),ZBe=oe({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),QBe=oe({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),XBe=oe({id:1686,name:"Mint Sepolia Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.mintchain.io"]}},blockExplorers:{default:{name:"Mintchain Testnet explorer",url:"https://testnet-explorer.mintchain.io"}},testnet:!0}),JBe=1,YBe=oe({id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Modescan",url:"https://modescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882}},sourceId:JBe}),eSe=11155111,tSe=oe({id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0,sourceId:eSe}),nSe=oe({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),rSe=oe({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),aSe=oe({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),iSe=oe({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),sSe=oe({id:2710,name:"Morph Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.morphl2.io"]}},blockExplorers:{default:{name:"Morph Testnet Explorer",url:"https://explorer-testnet.morphl2.io",apiUrl:"https://explorer-api-testnet.morphl2.io/api"}},testnet:!0}),oSe=oe({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),cSe=oe({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1}),lSe=oe({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),uSe=oe({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),fSe=oe({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),dSe=oe({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]},public:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),hSe=oe({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),P3=1,Zm=oe({...zt,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...zt.contracts,l2OutputOracle:{[P3]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[P3]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[P3]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:P3}),R3=5,pSe=oe({...zt,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...zt.contracts,l2OutputOracle:{[R3]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[R3]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[R3]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:R3}),py=11155111,Kg=oe({...zt,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...zt.contracts,disputeGameFactory:{[py]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[py]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[py]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[py]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:py}),ySe=oe({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881}}}),mSe=oe({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108}},testnet:!0}),bSe=oe({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{oort:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"},default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),gSe=oe({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}}),xSe=oe({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0}),GW={block:L_({format(t){var n;const e=(n=t.transactions)==null?void 0:n.map(r=>{var i;if(typeof r=="string")return r;const a=(i=GW.transaction)==null?void 0:i.format(r);return a.typeHex==="0x71"?a.type="eip712":a.typeHex==="0xff"&&(a.type="priority"),a});return{l1BatchNumber:t.l1BatchNumber?qn(t.l1BatchNumber):null,l1BatchTimestamp:t.l1BatchTimestamp?qn(t.l1BatchTimestamp):null,transactions:e}}}),transaction:$_({format(t){const e={};return t.type==="0x71"?e.type="eip712":t.type==="0xff"&&(e.type="priority"),{...e,l1BatchNumber:t.l1BatchNumber?qn(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?qn(t.l1BatchTxIndex):null}}}),transactionReceipt:$L({format(t){return{l1BatchNumber:t.l1BatchNumber?qn(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?qn(t.l1BatchTxIndex):null,logs:t.logs.map(e=>({...PL(e),l1BatchNumber:e.l1BatchNumber?qn(e.l1BatchNumber):null,transactionLogIndex:Mm(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:t.l2ToL1Logs.map(e=>({blockNumber:qn(e.blockHash),blockHash:e.blockHash,l1BatchNumber:qn(e.l1BatchNumber),transactionIndex:qn(e.transactionIndex),shardId:qn(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:qn(e.logIndex)}))}}}),transactionRequest:BL({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(t){return t.gasPerPubdata||t.paymaster&&t.paymasterInput||t.factoryDeps||t.customSignature?{eip712Meta:{...t.gasPerPubdata?{gasPerPubdata:st(t.gasPerPubdata)}:{},...t.paymaster&&t.paymasterInput?{paymasterParams:{paymaster:t.paymaster,paymasterInput:Array.from(wo(t.paymasterInput))}}:{},...t.factoryDeps?{factoryDeps:t.factoryDeps.map(e=>Array.from(wo(e)))}:{},...t.customSignature?{customSignature:Array.from(wo(t.customSignature))}:{}},type:"0x71"}:{}}})};class vSe extends Bt{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(` +`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidEip712TransactionError"})}}function VW(t){return!!(t.type==="eip712"||"customSignature"in t&&t.customSignature||"paymaster"in t&&t.paymaster||"paymasterInput"in t&&t.paymasterInput||"gasPerPubdata"in t&&typeof t.gasPerPubdata=="bigint"||"factoryDeps"in t&&t.factoryDeps)}function qW(t){const{chainId:e,to:n,from:r,paymaster:a,paymasterInput:i}=t;if(!VW(t))throw new vSe;if(!e||e<=0)throw new Jp({chainId:e});if(n&&!Rr(n))throw new Hi({address:n});if(r&&!Rr(r))throw new Hi({address:r});if(a&&!Rr(a))throw new Hi({address:a});if(a&&!i)throw new Bt("`paymasterInput` must be provided when `paymaster` is defined");if(!a&&i)throw new Bt("`paymaster` must be provided when `paymasterInput` is defined")}function wSe(t,e){return VW(t)?ASe(t):G_(t,e)}const ESe={transaction:wSe};function ASe(t){const{chainId:e,gas:n,nonce:r,to:a,from:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,customSignature:h,factoryDeps:b,paymaster:v,paymasterInput:E,gasPerPubdata:C,data:F}=t;qW(t);const T=[r?st(r):"0x",c?st(c):"0x",o?st(o):"0x",n?st(n):"0x",a??"0x",s?st(s):"0x",F??"0x0",st(e),st(""),st(""),st(e),i??"0x",C?st(C):"0x",b??[],h??"0x",v&&E?[v,E]:[]];return _d(["0x71",kc(T)])}const YO=Fce*32n;class _Se extends Bt{constructor({givenLength:e,maxBytecodeSize:n}){super(`Bytecode cannot be longer than ${n} bytes. Given length: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytecodeLengthExceedsMaxSizeError"})}}class CSe extends Bt{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytecodeLengthInWordsMustBeOddError"})}}class BSe extends Bt{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytecodeLengthMustBeDivisibleBy32Error"})}}function SSe(t){const e=Zy(t);if(e.length%32!==0)throw new BSe({givenLength:e.length});if(e.length>YO)throw new _Se({givenLength:e.length,maxBytecodeSize:YO});const n=ML(e),r=Zy(n),a=e.length/32;if(a%2===0)throw new CSe({givenLengthInWords:a});const i=Zy(a),s=Ad(i,{size:2}),o=new Uint8Array([1,0]);return r.set(o,0),r.set(s,2),r}const TSe=t=>{qW(t);const e=FSe(t);return{domain:{name:"zkSync",version:"2",chainId:t.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:e}};function FSe(t){const{gas:e,nonce:n,to:r,from:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:o,factoryDeps:c,paymaster:h,paymasterInput:b,gasPerPubdata:v,data:E}=t;return{txType:113n,from:BigInt(a),to:r?BigInt(r):0n,gasLimit:e??0n,gasPerPubdataByteLimit:v??0n,maxFeePerGas:s??0n,maxPriorityFeePerGas:o??0n,paymaster:h?BigInt(h):0n,nonce:n?BigInt(n):0n,value:i??0n,data:E||"0x0",factoryDeps:(c==null?void 0:c.map(C=>st(SSe(C))))??[],paymasterInput:b||"0x"}}const w1={formatters:GW,serializers:ESe,custom:{getEip712Domain:TSe}},MSe=oe({...w1,id:1612127,name:"PlayFi Albireo Testnet",network:"albireo",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://albireo-rpc.playfi.ai"],webSocket:["wss://albireo-rpc-ws.playfi.ai/ws"]}},blockExplorers:{default:{name:"PlayFi Albireo Explorer",url:"https://albireo-explorer.playfi.ai"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),N3=1,DSe=oe({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"},blocksout:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{[N3]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[N3]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[N3]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:KS,sourceId:N3}),$3=11155111,kSe=oe({id:58008,network:"pgn-testnet",name:"PGN ",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"},blocksout:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{[$3]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[$3]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[$3]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:KS,sourceId:$3,testnet:!0}),ISe=oe({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),OSe=oe({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),PSe=11155111,RSe=oe({id:161221135,name:"Plume Testnet",nativeCurrency:{name:"Plume Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet-rpc.plumenetwork.xyz/http"],webSocket:["wss://testnet-rpc.plumenetwork.xyz/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.plumenetwork.xyz",apiUrl:"https://testnet-explorer.plumenetwork.xyz/api"}},testnet:!0,sourceId:PSe}),NSe=oe({id:137,name:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),$Se=oe({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3127388}},testnet:!0}),LSe=oe({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://api-testnet.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),USe=oe({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),jSe=oe({id:2442,name:"Polygon zkEVM Cardona",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.cardona.zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://cardona-zkevm.polygonscan.com",apiUrl:"https://cardona-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:114091}}}),HSe=oe({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),zSe=oe({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),GSe=oe({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),VSe=oe({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),qSe=oe({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),WSe=oe({id:1729,name:"Reya Network",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.reya.network"],webSocket:["wss://ws.reya.network"]}},blockExplorers:{default:{name:"Reya Network Explorer",url:"https://explorer.reya.network"}},testnet:!1}),KSe=oe({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),ZSe=oe({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),QSe=oe({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),XSe=oe({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),L3=1,JSe=oe({...zt,id:12553,name:"RSS3 VSL Mainnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Mainnet Scan",url:"https://scan.rss3.io",apiUrl:"https://scan.rss3.io/api"}},contracts:{...zt.contracts,l2OutputOracle:{[L3]:{address:"0xE6f24d2C32B3109B18ed33cF08eFb490b1e09C10"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14193},portal:{[L3]:{address:"0x6A12432491bbbE8d3babf75F759766774C778Db4",blockCreated:19387057}},l1StandardBridge:{[L3]:{address:"0x4cbab69108Aa72151EDa5A3c164eA86845f18438"}}},sourceId:L3}),U3=11155111,YSe=oe({...zt,id:2331,name:"RSS3 VSL Sepolia Testnet",nativeCurrency:{name:"RSS3",symbol:"RSS3",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.rss3.io"]}},blockExplorers:{default:{name:"RSS3 VSL Sepolia Testnet Scan",url:"https://scan.testnet.rss3.io",apiUrl:"https://scan.testnet.rss3.io/api"}},contracts:{...zt.contracts,l2OutputOracle:{[U3]:{address:"0xDb5c46C3Eaa6Ed6aE8b2379785DF7dd029C0dC81"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:55697},portal:{[U3]:{address:"0xcBD77E8E1E7F06B25baDe67142cdE82652Da7b57",blockCreated:5345035}},l1StandardBridge:{[U3]:{address:"0xdDD29bb63B0839FB1cE0eE439Ff027738595D07B"}}},testnet:!0,sourceId:U3}),eTe=oe({id:2021,name:"Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),tTe=oe({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",apiUrl:"https://explorer.sapphire.oasis.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),nTe=oe({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",apiUrl:"https://testnet.explorer.sapphire.oasis.dev/api"}},testnet:!0}),rTe=oe({id:534352,name:"Scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),aTe=oe({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io",apiUrl:"https://sepolia-blockscout.scroll.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),iTe=oe({id:534353,name:"Scroll Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io",apiUrl:"https://blockscout.scroll.io/api"}},testnet:!0}),sTe=oe({id:713715,name:"Sei Devnet",nativeCurrency:{name:"Sei",symbol:"SEI",decimals:18},rpcUrls:{default:{http:["https://evm-rpc-arctic-1.sei-apis.com"]}},blockExplorers:{default:{name:"Seitrace",url:"https://seitrace.com"}},testnet:!0}),sA=oe({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),oTe=oe({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),cTe=oe({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),lTe=oe({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),uTe=oe({id:1564830818,name:"SKALE | Calypso NFT Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),fTe=oe({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),dTe=oe({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),hTe=oe({id:2046399126,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),pTe=oe({id:2046399126,name:"SKALE | Europa Liquidity Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),yTe=oe({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),mTe=oe({id:2139927552,name:"SKALE | Exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),bTe=oe({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),gTe=oe({id:1482601649,name:"SKALE | Nebula Gaming Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),xTe=oe({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),vTe=oe({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),wTe=oe({id:1350216234,name:"SKALE | Titan Community Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),ETe=oe({id:1020352220,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),ATe=oe({id:19,name:"Songbird Mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}}}),_Te=oe({id:16,name:"Coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),CTe=oe({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy-rpc.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),BTe=oe({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),STe=oe({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),TTe=oe({id:105105,name:"Stratis Mainnet",network:"stratis",nativeCurrency:{name:"Stratis",symbol:"STRAX",decimals:18},rpcUrls:{default:{http:["https://rpc.stratisevm.com"]}},blockExplorers:{default:{name:"Stratis Explorer",url:"https://explorer.stratisevm.com"}}}),FTe=oe({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),MTe=oe({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),DTe=oe({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),kTe=oe({id:167009,name:"Taiko Hekla L2",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hekla.taiko.xyz"]}},blockExplorers:{default:{name:"Taikoscan",url:"https://hekla.taikoscan.network"}}}),ITe=oe({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),OTe=oe({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]},public:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}}}),PTe=oe({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),RTe=oe({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),NTe=oe({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),$Te=oe({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),LTe=oe({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),UTe=oe({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0}),jTe=oe({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),HTe=oe({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),zTe=oe({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),GTe=oe({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]},public:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),VTe=oe({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]},public:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),eP=oe({id:195,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://x1testrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/x1-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),qTe=oe({id:196,name:"X Layer Mainnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://rpc.xlayer.tech"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/xlayer"}}}),WTe=oe({id:50,name:"XinFin Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:71542788}}}),KTe=oe({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}}}),ZTe=oe({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://explorer.zetachain.com"}},testnet:!1}),QTe=oe({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens.explorer.zetachain.com"}},testnet:!0}),XTe=oe({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),JTe=oe({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),YTe=oe({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),eFe=oe({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]},public:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),tFe=oe({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]},public:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),nFe=oe({...w1,id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://era.zksync.network/",apiUrl:"https://api-era.zksync.network/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}}),rFe=oe({...w1,id:260,name:"zkSync InMemory Node",network:"zksync-in-memory-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:8011"]}},testnet:!0}),aFe=oe({...w1,id:270,name:"zkSync CLI Local Node",network:"zksync-cli-local-node",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["http://localhost:3050"]}},testnet:!0}),iFe=oe({...w1,id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),sFe=oe({...w1,id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),j3=1,Qm=oe({...zt,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...zt.contracts,l2OutputOracle:{[j3]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[j3]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[j3]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:j3}),H3=11155111,Zg=oe({...zt,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...zt.contracts,l2OutputOracle:{[H3]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[H3]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[H3]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:H3,testnet:!0}),tP=5,Xm=oe({...zt,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...zt.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[tP]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:tP,testnet:!0}),oFe=Object.freeze(Object.defineProperty({__proto__:null,acala:f_e,ancient8:g_e,ancient8Sepolia:x_e,anvil:v_e,apexTestnet:w_e,arbitrum:tA,arbitrumGoerli:nA,arbitrumNova:rA,arbitrumSepolia:aA,areonNetwork:C_e,areonNetworkTestnet:B_e,astar:E_e,astarZkEVM:A_e,astarZkyoto:__e,aurora:S_e,auroraTestnet:T_e,auroria:F_e,avalanche:M_e,avalancheFuji:D_e,bahamut:k_e,base:Vg,baseGoerli:$W,baseSepolia:iA,beam:I_e,beamTestnet:O_e,bearNetworkChainMainnet:P_e,bearNetworkChainTestnet:R_e,berachainTestnet:N_e,bevmMainnet:$_e,bitTorrent:L_e,bitTorrentTestnet:U_e,blast:qg,blastSepolia:Wg,boba:z_e,bronos:G_e,bronosTestnet:V_e,bsc:q_e,bscGreenfield:K_e,bscTestnet:W_e,bxn:Z_e,bxnTestnet:Q_e,canto:X_e,celo:cCe,celoAlfajores:lCe,chiliz:uCe,classic:fCe,confluxESpace:dCe,confluxESpaceTestnet:hCe,coreDao:pCe,cronos:yCe,cronosTestnet:mCe,crossbell:bCe,darwinia:gCe,defichainEvm:xCe,defichainEvmTestnet:vCe,degen:wCe,dfk:ECe,dogechain:ACe,dreyerxMainnet:_Ce,edgeless:CCe,edgelessTestnet:BCe,edgeware:SCe,edgewareTestnet:TCe,ekta:PCe,ektaTestnet:RCe,eon:FCe,eos:MCe,eosTestnet:DCe,etherlinkTestnet:kCe,evmos:ICe,evmosTestnet:OCe,fantom:NCe,fantomSonicTestnet:$Ce,fantomTestnet:LCe,fibo:UCe,filecoin:jCe,filecoinCalibration:HCe,filecoinHyperspace:zCe,flare:GCe,flareTestnet:VCe,flowMainnet:WCe,flowPreviewnet:qCe,flowTestnet:KCe,foundry:ZCe,fraxtal:QCe,fraxtalTestnet:XCe,fuse:JCe,fuseSparknet:YCe,gnosis:iBe,gnosisChiado:sBe,gobi:aBe,goerli:ZS,haqqMainnet:lBe,haqqTestedge2:uBe,hardhat:oBe,harmonyOne:cBe,hedera:fBe,hederaPreviewnet:hBe,hederaTestnet:dBe,holesky:pBe,immutableZkEvm:yBe,immutableZkEvmTestnet:mBe,iotex:eBe,iotexTestnet:tBe,jbc:nBe,kakarotSepolia:bBe,karura:rBe,kava:gBe,kavaTestnet:xBe,kcc:vBe,klaytn:wBe,klaytnBaobab:EBe,kroma:ABe,kromaSepolia:_Be,lightlinkPegasus:CBe,lightlinkPhoenix:BBe,linea:SBe,lineaGoerli:TBe,lineaSepolia:FBe,lineaTestnet:MBe,liskSepolia:DBe,localhost:kBe,lukso:IBe,luksoTestnet:OBe,mainnet:QS,mandala:PBe,manta:RBe,mantaSepoliaTestnet:NBe,mantaTestnet:$Be,mantle:LBe,mantleSepoliaTestnet:UBe,mantleTestnet:jBe,merlin:HBe,metachain:zBe,metachainIstanbul:GBe,meter:VBe,meterTestnet:qBe,metis:WBe,metisGoerli:KBe,mev:ZBe,mevTestnet:QBe,mintSepoliaTestnet:XBe,mode:YBe,modeTestnet:tSe,moonbaseAlpha:nSe,moonbeam:rSe,moonbeamDev:aSe,moonriver:iSe,morphSepolia:sSe,neonDevnet:oSe,neonMainnet:cSe,nexi:lSe,nexilix:uSe,oasisTestnet:dSe,oasys:fSe,okc:hSe,oortMainnetDev:bSe,opBNB:ySe,opBNBTestnet:mSe,optimism:Zm,optimismGoerli:pSe,optimismSepolia:Kg,palm:gSe,palmTestnet:xSe,pgn:DSe,pgnTestnet:kSe,phoenix:ISe,playfiAlbireo:MSe,plinga:OSe,plumeTestnet:RSe,polygon:NSe,polygonAmoy:$Se,polygonMumbai:LSe,polygonZkEvm:USe,polygonZkEvmCardona:jSe,polygonZkEvmTestnet:HSe,pulsechain:zSe,pulsechainV4:GSe,qMainnet:VSe,qTestnet:qSe,reyaNetwork:WSe,rollux:KSe,rolluxTestnet:ZSe,ronin:QSe,rootstock:XSe,rss3:JSe,rss3Sepolia:YSe,saigon:eTe,sapphire:tTe,sapphireTestnet:nTe,scroll:rTe,scrollSepolia:aTe,scrollTestnet:iTe,seiDevnet:sTe,sepolia:sA,shardeumSphinx:BTe,shibarium:STe,shimmer:oTe,shimmerTestnet:cTe,skaleBlockBrawlers:lTe,skaleCalypso:uTe,skaleCalypsoTestnet:fTe,skaleCryptoBlades:dTe,skaleCryptoColosseum:hTe,skaleEuropa:pTe,skaleEuropaTestnet:yTe,skaleExorde:mTe,skaleHumanProtocol:bTe,skaleNebula:gTe,skaleNebulaTestnet:xTe,skaleRazor:vTe,skaleTitan:wTe,skaleTitanTestnet:ETe,songbird:ATe,songbirdTestnet:_Te,spicy:CTe,stratis:TTe,syscoin:FTe,syscoinTestnet:MTe,taikoHekla:kTe,taikoJolnir:ITe,taikoKatla:OTe,taikoTestnetSepolia:PTe,taraxa:DTe,taraxaTestnet:RTe,telos:NTe,telosTestnet:$Te,tenet:LTe,thunderTestnet:UTe,vechain:jTe,wanchain:HTe,wanchainTestnet:zTe,wemix:GTe,wemixTestnet:VTe,x1Testnet:eP,xLayer:qTe,xLayerTestnet:eP,xdc:WTe,xdcTestnet:KTe,zetachain:ZTe,zetachainAthensTestnet:QTe,zhejiang:XTe,zilliqa:JTe,zilliqaTestnet:YTe,zkFair:eFe,zkFairTestnet:tFe,zkSync:nFe,zkSyncInMemoryNode:rFe,zkSyncLocalNode:aFe,zkSyncSepoliaTestnet:iFe,zkSyncTestnet:sFe,zora:Qm,zoraSepolia:Zg,zoraTestnet:Xm},Symbol.toStringTag,{value:"Module"})),z3={multiSendAddress:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",safeProxyFactoryAddress:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",multiSendCallOnlyAddress:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",fallbackHandlerAddress:"0x1AC114C2099aFAf5261731655Dc6c306bFcd4Dbd",createCallAddress:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",signMessageLibAddress:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",safeSingletonAddress:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",simulateTxAccessorAddress:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da"},Qg={[`${Zg.id}`]:z3,[`${Wg.id}`]:z3,[`${Kg.id}`]:z3,[`${qg.id}`]:z3},Jm={[Qm.id]:Qm,[Xm.id]:Xm,[Zg.id]:Zg,[nA.id]:nA,[aA.id]:aA,[rA.id]:rA,[tA.id]:tA,[Vg.id]:Vg,[iA.id]:iA,[sA.id]:sA,[Zm.id]:Zm,[Kg.id]:Kg,[Wg.id]:Wg,[qg.id]:qg};Object.keys(Qg).map(t=>{if(Jm[+t])return;const e=Object.values(oFe).find(n=>n.id.toString()===t);e&&(Jm[+t]=e)});async function cFe(t,e){const n=new Dp.EthersAdapter({ethers:Mg,signerOrProvider:e}),r=await u_e.create({ethAdapter:n,safeAddress:t,contractNetworks:Qg}),a=await r.connect({ethAdapter:new Dp.EthersAdapter({ethers:Mg,signerOrProvider:e}),safeAddress:t,contractNetworks:Qg});return{safeSdk:r,safeSdk2:a,signer:e}}const lFe=({safeData:t})=>{const[e,n]=ve.useState();return ve.useEffect(()=>{if(!t)return;(async()=>{const{safeSdk:a,safeSdk2:i}=t,s=await a.getOwners(),o=await a.getThreshold(),c=Number(await a.getChainId()),h=await a.getNonce(),b=await a.getAddress();n({owners:s,threshold:o,chainId:c,nonce:h,address:b,safeSdk:a,safeSdk2:i})})()},[t,n]),e},uFe=()=>{const t=l_(),[e,n]=ve.useState(),{walletProvider:r}=ci(),a=ve.useCallback(async()=>{t.safeAddress&&r&&n(await cFe(t.safeAddress,await r.getSigner()))},[t.safeAddress,r]),i=ve.useCallback(()=>{t.networkId&&(r==null||r.send("wallet_switchEthereumChain",[{chainId:`0x${parseInt(t.networkId).toString(16)}`}]))},[t.networkId,r]);ve.useEffect(()=>{i()},[i]),ve.useEffect(()=>{a()},[a]);const s=lFe({safeData:e}),o=ve.useMemo(()=>{if(s)return{safeInformation:s}},[s]);return we.jsxs(rt,{paddingTop:8,paddingBottom:8,children:[we.jsx(Dn,{variant:"featured-2",children:"View Safe"}),we.jsx(rt,{paddingTop:4}),o?we.jsx(zN,{context:o}):we.jsx(kn,{onClick:i,children:"Switch network"})]})},fFe=({currentNetwork:t})=>{const[e,n]=ve.useState(t),r=qp(),a=ve.useCallback(i=>{const s=i.value;n(s),r(`/safe/${s}`)},[r]);return we.jsxs(ar,{children:[we.jsx(ar.Label,{children:"Network:"}),we.jsx(Xee,{name:"network",value:e,onChange:a,options:Object.values(Jm).filter(i=>!!i).map(i=>({key:i.id.toString(),value:i.id.toString(),label:i.name}))})]})},dFe=()=>{const[t,e]=ve.useState(),n=l_().networkId,[r,a]=ve.useState(0),i=ve.useCallback(async()=>{const o=new RC(window.ethereum,"any");o.on("accountsChanged",async h=>{console.log({accounts:h});const b=await o.getNetwork();a(Number(b.chainId))}),o.on("disconnect",()=>{e(void 0),a(0)}),o.on("connect",async()=>{e(o);const h=await o.getNetwork();a(Number(h.chainId))}),await o.send("eth_requestAccounts",[]);const c=await o.getSigner();if(o&&c){const h=await o.getNetwork();a(Number(h.chainId)),e(o)}},[e,a]);ve.useEffect(()=>{i()},[i]);const s=ve.useMemo(()=>{if(t)return{walletProvider:t,currentNetwork:r}},[t,r]);return ve.useEffect(()=>{n&&r!==Number(n)&&(t==null||t.send("wallet_switchEthereumChain",[{chainId:`0x${parseInt(n).toString(16)}`}]),a(Number(n)))},[r,n,a,t]),s?we.jsxs(we.Fragment,{children:[we.jsx("br",{}),we.jsx("br",{}),we.jsx(fFe,{currentNetwork:n}),we.jsx(zN,{context:s})]}):we.jsx(rt,{padding:10,justify:"space-between",gap:6,direction:"column",children:we.jsx(kn,{onClick:i,children:"Connect Web3"})})};function hFe(t){if(!Rr(t))return"Invalid address"}function pFe(t){const e={};return t.threshold<=0&&(e.threshold="Threshold needs to be at least 1"),t.threshold>t.addresses.length&&(e.threshold="Threshold cannot be more than the number of addresses"),e}function yFe(){var c;const{walletProvider:t}=ci(),{currentNetwork:e}=ci(),n=x_(),r=qp(),[a,i]=ve.useState(void 0),s=ve.useCallback(async h=>{const b=await h.getSigner(),v=await b.getAddress();i({signer:b,address:v})},[i]);ve.useEffect(()=>{t&&s(t)},[t,s]);const o=ve.useCallback(async h=>{if(a)try{const b=new Dp.EthersAdapter({ethers:Mg,signerOrProvider:a.signer}),C=await(await(await Dp.SafeFactory.create({ethAdapter:b,contractNetworks:Qg})).deploySafe({safeAccountConfig:{owners:h.addresses,threshold:parseInt(h.threshold,10)}})).getAddress();n.show({title:"Created a new safe!",text:`Opening safe... The new safe address is ${C}`}),r(`/safe/${e}/${C}`)}catch(b){n.show({title:"Error creating safe",text:`Message: ${b.message}`})}},[r,e,a,n]);return we.jsxs(rt,{gap:4,paddingTop:10,children:[we.jsx(Dn,{variant:"title-3",children:"Create a new safe"}),we.jsxs(Dn,{variant:"body-1",children:["Network: ",((c=Jm[Number(e)])==null?void 0:c.name)||"unknown"]}),we.jsx(Z8,{onSubmit:o,initialValues:{threshold:1,addresses:[(a==null?void 0:a.address)||"0x"]},validate:pFe,children:({handleSubmit:h,handleChange:b,isSubmitting:v,values:E,errors:C})=>we.jsxs("form",{onSubmit:h,children:[we.jsx(eL,{name:"addresses",render:F=>we.jsxs(we.Fragment,{children:[E.addresses.map((T,P)=>we.jsx(rt,{gap:2,paddingTop:4,children:we.jsx(iu,{validate:hFe,name:`addresses.${P}`,children:({field:{name:D,value:M}})=>we.jsxs(ar,{hasError:!!(C.addresses&&C.addresses[P]),children:[we.jsxs(ar.Label,{children:["Signer address ",P+1,":"," "]}),we.jsx(Bm,{name:D,value:M,onChange:({event:O})=>b(O),endSlot:we.jsx(kn,{color:"critical",size:"small",onClick:()=>F.remove(P),children:"Remove"})}),C.addresses&&C.addresses[P]&&we.jsx(ar.Error,{children:C.addresses[P].toString()})]},P)})},`${T}-${P}`)),we.jsx(rt,{paddingTop:4,paddingBottom:4,children:we.jsx(rt,{children:we.jsx(kn,{onClick:()=>F.push(""),children:"Add"})})})]})}),we.jsxs(ar,{hasError:!!C.threshold,children:[we.jsx(ar.Label,{children:"Threshold:"}),we.jsx(Bm,{inputAttributes:{type:"number"},name:"threshold",value:E.threshold.toString(),onChange:({event:F})=>b(F)}),C.threshold&&we.jsx(ar.Error,{children:C.threshold}),we.jsx(ar.Helper,{children:"This number of signers needs to approve"})]}),we.jsx(rt,{paddingTop:4,children:we.jsx(kn,{type:"submit",attributes:{title:Object.keys(C).length>0?"Please fix all form errors":"Create a new safe"},disabled:Object.keys(C).length>0||v,children:v?"Creating safe...":"Create Safe"})})]})})]})}var WW={exports:{}},mFe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bFe=mFe,gFe=bFe;function KW(){}function ZW(){}ZW.resetWarningCache=KW;var xFe=function(){function t(r,a,i,s,o,c){if(c!==gFe){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:ZW,resetWarningCache:KW};return n.PropTypes=n,n};WW.exports=xFe();var vFe=WW.exports;const G3=md(vFe);function oA(){return oA=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function EFe(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i=0)&&(n[a]=t[a]);return n}var XS=ve.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,a=t.size,i=a===void 0?24:a,s=wFe(t,["color","size"]);return te.createElement("svg",oA({ref:e,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),te.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))});XS.propTypes={color:G3.string,size:G3.oneOfType([G3.string,G3.number])};XS.displayName="Info";const AFe=XS,_Fe=({children:t})=>we.jsx(Ate,{text:t,children:e=>we.jsx(Dc,{size:4,attributes:e,svg:we.jsx(AFe,{})})}),CFe={[QS.id]:"https://etherscan.io/",[Qm.id]:"https://explorer.zora.energy/",[ZS.id]:"https://goerli.etherscan.io/",[Xm.id]:"https://testnet.explorer.zora.energy/",[Zm.id]:"https://optimistic.etherscan.io/"},QW=({address:t,prettyName:e})=>{const n=ci().currentNetwork;return we.jsxs("span",{title:t,children:[e||t," ",we.jsx("a",{title:"View on etherscan",target:"_blank",className:"text-gray-600 hover:color-black transition-color",href:`${CFe[Number(n)]}/address/${t}`,children:"↗"})]})},BFe=(t,e,n)=>{if(!e)return;const r=Array.isArray(e)?e:e.match(/([^[.\]])+/g);if(!r)return;const a=r.reduce((i,s)=>i&&i[s],t);return a===void 0?n:a},Wf=({label:t,fieldProps:e})=>({field:{name:n,value:r,onChange:a},form:{errors:i}})=>{const s=BFe(i,n);return we.jsx(rt,{paddingTop:1,paddingBottom:1,children:we.jsxs(ar,{hasError:!!s,children:[we.jsx(ar.Label,{children:t}),we.jsx(Bm,{name:n,value:r,onChange:({event:o})=>a(o),...e}),s&&we.jsx(ar.Error,{children:s})]},n)})};function Hd(t){this._maxSize=t,this.clear()}Hd.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Hd.prototype.get=function(t){return this._values[t]};Hd.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var SFe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,XW=/^\d+$/,TFe=/^\d/,FFe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,MFe=/^\s*(['"]?)(.*?)(\1)\s*$/,JS=512,nP=new Hd(JS),rP=new Hd(JS),aP=new Hd(JS),Kf={Cache:Hd,split:cA,normalizePath:J9,setter:function(t){var e=J9(t);return rP.get(t)||rP.set(t,function(r,a){for(var i=0,s=e.length,o=r;it.match(PFe)||[],d5=t=>t[0].toUpperCase()+t.slice(1),eT=(t,e)=>f5(t).join(e).toLowerCase(),JW=t=>f5(t).reduce((e,n)=>`${e}${e?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),RFe=t=>d5(JW(t)),NFe=t=>eT(t,"_"),$Fe=t=>eT(t,"-"),LFe=t=>d5(eT(t," ")),UFe=t=>f5(t).map(d5).join(" ");var Y9={words:f5,upperFirst:d5,camelCase:JW,pascalCase:RFe,snakeCase:NFe,kebabCase:$Fe,sentenceCase:LFe,titleCase:UFe},tT={exports:{}};tT.exports=function(t){return YW(jFe(t),t)};tT.exports.array=YW;function YW(t,e){var n=t.length,r=new Array(n),a={},i=n,s=HFe(e),o=zFe(t);for(e.forEach(function(h){if(!o.has(h[0])||!o.has(h[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)a[i]||c(t[i],i,new Set);return r;function c(h,b,v){if(v.has(h)){var E;try{E=", node was:"+JSON.stringify(h)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!o.has(h))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(h));if(!a[b]){a[b]=!0;var C=s.get(h)||new Set;if(C=Array.from(C),b=C.length){v.add(h);do{var F=C[--b];c(F,o.get(F),v)}while(b);v.delete(h)}r[--n]=h}}}function jFe(t){for(var e=new Set,n=0,r=t.length;n"",QFe=/^Symbol\((.*)\)(.*)$/;function XFe(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function iP(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return XFe(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return ZFe.call(t).replace(QFe,"Symbol($1)");const r=qFe.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+WFe.call(t)+"]":r==="RegExp"?KFe.call(t):null}function Bc(t,e){let n=iP(t,e);return n!==null?n:JSON.stringify(t,function(r,a){let i=iP(this[r],e);return i!==null?i:a},2)}function eK(t){return t==null?[]:[].concat(t)}let tK,JFe=/\$\{\s*(\w+)\s*\}/g;tK=Symbol.toStringTag;class Ma extends Error{static formatError(e,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof e=="string"?e.replace(JFe,(a,i)=>Bc(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,a,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[tK]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=a,this.errors=[],this.inner=[],eK(e).forEach(s=>{if(Ma.isError(s)){this.errors.push(...s.errors);const o=s.inner.length?s.inner:[s];this.inner.push(...o)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,Ma)}}let to={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const a=r!=null&&r!==n?` (cast from the value \`${Bc(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Bc(n,!0)}\``+a:`${t} must match the configured type. The validated value was: \`${Bc(n,!0)}\``+a}},os={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ml={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},lA={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},YFe={isValue:"${path} field must be ${value}"},uA={noUnknown:"${path} field has unspecified keys: ${unknown}"},I6={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},eMe={notType:t=>{const{path:e,value:n,spec:r}=t,a=r.types.length;if(Array.isArray(n)){if(n.lengtha)return`${e} tuple value has too many items, expected a length of ${a} but got ${n.length} for value: \`${Bc(n,!0)}\``}return Ma.formatError(to.notType,t)}};Object.assign(Object.create(null),{mixed:to,string:os,number:ml,date:lA,object:uA,array:I6,boolean:YFe,tuple:eMe});const h5=t=>t&&t.__isYupSchema__;class Xg{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:a,otherwise:i}=n,s=typeof r=="function"?r:(...o)=>o.every(c=>c===r);return new Xg(e,(o,c)=>{var h;let b=s(...o)?a:i;return(h=b==null?void 0:b(c))!=null?h:c})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),a=this.fn(r,e,n);if(a===void 0||a===e)return e;if(!h5(a))throw new TypeError("conditions must return a schema object");return a.resolve(n)}}const V3={context:"$",value:"."};class zd{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===V3.context,this.isValue=this.key[0]===V3.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?V3.context:this.isValue?V3.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Kf.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let a=this.isContext?r:this.isValue?e:n;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}zd.prototype.__isYupRef=!0;const wc=t=>t==null;function y0(t){function e({value:n,path:r="",options:a,originalValue:i,schema:s},o,c){const{name:h,test:b,params:v,message:E,skipAbsent:C}=t;let{parent:F,context:T,abortEarly:P=s.spec.abortEarly,disableStackTrace:D=s.spec.disableStackTrace}=a;function M(u){return zd.isRef(u)?u.getValue(n,F,T):u}function O(u={}){var d;const p=Object.assign({value:n,originalValue:i,label:s.spec.label,path:u.path||r,spec:s.spec},v,u.params);for(const y of Object.keys(p))p[y]=M(p[y]);const l=new Ma(Ma.formatError(u.message||E,p),n,p.path,u.type||h,(d=u.disableStackTrace)!=null?d:D);return l.params=p,l}const k=P?o:c;let U={path:r,parent:F,type:h,from:a.from,createError:O,resolve:M,options:a,originalValue:i,schema:s};const V=u=>{Ma.isError(u)?k(u):u?c(null):k(O())},Y=u=>{Ma.isError(u)?k(u):o(u)};if(C&&wc(n))return V(!0);let X;try{var B;if(X=b.call(U,n,U),typeof((B=X)==null?void 0:B.then)=="function"){if(a.sync)throw new Error(`Validation test of type: "${U.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(X).then(V,Y)}}catch(u){Y(u);return}V(X)}return e.OPTIONS=t,e}function tMe(t,e,n,r=n){let a,i,s;return e?(Kf.forEach(e,(o,c,h)=>{let b=c?o.slice(1,o.length-1):o;t=t.resolve({context:r,parent:a,value:n});let v=t.type==="tuple",E=h?parseInt(b,10):0;if(t.innerType||v){if(v&&!h)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&E>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${e}. because there is no value at that index. `);a=n,n=n&&n[E],t=v?t.spec.types[E]:t.innerType}if(!h){if(!t.fields||!t.fields[b])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);a=n,n=n&&n[b],t=t.fields[b]}i=b,s=c?"["+o+"]":"."+o}),{schema:t,parent:a,parentPath:i}):{parent:a,parentPath:e,schema:t}}class Jg extends Set{describe(){const e=[];for(const n of this.values())e.push(zd.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new Jg(this.values())}merge(e,n){const r=this.clone();return e.forEach(a=>r.add(a)),n.forEach(a=>r.delete(a)),r}}function G0(t,e=new Map){if(h5(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r{this.typeError(to.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=G0(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const a=Object.assign({},n.spec,r.spec);return r.spec=a,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((a,i)=>i.resolve(a,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,a,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(a=e.recursive)!=null?a:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({value:e},n)),a=n.assert==="ignore-optionality",i=r._cast(e,n);if(n.assert!==!1&&!r.isType(i)){if(a&&wc(i))return i;let s=Bc(e),o=Bc(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". + +attempted value: ${s} +`+(o!==s?`result of cast: ${o}`:""))}return i}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((a,i)=>i.call(this,a,e,this),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,a){let{path:i,originalValue:s=e,strict:o=this.spec.strict}=n,c=e;o||(c=this._cast(c,Object.assign({assert:!1},n)));let h=[];for(let b of Object.values(this.internalTests))b&&h.push(b);this.runTests({path:i,value:c,originalValue:s,options:n,tests:h},r,b=>{if(b.length)return a(b,c);this.runTests({path:i,value:c,originalValue:s,options:n,tests:this.tests},r,a)})}runTests(e,n,r){let a=!1,{tests:i,value:s,originalValue:o,path:c,options:h}=e,b=T=>{a||(a=!0,n(T,s))},v=T=>{a||(a=!0,r(T,s))},E=i.length,C=[];if(!E)return v([]);let F={value:s,originalValue:o,path:c,options:h,schema:this};for(let T=0;Tthis.resolve(b)._validate(h,b,E,C)}validate(e,n){var r;let a=this.resolve(Object.assign({},n,{value:e})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:a.spec.disableStackTrace;return new Promise((s,o)=>a._validate(e,n,(c,h)=>{Ma.isError(c)&&(c.value=h),o(c)},(c,h)=>{c.length?o(new Ma(c,h,void 0,void 0,i)):s(h)}))}validateSync(e,n){var r;let a=this.resolve(Object.assign({},n,{value:e})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:a.spec.disableStackTrace;return a._validate(e,Object.assign({},n,{sync:!0}),(o,c)=>{throw Ma.isError(o)&&(o.value=c),o},(o,c)=>{if(o.length)throw new Ma(o,e,void 0,void 0,s);i=c}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(Ma.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(Ma.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):G0(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=y0({message:n,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=y0({message:n,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=to.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=to.notNull){return this.nullability(!1,e)}required(e=to.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=to.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),a=y0(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===a.OPTIONS.test))),r.tests.push(a),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),a=eK(e).map(i=>new zd(i));return a.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new Xg(a,n):Xg.fromOptions(a,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=y0({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=to.oneOf){let r=this.clone();return e.forEach(a=>{r._whitelist.add(a),r._blacklist.delete(a)}),r.internalTests.whiteList=y0({message:n,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,n=to.notOneOf){let r=this.clone();return e.forEach(a=>{r._blacklist.add(a),r._whitelist.delete(a)}),r.internalTests.blacklist=y0({message:n,name:"notOneOf",test(a){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:a,optional:i,nullable:s}=n.spec;return{meta:a,label:r,optional:i,nullable:s,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,h,b)=>b.findIndex(v=>v.name===c.name)===h)}}}Xi.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Xi.prototype[`${t}At`]=function(e,n,r={}){const{parent:a,parentPath:i,schema:s}=tMe(this,e,n,r.context);return s[t](a&&a[i],Object.assign({},r,{parent:a,path:e}))};for(const t of["equals","is"])Xi.prototype[t]=Xi.prototype.oneOf;for(const t of["not","nope"])Xi.prototype[t]=Xi.prototype.notOneOf;let nMe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rMe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,aMe=/^(?:[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,iMe=t=>wc(t)||t===t.trim(),sMe={}.toString();function Yg(){return new nK}class nK extends Xi{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const a=e!=null&&e.toString?e.toString():e;return a===sMe?e:a})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||to.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=os.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=os.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=os.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,a,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:a,name:i}=n:a=n),this.test({name:i||"matches",message:a||os.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=os.email){return this.matches(nMe,{name:"email",message:e,excludeEmptyString:!0})}url(e=os.url){return this.matches(rMe,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=os.uuid){return this.matches(aMe,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=os.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:iMe})}lowercase(e=os.lowercase){return this.transform(n=>wc(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>wc(n)||n===n.toLowerCase()})}uppercase(e=os.uppercase){return this.transform(n=>wc(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>wc(n)||n===n.toUpperCase()})}}Yg.prototype=nK.prototype;let oMe=t=>t!=+t;function p5(){return new rK}class rK extends Xi{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!oMe(e)}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce)return e;let a=e;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return r.isType(a)||a===null?a:parseFloat(a)})})}min(e,n=ml.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(e)}})}max(e,n=ml.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(e)}})}lessThan(e,n=ml.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(r){return rthis.resolve(e)}})}positive(e=ml.positive){return this.moreThan(0,e)}negative(e=ml.negative){return this.lessThan(0,e)}integer(e=ml.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(e=>wc(e)?e:e|0)}round(e){var n;let r=["ceil","floor","round","trunc"];if(e=((n=e)==null?void 0:n.toLowerCase())||"round",e==="trunc")return this.truncate();if(r.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(a=>wc(a)?a:Math[e](a))}}p5.prototype=rK.prototype;const cMe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Ho(t,e=0){return Number(t)||e}function lMe(t){const e=cMe.exec(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;const n={year:Ho(e[1]),month:Ho(e[2],1)-1,day:Ho(e[3],1),hour:Ho(e[4]),minute:Ho(e[5]),second:Ho(e[6]),millisecond:e[7]?Ho(e[7].substring(0,3)):0,z:e[8]||void 0,plusMinus:e[9]||void 0,hourOffset:Ho(e[10]),minuteOffset:Ho(e[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let uMe=new Date(""),fMe=t=>Object.prototype.toString.call(t)==="[object Date]";class y5 extends Xi{constructor(){super({type:"date",check(e){return fMe(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=lMe(e),isNaN(e)?y5.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(zd.isRef(e))r=e;else{let a=this.cast(e);if(!this._typeCheck(a))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=a}return r}min(e,n=lA.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(a){return a>=this.resolve(r)}})}max(e,n=lA.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(a){return a<=this.resolve(r)}})}}y5.INVALID_DATE=uMe;y5.prototype;function dMe(t,e=[]){let n=[],r=new Set,a=new Set(e.map(([s,o])=>`${s}-${o}`));function i(s,o){let c=Kf.split(s)[0];r.add(c),a.has(`${o}-${c}`)||n.push([o,c])}for(const s of Object.keys(t)){let o=t[s];r.add(s),zd.isRef(o)&&o.isSibling?i(o.path,s):h5(o)&&"deps"in o&&o.deps.forEach(c=>i(c,s))}return VFe.array(Array.from(r),n).reverse()}function sP(t,e){let n=1/0;return t.some((r,a)=>{var i;if((i=e.path)!=null&&i.includes(r))return n=a,!0}),n}function aK(t){return(e,n)=>sP(t,e)-sP(t,n)}const iK=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function O6(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=O6(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=O6(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(O6)}):"optional"in t?t.optional():t}const hMe=(t,e)=>{const n=[...Kf.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),a=Kf.getter(Kf.join(n),!0)(t);return!!(a&&r in a)};let oP=t=>Object.prototype.toString.call(t)==="[object Object]";function pMe(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const yMe=aK([]);function Ym(t){return new sK(t)}class sK extends Xi{constructor(e){super({type:"object",check(n){return oP(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=yMe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let a=super._cast(e,n);if(a===void 0)return this.getDefault(n);if(!this._typeCheck(a))return a;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),c={},h=Object.assign({},n,{parent:c,__validating:n.__validating||!1}),b=!1;for(const v of o){let E=i[v],C=v in a;if(E){let F,T=a[v];h.path=(n.path?`${n.path}.`:"")+v,E=E.resolve({value:T,context:n.context,parent:c});let P=E instanceof Xi?E.spec:void 0,D=P==null?void 0:P.strict;if(P!=null&&P.strip){b=b||v in a;continue}F=!n.__validating||!D?E.cast(a[v],h):a[v],F!==void 0&&(c[v]=F)}else C&&!s&&(c[v]=a[v]);(C!==v in c||c[v]!==a[v])&&(b=!0)}return b?c:a}_validate(e,n={},r,a){let{from:i=[],originalValue:s=e,recursive:o=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(e,n,r,(c,h)=>{if(!o||!oP(h)){a(c,h);return}s=s||h;let b=[];for(let v of this._nodes){let E=this.fields[v];!E||zd.isRef(E)||b.push(E.asNestedTest({options:n,key:v,parent:h,parentPath:n.path,originalParent:s}))}this.runTests({tests:b,value:h,originalValue:s,options:n},r,v=>{a(v.sort(this._sortErrors).concat(c),h)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[a,i]of Object.entries(this.fields)){const s=r[a];r[a]=s===void 0?i:s}return n.withMutation(a=>a.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var a;const i=this.fields[r];let s=e;(a=s)!=null&&a.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=dMe(e,n),r._sortErrors=aK(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let a=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),a=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),a)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return O6(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,a])=>e.includes(r)&&e.includes(a)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let a=Kf.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return hMe(i,e)&&(s=Object.assign({},i),r||delete s[e],s[n]=a(i)),s})}json(){return this.transform(iK)}noUnknown(e=!0,n=uA.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(a){if(a==null)return!0;const i=pMe(this.schema,a);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=uA.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const a of Object.keys(n))r[e(a)]=n[a];return r})}camelCase(){return this.transformKeys(Y9.camelCase)}snakeCase(){return this.transformKeys(Y9.snakeCase)}constantCase(){return this.transformKeys(e=>Y9.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(n.fields)){var a;let o=e;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),r.fields[i]=s.describe(o)}return r}}Ym.prototype=sK.prototype;function oK(t){return new cK(t)}class cK extends Xi{constructor(e){super({type:"array",spec:{types:e},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=e}_cast(e,n){const r=super._cast(e,n);if(!this._typeCheck(r)||!this.innerType)return r;let a=!1;const i=r.map((s,o)=>{const c=this.innerType.cast(s,Object.assign({},n,{path:`${n.path||""}[${o}]`}));return c!==s&&(a=!0),c});return a?i:r}_validate(e,n={},r,a){var i;let s=this.innerType,o=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(e,n,r,(c,h)=>{var b;if(!o||!s||!this._typeCheck(h)){a(c,h);return}let v=new Array(h.length);for(let C=0;Ca(C.concat(c),h))})}clone(e){const n=super.clone(e);return n.innerType=this.innerType,n}json(){return this.transform(iK)}concat(e){let n=super.concat(e);return n.innerType=this.innerType,e.innerType&&(n.innerType=n.innerType?n.innerType.concat(e.innerType):e.innerType),n}of(e){let n=this.clone();if(!h5(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Bc(e));return n.innerType=e,n.spec=Object.assign({},n.spec,{types:e}),n}length(e,n=I6.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n){return n=n||I6.min,this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n){return n=n||I6.max,this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,n)=>this._typeCheck(e)?e:n==null?[]:[].concat(n))}compact(e){let n=e?(r,a,i)=>!e(r,a,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);if(n.innerType){var a;let i=e;(a=i)!=null&&a.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}oK.prototype=cK.prototype;const mMe=t=>{if(!Rr(t))return"Invalid address"},bMe=t=>{try{HL(t)}catch{return"ETH Value is Invalid"}},lK=Yg().matches(/^0x[a-fA-F0-9]{40}$/,"Needs to be a valid address").required(),uK=({onClick:t,actionDisabled:e,onClose:n})=>we.jsxs(rt,{paddingTop:4,direction:"row",justify:"space-between",children:[we.jsx(rt.Item,{children:we.jsx(kn,{onClick:t,type:"submit",disabled:e,children:"Ok"})}),we.jsx(rt.Item,{children:we.jsx(kn,{onClick:n,children:"Cancel"})})]}),gMe=({onClose:t})=>{const{safeInformation:e}=ci(),n=x_(),[,r]=D8();return we.jsx(Z8,{initialValues:{address:"0x",threshold:e==null?void 0:e.threshold},validationSchema:Ym({address:lK,threshold:p5()}),onSubmit:async({address:a,threshold:i})=>{if(e){try{const s=await e.safeSdk.createAddOwnerTx({ownerAddress:a,threshold:i});r({proposal:JSON.stringify({actions:[{data:s.data.data,value:0,to:e.address}]})})}catch(s){n.show({title:"Error Updating Safe",text:s.toString()})}t()}},children:we.jsxs(P_,{children:[we.jsx(Dn,{variant:"featured-2",children:"Add Owner"}),we.jsx(iu,{name:"address",children:Wf({label:"New User Address"})}),we.jsx(Dn,{children:we.jsx(iu,{name:"threshold",children:Wf({label:"Threshold",fieldProps:{type:"number"}})})}),we.jsx(uK,{onClose:t})]})})},xMe=({onClose:t,target:e})=>{const[n,r]=D8(),{safeInformation:a}=ci(),i=async({threshold:s})=>{const o=await(a==null?void 0:a.safeSdk.createRemoveOwnerTx({ownerAddress:a.address,threshold:s}));!o||!a||(r({proposal:JSON.stringify({actions:[{data:o.data,value:"0",to:a.address}]})}),t())};return we.jsx(Z8,{validationSchema:Ym({threshold:p5()}),initialValues:{threshold:a==null?void 0:a.threshold},onSubmit:i,children:we.jsxs(P_,{children:[we.jsx(Dn,{variant:"featured-2",children:"Remove Owner"}),we.jsxs(Dn,{children:["Owner: ",we.jsx(QW,{address:e})]}),we.jsx(Dn,{children:we.jsx(iu,{name:"threshold",children:Wf({label:"Threshold",fieldProps:{type:"number"}})})}),we.jsx(uK,{onClose:t})]})})},vMe=({action:t,onClose:e})=>we.jsxs(g_,{active:!!t,onClose:e,children:[(t==null?void 0:t.type)==="remove"&&we.jsx(xMe,{onClose:e,target:t.address}),(t==null?void 0:t.type)==="add"&&we.jsx(gMe,{onClose:e})]}),q3=({title:t,description:e,children:n})=>we.jsxs(we.Fragment,{children:[we.jsxs(rt,{direction:"row",align:"center",children:[we.jsxs(Dn,{variant:"body-2",children:[t,":"]})," ",we.jsx(_Fe,{children:e})]}),n]}),fK=({children:t})=>{var a;const[e,n]=ve.useState(),{safeInformation:r}=ci();return we.jsxs("div",{children:[e&&we.jsx(vMe,{onClose:()=>{n(void 0)},action:e}),we.jsx(b_,{children:we.jsxs(rt,{divided:!0,gap:2,children:[we.jsx(rt.Item,{children:we.jsx(q3,{title:"Network",description:"Chain for the Safe",children:((a=Jm[r.chainId])==null?void 0:a.name)||r.chainId.toString()})}),we.jsx(rt.Item,{children:we.jsx(q3,{title:"Threshold",description:`Number of signers that need to approve a transaction before + execution`,children:r.threshold})}),we.jsx(rt.Item,{children:we.jsx(q3,{title:"Signers",description:"Signers are the list of addresses for the signers of the multisig",children:we.jsxs(rt,{paddingTop:1,children:[r.owners.map(i=>we.jsx(rt.Item,{children:we.jsxs(rt,{align:"center",direction:"row",children:[we.jsx(QW,{address:i}),we.jsxs(kn,{onClick:()=>{n({type:"remove",address:i})},variant:"ghost",children:[" ","x"," "]})]})},i)),we.jsx(rt.Item,{children:we.jsx(rt,{justify:"end",direction:"row",children:we.jsx(rt,{children:we.jsx(kn,{onClick:()=>{n({type:"add"})},children:"Add"})})})})]})})}),we.jsx(rt.Item,{children:we.jsx(q3,{title:"Nonce",description:"Nonce is the index of the current transaction of the safe",children:r.nonce})})]})}),t]})},wMe={[QS.id]:"mainnet",[Qm.id]:"zora",[$W.id]:"base-goerli",[Vg.id]:"base",[ZS.id]:"goerli",[Xm.id]:"zora-goerli",[Zm.id]:"optimism"},EMe=({to:t,data:e})=>{const n=ci().currentNetwork,[r,a]=ve.useState(),i=ve.useCallback(async()=>{let s;try{const o=await fetch(`https://${wMe[Number(n)]}.ether.actor/decode/${t}/${e}`);if(!o.ok)throw new Error;s=await o.json()}catch{s=await(await fetch(`https://ether.actor/decode/${e}`)).json()}a(s)},[t,e,a]);return ve.useEffect(()=>{i()},[t,e]),we.jsx("pre",{children:JSON.stringify(r,null,2)})},AMe=Ym({nonce:p5().nullable(),actions:oK(Ym({to:lK,value:Yg().default("0").matches(/^[0-9]+(\.[0-9]+)?$/,"Needs to be a ETH price (0, 1, or 0.23)").required(),data:Yg().default("0x").matches(/^0x(?:[0-9A-Za-z][0-9A-Za-z])*$/,"Data is required to match hex format").required()}))}),dK={to:"0x",value:"0",data:"0x"},hK={nonce:null,actions:[dK]},oh={targets:"targets",calldatas:"calldatas",values:"values"},_Me=()=>{const[t,e]=ve.useState(),[n]=D8();return ve.useEffect(()=>{var s,o,c;const r=(s=n.get(oh.targets))==null?void 0:s.split("|"),a=(o=n.get(oh.calldatas))==null?void 0:o.split("|"),i=(c=n.get(oh.values))==null?void 0:c.split("|");if(r&&a){if(r.length!==a.length||i!=null&&i.length&&(i==null?void 0:i.length)!==r.length){console.log("invalid lengths");return}const h=r.map((b,v)=>({to:b,data:a[v],value:i&&i[v]||"0"}));e({actions:h})}},[n,e]),t},CMe=()=>{const[t,e]=D8();return ve.useCallback(n=>{var r;(r=n.actions)!=null&&r.length&&(console.log("setting params",n.actions),e({[oh.targets]:n.actions.map(a=>a.to).join("|"),[oh.calldatas]:n.actions.map(a=>a.data).join("|"),[oh.values]:n.actions.map(a=>a.value).join("|")}))},[e])};function BMe(t){var e;return{...t,actions:(e=t.actions)==null?void 0:e.map(n=>({...n,value:HL(n.value).toString()}))}}function SMe(t){var e;return{...t,actions:(e=t.actions)==null?void 0:e.map(n=>({...n,value:CL(BigInt(n.value))}))}}const TMe=({name:t,indx:e,remove:n})=>we.jsxs(rt,{children:[we.jsxs(rt,{direction:"row",align:"center",justify:"space-between",children:[we.jsxs(Dn,{variant:"body-2",children:["Action #",e," "]}),we.jsx(kn,{onClick:()=>n(e),variant:"ghost",children:"Remove"})]}),we.jsx(iu,{name:`${t}.to`,validate:mMe,children:Wf({label:"Destination Contract"})}),we.jsx(iu,{name:`${t}.value`,validate:bMe,children:Wf({label:"Value (in ETH)",fieldProps:{type:"number"}})}),we.jsx(iu,{name:`${t}.data`,children:Wf({label:"Data"})})]}),nT=async({proposal:t,safe:e})=>{if(t.actions)return await e.createTransaction({transactions:t.actions,options:{nonce:t.nonce||void 0}})},FMe=async({proposal:t,safe:e})=>{var i;const n=await nT({proposal:t,safe:e});if(!n)throw new Error("No txn");const r=await e.getTransactionHash(n),a=await e.approveTransactionHash(r);return await((i=a.transactionResponse)==null?void 0:i.wait()),a},MMe=async({proposal:t,safe:e})=>{var a;const n=await nT({proposal:t,safe:e});if(!n)throw new Error("No txn");const r=await e.executeTransaction(n);return await((a=r.transactionResponse)==null?void 0:a.wait()),r},DMe=({proposal:t})=>{const{safeInformation:e}=ci(),n=e.safeSdk,r=e.safeSdk2,[a,i]=ve.useState([]),s=ve.useCallback(async()=>{if(!n||!r)return;const o=await nT({proposal:t,safe:n});if(!o)return;const c=await n.getTransactionHash(o),h=await r.getOwnersWhoApprovedTx(c);i(h)},[t,n,r]);return ve.useEffect(()=>{s()},[s]),{approvers:a,loadApprovers:s}},kMe=()=>{const{walletProvider:t}=ci(),[e,n]=ve.useState();return ve.useEffect(()=>{t&&(async()=>{const r=await t.getSigner();n(await r.getAddress())})()},[t]),e};function IMe({hasApproved:t,totalApprovers:e,threshold:n}){const r=n-e;return r===0||r===1&&!t}const OMe=({handleEditClicked:t,proposal:e})=>{var E;const{safeInformation:n}=ci(),r=n.safeSdk,a=x_(),{approvers:i,loadApprovers:s}=DMe({proposal:e}),o=kMe(),c=ve.useCallback(async()=>{if(r)try{const C=await FMe({proposal:e,safe:r});a.show({title:"Approved Txn Hash",text:`Approved with hash: ${C.hash}`}),s()}catch(C){a.show({title:"Error creating safe",text:`Message: ${C.message}`})}},[e,r,a,s]),h=ve.useCallback(async()=>{if(r)try{const C=await MMe({proposal:e,safe:r});a.show({title:"Executed Txn Hash",text:`Executed with hash: ${C.hash}`}),s()}catch(C){a.show({title:"Error creating safe",text:`Message: ${C.message}`})}},[e,r,a,s]),b=o?i.includes(o):!1,v=IMe({hasApproved:b,totalApprovers:i.length,threshold:(n==null?void 0:n.threshold)||0});return we.jsxs(we.Fragment,{children:[we.jsxs(rt,{children:[we.jsxs(rt.Item,{children:["Nonce: ",e.nonce]}),(E=e.actions)==null?void 0:E.map((C,F)=>we.jsxs(we.Fragment,{children:[we.jsxs(rt.Item,{children:["Proposal #",F]}),we.jsxs(rt.Item,{children:["To: ",C.to]}),we.jsxs(rt.Item,{children:["Value: ",CL(BigInt(C.value))]}),C.data?we.jsxs(we.Fragment,{children:[we.jsxs(rt.Item,{children:["Data: ",C.data]}),we.jsxs(rt.Item,{children:["Data Actions:"," ",we.jsx("pre",{children:we.jsx(EMe,{data:C.data,to:C.to})})]})]}):we.jsx(rt.Item,{children:"No data"})]}))]}),we.jsxs(rt,{children:[we.jsxs(rt.Item,{children:["Approvers: (",i.length," out of ",n==null?void 0:n.threshold," ","signed)"]}),i.map(C=>we.jsxs(rt.Item,{children:[C," ",we.jsx("b",{children:C===o&&"(you)"})]},C))]}),we.jsxs(rt,{gap:4,direction:"row",children:[we.jsx(kn,{onClick:t,children:"Edit"}),we.jsx(kn,{onClick:c,disabled:b,children:"Sign"}),we.jsx(kn,{onClick:h,disabled:!v,children:"Sign and Execute"})]})]})},PMe=({proposal:t})=>{const e=CMe(),n=ve.useCallback(a=>{const i=BMe(a);i&&e(i)},[e]),r=t||hK;return we.jsx(rt,{paddingTop:4,children:we.jsx(b_,{children:we.jsx(Z8,{validationSchema:AMe,initialValues:SMe(r),onSubmit:n,children:({handleSubmit:a,values:i,isValid:s})=>we.jsx("form",{onSubmit:a,children:we.jsxs(rt,{gap:4,children:[we.jsx(rt.Item,{children:we.jsx(Dn,{variant:"featured-2",children:"New Proposal Details"})}),we.jsx(rt.Item,{children:we.jsx(iu,{name:"nonce",children:Wf({label:"Nonce (optional)",fieldProps:{type:"number"}})})}),we.jsx(eL,{name:"actions",children:o=>{var c;return we.jsxs(we.Fragment,{children:[(c=i.actions)==null?void 0:c.map((h,b)=>we.jsx(TMe,{remove:o.remove,indx:b,name:`actions.${b}`})),we.jsxs(rt,{direction:"row",justify:"space-between",children:[we.jsx(rt,{children:" "}),we.jsx(kn,{onClick:o.handlePush(dK),children:"Add"})]})]})}}),we.jsx(rt.Item,{children:we.jsx(kn,{disabled:!s,type:"submit",children:"Done"})})]})})})})})},RMe=()=>{const[t,e]=ve.useState(hK),[n,r]=ve.useState(!0),a=_Me();ve.useEffect(()=>{a&&(e(a),r(!1))},[a]);const i=ve.useCallback(s=>{r(!0),s.preventDefault()},[r]);return we.jsx(rt,{paddingTop:4,paddingBottom:8,gap:8,children:we.jsxs(fK,{children:[n&&we.jsx(PMe,{proposal:t,setProposal:e,setIsEditing:r}),!n&&t&&we.jsx(OMe,{proposal:t,handleEditClicked:i})]})})},NMe=()=>{const{networkId:t,safeAddress:e}=l_(),n=qp(),r=()=>{n(`/safe/${t}/${e}/new`)};return we.jsxs(rt,{gap:4,children:[we.jsx(fK,{}),we.jsx(kn,{onClick:r,children:"New Proposal"})]})},$Me=QX([{path:"/",Component:dFe,children:[{path:"/safe/:networkId",index:!0,Component:Yce},{path:"/safe/:networkId/create",Component:yFe},{path:"/safe/:networkId/:safeAddress",Component:uFe,children:[{path:"/safe/:networkId/:safeAddress",index:!0,Component:NMe},{path:"/safe/:networkId/:safeAddress/new",index:!0,Component:RMe}]}]}]),LMe=()=>we.jsx(Vee,{theme:"reshaped",children:we.jsx(gee,{width:"624px",children:we.jsx(iJ,{router:$Me})})});globalThis.Buffer=Xc.Buffer;const UMe=document.getElementById("app"),jMe=_N(UMe);jMe.render(we.jsx(ve.StrictMode,{children:we.jsx(LMe,{})}))});export default zMe(); diff --git a/assets/index-YtML-ub4.js b/assets/index-YtML-ub4.js deleted file mode 100644 index 79da07a..0000000 --- a/assets/index-YtML-ub4.js +++ /dev/null @@ -1,168 +0,0 @@ -var IW=Object.defineProperty;var OW=(t,e,n)=>e in t?IW(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var PW=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ge=(t,e,n)=>(OW(t,typeof e!="symbol"?e+"":e,n),n),t4=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var H=(t,e,n)=>(t4(t,e,"read from private field"),n?n.call(t):e.get(t)),xe=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},re=(t,e,n,r)=>(t4(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);var Od=(t,e,n,r)=>({set _(a){re(t,e,a,n)},get _(){return H(t,e,r)}}),ke=(t,e,n)=>(t4(t,e,"access private method"),n);var QBe=PW((ri,ai)=>{function RO(t,e){for(var n=0;nr[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var qT={},de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof qT<"u"?qT:typeof self<"u"?self:{};function ud(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function NO(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var $O={exports:{}},Z6={},LO={exports:{}},Mt={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var wb=Symbol.for("react.element"),RW=Symbol.for("react.portal"),NW=Symbol.for("react.fragment"),$W=Symbol.for("react.strict_mode"),LW=Symbol.for("react.profiler"),UW=Symbol.for("react.provider"),jW=Symbol.for("react.context"),HW=Symbol.for("react.forward_ref"),zW=Symbol.for("react.suspense"),GW=Symbol.for("react.memo"),VW=Symbol.for("react.lazy"),WT=Symbol.iterator;function qW(t){return t===null||typeof t!="object"?null:(t=WT&&t[WT]||t["@@iterator"],typeof t=="function"?t:null)}var UO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jO=Object.assign,HO={};function Ip(t,e,n){this.props=t,this.context=e,this.refs=HO,this.updater=n||UO}Ip.prototype.isReactComponent={};Ip.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ip.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function zO(){}zO.prototype=Ip.prototype;function qE(t,e,n){this.props=t,this.context=e,this.refs=HO,this.updater=n||UO}var WE=qE.prototype=new zO;WE.constructor=qE;jO(WE,Ip.prototype);WE.isPureReactComponent=!0;var KT=Array.isArray,GO=Object.prototype.hasOwnProperty,KE={current:null},VO={key:!0,ref:!0,__self:!0,__source:!0};function qO(t,e,n){var r,a={},i=null,s=null;if(e!=null)for(r in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)GO.call(e,r)&&!VO.hasOwnProperty(r)&&(a[r]=e[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1>>1,_=x[A];if(0>>1;Aa(V,m))I<_&&0>a(W,V)?(x[A]=W,x[I]=m,A=I):(x[A]=V,x[$]=m,A=$);else if(I<_&&0>a(W,m))x[A]=W,x[I]=m,A=I;else break e}}return f}function a(x,f){var m=x.sortIndex-f.sortIndex;return m!==0?m:x.id-f.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var c=[],h=[],b=1,v=null,E=3,C=!1,M=!1,T=!1,P=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(x){for(var f=n(h);f!==null;){if(f.callback===null)r(h);else if(f.startTime<=x)r(h),f.sortIndex=f.expirationTime,e(c,f);else break;f=n(h)}}function k(x){if(T=!1,O(x),!M)if(n(c)!==null)M=!0,g(U);else{var f=n(h);f!==null&&w(k,f.startTime-x)}}function U(x,f){M=!1,T&&(T=!1,D(L),L=-1),C=!0;var m=E;try{for(O(f),v=n(c);v!==null&&(!(v.expirationTime>f)||x&&!u());){var A=v.callback;if(typeof A=="function"){v.callback=null,E=v.priorityLevel;var _=A(v.expirationTime<=f);f=t.unstable_now(),typeof _=="function"?v.callback=_:v===n(c)&&r(c),O(f)}else r(c);v=n(c)}if(v!==null)var S=!0;else{var $=n(h);$!==null&&w(k,$.startTime-f),S=!1}return S}finally{v=null,E=m,C=!1}}var J=!1,Y=null,L=-1,X=5,B=-1;function u(){return!(t.unstable_now()-Bx||125A?(x.sortIndex=m,e(h,x),n(c)===null&&x===n(h)&&(T?(D(L),L=-1):T=!0,w(k,m-A))):(x.sortIndex=_,e(c,x),M||C||(M=!0,g(U))),x},t.unstable_shouldYield=u,t.unstable_wrapCallback=function(x){var f=E;return function(){var m=E;E=f;try{return x.apply(this,arguments)}finally{E=m}}}})(QO);ZO.exports=QO;var aK=ZO.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var JO=ve,oi=aK;function Ge(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),R9=Object.prototype.hasOwnProperty,iK=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,QT={},JT={};function sK(t){return R9.call(JT,t)?!0:R9.call(QT,t)?!1:iK.test(t)?JT[t]=!0:(QT[t]=!0,!1)}function oK(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function cK(t,e,n,r){if(e===null||typeof e>"u"||oK(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function va(t,e,n,r,a,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Nr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Nr[t]=new va(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Nr[e]=new va(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Nr[t]=new va(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Nr[t]=new va(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Nr[t]=new va(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Nr[t]=new va(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Nr[t]=new va(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Nr[t]=new va(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Nr[t]=new va(t,5,!1,t.toLowerCase(),null,!1,!1)});var QE=/[\-:]([a-z])/g;function JE(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(QE,JE);Nr[e]=new va(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(QE,JE);Nr[e]=new va(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(QE,JE);Nr[e]=new va(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Nr[t]=new va(t,1,!1,t.toLowerCase(),null,!1,!1)});Nr.xlinkHref=new va("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Nr[t]=new va(t,1,!1,t.toLowerCase(),null,!0,!0)});function XE(t,e,n,r){var a=Nr.hasOwnProperty(e)?Nr[e]:null;(a!==null?a.type!==0:r||!(2o||a[s]!==i[o]){var c=` -`+a[s].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=s&&0<=o);break}}}finally{a4=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?sy(t):""}function lK(t){switch(t.tag){case 5:return sy(t.type);case 16:return sy("Lazy");case 13:return sy("Suspense");case 19:return sy("SuspenseList");case 0:case 2:case 15:return t=i4(t.type,!1),t;case 11:return t=i4(t.type.render,!1),t;case 1:return t=i4(t.type,!0),t;default:return""}}function U9(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case m0:return"Fragment";case y0:return"Portal";case N9:return"Profiler";case YE:return"StrictMode";case $9:return"Suspense";case L9:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case eP:return(t.displayName||"Context")+".Consumer";case YO:return(t._context.displayName||"Context")+".Provider";case e_:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case t_:return e=t.displayName||null,e!==null?e:U9(t.type)||"Memo";case pl:e=t._payload,t=t._init;try{return U9(t(e))}catch{}}return null}function uK(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return U9(e);case 8:return e===YE?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ou(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function nP(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function fK(t){var e=nP(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function d2(t){t._valueTracker||(t._valueTracker=fK(t))}function rP(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=nP(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function vg(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function j9(t,e){var n=e.checked;return _n({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function YT(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=ou(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function aP(t,e){e=e.checked,e!=null&&XE(t,"checked",e,!1)}function H9(t,e){aP(t,e);var n=ou(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?z9(t,e.type,n):e.hasOwnProperty("defaultValue")&&z9(t,e.type,ou(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function eB(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function z9(t,e,n){(e!=="number"||vg(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var oy=Array.isArray;function L0(t,e,n,r){if(t=t.options,e){e={};for(var a=0;a"+e.valueOf().toString()+"",e=h2.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Yy(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Sy={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dK=["Webkit","ms","Moz","O"];Object.keys(Sy).forEach(function(t){dK.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Sy[e]=Sy[t]})});function cP(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Sy.hasOwnProperty(t)&&Sy[t]?(""+e).trim():e+"px"}function lP(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,a=cP(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,a):t[n]=a}}var hK=_n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function q9(t,e){if(e){if(hK[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(Ge(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(Ge(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(Ge(61))}if(e.style!=null&&typeof e.style!="object")throw Error(Ge(62))}}function W9(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K9=null;function n_(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Z9=null,U0=null,j0=null;function rB(t){if(t=Ab(t)){if(typeof Z9!="function")throw Error(Ge(280));var e=t.stateNode;e&&(e=ex(e),Z9(t.stateNode,t.type,e))}}function uP(t){U0?j0?j0.push(t):j0=[t]:U0=t}function fP(){if(U0){var t=U0,e=j0;if(j0=U0=null,rB(t),e)for(t=0;t>>=0,t===0?32:31-(AK(t)/CK|0)|0}var p2=64,y2=4194304;function cy(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Ag(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,a=t.suspendedLanes,i=t.pingedLanes,s=n&268435455;if(s!==0){var o=s&~a;o!==0?r=cy(o):(i&=s,i!==0&&(r=cy(i)))}else s=n&~a,s!==0?r=cy(s):i!==0&&(r=cy(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&a)&&(a=r&-r,i=e&-e,a>=i||a===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function Eb(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ss(e),t[e]=n}function MK(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=By),dB=" ",hB=!1;function DP(t,e){switch(t){case"keyup":return rZ.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kP(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var b0=!1;function iZ(t,e){switch(t){case"compositionend":return kP(e);case"keypress":return e.which!==32?null:(hB=!0,dB);case"textInput":return t=e.data,t===dB&&hB?null:t;default:return null}}function sZ(t,e){if(b0)return t==="compositionend"||!u_&&DP(t,e)?(t=MP(),P3=o_=zl=null,b0=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bB(n)}}function RP(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?RP(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function NP(){for(var t=window,e=vg();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=vg(t.document)}return e}function f_(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function yZ(t){var e=NP(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&RP(n.ownerDocument.documentElement,n)){if(r!==null&&f_(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=r.end===void 0?i:Math.min(r.end,a),!t.extend&&i>r&&(a=r,r=i,i=a),a=gB(n,i);var s=gB(n,r);a&&s&&(t.rangeCount!==1||t.anchorNode!==a.node||t.anchorOffset!==a.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(a.node,a.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,g0=null,t7=null,Fy=null,n7=!1;function xB(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;n7||g0==null||g0!==vg(r)||(r=g0,"selectionStart"in r&&f_(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fy&&im(Fy,r)||(Fy=r,r=Tg(t7,"onSelect"),0w0||(t.current=c7[w0],c7[w0]=null,w0--)}function cn(t,e){w0++,c7[w0]=t.current,t.current=e}var cu={},ia=bu(cu),ka=bu(!1),zf=cu;function Wh(t,e){var n=t.type.contextTypes;if(!n)return cu;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in n)a[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function Ia(t){return t=t.childContextTypes,t!=null}function Mg(){hn(ka),hn(ia)}function SB(t,e,n){if(ia.current!==cu)throw Error(Ge(168));cn(ia,e),cn(ka,n)}function qP(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var a in r)if(!(a in e))throw Error(Ge(108,uK(t)||"Unknown",a));return _n({},n,r)}function Fg(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||cu,zf=ia.current,cn(ia,t),cn(ka,ka.current),!0}function TB(t,e,n){var r=t.stateNode;if(!r)throw Error(Ge(169));n?(t=qP(t,e,zf),r.__reactInternalMemoizedMergedChildContext=t,hn(ka),hn(ia),cn(ia,t)):hn(ka),cn(ka,n)}var Zo=null,tx=!1,x4=!1;function WP(t){Zo===null?Zo=[t]:Zo.push(t)}function TZ(t){tx=!0,WP(t)}function gu(){if(!x4&&Zo!==null){x4=!0;var t=0,e=qt;try{var n=Zo;for(qt=1;t>=s,a-=s,yc=1<<32-Ss(e)+a|n<L?(X=Y,Y=null):X=Y.sibling;var B=E(D,Y,O[L],k);if(B===null){Y===null&&(Y=X);break}t&&Y&&B.alternate===null&&e(D,Y),F=i(B,F,L),J===null?U=B:J.sibling=B,J=B,Y=X}if(L===O.length)return n(D,Y),bn&&Lu(D,L),U;if(Y===null){for(;LL?(X=Y,Y=null):X=Y.sibling;var u=E(D,Y,B.value,k);if(u===null){Y===null&&(Y=X);break}t&&Y&&u.alternate===null&&e(D,Y),F=i(u,F,L),J===null?U=u:J.sibling=u,J=u,Y=X}if(B.done)return n(D,Y),bn&&Lu(D,L),U;if(Y===null){for(;!B.done;L++,B=O.next())B=v(D,B.value,k),B!==null&&(F=i(B,F,L),J===null?U=B:J.sibling=B,J=B);return bn&&Lu(D,L),U}for(Y=r(D,Y);!B.done;L++,B=O.next())B=C(Y,D,L,B.value,k),B!==null&&(t&&B.alternate!==null&&Y.delete(B.key===null?L:B.key),F=i(B,F,L),J===null?U=B:J.sibling=B,J=B);return t&&Y.forEach(function(d){return e(D,d)}),bn&&Lu(D,L),U}function P(D,F,O,k){if(typeof O=="object"&&O!==null&&O.type===m0&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case f2:e:{for(var U=O.key,J=F;J!==null;){if(J.key===U){if(U=O.type,U===m0){if(J.tag===7){n(D,J.sibling),F=a(J,O.props.children),F.return=D,D=F;break e}}else if(J.elementType===U||typeof U=="object"&&U!==null&&U.$$typeof===pl&&OB(U)===J.type){n(D,J.sibling),F=a(J,O.props),F.ref=v1(D,J,O),F.return=D,D=F;break e}n(D,J);break}else e(D,J);J=J.sibling}O.type===m0?(F=Pf(O.props.children,D.mode,k,O.key),F.return=D,D=F):(k=z3(O.type,O.key,O.props,null,D.mode,k),k.ref=v1(D,F,O),k.return=D,D=k)}return s(D);case y0:e:{for(J=O.key;F!==null;){if(F.key===J)if(F.tag===4&&F.stateNode.containerInfo===O.containerInfo&&F.stateNode.implementation===O.implementation){n(D,F.sibling),F=a(F,O.children||[]),F.return=D,D=F;break e}else{n(D,F);break}else e(D,F);F=F.sibling}F=T4(O,D.mode,k),F.return=D,D=F}return s(D);case pl:return J=O._init,P(D,F,J(O._payload),k)}if(oy(O))return M(D,F,O,k);if(y1(O))return T(D,F,O,k);E2(D,O)}return typeof O=="string"&&O!==""||typeof O=="number"?(O=""+O,F!==null&&F.tag===6?(n(D,F.sibling),F=a(F,O),F.return=D,D=F):(n(D,F),F=S4(O,D.mode,k),F.return=D,D=F),s(D)):n(D,F)}return P}var Zh=tR(!0),nR=tR(!1),Cb={},bo=bu(Cb),lm=bu(Cb),um=bu(Cb);function Ju(t){if(t===Cb)throw Error(Ge(174));return t}function v_(t,e){switch(cn(um,e),cn(lm,t),cn(bo,Cb),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:V9(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=V9(e,t)}hn(bo),cn(bo,e)}function Qh(){hn(bo),hn(lm),hn(um)}function rR(t){Ju(um.current);var e=Ju(bo.current),n=V9(e,t.type);e!==n&&(cn(lm,t),cn(bo,n))}function w_(t){lm.current===t&&(hn(bo),hn(lm))}var vn=bu(0);function Rg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var v4=[];function E_(){for(var t=0;tn?n:4,t(!0);var r=w4.transition;w4.transition={};try{t(!1),e()}finally{qt=n,w4.transition=r}}function xR(){return Ki().memoizedState}function DZ(t,e,n){var r=Yl(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vR(t))wR(e,n);else if(n=JP(t,e,n,r),n!==null){var a=ba();Ts(n,t,r,a),ER(n,e,r)}}function kZ(t,e,n){var r=Yl(t),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vR(t))wR(e,a);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,o=i(s,n);if(a.hasEagerState=!0,a.eagerState=o,Ms(o,s)){var c=e.interleaved;c===null?(a.next=a,g_(e)):(a.next=c.next,c.next=a),e.interleaved=a;return}}catch{}finally{}n=JP(t,e,a,r),n!==null&&(a=ba(),Ts(n,t,r,a),ER(n,e,r))}}function vR(t){var e=t.alternate;return t===En||e!==null&&e===En}function wR(t,e){Dy=Ng=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ER(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,a_(t,n)}}var $g={readContext:Wi,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},IZ={readContext:Wi,useCallback:function(t,e){return Qs().memoizedState=[t,e===void 0?null:e],t},useContext:Wi,useEffect:RB,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,L3(4194308,4,pR.bind(null,e,t),n)},useLayoutEffect:function(t,e){return L3(4194308,4,t,e)},useInsertionEffect:function(t,e){return L3(4,2,t,e)},useMemo:function(t,e){var n=Qs();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Qs();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=DZ.bind(null,En,t),[r.memoizedState,t]},useRef:function(t){var e=Qs();return t={current:t},e.memoizedState=t},useState:PB,useDebugValue:T_,useDeferredValue:function(t){return Qs().memoizedState=t},useTransition:function(){var t=PB(!1),e=t[0];return t=FZ.bind(null,t[1]),Qs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=En,a=Qs();if(bn){if(n===void 0)throw Error(Ge(407));n=n()}else{if(n=e(),wr===null)throw Error(Ge(349));Vf&30||sR(r,e,n)}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,RB(cR.bind(null,r,i,t),[t]),r.flags|=2048,hm(9,oR.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Qs(),e=wr.identifierPrefix;if(bn){var n=mc,r=yc;n=(r&~(1<<32-Ss(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=fm++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=s.createElement(n,{is:r.is}):(t=s.createElement(n),n==="select"&&(s=t,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):t=s.createElementNS(t,n),t[uo]=e,t[cm]=r,DR(t,e,!1,!1),e.stateNode=t;e:{switch(s=W9(n,r),n){case"dialog":fn("cancel",t),fn("close",t),a=r;break;case"iframe":case"object":case"embed":fn("load",t),a=r;break;case"video":case"audio":for(a=0;aXh&&(e.flags|=128,r=!0,w1(i,!1),e.lanes=4194304)}else{if(!r)if(t=Rg(s),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),w1(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!bn)return jr(e),null}else 2*Un()-i.renderingStartTime>Xh&&n!==1073741824&&(e.flags|=128,r=!0,w1(i,!1),e.lanes=4194304);i.isBackwards?(s.sibling=e.child,e.child=s):(n=i.last,n!==null?n.sibling=s:e.child=s,i.last=s)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Un(),e.sibling=null,n=vn.current,cn(vn,r?n&1|2:n&1),e):(jr(e),null);case 22:case 23:return I_(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Ka&1073741824&&(jr(e),e.subtreeFlags&6&&(e.flags|=8192)):jr(e),null;case 24:return null;case 25:return null}throw Error(Ge(156,e.tag))}function jZ(t,e){switch(h_(e),e.tag){case 1:return Ia(e.type)&&Mg(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Qh(),hn(ka),hn(ia),E_(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return w_(e),null;case 13:if(hn(vn),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Ge(340));Kh()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return hn(vn),null;case 4:return Qh(),null;case 10:return b_(e.type._context),null;case 22:case 23:return I_(),null;case 24:return null;default:return null}}var A2=!1,Yr=!1,HZ=typeof WeakSet=="function"?WeakSet:Set,nt=null;function C0(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Tn(t,e,r)}else n.current=null}function v7(t,e,n){try{n()}catch(r){Tn(t,e,r)}}var VB=!1;function zZ(t,e){if(r7=Cg,t=NP(),f_(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,c=-1,h=0,b=0,v=t,E=null;t:for(;;){for(var C;v!==n||a!==0&&v.nodeType!==3||(o=s+a),v!==i||r!==0&&v.nodeType!==3||(c=s+r),v.nodeType===3&&(s+=v.nodeValue.length),(C=v.firstChild)!==null;)E=v,v=C;for(;;){if(v===t)break t;if(E===n&&++h===a&&(o=s),E===i&&++b===r&&(c=s),(C=v.nextSibling)!==null)break;v=E,E=v.parentNode}v=C}n=o===-1||c===-1?null:{start:o,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(a7={focusedElem:t,selectionRange:n},Cg=!1,nt=e;nt!==null;)if(e=nt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,nt=t;else for(;nt!==null;){e=nt;try{var M=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(M!==null){var T=M.memoizedProps,P=M.memoizedState,D=e.stateNode,F=D.getSnapshotBeforeUpdate(e.elementType===e.type?T:us(e.type,T),P);D.__reactInternalSnapshotBeforeUpdate=F}break;case 3:var O=e.stateNode.containerInfo;O.nodeType===1?O.textContent="":O.nodeType===9&&O.documentElement&&O.removeChild(O.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ge(163))}}catch(k){Tn(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,nt=t;break}nt=e.return}return M=VB,VB=!1,M}function ky(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var a=r=r.next;do{if((a.tag&t)===t){var i=a.destroy;a.destroy=void 0,i!==void 0&&v7(e,n,i)}a=a.next}while(a!==r)}}function ax(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function w7(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function OR(t){var e=t.alternate;e!==null&&(t.alternate=null,OR(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[uo],delete e[cm],delete e[o7],delete e[CZ],delete e[SZ])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function PR(t){return t.tag===5||t.tag===3||t.tag===4}function qB(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||PR(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function E7(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Bg));else if(r!==4&&(t=t.child,t!==null))for(E7(t,e,n),t=t.sibling;t!==null;)E7(t,e,n),t=t.sibling}function _7(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(_7(t,e,n),t=t.sibling;t!==null;)_7(t,e,n),t=t.sibling}var Dr=null,xs=!1;function Xc(t,e,n){for(n=n.child;n!==null;)RR(t,e,n),n=n.sibling}function RR(t,e,n){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(Q6,n)}catch{}switch(n.tag){case 5:Yr||C0(n,e);case 6:var r=Dr,a=xs;Dr=null,Xc(t,e,n),Dr=r,xs=a,Dr!==null&&(xs?(t=Dr,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Dr.removeChild(n.stateNode));break;case 18:Dr!==null&&(xs?(t=Dr,n=n.stateNode,t.nodeType===8?g4(t.parentNode,n):t.nodeType===1&&g4(t,n),rm(t)):g4(Dr,n.stateNode));break;case 4:r=Dr,a=xs,Dr=n.stateNode.containerInfo,xs=!0,Xc(t,e,n),Dr=r,xs=a;break;case 0:case 11:case 14:case 15:if(!Yr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){a=r=r.next;do{var i=a,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&v7(n,e,s),a=a.next}while(a!==r)}Xc(t,e,n);break;case 1:if(!Yr&&(C0(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Tn(n,e,o)}Xc(t,e,n);break;case 21:Xc(t,e,n);break;case 22:n.mode&1?(Yr=(r=Yr)||n.memoizedState!==null,Xc(t,e,n),Yr=r):Xc(t,e,n);break;default:Xc(t,e,n)}}function WB(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new HZ),e.forEach(function(r){var a=XZ.bind(null,t,r);n.has(r)||(n.add(r),r.then(a,a))})}}function ts(t,e){var n=e.deletions;if(n!==null)for(var r=0;ra&&(a=s),r&=~i}if(r=a,r=Un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VZ(r/1960))-r,10t?16:t,Gl===null)var r=!1;else{if(t=Gl,Gl=null,jg=0,It&6)throw Error(Ge(331));var a=It;for(It|=4,nt=t.current;nt!==null;){var i=nt,s=i.child;if(nt.flags&16){var o=i.deletions;if(o!==null){for(var c=0;cUn()-D_?Of(t,0):F_|=n),Oa(t,e)}function GR(t,e){e===0&&(t.mode&1?(e=y2,y2<<=1,!(y2&130023424)&&(y2=4194304)):e=1);var n=ba();t=Bc(t,e),t!==null&&(Eb(t,e,n),Oa(t,n))}function JZ(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),GR(t,n)}function XZ(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(Ge(314))}r!==null&&r.delete(e),GR(t,n)}var VR;VR=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||ka.current)Fa=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Fa=!1,LZ(t,e,n);Fa=!!(t.flags&131072)}else Fa=!1,bn&&e.flags&1048576&&KP(e,kg,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;U3(t,e),t=e.pendingProps;var a=Wh(e,ia.current);z0(e,n),a=A_(null,e,r,t,a,n);var i=C_();return e.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ia(r)?(i=!0,Fg(e)):i=!1,e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,x_(e),a.updater=nx,e.stateNode=a,a._reactInternals=e,h7(e,r,t,n),e=m7(null,e,r,!0,i,n)):(e.tag=0,bn&&i&&d_(e),da(null,e,a,n),e=e.child),e;case 16:r=e.elementType;e:{switch(U3(t,e),t=e.pendingProps,a=r._init,r=a(r._payload),e.type=r,a=e.tag=eQ(r),t=us(r,t),a){case 0:e=y7(null,e,r,t,n);break e;case 1:e=HB(null,e,r,t,n);break e;case 11:e=UB(null,e,r,t,n);break e;case 14:e=jB(null,e,r,us(r.type,t),n);break e}throw Error(Ge(306,r,""))}return e;case 0:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:us(r,a),y7(t,e,r,a,n);case 1:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:us(r,a),HB(t,e,r,a,n);case 3:e:{if(BR(e),t===null)throw Error(Ge(387));r=e.pendingProps,i=e.memoizedState,a=i.element,XP(t,e),Pg(e,r,null,n);var s=e.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){a=Jh(Error(Ge(423)),e),e=zB(t,e,r,n,a);break e}else if(r!==a){a=Jh(Error(Ge(424)),e),e=zB(t,e,r,n,a);break e}else for(ti=Ql(e.stateNode.containerInfo.firstChild),ii=e,bn=!0,ws=null,n=nR(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Kh(),r===a){e=Mc(t,e,n);break e}da(t,e,r,n)}e=e.child}return e;case 5:return rR(e),t===null&&u7(e),r=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,s=a.children,i7(r,a)?s=null:i!==null&&i7(r,i)&&(e.flags|=32),TR(t,e),da(t,e,s,n),e.child;case 6:return t===null&&u7(e),null;case 13:return MR(t,e,n);case 4:return v_(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Zh(e,null,r,n):da(t,e,r,n),e.child;case 11:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:us(r,a),UB(t,e,r,a,n);case 7:return da(t,e,e.pendingProps,n),e.child;case 8:return da(t,e,e.pendingProps.children,n),e.child;case 12:return da(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,a=e.pendingProps,i=e.memoizedProps,s=a.value,cn(Ig,r._currentValue),r._currentValue=s,i!==null)if(Ms(i.value,s)){if(i.children===a.children&&!ka.current){e=Mc(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var c=o.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=wc(-1,n&-n),c.tag=2;var h=i.updateQueue;if(h!==null){h=h.shared;var b=h.pending;b===null?c.next=c:(c.next=b.next,b.next=c),h.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),f7(i.return,n,e),o.lanes|=n;break}c=c.next}}else if(i.tag===10)s=i.type===e.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(Ge(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),f7(s,n,e),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}da(t,e,a.children,n),e=e.child}return e;case 9:return a=e.type,r=e.pendingProps.children,z0(e,n),a=Wi(a),r=r(a),e.flags|=1,da(t,e,r,n),e.child;case 14:return r=e.type,a=us(r,e.pendingProps),a=us(r.type,a),jB(t,e,r,a,n);case 15:return CR(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,a=e.pendingProps,a=e.elementType===r?a:us(r,a),U3(t,e),e.tag=1,Ia(r)?(t=!0,Fg(e)):t=!1,z0(e,n),eR(e,r,a),h7(e,r,a,n),m7(null,e,r,!0,t,n);case 19:return FR(t,e,n);case 22:return SR(t,e,n)}throw Error(Ge(156,e.tag))};function qR(t,e){return gP(t,e)}function YZ(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ri(t,e,n,r){return new YZ(t,e,n,r)}function P_(t){return t=t.prototype,!(!t||!t.isReactComponent)}function eQ(t){if(typeof t=="function")return P_(t)?1:0;if(t!=null){if(t=t.$$typeof,t===e_)return 11;if(t===t_)return 14}return 2}function eu(t,e){var n=t.alternate;return n===null?(n=Ri(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function z3(t,e,n,r,a,i){var s=2;if(r=t,typeof t=="function")P_(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case m0:return Pf(n.children,a,i,e);case YE:s=8,a|=8;break;case N9:return t=Ri(12,n,e,a|2),t.elementType=N9,t.lanes=i,t;case $9:return t=Ri(13,n,e,a),t.elementType=$9,t.lanes=i,t;case L9:return t=Ri(19,n,e,a),t.elementType=L9,t.lanes=i,t;case tP:return sx(n,a,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case YO:s=10;break e;case eP:s=9;break e;case e_:s=11;break e;case t_:s=14;break e;case pl:s=16,r=null;break e}throw Error(Ge(130,t==null?t:typeof t,""))}return e=Ri(s,n,e,a),e.elementType=t,e.type=r,e.lanes=i,e}function Pf(t,e,n,r){return t=Ri(7,t,r,e),t.lanes=n,t}function sx(t,e,n,r){return t=Ri(22,t,r,e),t.elementType=tP,t.lanes=n,t.stateNode={isHidden:!1},t}function S4(t,e,n){return t=Ri(6,t,null,e),t.lanes=n,t}function T4(t,e,n){return e=Ri(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function tQ(t,e,n,r,a){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=o4(0),this.expirationTimes=o4(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=o4(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function R_(t,e,n,r,a,i,s,o,c){return t=new tQ(t,e,n,o,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Ri(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},x_(i),t}function nQ(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QR)}catch(t){console.error(t)}}QR(),KO.exports=li;var U_=KO.exports;const JR=ud(U_),oQ=RO({__proto__:null,default:JR},[U_]);var XR,tM=U_;XR=tM.createRoot,tM.hydrateRoot;/** - * @remix-run/router v1.13.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Bn(){return Bn=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function lu(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function lQ(){return Math.random().toString(36).substr(2,8)}function rM(t,e){return{usr:t.state,key:t.key,idx:e}}function ym(t,e,n,r){return n===void 0&&(n=null),Bn({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Do(e):e,{state:n,key:e&&e.key||r||lQ()})}function Sb(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Do(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function uQ(t,e,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o=Nn.Pop,c=null,h=b();h==null&&(h=0,s.replaceState(Bn({},s.state,{idx:h}),""));function b(){return(s.state||{idx:null}).idx}function v(){o=Nn.Pop;let P=b(),D=P==null?null:P-h;h=P,c&&c({action:o,location:T.location,delta:D})}function E(P,D){o=Nn.Push;let F=ym(T.location,P,D);n&&n(F,P),h=b()+1;let O=rM(F,h),k=T.createHref(F);try{s.pushState(O,"",k)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(k)}i&&c&&c({action:o,location:T.location,delta:1})}function C(P,D){o=Nn.Replace;let F=ym(T.location,P,D);n&&n(F,P),h=b();let O=rM(F,h),k=T.createHref(F);s.replaceState(O,"",k),i&&c&&c({action:o,location:T.location,delta:0})}function M(P){let D=a.location.origin!=="null"?a.location.origin:a.location.href,F=typeof P=="string"?P:Sb(P);return Bt(D,"No window.location.(origin|href) available to create URL for href: "+F),new URL(F,D)}let T={get action(){return o},get location(){return t(a,s)},listen(P){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(nM,v),c=P,()=>{a.removeEventListener(nM,v),c=null}},createHref(P){return e(a,P)},createURL:M,encodeLocation(P){let D=M(P);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:E,replace:C,go(P){return s.go(P)}};return T}var $n;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})($n||($n={}));const fQ=new Set(["lazy","caseSensitive","path","id","index","children"]);function dQ(t){return t.index===!0}function B7(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((a,i)=>{let s=[...n,i],o=typeof a.id=="string"?a.id:s.join("-");if(Bt(a.index!==!0||!a.children,"Cannot specify children on an index route"),Bt(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),dQ(a)){let c=Bn({},a,e(a),{id:o});return r[o]=c,c}else{let c=Bn({},a,e(a),{id:o,children:void 0});return r[o]=c,a.children&&(c.children=B7(a.children,e,s,r)),c}})}function T0(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?Do(e):e,a=Tb(r.pathname||"/",n);if(a==null)return null;let i=YR(t);pQ(i);let s=null;for(let o=0;s==null&&o{let c={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(Bt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let h=tu([r,c.relativePath]),b=n.concat(c);i.children&&i.children.length>0&&(Bt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+h+'".')),YR(i.children,e,b,h)),!(i.path==null&&!i.index)&&e.push({path:h,score:wQ(h,i.index),routesMeta:b})};return t.forEach((i,s)=>{var o;if(i.path===""||!((o=i.path)!=null&&o.includes("?")))a(i,s);else for(let c of eN(i.path))a(i,s,c)}),e}function eN(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=eN(r.join("/")),o=[];return o.push(...s.map(c=>c===""?i:[i,c].join("/"))),a&&o.push(...s),o.map(c=>t.startsWith("/")&&c===""?"/":c)}function pQ(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:EQ(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yQ=/^:\w+$/,mQ=3,bQ=2,gQ=1,xQ=10,vQ=-2,aM=t=>t==="*";function wQ(t,e){let n=t.split("/"),r=n.length;return n.some(aM)&&(r+=vQ),e&&(r+=bQ),n.filter(a=>!aM(a)).reduce((a,i)=>a+(yQ.test(i)?mQ:i===""?gQ:xQ),r)}function EQ(t,e){return t.length===e.length&&t.slice(0,-1).every((r,a)=>r===e[a])?t[t.length-1]-e[e.length-1]:0}function _Q(t,e){let{routesMeta:n}=t,r={},a="/",i=[];for(let s=0;s{let{paramName:E,isOptional:C}=b;if(E==="*"){let T=o[v]||"";s=i.slice(0,i.length-T.length).replace(/(.)\/+$/,"$1")}const M=o[v];return C&&!M?h[E]=void 0:h[E]=TQ(M||"",E),h},{}),pathname:i,pathnameBase:s,pattern:t}}function CQ(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),lu(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,o,c)=>(r.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function SQ(t){try{return decodeURI(t)}catch(e){return lu(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function TQ(t,e){try{return decodeURIComponent(t)}catch(n){return lu(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),t}}function Tb(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function BQ(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:a=""}=typeof t=="string"?Do(t):t;return{pathname:n?n.startsWith("/")?n:MQ(n,e):e,search:DQ(r),hash:kQ(a)}}function MQ(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function B4(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function tN(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function nN(t){return tN(t).map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function rN(t,e,n,r){r===void 0&&(r=!1);let a;typeof t=="string"?a=Do(t):(a=Bn({},t),Bt(!a.pathname||!a.pathname.includes("?"),B4("?","pathname","search",a)),Bt(!a.pathname||!a.pathname.includes("#"),B4("#","pathname","hash",a)),Bt(!a.search||!a.search.includes("#"),B4("#","search","hash",a)));let i=t===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=n;else if(r){let v=e[e.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let E=s.split("/");for(;E[0]==="..";)E.shift(),v.pop();a.pathname=E.join("/")}o="/"+v.join("/")}else{let v=e.length-1;if(s.startsWith("..")){let E=s.split("/");for(;E[0]==="..";)E.shift(),v-=1;a.pathname=E.join("/")}o=v>=0?e[v]:"/"}let c=BQ(a,o),h=s&&s!=="/"&&s.endsWith("/"),b=(i||s===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(h||b)&&(c.pathname+="/"),c}const tu=t=>t.join("/").replace(/\/\/+/g,"/"),FQ=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),DQ=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,kQ=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class j_{constructor(e,n,r,a){a===void 0&&(a=!1),this.status=e,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function aN(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const iN=["post","put","patch","delete"],IQ=new Set(iN),OQ=["get",...iN],PQ=new Set(OQ),RQ=new Set([301,302,303,307,308]),NQ=new Set([307,308]),M4={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$Q={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_1={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LQ=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),oN="remix-router-transitions";function UQ(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;Bt(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(t.mapRouteProperties)a=t.mapRouteProperties;else if(t.detectErrorBoundary){let oe=t.detectErrorBoundary;a=fe=>({hasErrorBoundary:oe(fe)})}else a=LQ;let i={},s=B7(t.routes,a,void 0,i),o,c=t.basename||"/",h=Bn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},t.future),b=null,v=new Set,E=null,C=null,M=null,T=t.hydrationData!=null,P=T0(s,t.history.location,c),D=null;if(P==null){let oe=Bi(404,{pathname:t.history.location.pathname}),{matches:fe,route:Ce}=dM(s);P=fe,D={[Ce.id]:oe}}let F=!P.some(oe=>oe.route.lazy)&&(!P.some(oe=>oe.route.loader)||t.hydrationData!=null),O,k={historyAction:t.history.action,location:t.history.location,matches:P,initialized:F,navigation:M4,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||D,fetchers:new Map,blockers:new Map},U=Nn.Pop,J=!1,Y,L=!1,X=new Map,B=null,u=!1,d=!1,p=[],l=[],y=new Map,g=0,w=-1,x=new Map,f=new Set,m=new Map,A=new Map,_=new Set,S=new Map,$=new Map,V=!1;function I(){if(b=t.history.listen(oe=>{let{action:fe,location:Ce,delta:Ae}=oe;if(V){V=!1;return}lu($.size===0||Ae!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let _e=at({currentLocation:k.location,nextLocation:Ce,historyAction:fe});if(_e&&Ae!=null){V=!0,t.history.go(Ae*-1),Oe(_e,{state:"blocked",location:Ce,proceed(){Oe(_e,{state:"proceeding",proceed:void 0,reset:void 0,location:Ce}),t.history.go(Ae)},reset(){let Je=new Map(k.blockers);Je.set(_e,_1),Z({blockers:Je})}});return}return j(fe,Ce)}),n){JQ(e,X);let oe=()=>XQ(e,X);e.addEventListener("pagehide",oe),B=()=>e.removeEventListener("pagehide",oe)}return k.initialized||j(Nn.Pop,k.location),O}function W(){b&&b(),B&&B(),v.clear(),Y&&Y.abort(),k.fetchers.forEach((oe,fe)=>me(fe)),k.blockers.forEach((oe,fe)=>Ne(fe))}function z(oe){return v.add(oe),()=>v.delete(oe)}function Z(oe,fe){fe===void 0&&(fe={}),k=Bn({},k,oe);let Ce=[],Ae=[];h.v7_fetcherPersist&&k.fetchers.forEach((_e,Je)=>{_e.state==="idle"&&(_.has(Je)?Ae.push(Je):Ce.push(Je))}),[...v].forEach(_e=>_e(k,{deletedFetchers:Ae,unstable_viewTransitionOpts:fe.viewTransitionOpts,unstable_flushSync:fe.flushSync===!0})),h.v7_fetcherPersist&&(Ce.forEach(_e=>k.fetchers.delete(_e)),Ae.forEach(_e=>me(_e)))}function le(oe,fe,Ce){var Ae,_e;let{flushSync:Je}=Ce===void 0?{}:Ce,Fe=k.actionData!=null&&k.navigation.formMethod!=null&&vs(k.navigation.formMethod)&&k.navigation.state==="loading"&&((Ae=oe.state)==null?void 0:Ae._isRedirect)!==!0,Se;fe.actionData?Object.keys(fe.actionData).length>0?Se=fe.actionData:Se=null:Fe?Se=k.actionData:Se=null;let ze=fe.loaderData?fM(k.loaderData,fe.loaderData,fe.matches||[],fe.errors):k.loaderData,Pe=k.blockers;Pe.size>0&&(Pe=new Map(Pe),Pe.forEach((Le,De)=>Pe.set(De,_1)));let Ie=J===!0||k.navigation.formMethod!=null&&vs(k.navigation.formMethod)&&((_e=oe.state)==null?void 0:_e._isRedirect)!==!0;o&&(s=o,o=void 0),u||U===Nn.Pop||(U===Nn.Push?t.history.push(oe,oe.state):U===Nn.Replace&&t.history.replace(oe,oe.state));let Ye;if(U===Nn.Pop){let Le=X.get(k.location.pathname);Le&&Le.has(oe.pathname)?Ye={currentLocation:k.location,nextLocation:oe}:X.has(oe.pathname)&&(Ye={currentLocation:oe,nextLocation:k.location})}else if(L){let Le=X.get(k.location.pathname);Le?Le.add(oe.pathname):(Le=new Set([oe.pathname]),X.set(k.location.pathname,Le)),Ye={currentLocation:k.location,nextLocation:oe}}Z(Bn({},fe,{actionData:Se,loaderData:ze,historyAction:U,location:oe,initialized:!0,navigation:M4,revalidation:"idle",restoreScrollPosition:He(oe,fe.matches||k.matches),preventScrollReset:Ie,blockers:Pe}),{viewTransitionOpts:Ye,flushSync:Je===!0}),U=Nn.Pop,J=!1,L=!1,u=!1,d=!1,p=[],l=[]}async function ue(oe,fe){if(typeof oe=="number"){t.history.go(oe);return}let Ce=M7(k.location,k.matches,c,h.v7_prependBasename,oe,fe==null?void 0:fe.fromRouteId,fe==null?void 0:fe.relative),{path:Ae,submission:_e,error:Je}=iM(h.v7_normalizeFormMethod,!1,Ce,fe),Fe=k.location,Se=ym(k.location,Ae,fe&&fe.state);Se=Bn({},Se,t.history.encodeLocation(Se));let ze=fe&&fe.replace!=null?fe.replace:void 0,Pe=Nn.Push;ze===!0?Pe=Nn.Replace:ze===!1||_e!=null&&vs(_e.formMethod)&&_e.formAction===k.location.pathname+k.location.search&&(Pe=Nn.Replace);let Ie=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Ye=(fe&&fe.unstable_flushSync)===!0,Le=at({currentLocation:Fe,nextLocation:Se,historyAction:Pe});if(Le){Oe(Le,{state:"blocked",location:Se,proceed(){Oe(Le,{state:"proceeding",proceed:void 0,reset:void 0,location:Se}),ue(oe,fe)},reset(){let De=new Map(k.blockers);De.set(Le,_1),Z({blockers:De})}});return}return await j(Pe,Se,{submission:_e,pendingError:Je,preventScrollReset:Ie,replace:fe&&fe.replace,enableViewTransition:fe&&fe.unstable_viewTransition,flushSync:Ye})}function G(){if(he(),Z({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){j(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}j(U||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function j(oe,fe,Ce){Y&&Y.abort(),Y=null,U=oe,u=(Ce&&Ce.startUninterruptedRevalidation)===!0,Xe(k.location,k.matches),J=(Ce&&Ce.preventScrollReset)===!0,L=(Ce&&Ce.enableViewTransition)===!0;let Ae=o||s,_e=Ce&&Ce.overrideNavigation,Je=T0(Ae,fe,c),Fe=(Ce&&Ce.flushSync)===!0;if(!Je){let De=Bi(404,{pathname:fe.pathname}),{matches:st,route:We}=dM(Ae);qe(),le(fe,{matches:st,loaderData:{},errors:{[We.id]:De}},{flushSync:Fe});return}if(k.initialized&&!d&&VQ(k.location,fe)&&!(Ce&&Ce.submission&&vs(Ce.submission.formMethod))){le(fe,{matches:Je},{flushSync:Fe});return}Y=new AbortController;let Se=C1(t.history,fe,Y.signal,Ce&&Ce.submission),ze,Pe;if(Ce&&Ce.pendingError)Pe={[Py(Je).route.id]:Ce.pendingError};else if(Ce&&Ce.submission&&vs(Ce.submission.formMethod)){let De=await ne(Se,fe,Ce.submission,Je,{replace:Ce.replace,flushSync:Fe});if(De.shortCircuited)return;ze=De.pendingActionData,Pe=De.pendingActionError,_e=F4(fe,Ce.submission),Fe=!1,Se=new Request(Se.url,{signal:Se.signal})}let{shortCircuited:Ie,loaderData:Ye,errors:Le}=await se(Se,fe,Je,_e,Ce&&Ce.submission,Ce&&Ce.fetcherSubmission,Ce&&Ce.replace,Fe,ze,Pe);Ie||(Y=null,le(fe,Bn({matches:Je},ze?{actionData:ze}:{},{loaderData:Ye,errors:Le})))}async function ne(oe,fe,Ce,Ae,_e){_e===void 0&&(_e={}),he();let Je=ZQ(fe,Ce);Z({navigation:Je},{flushSync:_e.flushSync===!0});let Fe,Se=D7(Ae,fe);if(!Se.route.action&&!Se.route.lazy)Fe={type:$n.error,error:Bi(405,{method:oe.method,pathname:fe.pathname,routeId:Se.route.id})};else if(Fe=await A1("action",oe,Se,Ae,i,a,c),oe.signal.aborted)return{shortCircuited:!0};if(V0(Fe)){let ze;return _e&&_e.replace!=null?ze=_e.replace:ze=Fe.location===k.location.pathname+k.location.search,await K(k,Fe,{submission:Ce,replace:ze}),{shortCircuited:!0}}if(Ry(Fe)){let ze=Py(Ae,Se.route.id);return(_e&&_e.replace)!==!0&&(U=Nn.Push),{pendingActionData:{},pendingActionError:{[ze.route.id]:Fe.error}}}if(Xu(Fe))throw Bi(400,{type:"defer-action"});return{pendingActionData:{[Se.route.id]:Fe.data}}}async function se(oe,fe,Ce,Ae,_e,Je,Fe,Se,ze,Pe){let Ie=Ae||F4(fe,_e),Ye=_e||Je||yM(Ie),Le=o||s,[De,st]=sM(t.history,k,Ce,Ye,fe,d,p,l,_,m,f,Le,c,ze,Pe);if(qe(ot=>!(Ce&&Ce.some(Tt=>Tt.route.id===ot))||De&&De.some(Tt=>Tt.route.id===ot)),w=++g,De.length===0&&st.length===0){let ot=Te();return le(fe,Bn({matches:Ce,loaderData:{},errors:Pe||null},ze?{actionData:ze}:{},ot?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Se}),{shortCircuited:!0}}if(!u){st.forEach(Tt=>{let mt=k.fetchers.get(Tt.key),Pt=S1(void 0,mt?mt.data:void 0);k.fetchers.set(Tt.key,Pt)});let ot=ze||k.actionData;Z(Bn({navigation:Ie},ot?Object.keys(ot).length===0?{actionData:null}:{actionData:ot}:{},st.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:Se})}st.forEach(ot=>{y.has(ot.key)&&pe(ot.key),ot.controller&&y.set(ot.key,ot.controller)});let We=()=>st.forEach(ot=>pe(ot.key));Y&&Y.signal.addEventListener("abort",We);let{results:Ue,loaderResults:vt,fetcherResults:Ke}=await ae(k.matches,Ce,De,st,oe);if(oe.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",We),st.forEach(ot=>y.delete(ot.key));let Re=hM(Ue);if(Re){if(Re.idx>=De.length){let ot=st[Re.idx-De.length].key;f.add(ot)}return await K(k,Re.result,{replace:Fe}),{shortCircuited:!0}}let{loaderData:ht,errors:pt}=uM(k,Ce,De,vt,Pe,st,Ke,S);S.forEach((ot,Tt)=>{ot.subscribe(mt=>{(mt||ot.done)&&S.delete(Tt)})});let yt=Te(),Kt=Ee(w),Ht=yt||Kt||st.length>0;return Bn({loaderData:ht,errors:pt},Ht?{fetchers:new Map(k.fetchers)}:{})}function Q(oe,fe,Ce,Ae){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");y.has(oe)&&pe(oe);let _e=(Ae&&Ae.unstable_flushSync)===!0,Je=o||s,Fe=M7(k.location,k.matches,c,h.v7_prependBasename,Ce,fe,Ae==null?void 0:Ae.relative),Se=T0(Je,Fe,c);if(!Se){ee(oe,fe,Bi(404,{pathname:Fe}),{flushSync:_e});return}let{path:ze,submission:Pe,error:Ie}=iM(h.v7_normalizeFormMethod,!0,Fe,Ae);if(Ie){ee(oe,fe,Ie,{flushSync:_e});return}let Ye=D7(Se,ze);if(J=(Ae&&Ae.preventScrollReset)===!0,Pe&&vs(Pe.formMethod)){R(oe,fe,ze,Ye,Se,_e,Pe);return}m.set(oe,{routeId:fe,path:ze}),N(oe,fe,ze,Ye,Se,_e,Pe)}async function R(oe,fe,Ce,Ae,_e,Je,Fe){if(he(),m.delete(oe),!Ae.route.action&&!Ae.route.lazy){let mt=Bi(405,{method:Fe.formMethod,pathname:Ce,routeId:fe});ee(oe,fe,mt,{flushSync:Je});return}let Se=k.fetchers.get(oe);q(oe,QQ(Fe,Se),{flushSync:Je});let ze=new AbortController,Pe=C1(t.history,Ce,ze.signal,Fe);y.set(oe,ze);let Ie=g,Ye=await A1("action",Pe,Ae,_e,i,a,c);if(Pe.signal.aborted){y.get(oe)===ze&&y.delete(oe);return}if(_.has(oe)){q(oe,ul(void 0));return}if(V0(Ye))if(y.delete(oe),w>Ie){q(oe,ul(void 0));return}else return f.add(oe),q(oe,S1(Fe)),K(k,Ye,{fetcherSubmission:Fe});if(Ry(Ye)){ee(oe,fe,Ye.error);return}if(Xu(Ye))throw Bi(400,{type:"defer-action"});let Le=k.navigation.location||k.location,De=C1(t.history,Le,ze.signal),st=o||s,We=k.navigation.state!=="idle"?T0(st,k.navigation.location,c):k.matches;Bt(We,"Didn't find any matches after fetcher action");let Ue=++g;x.set(oe,Ue);let vt=S1(Fe,Ye.data);k.fetchers.set(oe,vt);let[Ke,Re]=sM(t.history,k,We,Fe,Le,d,p,l,_,m,f,st,c,{[Ae.route.id]:Ye.data},void 0);Re.filter(mt=>mt.key!==oe).forEach(mt=>{let Pt=mt.key,An=k.fetchers.get(Pt),On=S1(void 0,An?An.data:void 0);k.fetchers.set(Pt,On),y.has(Pt)&&pe(Pt),mt.controller&&y.set(Pt,mt.controller)}),Z({fetchers:new Map(k.fetchers)});let ht=()=>Re.forEach(mt=>pe(mt.key));ze.signal.addEventListener("abort",ht);let{results:pt,loaderResults:yt,fetcherResults:Kt}=await ae(k.matches,We,Ke,Re,De);if(ze.signal.aborted)return;ze.signal.removeEventListener("abort",ht),x.delete(oe),y.delete(oe),Re.forEach(mt=>y.delete(mt.key));let Ht=hM(pt);if(Ht){if(Ht.idx>=Ke.length){let mt=Re[Ht.idx-Ke.length].key;f.add(mt)}return K(k,Ht.result)}let{loaderData:ot,errors:Tt}=uM(k,k.matches,Ke,yt,void 0,Re,Kt,S);if(k.fetchers.has(oe)){let mt=ul(Ye.data);k.fetchers.set(oe,mt)}Ee(Ue),k.navigation.state==="loading"&&Ue>w?(Bt(U,"Expected pending action"),Y&&Y.abort(),le(k.navigation.location,{matches:We,loaderData:ot,errors:Tt,fetchers:new Map(k.fetchers)})):(Z({errors:Tt,loaderData:fM(k.loaderData,ot,We,Tt),fetchers:new Map(k.fetchers)}),d=!1)}async function N(oe,fe,Ce,Ae,_e,Je,Fe){let Se=k.fetchers.get(oe);q(oe,S1(Fe,Se?Se.data:void 0),{flushSync:Je});let ze=new AbortController,Pe=C1(t.history,Ce,ze.signal);y.set(oe,ze);let Ie=g,Ye=await A1("loader",Pe,Ae,_e,i,a,c);if(Xu(Ye)&&(Ye=await uN(Ye,Pe.signal,!0)||Ye),y.get(oe)===ze&&y.delete(oe),!Pe.signal.aborted){if(_.has(oe)){q(oe,ul(void 0));return}if(V0(Ye))if(w>Ie){q(oe,ul(void 0));return}else{f.add(oe),await K(k,Ye);return}if(Ry(Ye)){ee(oe,fe,Ye.error);return}Bt(!Xu(Ye),"Unhandled fetcher deferred data"),q(oe,ul(Ye.data))}}async function K(oe,fe,Ce){let{submission:Ae,fetcherSubmission:_e,replace:Je}=Ce===void 0?{}:Ce;fe.revalidate&&(d=!0);let Fe=ym(oe.location,fe.location,{_isRedirect:!0});if(Bt(Fe,"Expected a location on the redirect navigation"),n){let Le=!1;if(fe.reloadDocument)Le=!0;else if(sN.test(fe.location)){const De=t.history.createURL(fe.location);Le=De.origin!==e.location.origin||Tb(De.pathname,c)==null}if(Le){Je?e.location.replace(fe.location):e.location.assign(fe.location);return}}Y=null;let Se=Je===!0?Nn.Replace:Nn.Push,{formMethod:ze,formAction:Pe,formEncType:Ie}=oe.navigation;!Ae&&!_e&&ze&&Pe&&Ie&&(Ae=yM(oe.navigation));let Ye=Ae||_e;if(NQ.has(fe.status)&&Ye&&vs(Ye.formMethod))await j(Se,Fe,{submission:Bn({},Ye,{formAction:fe.location}),preventScrollReset:J});else{let Le=F4(Fe,Ae);await j(Se,Fe,{overrideNavigation:Le,fetcherSubmission:_e,preventScrollReset:J})}}async function ae(oe,fe,Ce,Ae,_e){let Je=await Promise.all([...Ce.map(ze=>A1("loader",_e,ze,fe,i,a,c)),...Ae.map(ze=>ze.matches&&ze.match&&ze.controller?A1("loader",C1(t.history,ze.path,ze.controller.signal),ze.match,ze.matches,i,a,c):{type:$n.error,error:Bi(404,{pathname:ze.path})})]),Fe=Je.slice(0,Ce.length),Se=Je.slice(Ce.length);return await Promise.all([pM(oe,Ce,Fe,Fe.map(()=>_e.signal),!1,k.loaderData),pM(oe,Ae.map(ze=>ze.match),Se,Ae.map(ze=>ze.controller?ze.controller.signal:null),!0)]),{results:Je,loaderResults:Fe,fetcherResults:Se}}function he(){d=!0,p.push(...qe()),m.forEach((oe,fe)=>{y.has(fe)&&(l.push(fe),pe(fe))})}function q(oe,fe,Ce){Ce===void 0&&(Ce={}),k.fetchers.set(oe,fe),Z({fetchers:new Map(k.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function ee(oe,fe,Ce,Ae){Ae===void 0&&(Ae={});let _e=Py(k.matches,fe);me(oe),Z({errors:{[_e.route.id]:Ce},fetchers:new Map(k.fetchers)},{flushSync:(Ae&&Ae.flushSync)===!0})}function ie(oe){return h.v7_fetcherPersist&&(A.set(oe,(A.get(oe)||0)+1),_.has(oe)&&_.delete(oe)),k.fetchers.get(oe)||$Q}function me(oe){let fe=k.fetchers.get(oe);y.has(oe)&&!(fe&&fe.state==="loading"&&x.has(oe))&&pe(oe),m.delete(oe),x.delete(oe),f.delete(oe),_.delete(oe),k.fetchers.delete(oe)}function be(oe){if(h.v7_fetcherPersist){let fe=(A.get(oe)||0)-1;fe<=0?(A.delete(oe),_.add(oe)):A.set(oe,fe)}else me(oe);Z({fetchers:new Map(k.fetchers)})}function pe(oe){let fe=y.get(oe);Bt(fe,"Expected fetch controller: "+oe),fe.abort(),y.delete(oe)}function Me(oe){for(let fe of oe){let Ce=ie(fe),Ae=ul(Ce.data);k.fetchers.set(fe,Ae)}}function Te(){let oe=[],fe=!1;for(let Ce of f){let Ae=k.fetchers.get(Ce);Bt(Ae,"Expected fetcher: "+Ce),Ae.state==="loading"&&(f.delete(Ce),oe.push(Ce),fe=!0)}return Me(oe),fe}function Ee(oe){let fe=[];for(let[Ce,Ae]of x)if(Ae0}function Qe(oe,fe){let Ce=k.blockers.get(oe)||_1;return $.get(oe)!==fe&&$.set(oe,fe),Ce}function Ne(oe){k.blockers.delete(oe),$.delete(oe)}function Oe(oe,fe){let Ce=k.blockers.get(oe)||_1;Bt(Ce.state==="unblocked"&&fe.state==="blocked"||Ce.state==="blocked"&&fe.state==="blocked"||Ce.state==="blocked"&&fe.state==="proceeding"||Ce.state==="blocked"&&fe.state==="unblocked"||Ce.state==="proceeding"&&fe.state==="unblocked","Invalid blocker state transition: "+Ce.state+" -> "+fe.state);let Ae=new Map(k.blockers);Ae.set(oe,fe),Z({blockers:Ae})}function at(oe){let{currentLocation:fe,nextLocation:Ce,historyAction:Ae}=oe;if($.size===0)return;$.size>1&&lu(!1,"A router only supports one blocker at a time");let _e=Array.from($.entries()),[Je,Fe]=_e[_e.length-1],Se=k.blockers.get(Je);if(!(Se&&Se.state==="proceeding")&&Fe({currentLocation:fe,nextLocation:Ce,historyAction:Ae}))return Je}function qe(oe){let fe=[];return S.forEach((Ce,Ae)=>{(!oe||oe(Ae))&&(Ce.cancel(),fe.push(Ae),S.delete(Ae))}),fe}function $e(oe,fe,Ce){if(E=oe,M=fe,C=Ce||null,!T&&k.navigation===M4){T=!0;let Ae=He(k.location,k.matches);Ae!=null&&Z({restoreScrollPosition:Ae})}return()=>{E=null,M=null,C=null}}function xt(oe,fe){return C&&C(oe,fe.map(Ae=>hQ(Ae,k.loaderData)))||oe.key}function Xe(oe,fe){if(E&&M){let Ce=xt(oe,fe);E[Ce]=M()}}function He(oe,fe){if(E){let Ce=xt(oe,fe),Ae=E[Ce];if(typeof Ae=="number")return Ae}return null}function _t(oe){i={},o=B7(oe,a,void 0,i)}return O={get basename(){return c},get state(){return k},get routes(){return s},get window(){return e},initialize:I,subscribe:z,enableScrollRestoration:$e,navigate:ue,fetch:Q,revalidate:G,createHref:oe=>t.history.createHref(oe),encodeLocation:oe=>t.history.encodeLocation(oe),getFetcher:ie,deleteFetcher:be,dispose:W,getBlocker:Qe,deleteBlocker:Ne,_internalFetchControllers:y,_internalActiveDeferreds:S,_internalSetRoutes:_t},O}function jQ(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function M7(t,e,n,r,a,i,s){let o,c;if(i){o=[];for(let b of e)if(o.push(b),b.route.id===i){c=b;break}}else o=e,c=e[e.length-1];let h=rN(a||".",nN(o),Tb(t.pathname,n)||t.pathname,s==="path");return a==null&&(h.search=t.search,h.hash=t.hash),(a==null||a===""||a===".")&&c&&c.route.index&&!H_(h.search)&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(h.pathname=h.pathname==="/"?n:tu([n,h.pathname])),Sb(h)}function iM(t,e,n,r){if(!r||!jQ(r))return{path:n};if(r.formMethod&&!KQ(r.formMethod))return{path:n,error:Bi(405,{method:r.formMethod})};let a=()=>({path:n,error:Bi(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=t?i.toUpperCase():i.toLowerCase(),o=lN(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!vs(s))return a();let E=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((C,M)=>{let[T,P]=M;return""+C+T+"="+P+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:E}}}else if(r.formEncType==="application/json"){if(!vs(s))return a();try{let E=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:E,text:void 0}}}catch{return a()}}}Bt(typeof FormData=="function","FormData is not available in this environment");let c,h;if(r.formData)c=F7(r.formData),h=r.formData;else if(r.body instanceof FormData)c=F7(r.body),h=r.body;else if(r.body instanceof URLSearchParams)c=r.body,h=lM(c);else if(r.body==null)c=new URLSearchParams,h=new FormData;else try{c=new URLSearchParams(r.body),h=lM(c)}catch{return a()}let b={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(vs(b.formMethod))return{path:n,submission:b};let v=Do(n);return e&&v.search&&H_(v.search)&&c.append("index",""),v.search="?"+c,{path:Sb(v),submission:b}}function HQ(t,e){let n=t;if(e){let r=t.findIndex(a=>a.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function sM(t,e,n,r,a,i,s,o,c,h,b,v,E,C,M){let T=M?Object.values(M)[0]:C?Object.values(C)[0]:void 0,P=t.createURL(e.location),D=t.createURL(a),F=M?Object.keys(M)[0]:void 0,k=HQ(n,F).filter((J,Y)=>{if(J.route.lazy)return!0;if(J.route.loader==null)return!1;if(zQ(e.loaderData,e.matches[Y],J)||s.some(B=>B===J.route.id))return!0;let L=e.matches[Y],X=J;return oM(J,Bn({currentUrl:P,currentParams:L.params,nextUrl:D,nextParams:X.params},r,{actionResult:T,defaultShouldRevalidate:i||P.pathname+P.search===D.pathname+D.search||P.search!==D.search||cN(L,X)}))}),U=[];return h.forEach((J,Y)=>{if(!n.some(d=>d.route.id===J.routeId)||c.has(Y))return;let L=T0(v,J.path,E);if(!L){U.push({key:Y,routeId:J.routeId,path:J.path,matches:null,match:null,controller:null});return}let X=e.fetchers.get(Y),B=D7(L,J.path),u=!1;b.has(Y)?u=!1:o.includes(Y)?u=!0:X&&X.state!=="idle"&&X.data===void 0?u=i:u=oM(B,Bn({currentUrl:P,currentParams:e.matches[e.matches.length-1].params,nextUrl:D,nextParams:n[n.length-1].params},r,{actionResult:T,defaultShouldRevalidate:i})),u&&U.push({key:Y,routeId:J.routeId,path:J.path,matches:L,match:B,controller:new AbortController})}),[k,U]}function zQ(t,e,n){let r=!e||n.route.id!==e.route.id,a=t[n.route.id]===void 0;return r||a}function cN(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function oM(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function cM(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let a=n[t.id];Bt(a,"No route found in manifest");let i={};for(let s in r){let c=a[s]!==void 0&&s!=="hasErrorBoundary";lu(!c,'Route "'+a.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!c&&!fQ.has(s)&&(i[s]=r[s])}Object.assign(a,i),Object.assign(a,Bn({},e(a),{lazy:void 0}))}async function A1(t,e,n,r,a,i,s,o){o===void 0&&(o={});let c,h,b,v=M=>{let T,P=new Promise((D,F)=>T=F);return b=()=>T(),e.signal.addEventListener("abort",b),Promise.race([M({request:e,params:n.params,context:o.requestContext}),P])};try{let M=n.route[t];if(n.route.lazy)if(M){let T,P=await Promise.all([v(M).catch(D=>{T=D}),cM(n.route,i,a)]);if(T)throw T;h=P[0]}else if(await cM(n.route,i,a),M=n.route[t],M)h=await v(M);else if(t==="action"){let T=new URL(e.url),P=T.pathname+T.search;throw Bi(405,{method:e.method,pathname:P,routeId:n.route.id})}else return{type:$n.data,data:void 0};else if(M)h=await v(M);else{let T=new URL(e.url),P=T.pathname+T.search;throw Bi(404,{pathname:P})}Bt(h!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(M){c=$n.error,h=M}finally{b&&e.signal.removeEventListener("abort",b)}if(WQ(h)){let M=h.status;if(RQ.has(M)){let D=h.headers.get("Location");if(Bt(D,"Redirects returned/thrown from loaders/actions must have a Location header"),!sN.test(D))D=M7(new URL(e.url),r.slice(0,r.indexOf(n)+1),s,!0,D);else if(!o.isStaticRequest){let F=new URL(e.url),O=D.startsWith("//")?new URL(F.protocol+D):new URL(D),k=Tb(O.pathname,s)!=null;O.origin===F.origin&&k&&(D=O.pathname+O.search+O.hash)}if(o.isStaticRequest)throw h.headers.set("Location",D),h;return{type:$n.redirect,status:M,location:D,revalidate:h.headers.get("X-Remix-Revalidate")!==null,reloadDocument:h.headers.get("X-Remix-Reload-Document")!==null}}if(o.isRouteRequest)throw{type:c===$n.error?$n.error:$n.data,response:h};let T,P=h.headers.get("Content-Type");return P&&/\bapplication\/json\b/.test(P)?T=await h.json():T=await h.text(),c===$n.error?{type:c,error:new j_(M,h.statusText,T),headers:h.headers}:{type:$n.data,data:T,statusCode:h.status,headers:h.headers}}if(c===$n.error)return{type:c,error:h};if(qQ(h)){var E,C;return{type:$n.deferred,deferredData:h,statusCode:(E=h.init)==null?void 0:E.status,headers:((C=h.init)==null?void 0:C.headers)&&new Headers(h.init.headers)}}return{type:$n.data,data:h}}function C1(t,e,n,r){let a=t.createURL(lN(e)).toString(),i={signal:n};if(r&&vs(r.formMethod)){let{formMethod:s,formEncType:o}=r;i.method=s.toUpperCase(),o==="application/json"?(i.headers=new Headers({"Content-Type":o}),i.body=JSON.stringify(r.json)):o==="text/plain"?i.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?i.body=F7(r.formData):i.body=r.formData}return new Request(a,i)}function F7(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function lM(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function GQ(t,e,n,r,a){let i={},s=null,o,c=!1,h={};return n.forEach((b,v)=>{let E=e[v].route.id;if(Bt(!V0(b),"Cannot handle redirect results in processLoaderData"),Ry(b)){let C=Py(t,E),M=b.error;r&&(M=Object.values(r)[0],r=void 0),s=s||{},s[C.route.id]==null&&(s[C.route.id]=M),i[E]=void 0,c||(c=!0,o=aN(b.error)?b.error.status:500),b.headers&&(h[E]=b.headers)}else Xu(b)?(a.set(E,b.deferredData),i[E]=b.deferredData.data):i[E]=b.data,b.statusCode!=null&&b.statusCode!==200&&!c&&(o=b.statusCode),b.headers&&(h[E]=b.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:h}}function uM(t,e,n,r,a,i,s,o){let{loaderData:c,errors:h}=GQ(e,n,r,a,o);for(let b=0;br.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function dM(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Bi(t,e){let{pathname:n,routeId:r,method:a,type:i}=e===void 0?{}:e,s="Unknown Server Error",o="Unknown @remix-run/router error";return t===400?(s="Bad Request",a&&n&&r?o="You made a "+a+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?o="defer() is not supported in actions":i==="invalid-body"&&(o="Unable to encode submission body")):t===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):t===404?(s="Not Found",o='No route matches URL "'+n+'"'):t===405&&(s="Method Not Allowed",a&&n&&r?o="You made a "+a.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":a&&(o='Invalid request method "'+a.toUpperCase()+'"')),new j_(t||500,s,new Error(o),!0)}function hM(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(V0(n))return{result:n,idx:e}}}function lN(t){let e=typeof t=="string"?Do(t):t;return Sb(Bn({},e,{hash:""}))}function VQ(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Xu(t){return t.type===$n.deferred}function Ry(t){return t.type===$n.error}function V0(t){return(t&&t.type)===$n.redirect}function qQ(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function WQ(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function KQ(t){return PQ.has(t.toLowerCase())}function vs(t){return IQ.has(t.toLowerCase())}async function pM(t,e,n,r,a,i){for(let s=0;sv.route.id===c.route.id),b=h!=null&&!cN(h,c)&&(i&&i[c.route.id])!==void 0;if(Xu(o)&&(a||b)){let v=r[s];Bt(v,"Expected an AbortSignal for revalidating fetcher deferred result"),await uN(o,v,a).then(E=>{E&&(n[s]=E||n[s])})}}}async function uN(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:$n.data,data:t.deferredData.unwrappedData}}catch(a){return{type:$n.error,error:a}}return{type:$n.data,data:t.deferredData.data}}}function H_(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function D7(t,e){let n=typeof e=="string"?Do(e).search:e.search;if(t[t.length-1].route.index&&H_(n||""))return t[t.length-1];let r=tN(t);return r[r.length-1]}function yM(t){let{formMethod:e,formAction:n,formEncType:r,text:a,formData:i,json:s}=t;if(!(!e||!n||!r)){if(a!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function F4(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function ZQ(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function S1(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function QQ(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function ul(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function JQ(t,e){try{let n=t.sessionStorage.getItem(oN);if(n){let r=JSON.parse(n);for(let[a,i]of Object.entries(r||{}))i&&Array.isArray(i)&&e.set(a,new Set(i||[]))}}catch{}}function XQ(t,e){if(e.size>0){let n={};for(let[r,a]of e)n[r]=[...a];try{t.sessionStorage.setItem(oN,JSON.stringify(n))}catch(r){lu(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Gg(){return Gg=Object.assign?Object.assign.bind():function(t){for(var e=1;e{s.current=!0}),ve.useCallback(function(c,h){if(h===void 0&&(h={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let b=rN(c,JSON.parse(i),a,h.relative==="path");t==null&&e!=="/"&&(b.pathname=b.pathname==="/"?e:tu([e,b.pathname])),(h.replace?n.replace:n.push)(b,h.state,h)},[e,n,i,a,t])}const pN=ve.createContext(null);function ci(){return ve.useContext(pN)}function eJ(t){let e=ve.useContext(xu).outlet;return e&&ve.createElement(pN.Provider,{value:t},e)}function G_(){let{matches:t}=ve.useContext(xu),e=t[t.length-1];return e?e.params:{}}function tJ(t,e,n){px()||Bt(!1);let{navigator:r}=ve.useContext(dx),{matches:a}=ve.useContext(xu),i=a[a.length-1],s=i?i.params:{};i&&i.pathname;let o=i?i.pathnameBase:"/";i&&i.route;let c=z_(),h;if(e){var b;let T=typeof e=="string"?Do(e):e;o==="/"||(b=T.pathname)!=null&&b.startsWith(o)||Bt(!1),h=T}else h=c;let v=h.pathname||"/",E=o==="/"?v:v.slice(o.length)||"/",C=T0(t,{pathname:E}),M=sJ(C&&C.map(T=>Object.assign({},T,{params:Object.assign({},s,T.params),pathname:tu([o,r.encodeLocation?r.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?o:tu([o,r.encodeLocation?r.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),a,n);return e&&M?ve.createElement(hx.Provider,{value:{location:Gg({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Nn.Pop}},M):M}function nJ(){let t=uJ(),e=aN(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return ve.createElement(ve.Fragment,null,ve.createElement("h2",null,"Unexpected Application Error!"),ve.createElement("h3",{style:{fontStyle:"italic"}},e),n?ve.createElement("pre",{style:a},n):null,i)}const rJ=ve.createElement(nJ,null);class aJ extends ve.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error?ve.createElement(xu.Provider,{value:this.props.routeContext},ve.createElement(dN.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function iJ(t){let{routeContext:e,match:n,children:r}=t,a=ve.useContext(fx);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),ve.createElement(xu.Provider,{value:e},r)}function sJ(t,e,n){var r;if(e===void 0&&(e=[]),n===void 0&&(n=null),t==null){var a;if((a=n)!=null&&a.errors)t=n.matches;else return null}let i=t,s=(r=n)==null?void 0:r.errors;if(s!=null){let o=i.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id]));o>=0||Bt(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((o,c,h)=>{let b=c.route.id?s==null?void 0:s[c.route.id]:null,v=null;n&&(v=c.route.errorElement||rJ);let E=e.concat(i.slice(0,h+1)),C=()=>{let M;return b?M=v:c.route.Component?M=ve.createElement(c.route.Component,null):c.route.element?M=c.route.element:M=o,ve.createElement(iJ,{match:c,routeContext:{outlet:o,matches:E,isDataRoute:n!=null},children:M})};return n&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?ve.createElement(aJ,{location:n.location,revalidation:n.revalidation,component:v,error:b,children:C(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):C()},null)}var yN=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(yN||{}),Vg=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Vg||{});function oJ(t){let e=ve.useContext(fx);return e||Bt(!1),e}function cJ(t){let e=ve.useContext(fN);return e||Bt(!1),e}function lJ(t){let e=ve.useContext(xu);return e||Bt(!1),e}function mN(t){let e=lJ(),n=e.matches[e.matches.length-1];return n.route.id||Bt(!1),n.route.id}function uJ(){var t;let e=ve.useContext(dN),n=cJ(Vg.UseRouteError),r=mN(Vg.UseRouteError);return e||((t=n.errors)==null?void 0:t[r])}function fJ(){let{router:t}=oJ(yN.UseNavigateStable),e=mN(Vg.UseNavigateStable),n=ve.useRef(!1);return hN(()=>{n.current=!0}),ve.useCallback(function(a,i){i===void 0&&(i={}),n.current&&(typeof a=="number"?t.navigate(a):t.navigate(a,Gg({fromRouteId:e},i)))},[t,e])}function bN(t){return eJ(t.context)}function dJ(t){let{basename:e="/",children:n=null,location:r,navigationType:a=Nn.Pop,navigator:i,static:s=!1}=t;px()&&Bt(!1);let o=e.replace(/^\/*/,"/"),c=ve.useMemo(()=>({basename:o,navigator:i,static:s}),[o,i,s]);typeof r=="string"&&(r=Do(r));let{pathname:h="/",search:b="",hash:v="",state:E=null,key:C="default"}=r,M=ve.useMemo(()=>{let T=Tb(h,o);return T==null?null:{location:{pathname:T,search:b,hash:v,state:E,key:C},navigationType:a}},[o,h,b,v,E,C,a]);return M==null?null:ve.createElement(dx.Provider,{value:c},ve.createElement(hx.Provider,{children:n,value:M}))}new Promise(()=>{});function hJ(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:ve.createElement(t.Component),Component:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:ve.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** - * React Router DOM v6.20.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function qg(){return qg=Object.assign?Object.assign.bind():function(t){for(var e=1;e{let r=t[n];return e.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function pJ(t,e){let n=k7(t);return e&&e.forEach((r,a)=>{n.has(a)||e.getAll(a).forEach(i=>{n.append(a,i)})}),n}function yJ(t,e){return UQ({basename:e==null?void 0:e.basename,future:qg({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:cQ({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||mJ(),routes:t,mapRouteProperties:hJ,window:e==null?void 0:e.window}).initialize()}function mJ(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=qg({},e,{errors:bJ(e.errors)})),e}function bJ(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,a]of e)if(a&&a.__type==="RouteErrorResponse")n[r]=new j_(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let s=new i(a.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let i=new Error(a.message);i.stack="",n[r]=i}}else n[r]=a;return n}const gJ=ve.createContext({isTransitioning:!1}),xJ=ve.createContext(new Map),vJ="startTransition",mM=JW[vJ],wJ="flushSync",bM=oQ[wJ];function EJ(t){mM?mM(t):t()}function T1(t){bM?bM(t):t()}class _J{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function AJ(t){let{fallbackElement:e,router:n,future:r}=t,[a,i]=ve.useState(n.state),[s,o]=ve.useState(),[c,h]=ve.useState({isTransitioning:!1}),[b,v]=ve.useState(),[E,C]=ve.useState(),[M,T]=ve.useState(),P=ve.useRef(new Map),{v7_startTransition:D}=r||{},F=ve.useCallback(Y=>{D?EJ(Y):Y()},[D]),O=ve.useCallback((Y,L)=>{let{deletedFetchers:X,unstable_flushSync:B,unstable_viewTransitionOpts:u}=L;X.forEach(p=>P.current.delete(p)),Y.fetchers.forEach((p,l)=>{p.data!==void 0&&P.current.set(l,p.data)});let d=n.window==null||typeof n.window.document.startViewTransition!="function";if(!u||d){B?T1(()=>i(Y)):F(()=>i(Y));return}if(B){T1(()=>{E&&(b&&b.resolve(),E.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:u.currentLocation,nextLocation:u.nextLocation})});let p=n.window.document.startViewTransition(()=>{T1(()=>i(Y))});p.finished.finally(()=>{T1(()=>{v(void 0),C(void 0),o(void 0),h({isTransitioning:!1})})}),T1(()=>C(p));return}E?(b&&b.resolve(),E.skipTransition(),T({state:Y,currentLocation:u.currentLocation,nextLocation:u.nextLocation})):(o(Y),h({isTransitioning:!0,flushSync:!1,currentLocation:u.currentLocation,nextLocation:u.nextLocation}))},[n.window,E,b,P,F]);ve.useLayoutEffect(()=>n.subscribe(O),[n,O]),ve.useEffect(()=>{c.isTransitioning&&!c.flushSync&&v(new _J)},[c]),ve.useEffect(()=>{if(b&&s&&n.window){let Y=s,L=b.promise,X=n.window.document.startViewTransition(async()=>{F(()=>i(Y)),await L});X.finished.finally(()=>{v(void 0),C(void 0),o(void 0),h({isTransitioning:!1})}),C(X)}},[F,s,b,n.window]),ve.useEffect(()=>{b&&s&&a.location.key===s.location.key&&b.resolve()},[b,E,a.location,s]),ve.useEffect(()=>{!c.isTransitioning&&M&&(o(M.state),h({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}),T(void 0))},[c.isTransitioning,M]);let k=ve.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:Y=>n.navigate(Y),push:(Y,L,X)=>n.navigate(Y,{state:L,preventScrollReset:X==null?void 0:X.preventScrollReset}),replace:(Y,L,X)=>n.navigate(Y,{replace:!0,state:L,preventScrollReset:X==null?void 0:X.preventScrollReset})}),[n]),U=n.basename||"/",J=ve.useMemo(()=>({router:n,navigator:k,static:!1,basename:U}),[n,k,U]);return ve.createElement(ve.Fragment,null,ve.createElement(fx.Provider,{value:J},ve.createElement(fN.Provider,{value:a},ve.createElement(xJ.Provider,{value:P.current},ve.createElement(gJ.Provider,{value:c},ve.createElement(dJ,{basename:U,location:a.location,navigationType:a.historyAction,navigator:k},a.initialized?ve.createElement(CJ,{routes:n.routes,state:a}):e))))),null)}function CJ(t){let{routes:e,state:n}=t;return tJ(e,void 0,n)}var gM;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(gM||(gM={}));var xM;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(xM||(xM={}));function yx(t){let e=ve.useRef(k7(t)),n=ve.useRef(!1),r=z_(),a=ve.useMemo(()=>pJ(r.search,n.current?null:e.current),[r.search]),i=Rp(),s=ve.useCallback((o,c)=>{const h=k7(typeof o=="function"?o(a):o);n.current=!0,i("?"+h,c)},[i,a]);return[a,s]}const SJ=(t,e=20)=>{let n;return(...a)=>{clearTimeout(n),n=setTimeout(()=>t(...a),e)}},Ot=(...t)=>t.reduce((e,n)=>{if(Array.isArray(n)){const r=Ot(...n);return r?`${e} ${r}`:e}return n?`${e} ${n}`:e},""),vM=(t,e,n)=>{const{base:r,excludeValueFromClassName:a}=n||{},i=typeof t=="string"?t:t(e);return e===!0&&r||a?i:e===!0&&!r?`${i}-true`:e===!1&&!r?`${i}-false`:e!==void 0?`${i}-${e}`:null},Xt=(t,e,n,r)=>{if(typeof n!="object"){const a=vM(e,n,{base:!0,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName});return a?[t[a]]:[]}return Object.keys(n).reduce((a,i)=>{const s=i==="s",o=vM(e,n[i],{base:s,excludeValueFromClassName:r==null?void 0:r.excludeValueFromClassName}),c=s?"":`--${i}`;return[...a,t[`${o}${c}`]]},[])},mr=(t,e)=>e===void 0?{}:typeof e!="object"?{[`${t}-s`]:e}:Object.keys(e).reduce((n,r)=>{const a=e[r];return a===void 0||a===!1?n:Object.assign(Object.assign({},n),{[`${t}-${r}`]:a})},{}),TJ=t=>t===null?!1:typeof t=="object"&&t!==null&&"s"in t,Kf=(t,e)=>TJ(t)?Object.keys(t).reduce((r,a)=>{const i=t[a];return i==null?r:Object.assign(Object.assign({},r),{[a]:e(i,a)})},{}):e(t,"s"),Np=t=>{const e=te.useId();return t||e};te.createContext({active:!1,onToggle:()=>{},triggerId:"",contentId:""});const BJ="_root_6m4f4_1",B1={root:BJ,"--disabled":"_--disabled_6m4f4_1","--full-width":"_--full-width_6m4f4_1","--inset":"_--inset_6m4f4_1","--radius-inherit":"_--radius-inherit_6m4f4_1"},MJ=(t,e)=>{const{children:n,href:r,onClick:a,type:i,disabled:s,insetFocus:o,borderRadius:c,as:h,fullWidth:b,className:v,attributes:E}=t,C=Ot(B1.root,v,s&&B1["--disabled"],c&&B1[`--radius-${c}`],o&&B1["--inset"],b&&B1["--full-width"]),M=Object.assign({},E),T=te.useRef(!1),P=a||(E==null?void 0:E.onClick),D=(E==null?void 0:E.onFocus)||(E==null?void 0:E.onBlur),F=!!(r||E!=null&&E.href),O=!!(P||D||i);let k;if(F)M.href=s?void 0:r||(E==null?void 0:E.href),k="a";else if(O&&(!h||h==="button"))k="button",M.type=i||(E==null?void 0:E.type)||"button",M.disabled=s||(E==null?void 0:E.disabled);else if(O){const L=!(h==="label")||P||D;k=h||"span",M.role=L?"button":void 0,M.tabIndex=L?0:void 0}else k=h||"span";const U=Y=>{var L;s||T.current||(a==null||a(Y),(L=E==null?void 0:E.onClick)===null||L===void 0||L.call(E,Y))},J=Y=>{if(M.role==="button"||F)return;const X=Y.key===" ",B=Y.key==="Enter";!X&&!B||(Y.preventDefault(),U(Y),T.current=!0,requestAnimationFrame(()=>{T.current=!1}))};return te.createElement(k,Object.assign({ref:e},M,{className:C,onClick:U,onKeyDown:J}),n)},$p=te.forwardRef(MJ),FJ="_root_qpaoy_1",D4={root:FJ,"--blank":"_--blank_qpaoy_1","--vertical":"_--vertical_qpaoy_1","--vertical-true--m":"_--vertical-true--m_qpaoy_1","--vertical-false--m":"_--vertical-false--m_qpaoy_1","--vertical-true--l":"_--vertical-true--l_qpaoy_1","--vertical-false--l":"_--vertical-false--l_qpaoy_1","--vertical-true--xl":"_--vertical-true--xl_qpaoy_1","--vertical-false--xl":"_--vertical-false--xl_qpaoy_1"},gN=t=>{const{vertical:e,blank:n,className:r,attributes:a}=t,i=Ot(D4.root,r,n&&D4["--blank"],...Xt(D4,"--vertical",e));let s;return(typeof e=="boolean"||e===void 0)&&(s=e?"vertical":"horizontal"),te.createElement("div",Object.assign({},a,{role:"separator","aria-orientation":s,className:i}))},DJ="_root_14fj3_1",T2={root:DJ,"--display-inline":"_--display-inline_14fj3_1","--display-flex":"_--display-flex_14fj3_1","--hidden":"_--hidden_14fj3_1","--visibility":"_--visibility_14fj3_1","--hidden-true--m":"_--hidden-true--m_14fj3_1","--hidden-false--m":"_--hidden-false--m_14fj3_1","--hidden-true--l":"_--hidden-true--l_14fj3_1","--hidden-false--l":"_--hidden-false--l_14fj3_1","--hidden-true--xl":"_--hidden-true--xl_14fj3_1","--hidden-false--xl":"_--hidden-false--xl_14fj3_1"},wM=t=>{const{as:e="div",children:n,visibility:r,hide:a,displayStyle:i}=t,s=Ot(T2.root,...Xt(T2,"--hidden",a),r&&T2["--visibility"],i&&T2[`--display-${i}`]);return typeof n=="function"?te.createElement(te.Fragment,null,n(s)):te.createElement(e,{className:s},n)},kJ="_root_mi21y_1",IJ="_item_mi21y_1",OJ="_divider_mi21y_1",Qt={root:kJ,item:IJ,"--padding":"_--padding_mi21y_1","--padding-top":"_--padding-top_mi21y_1","--padding-bottom":"_--padding-bottom_mi21y_1","--padding-start":"_--padding-start_mi21y_1","--padding-end":"_--padding-end_mi21y_1","--animated":"_--animated_mi21y_1","--align-text-start":"_--align-text-start_mi21y_1","--align-text-center":"_--align-text-center_mi21y_1","--align-text-end":"_--align-text-end_mi21y_1","--bg-neutral":"_--bg-neutral_mi21y_1","--bg-positive":"_--bg-positive_mi21y_1","--bg-critical":"_--bg-critical_mi21y_1","--bg-primary":"_--bg-primary_mi21y_1","--bg-neutral-faded":"_--bg-neutral-faded_mi21y_1","--bg-positive-faded":"_--bg-positive-faded_mi21y_1","--bg-critical-faded":"_--bg-critical-faded_mi21y_1","--bg-primary-faded":"_--bg-primary-faded_mi21y_1","--bg-page":"_--bg-page_mi21y_1","--bg-page-faded":"_--bg-page-faded_mi21y_1","--bg-disabled":"_--bg-disabled_mi21y_1","--bg-disabled-faded":"_--bg-disabled-faded_mi21y_1","--bg-elevation-base":"_--bg-elevation-base_mi21y_1","--bg-elevation-raised":"_--bg-elevation-raised_mi21y_1","--bg-elevation-overlay":"_--bg-elevation-overlay_mi21y_1","--bg-white":"_--bg-white_mi21y_1","--bg-black":"_--bg-black_mi21y_1","--shadow-raised":"_--shadow-raised_mi21y_1","--shadow-overlay":"_--shadow-overlay_mi21y_1","--bd":"_--bd_mi21y_1","--bd-neutral-faded":"_--bd-neutral-faded_mi21y_1","--bd-neutral":"_--bd-neutral_mi21y_1","--bd-positive":"_--bd-positive_mi21y_1","--bd-positive-faded":"_--bd-positive-faded_mi21y_1","--bd-critical":"_--bd-critical_mi21y_1","--bd-critical-faded":"_--bd-critical-faded_mi21y_1","--bd-primary":"_--bd-primary_mi21y_1","--bd-primary-faded":"_--bd-primary-faded_mi21y_1","--bd-disabled":"_--bd-disabled_mi21y_1","--bd-transparent":"_--bd-transparent_mi21y_1","--overflow-hidden":"_--overflow-hidden_mi21y_1","--divided":"_--divided_mi21y_1","--flex":"_--flex_mi21y_1","--direction-column":"_--direction-column_mi21y_1","item--gap-before":"_item--gap-before_mi21y_1","item--gap-auto":"_item--gap-auto_mi21y_1","--direction-column-reverse":"_--direction-column-reverse_mi21y_1","--direction-row":"_--direction-row_mi21y_1","--direction-row-reverse":"_--direction-row-reverse_mi21y_1","--nowrap":"_--nowrap_mi21y_1","--wrap":"_--wrap_mi21y_1","--nowrap-false--m":"_--nowrap-false--m_mi21y_1","--wrap-true--m":"_--wrap-true--m_mi21y_1","--nowrap-true--m":"_--nowrap-true--m_mi21y_1","--wrap-false--m":"_--wrap-false--m_mi21y_1","--nowrap-false--l":"_--nowrap-false--l_mi21y_1","--wrap-true--l":"_--wrap-true--l_mi21y_1","--nowrap-true--l":"_--nowrap-true--l_mi21y_1","--wrap-false--l":"_--wrap-false--l_mi21y_1","--nowrap-false--xl":"_--nowrap-false--xl_mi21y_1","--wrap-true--xl":"_--wrap-true--xl_mi21y_1","--nowrap-true--xl":"_--nowrap-true--xl_mi21y_1","--wrap-false--xl":"_--wrap-false--xl_mi21y_1","--align-start":"_--align-start_mi21y_1","--align-end":"_--align-end_mi21y_1","--align-center":"_--align-center_mi21y_1","--align-stretch":"_--align-stretch_mi21y_1","--align-baseline":"_--align-baseline_mi21y_1","--justify-start":"_--justify-start_mi21y_1","--justify-end":"_--justify-end_mi21y_1","--justify-center":"_--justify-center_mi21y_1","--justify-space-between":"_--justify-space-between_mi21y_1",divider:OJ,"item--grow":"_item--grow_mi21y_1","item--columns":"_item--columns_mi21y_1","item--columns-1":"_item--columns-1_mi21y_1","item--columns-2":"_item--columns-2_mi21y_1","item--columns-3":"_item--columns-3_mi21y_1","item--columns-4":"_item--columns-4_mi21y_1","item--columns-5":"_item--columns-5_mi21y_1","item--columns-6":"_item--columns-6_mi21y_1","item--columns-7":"_item--columns-7_mi21y_1","item--columns-8":"_item--columns-8_mi21y_1","item--columns-9":"_item--columns-9_mi21y_1","item--columns-10":"_item--columns-10_mi21y_1","item--columns-11":"_item--columns-11_mi21y_1","item--columns-12":"_item--columns-12_mi21y_1","item--columns-auto":"_item--columns-auto_mi21y_1","item--columns-1--m":"_item--columns-1--m_mi21y_1","item--columns-2--m":"_item--columns-2--m_mi21y_1","item--columns-3--m":"_item--columns-3--m_mi21y_1","item--columns-4--m":"_item--columns-4--m_mi21y_1","item--columns-5--m":"_item--columns-5--m_mi21y_1","item--columns-6--m":"_item--columns-6--m_mi21y_1","item--columns-7--m":"_item--columns-7--m_mi21y_1","item--columns-8--m":"_item--columns-8--m_mi21y_1","item--columns-9--m":"_item--columns-9--m_mi21y_1","item--columns-10--m":"_item--columns-10--m_mi21y_1","item--columns-11--m":"_item--columns-11--m_mi21y_1","item--columns-12--m":"_item--columns-12--m_mi21y_1","item--columns-auto--m":"_item--columns-auto--m_mi21y_1","item--columns-1--l":"_item--columns-1--l_mi21y_1","item--columns-2--l":"_item--columns-2--l_mi21y_1","item--columns-3--l":"_item--columns-3--l_mi21y_1","item--columns-4--l":"_item--columns-4--l_mi21y_1","item--columns-5--l":"_item--columns-5--l_mi21y_1","item--columns-6--l":"_item--columns-6--l_mi21y_1","item--columns-7--l":"_item--columns-7--l_mi21y_1","item--columns-8--l":"_item--columns-8--l_mi21y_1","item--columns-9--l":"_item--columns-9--l_mi21y_1","item--columns-10--l":"_item--columns-10--l_mi21y_1","item--columns-11--l":"_item--columns-11--l_mi21y_1","item--columns-12--l":"_item--columns-12--l_mi21y_1","item--columns-auto--l":"_item--columns-auto--l_mi21y_1","item--columns-1--xl":"_item--columns-1--xl_mi21y_1","item--columns-2--xl":"_item--columns-2--xl_mi21y_1","item--columns-3--xl":"_item--columns-3--xl_mi21y_1","item--columns-4--xl":"_item--columns-4--xl_mi21y_1","item--columns-5--xl":"_item--columns-5--xl_mi21y_1","item--columns-6--xl":"_item--columns-6--xl_mi21y_1","item--columns-7--xl":"_item--columns-7--xl_mi21y_1","item--columns-8--xl":"_item--columns-8--xl_mi21y_1","item--columns-9--xl":"_item--columns-9--xl_mi21y_1","item--columns-10--xl":"_item--columns-10--xl_mi21y_1","item--columns-11--xl":"_item--columns-11--xl_mi21y_1","item--columns-12--xl":"_item--columns-12--xl_mi21y_1","item--columns-auto--xl":"_item--columns-auto--xl_mi21y_1","--direction-column--m":"_--direction-column--m_mi21y_1","--direction-column-reverse--m":"_--direction-column-reverse--m_mi21y_1","--direction-row--m":"_--direction-row--m_mi21y_1","--direction-row-reverse--m":"_--direction-row-reverse--m_mi21y_1","--align-start--m":"_--align-start--m_mi21y_1","--align-end--m":"_--align-end--m_mi21y_1","--align-center--m":"_--align-center--m_mi21y_1","--align-stretch--m":"_--align-stretch--m_mi21y_1","--align-baseline--m":"_--align-baseline--m_mi21y_1","--justify-start--m":"_--justify-start--m_mi21y_1","--justify-end--m":"_--justify-end--m_mi21y_1","--justify-center--m":"_--justify-center--m_mi21y_1","--justify-space-between--m":"_--justify-space-between--m_mi21y_1","item--grow-true--m":"_item--grow-true--m_mi21y_1","item--grow-false--m":"_item--grow-false--m_mi21y_1","--direction-column--l":"_--direction-column--l_mi21y_1","--direction-column-reverse--l":"_--direction-column-reverse--l_mi21y_1","--direction-row--l":"_--direction-row--l_mi21y_1","--direction-row-reverse--l":"_--direction-row-reverse--l_mi21y_1","--align-start--l":"_--align-start--l_mi21y_1","--align-end--l":"_--align-end--l_mi21y_1","--align-center--l":"_--align-center--l_mi21y_1","--align-stretch--l":"_--align-stretch--l_mi21y_1","--align-baseline--l":"_--align-baseline--l_mi21y_1","--justify-start--l":"_--justify-start--l_mi21y_1","--justify-end--l":"_--justify-end--l_mi21y_1","--justify-center--l":"_--justify-center--l_mi21y_1","--justify-space-between--l":"_--justify-space-between--l_mi21y_1","item--grow-true--l":"_item--grow-true--l_mi21y_1","item--grow-false--l":"_item--grow-false--l_mi21y_1","--direction-column--xl":"_--direction-column--xl_mi21y_1","--direction-column-reverse--xl":"_--direction-column-reverse--xl_mi21y_1","--direction-row--xl":"_--direction-row--xl_mi21y_1","--direction-row-reverse--xl":"_--direction-row-reverse--xl_mi21y_1","--align-start--xl":"_--align-start--xl_mi21y_1","--align-end--xl":"_--align-end--xl_mi21y_1","--align-center--xl":"_--align-center--xl_mi21y_1","--align-stretch--xl":"_--align-stretch--xl_mi21y_1","--align-baseline--xl":"_--align-baseline--xl_mi21y_1","--justify-start--xl":"_--justify-start--xl_mi21y_1","--justify-end--xl":"_--justify-end--xl_mi21y_1","--justify-center--xl":"_--justify-center--xl_mi21y_1","--justify-space-between--xl":"_--justify-space-between--xl_mi21y_1","item--grow-true--xl":"_item--grow-true--xl_mi21y_1","item--grow-false--xl":"_item--grow-false--xl_mi21y_1"},PJ="_root_10063_1",EM={root:PJ,"--radius-none":"_--radius-none_10063_1","--radius-small":"_--radius-small_10063_1","--radius-medium":"_--radius-medium_10063_1","--radius-large":"_--radius-large_10063_1","--radius-circular":"_--radius-circular_10063_1","--radius-none--m":"_--radius-none--m_10063_1","--radius-small--m":"_--radius-small--m_10063_1","--radius-medium--m":"_--radius-medium--m_10063_1","--radius-large--m":"_--radius-large--m_10063_1","--radius-circular--m":"_--radius-circular--m_10063_1","--radius-none--l":"_--radius-none--l_10063_1","--radius-small--l":"_--radius-small--l_10063_1","--radius-medium--l":"_--radius-medium--l_10063_1","--radius-large--l":"_--radius-large--l_10063_1","--radius-circular--l":"_--radius-circular--l_10063_1","--radius-none--xl":"_--radius-none--xl_10063_1","--radius-small--xl":"_--radius-small--xl_10063_1","--radius-medium--xl":"_--radius-medium--xl_10063_1","--radius-large--xl":"_--radius-large--xl_10063_1","--radius-circular--xl":"_--radius-circular--xl_10063_1"},xN=t=>t?{classNames:[EM.root,...Xt(EM,"--radius",t)]}:null,RJ="_root_g5jwk_1",_M={root:RJ,"--bleed":"_--bleed_g5jwk_1","--bleed-true--m":"_--bleed-true--m_g5jwk_1","--bleed-false--m":"_--bleed-false--m_g5jwk_1","--bleed-true--l":"_--bleed-true--l_g5jwk_1","--bleed-false--l":"_--bleed-false--l_g5jwk_1","--bleed-true--xl":"_--bleed-true--xl_g5jwk_1","--bleed-false--xl":"_--bleed-false--xl_g5jwk_1"},vN=t=>{if(t===void 0)return null;const e=[_M.root,...Xt(_M,"--bleed",Kf(t,r=>typeof r=="number"&&r>0))],n=mr("--rs-bleed",t);return{classNames:e,variables:n}},NJ="_literal_feq05_1",$J="_unit_feq05_1",LJ={literal:NJ,unit:$J,"literal--m":"_literal--m_feq05_1","unit--m":"_unit--m_feq05_1","literal--l":"_literal--l_feq05_1","unit--l":"_unit--l_feq05_1","literal--xl":"_literal--xl_feq05_1","unit--xl":"_unit--xl_feq05_1"},UJ=t=>{if(!t)return null;const e=mr("--rs-w",t);return{classNames:Xt(LJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},jJ="_literal_vx5jt_1",HJ="_unit_vx5jt_1",zJ={literal:jJ,unit:HJ,"literal--m":"_literal--m_vx5jt_1","unit--m":"_unit--m_vx5jt_1","literal--l":"_literal--l_vx5jt_1","unit--l":"_unit--l_vx5jt_1","literal--xl":"_literal--xl_vx5jt_1","unit--xl":"_unit--xl_vx5jt_1"},V_=t=>{if(!t)return null;const e=mr("--rs-h",t);return{classNames:Xt(zJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},GJ="_literal_7zdst_1",VJ="_unit_7zdst_1",qJ={literal:GJ,unit:VJ,"literal--m":"_literal--m_7zdst_1","unit--m":"_unit--m_7zdst_1","literal--l":"_literal--l_7zdst_1","unit--l":"_unit--l_7zdst_1","literal--xl":"_literal--xl_7zdst_1","unit--xl":"_unit--xl_7zdst_1"},WJ=t=>{if(!t)return null;const e=mr("--rs-max-w",t);return{classNames:Xt(qJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},KJ="_literal_yqjjt_1",ZJ="_unit_yqjjt_1",QJ={literal:KJ,unit:ZJ,"literal--m":"_literal--m_yqjjt_1","unit--m":"_unit--m_yqjjt_1","literal--l":"_literal--l_yqjjt_1","unit--l":"_unit--l_yqjjt_1","literal--xl":"_literal--xl_yqjjt_1","unit--xl":"_unit--xl_yqjjt_1"},JJ=t=>{if(!t)return null;const e=mr("--rs-max-h",t);return{classNames:Xt(QJ,r=>typeof r=="number"?"unit":"literal",t,{excludeValueFromClassName:!0}),variables:e}},XJ={"--position-static":"_--position-static_j0cdp_1","--position-relative":"_--position-relative_j0cdp_1","--position-absolute":"_--position-absolute_j0cdp_1","--position-fixed":"_--position-fixed_j0cdp_1","--position-sticky":"_--position-sticky_j0cdp_1","--position-static--m":"_--position-static--m_j0cdp_1","--position-relative--m":"_--position-relative--m_j0cdp_1","--position-absolute--m":"_--position-absolute--m_j0cdp_1","--position-fixed--m":"_--position-fixed--m_j0cdp_1","--position-sticky--m":"_--position-sticky--m_j0cdp_1","--position-static--l":"_--position-static--l_j0cdp_1","--position-relative--l":"_--position-relative--l_j0cdp_1","--position-absolute--l":"_--position-absolute--l_j0cdp_1","--position-fixed--l":"_--position-fixed--l_j0cdp_1","--position-sticky--l":"_--position-sticky--l_j0cdp_1","--position-static--xl":"_--position-static--xl_j0cdp_1","--position-relative--xl":"_--position-relative--xl_j0cdp_1","--position-absolute--xl":"_--position-absolute--xl_j0cdp_1","--position-fixed--xl":"_--position-fixed--xl_j0cdp_1","--position-sticky--xl":"_--position-sticky--xl_j0cdp_1"},YJ=t=>t?{classNames:Xt(XJ,"--position",t)}:null,eX={"--inset":"_--inset_3h9cu_1","--inset-end":"_--inset-end_3h9cu_1","--inset-start":"_--inset-start_3h9cu_1","--inset-top":"_--inset-top_3h9cu_1","--inset-bottom":"_--inset-bottom_3h9cu_1","--inset-end--m":"_--inset-end--m_3h9cu_1","--inset-start--m":"_--inset-start--m_3h9cu_1","--inset-top--m":"_--inset-top--m_3h9cu_1","--inset-bottom--m":"_--inset-bottom--m_3h9cu_1","--inset-end--l":"_--inset-end--l_3h9cu_1","--inset-start--l":"_--inset-start--l_3h9cu_1","--inset-top--l":"_--inset-top--l_3h9cu_1","--inset-bottom--l":"_--inset-bottom--l_3h9cu_1","--inset-end--xl":"_--inset-end--xl_3h9cu_1","--inset-start--xl":"_--inset-start--xl_3h9cu_1","--inset-top--xl":"_--inset-top--xl_3h9cu_1","--inset-bottom--xl":"_--inset-bottom--xl_3h9cu_1"},M1=(t,e)=>{if(t===void 0)return null;const n=e?`-${e}`:"",r=`--rs-inset${n}`,a=mr(r,t);return{classNames:Xt(eX,`--inset${n}`,t,{excludeValueFromClassName:!0}),variables:a}},tX="_root_1hagr_1",nX={root:tX},rX=t=>{if(!t)return null;const e=mr("--rs-ratio",t);return{classNames:nX.root,variables:e}};var aX=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const{columns:e,grow:n,gapBefore:r,as:a="div",order:i,children:s,className:o,attributes:c}=t,h=Ot(Qt.item,o,r==="auto"&&Qt["item--gap-auto"],r!==void 0&&Qt["item--gap-before"],e&&Qt["item--columns"],...Xt(Qt,"item--grow",n),...Xt(Qt,"item--columns",e)),b=Object.assign(Object.assign({},mr("--rs-view-item-order",i)),mr("--rs-view-item-gap-before",r));return te.createElement(a,Object.assign({},c,{style:Object.assign(Object.assign({},c==null?void 0:c.style),b),className:h}),s)},rt=t=>{const{align:e,justify:n,wrap:r,gap:a,height:i,width:s,aspectRatio:o,maxHeight:c,maxWidth:h,padding:b,paddingInline:v,paddingBlock:E,paddingBottom:C,paddingEnd:M,paddingStart:T,paddingTop:P,bleed:D,animated:F,backgroundColor:O,borderColor:k,borderRadius:U,shadow:J,textAlign:Y,overflow:L,position:X="relative",inset:B,insetTop:u,insetBottom:d,insetStart:p,insetEnd:l,zIndex:y,grow:g,as:w="div",children:x,divided:f,className:m,attributes:A}=t;let _=!!e||!!n||!!a||!!t.direction;const S=t.direction||(_?"column":void 0),$=xN(U),V=vN(D),I=UJ(s),W=V_(i),z=WJ(h),Z=JJ(c),le=YJ(X),ue=M1(B),G=M1(u,"top"),j=M1(d,"bottom"),ne=M1(p,"start"),se=M1(l,"end"),Q=rX(o);let R=0,N;const K=({className:ie,key:me})=>{const be=Ot(Qt.divider,ie);let pe=!1;return typeof S=="string"&&S.startsWith("row")?pe=!0:S&&(pe=Object.keys(S).reduce((Te,Ee)=>{const Qe=S[Ee];return Qe?Object.assign(Object.assign({},Te),{[Ee]:Qe.startsWith("row")}):Te},{})),te.createElement("div",{className:be,key:`${me}-divider`},te.createElement(gN,{vertical:pe,blank:!0}))},ae=({className:ie,child:me,index:be})=>{var pe,Me,Te;const Ee=me.type===wN,Qe=me.type===rt,Ne=me.key||be,Oe=!!be&&f&&K({className:ie,key:Ne});let at;return Ee?at=te.cloneElement(me,{className:Ot(ie,me.props.className)}):ie||!te.isValidElement(me)?at=te.createElement("div",{className:ie,key:Ne},me):at=me,Ee&&(!((pe=me.props)===null||pe===void 0)&&pe.grow)&&(N=me.props.grow),Ee&&((Me=me.props)===null||Me===void 0?void 0:Me.gap)==="auto"&&(N=!0),(Ee||Qe)&&(!((Te=me.props)===null||Te===void 0)&&Te.grow)&&(_=!0),[Oe,at]},he=te.Children.map(x,(ie,me)=>{if(!ie)return null;const be=R;if(R+=1,ie.type===wM&&typeof ie.props.children!="function"){const pe=ie.props,{children:Me}=pe,Te=aX(pe,["children"]),Ee=ie.key||me;return te.createElement(wM,Object.assign({},Te,{key:Ee}),Qe=>ae({className:Qe,child:Me,index:be}))}return ae({child:ie,index:be})}),q=Ot(Qt.root,m,$==null?void 0:$.classNames,le==null?void 0:le.classNames,V==null?void 0:V.classNames,I==null?void 0:I.classNames,W==null?void 0:W.classNames,Q==null?void 0:Q.classNames,z==null?void 0:z.classNames,Z==null?void 0:Z.classNames,ue==null?void 0:ue.classNames,G==null?void 0:G.classNames,j==null?void 0:j.classNames,ne==null?void 0:ne.classNames,se==null?void 0:se.classNames,Y&&Qt[`--align-text-${Y}`],O&&Qt[`--bg-${O}`],k&&Qt[`--bd-${k}`],k&&Qt["--bd"],J&&Qt[`--shadow-${J}`],L&&Qt[`--overflow-${L}`],F&&Qt["--animated"],f&&Qt["--divided"],(b!==void 0||v!==void 0||E!==void 0)&&Qt["--padding"],C!==void 0&&Qt["--padding-bottom"],M!==void 0&&Qt["--padding-end"],T!==void 0&&Qt["--padding-start"],P!==void 0&&Qt["--padding-top"],(_||N)&&Qt["--flex"],...Xt(Qt,"--direction",S),...Xt(Qt,"--align",e),...Xt(Qt,"--justify",n),...Xt(Qt,"--nowrap",N||r===!1),...Xt(Qt,"--wrap",r),...Xt(Qt,"item--grow",g)),ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),mr("--rs-view-gap",a)),mr("--rs-view-p-vertical",E||b)),mr("--rs-view-p-horizontal",v||b)),mr("--rs-view-p-bottom",C)),mr("--rs-view-p-top",P)),mr("--rs-view-p-start",T)),mr("--rs-view-p-end",M)),V==null?void 0:V.variables),I==null?void 0:I.variables),W==null?void 0:W.variables),Q==null?void 0:Q.variables),z==null?void 0:z.variables),Z==null?void 0:Z.variables),ue==null?void 0:ue.variables),G==null?void 0:G.variables),j==null?void 0:j.variables),ne==null?void 0:ne.variables),se==null?void 0:se.variables),y?{"--rs-view-z":y}:{});return te.createElement(w,Object.assign({},A,{className:q,style:ee}),he)};rt.Item=wN;const iX="_root_p4nta_1",k4={root:iX,"--auto":"_--auto_p4nta_1","--color-neutral":"_--color-neutral_p4nta_1","--color-neutral-faded":"_--color-neutral-faded_p4nta_1","--color-primary":"_--color-primary_p4nta_1","--color-positive":"_--color-positive_p4nta_1","--color-critical":"_--color-critical_p4nta_1","--color-disabled":"_--color-disabled_p4nta_1"},Fc=t=>{const{svg:e,className:n,color:r,size:a="1em",autoWidth:i,attributes:s}=t,o=V_(a),c=Ot(k4.root,n,o==null?void 0:o.classNames,r&&k4[`--color-${r}`],i&&k4["--auto"]),h=typeof e=="object"?e:te.createElement(e,null),b=Object.assign(Object.assign({},s==null?void 0:s.style),o==null?void 0:o.variables);return te.createElement("span",Object.assign({},s,{"aria-hidden":"true",className:c,style:b}),te.cloneElement(h,{focusable:!1}))},mx=t=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>t())})},q_="data-rs-no-transition",sX=()=>{document.documentElement.setAttribute(q_,"true")},oX=()=>{document.documentElement.removeAttribute(q_)},cX=()=>!document.documentElement.hasAttribute(q_),lX="_root_79hj7_1",ku={root:lX,"--clamp":"_--clamp_79hj7_1","--align-start":"_--align-start_79hj7_1","--align-center":"_--align-center_79hj7_1","--align-end":"_--align-end_79hj7_1","--variant-title-1":"_--variant-title-1_79hj7_1","--variant-title-2":"_--variant-title-2_79hj7_1","--variant-title-3":"_--variant-title-3_79hj7_1","--variant-title-4":"_--variant-title-4_79hj7_1","--variant-title-5":"_--variant-title-5_79hj7_1","--variant-title-6":"_--variant-title-6_79hj7_1","--variant-featured-1":"_--variant-featured-1_79hj7_1","--variant-featured-2":"_--variant-featured-2_79hj7_1","--variant-featured-3":"_--variant-featured-3_79hj7_1","--variant-body-1":"_--variant-body-1_79hj7_1","--variant-body-2":"_--variant-body-2_79hj7_1","--variant-body-3":"_--variant-body-3_79hj7_1","--variant-caption-1":"_--variant-caption-1_79hj7_1","--variant-caption-2":"_--variant-caption-2_79hj7_1","--weight-regular":"_--weight-regular_79hj7_1","--weight-medium":"_--weight-medium_79hj7_1","--weight-bold":"_--weight-bold_79hj7_1","--color-neutral":"_--color-neutral_79hj7_1","--color-neutral-faded":"_--color-neutral-faded_79hj7_1","--color-primary":"_--color-primary_79hj7_1","--color-positive":"_--color-positive_79hj7_1","--color-critical":"_--color-critical_79hj7_1","--color-disabled":"_--color-disabled_79hj7_1","--decoration-line-through":"_--decoration-line-through_79hj7_1","--align-start--m":"_--align-start--m_79hj7_1","--align-center--m":"_--align-center--m_79hj7_1","--align-end--m":"_--align-end--m_79hj7_1","--variant-title-1--m":"_--variant-title-1--m_79hj7_1","--variant-title-2--m":"_--variant-title-2--m_79hj7_1","--variant-title-3--m":"_--variant-title-3--m_79hj7_1","--variant-title-4--m":"_--variant-title-4--m_79hj7_1","--variant-title-5--m":"_--variant-title-5--m_79hj7_1","--variant-title-6--m":"_--variant-title-6--m_79hj7_1","--variant-featured-1--m":"_--variant-featured-1--m_79hj7_1","--variant-featured-2--m":"_--variant-featured-2--m_79hj7_1","--variant-featured-3--m":"_--variant-featured-3--m_79hj7_1","--variant-body-1--m":"_--variant-body-1--m_79hj7_1","--variant-body-2--m":"_--variant-body-2--m_79hj7_1","--variant-body-3--m":"_--variant-body-3--m_79hj7_1","--variant-caption-1--m":"_--variant-caption-1--m_79hj7_1","--variant-caption-2--m":"_--variant-caption-2--m_79hj7_1","--align-start--l":"_--align-start--l_79hj7_1","--align-center--l":"_--align-center--l_79hj7_1","--align-end--l":"_--align-end--l_79hj7_1","--variant-title-1--l":"_--variant-title-1--l_79hj7_1","--variant-title-2--l":"_--variant-title-2--l_79hj7_1","--variant-title-3--l":"_--variant-title-3--l_79hj7_1","--variant-title-4--l":"_--variant-title-4--l_79hj7_1","--variant-title-5--l":"_--variant-title-5--l_79hj7_1","--variant-title-6--l":"_--variant-title-6--l_79hj7_1","--variant-featured-1--l":"_--variant-featured-1--l_79hj7_1","--variant-featured-2--l":"_--variant-featured-2--l_79hj7_1","--variant-featured-3--l":"_--variant-featured-3--l_79hj7_1","--variant-body-1--l":"_--variant-body-1--l_79hj7_1","--variant-body-2--l":"_--variant-body-2--l_79hj7_1","--variant-body-3--l":"_--variant-body-3--l_79hj7_1","--variant-caption-1--l":"_--variant-caption-1--l_79hj7_1","--variant-caption-2--l":"_--variant-caption-2--l_79hj7_1","--align-start--xl":"_--align-start--xl_79hj7_1","--align-center--xl":"_--align-center--xl_79hj7_1","--align-end--xl":"_--align-end--xl_79hj7_1","--variant-title-1--xl":"_--variant-title-1--xl_79hj7_1","--variant-title-2--xl":"_--variant-title-2--xl_79hj7_1","--variant-title-3--xl":"_--variant-title-3--xl_79hj7_1","--variant-title-4--xl":"_--variant-title-4--xl_79hj7_1","--variant-title-5--xl":"_--variant-title-5--xl_79hj7_1","--variant-title-6--xl":"_--variant-title-6--xl_79hj7_1","--variant-featured-1--xl":"_--variant-featured-1--xl_79hj7_1","--variant-featured-2--xl":"_--variant-featured-2--xl_79hj7_1","--variant-featured-3--xl":"_--variant-featured-3--xl_79hj7_1","--variant-body-1--xl":"_--variant-body-1--xl_79hj7_1","--variant-body-2--xl":"_--variant-body-2--xl_79hj7_1","--variant-body-3--xl":"_--variant-body-3--xl_79hj7_1","--variant-caption-1--xl":"_--variant-caption-1--xl_79hj7_1","--variant-caption-2--xl":"_--variant-caption-2--xl_79hj7_1"},uX={"title-1":"h1","title-2":"h2","title-3":"h3","title-4":"h4","title-5":"h5","title-6":"h6"},Fn=t=>{const{variant:e,color:n,weight:r,align:a,decoration:i,maxLines:s,children:o,className:c,attributes:h}=t,b=typeof e=="string"?e:(e==null?void 0:e.xl)||(e==null?void 0:e.l)||(e==null?void 0:e.m)||(e==null?void 0:e.s),v=t.as||b&&uX[b]||"div",E=Ot(ku.root,n&&ku[`--color-${n}`],...Xt(ku,"--variant",e),...Xt(ku,"--align",a),r&&ku[`--weight-${r}`],i&&ku[`--decoration-${i}`],s!==void 0&&ku["--clamp"],c),C=Object.assign(Object.assign({},h==null?void 0:h.style),{"--rs-text-lines":s});return te.createElement(v,Object.assign({},h,{className:E,style:C}),o)},EN=te.createContext({attributes:{id:"","aria-describedby":""},required:void 0,hasError:!1,errorRef:()=>{},helperRef:()=>{}}),fX=EN.Provider,Bb=()=>te.useContext(EN),_N=()=>{const{attributes:t,required:e,hasError:n,disabled:r}=Bb();return{attributes:t,required:e,hasError:n,disabled:r}},dX="_root_1i3ho_1",hX="_label_1i3ho_1",pX="_caption_1i3ho_1",AN={root:dX,label:hX,caption:pX},I7=(t,e)=>`${t}-${e||"caption"}`,rr=t=>{const{children:e,id:n,required:r,hasError:a,group:i,disabled:s,size:o}=t,c=Np(n),h=i?"fieldset":"div",[b,v]=te.useState(!1),[E,C]=te.useState(!1),M=[b&&I7(c),E&&I7(c,"error")].filter(Boolean).join(" "),T={id:c,"aria-describedby":M},P=()=>{C(!0)},D=()=>{v(!0)};return te.createElement(h,null,te.createElement(fX,{value:{required:r,hasError:a,errorRef:P,helperRef:D,attributes:T,group:i,disabled:s,size:o}},e))},yX=t=>{const{children:e}=t,{attributes:n,required:r,group:a,disabled:i,size:s}=Bb(),o=`${n.id}-label`,c=a?{as:"legend",attributes:{id:o}}:{as:"label",attributes:{id:o,htmlFor:n.id}};return te.createElement(Fn,Object.assign({},c,{variant:s==="large"?"body-2":"body-3",weight:"medium",className:AN.label,color:i?"disabled":void 0}),e,r&&te.createElement(Fn,{color:i?"disabled":"critical",as:"span"},"*"))},CN=t=>{const{children:e,variant:n,disabled:r}=t,{attributes:a,size:i,helperRef:s,errorRef:o}=Bb(),c=I7(a.id,n),h=n==="error"?"critical":"neutral-faded",b=n==="error"?o:s;return te.createElement(Fn,{as:"span",variant:i==="large"?"body-3":"caption-1",color:r&&!n?"disabled":h,attributes:{id:c,role:h?"alert":void 0,ref:b},className:AN.caption},e)},mX=t=>{const{children:e}=t,{disabled:n}=Bb();return te.createElement(CN,{disabled:n},e)},bX=t=>{const{children:e}=t,{hasError:n}=Bb();return n?te.createElement(CN,{variant:"error"},e):null};rr.Label=yX;rr.Helper=mX;rr.Error=bX;const gX="_root_ovu5c_1",AM={root:gX,"--side-all":"_--side-all_ovu5c_1","--side-inline":"_--side-inline_ovu5c_1","--side-start":"_--side-start_ovu5c_1","--side-end":"_--side-end_ovu5c_1","--side-block":"_--side-block_ovu5c_1","--side-top":"_--side-top_ovu5c_1","--side-bottom":"_--side-bottom_ovu5c_1"},W_=t=>{const{side:e="all",children:n,className:r,attributes:a}=t,i=typeof e=="string"?[e]:e,s=Ot(AM.root,i.map(o=>AM[`--side-${o}`]),r);return te.createElement("div",Object.assign({},a,{className:s}),n)},xX="_root_1iu93_1",vX="_input_1iu93_1",wX="_affix_1iu93_1",EX="_icon_1iu93_1",_X="_slot_1iu93_1",AX="_attachment_1iu93_1",Es={root:xX,input:vX,affix:wX,icon:EX,slot:_X,attachment:AX,"attachment--position-start":"_attachment--position-start_1iu93_1","attachment--position-end":"_attachment--position-end_1iu93_1","--disabled":"_--disabled_1iu93_1","--size-medium":"_--size-medium_1iu93_1","--size-large":"_--size-large_1iu93_1","--size-xlarge":"_--size-xlarge_1iu93_1","--variant-faded":"_--variant-faded_1iu93_1","--variant-headless":"_--variant-headless_1iu93_1","--status-error":"_--status-error_1iu93_1","--size-medium--m":"_--size-medium--m_1iu93_1","--size-large--m":"_--size-large--m_1iu93_1","--size-xlarge--m":"_--size-xlarge--m_1iu93_1","--size-medium--l":"_--size-medium--l_1iu93_1","--size-large--l":"_--size-large--l_1iu93_1","--size-xlarge--l":"_--size-xlarge--l_1iu93_1","--size-medium--xl":"_--size-medium--xl_1iu93_1","--size-large--xl":"_--size-large--xl_1iu93_1","--size-xlarge--xl":"_--size-xlarge--xl_1iu93_1"},CM=t=>{const{slot:e,icon:n,size:r,affix:a,position:i}=t;if(!n&&!e&&!a)return null;const s=Ot(Es.attachment,Es[`attachment--position-${i}`]),o=[e&&te.createElement("div",{className:Es.slot,key:"slot"},e),n&&te.createElement("div",{className:Es.icon,key:"icon"},te.createElement(Fc,{size:Kf(r,c=>c==="large"?5:c==="xlarge"?6:4),svg:n})),a&&te.createElement("div",{className:Es.affix,key:"affix"},a)].filter(Boolean);return te.createElement("span",{className:s},i==="end"?o.reverse():o)},mm=t=>{var e;const{onChange:n,onFocus:r,onBlur:a,name:i,value:s,defaultValue:o,placeholder:c,icon:h,endIcon:b,startSlot:v,endSlot:E,prefix:C,suffix:M,size:T="medium",variant:P="outline",className:D,attributes:F}=t,O=_N(),k=Np(t.id),U=(O==null?void 0:O.attributes.id)||((e=t.inputAttributes)===null||e===void 0?void 0:e.id)||k,J=(O==null?void 0:O.disabled)||t.disabled,Y=(O==null?void 0:O.hasError)||t.hasError,L=Object.assign(Object.assign({},t.inputAttributes),O==null?void 0:O.attributes),X=Ot(Es.root,D,T&&Xt(Es,"--size",T),Y&&Es["--status-error"],J&&Es["--disabled"],P&&Es[`--variant-${P}`]),B=u=>{n&&n({name:i,value:u.target.value,event:u})};return te.createElement("div",Object.assign({},F,{"data-rs-aligner-target":!0,className:X}),te.createElement(CM,{position:"start",icon:h,slot:v,size:T,affix:C}),te.createElement("input",Object.assign({},L,{className:Es.input,disabled:J,name:i,placeholder:c,value:s,defaultValue:o,onChange:B,onFocus:r||(L==null?void 0:L.onFocus),onBlur:a||(L==null?void 0:L.onBlur),id:U})),te.createElement(CM,{position:"end",icon:b,slot:E,size:T,affix:M}))};mm.Aligner=W_;const CX="Tab",SX="ArrowUp",TX="ArrowDown",O7="data-rs-keyboard",G3="data-rs-focus";class BX{constructor(){this.chain={},this.tailId=null,this.idCounter=0}generateId(){return this.idCounter+=1,this.idCounter}getAll(){return this.chain}get(e){return this.chain[e]}isLast(e){return this.tailId!==null&&e===this.tailId}isEmpty(){return typeof this.tailId!="number"}add(e){const n=this.tailId,r=n&&this.get(n),a=this.generateId();return this.chain[a]={previousId:n,data:e},r&&(r.nextId=a),this.tailId=a,a}remove(e){var n,r;const a=this.chain[e];if(!a)return;const i=a.previousId,s=i&&this.get(i),o=a.nextId,c=o&&this.get(o);s&&(s.nextId=(n=a.nextId)!==null&&n!==void 0?n:null),c&&(c.previousId=(r=a.previousId)!==null&&r!==void 0?r:null),o||(this.tailId=i??null);const h=this.get(e).data;return delete this.chain[e],h}removePreviousTill(e,n){const r=this.get(e),a=this.remove(e);return!r||!r.previousId||n(r)?a:this.removePreviousTill(r.previousId,n)}}const SN=()=>document.documentElement.hasAttribute(O7),TN='a,button,input:not([type="hidden"]),textarea,select,details,[tabindex]:not([tabindex="-1"])',P7=()=>document.querySelector(`[${G3}]`)||document.activeElement,R7=(t,e)=>{const r=Array.from(t.querySelectorAll(TN)).filter(a=>!a.hasAttribute("disabled")&&a.clientHeight>0);return e&&r.length&&r.unshift(e),r},MX=t=>{const{root:e,extraElement:n,target:r,mode:a}=t,i=R7(e,n),s=i.length-1,o=P7(),c=i.indexOf(o),h={next:c+1,prev:c-1,first:0,last:s};let b=h[r];const v=b>s||b<0;return v&&(a==="action-menu"?b=r==="prev"?h.first:h.last:b=r==="prev"?h.last:h.first),{overflow:v,el:i[b]}},I4=(t,e)=>{var n;(n=document.querySelector(`[${G3}]`))===null||n===void 0||n.removeAttribute(G3),e==="selection-menu"?t.setAttribute(G3,"true"):t.focus()},FX=(()=>{let t=[];const e=r=>{let a=r.parentNode&&r.parentNode.firstChild;for(;a;){const i=a!==r,s=a.nodeType===1&&!a.hasAttribute("aria-hidden");i&&s&&(a.setAttribute("aria-hidden","true"),t.push(a)),a=a.nextSibling}},n=()=>{t.forEach(r=>{r.removeAttribute("aria-hidden")}),t=[]};return r=>{let a=r;for(t.length&&n();a!==document.body;)e(a),a=a.parentElement;return{release:n}}})(),bx=(()=>{let t=null,e=null;const n=new BX;return(r,a={})=>{const{mode:i="dialog",onNavigateOutside:s,includeTrigger:o}=a,c=P7(),h=i==="dialog",b=i==="content-menu",v=i==="selection-menu",E=h||b,C=i==="action-menu"||v,M=R7(r,o?c:void 0);let T;const P=new MutationObserver(()=>{if(r.contains(document.activeElement))return;const k=R7(r,o?c:void 0);k.length&&I4(k[0],i)}),D=(k={})=>{const{withoutFocusReturn:U}=k;n.removePreviousTill(T,Y=>document.body.contains(Y.data.trigger)),P.disconnect(),c&&c.focus({preventScroll:U||!SN()}),t&&(t(),e&&e.release(),t=null,e=null);const J=n.tailId&&n.get(n.tailId);J&&bx(J.data.root,J.data.options)},F=k=>{const U=k.key,J=U===CX,Y=J&&!k.shiftKey,L=J&&k.shiftKey,X=C&&U===SX,B=C&&U===TX,u=L&&E||X,d=Y&&E||B,p=P7()===c,l=MX({root:r,target:u?"prev":"next",extraElement:o?c:void 0,mode:i});if(J&&C||b&&J&&l.overflow){L&&!p&&k.preventDefault(),D(),s==null||s();return}!u&&!d||(k.preventDefault(),l.el&&I4(l.el,i))};if(t&&t(),h&&(e=FX(r)),P.observe(r,{childList:!0,subtree:!0}),!M.length)return null;document.addEventListener("keydown",F),t=()=>document.removeEventListener("keydown",F);const O=n.tailId&&n.get(n.tailId);return(!O||r!==O.data.root)&&(T=n.add({root:r,trigger:c,options:a}),I4(M[0],i)),D}})(),DX=100,kX=150;let B0={},oo=null;const BN=t=>{B0[t]&&(t===oo&&(oo=B0[t].parentId),delete B0[t],oo===null&&(B0={}))},IX=(t,e,n)=>{var r;const a=oo?B0[oo]:void 0;!((n==null?void 0:n.current)&&a&&((r=a.contentRef.current)===null||r===void 0?void 0:r.contains(n.current)))&&n&&oo&&BN(oo),B0[t]={parentId:oo,triggerRef:n,contentRef:e},oo=t},MN=(t=!1,e,n)=>{const r=Np(),a=te.useCallback(()=>oo===r,[r]);return te.useEffect(()=>{t?IX(r,e,n):BN(r)},[t,r,e,n]),a},Ao=typeof window<"u"?te.useLayoutEffect:te.useEffect,Yh="+",ns={},O4=[],FN=t=>t===" "?t:t.replace(/\s/g,"").toLowerCase(),K_=t=>FN(t).split(Yh).sort().join(Yh),SM=t=>{if(t.key)return t.altKey&&t.key!=="Alt"?t.code.toLowerCase().replace(/key|digit|numpad/,""):t.key.toLowerCase()},OX=t=>{const e=[],n=t.join(Yh),a=K_(n).split(Yh),i=(s,o)=>{o.forEach((c,h)=>{const b=s?`${s}+${c}`:c;e.push(b),i(b,o.slice(h+1))})};return i("",a),e},PX=(t,e)=>{const n=Object.keys(t);n.length&&OX(n).forEach(r=>{e(r)})},P4=(t,e)=>{Object.keys(t).forEach(n=>{n.split(",").forEach(r=>{const a=t[n];a&&e(K_(r),a)})})};class RX{constructor(){this.hotkeyMap={},this.getSize=()=>Object.keys(this.hotkeyMap).length,this.bindHotkeys=(e,n)=>{P4(e,(r,a)=>{a&&(this.hotkeyMap[r]||(this.hotkeyMap[r]={data:new Set,used:!1}),this.hotkeyMap[r].data.add({callback:a,ref:n}))})},this.unbindHotkeys=e=>{P4(e,(n,r)=>{var a,i;r&&((a=this.hotkeyMap[n])===null||a===void 0||a.data.forEach(s=>{s.callback===r&&this.hotkeyMap[n].data.delete(s)}),!((i=this.hotkeyMap[n])===null||i===void 0)&&i.data.size||delete this.hotkeyMap[n])})},this.handleKeyDown=(e,n)=>{PX(e,r=>{const a=this.hotkeyMap[r];!a||a.used||a!=null&&a.data.size&&a.data.forEach(i=>{var s;!((s=i.ref)===null||s===void 0)&&s.current&&!(n.target===i.ref.current||i.ref.current.contains(n.target))||(i.callback(e[r]),this.hotkeyMap[r].used=!0)})})},this.handleKeyUp=e=>{const n=K_(e.key);P4(this.hotkeyMap,(r,a)=>{r.split(Yh).includes(n)&&(a.used=!1)})}}}const B2=new RX,DN=te.createContext({}),NX=t=>{const{children:e}=t,[n,r]=te.useState(0),[a,i]=te.useState(0),s=te.useCallback(E=>{if(E.repeat||a===0)return;const C=SM(E);C&&(ns[C]=E,(C==="meta"||C==="control")&&(ns.mod=E),r(Object.keys(ns).length),C==="meta"&&O4.push(...Object.keys(ns)),ns.Meta&&O4.push(C))},[a]),o=te.useCallback(E=>{if(a===0)return;const C=SM(E);C&&(delete ns[C],(C==="meta"||C==="control")&&delete ns.mod,C==="meta"&&O4.forEach(M=>{delete ns[M]}),r(Object.keys(ns).length))},[a]),c=E=>!FN(E).split(Yh).some(M=>!ns[M]),h=te.useCallback((E,C)=>(i(M=>M+1),B2.bindHotkeys(E,C),()=>{i(M=>M-1),B2.unbindHotkeys(E)}),[]),b=te.useCallback(E=>{E.key&&(s(E),B2.handleKeyDown(ns,E))},[s]),v=te.useCallback(E=>{E.key&&(o(E),B2.handleKeyUp(E))},[o]);return te.useEffect(()=>(window.addEventListener("keydown",b),window.addEventListener("keyup",v),()=>{window.removeEventListener("keydown",b),window.removeEventListener("keyup",v)}),[b,v]),te.createElement(DN.Provider,{value:{addHotkeys:h,isPressed:c}},e)},$X=()=>te.useContext(DN),kN=(t,e=[],n)=>{const{addHotkeys:r,isPressed:a}=$X(),i=te.useRef(null),s=(n==null?void 0:n.ref)||i;return te.useEffect(()=>{const o=r(t,s);return()=>o==null?void 0:o()},[r,Object.keys(t).join(","),...e]),{ref:s,checkHotkeyState:a}},IN=te.createContext({rtl:[!1,()=>{}],defaultViewport:"s"}),LX=t=>{const e=te.useState(t||!1),[n,r]=e;return Ao(()=>{const a=new MutationObserver(i=>{i.forEach(s=>{if(s.attributeName!=="dir")return;const o=s.target.dir==="rtl";n!==o&&r(o)})});return a.observe(document.documentElement,{attributes:!0}),()=>a.disconnect()},[n]),Ao(()=>{document.documentElement.setAttribute("dir",n?"rtl":"ltr")},[n]),e},ON=()=>te.useContext(IN).rtl,Z_=t=>{const e=t&&window.getComputedStyle(t),n=e==null?void 0:e.overflowY,r=e==null?void 0:e.position,a=n==null?void 0:n.includes("scroll"),i=r==="fixed";return t===document.body||!t?document.body:a&&t.scrollHeight>t.clientHeight||i?t:Z_(t.parentElement)},TM=16,M2=["top-start","top","top-end"],F2=["bottom-start","bottom","bottom-end"],D2=["start","start-bottom","start-top"],k2=["end","end-bottom","end-top"],UX={top:[...M2,...F2,...k2,...D2],bottom:[...F2,...M2,...k2,...D2],start:[...D2,...k2,...M2,...F2],end:[...k2,...D2,...M2,...F2]},jX=t=>t.includes("start")?t.replace("start","end"):t.includes("end")?t.replace("end","start"):t,BM=(t,e)=>Math.floor(t/2-e/2),HX=t=>{const n=["top","bottom","start","end"].find(r=>t.startsWith(r))||"bottom";return UX[n]},R4=t=>{const e=document.documentElement,n=e.scrollLeft,r=n+e.clientWidth,a=e.scrollTop,i=a+e.clientHeight;return t.left>=n&&t.left+t.width<=r&&t.top>=a&&t.top+t.height<=i},MM=(t,e,n,r)=>{const{position:a,rtl:i,width:s}=r;let o=0,c=0,h=a;switch(i&&(h=jX(h)),(s==="full"||s==="trigger")&&(h=h.includes("top")?"top":"bottom"),h){case"bottom":case"top":o=BM(t.width,e.width)+t.left;break;case"start":case"start-top":case"start-bottom":o=t.left-e.width;break;case"end":case"end-top":case"end-bottom":o=t.right;break;case"top-start":case"bottom-start":o=t.left;break;case"top-end":case"bottom-end":o=t.right-e.width;break}switch(h){case"top":case"top-start":case"top-end":c=t.top-e.height;break;case"bottom":case"bottom-start":case"bottom-end":c=t.bottom;break;case"start":case"end":c=BM(t.height,e.height)+t.top;break;case"start-top":case"end-top":c=t.top;break;case"start-bottom":case"end-bottom":c=t.bottom-e.height;break}if(c===void 0||o===void 0)throw Error(`[Reshaped, flyout]: ${h} position is not valid`);c=Math.round(c+(window.scrollY||0)-n.top),o=Math.round(o+(window.scrollX||0)-n.left);let b=Math.ceil(e.width);const v=Math.ceil(e.height);return s==="full"?(o=TM,b=window.innerWidth-TM*2):s==="trigger"&&(b=t.width),{styles:{left:o,top:c,width:b,height:v},position:h}},PN={left:0,top:0,width:"auto",height:"auto",zIndex:"var(--rs-z-index-flyout)"},Wg={left:0,top:0,position:"fixed",visibility:"hidden",animation:"none",transition:"none",zIndex:"var(--rs-z-index-tooltip)"},zX=(t,e,n)=>{const{position:r,forcePosition:a,width:i}=n,s=e.cloneNode(!0),o=t.getBoundingClientRect();s.style="",Object.keys(Wg).forEach(C=>{const M=Wg[C];s.style[C]=M.toString()}),i&&(i==="trigger"?s.style.width=`${o.width}px`:i!=="full"&&(s.style.width=i)),document.body.appendChild(s);const c=s.getBoundingClientRect(),h=Z_(t),b=h.getBoundingClientRect(),v={top:b.top+document.documentElement.scrollTop-h.scrollTop,left:b.left+document.documentElement.scrollLeft-h.scrollLeft};let E=MM(o,c,v,n);if(!R4(E.styles)&&!a){const C=HX(r),M=C.filter(P=>P==="top"||P==="bottom"),T=(P,D={})=>{const{fullWidth:F}=D;P.some(O=>{const k=Object.assign(Object.assign({},n),{width:F?"full":n.width,position:O}),U=MM(o,c,v,k);return R4(U.styles)?(E=U,!0):!1})};T(C),R4(E.styles)||T(M,{fullWidth:!0})}return s.parentNode.removeChild(s),E},GX=(t,e)=>{switch(e.type){case"render":return Object.assign(Object.assign({},t),{status:"rendered",styles:Object.assign({pointerEvents:"none"},Wg)});case"position":return Object.assign(Object.assign({},t),{status:t.status==="visible"?"visible":"positioned",position:e.payload.position,styles:Object.assign(Object.assign({},PN),e.payload.styles)});case"show":return Object.assign(Object.assign({},t),{status:"visible"});case"hide":return Object.assign(Object.assign({},t),{status:t.status==="idle"?"idle":"hidden"});case"remove":return Object.assign(Object.assign({},t),{status:"idle",styles:Wg});default:throw new Error("Invalid reducer type")}},VX=(t,e,n)=>{const{position:r="bottom",forcePosition:a,width:i}=n,[s]=ON(),[o,c]=te.useReducer(GX,{position:r,styles:PN,status:"idle"}),h=te.useCallback(()=>{c({type:"render"})},[]),b=te.useCallback(()=>{c({type:"show"})},[]),v=te.useCallback(()=>{c({type:"hide"})},[]),E=te.useCallback(()=>{c({type:"remove"})},[]),C=te.useCallback(()=>{if(!t.current||!e.current)return;const M=zX(t.current,e.current,{width:i,position:r,forcePosition:a,rtl:s});c({type:"position",payload:M})},[t,e,r,s,a,i]);return te.useEffect(()=>{o.status==="rendered"&&C(),o.status==="positioned"&&mx(()=>b())},[o.status,C,b]),te.useMemo(()=>({position:o.position,styles:o.styles,status:o.status,updatePosition:C,render:h,hide:v,remove:E}),[h,C,v,E,o.position,o.styles,o.status])},qX=(t,e)=>{te.useEffect(()=>{if(!e)return;const n=r=>{let a=!1;t.forEach(i=>{(!i.current||i.current===r.target||i.current.contains(r.target))&&(a=!0)}),!a&&e(r)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}},[e,...t])},RN=te.createContext({}),Q_=()=>te.useContext(RN),WX=RN.Provider,NN=t=>{const{triggerType:e="click",onOpen:n,onClose:r,children:a,forcePosition:i,trapFocusMode:s,width:o,disableHideAnimation:c,contentGap:h,contentClassName:b,contentAttributes:v,position:E,active:C,id:M,instanceRef:T}=t,[P]=ON(),D=te.useRef(null),F=te.useRef(null),O=Np(M),k=te.useRef(),U=te.useRef(null),J=te.useRef(!1),Y=te.useRef(!1),L=te.useRef(!0),X=VX(D,F,{width:o,position:E,defaultActive:C,forcePosition:i}),B=Q_(),{status:u,updatePosition:d,render:p,hide:l,remove:y}=X,g=MN(e!=="hover"&&u!=="idle",F,D),w=te.useCallback(()=>{k.current&&clearTimeout(k.current)},[k]),x=te.useCallback(()=>{!J.current&&u==="idle"&&(n==null||n())},[u]),f=te.useCallback(z=>{var Z;!(e==="click"&&!g())&&u!=="idle"&&(r==null||r(),z!=null&&z.closeParents&&((Z=B==null?void 0:B.handleClose)===null||Z===void 0||Z.call(B)))},[u,g,e]),m=te.useCallback(z=>{var Z;!((Z=F.current)===null||Z===void 0)&&Z.contains(z.relatedTarget)||e==="hover"&&s==="content-menu"||Y.current||f()},[f,e,s]),A=te.useCallback(()=>{x()},[x]),_=te.useCallback(()=>{w(),k.current=setTimeout(x,DX)},[w,k,x]),S=te.useCallback(()=>{w(),k.current=setTimeout(()=>f(),kX)},[w,k,f]),$=te.useCallback(()=>{u==="idle"?x():f()},[u,x,f]),V=()=>Y.current=!0,I=()=>Y.current=!1;Ao(()=>{if(C){p();return}cX()&&!c?l():y()},[C,p,l,c]);const W=te.useCallback(z=>{F.current!==z.currentTarget||z.propertyName!=="transform"||u==="hidden"&&y()},[y,u]);return Ao(()=>{u!=="visible"||!F.current||(U.current=bx(F.current,{mode:s,includeTrigger:e==="hover"&&s==="content-menu",onNavigateOutside:()=>{U.current=null,f()}}))},[u,e,f,s]),te.useEffect(()=>{!c&&u!=="hidden"||c&&u!=="idle"||U.current&&(e==="hover"&&(J.current=!0,setTimeout(()=>{J.current=!1},100)),U.current({withoutFocusReturn:!L.current}),U.current=null,L.current=!0)},[u,e,c]),te.useEffect(()=>()=>{U.current&&U.current(),U.current=null},[]),te.useEffect(()=>{const z=SJ(d,10);return window.addEventListener("resize",z),()=>window.removeEventListener("resize",z)},[d]),te.useEffect(()=>{d()},[P,d]),te.useImperativeHandle(T,()=>({open:x,close:f}),[x,f]),kN({Escape:()=>f()},[f]),qX([F,D],()=>{L.current=!1,f()}),te.createElement(WX,{value:{id:O,flyout:X,width:o,triggerElRef:D,flyoutElRef:F,handleClose:f,handleOpen:x,handleFocus:A,handleBlur:m,handleMouseEnter:_,handleMouseLeave:S,handleTransitionEnd:W,handleClick:$,handleContentMouseDown:V,handleContentMouseUp:I,triggerType:e,trapFocusMode:s,contentGap:h,contentClassName:b,contentAttributes:v}},a)},KX=t=>{const{defaultActive:e,onClose:n,onOpen:r}=t,[a,i]=te.useState(e||!1),s=()=>{i(!1),n&&n()},o=()=>{i(!0),r&&r()};return te.createElement(NN,Object.assign({},t,{defaultActive:void 0,active:a,onClose:s,onOpen:o}))},ZX=t=>{const{children:e}=t,{id:n,triggerElRef:r,triggerType:a,flyout:i,handleFocus:s,handleBlur:o,handleMouseEnter:c,handleMouseLeave:h,handleClick:b,trapFocusMode:v}=Q_();let E={onBlur:o,ref:r};return(a==="click"||v==="action-menu")&&(E.onClick=b),a==="hover"&&(E.onMouseEnter=c,E.onMouseLeave=h),(a==="hover"&&v!=="action-menu"||a==="focus")&&(E.onFocus=s,E["aria-describedby"]=n),(a==="click"||a==="focus"||v==="action-menu")&&(v==="dialog"?E["aria-haspopup"]="dialog":v==="selection-menu"?(E["aria-haspopup"]="listbox",E["aria-autocomplete"]="list"):E["aria-haspopup"]="menu",E["aria-expanded"]=i.status!=="idle",E["aria-controls"]=i.status!=="idle"?n:void 0),te.createElement(te.Fragment,null,e(E))},$N=te.createContext({theme:"",colorMode:"light",setTheme:()=>{}}),J_=te.createContext({mode:"light",setMode:()=>{},invertMode:()=>{}}),QX=()=>{const{mode:t}=te.useContext(J_);return t},JX=()=>{const{colorMode:t,theme:e,setTheme:n}=te.useContext($N),{mode:r,setMode:a,invertMode:i}=te.useContext(J_);return te.useMemo(()=>({theme:e,setTheme:n,colorMode:t||r,setColorMode:a,invertColorMode:i}),[t,r,a,i,e,n])},XX="_root_1j8c4_1",YX={root:XX},Mb=t=>{const{name:e,defaultName:n,colorMode:r,children:a,className:i}=t,[s,o]=te.useState(!1),[c,h]=te.useState(n),b=QX(),v=JX(),E=!v.theme,C=e||c||v.theme,M=E?b:v.colorMode,P=r==="inverted"?M==="light"?"dark":"light":r||M,D=Ot(YX.root,i),F=O=>{h(O)};return Ao(()=>{o(!0)},[]),Ao(()=>{if(!document||!E)return;const O=document.documentElement.getAttribute("data-rs-color-mode");return document.documentElement.setAttribute("data-rs-theme",C),O||document.documentElement.setAttribute("data-rs-color-mode",P),()=>{document.documentElement.removeAttribute("data-rs-theme"),O||document.documentElement.removeAttribute("data-rs-color-mode")}},[C,P,E]),te.createElement($N.Provider,{value:{theme:C,colorMode:P,setTheme:F}},te.createElement("div",{className:D,"data-rs-theme":E?void 0:C,"data-rs-color-mode":E||!r&&!s?void 0:P},a))},eY=t=>{const{defaultMode:e,children:n}=t,[r,a]=te.useState(e||"light"),i=te.useCallback(o=>{document.documentElement.setAttribute("data-rs-color-mode",o),a(c=>(c!==o&&sX(),o))},[]);Ao(()=>{mx(()=>{oX()})},[r]),Ao(()=>{const o=document.documentElement.getAttribute("data-rs-color-mode");o&&i(o)},[]);const s=te.useMemo(()=>({mode:r,setMode:i,invertMode:()=>{i(r==="light"?"dark":"light")}}),[r,i]);return te.createElement(J_.Provider,{value:s},n)},LN=te.createContext({}),tY=()=>te.useContext(LN),Kg=t=>{const{children:e,targetRef:n}=t,r=tY(),a=n||r.scopeRef;return JR.createPortal(te.createElement(Mb,null,e),(a==null?void 0:a.current)||document.body)};function nY(t){const{children:e}=t,n=te.useRef(null);return te.createElement(LN.Provider,{value:{scopeRef:n}},e(n))}Kg.Scope=nY;const rY="_content_2oj3i_1",aY="_inner_2oj3i_1",Rd={content:rY,inner:aY,"--width-trigger":"_--width-trigger_2oj3i_1","--position-top":"_--position-top_2oj3i_1","--position-top-end":"_--position-top-end_2oj3i_1","--position-top-start":"_--position-top-start_2oj3i_1","--position-bottom":"_--position-bottom_2oj3i_1","--position-bottom-end":"_--position-bottom-end_2oj3i_1","--position-bottom-start":"_--position-bottom-start_2oj3i_1","--position-start":"_--position-start_2oj3i_1","--position-start-bottom":"_--position-start-bottom_2oj3i_1","--position-start-top":"_--position-start-top_2oj3i_1","--position-end":"_--position-end_2oj3i_1","--position-end-bottom":"_--position-end-bottom_2oj3i_1","--position-end-top":"_--position-end-top_2oj3i_1","--visible":"_--visible_2oj3i_1","--animated":"_--animated_2oj3i_1"},iY=t=>{const{children:e,className:n,attributes:r}=t,{flyout:a,id:i,flyoutElRef:s,triggerElRef:o,handleTransitionEnd:c,triggerType:h,handleMouseEnter:b,handleMouseLeave:v,handleContentMouseDown:E,handleContentMouseUp:C,contentGap:M,contentClassName:T,contentAttributes:P,trapFocusMode:D,width:F}=Q_(),{styles:O,status:k,position:U}=a,[J,Y]=te.useState(!1);if(Ao(()=>{Y(!0)},[]),k==="idle"||!J)return null;const L=Ot(Rd.content,k==="visible"&&Rd["--visible"],["visible","hidden"].includes(k)&&Rd["--animated"],U&&Rd[`--position-${U}`],F==="trigger"&&Rd["--width-trigger"]),X=Ot(Rd.inner,n,T);let B;h==="hover"?B="tooltip":D==="dialog"?B="dialog":D==="selection-menu"?B="listbox":D==="action-menu"&&(B="menu");const u=te.createElement("div",{className:L,style:Object.assign(Object.assign({},O),{"--rs-flyout-gap":M}),ref:s,onTransitionEnd:c,onMouseEnter:h==="hover"?b:void 0,onMouseLeave:h==="hover"?v:void 0,onMouseDown:E,onTouchStart:E,onMouseUp:C,onTouchEnd:C},te.createElement("div",Object.assign({role:B},r,{id:i,"aria-modal":h==="click",style:P==null?void 0:P.style,className:X}),e)),d=Z_(o.current);return te.createElement(Kg,{targetRef:d===document.body?void 0:{current:d}},u)},Rf=t=>{const{active:e}=t;return typeof e=="boolean"?te.createElement(NN,Object.assign({},t)):te.createElement(KX,Object.assign({},t))};Rf.Trigger=ZX;Rf.Content=iY;const sY="_root_dn36s_1",oY={root:sY},UN=t=>{if(!t)return null;const e=mr("--rs-p",t);return{classNames:oY.root,variables:e}};Rf.Trigger;Rf.Content;const cY="_root_13n2x_1",lY="_icon_13n2x_1",uY="_content_13n2x_1",fY="_aligner_13n2x_1",jo={root:cY,icon:lY,content:uY,"--rounded-corners":"_--rounded-corners_13n2x_1","--size-small":"_--size-small_13n2x_1","--size-medium":"_--size-medium_13n2x_1","--size-large":"_--size-large_13n2x_1","--color-neutral":"_--color-neutral_13n2x_1","--selected":"_--selected_13n2x_1","--color-critical":"_--color-critical_13n2x_1","--color-primary":"_--color-primary_13n2x_1","--disabled":"_--disabled_13n2x_1",aligner:fY,"--rounded-corners-true--m":"_--rounded-corners-true--m_13n2x_1","--rounded-corners-false--m":"_--rounded-corners-false--m_13n2x_1","--size-small--m":"_--size-small--m_13n2x_1","--size-medium--m":"_--size-medium--m_13n2x_1","--size-large--m":"_--size-large--m_13n2x_1","--rounded-corners-true--l":"_--rounded-corners-true--l_13n2x_1","--rounded-corners-false--l":"_--rounded-corners-false--l_13n2x_1","--size-small--l":"_--size-small--l_13n2x_1","--size-medium--l":"_--size-medium--l_13n2x_1","--size-large--l":"_--size-large--l_13n2x_1","--rounded-corners-true--xl":"_--rounded-corners-true--xl_13n2x_1","--rounded-corners-false--xl":"_--rounded-corners-false--xl_13n2x_1","--size-small--xl":"_--size-small--xl_13n2x_1","--size-medium--xl":"_--size-medium--xl_13n2x_1","--size-large--xl":"_--size-large--xl_13n2x_1"},dY=t=>te.createElement(W_,Object.assign({},t,{side:t.side||"inline",className:[jo.aligner,t.className]})),hY=(t,e)=>{const{icon:n,startSlot:r,endSlot:a,children:i,color:s="primary",selected:o,disabled:c,onClick:h,href:b,size:v="medium",roundedCorners:E,className:C,attributes:M}=t,T=Ot(jo.root,C,Xt(jo,"--size",v),Xt(jo,"--rounded-corners",E),s&&jo[`--color-${s}`],o&&jo["--selected"],c&&jo["--disabled"]),P=Kf(v,F=>F==="large"?3:2),D=Kf(v,F=>F==="large"?5:4);return te.createElement($p,{disabled:c,className:T,attributes:Object.assign(Object.assign({},M),{"data-rs-aligner-target":!0}),onClick:h,href:b,ref:e},te.createElement(rt,{direction:"row",gap:P,align:"center"},n&&te.createElement(Fc,{svg:n,className:jo.icon,size:D}),!n&&r,i&&te.createElement(rt.Item,{grow:!0,className:jo.content},i),a))},pY=te.forwardRef(hY);pY.Aligner=dY;te.createContext(null);te.createContext({});const yY="_root_1j37c_1",mY="_inner_1j37c_1",I2={root:yY,"rs-reshaped-loader":"_rs-reshaped-loader_1j37c_1",inner:mY,"--color-inherit":"_--color-inherit_1j37c_1","--color-primary":"_--color-primary_1j37c_1","--color-positive":"_--color-positive_1j37c_1","--color-critical":"_--color-critical_1j37c_1","--size-small":"_--size-small_1j37c_1","--size-medium":"_--size-medium_1j37c_1","--size-small--m":"_--size-small--m_1j37c_1","--size-medium--m":"_--size-medium--m_1j37c_1","--size-small--l":"_--size-small--l_1j37c_1","--size-medium--l":"_--size-medium--l_1j37c_1","--size-small--xl":"_--size-small--xl_1j37c_1","--size-medium--xl":"_--size-medium--xl_1j37c_1"},bY=t=>{const{size:e="small",color:n="primary",className:r,attributes:a}=t,i=a==null?void 0:a["aria-label"],s=Ot(I2.root,r,Xt(I2,"--size",e),n&&I2[`--color-${n}`]);return te.createElement("span",Object.assign({},a,{role:"progressbar","aria-live":i?"assertive":void 0,"aria-label":i,className:s}),te.createElement("span",{className:I2.inner}))},gY="_root_1pr7i_1",xY="_loader_1pr7i_1",vY="_icon_1pr7i_1",wY="_text_1pr7i_1",EY="_group_1pr7i_1",_Y="_aligner_1pr7i_1",Mr={root:gY,loader:xY,icon:vY,"--icon-position-end":"_--icon-position-end_1pr7i_1",text:wY,"--loading":"_--loading_1pr7i_1","--elevated":"_--elevated_1pr7i_1","--icon-only":"_--icon-only_1pr7i_1","--rounded":"_--rounded_1pr7i_1","--size-small":"_--size-small_1pr7i_1","--size-medium":"_--size-medium_1pr7i_1","--size-large":"_--size-large_1pr7i_1","--size-xlarge":"_--size-xlarge_1pr7i_1","--full-width":"_--full-width_1pr7i_1","--variant-faded":"_--variant-faded_1pr7i_1","--color-critical":"_--color-critical_1pr7i_1","--color-inherit":"_--color-inherit_1pr7i_1","--color-neutral":"_--color-neutral_1pr7i_1","--color-positive":"_--color-positive_1pr7i_1","--color-primary":"_--color-primary_1pr7i_1","--variant-ghost":"_--variant-ghost_1pr7i_1","--variant-outline":"_--variant-outline_1pr7i_1","--variant-solid":"_--variant-solid_1pr7i_1","--color-black":"_--color-black_1pr7i_1","--color-white":"_--color-white_1pr7i_1","--highlighted":"_--highlighted_1pr7i_1","--disabled":"_--disabled_1pr7i_1",group:EY,aligner:_Y,"--size-small--m":"_--size-small--m_1pr7i_1","--size-medium--m":"_--size-medium--m_1pr7i_1","--size-large--m":"_--size-large--m_1pr7i_1","--size-xlarge--m":"_--size-xlarge--m_1pr7i_1","--full-width-true--m":"_--full-width-true--m_1pr7i_1","--full-width-false--m":"_--full-width-false--m_1pr7i_1","--size-small--l":"_--size-small--l_1pr7i_1","--size-medium--l":"_--size-medium--l_1pr7i_1","--size-large--l":"_--size-large--l_1pr7i_1","--size-xlarge--l":"_--size-xlarge--l_1pr7i_1","--full-width-true--l":"_--full-width-true--l_1pr7i_1","--full-width-false--l":"_--full-width-false--l_1pr7i_1","--size-small--xl":"_--size-small--xl_1pr7i_1","--size-medium--xl":"_--size-medium--xl_1pr7i_1","--size-large--xl":"_--size-large--xl_1pr7i_1","--size-xlarge--xl":"_--size-xlarge--xl_1pr7i_1","--full-width-true--xl":"_--full-width-true--xl_1pr7i_1","--full-width-false--xl":"_--full-width-false--xl_1pr7i_1"},AY=t=>{const{children:e,className:n,attributes:r}=t,a=Ot(Mr.group,n);return te.createElement("div",Object.assign({},r,{className:a,role:"group"}),e)},CY=t=>te.createElement(W_,Object.assign({},t,{side:t.side||t.position,className:[Mr.aligner,t.className]})),SY=(t,e)=>{const{variant:n="solid",color:r="neutral",elevated:a,highlighted:i,fullWidth:s,loading:o,disabled:c,type:h,href:b,size:v="medium",className:E,children:C,rounded:M,attributes:T,onClick:P,icon:D,endIcon:F}=t,O=(D||F)&&!C,k=Ot(Mr.root,E,r&&Mr[`--color-${r}`],n&&Mr[`--variant-${n}`],Xt(Mr,"--size",v),Xt(Mr,"--full-width",s),a&&n!=="ghost"&&Mr["--elevated"],M&&Mr["--rounded"],c&&Mr["--disabled"],o&&Mr["--loading"],i&&Mr["--highlighted"],O&&Mr["--icon-only"]),U=J=>{if(!(J==="start"&&D||J==="end"&&F))return null;const B=Ot(Mr.icon,J==="end"&&Mr["--icon-position-end"]),u=Kf(v,d=>d==="large"?5:d==="xlarge"?6:4);return te.createElement(Fc,{className:B,svg:J==="start"?D:F,size:u,autoWidth:!0})};return te.createElement($p,{disabled:c||o,className:k,attributes:Object.assign(Object.assign({},T),{"data-rs-aligner-target":!0}),type:h,onClick:P,href:b,ref:e},o&&te.createElement("div",{className:Mr.loader},te.createElement(bY,{size:"small",color:"inherit"})),U("start"),C&&te.createElement("span",{className:Mr.text},C),U("end"))},Dn=te.forwardRef(SY);Dn.Group=AY;Dn.Aligner=CY;const TY="_root_pscqv_1",F1={root:TY,"--color-primary":"_--color-primary_pscqv_1","--color-critical":"_--color-critical_pscqv_1","--color-positive":"_--color-positive_pscqv_1","--color-inherit":"_--color-inherit_pscqv_1","--variant-plain":"_--variant-plain_pscqv_1","--disabled":"_--disabled_pscqv_1","--variant-underline":"_--variant-underline_pscqv_1","--with-icon":"_--with-icon_pscqv_1"},BY=(t,e)=>{const{icon:n,disabled:r,href:a,color:i="primary",variant:s="underline",className:o,children:c,attributes:h,type:b,onClick:v}=t,E=Ot(F1.root,o,r&&F1["--disabled"],s&&F1[`--variant-${s}`],i&&F1[`--color-${i}`],n&&F1["--with-icon"]);return te.createElement($p,{href:a,disabled:r,className:E,attributes:h,type:b,onClick:v,ref:e},n&&te.createElement(Fc,{svg:n}),c)};te.forwardRef(BY);const MY="_root_1uhu3_1",FY="_content_1uhu3_1",Nd={root:MY,content:FY,"--selected":"_--selected_1uhu3_1","--elevated":"_--elevated_1uhu3_1","--actionable":"_--actionable_1uhu3_1"},DY=(t,e)=>{const{padding:n=4}=t,{selected:r,elevated:a,bleed:i,height:s,onClick:o,href:c,children:h,className:b,attributes:v,as:E="div"}=t,C=!!c||!!o,M=xN("medium"),T=vN(i),P=UN(n),D=V_(s),F=Ot(Nd.root,M==null?void 0:M.classNames,T==null?void 0:T.classNames,P==null?void 0:P.classNames,D==null?void 0:D.classNames,C&&Nd["--actionable"],a&&Nd["--elevated"],r&&Nd["--selected"],b),O=Object.assign(Object.assign(Object.assign(Object.assign({},v==null?void 0:v.style),T==null?void 0:T.variables),P==null?void 0:P.variables),D==null?void 0:D.variables);return C?te.createElement($p,{className:F,attributes:Object.assign(Object.assign({},v),{style:O}),href:c,as:E,onClick:o,ref:e},te.createElement("span",{className:Nd.content},h)):te.createElement(E,Object.assign({},v,{onClick:o,href:c,ref:e,className:F,style:O}),te.createElement("span",{className:Nd.content},h))},X_=te.forwardRef(DY);var FM;(function(t){t.back="back",t.forward="forward"})(FM||(FM={}));const kY="_root_1e26k_1",IY={root:kY},OY=t=>{const{name:e,value:n,type:r,onChange:a,onFocus:i,onBlur:s,checked:o,defaultChecked:c,disabled:h,className:b,attributes:v}=t,E=Ot(IY.root,b);return te.createElement("input",Object.assign({},v,{className:E,type:r,name:e,value:n,checked:o,defaultChecked:c,disabled:h,onChange:a,onFocus:i||(v==null?void 0:v.onFocus),onBlur:s||(v==null?void 0:v.onBlur)}))};te.createContext(null);const PY="_root_2d6rt_1",RY={root:PY},NY=t=>{const{children:e,padding:n=4,width:r,className:a,attributes:i}=t,s=Ot(RY.root,a);return te.createElement(rt,{attributes:i,className:s,paddingInline:n,width:r,maxWidth:"100%"},e)},DM=t=>{const[e,n]=te.useState(t||!1),r=te.useCallback(()=>{n(!0)},[]),a=te.useCallback(()=>{n(!1)},[]),i=te.useCallback(()=>{n(s=>!s)},[]);return{active:e,activate:r,deactivate:a,toggle:i}},$Y=(()=>{let t;return()=>{if(t)return t;const e=document.createElement("div");return e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),t=e.getBoundingClientRect().width-e.clientWidth,document.body.removeChild(e),t}})(),LY=()=>{const[t,e]=te.useState(!1),n=te.useRef(),r=te.useRef(!1),a=te.useCallback(()=>{const{body:s}=document,o=s.getBoundingClientRect();if(r.current=o.left+o.right{document.body.style.overflow=n.current||"",r.current&&(document.body.style.paddingRight=""),e(!1)},[e,r,n]);return{scrollLocked:t,lockScroll:a,unlockScroll:i}},UY="_root_1x20z_1",jY="_wrapper_1x20z_1",HY="_inner_1x20z_1",zY="_content_1x20z_1",$d={root:UY,wrapper:jY,inner:HY,content:zY,"--visible":"_--visible_1x20z_1","--transparent":"_--transparent_1x20z_1"},GY=t=>{const{active:e,children:n,transparent:r,onClose:a,className:i,attributes:s}=t,[o,c]=te.useState(!1),h=te.useRef(null),b=te.useRef(!1),v=te.useRef(null),{lockScroll:E,unlockScroll:C}=LY(),{active:M,activate:T,deactivate:P}=DM(e||!1),{active:D,activate:F,deactivate:O}=DM(e||!1),k=MN(e,h),U=Ot($d.root,D&&$d["--visible"],r&&$d["--transparent"],i),J=p=>{if(!h.current)return;const l=h.current.firstChild;if(l)return l.contains(p)},Y=()=>{h.current&&(v.current=bx(h.current))},L=()=>{v.current&&(v.current(),v.current=null)},X=te.useCallback(()=>{!D||!k()||a&&a()},[D,k]),B=p=>{b.current=!J(p.target)},u=p=>{const l=!J(p.target);b.current&&l&&!r&&X()},d=p=>{p.propertyName!=="opacity"||p.target!==p.currentTarget||D||(r||C(),P())};return kN({Escape:X},[X]),te.useEffect(()=>{e&&!M&&T(),!e&&M&&O()},[e,T,O,M]),te.useEffect(()=>{M&&(r||E(),mx(()=>F()))},[M,F,E,r]),te.useEffect(()=>{if(M)return Y(),()=>L()},[M]),te.useEffect(()=>()=>{r||C()},[C,r]),Ao(()=>{c(!0)},[]),!M||!o?null:te.createElement(Kg,null,te.createElement(Kg.Scope,null,p=>te.createElement("div",Object.assign({},s,{ref:p,role:"button",tabIndex:-1,className:U,onMouseDown:B,onMouseUp:u,onTransitionEnd:d}),te.createElement("div",{className:$d.wrapper},te.createElement("div",{className:$d.inner},te.createElement("div",{className:$d.content,ref:h},typeof n=="function"?n({active:D}):n))))))},VY="_root_cz0if_1",N4={root:VY,"--position-center":"_--position-center_cz0if_1","--position-bottom":"_--position-bottom_cz0if_1","--position-start":"_--position-start_cz0if_1","--position-end":"_--position-end_cz0if_1","--active":"_--active_cz0if_1","--position-center--m":"_--position-center--m_cz0if_1","--position-bottom--m":"_--position-bottom--m_cz0if_1","--position-start--m":"_--position-start--m_cz0if_1","--position-end--m":"_--position-end--m_cz0if_1","--position-center--l":"_--position-center--l_cz0if_1","--position-bottom--l":"_--position-bottom--l_cz0if_1","--position-start--l":"_--position-start--l_cz0if_1","--position-end--l":"_--position-end--l_cz0if_1","--position-center--xl":"_--position-center--xl_cz0if_1","--position-bottom--xl":"_--position-bottom--xl_cz0if_1","--position-start--xl":"_--position-start--xl_cz0if_1","--position-end--xl":"_--position-end--xl_cz0if_1"},jN=te.createContext({id:"",titleMounted:!1,setTitleMounted:()=>{},subtitleMounted:!1,setSubtitleMounted:()=>{}}),HN=()=>te.useContext(jN),qY=t=>{const{children:e}=t,{id:n,setTitleMounted:r}=HN();return te.useEffect(()=>(r(!0),()=>r(!1)),[r]),te.createElement(Fn,{variant:"featured-3",weight:"bold",attributes:{id:`${n}-title`}},e)},WY=t=>{const{children:e}=t,{id:n,setSubtitleMounted:r}=HN();return te.useEffect(()=>(r(!0),()=>r(!1)),[r]),te.createElement(Fn,{variant:"body-3",color:"neutral-faded",attributes:{id:`${n}-subtitle`}},e)},Y_=t=>{const{children:e,onClose:n,active:r,size:a,padding:i=4,position:s="center",transparentOverlay:o,className:c,attributes:h}=t,b=Np(),[v,E]=te.useState(!1),[C,M]=te.useState(!1),T=UN(i),P=te.useMemo(()=>({titleMounted:v,setTitleMounted:E,subtitleMounted:C,setSubtitleMounted:M,id:b}),[b,C,v]);return te.createElement(GY,{onClose:n,active:r,transparent:o},({active:D})=>{const F=Ot(N4.root,c,T==null?void 0:T.classNames,D&&N4["--active"],Xt(N4,"--position",s));return te.createElement(jN.Provider,{value:P},te.createElement("div",Object.assign({},h,{style:Object.assign(Object.assign({},T==null?void 0:T.variables),mr("--rs-modal-size",a)),"aria-labelledby":v?`${b}-title`:void 0,"aria-describedby":C?`${b}-subtitle`:void 0,className:F,"aria-modal":"true",role:"dialog"}),e))})};Y_.Title=qY;Y_.Subtitle=WY;te.createContext(null);const kM={short:4e3,long:8e3},Ny=["top-start","top","top-end","bottom-start","bottom","bottom-end"],KY=Ny.reduce((t,e)=>Object.assign({[e]:[]},t),{}),zN={queues:KY,show:()=>{},hide:()=>{},remove:()=>{},add:()=>""},gx=te.createContext(zN),eA=()=>{const{add:t,hide:e}=te.useContext(gx);return te.useMemo(()=>({show:t,hide:e}),[t,e])},ZY="_container_1g6nd_1",QY="_wrapper_1g6nd_1",JY="_region_1g6nd_1",co={container:ZY,"container--visible":"_container--visible_1g6nd_1",wrapper:QY,"container--index-0":"_container--index-0_1g6nd_1","container--index-1":"_container--index-1_1g6nd_1","container--index-2":"_container--index-2_1g6nd_1","container--index-overflow":"_container--index-overflow_1g6nd_1",region:JY,"region--position-top":"_region--position-top_1g6nd_1","region--position-top-start":"_region--position-top-start_1g6nd_1","region--position-top-end":"_region--position-top-end_1g6nd_1","region--position-bottom":"_region--position-bottom_1g6nd_1","region--position-bottom-start":"_region--position-bottom-start_1g6nd_1","region--position-bottom-end":"_region--position-bottom-end_1g6nd_1"},XY=t=>{const{size:e="small",text:n,children:r,color:a="inverted",icon:i,title:s,actionsSlot:o,startSlot:c,collapsed:h,attributes:b}=t;let v=a==="inverted"||a==="neutral"?"elevation-overlay":a;a==="neutral"&&(v=h?"neutral":"elevation-overlay");const E=a==="neutral"?"neutral-faded":"transparent",C=e==="small"?"span":"div",M=e==="large";let T=[];o&&(T=Array.isArray(o)?o:[o]);const P=(s||n)&&te.createElement(te.Fragment,null,s&&te.createElement(Fn,{variant:"body-3",weight:"bold",as:C},s," "),te.createElement(Fn,{variant:"body-3",as:C},n)),D=te.createElement(rt,{backgroundColor:v,borderColor:E,padding:4,borderRadius:"medium",animated:!0,direction:"row",gap:3,align:M?"start":"center",className:co.toast,attributes:b},i&&te.createElement(Fc,{size:5,svg:i,className:co.icon}),c&&!i&&te.createElement(rt.Item,null,c),te.createElement(rt.Item,{grow:!0},te.createElement(rt,{direction:M?"column":"row",align:M?"start":"center",gap:3},te.createElement(rt.Item,{grow:!0},P&&r||e!=="small"?te.createElement(rt,{gap:.5},P,r&&te.createElement(rt,{gap:3},r)):P||r),T.length&&te.createElement(rt,{direction:"row",align:"center",gap:2},T.map((F,O)=>{const k=e==="large"?O===0:O===T.length-1,J={variant:k?"solid":"ghost",size:"small",color:k?a==="neutral"||a==="inverted"?"neutral":"white":"inherit",elevated:a!=="neutral"};return F.type===Dn?te.createElement(Dn,Object.assign({},J,F.props,{key:O})):F})))));return a==="inverted"?te.createElement(Mb,{colorMode:"inverted"},D):D},YY=t=>{const{toastProps:e,id:n,status:r,inspected:a,index:i}=t,{timeout:s="short"}=e,{show:o,hide:c,remove:h}=te.useContext(gx),[b,v]=te.useState(),E=te.useRef(),C=te.useRef(!1),M=te.useRef(null),T=te.useRef(null),P=r==="entered",D=Ot(co.container,P&&co["container--visible"],i===0&&co[`container--index-${i}`],!a&&(i===1||i===2)&&co[`container--index-${i}`],!a&&i>=3&&co["container--index-overflow"]),F=te.useCallback(()=>{E.current&&clearTimeout(E.current)},[]),O=te.useCallback(()=>{F();const U=typeof s=="string"?kM[s]:s;s!==0&&(E.current=setTimeout(()=>{c(n)},U??kM.short))},[c,n,s,F]),k=U=>{U.propertyName==="height"&&(P||h(n))};return te.useEffect(()=>{P&&(a?F():O())},[a,O,F,P]),te.useEffect(()=>{T.current&&v(T.current.clientHeight),o(n),O()},[o,n,O]),te.useEffect(()=>{T.current&&(P?M.current=bx(T.current,{includeTrigger:!0,mode:"content-menu"}):M.current&&SN()&&(M.current(),M.current=null))},[P]),te.useEffect(()=>{if(!P||i>0)return;const U=()=>{C.current=!0,mx(()=>{C.current=!1}),T.current&&v(T.current.clientHeight)};return window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[P,i]),te.createElement("li",{className:D,style:{height:r==="entered"?`calc(${b}px + var(--rs-unit-x2) + 2px)`:0,transitionDuration:C.current?"0s":void 0},onTransitionEnd:k,onFocus:F,onBlur:O},te.createElement("span",{className:co.wrapper},te.createElement(XY,Object.assign({},e,{collapsed:i>0&&!a,attributes:{ref:T}}))))},eee=t=>{const{position:e}=t,{queues:n,options:r}=te.useContext(gx),[a,i]=te.useState(!1),s=te.useRef(!1),o=te.useRef(null),c=n[e],{width:h,expanded:b}=(r==null?void 0:r[e])||{},v=Ot(co.region,co[`region--position-${e}`]),E=c.filter(F=>F.status==="entered").length;let C=0;const M=()=>{s.current=!0},T=F=>{let O=F.target,k=!1;for(;O&&O!==o.current&&!k;)k=O.matches(TN),O=O.parentElement;k||i(U=>!U),s.current=!1},P=()=>{s.current||i(!0)},D=()=>{s.current||i(!1)};return te.useEffect(()=>{c.length===0&&i(!1)},[c.length]),c.length?te.createElement("ul",{role:"region","aria-live":"polite",className:v,ref:o,onTouchStart:M,onClick:T,onMouseEnter:P,onMouseLeave:D,style:{width:h}},c.map((F,O)=>{const k=E-O+C-1;return F.status!=="entered"&&(C+=1),te.createElement(YY,Object.assign({key:F.id},F,{index:k,inspected:a||!!b}))})):null};var tee=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a`__rs-toast-${nee++}`,aee=(t,e)=>{let n;switch(e.type){case"add":const r=e.payload.toastProps||{},{position:a="bottom-end"}=r,i=tee(r,["position"]);return Object.assign(Object.assign({},t),{[a]:[...t[a],{id:e.payload.id,toastProps:i,status:"entering"}]});case"show":const{id:s}=e.payload;return n=Object.assign({},t),Ny.forEach(h=>{n[h]=n[h].map(b=>b.status!=="entering"?b:b.id===s?Object.assign(Object.assign({},b),{status:"entered"}):b)}),n;case"hide":const{id:o}=e.payload;return n=Object.assign({},t),Ny.forEach(h=>{n[h]=n[h].map(b=>b.id===o?Object.assign(Object.assign({},b),{status:"exiting"}):b)}),n;case"remove":const{id:c}=e.payload;return n=Object.assign({},t),Ny.forEach(h=>{n[h]=n[h].filter(b=>b.id!==c)}),n}},iee=t=>{const{children:e,options:n}=t,[r,a]=te.useReducer(aee,zN.queues),i=te.useCallback(b=>{const v=ree();return a({type:"add",payload:{toastProps:b,id:v}}),v},[]),s=te.useCallback(b=>{a({type:"show",payload:{id:b}})},[]),o=te.useCallback(b=>{a({type:"hide",payload:{id:b}})},[]),c=te.useCallback(b=>{a({type:"remove",payload:{id:b}})},[]),h=te.useMemo(()=>({queues:r,add:i,show:s,hide:o,remove:c,inspecting:!1,options:n}),[r,s,o,i,c,n]);return te.createElement(gx.Provider,{value:h},e,Ny.map(b=>te.createElement(eee,{position:b,key:b})))},see=()=>{te.useEffect(()=>{const t=n=>{n.metaKey||n.altKey||n.ctrlKey||document.documentElement.setAttribute(O7,"true")},e=()=>{document.documentElement.removeAttribute(O7)};return window.addEventListener("keydown",t),window.addEventListener("mousedown",e),()=>{window.removeEventListener("keydown",t),window.removeEventListener("mousedown",e)}},[])},oee="_root_a8lj9_1",cee={root:oee},lee=t=>{const{children:e,defaultRTL:n,defaultViewport:r="s",toastOptions:a}=t,i=LX(n);return see(),te.createElement(IN.Provider,{value:{rtl:i,defaultViewport:r}},te.createElement(NX,null,te.createElement(iee,{options:a},e)))},uee=t=>{const{theme:e,defaultTheme:n="reshaped",defaultColorMode:r,className:a}=t,i=Ot(cee.root,a);return te.createElement(eY,{defaultMode:r},te.createElement(Mb,{name:e,defaultName:n,className:i},te.createElement(lee,Object.assign({},t),t.children)))},fee=()=>te.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},te.createElement("path",{d:"M7 16L12 21L17 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),te.createElement("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})),dee="_root_155r3_1",hee="_input_155r3_1",pee="_slot_155r3_1",yee="_arrow_155r3_1",Ls={root:dee,input:hee,slot:pee,arrow:yee,"--size-medium":"_--size-medium_155r3_1","--size-large":"_--size-large_155r3_1","--size-xlarge":"_--size-xlarge_155r3_1","--variant-faded":"_--variant-faded_155r3_1","--variant-headless":"_--variant-headless_155r3_1","--status-error":"_--status-error_155r3_1","--placeholder":"_--placeholder_155r3_1","--disabled":"_--disabled_155r3_1","--size-medium--m":"_--size-medium--m_155r3_1","--size-large--m":"_--size-large--m_155r3_1","--size-xlarge--m":"_--size-xlarge--m_155r3_1","--size-medium--l":"_--size-medium--l_155r3_1","--size-large--l":"_--size-large--l_155r3_1","--size-xlarge--l":"_--size-xlarge--l_155r3_1","--size-medium--xl":"_--size-medium--xl_155r3_1","--size-large--xl":"_--size-large--xl_155r3_1","--size-xlarge--xl":"_--size-xlarge--xl_155r3_1"},mee=t=>{var e,n;const{onChange:r,onClick:a,onFocus:i,onBlur:s,name:o,value:c,defaultValue:h,placeholder:b,options:v,children:E,icon:C,startSlot:M,size:T="medium",variant:P="outline",className:D,attributes:F}=t,[O,k]=te.useState(c===void 0?!h:!c),U=_N(),J=Np(t.id),Y=((e=U==null?void 0:U.attributes)===null||e===void 0?void 0:e.id)||((n=t.inputAttributes)===null||n===void 0?void 0:n.id)||J,L=(U==null?void 0:U.disabled)||t.disabled,X=(U==null?void 0:U.hasError)||t.hasError,B=Object.assign(Object.assign({},t.inputAttributes),U==null?void 0:U.attributes),u=Ot(Ls.root,D,T&&Xt(Ls,"--size",T),X&&Ls["--status-error"],L&&Ls["--disabled"],O&&v&&Ls["--placeholder"],P&&Ls[`--variant-${P}`]),d=l=>{const y=l.target.value;c===void 0&&k(!y),r&&r({name:o,value:y,event:l})};te.useEffect(()=>{c!==void 0&&k(!c)},[c]);const p=(M||C)&&te.createElement("div",{className:Ls.slot},C?te.createElement(Fc,{size:Kf(T,l=>l==="large"?5:l==="xlarge"?6:4),svg:C}):M);return te.createElement("div",Object.assign({},F,{className:u}),v?te.createElement(te.Fragment,null,p,te.createElement("select",Object.assign({},B,{className:Ls.input,disabled:L,name:o,value:c,defaultValue:h,onChange:d,onFocus:i||(B==null?void 0:B.onFocus),onBlur:s||(B==null?void 0:B.onBlur),id:Y}),b&&te.createElement("option",{value:""},b),v.map(l=>te.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},l.label)))):te.createElement(te.Fragment,null,te.createElement($p,{className:Ls.input,disabled:L,onClick:a,attributes:Object.assign(Object.assign({},B),{onFocus:i||(B==null?void 0:B.onFocus),onBlur:s||(B==null?void 0:B.onBlur)})},p,E||(b?te.createElement(Fn,{color:"neutral-faded"},b):null)),te.createElement("input",{type:"hidden",value:c,name:o})),te.createElement("div",{className:Ls.arrow},te.createElement(Fc,{svg:fee,color:L?"disabled":"neutral-faded",size:Kf(T,l=>l==="large"||l==="xlarge"?5:4)})))},bee="_root_7e41r_1",gee="_bar_7e41r_1",xee="_input_7e41r_1",vee="_selection_7e41r_1",wee="_tooltip_7e41r_1",Eee="_thumb_7e41r_1",O2={root:bee,bar:gee,input:xee,selection:vee,tooltip:wee,thumb:Eee,"thumb--active":"_thumb--active_7e41r_1","--disabled":"_--disabled_7e41r_1"},_ee=(t,e)=>{const{name:n,value:r,disabled:a,active:i,position:s,max:o,min:c,onChange:h,onDragStart:b,renderValue:v}=t,E=te.useId(),C=Ot(O2.thumb,i&&O2["thumb--active"]),M=v?v({value:r}):r,T=P=>{h(+P.target.value)};return te.createElement(te.Fragment,null,te.createElement("input",{className:O2.input,type:"range",name:n,value:r,onChange:T,disabled:a,max:o,min:c,"aria-labelledby":E}),te.createElement("div",{ref:e,className:C,onMouseDown:b,onTouchStart:b,style:{insetInlineStart:`${s}%`},id:E,"aria-hidden":"true"},te.createElement(Mb,{className:O2.tooltip,colorMode:"inverted"},te.createElement(Fn,{variant:"caption-1",weight:"medium"},M))))};te.forwardRef(_ee);var Aee=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a{const e=te.useContext(GN),{id:n}=e,r=Aee(e,["id"]);return Object.assign(Object.assign({},r),{panelId:t!==void 0?`${n}-tabs-panel-${t}`:void 0,buttonId:t!==void 0?`${n}-tabs-button-${t}`:void 0})},See="_root_l28uv_1",Tee="_list_l28uv_1",Bee="_inner_l28uv_1",Mee="_listItem_l28uv_1",Fee="_button_l28uv_1",Dee="_buttonContent_l28uv_1",kee="_icon_l28uv_1",Iee="_radio_l28uv_1",Oee="_selector_l28uv_1",Pee="_next_l28uv_1",Ree="_prev_l28uv_1",Nee="_panel_l28uv_1",$ee="_item_l28uv_1",Ld={root:See,list:Tee,inner:Bee,listItem:Mee,button:Fee,buttonContent:Dee,icon:kee,radio:Iee,"--item-active":"_--item-active_l28uv_1",selector:Oee,"--selector-hidden":"_--selector-hidden_l28uv_1","--selector-animated":"_--selector-animated_l28uv_1",next:Pee,prev:Ree,panel:Nee,"--panel-hidden":"_--panel-hidden_l28uv_1","--direction-row":"_--direction-row_l28uv_1","--direction-column":"_--direction-column_l28uv_1",item:$ee,"--variant-borderless":"_--variant-borderless_l28uv_1","--variant-pills":"_--variant-pills_l28uv_1","--variant-pills-elevated":"_--variant-pills-elevated_l28uv_1","--size-medium":"_--size-medium_l28uv_1","--size-large":"_--size-large_l28uv_1","--item-width-equal":"_--item-width-equal_l28uv_1","--cut-off-end":"_--cut-off-end_l28uv_1","--cut-off-start":"_--cut-off-start_l28uv_1","--cut-off-both":"_--cut-off-both_l28uv_1"},Lee=(t,e)=>{const{value:n,children:r,icon:a,href:i,attributes:s}=t,{onChange:o,panelId:c,name:h,size:b,value:v,selection:E,elActiveRef:C,elPrevActiveRef:M,elScrollableRef:T}=Cee(n),P=te.useRef(null),D=v===n,F=D&&E.status==="idle",O=Ot(Ld.item,F&&Ld["--item-active"]),k=!!h,U={role:"tab",tabIndex:D?0:-1,"aria-selected":D},J=te.useCallback(()=>{if(!("current"in P))throw new Error("Reshaped, Tabs: TabItem is expecting an object ref format but received a function ref");M.current=C.current,C.current=P.current},[C,M]),Y=()=>{var L,X,B;if(i&&!o)return;const u=T.current,d=(L=P.current)===null||L===void 0?void 0:L.parentElement,p=(X=C.current)===null||X===void 0?void 0:X.parentElement;if(J(),o&&o({value:n,name:h}),!u||!d||!p||u.scrollWidth===u.clientWidth)return;const l=d.offsetLeft.5)&&((B=P.current)===null||B===void 0||B.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}))};return te.useEffect(()=>{D&&J()},[D,J]),te.createElement("div",Object.assign({},s,{className:O,ref:P,role:"presentation"}),te.createElement($p,{ref:e,href:i,insetFocus:!0,onClick:h?void 0:Y,className:Ld.button,as:h?"label":void 0,attributes:Object.assign(Object.assign({},!k&&U),{"aria-controls":c})},h&&te.createElement(OY,{type:"radio",name:h,value:n,checked:F,onChange:Y,className:Ld.radio}),te.createElement("span",{className:Ld.buttonContent},a&&te.createElement(Fc,{svg:a,className:Ld.icon,size:4}),r&&te.createElement(Fn,{variant:b==="large"?"body-2":"body-3"},r))))};te.forwardRef(Lee);const Uee="_root_kygcp_1",jee={root:Uee},Hee=t=>{const{id:e,text:n,children:r,onOpen:a,onClose:i,position:s="bottom",active:o}=t;return te.createElement(Rf,{id:e,active:o,position:s,onOpen:a,onClose:i,triggerType:"hover"},te.createElement(Rf.Trigger,null,r),te.createElement(Rf.Content,null,te.createElement(Mb,{colorMode:"inverted"},te.createElement(Fn,{variant:"caption-1",className:jee.root},n))))};var zee=function(e){return Gee(e)&&!Vee(e)};function Gee(t){return!!t&&typeof t=="object"}function Vee(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Kee(t)}var qee=typeof Symbol=="function"&&Symbol.for,Wee=qee?Symbol.for("react.element"):60103;function Kee(t){return t.$$typeof===Wee}function Zee(t){return Array.isArray(t)?[]:{}}function Zg(t,e){return e.clone!==!1&&e.isMergeableObject(t)?bm(Zee(t),t,e):t}function Qee(t,e,n){return t.concat(e).map(function(r){return Zg(r,n)})}function Jee(t,e,n){var r={};return n.isMergeableObject(t)&&Object.keys(t).forEach(function(a){r[a]=Zg(t[a],n)}),Object.keys(e).forEach(function(a){!n.isMergeableObject(e[a])||!t[a]?r[a]=Zg(e[a],n):r[a]=bm(t[a],e[a],n)}),r}function bm(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||Qee,n.isMergeableObject=n.isMergeableObject||zee;var r=Array.isArray(e),a=Array.isArray(t),i=r===a;return i?r?n.arrayMerge(t,e,n):Jee(t,e,n):Zg(e,n)}bm.all=function(e,n){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,a){return bm(r,a,n)},{})};var N7=bm,P2={},Xee=typeof P2=="object"&&P2&&P2.Object===Object&&P2;const VN=Xee;var Yee=typeof self=="object"&&self&&self.Object===Object&&self,ete=VN||Yee||Function("return this")();const ko=ete;var tte=ko.Symbol;const uu=tte;var qN=Object.prototype,nte=qN.hasOwnProperty,rte=qN.toString,D1=uu?uu.toStringTag:void 0;function ate(t){var e=nte.call(t,D1),n=t[D1];try{t[D1]=void 0;var r=!0}catch{}var a=rte.call(t);return r&&(e?t[D1]=n:delete t[D1]),a}var ite=Object.prototype,ste=ite.toString;function ote(t){return ste.call(t)}var cte="[object Null]",lte="[object Undefined]",IM=uu?uu.toStringTag:void 0;function hd(t){return t==null?t===void 0?lte:cte:IM&&IM in Object(t)?ate(t):ote(t)}function WN(t,e){return function(n){return t(e(n))}}var ute=WN(Object.getPrototypeOf,Object);const tA=ute;function pd(t){return t!=null&&typeof t=="object"}var fte="[object Object]",dte=Function.prototype,hte=Object.prototype,KN=dte.toString,pte=hte.hasOwnProperty,yte=KN.call(Object);function OM(t){if(!pd(t)||hd(t)!=fte)return!1;var e=tA(t);if(e===null)return!0;var n=pte.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&KN.call(n)==yte}var PM=Array.isArray,RM=Object.keys,mte=Object.prototype.hasOwnProperty,bte=typeof Element<"u";function $7(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=PM(t),r=PM(e),a,i,s;if(n&&r){if(i=t.length,i!=e.length)return!1;for(a=i;a--!==0;)if(!$7(t[a],e[a]))return!1;return!0}if(n!=r)return!1;var o=t instanceof Date,c=e instanceof Date;if(o!=c)return!1;if(o&&c)return t.getTime()==e.getTime();var h=t instanceof RegExp,b=e instanceof RegExp;if(h!=b)return!1;if(h&&b)return t.toString()==e.toString();var v=RM(t);if(i=v.length,i!==RM(e).length)return!1;for(a=i;a--!==0;)if(!mte.call(e,v[a]))return!1;if(bte&&t instanceof Element&&e instanceof Element)return t===e;for(a=i;a--!==0;)if(s=v[a],!(s==="_owner"&&t.$$typeof)&&!$7(t[s],e[s]))return!1;return!0}return t!==t&&e!==e}var gte=function(e,n){try{return $7(e,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const ml=ud(gte);var xte=!0;function ZN(t,e){if(!xte){if(t)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function vte(){this.__data__=[],this.size=0}function QN(t,e){return t===e||t!==t&&e!==e}function xx(t,e){for(var n=t.length;n--;)if(QN(t[n][0],e))return n;return-1}var wte=Array.prototype,Ete=wte.splice;function _te(t){var e=this.__data__,n=xx(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ete.call(e,n,1),--this.size,!0}function Ate(t){var e=this.__data__,n=xx(e,t);return n<0?void 0:e[n][1]}function Cte(t){return xx(this.__data__,t)>-1}function Ste(t,e){var n=this.__data__,r=xx(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function jc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=Ine}var One="[object Arguments]",Pne="[object Array]",Rne="[object Boolean]",Nne="[object Date]",$ne="[object Error]",Lne="[object Function]",Une="[object Map]",jne="[object Number]",Hne="[object Object]",zne="[object RegExp]",Gne="[object Set]",Vne="[object String]",qne="[object WeakMap]",Wne="[object ArrayBuffer]",Kne="[object DataView]",Zne="[object Float32Array]",Qne="[object Float64Array]",Jne="[object Int8Array]",Xne="[object Int16Array]",Yne="[object Int32Array]",ere="[object Uint8Array]",tre="[object Uint8ClampedArray]",nre="[object Uint16Array]",rre="[object Uint32Array]",dn={};dn[Zne]=dn[Qne]=dn[Jne]=dn[Xne]=dn[Yne]=dn[ere]=dn[tre]=dn[nre]=dn[rre]=!0;dn[One]=dn[Pne]=dn[Wne]=dn[Rne]=dn[Kne]=dn[Nne]=dn[$ne]=dn[Lne]=dn[Une]=dn[jne]=dn[Hne]=dn[zne]=dn[Gne]=dn[Vne]=dn[qne]=!1;function are(t){return pd(t)&&r$(t.length)&&!!dn[hd(t)]}function nA(t){return function(e){return t(e)}}var a$=typeof ri=="object"&&ri&&!ri.nodeType&&ri,$y=a$&&typeof ai=="object"&&ai&&!ai.nodeType&&ai,ire=$y&&$y.exports===a$,L4=ire&&VN.process,sre=function(){try{var t=$y&&$y.require&&$y.require("util").types;return t||L4&&L4.binding&&L4.binding("util")}catch{}}();const ep=sre;var HM=ep&&ep.isTypedArray,ore=HM?nA(HM):are;const cre=ore;var lre=Object.prototype,ure=lre.hasOwnProperty;function i$(t,e){var n=Db(t),r=!n&&Ane(t),a=!n&&!r&&n$(t),i=!n&&!r&&!a&&cre(t),s=n||r||a||i,o=s?xne(t.length,String):[],c=o.length;for(var h in t)(e||ure.call(t,h))&&!(s&&(h=="length"||a&&(h=="offset"||h=="parent")||i&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||kne(h,c)))&&o.push(h);return o}var fre=Object.prototype;function rA(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||fre;return t===n}var dre=WN(Object.keys,Object);const hre=dre;var pre=Object.prototype,yre=pre.hasOwnProperty;function mre(t){if(!rA(t))return hre(t);var e=[];for(var n in Object(t))yre.call(t,n)&&n!="constructor"&&e.push(n);return e}function s$(t){return t!=null&&r$(t.length)&&!JN(t)}function aA(t){return s$(t)?i$(t):mre(t)}function bre(t,e){return t&&wx(e,aA(e),t)}function gre(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var xre=Object.prototype,vre=xre.hasOwnProperty;function wre(t){if(!Fb(t))return gre(t);var e=rA(t),n=[];for(var r in t)r=="constructor"&&(e||!vre.call(t,r))||n.push(r);return n}function iA(t){return s$(t)?i$(t,!0):wre(t)}function Ere(t,e){return t&&wx(e,iA(e),t)}var o$=typeof ri=="object"&&ri&&!ri.nodeType&&ri,zM=o$&&typeof ai=="object"&&ai&&!ai.nodeType&&ai,_re=zM&&zM.exports===o$,GM=_re?ko.Buffer:void 0,VM=GM?GM.allocUnsafe:void 0;function Are(t,e){if(e)return t.slice();var n=t.length,r=VM?VM(n):new t.constructor(n);return t.copy(r),r}function c$(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n=0)&&(n[a]=t[a]);return n}function uF(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var kx=ve.createContext(void 0);kx.displayName="FormikContext";var Pie=kx.Provider,Rie=kx.Consumer;function _$(){var t=ve.useContext(kx);return t||ZN(!1),t}var fF=function(e){return Array.isArray(e)&&e.length===0},fa=function(e){return typeof e=="function"},kb=function(e){return e!==null&&typeof e=="object"},Nie=function(e){return String(Math.floor(Number(e)))===e},U4=function(e){return Object.prototype.toString.call(e)==="[object String]"},A$=function(e){return ve.Children.count(e)===0},j4=function(e){return kb(e)&&fa(e.then)};function dr(t,e,n,r){r===void 0&&(r=0);for(var a=g$(e);t&&r=0?[]:{}}}return(i===0?t:a)[s[i]]===n?t:(n===void 0?delete a[s[i]]:a[s[i]]=n,i===0&&n===void 0&&delete r[s[i]],r)}function C$(t,e,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var a=0,i=Object.keys(t);a0?ee.map(function(me){return B(me,dr(q,me))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ie).then(function(me){return me.reduce(function(be,pe,Me){return pe==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||pe&&(be=go(be,ee[Me],pe)),be},{})})},[B]),d=ve.useCallback(function(q){return Promise.all([u(q),E.validationSchema?X(q):{},E.validate?L(q):{}]).then(function(ee){var ie=ee[0],me=ee[1],be=ee[2],pe=N7.all([ie,me,be],{arrayMerge:jie});return pe})},[E.validate,E.validationSchema,u,L,X]),p=hi(function(q){return q===void 0&&(q=J.values),Y({type:"SET_ISVALIDATING",payload:!0}),d(q).then(function(ee){return D.current&&(Y({type:"SET_ISVALIDATING",payload:!1}),Y({type:"SET_ERRORS",payload:ee})),ee})});ve.useEffect(function(){s&&D.current===!0&&ml(C.current,E.initialValues)&&p(C.current)},[s,p]);var l=ve.useCallback(function(q){var ee=q&&q.values?q.values:C.current,ie=q&&q.errors?q.errors:M.current?M.current:E.initialErrors||{},me=q&&q.touched?q.touched:T.current?T.current:E.initialTouched||{},be=q&&q.status?q.status:P.current?P.current:E.initialStatus;C.current=ee,M.current=ie,T.current=me,P.current=be;var pe=function(){Y({type:"RESET_FORM",payload:{isSubmitting:!!q&&!!q.isSubmitting,errors:ie,touched:me,status:be,values:ee,isValidating:!!q&&!!q.isValidating,submitCount:q&&q.submitCount&&typeof q.submitCount=="number"?q.submitCount:0}})};if(E.onReset){var Me=E.onReset(J.values,j);j4(Me)?Me.then(pe):pe()}else pe()},[E.initialErrors,E.initialStatus,E.initialTouched,E.onReset]);ve.useEffect(function(){D.current===!0&&!ml(C.current,E.initialValues)&&h&&(C.current=E.initialValues,l(),s&&p(C.current))},[h,E.initialValues,l,s,p]),ve.useEffect(function(){h&&D.current===!0&&!ml(M.current,E.initialErrors)&&(M.current=E.initialErrors||Iu,Y({type:"SET_ERRORS",payload:E.initialErrors||Iu}))},[h,E.initialErrors]),ve.useEffect(function(){h&&D.current===!0&&!ml(T.current,E.initialTouched)&&(T.current=E.initialTouched||R2,Y({type:"SET_TOUCHED",payload:E.initialTouched||R2}))},[h,E.initialTouched]),ve.useEffect(function(){h&&D.current===!0&&!ml(P.current,E.initialStatus)&&(P.current=E.initialStatus,Y({type:"SET_STATUS",payload:E.initialStatus}))},[h,E.initialStatus,E.initialTouched]);var y=hi(function(q){if(F.current[q]&&fa(F.current[q].validate)){var ee=dr(J.values,q),ie=F.current[q].validate(ee);return j4(ie)?(Y({type:"SET_ISVALIDATING",payload:!0}),ie.then(function(me){return me}).then(function(me){Y({type:"SET_FIELD_ERROR",payload:{field:q,value:me}}),Y({type:"SET_ISVALIDATING",payload:!1})})):(Y({type:"SET_FIELD_ERROR",payload:{field:q,value:ie}}),Promise.resolve(ie))}else if(E.validationSchema)return Y({type:"SET_ISVALIDATING",payload:!0}),X(J.values,q).then(function(me){return me}).then(function(me){Y({type:"SET_FIELD_ERROR",payload:{field:q,value:dr(me,q)}}),Y({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),g=ve.useCallback(function(q,ee){var ie=ee.validate;F.current[q]={validate:ie}},[]),w=ve.useCallback(function(q){delete F.current[q]},[]),x=hi(function(q,ee){Y({type:"SET_TOUCHED",payload:q});var ie=ee===void 0?a:ee;return ie?p(J.values):Promise.resolve()}),f=ve.useCallback(function(q){Y({type:"SET_ERRORS",payload:q})},[]),m=hi(function(q,ee){var ie=fa(q)?q(J.values):q;Y({type:"SET_VALUES",payload:ie});var me=ee===void 0?n:ee;return me?p(ie):Promise.resolve()}),A=ve.useCallback(function(q,ee){Y({type:"SET_FIELD_ERROR",payload:{field:q,value:ee}})},[]),_=hi(function(q,ee,ie){Y({type:"SET_FIELD_VALUE",payload:{field:q,value:ee}});var me=ie===void 0?n:ie;return me?p(go(J.values,q,ee)):Promise.resolve()}),S=ve.useCallback(function(q,ee){var ie=ee,me=q,be;if(!U4(q)){q.persist&&q.persist();var pe=q.target?q.target:q.currentTarget,Me=pe.type,Te=pe.name,Ee=pe.id,Qe=pe.value,Ne=pe.checked,Oe=pe.outerHTML,at=pe.options,qe=pe.multiple;ie=ee||Te||Ee,me=/number|range/.test(Me)?(be=parseFloat(Qe),isNaN(be)?"":be):/checkbox/.test(Me)?zie(dr(J.values,ie),Ne,Qe):at&&qe?Hie(at):Qe}ie&&_(ie,me)},[_,J.values]),$=hi(function(q){if(U4(q))return function(ee){return S(ee,q)};S(q)}),V=hi(function(q,ee,ie){ee===void 0&&(ee=!0),Y({type:"SET_FIELD_TOUCHED",payload:{field:q,value:ee}});var me=ie===void 0?a:ie;return me?p(J.values):Promise.resolve()}),I=ve.useCallback(function(q,ee){q.persist&&q.persist();var ie=q.target,me=ie.name,be=ie.id,pe=ie.outerHTML,Me=ee||me||be;V(Me,!0)},[V]),W=hi(function(q){if(U4(q))return function(ee){return I(ee,q)};I(q)}),z=ve.useCallback(function(q){fa(q)?Y({type:"SET_FORMIK_STATE",payload:q}):Y({type:"SET_FORMIK_STATE",payload:function(){return q}})},[]),Z=ve.useCallback(function(q){Y({type:"SET_STATUS",payload:q})},[]),le=ve.useCallback(function(q){Y({type:"SET_ISSUBMITTING",payload:q})},[]),ue=hi(function(){return Y({type:"SUBMIT_ATTEMPT"}),p().then(function(q){var ee=q instanceof Error,ie=!ee&&Object.keys(q).length===0;if(ie){var me;try{if(me=ne(),me===void 0)return}catch(be){throw be}return Promise.resolve(me).then(function(be){return D.current&&Y({type:"SUBMIT_SUCCESS"}),be}).catch(function(be){if(D.current)throw Y({type:"SUBMIT_FAILURE"}),be})}else if(D.current&&(Y({type:"SUBMIT_FAILURE"}),ee))throw q})}),G=hi(function(q){q&&q.preventDefault&&fa(q.preventDefault)&&q.preventDefault(),q&&q.stopPropagation&&fa(q.stopPropagation)&&q.stopPropagation(),ue().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),j={resetForm:l,validateForm:p,validateField:y,setErrors:f,setFieldError:A,setFieldTouched:V,setFieldValue:_,setStatus:Z,setSubmitting:le,setTouched:x,setValues:m,setFormikState:z,submitForm:ue},ne=hi(function(){return b(J.values,j)}),se=hi(function(q){q&&q.preventDefault&&fa(q.preventDefault)&&q.preventDefault(),q&&q.stopPropagation&&fa(q.stopPropagation)&&q.stopPropagation(),l()}),Q=ve.useCallback(function(q){return{value:dr(J.values,q),error:dr(J.errors,q),touched:!!dr(J.touched,q),initialValue:dr(C.current,q),initialTouched:!!dr(T.current,q),initialError:dr(M.current,q)}},[J.errors,J.touched,J.values]),R=ve.useCallback(function(q){return{setValue:function(ie,me){return _(q,ie,me)},setTouched:function(ie,me){return V(q,ie,me)},setError:function(ie){return A(q,ie)}}},[_,V,A]),N=ve.useCallback(function(q){var ee=kb(q),ie=ee?q.name:q,me=dr(J.values,ie),be={name:ie,value:me,onChange:$,onBlur:W};if(ee){var pe=q.type,Me=q.value,Te=q.as,Ee=q.multiple;pe==="checkbox"?Me===void 0?be.checked=!!me:(be.checked=!!(Array.isArray(me)&&~me.indexOf(Me)),be.value=Me):pe==="radio"?(be.checked=me===Me,be.value=Me):Te==="select"&&Ee&&(be.value=be.value||[],be.multiple=!0)}return be},[W,$,J.values]),K=ve.useMemo(function(){return!ml(C.current,J.values)},[C.current,J.values]),ae=ve.useMemo(function(){return typeof o<"u"?K?J.errors&&Object.keys(J.errors).length===0:o!==!1&&fa(o)?o(E):o:J.errors&&Object.keys(J.errors).length===0},[o,K,J.errors,E]),he=Vt({},J,{initialValues:C.current,initialErrors:M.current,initialTouched:T.current,initialStatus:P.current,handleBlur:W,handleChange:$,handleReset:se,handleSubmit:G,resetForm:l,setErrors:f,setFormikState:z,setFieldTouched:V,setFieldValue:_,setFieldError:A,setStatus:Z,setSubmitting:le,setTouched:x,setValues:m,submitForm:ue,validateForm:p,validateField:y,isValid:ae,dirty:K,unregisterField:w,registerField:g,getFieldProps:N,getFieldMeta:Q,getFieldHelpers:R,validateOnBlur:a,validateOnChange:n,validateOnMount:s});return he}function Ix(t){var e=S$(t),n=t.component,r=t.children,a=t.render,i=t.innerRef;return ve.useImperativeHandle(i,function(){return e}),ve.createElement(Pie,{value:e},n?ve.createElement(n,e):a?a(e):r?fa(r)?r(e):A$(r)?null:ve.Children.only(r):null)}function Lie(t){var e={};if(t.inner){if(t.inner.length===0)return go(e,t.path,t.message);for(var a=t.inner,n=Array.isArray(a),r=0,a=n?a:a[Symbol.iterator]();;){var i;if(n){if(r>=a.length)break;i=a[r++]}else{if(r=a.next(),r.done)break;i=r.value}var s=i;dr(e,s.path)||(e=go(e,s.path,s.message))}}return e}function Uie(t,e,n,r){n===void 0&&(n=!1);var a=z7(t);return e[n?"validateSync":"validate"](a,{abortEarly:!1,context:r||a})}function z7(t){var e=Array.isArray(t)?[]:{};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=String(n);Array.isArray(t[r])===!0?e[r]=t[r].map(function(a){return Array.isArray(a)===!0||OM(a)?z7(a):a!==""?a:void 0}):OM(t[r])?e[r]=z7(t[r]):e[r]=t[r]!==""?t[r]:void 0}return e}function jie(t,e,n){var r=t.slice();return e.forEach(function(i,s){if(typeof r[s]>"u"){var o=n.clone!==!1,c=o&&n.isMergeableObject(i);r[s]=c?N7(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[s]=N7(t[s],i,n):t.indexOf(i)===-1&&r.push(i)}),r}function Hie(t){return Array.from(t).filter(function(e){return e.selected}).map(function(e){return e.value})}function zie(t,e,n){if(typeof t=="boolean")return!!e;var r=[],a=!1,i=-1;if(Array.isArray(t))r=t,i=t.indexOf(n),a=i>=0;else if(!n||n=="true"||n=="false")return!!e;return e&&n&&!a?r.concat(n):a?r.slice(0,i).concat(r.slice(i+1)):r}var Gie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ve.useLayoutEffect:ve.useEffect;function hi(t){var e=ve.useRef(t);return Gie(function(){e.current=t}),ve.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;ar?a:r},0);return Array.from(Vt({},e,{length:n+1}))}else return[]},dF=function(e,n){var r=typeof e=="function"?e:n;return function(a){if(Array.isArray(a)||kb(a)){var i=Qf(a);return r(i)}return a}},T$=function(t){Oie(e,t);function e(r){var a;return a=t.call(this,r)||this,a.updateArrayField=function(i,s,o){var c=a.props,h=c.name,b=c.formik.setFormikState;b(function(v){var E=dF(o,i),C=dF(s,i),M=go(v.values,h,i(dr(v.values,h))),T=o?E(dr(v.errors,h)):void 0,P=s?C(dr(v.touched,h)):void 0;return fF(T)&&(T=void 0),fF(P)&&(P=void 0),Vt({},v,{values:M,errors:o?go(v.errors,h,T):v.errors,touched:s?go(v.touched,h,P):v.touched})})},a.push=function(i){return a.updateArrayField(function(s){return[].concat(Qf(s),[Iie(i)])},!1,!1)},a.handlePush=function(i){return function(){return a.push(i)}},a.swap=function(i,s){return a.updateArrayField(function(o){return Wie(o,i,s)},!0,!0)},a.handleSwap=function(i,s){return function(){return a.swap(i,s)}},a.move=function(i,s){return a.updateArrayField(function(o){return qie(o,i,s)},!0,!0)},a.handleMove=function(i,s){return function(){return a.move(i,s)}},a.insert=function(i,s){return a.updateArrayField(function(o){return H4(o,i,s)},function(o){return H4(o,i,null)},function(o){return H4(o,i,null)})},a.handleInsert=function(i,s){return function(){return a.insert(i,s)}},a.replace=function(i,s){return a.updateArrayField(function(o){return Kie(o,i,s)},!1,!1)},a.handleReplace=function(i,s){return function(){return a.replace(i,s)}},a.unshift=function(i){var s=-1;return a.updateArrayField(function(o){var c=o?[i].concat(o):[i];return s=c.length,c},function(o){return o?[null].concat(o):[null]},function(o){return o?[null].concat(o):[null]}),s},a.handleUnshift=function(i){return function(){return a.unshift(i)}},a.handleRemove=function(i){return function(){return a.remove(i)}},a.handlePop=function(){return function(){return a.pop()}},a.remove=a.remove.bind(uF(a)),a.pop=a.pop.bind(uF(a)),a}var n=e.prototype;return n.componentDidUpdate=function(a){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ml(dr(a.formik.values,a.name),dr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(a){var i;return this.updateArrayField(function(s){var o=s?Qf(s):[];return i||(i=o[a]),fa(o.splice)&&o.splice(a,1),fa(o.every)&&o.every(function(c){return c===void 0})?[]:o},!0,!0),i},n.pop=function(){var a;return this.updateArrayField(function(i){var s=i.slice();return a||(a=s&&s.pop&&s.pop()),s},!0,!0),a},n.render=function(){var a={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,o=i.render,c=i.children,h=i.name,b=i.formik,v=Yu(b,["validate","validationSchema"]),E=Vt({},a,{form:v,name:h});return s?ve.createElement(s,E):o?o(E):c?typeof c=="function"?c(E):A$(c)?null:ve.Children.only(c):null},e}(ve.Component);T$.defaultProps={validateOnChange:!0};var B$=Vie(T$);function bA(t,{strict:e=!0}={}){return!t||typeof t!="string"?!1:e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")}function hF(t){return bA(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const Zie="2.7.16",Qie=()=>`viem@${Zie}`;class Lt extends Error{constructor(e,n={}){var i;super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:Qie()});const r=n.cause instanceof Lt?n.cause.details:(i=n.cause)!=null&&i.message?n.cause.message:n.details,a=n.cause instanceof Lt&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://viem.sh${a}${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(` -`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return M$(this,e)}}function M$(t,e){return e!=null&&e(t)?t:t&&typeof t=="object"&&"cause"in t?M$(t.cause,e):e?null:t}class F$ extends Lt{constructor({size:e,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${e}) exceeds padding size (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}function Up(t,{dir:e,size:n=32}={}){return typeof t=="string"?Jie(t,{dir:e,size:n}):Xie(t,{dir:e,size:n})}function Jie(t,{dir:e,size:n=32}={}){if(n===null)return t;const r=t.replace("0x","");if(r.length>n*2)throw new F$({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[e==="right"?"padEnd":"padStart"](n*2,"0")}`}function Xie(t,{dir:e,size:n=32}={}){if(n===null)return t;if(t.length>n)throw new F$({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;ae)throw new ese({givenSize:hF(t),maxSize:e})}function Vn(t,e={}){const{signed:n}=e;e.size&&jp(t,{size:e.size});const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2,i=(1n<e.toString(16).padStart(2,"0"));function ct(t,e={}){return typeof t=="number"||typeof t=="bigint"?Qo(t,e):typeof t=="string"?ase(t,e):typeof t=="boolean"?nse(t,e):gA(t,e)}function nse(t,e={}){const n=`0x${Number(t)}`;return typeof e.size=="number"?(jp(n,{size:e.size}),Up(n,{size:e.size})):n}function gA(t,e={}){let n="";for(let a=0;ai||a=No.zero&&t<=No.nine)return t-No.zero;if(t>=No.A&&t<=No.F)return t-(No.A-10);if(t>=No.a&&t<=No.f)return t-(No.a-10)}function vm(t,e={}){let n=t;e.size&&(jp(n,{size:e.size}),n=Up(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,i=new Uint8Array(a);for(let s=0,o=0;s0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function k$(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ja(t.outputLen),Ja(t.blockLen)}function tp(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function I$(t,e){xA(t);const n=e.outputLen;if(t.length>G7&N2)}:{h:Number(t>>G7&N2)|0,l:Number(t&N2)|0}}function P$(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0),use=(t,e,n)=>t>>>n,fse=(t,e,n)=>t<<32-n|e>>>n,dse=(t,e,n)=>t>>>n|e<<32-n,hse=(t,e,n)=>t<<32-n|e>>>n,pse=(t,e,n)=>t<<64-n|e>>>n-32,yse=(t,e,n)=>t>>>n-32|e<<64-n,mse=(t,e)=>e,bse=(t,e)=>t,R$=(t,e,n)=>t<>>32-n,N$=(t,e,n)=>e<>>32-n,$$=(t,e,n)=>e<>>64-n,L$=(t,e,n)=>t<>>64-n;function gse(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:a|0}}const xse=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),vse=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,wse=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),Ese=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0,_se=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0),Ase=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0,Cse={fromBig:O$,split:P$,toBig:lse,shrSH:use,shrSL:fse,rotrSH:dse,rotrSL:hse,rotrBH:pse,rotrBL:yse,rotr32H:mse,rotr32L:bse,rotlSH:R$,rotlSL:N$,rotlBH:$$,rotlBL:L$,add:gse,add3L:xse,add3H:vse,add4L:wse,add4H:Ese,add5H:Ase,add5L:_se},At=Cse,z4=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const U$=t=>t instanceof Uint8Array,V3=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),q3=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Us=(t,e)=>t<<32-e|t>>>e,Sse=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!Sse)throw new Error("Non little-endian hardware is not supported");const Tse=async()=>{};async function yF(t,e,n){let r=Date.now();for(let a=0;a=0&&ir+a.length,0));let n=0;return t.forEach(r=>{if(!U$(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}let vA=class{clone(){return this._cloneInto()}};const Fse={}.toString;function j$(t,e){if(e!==void 0&&Fse.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function Ox(t){const e=r=>t().update(np(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Dse(t=32){if(z4&&typeof z4.getRandomValues=="function")return z4.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}const[H$,z$,G$]=[[],[],[]],kse=BigInt(0),k1=BigInt(1),Ise=BigInt(2),Ose=BigInt(7),Pse=BigInt(256),Rse=BigInt(113);for(let t=0,e=k1,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],H$.push(2*(5*r+n)),z$.push((t+1)*(t+2)/2%64);let a=kse;for(let i=0;i<7;i++)e=(e<>Ose)*Rse)%Pse,e&Ise&&(a^=k1<<(k1<n>32?$$(t,e,n):R$(t,e,n),bF=(t,e,n)=>n>32?L$(t,e,n):N$(t,e,n);function Lse(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,h=n[c],b=n[c+1],v=mF(h,b,1)^n[o],E=bF(h,b,1)^n[o+1];for(let C=0;C<50;C+=10)t[s+C]^=v,t[s+C+1]^=E}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=z$[s],c=mF(a,i,o),h=bF(a,i,o),b=H$[s];a=t[b],i=t[b+1],t[b]=c,t[b+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)n[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=Nse[r],t[1]^=$se[r]}n.fill(0)}let Use=class V$ extends vA{constructor(e,n,r,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Ja(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=V3(this.state)}keccak(){Lse(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){tp(this);const{blockLen:n,state:r}=this;e=np(e);const a=e.length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-a);e.set(n.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ja(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(I$(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new V$(n,r,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}};const jse=(t,e,n)=>Ox(()=>new Use(e,t,n)),q$=jse(1,136,256/8);function Hse(t,e){const n=e||"hex",r=q$(bA(t,{strict:!1})?sse(t):t);return n==="bytes"?r:ct(r)}class ji extends Lt{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class zse extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,n){return super.set(e,n),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}function Gse(t,e){const n=e?`${e}${t.toLowerCase()}`:t.substring(2).toLowerCase(),r=Hse(D$(n),"bytes"),a=(e?n.substring(`${e}0x`.length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&a[i]&&(a[i]=a[i].toUpperCase()),(r[i>>1]&15)>=8&&a[i+1]&&(a[i+1]=a[i+1].toUpperCase());return`0x${a.join("")}`}const Vse=/^0x[a-fA-F0-9]{40}$/,G4=new zse(8192);function Rr(t,{strict:e=!0}={}){if(G4.has(t))return G4.get(t);const n=Vse.test(t)?t.toLowerCase()===t?!0:e?Gse(t)===t:!0:!1;return G4.set(t,n),n}function Hp(t){return`0x${t.reduce((e,n)=>e+n.replace("0x",""),"")}`}class gF extends Lt{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class qse extends Lt{constructor({length:e,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class Wse extends Lt{constructor({count:e,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}const Kse={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Wse({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new qse({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new gF({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new gF({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,t&255),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===1/0)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function Zse(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(Kse);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}const W$={gwei:9,wei:18},Qse={ether:-9,wei:9};function K$(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[a,i]=[n.slice(0,n.length-e),n.slice(n.length-e)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}function Z$(t,e="wei"){return K$(t,W$[e])}function V7(t,e="wei"){return K$(t,Qse[e])}function Jse(t){const e=Object.entries(t).map(([r,a])=>a===void 0||a===!1?null:[r,a]).filter(Boolean),n=e.reduce((r,[a])=>Math.max(r,a.length),0);return e.map(([r,a])=>` ${`${r}:`.padEnd(n+1)} ${a}`).join(` -`)}class Xse extends Lt{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class Yse extends Lt{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Jse(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class eoe extends Lt{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class zp extends Lt{constructor({cause:e,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${V7(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(zp,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Px extends Lt{constructor({cause:e,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${V7(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${V7(r)} gwei`:""}).`].join(` -`),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(Px,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});function Rx(t,e){return({exclude:n,format:r})=>({exclude:n,format:a=>{const i=e(a);if(n)for(const s of n)delete i[s];return{...i,...r(a)}},type:t})}const toe={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function noe(t){return{...t,gas:typeof t.gas<"u"?Qo(t.gas):void 0,gasPrice:typeof t.gasPrice<"u"?Qo(t.gasPrice):void 0,maxFeePerGas:typeof t.maxFeePerGas<"u"?Qo(t.maxFeePerGas):void 0,maxPriorityFeePerGas:typeof t.maxPriorityFeePerGas<"u"?Qo(t.maxPriorityFeePerGas):void 0,nonce:typeof t.nonce<"u"?Qo(t.nonce):void 0,type:typeof t.type<"u"?toe[t.type]:void 0,value:typeof t.value<"u"?Qo(t.value):void 0}}const Q$=Rx("transactionRequest",noe),J$={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function Nx(t){const e={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?Qg(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?Qg(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?J$[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return e.yParity=(()=>{if(t.yParity)return Number(t.yParity);if(typeof e.v=="bigint"){if(e.v===0n||e.v===27n)return 0;if(e.v===1n||e.v===28n)return 1;if(e.v>=35n)return e.v%2n===0n?1:0}})(),e.type==="legacy"&&(delete e.accessList,delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas,delete e.yParity),e.type==="eip2930"&&(delete e.maxFeePerBlobGas,delete e.maxFeePerGas,delete e.maxPriorityFeePerGas),e.type==="eip1559"&&delete e.maxFeePerBlobGas,e}const wA=Rx("transaction",Nx);function roe(t){var n;const e=(n=t.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:Nx(r));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:e,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const EA=Rx("block",roe);function aoe(t){if(t.type)return t.type;if(typeof t.maxFeePerGas<"u"||typeof t.maxPriorityFeePerGas<"u")return"eip1559";if(typeof t.gasPrice<"u")return typeof t.accessList<"u"?"eip2930":"legacy";throw new Yse({transaction:t})}function X$(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}class Gp extends Lt{constructor({chainId:e}){super(typeof e=="number"?`Chain ID "${e}" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}function ye(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}function bd(t,e="hex"){const n=Y$(t),r=Zse(new Uint8Array(n.length));return n.encode(r),e==="hex"?gA(r.bytes):r.bytes}function Y$(t){return Array.isArray(t)?ioe(t.map(e=>Y$(e))):soe(t)}function ioe(t){const e=t.reduce((a,i)=>a+i.length,0),n=eL(e);return{length:e<=55?1+e:1+n+e,encode(a){e<=55?a.pushByte(192+e):(a.pushByte(247+n),n===1?a.pushUint8(e):n===2?a.pushUint16(e):n===3?a.pushUint24(e):a.pushUint32(e));for(const{encode:i}of t)i(a)}}}function soe(t){const e=typeof t=="string"?vm(t):t,n=eL(e.length);return{length:e.length===1&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length,encode(a){e.length===1&&e[0]<128?a.pushBytes(e):e.length<=55?(a.pushByte(128+e.length),a.pushBytes(e)):(a.pushByte(183+n),n===1?a.pushUint8(e.length):n===2?a.pushUint16(e.length):n===3?a.pushUint24(e.length):a.pushUint32(e.length),a.pushBytes(e))}}}function eL(t){if(t<2**8)return 1;if(t<2**16)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new Lt("Length is too large.")}const ooe={"0x0":"reverted","0x1":"success"};function coe(t){const e={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(n=>X$(n)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Qg(t.transactionIndex):null,status:t.status?ooe[t.status]:null,type:t.type?J$[t.type]||t.type:null};return t.blobGasPrice&&(e.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(e.blobGasUsed=BigInt(t.blobGasUsed)),e}const tL=Rx("transactionReceipt",coe);function loe(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const a=BigInt(32),i=BigInt(4294967295),s=Number(n>>a&i),o=Number(n&i),c=r?4:0,h=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+h,o,r)}let _A=class extends vA{constructor(e,n,r,a){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=q3(this.buffer)}update(e){tp(this);const{view:n,buffer:r,blockLen:a}=this;e=np(e);const i=e.length;for(let s=0;sa-s&&(this.process(r,0),s=0);for(let v=s;vb.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;vt&e^~t&n,foe=(t,e,n)=>t&e^t&n^e&n,doe=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]),Yc=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),el=new Uint32Array(64);let hoe=class extends _A{constructor(){super(64,32,8,!1),this.A=Yc[0]|0,this.B=Yc[1]|0,this.C=Yc[2]|0,this.D=Yc[3]|0,this.E=Yc[4]|0,this.F=Yc[5]|0,this.G=Yc[6]|0,this.H=Yc[7]|0}get(){const{A:e,B:n,C:r,D:a,E:i,F:s,G:o,H:c}=this;return[e,n,r,a,i,s,o,c]}set(e,n,r,a,i,s,o,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=c|0}process(e,n){for(let v=0;v<16;v++,n+=4)el[v]=e.getUint32(n,!1);for(let v=16;v<64;v++){const E=el[v-15],C=el[v-2],M=Us(E,7)^Us(E,18)^E>>>3,T=Us(C,17)^Us(C,19)^C>>>10;el[v]=T+el[v-7]+M+el[v-16]|0}let{A:r,B:a,C:i,D:s,E:o,F:c,G:h,H:b}=this;for(let v=0;v<64;v++){const E=Us(o,6)^Us(o,11)^Us(o,25),C=b+E+uoe(o,c,h)+doe[v]+el[v]|0,T=(Us(r,2)^Us(r,13)^Us(r,22))+foe(r,a,i)|0;b=h,h=c,c=o,o=s+C|0,s=i,i=a,a=r,r=C+T|0}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,h=h+this.G|0,b=b+this.H|0,this.set(r,a,i,s,o,c,h,b)}roundClean(){el.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const Vp=Ox(()=>new hoe),poe=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),nL=Uint8Array.from({length:16},(t,e)=>e),yoe=nL.map(t=>(9*t+5)%16);let AA=[nL],CA=[yoe];for(let t=0;t<4;t++)for(let e of[AA,CA])e.push(e[t].map(n=>poe[n]));const rL=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),moe=AA.map((t,e)=>t.map(n=>rL[e][n])),boe=CA.map((t,e)=>t.map(n=>rL[e][n])),goe=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),xoe=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),$2=(t,e)=>t<>>32-e;function xF(t,e,n,r){return t===0?e^n^r:t===1?e&n|~e&r:t===2?(e|~n)^r:t===3?e&r|n&~r:e^(n|~r)}const L2=new Uint32Array(16);let voe=class extends _A{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:n,h2:r,h3:a,h4:i}=this;return[e,n,r,a,i]}set(e,n,r,a,i){this.h0=e|0,this.h1=n|0,this.h2=r|0,this.h3=a|0,this.h4=i|0}process(e,n){for(let C=0;C<16;C++,n+=4)L2[C]=e.getUint32(n,!0);let r=this.h0|0,a=r,i=this.h1|0,s=i,o=this.h2|0,c=o,h=this.h3|0,b=h,v=this.h4|0,E=v;for(let C=0;C<5;C++){const M=4-C,T=goe[C],P=xoe[C],D=AA[C],F=CA[C],O=moe[C],k=boe[C];for(let U=0;U<16;U++){const J=$2(r+xF(C,i,o,h)+L2[D[U]]+T,O[U])+v|0;r=v,v=h,h=$2(o,10)|0,o=i,i=J}for(let U=0;U<16;U++){const J=$2(a+xF(M,s,c,b)+L2[F[U]]+P,k[U])+E|0;a=E,E=b,b=$2(c,10)|0,c=s,s=J}}this.set(this.h1+o+b|0,this.h2+h+E|0,this.h3+v+a|0,this.h4+r+s|0,this.h0+i+c|0)}roundClean(){L2.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}};const woe=Ox(()=>new voe);function Eoe(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(e<=0)throw new Gp({chainId:e});if(i&&!Rr(i))throw new ji({address:i});if(r)throw new Lt("`gasPrice` is not a valid EIP-1559 Transaction attribute.");if(a&&a>2n**256n-1n)throw new zp({maxFeePerGas:a});if(n&&a&&n>a)throw new Px({maxFeePerGas:a,maxPriorityFeePerGas:n})}function _oe(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(e<=0)throw new Gp({chainId:e});if(i&&!Rr(i))throw new ji({address:i});if(n||a)throw new Lt("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>2n**256n-1n)throw new zp({maxFeePerGas:r})}function Aoe(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i,accessList:s}=t;if(i&&!Rr(i))throw new ji({address:i});if(typeof e<"u"&&e<=0)throw new Gp({chainId:e});if(n||a)throw new Lt("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>2n**256n-1n)throw new zp({maxFeePerGas:r});if(s)throw new Lt("`accessList` is not a valid Legacy Transaction attribute.")}function $x(t){if(!t||t.length===0)return[];const e=[];for(let n=0;n{if(e.v>=35n)return(e.v-35n)/2n>0?e.v:27n+(e.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+e.v-27n);const v=27n+(e.v===27n?0n:1n);if(e.v!==v)throw new Xse({v:e.v});return v})();h=[...h,ct(b),e.r,e.s]}else n>0&&(h=[...h,ct(n),"0x","0x"]);return bd(h)}function Boe(t,e){let[n,r="0"]=t.split(".");const a=n.startsWith("-");if(a&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),e===0)Math.round(+`.${r}`)===1&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>e){const[i,s,o]=[r.slice(0,e-1),r.slice(e-1,e),r.slice(e)],c=Math.round(+`${s}.${o}`);c>9?r=`${BigInt(i)+BigInt(1)}0`.padStart(i.length+1,"0"):r=`${i}${c}`,r.length>e&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,e)}else r=r.padEnd(e,"0");return BigInt(`${a?"-":""}${n}${r}`)}function aL(t,e="wei"){return Boe(t,W$[e])}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const iL=BigInt(0),Lx=BigInt(1),Moe=BigInt(2),Ux=t=>t instanceof Uint8Array,Foe=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function rp(t){if(!Ux(t))throw new Error("Uint8Array expected");let e="";for(let n=0;nr+a.length,0));let n=0;return t.forEach(r=>{if(!Ux(r))throw new Error("Uint8Array expected");e.set(r,n),n+=r.length}),e}function koe(t,e){if(t.length!==e.length)return!1;for(let n=0;niL;t>>=Lx,e+=1);return e}function Poe(t,e){return t>>BigInt(e)&Lx}const Roe=(t,e,n)=>t|(n?Lx:iL)<(Moe<new Uint8Array(t),vF=t=>Uint8Array.from(t);function oL(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=V4(t),a=V4(t),i=0;const s=()=>{r.fill(1),a.fill(0),i=0},o=(...v)=>n(a,r,...v),c=(v=V4())=>{a=o(vF([0]),v),r=o(),v.length!==0&&(a=o(vF([1]),v),r=o())},h=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const E=[];for(;v{s(),c(v);let C;for(;!(C=E(h()));)c();return s(),C}}const Noe={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function Ib(t,e,n={}){const r=(a,i,s)=>{const o=Noe[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[a];if(!(s&&c===void 0)&&!o(c,t))throw new Error(`Invalid param ${String(a)}=${c} (${typeof c}), expected ${i}`)};for(const[a,i]of Object.entries(e))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return t}const $oe=Object.freeze(Object.defineProperty({__proto__:null,bitGet:Poe,bitLen:Ooe,bitMask:FA,bitSet:Roe,bytesToHex:rp,bytesToNumberBE:Nf,bytesToNumberLE:BA,concatBytes:wm,createHmacDrbg:oL,ensureBytes:fs,equalBytes:koe,hexToBytes:ap,hexToNumber:TA,numberToBytesBE:ip,numberToBytesLE:MA,numberToHexUnpadded:sL,numberToVarBytesBE:Doe,utf8ToBytes:Ioe,validateObject:Ib},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const gr=BigInt(0),jn=BigInt(1),Vu=BigInt(2),Loe=BigInt(3),q7=BigInt(4),wF=BigInt(5),EF=BigInt(8);BigInt(9);BigInt(16);function Ca(t,e){const n=t%e;return n>=gr?n:e+n}function Uoe(t,e,n){if(n<=gr||e 0");if(n===jn)return gr;let r=jn;for(;e>gr;)e&jn&&(r=r*t%n),t=t*t%n,e>>=jn;return r}function pi(t,e,n){let r=t;for(;e-- >gr;)r*=r,r%=n;return r}function W7(t,e){if(t===gr||e<=gr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=Ca(t,e),r=e,a=gr,i=jn;for(;n!==gr;){const o=r/n,c=r%n,h=a-i*o;r=n,n=c,a=i,i=h}if(r!==jn)throw new Error("invert: does not exist");return Ca(a,e)}function joe(t){const e=(t-jn)/Vu;let n,r,a;for(n=t-jn,r=0;n%Vu===gr;n/=Vu,r++);for(a=Vu;a(r[a]="function",r),e);return Ib(t,n)}function Voe(t,e,n){if(n 0");if(n===gr)return t.ONE;if(n===jn)return e;let r=t.ONE,a=e;for(;n>gr;)n&jn&&(r=t.mul(r,a)),a=t.sqr(a),n>>=jn;return r}function qoe(t,e){const n=new Array(e.length),r=e.reduce((i,s,o)=>t.is0(s)?i:(n[o]=i,t.mul(i,s)),t.ONE),a=t.inv(r);return e.reduceRight((i,s,o)=>t.is0(s)?i:(n[o]=t.mul(i,n[o]),t.mul(i,s)),a),n}function cL(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}function Woe(t,e,n=!1,r={}){if(t<=gr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:i}=cL(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=Hoe(t),o=Object.freeze({ORDER:t,BITS:a,BYTES:i,MASK:FA(a),ZERO:gr,ONE:jn,create:c=>Ca(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return gr<=c&&cc===gr,isOdd:c=>(c&jn)===jn,neg:c=>Ca(-c,t),eql:(c,h)=>c===h,sqr:c=>Ca(c*c,t),add:(c,h)=>Ca(c+h,t),sub:(c,h)=>Ca(c-h,t),mul:(c,h)=>Ca(c*h,t),pow:(c,h)=>Voe(o,c,h),div:(c,h)=>Ca(c*W7(h,t),t),sqrN:c=>c*c,addN:(c,h)=>c+h,subN:(c,h)=>c-h,mulN:(c,h)=>c*h,inv:c=>W7(c,t),sqrt:r.sqrt||(c=>s(o,c)),invertBatch:c=>qoe(o,c),cmov:(c,h,b)=>b?h:c,toBytes:c=>n?MA(c,i):ip(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?BA(c):Nf(c)}});return Object.freeze(o)}function lL(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function uL(t){const e=lL(t);return e+Math.ceil(e/2)}function Koe(t,e,n=!1){const r=t.length,a=lL(e),i=uL(e);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const s=n?Nf(t):BA(t),o=Ca(s,e-jn)+jn;return n?MA(o,a):ip(o,a)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Zoe=BigInt(0),q4=BigInt(1);function Qoe(t,e){const n=(a,i)=>{const s=i.negate();return a?s:i},r=a=>{const i=Math.ceil(e/a)+1,s=2**(a-1);return{windows:i,windowSize:s}};return{constTimeNegate:n,unsafeLadder(a,i){let s=t.ZERO,o=a;for(;i>Zoe;)i&q4&&(s=s.add(o)),o=o.double(),i>>=q4;return s},precomputeWindow(a,i){const{windows:s,windowSize:o}=r(i),c=[];let h=a,b=h;for(let v=0;v>=C,P>c&&(P-=E,s+=q4);const D=T,F=T+Math.abs(P)-1,O=M%2!==0,k=P<0;P===0?b=b.add(n(O,i[D])):h=h.add(n(k,i[F]))}return{p:h,f:b}},wNAFCached(a,i,s,o){const c=a._WINDOW_SIZE||1;let h=i.get(a);return h||(h=this.precomputeWindow(a,c),c!==1&&i.set(a,o(h))),this.wNAF(c,h,s)}}}function fL(t){return Goe(t.Fp),Ib(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...cL(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Joe(t){const e=fL(t);Ib(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a}=e;if(n){if(!r.eql(a,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof n!="object"||typeof n.beta!="bigint"||typeof n.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Xoe,hexToBytes:Yoe}=$oe,ef={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=ef;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(r[0]&128)throw new e("Invalid signature integer: negative");if(r[0]===0&&!(r[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Xoe(r),l:t.subarray(n+2)}},toSig(t){const{Err:e}=ef,n=typeof t=="string"?Yoe(t):t;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||n[0]!=48)throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");const{d:a,l:i}=ef._parseInt(n.subarray(2)),{d:s,l:o}=ef._parseInt(i);if(o.length)throw new e("Invalid signature: left bytes after parsing");return{r:a,s}},hexFromSig(t){const e=h=>Number.parseInt(h[0],16)&8?"00"+h:h,n=h=>{const b=h.toString(16);return b.length&1?`0${b}`:b},r=e(n(t.s)),a=e(n(t.r)),i=r.length/2,s=a.length/2,o=n(i),c=n(s);return`30${n(s+i+4)}02${c}${a}02${o}${r}`}},pc=BigInt(0),Mi=BigInt(1);BigInt(2);const _F=BigInt(3);BigInt(4);function ece(t){const e=Joe(t),{Fp:n}=e,r=e.toBytes||((M,T,P)=>{const D=T.toAffine();return wm(Uint8Array.from([4]),n.toBytes(D.x),n.toBytes(D.y))}),a=e.fromBytes||(M=>{const T=M.subarray(1),P=n.fromBytes(T.subarray(0,n.BYTES)),D=n.fromBytes(T.subarray(n.BYTES,2*n.BYTES));return{x:P,y:D}});function i(M){const{a:T,b:P}=e,D=n.sqr(M),F=n.mul(D,M);return n.add(n.add(F,n.mul(M,T)),P)}if(!n.eql(n.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function s(M){return typeof M=="bigint"&&pcn.eql(O,n.ZERO);return F(P)&&F(D)?v.ZERO:new v(P,D,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(T){const P=n.invertBatch(T.map(D=>D.pz));return T.map((D,F)=>D.toAffine(P[F])).map(v.fromAffine)}static fromHex(T){const P=v.fromAffine(a(fs("pointHex",T)));return P.assertValidity(),P}static fromPrivateKey(T){return v.BASE.multiply(c(T))}_setWindowSize(T){this._WINDOW_SIZE=T,h.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:T,y:P}=this.toAffine();if(!n.isValid(T)||!n.isValid(P))throw new Error("bad point: x or y not FE");const D=n.sqr(P),F=i(T);if(!n.eql(D,F))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:T}=this.toAffine();if(n.isOdd)return!n.isOdd(T);throw new Error("Field doesn't support isOdd")}equals(T){b(T);const{px:P,py:D,pz:F}=this,{px:O,py:k,pz:U}=T,J=n.eql(n.mul(P,U),n.mul(O,F)),Y=n.eql(n.mul(D,U),n.mul(k,F));return J&&Y}negate(){return new v(this.px,n.neg(this.py),this.pz)}double(){const{a:T,b:P}=e,D=n.mul(P,_F),{px:F,py:O,pz:k}=this;let U=n.ZERO,J=n.ZERO,Y=n.ZERO,L=n.mul(F,F),X=n.mul(O,O),B=n.mul(k,k),u=n.mul(F,O);return u=n.add(u,u),Y=n.mul(F,k),Y=n.add(Y,Y),U=n.mul(T,Y),J=n.mul(D,B),J=n.add(U,J),U=n.sub(X,J),J=n.add(X,J),J=n.mul(U,J),U=n.mul(u,U),Y=n.mul(D,Y),B=n.mul(T,B),u=n.sub(L,B),u=n.mul(T,u),u=n.add(u,Y),Y=n.add(L,L),L=n.add(Y,L),L=n.add(L,B),L=n.mul(L,u),J=n.add(J,L),B=n.mul(O,k),B=n.add(B,B),L=n.mul(B,u),U=n.sub(U,L),Y=n.mul(B,X),Y=n.add(Y,Y),Y=n.add(Y,Y),new v(U,J,Y)}add(T){b(T);const{px:P,py:D,pz:F}=this,{px:O,py:k,pz:U}=T;let J=n.ZERO,Y=n.ZERO,L=n.ZERO;const X=e.a,B=n.mul(e.b,_F);let u=n.mul(P,O),d=n.mul(D,k),p=n.mul(F,U),l=n.add(P,D),y=n.add(O,k);l=n.mul(l,y),y=n.add(u,d),l=n.sub(l,y),y=n.add(P,F);let g=n.add(O,U);return y=n.mul(y,g),g=n.add(u,p),y=n.sub(y,g),g=n.add(D,F),J=n.add(k,U),g=n.mul(g,J),J=n.add(d,p),g=n.sub(g,J),L=n.mul(X,y),J=n.mul(B,p),L=n.add(J,L),J=n.sub(d,L),L=n.add(d,L),Y=n.mul(J,L),d=n.add(u,u),d=n.add(d,u),p=n.mul(X,p),y=n.mul(B,y),d=n.add(d,p),p=n.sub(u,p),p=n.mul(X,p),y=n.add(y,p),u=n.mul(d,y),Y=n.add(Y,u),u=n.mul(g,y),J=n.mul(l,J),J=n.sub(J,u),u=n.mul(l,d),L=n.mul(g,L),L=n.add(L,u),new v(J,Y,L)}subtract(T){return this.add(T.negate())}is0(){return this.equals(v.ZERO)}wNAF(T){return C.wNAFCached(this,h,T,P=>{const D=n.invertBatch(P.map(F=>F.pz));return P.map((F,O)=>F.toAffine(D[O])).map(v.fromAffine)})}multiplyUnsafe(T){const P=v.ZERO;if(T===pc)return P;if(o(T),T===Mi)return this;const{endo:D}=e;if(!D)return C.unsafeLadder(this,T);let{k1neg:F,k1:O,k2neg:k,k2:U}=D.splitScalar(T),J=P,Y=P,L=this;for(;O>pc||U>pc;)O&Mi&&(J=J.add(L)),U&Mi&&(Y=Y.add(L)),L=L.double(),O>>=Mi,U>>=Mi;return F&&(J=J.negate()),k&&(Y=Y.negate()),Y=new v(n.mul(Y.px,D.beta),Y.py,Y.pz),J.add(Y)}multiply(T){o(T);let P=T,D,F;const{endo:O}=e;if(O){const{k1neg:k,k1:U,k2neg:J,k2:Y}=O.splitScalar(P);let{p:L,f:X}=this.wNAF(U),{p:B,f:u}=this.wNAF(Y);L=C.constTimeNegate(k,L),B=C.constTimeNegate(J,B),B=new v(n.mul(B.px,O.beta),B.py,B.pz),D=L.add(B),F=X.add(u)}else{const{p:k,f:U}=this.wNAF(P);D=k,F=U}return v.normalizeZ([D,F])[0]}multiplyAndAddUnsafe(T,P,D){const F=v.BASE,O=(U,J)=>J===pc||J===Mi||!U.equals(F)?U.multiplyUnsafe(J):U.multiply(J),k=O(this,P).add(O(T,D));return k.is0()?void 0:k}toAffine(T){const{px:P,py:D,pz:F}=this,O=this.is0();T==null&&(T=O?n.ONE:n.inv(F));const k=n.mul(P,T),U=n.mul(D,T),J=n.mul(F,T);if(O)return{x:n.ZERO,y:n.ZERO};if(!n.eql(J,n.ONE))throw new Error("invZ was invalid");return{x:k,y:U}}isTorsionFree(){const{h:T,isTorsionFree:P}=e;if(T===Mi)return!0;if(P)return P(v,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:T,clearCofactor:P}=e;return T===Mi?this:P?P(v,this):this.multiplyUnsafe(e.h)}toRawBytes(T=!0){return this.assertValidity(),r(v,this,T)}toHex(T=!0){return rp(this.toRawBytes(T))}}v.BASE=new v(e.Gx,e.Gy,n.ONE),v.ZERO=new v(n.ZERO,n.ONE,n.ZERO);const E=e.nBitLength,C=Qoe(v,e.endo?Math.ceil(E/2):E);return{CURVE:e,ProjectivePoint:v,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:s}}function tce(t){const e=fL(t);return Ib(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function nce(t){const e=tce(t),{Fp:n,n:r}=e,a=n.BYTES+1,i=2*n.BYTES+1;function s(y){return pcrp(ip(y,e.nByteLength));function M(y){const g=r>>Mi;return y>g}function T(y){return M(y)?o(-y):y}const P=(y,g,w)=>Nf(y.slice(g,w));class D{constructor(g,w,x){this.r=g,this.s=w,this.recovery=x,this.assertValidity()}static fromCompact(g){const w=e.nByteLength;return g=fs("compactSignature",g,w*2),new D(P(g,0,w),P(g,w,2*w))}static fromDER(g){const{r:w,s:x}=ef.toSig(fs("DER",g));return new D(w,x)}assertValidity(){if(!E(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!E(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(g){return new D(this.r,this.s,g)}recoverPublicKey(g){const{r:w,s:x,recovery:f}=this,m=Y(fs("msgHash",g));if(f==null||![0,1,2,3].includes(f))throw new Error("recovery id invalid");const A=f===2||f===3?w+e.n:w;if(A>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const _=f&1?"03":"02",S=h.fromHex(_+C(A)),$=c(A),V=o(-m*$),I=o(x*$),W=h.BASE.multiplyAndAddUnsafe(S,V,I);if(!W)throw new Error("point at infinify");return W.assertValidity(),W}hasHighS(){return M(this.s)}normalizeS(){return this.hasHighS()?new D(this.r,o(-this.s),this.recovery):this}toDERRawBytes(){return ap(this.toDERHex())}toDERHex(){return ef.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return ap(this.toCompactHex())}toCompactHex(){return C(this.r)+C(this.s)}}const F={isValidPrivateKey(y){try{return b(y),!0}catch{return!1}},normPrivateKeyToScalar:b,randomPrivateKey:()=>{const y=uL(e.n);return Koe(e.randomBytes(y),e.n)},precompute(y=8,g=h.BASE){return g._setWindowSize(y),g.multiply(BigInt(3)),g}};function O(y,g=!0){return h.fromPrivateKey(y).toRawBytes(g)}function k(y){const g=y instanceof Uint8Array,w=typeof y=="string",x=(g||w)&&y.length;return g?x===a||x===i:w?x===2*a||x===2*i:y instanceof h}function U(y,g,w=!0){if(k(y))throw new Error("first arg must be private key");if(!k(g))throw new Error("second arg must be public key");return h.fromHex(g).multiply(b(y)).toRawBytes(w)}const J=e.bits2int||function(y){const g=Nf(y),w=y.length*8-e.nBitLength;return w>0?g>>BigInt(w):g},Y=e.bits2int_modN||function(y){return o(J(y))},L=FA(e.nBitLength);function X(y){if(typeof y!="bigint")throw new Error("bigint expected");if(!(pc<=y&&yZ in w))throw new Error("sign() legacy options not supported");const{hash:x,randomBytes:f}=e;let{lowS:m,prehash:A,extraEntropy:_}=w;m==null&&(m=!0),y=fs("msgHash",y),A&&(y=fs("prehashed msgHash",x(y)));const S=Y(y),$=b(g),V=[X($),X(S)];if(_!=null){const Z=_===!0?f(n.BYTES):_;V.push(fs("extraEntropy",Z))}const I=wm(...V),W=S;function z(Z){const le=J(Z);if(!E(le))return;const ue=c(le),G=h.BASE.multiply(le).toAffine(),j=o(G.x);if(j===pc)return;const ne=o(ue*o(W+j*$));if(ne===pc)return;let se=(G.x===j?0:2)|Number(G.y&Mi),Q=ne;return m&&M(ne)&&(Q=T(ne),se^=1),new D(j,Q,se)}return{seed:I,k2sig:z}}const u={lowS:e.lowS,prehash:!1},d={lowS:e.lowS,prehash:!1};function p(y,g,w=u){const{seed:x,k2sig:f}=B(y,g,w),m=e;return oL(m.hash.outputLen,m.nByteLength,m.hmac)(x,f)}h.BASE._setWindowSize(8);function l(y,g,w,x=d){var G;const f=y;if(g=fs("msgHash",g),w=fs("publicKey",w),"strict"in x)throw new Error("options.strict was renamed to lowS");const{lowS:m,prehash:A}=x;let _,S;try{if(typeof f=="string"||f instanceof Uint8Array)try{_=D.fromDER(f)}catch(j){if(!(j instanceof ef.Err))throw j;_=D.fromCompact(f)}else if(typeof f=="object"&&typeof f.r=="bigint"&&typeof f.s=="bigint"){const{r:j,s:ne}=f;_=new D(j,ne)}else throw new Error("PARSE");S=h.fromHex(w)}catch(j){if(j.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(m&&_.hasHighS())return!1;A&&(g=e.hash(g));const{r:$,s:V}=_,I=Y(g),W=c(V),z=o(I*W),Z=o($*W),le=(G=h.BASE.multiplyAndAddUnsafe(S,z,Z))==null?void 0:G.toAffine();return le?o(le.x)===$:!1}return{CURVE:e,getPublicKey:O,getSharedSecret:U,sign:p,verify:l,ProjectivePoint:h,Signature:D,utils:F}}class dL extends vA{constructor(e,n){super(),this.finished=!1,this.destroyed=!1,k$(e);const r=np(n);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const a=this.blockLen,i=new Uint8Array(a);i.set(r.length>a?e.create().update(r).digest():r);for(let s=0;snew dL(t,e).update(n).digest();jx.create=(t,e)=>new dL(t,e);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function rce(t){return{hash:t,hmac:(e,...n)=>jx(t,e,Mse(...n)),randomBytes:Dse}}function ace(t,e){const n=r=>nce({...t,...rce(r)});return Object.freeze({...n(e),create:n})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const hL=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),AF=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ice=BigInt(1),K7=BigInt(2),CF=(t,e)=>(t+e/K7)/e;function sce(t){const e=hL,n=BigInt(3),r=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),h=t*t*t%e,b=h*h*t%e,v=pi(b,n,e)*b%e,E=pi(v,n,e)*b%e,C=pi(E,K7,e)*h%e,M=pi(C,a,e)*C%e,T=pi(M,i,e)*M%e,P=pi(T,o,e)*T%e,D=pi(P,c,e)*P%e,F=pi(D,o,e)*T%e,O=pi(F,n,e)*b%e,k=pi(O,s,e)*M%e,U=pi(k,r,e)*h%e,J=pi(U,K7,e);if(!Z7.eql(Z7.sqr(J),t))throw new Error("Cannot find square root");return J}const Z7=Woe(hL,void 0,void 0,{sqrt:sce}),fl=ace({a:BigInt(0),b:BigInt(7),Fp:Z7,n:AF,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=AF,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-ice*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),o=CF(i*t,e),c=CF(-r*t,e);let h=Ca(t-o*n-c*a,e),b=Ca(-o*r-c*i,e);const v=h>s,E=b>s;if(v&&(h=e-h),E&&(b=e-b),h>s||b>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:v,k1:h,k2neg:E,k2:b}}}},Vp);BigInt(0);fl.ProjectivePoint;function oce(){const t=Rp(),{currentNetwork:e}=ci(),n=S$({initialValues:{address:""},validate:r=>{const a={};return Rr(r.address)?a:{address:"Invalid Address"}},onSubmit:r=>{t(`/safe/${e}/${r.address}`)}});return we.jsxs("form",{onSubmit:n.handleSubmit,children:[we.jsxs(rr,{hasError:!n.isValid,children:[we.jsx(rr.Label,{children:"Safe Address:"}),we.jsx(mm,{value:n.values.address,onChange:({event:r})=>n.handleChange(r),onBlur:n.handleBlur,name:"address"}),n.errors.address&&we.jsx(rr.Error,{children:n.errors.address}),we.jsx(rr.Helper,{children:"Remember to select the correct network"})]}),we.jsx(rt,{children:we.jsx(Dn,{type:"submit",children:"Connect to Safe"})})]})}function cce(){const t=Rp(),e=ci().currentNetwork;return we.jsx(rt,{padding:10,justify:"space-between",gap:6,direction:"column",children:we.jsxs(X_,{children:[we.jsx(rt,{paddingBottom:4,gap:4,children:we.jsx(oce,{})}),we.jsx(gN,{}),we.jsx(rt,{paddingTop:4,children:we.jsx(Dn,{onClick:n=>{n.preventDefault(),t(`/safe/${e}/create`)},children:"Create a New Safe"})})]})})}const Hx="6.10.0";function lce(t,e,n){const r=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[r])))).reduce((r,a,i)=>(r[e[i]]=a,r),{})}function et(t,e,n){for(let r in e){let a=e[r];const i=n?n[r]:null;i&&lce(a,i,r),Object.defineProperty(t,r,{enumerable:!0,value:a,writable:!1})}}function M0(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(M0).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let n="0x";for(let r=0;r>4],n+=e[t[r]&15];return n}if(typeof t=="object"&&typeof t.toJSON=="function")return M0(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(n=>`${M0(n)}: ${M0(t[n])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Wn(t,e){return t&&t.code===e}function Ob(t){return Wn(t,"CALL_EXCEPTION")}function mn(t,e,n){let r=t;{const i=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${M0(n)}`);for(const s in n){if(s==="shortMessage")continue;const o=n[s];i.push(s+"="+M0(o))}}i.push(`code=${e}`),i.push(`version=${Hx}`),i.length&&(t+=" ("+i.join(", ")+")")}let a;switch(e){case"INVALID_ARGUMENT":a=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":a=new RangeError(t);break;default:a=new Error(t)}return et(a,{code:e}),n&&Object.assign(a,n),a.shortMessage==null&&et(a,{shortMessage:r}),a}function Be(t,e,n,r){if(!t)throw mn(e,n,r)}function ce(t,e,n,r){Be(t,e,"INVALID_ARGUMENT",{argument:n,value:r})}function zx(t,e,n){n==null&&(n=""),n&&(n=": "+n),Be(t>=e,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:t,expectedCount:e}),Be(t<=e,"too many arguemnts"+n,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const uce=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"é".normalize("NFD")!=="é")throw new Error("broken");t.push(e)}catch{}return t},[]);function Gx(t){Be(uce.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function Io(t,e,n){if(n==null&&(n=""),t!==e){let r=n,a="new";n&&(r+=".",a+=" "+n),Be(!1,`private constructor; use ${r}from* methods`,"UNSUPPORTED_OPERATION",{operation:a})}}function pL(t,e,n){if(t instanceof Uint8Array)return n?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x([0-9a-f][0-9a-f])*$/i)){const r=new Uint8Array((t.length-2)/2);let a=2;for(let i=0;i>4]+SF[a&15]}return n}function Ut(t){return"0x"+t.map(e=>Ve(e).substring(2)).join("")}function Ec(t){return pn(t,!0)?(t.length-2)/2:Ze(t).length}function Jt(t,e,n){const r=Ze(t);return n!=null&&n>r.length&&Be(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:r,length:r.length,offset:n}),Ve(r.slice(e??0,n??r.length))}function yL(t){let e=Ve(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function mL(t,e,n){const r=Ze(t);Be(e>=r.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(r),length:e,offset:e+1});const a=new Uint8Array(e);return a.fill(0),n?a.set(r,e-r.length):a.set(r,0),Ve(a)}function Hi(t,e){return mL(t,e,!0)}function Pb(t,e){return mL(t,e,!1)}const qx=BigInt(0),As=BigInt(1),F0=9007199254740991;function sp(t,e){const n=qp(t,"value"),r=BigInt(lt(e,"width"));if(Be(n>>r===qx,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),n>>r-As){const a=(As<=-F0&&t<=F0,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(n){ce(!1,`invalid BigNumberish string: ${n.message}`,e||"value",t)}}ce(!1,"invalid BigNumberish value",e||"value",t)}function qp(t,e){const n=it(t,e);return Be(n>=qx,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),n}const TF="0123456789abcdef";function gd(t){if(t instanceof Uint8Array){let e="0x0";for(const n of t)e+=TF[n>>4],e+=TF[n&15];return BigInt(e)}return it(t)}function lt(t,e){switch(typeof t){case"bigint":return ce(t>=-F0&&t<=F0,"overflow",e||"value",t),Number(t);case"number":return ce(Number.isInteger(t),"underflow",e||"value",t),ce(t>=-F0&&t<=F0,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return lt(BigInt(t),e)}catch(n){ce(!1,`invalid numeric string: ${n.message}`,e||"value",t)}}ce(!1,"invalid numeric value",e||"value",t)}function DA(t){return lt(gd(t))}function Fs(t,e){let r=qp(t,"value").toString(16);if(e==null)r.length%2&&(r="0"+r);else{const a=lt(e,"width");for(Be(a*2>=r.length,`value exceeds width (${a} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length>6===2;s++)i++;return i}return t==="OVERRUN"?n.length-e-1:0}function pce(t,e,n,r,a){return t==="OVERLONG"?(ce(typeof a=="number","invalid bad code point for replacement","badCodepoint",a),r.push(a),0):(r.push(65533),bL(t,e,n))}const PA=Object.freeze({error:hce,ignore:bL,replace:pce});function gL(t,e){e==null&&(e=PA.error);const n=Ze(t,"bytes"),r=[];let a=0;for(;a>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?a+=e("UNEXPECTED_CONTINUE",a-1,n,r):a+=e("BAD_PREFIX",a-1,n,r);continue}if(a-1+s>=n.length){a+=e("OVERRUN",a-1,n,r);continue}let c=i&(1<<8-s-1)-1;for(let h=0;h1114111){a+=e("OUT_OF_RANGE",a-1-s,n,r,c);continue}if(c>=55296&&c<=57343){a+=e("UTF16_SURROGATE",a-1-s,n,r,c);continue}if(c<=o){a+=e("OVERLONG",a-1-s,n,r,c);continue}r.push(c)}}return r}function Kn(t,e){e!=null&&(Gx(e),t=t.normalize(e));let n=[];for(let r=0;r>6|192),n.push(a&63|128);else if((a&64512)==55296){r++;const i=t.charCodeAt(r);ce(r>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128)}else n.push(a>>12|224),n.push(a>>6&63|128),n.push(a&63|128)}return new Uint8Array(n)}function yce(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function fu(t,e){return yce(gL(t,e))}function xL(t,e){return gL(Kn(t,e))}function vL(t){async function e(n,r){const a=n.url.split(":")[0].toLowerCase();Be(a==="http"||a==="https",`unsupported protocol ${a}`,"UNSUPPORTED_OPERATION",{info:{protocol:a},operation:"request"}),Be(a==="https"||!n.credentials||n.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i;if(r){const v=new AbortController;i=v.signal,r.addListener(()=>{v.abort()})}const s={method:n.method,headers:new Headers(Array.from(n)),body:n.body||void 0,signal:i},o=await fetch(n.url,s),c={};o.headers.forEach((v,E)=>{c[E.toLowerCase()]=v});const h=await o.arrayBuffer(),b=h==null?null:new Uint8Array(h);return{statusCode:o.status,statusMessage:o.statusText,headers:c,body:b}}return e}const mce=12,bce=250;let BF=vL();const gce=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),xce=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let W4=!1;async function wL(t,e){try{const n=t.match(gce);if(!n)throw new Error("invalid data");return new xo(200,"OK",{"content-type":n[1]||"text/plain"},n[2]?IA(n[3]):vce(n[3]))}catch{return new xo(599,"BAD REQUEST (invalid data: URI)",{},null,new $r(t))}}function EL(t){async function e(n,r){try{const a=n.match(xce);if(!a)throw new Error("invalid link");return new $r(`${t}${a[2]}`)}catch{return new xo(599,"BAD REQUEST (invalid IPFS URI)",{},null,new $r(n))}}return e}const j2={data:wL,ipfs:EL("https://gateway.ipfs.io/ipfs/")},_L=new WeakMap;var sf,_l;class RA{constructor(e){xe(this,sf,void 0);xe(this,_l,void 0);re(this,sf,[]),re(this,_l,!1),_L.set(e,()=>{if(!H(this,_l)){re(this,_l,!0);for(const n of H(this,sf))setTimeout(()=>{n()},0);re(this,sf,[])}})}addListener(e){Be(!H(this,_l),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),H(this,sf).push(e)}get cancelled(){return H(this,_l)}checkSignal(){Be(!this.cancelled,"cancelled","CANCELLED",{})}}sf=new WeakMap,_l=new WeakMap;function H2(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var eh,th,ds,Xo,nh,rh,fr,Ga,Yo,of,cf,lf,eo,ec,Al,uf,uy;const $6=class $6{constructor(e){xe(this,uf);xe(this,eh,void 0);xe(this,th,void 0);xe(this,ds,void 0);xe(this,Xo,void 0);xe(this,nh,void 0);xe(this,rh,void 0);xe(this,fr,void 0);xe(this,Ga,void 0);xe(this,Yo,void 0);xe(this,of,void 0);xe(this,cf,void 0);xe(this,lf,void 0);xe(this,eo,void 0);xe(this,ec,void 0);xe(this,Al,void 0);re(this,rh,String(e)),re(this,eh,!1),re(this,th,!0),re(this,ds,{}),re(this,Xo,""),re(this,nh,3e5),re(this,ec,{slotInterval:bce,maxAttempts:mce}),re(this,Al,null)}get url(){return H(this,rh)}set url(e){re(this,rh,String(e))}get body(){return H(this,fr)==null?null:new Uint8Array(H(this,fr))}set body(e){if(e==null)re(this,fr,void 0),re(this,Ga,void 0);else if(typeof e=="string")re(this,fr,Kn(e)),re(this,Ga,"text/plain");else if(e instanceof Uint8Array)re(this,fr,e),re(this,Ga,"application/octet-stream");else if(typeof e=="object")re(this,fr,Kn(JSON.stringify(e))),re(this,Ga,"application/json");else throw new Error("invalid body")}hasBody(){return H(this,fr)!=null}get method(){return H(this,Xo)?H(this,Xo):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),re(this,Xo,String(e).toUpperCase())}get headers(){const e=Object.assign({},H(this,ds));return H(this,Yo)&&(e.authorization=`Basic ${OA(Kn(H(this,Yo)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&H(this,Ga)&&(e["content-type"]=H(this,Ga)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,n){H(this,ds)[String(e).toLowerCase()]=String(n)}clearHeaders(){re(this,ds,{})}[Symbol.iterator](){const e=this.headers,n=Object.keys(e);let r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",e),re(this,nh,e)}get preflightFunc(){return H(this,of)||null}set preflightFunc(e){re(this,of,e)}get processFunc(){return H(this,cf)||null}set processFunc(e){re(this,cf,e)}get retryFunc(){return H(this,lf)||null}set retryFunc(e){re(this,lf,e)}get getUrlFunc(){return H(this,Al)||BF}set getUrlFunc(e){re(this,Al,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(H(this,ec).slotInterval=e.slotInterval),e.maxAttempts!=null&&(H(this,ec).maxAttempts=e.maxAttempts)}send(){return Be(H(this,eo)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),re(this,eo,new RA(this)),ke(this,uf,uy).call(this,0,MF()+this.timeout,0,this,new xo(0,"",{},null,this))}cancel(){Be(H(this,eo)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=_L.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const n=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();Be(this.method==="GET"&&(n!=="https"||r!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const a=new $6(e);return a.method="GET",a.allowGzip=this.allowGzip,a.timeout=this.timeout,re(a,ds,Object.assign({},H(this,ds))),H(this,fr)&&re(a,fr,new Uint8Array(H(this,fr))),re(a,Ga,H(this,Ga)),a}clone(){const e=new $6(this.url);return re(e,Xo,H(this,Xo)),H(this,fr)&&re(e,fr,H(this,fr)),re(e,Ga,H(this,Ga)),re(e,ds,Object.assign({},H(this,ds))),re(e,Yo,H(this,Yo)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),re(e,of,H(this,of)),re(e,cf,H(this,cf)),re(e,lf,H(this,lf)),re(e,Al,H(this,Al)),e}static lockConfig(){W4=!0}static getGateway(e){return j2[e.toLowerCase()]||null}static registerGateway(e,n){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(W4)throw new Error("gateways locked");j2[e]=n}static registerGetUrl(e){if(W4)throw new Error("gateways locked");BF=e}static createGetUrlFunc(e){return vL()}static createDataGateway(){return wL}static createIpfsGatewayFunc(e){return EL(e)}};eh=new WeakMap,th=new WeakMap,ds=new WeakMap,Xo=new WeakMap,nh=new WeakMap,rh=new WeakMap,fr=new WeakMap,Ga=new WeakMap,Yo=new WeakMap,of=new WeakMap,cf=new WeakMap,lf=new WeakMap,eo=new WeakMap,ec=new WeakMap,Al=new WeakMap,uf=new WeakSet,uy=async function(e,n,r,a,i){var b,v,E;if(e>=H(this,ec).maxAttempts)return i.makeServerError("exceeded maximum retry limit");Be(MF()<=n,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:a}),r>0&&await wce(r);let s=this.clone();const o=(s.url.split(":")[0]||"").toLowerCase();if(o in j2){const C=await j2[o](s.url,H2(H(a,eo)));if(C instanceof xo){let M=C;if(this.processFunc){H2(H(a,eo));try{M=await this.processFunc(s,M)}catch(T){(T.throttle==null||typeof T.stall!="number")&&M.makeServerError("error in post-processing function",T).assertOk()}}return M}s=C}this.preflightFunc&&(s=await this.preflightFunc(s));const c=await this.getUrlFunc(s,H2(H(a,eo)));let h=new xo(c.statusCode,c.statusMessage,c.headers,c.body,a);if(h.statusCode===301||h.statusCode===302){try{const C=h.headers.location||"";return ke(b=s.redirect(C),uf,uy).call(b,e+1,n,0,a,h)}catch{}return h}else if(h.statusCode===429&&(this.retryFunc==null||await this.retryFunc(s,h,e))){const C=h.headers["retry-after"];let M=H(this,ec).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof C=="string"&&C.match(/^[1-9][0-9]*$/)&&(M=parseInt(C)),ke(v=s.clone(),uf,uy).call(v,e+1,n,M,a,h)}if(this.processFunc){H2(H(a,eo));try{h=await this.processFunc(s,h)}catch(C){(C.throttle==null||typeof C.stall!="number")&&h.makeServerError("error in post-processing function",C).assertOk();let M=H(this,ec).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return C.stall>=0&&(M=C.stall),ke(E=s.clone(),uf,uy).call(E,e+1,n,M,a,h)}}return h};let $r=$6;var Gm,Vm,qm,hs,ah,ff;const LT=class LT{constructor(e,n,r,a,i){xe(this,Gm,void 0);xe(this,Vm,void 0);xe(this,qm,void 0);xe(this,hs,void 0);xe(this,ah,void 0);xe(this,ff,void 0);re(this,Gm,e),re(this,Vm,n),re(this,qm,Object.keys(r).reduce((s,o)=>(s[o.toLowerCase()]=String(r[o]),s),{})),re(this,hs,a==null?null:new Uint8Array(a)),re(this,ah,i||null),re(this,ff,{message:""})}toString(){return``}get statusCode(){return H(this,Gm)}get statusMessage(){return H(this,Vm)}get headers(){return Object.assign({},H(this,qm))}get body(){return H(this,hs)==null?null:new Uint8Array(H(this,hs))}get bodyText(){try{return H(this,hs)==null?"":fu(H(this,hs))}catch{Be(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{Be(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,n=Object.keys(e);let r=0;return{next:()=>{if(r=0,"invalid stall timeout","stall",n);const r=new Error(e||"throttling requests");throw et(r,{stall:n,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return H(this,hs)!=null}get request(){return H(this,ah)}ok(){return H(this,ff).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:n}=H(this,ff);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`),Be(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:n})}};Gm=new WeakMap,Vm=new WeakMap,qm=new WeakMap,hs=new WeakMap,ah=new WeakMap,ff=new WeakMap;let xo=LT;function MF(){return new Date().getTime()}function vce(t){return Kn(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16))))}function wce(t){return new Promise(e=>setTimeout(e,t))}const Ece=BigInt(-1),os=BigInt(0),D0=BigInt(1),_ce=BigInt(5),Ud={};let q0="0000";for(;q0.length<80;)q0+=q0;function Ou(t){let e=q0;for(;e.length=-a&&tos?t=sp(bc(t,r),r):t=-sp(bc(-t,r),r)}else{const a=D0<=0&&ti[o]==null?h:(ce(typeof i[o]===c,"invalid fixed format ("+o+" not "+c+")","format."+o,i[o]),i[o]);e=s("signed","boolean",e),n=s("width","number",n),r=s("decimals","number",r)}ce(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),ce(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r);const a=(e?"":"u")+"fixed"+String(n)+"x"+String(r);return{signed:e,width:n,decimals:r,name:a}}function Ace(t,e){let n="";t0?r*=Ou(a):a<0&&(n*=Ou(-a)),nr?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=H(this,Zt);return H(this,Zt)os&&(e+=H(this,la)-D0),e=H(this,Zt)/H(this,la)*H(this,la),ke(this,ys,Ho).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const n=this.decimals-e,r=_ce*Ou(n-1);let a=this.value+r;const i=Ou(n);return a=a/i*i,I1(a,H(this,ps),"round"),new gl(Ud,a,H(this,ps))}isZero(){return H(this,Zt)===os}isNegative(){return H(this,Zt)0){const c=Ou(o);Be(s%c===os,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=c}else o<0&&(s*=Ou(-o));return I1(s,i,"fromValue"),new gl(Ud,s,i)}static fromString(e,n){const r=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);ce(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",e);const a=K4(n);let i=r[2]||"0",s=r[3]||"";for(;s.length{Be(r<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:r})};if(t[e]>=248){const r=t[e]-247;n(e+1+r);const a=FF(t,e+1,r);return n(e+1+r+a),DF(t,e,e+1+r,r+a)}else if(t[e]>=192){const r=t[e]-192;return n(e+1+r),DF(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;n(e+1+r);const a=FF(t,e+1,r);n(e+1+r+a);const i=Ve(t.slice(e+1+r,e+1+r+a));return{consumed:1+r+a,result:i}}else if(t[e]>=128){const r=t[e]-128;n(e+1+r);const a=Ve(t.slice(e+1,e+1+r));return{consumed:1+r,result:a}}return{consumed:1,result:Cce(t[e])}}function Nb(t){const e=Ze(t,"data"),n=AL(e,0);return ce(n.consumed===e.length,"unexpected junk after rlp payload","data",t),n.result}function kF(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function CL(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(i){r=r.concat(CL(i))}),r.length<=55)return r.unshift(192+r.length),r;const a=kF(r.length);return a.unshift(247+a.length),a.concat(r)}const e=Array.prototype.slice.call(Ze(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=kF(e.length);return n.unshift(183+n.length),n.concat(e)}const IF="0123456789abcdef";function Jf(t){let e="0x";for(const n of CL(t))e+=IF[n>>4],e+=IF[n&15];return e}const SL=["wei","kwei","mwei","gwei","szabo","finney","ether"];function NA(t,e){let n=18;if(typeof e=="string"){const r=SL.indexOf(e);ce(r>=0,"invalid unit","unit",e),n=3*r}else e!=null&&(n=lt(e,"unit"));return op.fromValue(t,n,{decimals:n,width:512}).toString()}function $A(t,e){ce(typeof t=="string","value must be a string","value",t);let n=18;if(typeof e=="string"){const r=SL.indexOf(e);ce(r>=0,"invalid unit","unit",e),n=3*r}else e!=null&&(n=lt(e,"unit"));return op.fromString(t,{decimals:n,width:512}).value}function TL(t){return NA(t,18)}function BL(t){return $A(t,18)}function LA(t){const e=Ze(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const n=Ve(e);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}const ya=32,tw=new Uint8Array(ya),Sce=["then"],z2={};function O1(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw n.error=e,n}var Cl;const Qy=class Qy extends Array{constructor(...n){const r=n[0];let a=n[1],i=(n[2]||[]).slice(),s=!0;r!==z2&&(a=n,i=[],s=!1);super(a.length);xe(this,Cl,void 0);a.forEach((c,h)=>{this[h]=c});const o=i.reduce((c,h)=>(typeof h=="string"&&c.set(h,(c.get(h)||0)+1),c),new Map);if(re(this,Cl,Object.freeze(a.map((c,h)=>{const b=i[h];return b!=null&&o.get(b)===1?b:null}))),!!s)return Object.freeze(this),new Proxy(this,{get:(c,h,b)=>{if(typeof h=="string"){if(h.match(/^[0-9]+$/)){const E=lt(h,"%index");if(E<0||E>=this.length)throw new RangeError("out of result range");const C=c[E];return C instanceof Error&&O1(`index ${E}`,C),C}if(Sce.indexOf(h)>=0)return Reflect.get(c,h,b);const v=c[h];if(v instanceof Function)return function(...E){return v.apply(this===b?c:this,E)};if(!(h in c))return c.getValue.apply(this===b?c:this,[h])}return Reflect.get(c,h,b)}})}toArray(){const n=[];return this.forEach((r,a)=>{r instanceof Error&&O1(`index ${a}`,r),n.push(r)}),n}toObject(){return H(this,Cl).reduce((n,r,a)=>(Be(r!=null,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),r in n||(n[r]=this.getValue(r)),n),{})}slice(n,r){n==null&&(n=0),n<0&&(n+=this.length,n<0&&(n=0)),r==null&&(r=this.length),r<0&&(r+=this.length,r<0&&(r=0)),r>this.length&&(r=this.length);const a=[],i=[];for(let s=n;s{H(this,nc)[e]=OF(n)}}}nc=new WeakMap,df=new WeakMap,ih=new WeakSet,W3=function(e){return H(this,nc).push(e),re(this,df,H(this,df)+e.length),e.length};var wa,Va,hf,pf,Sl,Jm,aw,L6,FL;const UT=class UT{constructor(e,n,r){xe(this,Jm);xe(this,L6);ge(this,"allowLoose");xe(this,wa,void 0);xe(this,Va,void 0);xe(this,hf,void 0);xe(this,pf,void 0);xe(this,Sl,void 0);et(this,{allowLoose:!!n}),re(this,wa,ar(e)),re(this,hf,0),re(this,pf,null),re(this,Sl,r??1024),re(this,Va,0)}get data(){return Ve(H(this,wa))}get dataLength(){return H(this,wa).length}get consumed(){return H(this,Va)}get bytes(){return new Uint8Array(H(this,wa))}subReader(e){const n=new UT(H(this,wa).slice(H(this,Va)+e),this.allowLoose,H(this,Sl));return re(n,pf,this),n}readBytes(e,n){let r=ke(this,L6,FL).call(this,0,e,!!n);return ke(this,Jm,aw).call(this,e),re(this,Va,H(this,Va)+r.length),r.slice(0,e)}readValue(){return gd(this.readBytes(ya))}readIndex(){return DA(this.readBytes(ya))}};wa=new WeakMap,Va=new WeakMap,hf=new WeakMap,pf=new WeakMap,Sl=new WeakMap,Jm=new WeakSet,aw=function(e){var n;if(H(this,pf))return ke(n=H(this,pf),Jm,aw).call(n,e);re(this,hf,H(this,hf)+e),Be(H(this,Sl)<1||H(this,hf)<=H(this,Sl)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${H(this,Sl)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:ar(H(this,wa)),offset:H(this,Va),length:e,info:{bytesRead:H(this,hf),dataLength:this.dataLength}})},L6=new WeakSet,FL=function(e,n,r){let a=Math.ceil(n/ya)*ya;return H(this,Va)+a>H(this,wa).length&&(this.allowLoose&&r&&H(this,Va)+n<=H(this,wa).length?a=n:Be(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:ar(H(this,wa)),length:H(this,wa).length,offset:H(this,Va)+a})),H(this,wa).slice(H(this,Va),H(this,Va)+a)};let rw=UT;function Tce(t,e,n,r){k$(t);const a=j$({dkLen:32,asyncTick:10},r),{c:i,dkLen:s,asyncTick:o}=a;if(Ja(i),Ja(s),Ja(o),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=np(e),h=np(n),b=new Uint8Array(s),v=jx.create(t,c),E=v._cloneInto().update(h);return{c:i,dkLen:s,asyncTick:o,DK:b,PRF:v,PRFSalt:E}}function Bce(t,e,n,r,a){return t.destroy(),e.destroy(),r&&r.destroy(),a.fill(0),n}function UA(t,e,n,r){const{c:a,dkLen:i,DK:s,PRF:o,PRFSalt:c}=Tce(t,e,n,r);let h;const b=new Uint8Array(4),v=q3(b),E=new Uint8Array(o.outputLen);for(let C=1,M=0;MBigInt(t))),tl=new Uint32Array(80),nl=new Uint32Array(80);let Dce=class extends _A{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:n,Bh:r,Bl:a,Ch:i,Cl:s,Dh:o,Dl:c,Eh:h,El:b,Fh:v,Fl:E,Gh:C,Gl:M,Hh:T,Hl:P}=this;return[e,n,r,a,i,s,o,c,h,b,v,E,C,M,T,P]}set(e,n,r,a,i,s,o,c,h,b,v,E,C,M,T,P){this.Ah=e|0,this.Al=n|0,this.Bh=r|0,this.Bl=a|0,this.Ch=i|0,this.Cl=s|0,this.Dh=o|0,this.Dl=c|0,this.Eh=h|0,this.El=b|0,this.Fh=v|0,this.Fl=E|0,this.Gh=C|0,this.Gl=M|0,this.Hh=T|0,this.Hl=P|0}process(e,n){for(let O=0;O<16;O++,n+=4)tl[O]=e.getUint32(n),nl[O]=e.getUint32(n+=4);for(let O=16;O<80;O++){const k=tl[O-15]|0,U=nl[O-15]|0,J=At.rotrSH(k,U,1)^At.rotrSH(k,U,8)^At.shrSH(k,U,7),Y=At.rotrSL(k,U,1)^At.rotrSL(k,U,8)^At.shrSL(k,U,7),L=tl[O-2]|0,X=nl[O-2]|0,B=At.rotrSH(L,X,19)^At.rotrBH(L,X,61)^At.shrSH(L,X,6),u=At.rotrSL(L,X,19)^At.rotrBL(L,X,61)^At.shrSL(L,X,6),d=At.add4L(Y,u,nl[O-7],nl[O-16]),p=At.add4H(d,J,B,tl[O-7],tl[O-16]);tl[O]=p|0,nl[O]=d|0}let{Ah:r,Al:a,Bh:i,Bl:s,Ch:o,Cl:c,Dh:h,Dl:b,Eh:v,El:E,Fh:C,Fl:M,Gh:T,Gl:P,Hh:D,Hl:F}=this;for(let O=0;O<80;O++){const k=At.rotrSH(v,E,14)^At.rotrSH(v,E,18)^At.rotrBH(v,E,41),U=At.rotrSL(v,E,14)^At.rotrSL(v,E,18)^At.rotrBL(v,E,41),J=v&C^~v&T,Y=E&M^~E&P,L=At.add5L(F,U,Y,Fce[O],nl[O]),X=At.add5H(L,D,k,J,Mce[O],tl[O]),B=L|0,u=At.rotrSH(r,a,28)^At.rotrBH(r,a,34)^At.rotrBH(r,a,39),d=At.rotrSL(r,a,28)^At.rotrBL(r,a,34)^At.rotrBL(r,a,39),p=r&i^r&o^i&o,l=a&s^a&c^s&c;D=T|0,F=P|0,T=C|0,P=M|0,C=v|0,M=E|0,{h:v,l:E}=At.add(h|0,b|0,X|0,B|0),h=o|0,b=c|0,o=i|0,c=s|0,i=r|0,s=a|0;const y=At.add3L(B,d,l);r=At.add3H(y,X,u,p),a=y|0}({h:r,l:a}=At.add(this.Ah|0,this.Al|0,r|0,a|0)),{h:i,l:s}=At.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:o,l:c}=At.add(this.Ch|0,this.Cl|0,o|0,c|0),{h,l:b}=At.add(this.Dh|0,this.Dl|0,h|0,b|0),{h:v,l:E}=At.add(this.Eh|0,this.El|0,v|0,E|0),{h:C,l:M}=At.add(this.Fh|0,this.Fl|0,C|0,M|0),{h:T,l:P}=At.add(this.Gh|0,this.Gl|0,T|0,P|0),{h:D,l:F}=At.add(this.Hh|0,this.Hl|0,D|0,F|0),this.set(r,a,i,s,o,c,h,b,v,E,C,M,T,P,D,F)}roundClean(){tl.fill(0),nl.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}};const jA=Ox(()=>new Dce);var PF={};function kce(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof PF<"u")return PF;throw new Error("unable to locate global object")}const RF=kce(),NF=RF.crypto||RF.msCrypto;function DL(t){switch(t){case"sha256":return Vp.create();case"sha512":return jA.create()}ce(!1,"invalid hashing algorithm name","algorithm",t)}function Ice(t,e){const n={sha256:Vp,sha512:jA}[t];return ce(n!=null,"invalid hmac algorithm","algorithm",t),jx.create(n,e)}function Oce(t,e,n,r,a){const i={sha256:Vp,sha512:jA}[a];return ce(i!=null,"invalid pbkdf2 algorithm","algorithm",a),UA(i,t,e,{c:n,dkLen:r})}function Pce(t){Be(NF!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),ce(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return NF.getRandomValues(e),e}let kL=!1;const IL=function(t,e,n){return Ice(t,e).update(n).digest()};let OL=IL;function zc(t,e,n){const r=Ze(e,"key"),a=Ze(n,"data");return Ve(OL(t,r,a))}zc._=IL;zc.lock=function(){kL=!0};zc.register=function(t){if(kL)throw new Error("computeHmac is locked");OL=t};Object.freeze(zc);let PL=!1;const RL=function(t){return q$(t)};let NL=RL;function zt(t){const e=Ze(t,"data");return Ve(NL(e))}zt._=RL;zt.lock=function(){PL=!0};zt.register=function(t){if(PL)throw new TypeError("keccak256 is locked");NL=t};Object.freeze(zt);let $L=!1;const LL=function(t){return woe(t)};let UL=LL;function Gc(t){const e=Ze(t,"data");return Ve(UL(e))}Gc._=LL;Gc.lock=function(){$L=!0};Gc.register=function(t){if($L)throw new TypeError("ripemd160 is locked");UL=t};Object.freeze(Gc);let jL=!1;const HL=function(t,e,n,r,a){return Oce(t,e,n,r,a)};let zL=HL;function Ps(t,e,n,r,a){const i=Ze(t,"password"),s=Ze(e,"salt");return Ve(zL(i,s,n,r,a))}Ps._=HL;Ps.lock=function(){jL=!0};Ps.register=function(t){if(jL)throw new Error("pbkdf2 is locked");zL=t};Object.freeze(Ps);let GL=!1;const VL=function(t){return new Uint8Array(Pce(t))};let qL=VL;function si(t){return qL(t)}si._=VL;si.lock=function(){GL=!0};si.register=function(t){if(GL)throw new Error("randomBytes is locked");qL=t};Object.freeze(si);const Rt=(t,e)=>t<>>32-e;function $F(t,e,n,r,a,i){let s=t[e++]^n[r++],o=t[e++]^n[r++],c=t[e++]^n[r++],h=t[e++]^n[r++],b=t[e++]^n[r++],v=t[e++]^n[r++],E=t[e++]^n[r++],C=t[e++]^n[r++],M=t[e++]^n[r++],T=t[e++]^n[r++],P=t[e++]^n[r++],D=t[e++]^n[r++],F=t[e++]^n[r++],O=t[e++]^n[r++],k=t[e++]^n[r++],U=t[e++]^n[r++],J=s,Y=o,L=c,X=h,B=b,u=v,d=E,p=C,l=M,y=T,g=P,w=D,x=F,f=O,m=k,A=U;for(let _=0;_<8;_+=2)B^=Rt(J+x|0,7),l^=Rt(B+J|0,9),x^=Rt(l+B|0,13),J^=Rt(x+l|0,18),y^=Rt(u+Y|0,7),f^=Rt(y+u|0,9),Y^=Rt(f+y|0,13),u^=Rt(Y+f|0,18),m^=Rt(g+d|0,7),L^=Rt(m+g|0,9),d^=Rt(L+m|0,13),g^=Rt(d+L|0,18),X^=Rt(A+w|0,7),p^=Rt(X+A|0,9),w^=Rt(p+X|0,13),A^=Rt(w+p|0,18),Y^=Rt(J+X|0,7),L^=Rt(Y+J|0,9),X^=Rt(L+Y|0,13),J^=Rt(X+L|0,18),d^=Rt(u+B|0,7),p^=Rt(d+u|0,9),B^=Rt(p+d|0,13),u^=Rt(B+p|0,18),w^=Rt(g+y|0,7),l^=Rt(w+g|0,9),y^=Rt(l+w|0,13),g^=Rt(y+l|0,18),x^=Rt(A+m|0,7),f^=Rt(x+A|0,9),m^=Rt(f+x|0,13),A^=Rt(m+f|0,18);a[i++]=s+J|0,a[i++]=o+Y|0,a[i++]=c+L|0,a[i++]=h+X|0,a[i++]=b+B|0,a[i++]=v+u|0,a[i++]=E+d|0,a[i++]=C+p|0,a[i++]=M+l|0,a[i++]=T+y|0,a[i++]=P+g|0,a[i++]=D+w|0,a[i++]=F+x|0,a[i++]=O+f|0,a[i++]=k+m|0,a[i++]=U+A|0}function W0(t,e,n,r,a){let i=r+0,s=r+16*a;for(let o=0;o<16;o++)n[s+o]=t[e+(2*a-1)*16+o];for(let o=0;o0&&(s+=16),$F(n,i,t,e+=16,n,s)}function WL(t,e,n){const r=j$({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:a,r:i,p:s,dkLen:o,asyncTick:c,maxmem:h,onProgress:b}=r;if(Ja(a),Ja(i),Ja(s),Ja(o),Ja(c),Ja(h),b!==void 0&&typeof b!="function")throw new Error("progressCb should be function");const v=128*i,E=v/4;if(a<=1||a&a-1||a>=2**(v/8)||a>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(s<0||s>(2**32-1)*32/v)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(o<0||o>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const C=v*(a+s);if(C>h)throw new Error(`Scrypt: parameters too large, ${C} (128 * r * (N + p)) > ${h} (maxmem)`);const M=UA(Vp,t,e,{c:1,dkLen:v*s}),T=V3(M),P=V3(new Uint8Array(v*a)),D=V3(new Uint8Array(v));let F=()=>{};if(b){const O=2*a*s,k=Math.max(Math.floor(O/1e4),1);let U=0;F=()=>{U++,b&&(!(U%k)||U===O)&&b(U/O)}}return{N:a,r:i,p:s,dkLen:o,blockSize32:E,V:P,B32:T,B:M,tmp:D,blockMixCb:F,asyncTick:c}}function KL(t,e,n,r,a){const i=UA(Vp,t,n,{c:1,dkLen:e});return n.fill(0),r.fill(0),a.fill(0),i}function Rce(t,e,n){const{N:r,r:a,p:i,dkLen:s,blockSize32:o,V:c,B32:h,B:b,tmp:v,blockMixCb:E}=WL(t,e,n);for(let C=0;C{W0(c,P,c,P+=o,a),E()}),W0(c,(r-1)*o,h,T,a),E(),await yF(r,C,()=>{const D=h[T+o-16]%r;for(let F=0;F=G2,"invalid EIP-155 v","v",e),(n-G2)/jF)}static getChainIdV(e,n){return it(e)*jF+BigInt(35+n-27)}static getNormalizedV(e){const n=it(e);return n===LF||n===HF?27:n===UF||n===zF?28:(ce(n>=G2,"invalid v","v",e),n&UF?27:28)}static from(e){function n(h,b){ce(h,b,"signature",e)}if(e==null)return new Wa(jd,Xg,Xg,27);if(typeof e=="string"){const h=Ze(e,"signature");if(h.length===64){const b=Ve(h.slice(0,32)),v=h.slice(32,64),E=v[0]&128?28:27;return v[0]&=127,new Wa(jd,b,Ve(v),E)}if(h.length===65){const b=Ve(h.slice(0,32)),v=h.slice(32,64);n((v[0]&128)===0,"non-canonical s");const E=Wa.getNormalizedV(h[64]);return new Wa(jd,b,Ve(v),E)}n(!1,"invalid raw signature length")}if(e instanceof Wa)return e.clone();const r=e.r;n(r!=null,"missing r");const a=GF(r),i=function(h,b){if(h!=null)return GF(h);if(b!=null){n(pn(b,32),"invalid yParityAndS");const v=Ze(b);return v[0]&=127,Ve(v)}n(!1,"missing s")}(e.s,e.yParityAndS);n((Ze(i)[0]&128)==0,"non-canonical s");const{networkV:s,v:o}=function(h,b,v){if(h!=null){const E=it(h);return{networkV:E>=G2?E:void 0,v:Wa.getNormalizedV(E)}}if(b!=null)return n(pn(b,32),"invalid yParityAndS"),{v:Ze(b)[0]&128?28:27};if(v!=null){switch(lt(v,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}n(!1,"invalid yParity")}n(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new Wa(jd,a,i,o);return s&&re(c,yf,s),n(e.yParity==null||lt(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),n(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}},sh=new WeakMap,oh=new WeakMap,ch=new WeakMap,yf=new WeakMap,Wa);var rc;const Wu=class Wu{constructor(e){xe(this,rc,void 0);ce(Ec(e)===32,"invalid private key","privateKey","[REDACTED]"),re(this,rc,Ve(e))}get privateKey(){return H(this,rc)}get publicKey(){return Wu.computePublicKey(H(this,rc))}get compressedPublicKey(){return Wu.computePublicKey(H(this,rc),!0)}sign(e){ce(Ec(e)===32,"invalid digest length","digest",e);const n=fl.sign(ar(e),ar(H(this,rc)),{lowS:!0});return Ds.from({r:Fs(n.r,32),s:Fs(n.s,32),v:n.recovery?28:27})}computeSharedSecret(e){const n=Wu.computePublicKey(e);return Ve(fl.getSharedSecret(ar(H(this,rc)),Ze(n),!1))}static computePublicKey(e,n){let r=Ze(e,"key");if(r.length===32){const i=fl.getPublicKey(r,!!n);return Ve(i)}if(r.length===64){const i=new Uint8Array(65);i[0]=4,i.set(r,1),r=i}const a=fl.ProjectivePoint.fromHex(r);return Ve(a.toRawBytes(n))}static recoverPublicKey(e,n){ce(Ec(e)===32,"invalid digest length","digest",e);const r=Ds.from(n);let a=fl.Signature.fromCompact(ar(Ut([r.r,r.s])));a=a.addRecoveryBit(r.yParity);const i=a.recoverPublicKey(ar(e));return ce(i!=null,"invalid signautre for digest","signature",n),"0x"+i.toHex(!1)}static addPoints(e,n,r){const a=fl.ProjectivePoint.fromHex(Wu.computePublicKey(e).substring(2)),i=fl.ProjectivePoint.fromHex(Wu.computePublicKey(n).substring(2));return"0x"+a.add(i).toHex(!!r)}};rc=new WeakMap;let zi=Wu;function hU(){zc.lock(),zt.lock(),Ps.lock(),si.lock(),Gc.lock(),Vc.lock(),qc.lock(),ga.lock(),Wp.lock(),si.lock()}const $ce=BigInt(0),Lce=BigInt(36);function VF(t){t=t.toLowerCase();const e=t.substring(2).split(""),n=new Uint8Array(40);for(let a=0;a<40;a++)n[a]=e[a].charCodeAt(0);const r=Ze(zt(n));for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&(e[a]=e[a].toUpperCase()),(r[a>>1]&15)>=8&&(e[a+1]=e[a+1].toUpperCase());return"0x"+e.join("")}const zA={};for(let t=0;t<10;t++)zA[String(t)]=String(t);for(let t=0;t<26;t++)zA[String.fromCharCode(65+t)]=String(10+t);const qF=15;function pU(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(r=>zA[r]).join("");for(;e.length>=qF;){let r=e.substring(0,qF);e=parseInt(r,10)%97+e.substring(r.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}const Uce=function(){const t={};for(let e=0;e<36;e++){const n="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[n]=BigInt(e)}return t}();function jce(t){t=t.toLowerCase();let e=$ce;for(let n=0;ne.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return H(this,mf)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return H(this,mf)===!0?-1:H(this,mf)===!1?this.value.length:null}static from(e,n){return new Ko(Vo,e,n)}static uint8(e){return tt(e,8)}static uint16(e){return tt(e,16)}static uint24(e){return tt(e,24)}static uint32(e){return tt(e,32)}static uint40(e){return tt(e,40)}static uint48(e){return tt(e,48)}static uint56(e){return tt(e,56)}static uint64(e){return tt(e,64)}static uint72(e){return tt(e,72)}static uint80(e){return tt(e,80)}static uint88(e){return tt(e,88)}static uint96(e){return tt(e,96)}static uint104(e){return tt(e,104)}static uint112(e){return tt(e,112)}static uint120(e){return tt(e,120)}static uint128(e){return tt(e,128)}static uint136(e){return tt(e,136)}static uint144(e){return tt(e,144)}static uint152(e){return tt(e,152)}static uint160(e){return tt(e,160)}static uint168(e){return tt(e,168)}static uint176(e){return tt(e,176)}static uint184(e){return tt(e,184)}static uint192(e){return tt(e,192)}static uint200(e){return tt(e,200)}static uint208(e){return tt(e,208)}static uint216(e){return tt(e,216)}static uint224(e){return tt(e,224)}static uint232(e){return tt(e,232)}static uint240(e){return tt(e,240)}static uint248(e){return tt(e,248)}static uint256(e){return tt(e,256)}static uint(e){return tt(e,256)}static int8(e){return tt(e,-8)}static int16(e){return tt(e,-16)}static int24(e){return tt(e,-24)}static int32(e){return tt(e,-32)}static int40(e){return tt(e,-40)}static int48(e){return tt(e,-48)}static int56(e){return tt(e,-56)}static int64(e){return tt(e,-64)}static int72(e){return tt(e,-72)}static int80(e){return tt(e,-80)}static int88(e){return tt(e,-88)}static int96(e){return tt(e,-96)}static int104(e){return tt(e,-104)}static int112(e){return tt(e,-112)}static int120(e){return tt(e,-120)}static int128(e){return tt(e,-128)}static int136(e){return tt(e,-136)}static int144(e){return tt(e,-144)}static int152(e){return tt(e,-152)}static int160(e){return tt(e,-160)}static int168(e){return tt(e,-168)}static int176(e){return tt(e,-176)}static int184(e){return tt(e,-184)}static int192(e){return tt(e,-192)}static int200(e){return tt(e,-200)}static int208(e){return tt(e,-208)}static int216(e){return tt(e,-216)}static int224(e){return tt(e,-224)}static int232(e){return tt(e,-232)}static int240(e){return tt(e,-240)}static int248(e){return tt(e,-248)}static int256(e){return tt(e,-256)}static int(e){return tt(e,-256)}static bytes1(e){return Nt(e,1)}static bytes2(e){return Nt(e,2)}static bytes3(e){return Nt(e,3)}static bytes4(e){return Nt(e,4)}static bytes5(e){return Nt(e,5)}static bytes6(e){return Nt(e,6)}static bytes7(e){return Nt(e,7)}static bytes8(e){return Nt(e,8)}static bytes9(e){return Nt(e,9)}static bytes10(e){return Nt(e,10)}static bytes11(e){return Nt(e,11)}static bytes12(e){return Nt(e,12)}static bytes13(e){return Nt(e,13)}static bytes14(e){return Nt(e,14)}static bytes15(e){return Nt(e,15)}static bytes16(e){return Nt(e,16)}static bytes17(e){return Nt(e,17)}static bytes18(e){return Nt(e,18)}static bytes19(e){return Nt(e,19)}static bytes20(e){return Nt(e,20)}static bytes21(e){return Nt(e,21)}static bytes22(e){return Nt(e,22)}static bytes23(e){return Nt(e,23)}static bytes24(e){return Nt(e,24)}static bytes25(e){return Nt(e,25)}static bytes26(e){return Nt(e,26)}static bytes27(e){return Nt(e,27)}static bytes28(e){return Nt(e,28)}static bytes29(e){return Nt(e,29)}static bytes30(e){return Nt(e,30)}static bytes31(e){return Nt(e,31)}static bytes32(e){return Nt(e,32)}static address(e){return new Ko(Vo,"address",e)}static bool(e){return new Ko(Vo,"bool",!!e)}static bytes(e){return new Ko(Vo,"bytes",e)}static string(e){return new Ko(Vo,"string",e)}static array(e,n){throw new Error("not implemented yet")}static tuple(e,n){throw new Error("not implemented yet")}static overrides(e){return new Ko(Vo,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===WF}static dereference(e,n){if(Ko.isTyped(e)){if(e.type!==n)throw new Error(`invalid type: expecetd ${n}, got ${e.type}`);return e.value}return e}};mf=new WeakMap;let Er=Ko;class Hce extends Hc{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){let r=Er.dereference(n,"string");try{r=Et(r)}catch(a){return this._throwError(a.message,n)}return e.writeValue(r)}decode(e){return Et(Fs(e.readValue(),20))}}class zce extends Hc{constructor(n){super(n.name,n.type,"_",n.dynamic);ge(this,"coder");this.coder=n}defaultValue(){return this.coder.defaultValue()}encode(n,r){return this.coder.encode(n,r)}decode(n){return this.coder.decode(n)}}function gU(t,e,n){let r=[];if(Array.isArray(n))r=n;else if(n&&typeof n=="object"){let c={};r=e.map(h=>{const b=h.localName;return Be(b,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:h},value:n}),Be(!c[b],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:h},value:n}),c[b]=!0,n[b]})}else ce(!1,"invalid tuple value","tuple",n);ce(e.length===r.length,"types/value length mismatch","tuple",n);let a=new nw,i=new nw,s=[];e.forEach((c,h)=>{let b=r[h];if(c.dynamic){let v=i.length;c.encode(i,b);let E=a.writeUpdatableValue();s.push(C=>{E(C+v)})}else c.encode(a,b)}),s.forEach(c=>{c(a.length)});let o=t.appendWriter(a);return o+=t.appendWriter(i),o}function xU(t,e){let n=[],r=[],a=t.subReader(0);return e.forEach(i=>{let s=null;if(i.dynamic){let o=t.readIndex(),c=a.subReader(o);try{s=i.decode(c)}catch(h){if(Wn(h,"BUFFER_OVERRUN"))throw h;s=h,s.baseType=i.name,s.name=i.localName,s.type=i.type}}else try{s=i.decode(t)}catch(o){if(Wn(o,"BUFFER_OVERRUN"))throw o;s=o,s.baseType=i.name,s.name=i.localName,s.type=i.type}if(s==null)throw new Error("investigate");n.push(s),r.push(i.localName||null)}),cp.fromItems(n,r)}class Gce extends Hc{constructor(n,r,a){const i=n.type+"["+(r>=0?r:"")+"]",s=r===-1||n.dynamic;super("array",i,a,s);ge(this,"coder");ge(this,"length");et(this,{coder:n,length:r})}defaultValue(){const n=this.coder.defaultValue(),r=[];for(let a=0;as||a<-(s+Jce))&&this._throwError("value out-of-bounds",r),a=Rb(a,8*ya)}else(abc(i,this.size*8))&&this._throwError("value out-of-bounds",r);return n.writeValue(a)}decode(n){let r=bc(n.readValue(),this.size*8);return this.signed&&(r=sp(r,this.size*8)),r}}class ele extends vU{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,Kn(Er.dereference(n,"string")))}decode(e){return fu(super.decode(e))}}class V2 extends Hc{constructor(n,r){let a=!1;const i=[];n.forEach(o=>{o.dynamic&&(a=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,a);ge(this,"coders");et(this,{coders:Object.freeze(n.slice())})}defaultValue(){const n=[];this.coders.forEach(a=>{n.push(a.defaultValue())});const r=this.coders.reduce((a,i)=>{const s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach((a,i)=>{let s=a.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),n[s]==null&&(n[s]=n[i]))}),Object.freeze(n)}encode(n,r){const a=Er.dereference(r,"tuple");return gU(n,this.coders,a)}decode(n){return xU(n,this.coders)}}function ks(t){return zt(Kn(t))}var tle="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const KF=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),ZF=4;function nle(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),a=1,i=[0,1];for(let U=1;U>--c&1}const v=31,E=2**v,C=E>>>1,M=C>>1,T=E-1;let P=0;for(let U=0;U1;){let B=J+Y>>>1;U>>1|b(),L=L<<1^C,X=(X^C)<<1|C|1;F=L,O=1+X-L}let k=r-4;return D.map(U=>{switch(U-k){case 3:return k+65792+(t[o++]<<16|t[o++]<<8|t[o++]);case 2:return k+256+(t[o++]<<8|t[o++]);case 1:return k+t[o++];default:return U-1}})}function rle(t){let e=0;return()=>t[e++]}function wU(t){return rle(nle(ale(t)))}function ale(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((a,i)=>e[a.charCodeAt(0)]=i);let n=t.length,r=new Uint8Array(6*n>>3);for(let a=0,i=0,s=0,o=0;a=8&&(r[i++]=o>>(s-=8));return r}function ile(t){return t&1?~t>>1:t>>1}function sle(t,e){let n=Array(t);for(let r=0,a=0;r{let e=_m(t);if(e.length)return e})}function _U(t){let e=[];for(;;){let n=t();if(n==0)break;e.push(ole(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(cle(n,t))}return e.flat()}function Am(t){let e=[];for(;;){let n=t(e.length);if(!n)break;e.push(n)}return e}function AU(t,e,n){let r=Array(t).fill().map(()=>[]);for(let a=0;ar[s].push(i));return r}function ole(t,e){let n=1+e(),r=e(),a=Am(e);return AU(a.length,1+t,e).flatMap((s,o)=>{let[c,...h]=s;return Array(a[o]).fill().map((b,v)=>{let E=v*r;return[c+v*n,h.map(C=>C+E)]})})}function cle(t,e){let n=1+e();return AU(n,1+t,e).map(a=>[a[0],a.slice(1)])}function lle(t){let e=[],n=_m(t);return a(r([]),[]),e;function r(i){let s=t(),o=Am(()=>{let c=_m(t).map(h=>n[h]);if(c.length)return r(c)});return{S:s,B:o,Q:i}}function a({S:i,B:s},o,c){if(!(i&4&&c===o[o.length-1])){i&2&&(c=o[o.length-1]),i&1&&e.push(o);for(let h of s)for(let b of h.Q)a(h,[...o,b],c)}}}function ule(t){return t.toString(16).toUpperCase().padStart(2,"0")}function CU(t){return`{${ule(t)}}`}function fle(t){let e=[];for(let n=0,r=t.length;n>24&255}function BU(t){return t&16777215}let iw,QF,sw,K3;function xle(){let t=wU(hle);iw=new Map(EU(t).flatMap((e,n)=>e.map(r=>[r,n+1<<24]))),QF=new Set(_m(t)),sw=new Map,K3=new Map;for(let[e,n]of _U(t)){if(!QF.has(e)&&n.length==2){let[r,a]=n,i=K3.get(r);i||(i=new Map,K3.set(r,i)),i.set(a,e)}sw.set(e,n.reverse())}}function MU(t){return t>=Cm&&t=Yg&&t=e6&&et6&&e0&&a(t6+h)}else{let s=sw.get(i);s?n.push(...s):a(i)}if(!n.length)break;i=n.pop()}if(r&&e.length>1){let i=fy(e[0]);for(let s=1;s0&&a>=s)s==0?(e.push(r,...n),n.length=0,r=o):n.push(o),a=s;else{let c=vle(r,o);c>=0?r=c:a==0&&s==0?(e.push(r),r=o):(n.push(o),a=s)}}return r>=0&&e.push(r,...n),e}function DU(t){return FU(t).map(BU)}function Ele(t){return wle(FU(t))}const JF=45,kU=".",IU=65039,OU=1,k0=t=>Array.from(t);function Sm(t,e){return t.P.has(e)||t.Q.has(e)}class _le extends Array{get is_emoji(){return!0}}let ow,PU,tf,cw,RU,K0,Q4,o0,NU,XF,lw;function GA(){if(ow)return;let t=wU(tle);const e=()=>_m(t),n=()=>new Set(e());ow=new Map(_U(t)),PU=n(),tf=e(),cw=new Set(e().map(b=>tf[b])),tf=new Set(tf),RU=n(),n();let r=EU(t),a=t();const i=()=>new Set(e().flatMap(b=>r[b]).concat(e()));K0=Am(b=>{let v=Am(t).map(E=>E+96);if(v.length){let E=b>=a;v[0]-=32,v=lp(v),E&&(v=`Restricted[${v}]`);let C=i(),M=i(),T=!t();return{N:v,P:C,Q:M,M:T,R:E}}}),Q4=n(),o0=new Map;let s=e().concat(k0(Q4)).sort((b,v)=>b-v);s.forEach((b,v)=>{let E=t(),C=s[v]=E?s[v-E]:{V:[],M:new Map};C.V.push(b),Q4.has(b)||o0.set(b,C)});for(let{V:b,M:v}of new Set(o0.values())){let E=[];for(let M of b){let T=K0.filter(D=>Sm(D,M)),P=E.find(({G:D})=>T.some(F=>D.has(F)));P||(P={G:new Set,V:[]},E.push(P)),P.V.push(M),T.forEach(D=>P.G.add(D))}let C=E.flatMap(M=>k0(M.G));for(let{G:M,V:T}of E){let P=new Set(C.filter(D=>!M.has(D)));for(let D of T)v.set(D,P)}}let o=new Set,c=new Set;const h=b=>o.has(b)?c.add(b):o.add(b);for(let b of K0){for(let v of b.P)h(v);for(let v of b.Q)h(v)}for(let b of o)!o0.has(b)&&!c.has(b)&&o0.set(b,OU);NU=new Set(k0(o).concat(k0(DU(o)))),XF=lle(t).map(b=>_le.from(b)).sort(dle),lw=new Map;for(let b of XF){let v=[lw];for(let E of b){let C=v.map(M=>{let T=M.get(E);return T||(T=new Map,M.set(E,T)),T});E===IU?v.push(...C):v=C}for(let E of v)E.V=b}}function VA(t){return($U(t)?"":`${qA(Jx([t]))} `)+CU(t)}function qA(t){return`"${t}"‎`}function Ale(t){if(t.length>=4&&t[2]==JF&&t[3]==JF)throw new Error(`invalid label extension: "${lp(t.slice(0,4))}"`)}function Cle(t){for(let n=t.lastIndexOf(95);n>0;)if(t[--n]!==95)throw new Error("underscore allowed only at start")}function Sle(t){let e=t[0],n=KF.get(e);if(n)throw Uy(`leading ${n}`);let r=t.length,a=-1;for(let i=1;i{let i=fle(a),s={input:i,offset:r};r+=i.length+1;try{let o=s.tokens=Ole(i,e,n),c=o.length,h;if(!c)throw new Error("empty label");let b=s.output=o.flat();if(Cle(b),!(s.emoji=c>1||o[0].is_emoji)&&b.every(E=>E<128))Ale(b),h="ASCII";else{let E=o.flatMap(C=>C.is_emoji?[]:C);if(!E.length)h="Emoji";else{if(tf.has(b[0]))throw Uy("leading combining mark");for(let T=1;Ts.has(o)):k0(s),!n.length)return}else r.push(a)}if(n){for(let a of n)if(r.every(i=>Sm(a,i)))throw new Error(`whole-script confusable: ${t.N}/${a.N}`)}}function Dle(t){let e=K0;for(let n of t){let r=e.filter(a=>Sm(a,n));if(!r.length)throw K0.some(a=>Sm(a,n))?UU(e[0],n):LU(n);if(e=r,r.length==1)break}return e}function kle(t){return t.map(({input:e,error:n,output:r})=>{if(n){let a=n.message;throw new Error(t.length==1?a:`Invalid label ${qA(Jx(e))}: ${a}`)}return lp(r)}).join(kU)}function LU(t){return new Error(`disallowed character: ${VA(t)}`)}function UU(t,e){let n=VA(e),r=K0.find(a=>a.P.has(e));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${t.N} + ${n}`)}function Uy(t){return new Error(`illegal placement: ${t}`)}function Ile(t,e){for(let n of e)if(!Sm(t,n))throw UU(t,n);if(t.M){let n=DU(e);for(let r=1,a=n.length;rZF)throw new Error(`excessive non-spacing marks: ${qA(Jx(n.slice(r-1,i)))} (${i-r}/${ZF})`);r=i}}}function Ole(t,e,n){let r=[],a=[];for(t=t.slice().reverse();t.length;){let i=Rle(t);if(i)a.length&&(r.push(e(a)),a=[]),r.push(n(i));else{let s=t.pop();if(NU.has(s))a.push(s);else{let o=ow.get(s);if(o)a.push(...o);else if(!PU.has(s))throw LU(s)}}}return a.length&&r.push(e(a)),r}function Ple(t){return t.filter(e=>e!=IU)}function Rle(t,e){let n=lw,r,a=t.length;for(;a&&(n=n.get(t[--a]),!!n);){let{V:i}=n;i&&(r=i,e&&e.push(...t.slice(a).reverse()),t.length=a)}return r}const jU=new Uint8Array(32);jU.fill(0);function YF(t){return ce(t.length!==0,"invalid ENS name; empty component","comp",t),t}function WA(t){const e=Kn(KA(t)),n=[];if(t.length===0)return n;let r=0;for(let a=0;a{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}function J4(t,e){return{address:Et(t),storageKeys:e.map((n,r)=>(ce(pn(n,32),"invalid slot",`storageKeys[${r}]`,n),n.toLowerCase()))}}function Oo(t){if(Array.isArray(t))return t.map((n,r)=>Array.isArray(n)?(ce(n.length===2,"invalid slot set",`value[${r}]`,n),J4(n[0],n[1])):(ce(n!=null&&typeof n=="object","invalid address-slot set","value",t),J4(n.address,n.storageKeys)));ce(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(n=>{const r=t[n].reduce((a,i)=>(a[i]=!0,a),{});return J4(n,Object.keys(r).sort())});return e.sort((n,r)=>n.address.localeCompare(r.address)),e}function xd(t){let e;return typeof t=="string"?e=zi.computePublicKey(t,!1):e=t.publicKey,Et(zt("0x"+e.substring(4)).substring(26))}function $b(t,e){return xd(zi.recoverPublicKey(t,e))}const Ta=BigInt(0),Nle=BigInt(2),$le=BigInt(27),Lle=BigInt(28),Ule=BigInt(35),jle=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function QA(t){return t==="0x"?null:Et(t)}function zU(t,e){try{return Oo(t)}catch(n){ce(!1,n.message,e,t)}}function Xx(t,e){return t==="0x"?0:lt(t,e)}function ha(t,e){if(t==="0x")return Ta;const n=it(t,e);return ce(n<=jle,"value exceeds uint size",e,n),n}function kr(t,e){const n=it(t,"value"),r=Or(n);return ce(r.length<=32,"value too large",`tx.${e}`,n),r}function GU(t){return Oo(t).map(e=>[e.address,e.storageKeys])}function Hle(t){const e=Nb(t);ce(Array.isArray(e)&&(e.length===9||e.length===6),"invalid field count for legacy transaction","data",t);const n={type:0,nonce:Xx(e[0],"nonce"),gasPrice:ha(e[1],"gasPrice"),gasLimit:ha(e[2],"gasLimit"),to:QA(e[3]),value:ha(e[4],"value"),data:Ve(e[5]),chainId:Ta};if(e.length===6)return n;const r=ha(e[6],"v"),a=ha(e[7],"r"),i=ha(e[8],"s");if(a===Ta&&i===Ta)n.chainId=r;else{let s=(r-Ule)/Nle;s=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),Be(!n||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),Be(this.type!==0||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const a=[];return this.type!=null?a.push(this.type):n?a.push(2):e?(a.push(1),r||a.push(0)):r?(a.push(1),a.push(2)):(a.push(0),a.push(1),a.push(2)),a.sort(),a}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}clone(){return xl.from(this)}toJSON(){const e=n=>n==null?null:n.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new xl;if(typeof e=="string"){const r=Ze(e);if(r[0]>=127)return xl.from(Hle(r));switch(r[0]){case 1:return xl.from(Gle(r));case 2:return xl.from(zle(r))}Be(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const n=new xl;return e.type!=null&&(n.type=e.type),e.to!=null&&(n.to=e.to),e.nonce!=null&&(n.nonce=e.nonce),e.gasLimit!=null&&(n.gasLimit=e.gasLimit),e.gasPrice!=null&&(n.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(n.maxFeePerGas=e.maxFeePerGas),e.data!=null&&(n.data=e.data),e.value!=null&&(n.value=e.value),e.chainId!=null&&(n.chainId=e.chainId),e.signature!=null&&(n.signature=Ds.from(e.signature)),e.accessList!=null&&(n.accessList=e.accessList),e.hash!=null&&(ce(n.isSigned(),"unsigned transaction cannot define hash","tx",e),ce(n.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(ce(n.isSigned(),"unsigned transaction cannot define from","tx",e),ce(n.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),n}};ac=new WeakMap,lh=new WeakMap,uh=new WeakMap,fh=new WeakMap,dh=new WeakMap,hh=new WeakMap,ph=new WeakMap,yh=new WeakMap,mh=new WeakMap,bh=new WeakMap,gh=new WeakMap,xh=new WeakMap;let du=xl;function Yx(t){return typeof t=="string"&&(t=Kn(t)),zt(Ut([Kn(HA),Kn(String(t.length)),t]))}function qU(t,e){const n=Yx(t);return $b(n,e)}const Vle=new RegExp("^bytes([0-9]+)$"),qle=new RegExp("^(u?int)([0-9]*)$"),Wle=new RegExp("^(.*)\\[([0-9]*)\\]$");function WU(t,e,n){switch(t){case"address":return Ze(n?Hi(e,32):Et(e));case"string":return Kn(e);case"bytes":return Ze(e);case"bool":return e=e?"0x01":"0x00",Ze(n?Hi(e,32):e)}let r=t.match(qle);if(r){let a=r[1]==="int",i=parseInt(r[2]||"256");return ce((!r[2]||r[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),n&&(i=256),a&&(e=Rb(e,i)),Ze(Hi(Or(e),i/8))}if(r=t.match(Vle),r){const a=parseInt(r[1]);return ce(String(a)===r[1]&&a!==0&&a<=32,"invalid bytes type","type",t),ce(Ec(e)===a,`invalid value for ${t}`,"value",e),n?Ze(Pb(e,32)):e}if(r=t.match(Wle),r&&Array.isArray(e)){const a=r[1],i=parseInt(r[2]||String(e.length));ce(i===e.length,`invalid array length for ${t}`,"value",e);const s=[];return e.forEach(function(o){s.push(WU(a,o,!0))}),Ze(Ut(s))}ce(!1,"invalid type","type",t)}function e8(t,e){ce(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const n=[];return t.forEach(function(r,a){n.push(WU(r,e[a]))}),Ve(Ut(n))}function KU(t,e){return zt(e8(t,e))}function ZU(t,e){return ga(e8(t,e))}const QU=new Uint8Array(32);QU.fill(0);const Kle=BigInt(-1),JU=BigInt(0),XU=BigInt(1),Zle=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function Qle(t){const e=Ze(t),n=e.length%32;return n?Ut([e,QU.slice(n)]):Ve(e)}const Jle=Fs(XU,32),Xle=Fs(JU,32),rD={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},X4=["name","version","chainId","verifyingContract","salt"];function aD(t){return function(e){return ce(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const Yle={name:aD("name"),version:aD("version"),chainId:function(t){const e=it(t,"domain.chainId");return ce(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):gc(e)},verifyingContract:function(t){try{return Et(t).toLowerCase()}catch{}ce(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Ze(t,"domain.salt");return ce(e.length===32,'invalid domain value "salt"',"domain.salt",t),Ve(e)}};function Y4(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=e[1]==="",r=parseInt(e[2]||"256");ce(r%8===0&&r!==0&&r<=256&&(e[2]==null||e[2]===String(r)),"invalid numeric width","type",t);const a=bc(Zle,n?r-1:r),i=n?(a+XU)*Kle:JU;return function(s){const o=it(s,"value");return ce(o>=i&&o<=a,`value out-of-bounds for ${t}`,"value",o),Fs(n?Rb(o,256):o,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return ce(n!==0&&n<=32&&e[1]===String(n),"invalid bytes width","type",t),function(r){const a=Ze(r);return ce(a.length===n,`invalid length for ${t}`,"value",r),Qle(r)}}}switch(t){case"address":return function(e){return Hi(Et(e),32)};case"bool":return function(e){return e?Jle:Xle};case"bytes":return function(e){return zt(e)};case"string":return function(e){return ks(e)}}return null}function iD(t,e){return`${t}(${e.map(({name:n,type:r})=>r+" "+n).join(",")})`}var Xm,ic,vh,U6,YU;const wi=class wi{constructor(e){xe(this,U6);ge(this,"primaryType");xe(this,Xm,void 0);xe(this,ic,void 0);xe(this,vh,void 0);re(this,Xm,JSON.stringify(e)),re(this,ic,new Map),re(this,vh,new Map);const n=new Map,r=new Map,a=new Map;Object.keys(e).forEach(o=>{n.set(o,new Set),r.set(o,[]),a.set(o,new Set)});for(const o in e){const c=new Set;for(const h of e[o]){ce(!c.has(h.name),`duplicate variable name ${JSON.stringify(h.name)} in ${JSON.stringify(o)}`,"types",e),c.add(h.name);const b=h.type.match(/^([^\x5b]*)(\x5b|$)/)[1]||null;ce(b!==o,`circular type reference to ${JSON.stringify(b)}`,"types",e),!Y4(b)&&(ce(r.has(b),`unknown type ${JSON.stringify(b)}`,"types",e),r.get(b).push(o),n.get(o).add(b))}}const i=Array.from(r.keys()).filter(o=>r.get(o).length===0);ce(i.length!==0,"missing primary type","types",e),ce(i.length===1,`ambiguous primary types or unused types: ${i.map(o=>JSON.stringify(o)).join(", ")}`,"types",e),et(this,{primaryType:i[0]});function s(o,c){ce(!c.has(o),`circular type reference to ${JSON.stringify(o)}`,"types",e),c.add(o);for(const h of n.get(o))if(r.has(h)){s(h,c);for(const b of c)a.get(b).add(h)}c.delete(o)}s(this.primaryType,new Set);for(const[o,c]of a){const h=Array.from(c);h.sort(),H(this,ic).set(o,iD(o,e[o])+h.map(b=>iD(b,e[b])).join(""))}}get types(){return JSON.parse(H(this,Xm))}getEncoder(e){let n=H(this,vh).get(e);return n||(n=ke(this,U6,YU).call(this,e),H(this,vh).set(e,n)),n}encodeType(e){const n=H(this,ic).get(e);return ce(n,`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return zt(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,r){if(Y4(e))return r(e,n);const a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a)return ce(!a[3]||parseInt(a[3])===n.length,`array length mismatch; expected length ${parseInt(a[3])}`,"value",n),n.map(s=>this._visit(a[1],s,r));const i=this.types[e];if(i)return i.reduce((s,{name:o,type:c})=>(s[o]=this._visit(c,n[o],r),s),{});ce(!1,`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new wi(e)}static getPrimaryType(e){return wi.from(e).primaryType}static hashStruct(e,n,r){return wi.from(n).hashStruct(e,r)}static hashDomain(e){const n=[];for(const r in e){if(e[r]==null)continue;const a=rD[r];ce(a,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),n.push({name:r,type:a})}return n.sort((r,a)=>X4.indexOf(r.name)-X4.indexOf(a.name)),wi.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,r){return Ut(["0x1901",wi.hashDomain(e),wi.from(n).hash(r)])}static hash(e,n,r){return zt(wi.encode(e,n,r))}static async resolveNames(e,n,r,a){e=Object.assign({},e);for(const o in e)e[o]==null&&delete e[o];const i={};e.verifyingContract&&!pn(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const s=wi.from(n);s.visit(r,(o,c)=>(o==="address"&&!pn(c,20)&&(i[c]="0x"),c));for(const o in i)i[o]=await a(o);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=s.visit(r,(o,c)=>o==="address"&&i[c]?i[c]:c),{domain:e,value:r}}static getPayload(e,n,r){wi.hashDomain(e);const a={},i=[];X4.forEach(c=>{const h=e[c];h!=null&&(a[c]=Yle[c](h),i.push({name:c,type:rD[c]}))});const s=wi.from(n),o=Object.assign({},n);return ce(o.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",n),o.EIP712Domain=i,s.encode(r),{types:o,domain:a,primaryType:s.primaryType,message:s.visit(r,(c,h)=>{if(c.match(/^bytes(\d*)/))return Ve(Ze(h));if(c.match(/^u?int/))return it(h).toString();switch(c){case"address":return h.toLowerCase();case"bool":return!!h;case"string":return ce(typeof h=="string","invalid string","value",h),h}ce(!1,"unsupported type","type",c)})}}};Xm=new WeakMap,ic=new WeakMap,vh=new WeakMap,U6=new WeakSet,YU=function(e){{const a=Y4(e);if(a)return a}const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const a=n[1],i=this.getEncoder(a);return s=>{ce(!n[3]||parseInt(n[3])===s.length,`array length mismatch; expected length ${parseInt(n[3])}`,"value",s);let o=s.map(i);return H(this,ic).has(a)&&(o=o.map(zt)),zt(Ut(o))}}const r=this.types[e];if(r){const a=ks(H(this,ic).get(e));return i=>{const s=r.map(({name:o,type:c})=>{const h=this.getEncoder(c)(i[o]);return H(this,ic).has(c)?zt(h):h});return s.unshift(a),Ut(s)}}ce(!1,`unknown type: ${e}`,"type",e)};let Dc=wi;function ej(t,e,n,r){return $b(Dc.hash(t,e,n),r)}function ma(t){const e=new Set;return t.forEach(n=>e.add(n)),Object.freeze(e)}const eue="external public payable",tue=ma(eue.split(" ")),tj="constant external internal payable private public pure view",nue=ma(tj.split(" ")),nj="constructor error event fallback function receive struct",rj=ma(nj.split(" ")),aj="calldata memory storage payable indexed",rue=ma(aj.split(" ")),aue="tuple returns",iue=[nj,aj,aue,tj].join(" "),sue=ma(iue.split(" ")),oue={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},cue=new RegExp("^(\\s*)"),lue=new RegExp("^([0-9]+)"),uue=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),ij=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),sj=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var Fr,ms,Ym,uw;const j6=class j6{constructor(e){xe(this,Ym);xe(this,Fr,void 0);xe(this,ms,void 0);re(this,Fr,0),re(this,ms,e.slice())}get offset(){return H(this,Fr)}get length(){return H(this,ms).length-H(this,Fr)}clone(){return new j6(H(this,ms))}reset(){re(this,Fr,0)}popKeyword(e){const n=this.peek();if(n.type!=="KEYWORD"||!e.has(n.text))throw new Error(`expected keyword ${n.text}`);return this.pop().text}popType(e){if(this.peek().type!==e)throw new Error(`expected ${e}; got ${JSON.stringify(this.peek())}`);return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const n=ke(this,Ym,uw).call(this,H(this,Fr)+1,e.match+1);return re(this,Fr,e.match+1),n}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const n=[];for(;H(this,Fr)=H(this,ms).length)throw new Error("out-of-bounds");return H(this,ms)[H(this,Fr)]}peekKeyword(e){const n=this.peekType("KEYWORD");return n!=null&&e.has(n)?n:null}peekType(e){if(this.length===0)return null;const n=this.peek();return n.type===e?n.text:null}pop(){const e=this.peek();return Od(this,Fr)._++,e}toString(){const e=[];for(let n=H(this,Fr);n`}};Fr=new WeakMap,ms=new WeakMap,Ym=new WeakSet,uw=function(e=0,n=0){return new j6(H(this,ms).slice(e,n).map(r=>Object.freeze(Object.assign({},r,{match:r.match-e,linkBack:r.linkBack-e,linkNext:r.linkNext-e}))))};let Is=j6;function wu(t){const e=[],n=s=>{const o=i0&&e[e.length-1].type==="NUMBER"){const v=e.pop().text;b=v+b,e[e.length-1].value=lt(v)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=b}continue}if(o=s.match(uue),o){if(c.text=o[1],i+=c.text.length,sue.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(sj)){c.type="TYPE";continue}c.type="ID";continue}if(o=s.match(lue),o){c.text=o[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(s[0])} at position ${i}`)}return new Is(e.map(s=>Object.freeze(s)))}function sD(t,e){let n=[];for(const r in e.keys())t.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function t8(t,e){if(e.peekKeyword(rj)){const n=e.pop().text;if(n!==t)throw new Error(`expected ${t}, got ${n}`)}return e.popType("ID")}function kc(t,e){const n=new Set;for(;;){const r=t.peekType("KEYWORD");if(r==null||e&&!e.has(r))break;if(t.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function oj(t){let e=kc(t,nue);return sD(e,ma("constant payable nonpayable".split(" "))),sD(e,ma("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function _c(t,e){return t.popParams().map(n=>or.from(n,e))}function cj(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return it(t.pop().text);throw new Error("invalid gas")}return null}function Xf(t){if(t.length)throw new Error(`unexpected tokens: ${t.toString()}`)}const fue=new RegExp(/^(.*)\[([0-9]*)\]$/);function oD(t){const e=t.match(sj);if(ce(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const n=parseInt(e[2]);ce(n!==0&&n<=32,"invalid bytes length","type",t)}else if(e[3]){const n=parseInt(e[3]);ce(n!==0&&n<=256&&n%8===0,"invalid numeric width","type",t)}return t}const wn={},Pa=Symbol.for("_ethers_internal"),cD="_ParamTypeInternal",lD="_ErrorInternal",uD="_EventInternal",fD="_ConstructorInternal",dD="_FallbackInternal",hD="_FunctionInternal",pD="_StructInternal";var wh,Z3;const Ei=class Ei{constructor(e,n,r,a,i,s,o,c){xe(this,wh);ge(this,"name");ge(this,"type");ge(this,"baseType");ge(this,"indexed");ge(this,"components");ge(this,"arrayLength");ge(this,"arrayChildren");if(Io(e,wn,"ParamType"),Object.defineProperty(this,Pa,{value:cD}),s&&(s=Object.freeze(s.slice())),a==="array"){if(o==null||c==null)throw new Error("")}else if(o!=null||c!=null)throw new Error("");if(a==="tuple"){if(s==null)throw new Error("")}else if(s!=null)throw new Error("");et(this,{name:n,type:r,baseType:a,indexed:i,components:s,arrayLength:o,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const r=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=r,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const a={type:this.baseType==="tuple"?"tuple":this.type,name:r};return typeof this.indexed=="boolean"&&(a.indexed=this.indexed),this.isTuple()&&(a.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(a)}let n="";return this.isArray()?(n+=this.arrayChildren.format(e),n+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?n+="("+this.components.map(r=>r.format(e)).join(e==="full"?", ":",")+")":n+=this.type,e!=="sighash"&&(this.indexed===!0&&(n+=" indexed"),e==="full"&&this.name&&(n+=" "+this.name)),n}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,n){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const r=this;return e.map(a=>r.arrayChildren.walk(a,n))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const r=this;return e.map((a,i)=>r.components[i].walk(a,n))}return n(this.type,e)}async walkAsync(e,n){const r=[],a=[e];return ke(this,wh,Z3).call(this,r,e,n,i=>{a[0]=i}),r.length&&await Promise.all(r),a[0]}static from(e,n){if(Ei.isParamType(e))return e;if(typeof e=="string")try{return Ei.from(wu(e),n)}catch{ce(!1,"invalid param type","obj",e)}else if(e instanceof Is){let o="",c="",h=null;kc(e,ma(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",h=e.popParams().map(T=>Ei.from(T)),o=`tuple(${h.map(T=>T.format()).join(",")})`):(o=oD(e.popType("TYPE")),c=o);let b=null,v=null;for(;e.length&&e.peekType("BRACKET");){const T=e.pop();b=new Ei(wn,"",o,c,null,h,v,b),v=T.value,o+=T.text,c="array",h=null}let E=null;if(kc(e,rue).has("indexed")){if(!n)throw new Error("");E=!0}const M=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Ei(wn,M,o,c,E,h,v,b)}const r=e.name;ce(!r||typeof r=="string"&&r.match(ij),"invalid name","obj.name",r);let a=e.indexed;a!=null&&(ce(n,"parameter cannot be indexed","obj.indexed",e.indexed),a=!!a);let i=e.type,s=i.match(fue);if(s){const o=parseInt(s[2]||"-1"),c=Ei.from({type:s[1],components:e.components});return new Ei(wn,r||"",i,"array",a,null,o,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const o=e.components!=null?e.components.map(h=>Ei.from(h)):null;return new Ei(wn,r||"",i,"tuple",a,o,null,null)}return i=oD(e.type),new Ei(wn,r||"",i,i,a,null,null,null)}static isParamType(e){return e&&e[Pa]===cD}};wh=new WeakSet,Z3=function(e,n,r,a){if(this.isArray()){if(!Array.isArray(n))throw new Error("invalid array value");if(this.arrayLength!==-1&&n.length!==this.arrayLength)throw new Error("array is wrong length");const s=this.arrayChildren,o=n.slice();o.forEach((c,h)=>{var b;ke(b=s,wh,Z3).call(b,e,c,r,v=>{o[h]=v})}),a(o);return}if(this.isTuple()){const s=this.components;let o;if(Array.isArray(n))o=n.slice();else{if(n==null||typeof n!="object")throw new Error("invalid tuple value");o=s.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in n))throw new Error(`missing value for component ${c.name}`);return n[c.name]})}if(o.length!==this.components.length)throw new Error("array is wrong length");o.forEach((c,h)=>{var b;ke(b=s[h],wh,Z3).call(b,e,c,r,v=>{o[h]=v})}),a(o);return}const i=r(this.type,n);i.then?e.push(async function(){a(await i)}()):a(i)};let or=Ei;class Ic{constructor(e,n,r){ge(this,"type");ge(this,"inputs");Io(e,wn,"Fragment"),r=Object.freeze(r.slice()),et(this,{type:n,inputs:r})}static from(e){if(typeof e=="string"){try{Ic.from(JSON.parse(e))}catch{}return Ic.from(wu(e))}if(e instanceof Is)switch(e.peekKeyword(rj)){case"constructor":return Cs.from(e);case"error":return ea.from(e);case"event":return Ii.from(e);case"fallback":case"receive":return _s.from(e);case"function":return Oi.from(e);case"struct":return Ac.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return Cs.from(e);case"error":return ea.from(e);case"event":return Ii.from(e);case"fallback":case"receive":return _s.from(e);case"function":return Oi.from(e);case"struct":return Ac.from(e)}Be(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}ce(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return Cs.isFragment(e)}static isError(e){return ea.isFragment(e)}static isEvent(e){return Ii.isFragment(e)}static isFunction(e){return Oi.isFragment(e)}static isStruct(e){return Ac.isFragment(e)}}class Kp extends Ic{constructor(n,r,a,i){super(n,r,i);ge(this,"name");ce(typeof a=="string"&&a.match(ij),"invalid identifier","name",a),i=Object.freeze(i.slice()),et(this,{name:a})}}function Bm(t,e){return"("+e.map(n=>n.format(t)).join(t==="full"?", ":",")+")"}class ea extends Kp{constructor(e,n,r){super(e,"error",n,r),Object.defineProperty(this,Pa,{value:lD})}get selector(){return ks(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(r=>JSON.parse(r.format(e)))});const n=[];return e!=="sighash"&&n.push("error"),n.push(this.name+Bm(e,this.inputs)),n.join(" ")}static from(e){if(ea.isFragment(e))return e;if(typeof e=="string")return ea.from(wu(e));if(e instanceof Is){const n=t8("error",e),r=_c(e);return Xf(e),new ea(wn,n,r)}return new ea(wn,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[Pa]===lD}}class Ii extends Kp{constructor(n,r,a,i){super(n,"event",r,a);ge(this,"anonymous");Object.defineProperty(this,Pa,{value:uD}),et(this,{anonymous:i})}get topicHash(){return ks(this.format("sighash"))}format(n){if(n==null&&(n="sighash"),n==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(a=>JSON.parse(a.format(n)))});const r=[];return n!=="sighash"&&r.push("event"),r.push(this.name+Bm(n,this.inputs)),n!=="sighash"&&this.anonymous&&r.push("anonymous"),r.join(" ")}static getTopicHash(n,r){return r=(r||[]).map(i=>or.from(i)),new Ii(wn,n,r,!1).topicHash}static from(n){if(Ii.isFragment(n))return n;if(typeof n=="string")try{return Ii.from(wu(n))}catch{ce(!1,"invalid event fragment","obj",n)}else if(n instanceof Is){const r=t8("event",n),a=_c(n,!0),i=!!kc(n,ma(["anonymous"])).has("anonymous");return Xf(n),new Ii(wn,r,a,i)}return new Ii(wn,n.name,n.inputs?n.inputs.map(r=>or.from(r,!0)):[],!!n.anonymous)}static isFragment(n){return n&&n[Pa]===uD}}class Cs extends Ic{constructor(n,r,a,i,s){super(n,r,a);ge(this,"payable");ge(this,"gas");Object.defineProperty(this,Pa,{value:fD}),et(this,{payable:i,gas:s})}format(n){if(Be(n!=null&&n!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),n==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(a=>JSON.parse(a.format(n)))});const r=[`constructor${Bm(n,this.inputs)}`];return this.payable&&r.push("payable"),this.gas!=null&&r.push(`@${this.gas.toString()}`),r.join(" ")}static from(n){if(Cs.isFragment(n))return n;if(typeof n=="string")try{return Cs.from(wu(n))}catch{ce(!1,"invalid constuctor fragment","obj",n)}else if(n instanceof Is){kc(n,ma(["constructor"]));const r=_c(n),a=!!kc(n,tue).has("payable"),i=cj(n);return Xf(n),new Cs(wn,"constructor",r,a,i)}return new Cs(wn,"constructor",n.inputs?n.inputs.map(or.from):[],!!n.payable,n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[Pa]===fD}}class _s extends Ic{constructor(n,r,a){super(n,"fallback",r);ge(this,"payable");Object.defineProperty(this,Pa,{value:dD}),et(this,{payable:a})}format(n){const r=this.inputs.length===0?"receive":"fallback";if(n==="json"){const a=this.payable?"payable":"nonpayable";return JSON.stringify({type:r,stateMutability:a})}return`${r}()${this.payable?" payable":""}`}static from(n){if(_s.isFragment(n))return n;if(typeof n=="string")try{return _s.from(wu(n))}catch{ce(!1,"invalid fallback fragment","obj",n)}else if(n instanceof Is){const r=n.toString(),a=n.peekKeyword(ma(["fallback","receive"]));if(ce(a,"type must be fallback or receive","obj",r),n.popKeyword(ma(["fallback","receive"]))==="receive"){const c=_c(n);return ce(c.length===0,"receive cannot have arguments","obj.inputs",c),kc(n,ma(["payable"])),Xf(n),new _s(wn,[],!0)}let s=_c(n);s.length?ce(s.length===1&&s[0].type==="bytes","invalid fallback inputs","obj.inputs",s.map(c=>c.format("minimal")).join(", ")):s=[or.from("bytes")];const o=oj(n);if(ce(o==="nonpayable"||o==="payable","fallback cannot be constants","obj.stateMutability",o),kc(n,ma(["returns"])).has("returns")){const c=_c(n);ce(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(h=>h.format("minimal")).join(", "))}return Xf(n),new _s(wn,s,o==="payable")}if(n.type==="receive")return new _s(wn,[],!0);if(n.type==="fallback"){const r=[or.from("bytes")],a=n.stateMutability==="payable";return new _s(wn,r,a)}ce(!1,"invalid fallback description","obj",n)}static isFragment(n){return n&&n[Pa]===dD}}class Oi extends Kp{constructor(n,r,a,i,s,o){super(n,"function",r,i);ge(this,"constant");ge(this,"outputs");ge(this,"stateMutability");ge(this,"payable");ge(this,"gas");Object.defineProperty(this,Pa,{value:hD}),s=Object.freeze(s.slice()),et(this,{constant:a==="view"||a==="pure",gas:o,outputs:s,payable:a==="payable",stateMutability:a})}get selector(){return ks(this.format("sighash")).substring(0,10)}format(n){if(n==null&&(n="sighash"),n==="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!=null?this.gas:void 0,inputs:this.inputs.map(a=>JSON.parse(a.format(n))),outputs:this.outputs.map(a=>JSON.parse(a.format(n)))});const r=[];return n!=="sighash"&&r.push("function"),r.push(this.name+Bm(n,this.inputs)),n!=="sighash"&&(this.stateMutability!=="nonpayable"&&r.push(this.stateMutability),this.outputs&&this.outputs.length&&(r.push("returns"),r.push(Bm(n,this.outputs))),this.gas!=null&&r.push(`@${this.gas.toString()}`)),r.join(" ")}static getSelector(n,r){return r=(r||[]).map(i=>or.from(i)),new Oi(wn,n,"view",r,[],null).selector}static from(n){if(Oi.isFragment(n))return n;if(typeof n=="string")try{return Oi.from(wu(n))}catch{ce(!1,"invalid function fragment","obj",n)}else if(n instanceof Is){const a=t8("function",n),i=_c(n),s=oj(n);let o=[];kc(n,ma(["returns"])).has("returns")&&(o=_c(n));const c=cj(n);return Xf(n),new Oi(wn,a,s,i,o,c)}let r=n.stateMutability;return r==null&&(r="payable",typeof n.constant=="boolean"?(r="view",n.constant||(r="payable",typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable"))):typeof n.payable=="boolean"&&!n.payable&&(r="nonpayable")),new Oi(wn,n.name,r,n.inputs?n.inputs.map(or.from):[],n.outputs?n.outputs.map(or.from):[],n.gas!=null?n.gas:null)}static isFragment(n){return n&&n[Pa]===hD}}class Ac extends Kp{constructor(e,n,r){super(e,"struct",n,r),Object.defineProperty(this,Pa,{value:pD})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return Ac.from(wu(e))}catch{ce(!1,"invalid struct fragment","obj",e)}else if(e instanceof Is){const n=t8("struct",e),r=_c(e);return Xf(e),new Ac(wn,n,r)}return new Ac(wn,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[Pa]===pD}}const Rs=new Map;Rs.set(0,"GENERIC_PANIC");Rs.set(1,"ASSERT_FALSE");Rs.set(17,"OVERFLOW");Rs.set(18,"DIVIDE_BY_ZERO");Rs.set(33,"ENUM_RANGE_ERROR");Rs.set(34,"BAD_STORAGE_DATA");Rs.set(49,"STACK_UNDERFLOW");Rs.set(50,"ARRAY_RANGE_ERROR");Rs.set(65,"OUT_OF_MEMORY");Rs.set(81,"UNINITIALIZED_FUNCTION_CALL");const due=new RegExp(/^bytes([0-9]*)$/),hue=new RegExp(/^(u?int)([0-9]*)$/);let e5=null,yD=1024;function pue(t,e,n,r){let a="missing revert data",i=null;const s=null;let o=null;if(n){a="execution reverted";const h=Ze(n);if(n=Ve(n),h.length===0)a+=" (no data present; likely require(false) occurred",i="require(false)";else if(h.length%32!==4)a+=" (could not decode reason; invalid data length)";else if(Ve(h.slice(0,4))==="0x08c379a0")try{i=r.decode(["string"],h.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},a+=`: ${JSON.stringify(i)}`}catch{a+=" (could not decode reason; invalid string data)"}else if(Ve(h.slice(0,4))==="0x4e487b71")try{const b=Number(r.decode(["uint256"],h.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[b]},i=`Panic due to ${Rs.get(b)||"UNKNOWN"}(${b})`,a+=`: ${i}`}catch{a+=" (could not decode panic code)"}else a+=" (unknown custom error)"}const c={to:e.to?Et(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Et(e.from)),mn(a,"CALL_EXCEPTION",{action:t,data:n,reason:i,transaction:c,invocation:s,revert:o})}var Tl,c0;const H6=class H6{constructor(){xe(this,Tl)}getDefaultValue(e){const n=e.map(a=>ke(this,Tl,c0).call(this,or.from(a)));return new V2(n,"_").defaultValue()}encode(e,n){zx(n.length,e.length,"types/values length mismatch");const r=e.map(s=>ke(this,Tl,c0).call(this,or.from(s))),a=new V2(r,"_"),i=new nw;return a.encode(i,n),i.data}decode(e,n,r){const a=e.map(s=>ke(this,Tl,c0).call(this,or.from(s)));return new V2(a,"_").decode(new rw(n,r,yD))}static _setDefaultMaxInflation(e){ce(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),yD=e}static defaultAbiCoder(){return e5==null&&(e5=new H6),e5}static getBuiltinCallException(e,n,r){return pue(e,n,r,H6.defaultAbiCoder())}};Tl=new WeakSet,c0=function(e){if(e.isArray())return new Gce(ke(this,Tl,c0).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new V2(e.components.map(r=>ke(this,Tl,c0).call(this,r)),e.name);switch(e.baseType){case"address":return new Hce(e.name);case"bool":return new Vce(e.name);case"string":return new ele(e.name);case"bytes":return new qce(e.name);case"":return new Zce(e.name)}let n=e.type.match(hue);if(n){let r=parseInt(n[2]||"256");return ce(r!==0&&r<=256&&r%8===0,"invalid "+n[1]+" bit length","param",e),new Yce(r/8,n[1]==="int",e.name)}if(n=e.type.match(due),n){let r=parseInt(n[1]);return ce(r!==0&&r<=32,"invalid bytes length","param",e),new Wce(r,e.name)}ce(!1,"invalid type","type",e.type)};let hu=H6;function lj(t){const e=Kn(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Pb(e,32)}function uj(t){const e=Ze(t,"bytes");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");let n=31;for(;e[n-1]===0;)n--;return fu(e.slice(0,n))}class JA{constructor(e,n,r){ge(this,"fragment");ge(this,"name");ge(this,"signature");ge(this,"topic");ge(this,"args");const a=e.name,i=e.format();et(this,{fragment:e,name:a,signature:i,topic:n,args:r})}}class XA{constructor(e,n,r,a){ge(this,"fragment");ge(this,"name");ge(this,"args");ge(this,"signature");ge(this,"selector");ge(this,"value");const i=e.name,s=e.format();et(this,{fragment:e,name:i,args:r,signature:s,selector:n,value:a})}}class YA{constructor(e,n,r){ge(this,"fragment");ge(this,"name");ge(this,"args");ge(this,"signature");ge(this,"selector");const a=e.name,i=e.format();et(this,{fragment:e,name:a,args:r,signature:i,selector:n})}}class r6{constructor(e){ge(this,"hash");ge(this,"_isIndexed");et(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const mD={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},bD={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&mD[t.toString()]&&(e=mD[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var to,no,ro,qr,Eh,Q3,_h,J3;const R0=class R0{constructor(e){xe(this,Eh);xe(this,_h);ge(this,"fragments");ge(this,"deploy");ge(this,"fallback");ge(this,"receive");xe(this,to,void 0);xe(this,no,void 0);xe(this,ro,void 0);xe(this,qr,void 0);let n=[];typeof e=="string"?n=JSON.parse(e):n=e,re(this,ro,new Map),re(this,to,new Map),re(this,no,new Map);const r=[];for(const s of n)try{r.push(Ic.from(s))}catch(o){console.log("EE",o)}et(this,{fragments:Object.freeze(r)});let a=null,i=!1;re(this,qr,this.getAbiCoder()),this.fragments.forEach((s,o)=>{let c;switch(s.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}et(this,{deploy:s});return;case"fallback":s.inputs.length===0?i=!0:(ce(!a||s.payable!==a.payable,"conflicting fallback fragments",`fragments[${o}]`,s),a=s,i=a.payable);return;case"function":c=H(this,ro);break;case"event":c=H(this,no);break;case"error":c=H(this,to);break;default:return}const h=s.format();c.has(h)||c.set(h,s)}),this.deploy||et(this,{deploy:Cs.from("constructor()")}),et(this,{fallback:a,receive:i})}format(e){const n=e?"minimal":"full";return this.fragments.map(a=>a.format(n))}formatJson(){const e=this.fragments.map(n=>n.format("json"));return JSON.stringify(e.map(n=>JSON.parse(n)))}getAbiCoder(){return hu.defaultAbiCoder()}getFunctionName(e){const n=ke(this,Eh,Q3).call(this,e,null,!1);return ce(n,"no matching function","key",e),n.name}hasFunction(e){return!!ke(this,Eh,Q3).call(this,e,null,!1)}getFunction(e,n){return ke(this,Eh,Q3).call(this,e,n||null,!0)}forEachFunction(e){const n=Array.from(H(this,ro).keys());n.sort((r,a)=>r.localeCompare(a));for(let r=0;rr.localeCompare(a));for(let r=0;r1){const i=a.map(s=>JSON.stringify(s.format())).join(", ");ce(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return a[0]}if(e=ea.from(e).format(),e==="Error(string)")return ea.from("error Error(string)");if(e==="Panic(uint256)")return ea.from("error Panic(uint256)");const r=H(this,to).get(e);return r||null}forEachError(e){const n=Array.from(H(this,to).keys());n.sort((r,a)=>r.localeCompare(a));for(let r=0;ri.type==="string"?ks(s):i.type==="bytes"?zt(Ve(s)):(i.type==="bool"&&typeof s=="boolean"?s=s?"0x01":"0x00":i.type.match(/^u?int/)?s=Fs(s):i.type.match(/^bytes/)?s=Pb(s,32):i.type==="address"&&H(this,qr).encode(["address"],[s]),Hi(Ve(s),32));for(n.forEach((i,s)=>{const o=e.inputs[s];if(!o.indexed){ce(i==null,"cannot filter non-indexed parameters; must be null","contract."+o.name,i);return}i==null?r.push(null):o.baseType==="array"||o.baseType==="tuple"?ce(!1,"filtering with tuples or arrays not supported","contract."+o.name,i):Array.isArray(i)?r.push(i.map(c=>a(o,c))):r.push(a(o,i))});r.length&&r[r.length-1]===null;)r.pop();return r}encodeEventLog(e,n){if(typeof e=="string"){const s=this.getEvent(e);ce(s,"unknown event","eventFragment",e),e=s}const r=[],a=[],i=[];return e.anonymous||r.push(e.topicHash),ce(n.length===e.inputs.length,"event arguments/values mismatch","values",n),e.inputs.forEach((s,o)=>{const c=n[o];if(s.indexed)if(s.type==="string")r.push(ks(c));else if(s.type==="bytes")r.push(zt(c));else{if(s.baseType==="tuple"||s.baseType==="array")throw new Error("not implemented");r.push(H(this,qr).encode([s.type],[c]))}else a.push(s),i.push(c)}),{data:H(this,qr).encode(a,i),topics:r}}decodeEventLog(e,n,r){if(typeof e=="string"){const C=this.getEvent(e);ce(C,"unknown event","eventFragment",e),e=C}if(r!=null&&!e.anonymous){const C=e.topicHash;ce(pn(r[0],32)&&r[0].toLowerCase()===C,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}const a=[],i=[],s=[];e.inputs.forEach((C,M)=>{C.indexed?C.type==="string"||C.type==="bytes"||C.baseType==="tuple"||C.baseType==="array"?(a.push(or.from({type:"bytes32",name:C.name})),s.push(!0)):(a.push(C),s.push(!1)):(i.push(C),s.push(!1))});const o=r!=null?H(this,qr).decode(a,Ut(r)):null,c=H(this,qr).decode(i,n,!0),h=[],b=[];let v=0,E=0;return e.inputs.forEach((C,M)=>{let T=null;if(C.indexed)if(o==null)T=new r6(null);else if(s[M])T=new r6(o[E++]);else try{T=o[E++]}catch(P){T=P}else try{T=c[v++]}catch(P){T=P}h.push(T),b.push(C.name||null)}),cp.fromItems(h,b)}parseTransaction(e){const n=Ze(e.data,"tx.data"),r=it(e.value!=null?e.value:0,"tx.value"),a=this.getFunction(Ve(n.slice(0,4)));if(!a)return null;const i=H(this,qr).decode(a.inputs,n.slice(4));return new XA(a,a.selector,i,r)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new JA(n,n.topicHash,this.decodeEventLog(n,e.data,e.topics))}parseError(e){const n=Ve(e),r=this.getError(Jt(n,0,4));if(!r)return null;const a=H(this,qr).decode(r.inputs,Jt(n,4));return new YA(r,r.selector,a)}static from(e){return e instanceof R0?e:typeof e=="string"?new R0(JSON.parse(e)):typeof e.format=="function"?new R0(e.format("json")):new R0(e)}};to=new WeakMap,no=new WeakMap,ro=new WeakMap,qr=new WeakMap,Eh=new WeakSet,Q3=function(e,n,r){if(pn(e)){const i=e.toLowerCase();for(const s of H(this,ro).values())if(i===s.selector)return s;return null}if(e.indexOf("(")===-1){const i=[];for(const[s,o]of H(this,ro))s.split("(")[0]===e&&i.push(o);if(n){const s=n.length>0?n[n.length-1]:null;let o=n.length,c=!0;Er.isTyped(s)&&s.type==="overrides"&&(c=!1,o--);for(let h=i.length-1;h>=0;h--){const b=i[h].inputs.length;b!==o&&(!c||b!==o-1)&&i.splice(h,1)}for(let h=i.length-1;h>=0;h--){const b=i[h].inputs;for(let v=0;v=b.length){if(n[v].type==="overrides")continue;i.splice(h,1);break}if(n[v].type!==b[v].baseType){i.splice(h,1);break}}}}if(i.length===1&&n&&n.length!==i[0].inputs.length){const s=n[n.length-1];(s==null||Array.isArray(s)||typeof s!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&r){const s=i.map(o=>JSON.stringify(o.format())).join(", ");ce(!1,`ambiguous function description (i.e. matches ${s})`,"key",e)}return i[0]}const a=H(this,ro).get(Oi.from(e).format());return a||null},_h=new WeakSet,J3=function(e,n,r){if(pn(e)){const i=e.toLowerCase();for(const s of H(this,no).values())if(i===s.topicHash)return s;return null}if(e.indexOf("(")===-1){const i=[];for(const[s,o]of H(this,no))s.split("(")[0]===e&&i.push(o);if(n){for(let s=i.length-1;s>=0;s--)i[s].inputs.length=0;s--){const o=i[s].inputs;for(let c=0;c1&&r){const s=i.map(o=>JSON.stringify(o.format())).join(", ");ce(!1,`ambiguous event description (i.e. matches ${s})`,"key",e)}return i[0]}const a=H(this,no).get(Ii.from(e).format());return a||null};let fp=R0;const fj=BigInt(0);function jy(t){return t??null}function ta(t){return t==null?null:t.toString()}class a6{constructor(e,n,r){ge(this,"gasPrice");ge(this,"maxFeePerGas");ge(this,"maxPriorityFeePerGas");et(this,{gasPrice:jy(e),maxFeePerGas:jy(n),maxPriorityFeePerGas:jy(r)})}toJSON(){const{gasPrice:e,maxFeePerGas:n,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:ta(e),maxFeePerGas:ta(n),maxPriorityFeePerGas:ta(r)}}}function dp(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=Ve(t.data));const n="chainId,gasLimit,gasPrice,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const a of n)!(a in t)||t[a]==null||(e[a]=it(t[a],`request.${a}`));const r="type,nonce".split(/,/);for(const a of r)!(a in t)||t[a]==null||(e[a]=lt(t[a],`request.${a}`));return t.accessList&&(e.accessList=Oo(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),e}var sc;class eC{constructor(e,n){ge(this,"provider");ge(this,"number");ge(this,"hash");ge(this,"timestamp");ge(this,"parentHash");ge(this,"nonce");ge(this,"difficulty");ge(this,"gasLimit");ge(this,"gasUsed");ge(this,"miner");ge(this,"extraData");ge(this,"baseFeePerGas");xe(this,sc,void 0);re(this,sc,e.transactions.map(r=>typeof r!="string"?new Yf(r,n):r)),et(this,{provider:n,hash:jy(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,miner:e.miner,extraData:e.extraData,baseFeePerGas:jy(e.baseFeePerGas)})}get transactions(){return H(this,sc).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=H(this,sc).slice();return e.length===0?[]:(Be(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:n,extraData:r,gasLimit:a,gasUsed:i,hash:s,miner:o,nonce:c,number:h,parentHash:b,timestamp:v,transactions:E}=this;return{_type:"Block",baseFeePerGas:ta(e),difficulty:ta(n),extraData:r,gasLimit:ta(a),gasUsed:ta(i),hash:s,miner:o,nonce:c,number:h,parentHash:b,timestamp:v,transactions:E}}[Symbol.iterator](){let e=0;const n=this.transactions;return{next:()=>enew vd(a,n))));let r=fj;e.effectiveGasPrice!=null?r=e.effectiveGasPrice:e.gasPrice!=null&&(r=e.gasPrice),et(this,{provider:n,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,gasPrice:r,type:e.type,status:e.status,root:e.root})}get logs(){return H(this,eb)}toJSON(){const{to:e,from:n,contractAddress:r,hash:a,index:i,blockHash:s,blockNumber:o,logsBloom:c,logs:h,status:b,root:v}=this;return{_type:"TransactionReceipt",blockHash:s,blockNumber:o,contractAddress:r,cumulativeGasUsed:ta(this.cumulativeGasUsed),from:n,gasPrice:ta(this.gasPrice),gasUsed:ta(this.gasUsed),hash:a,index:i,logs:h,logsBloom:c,root:v,status:b,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(o)return null;const{blockNumber:E,nonce:C}=await tr({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(C{if(E==null||E.status!==0)return E;Be(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:E.to,from:E.from,data:""},receipt:E})},b=await this.provider.getTransactionReceipt(this.hash);if(r===0)return h(b);if(b){if(await b.confirmations()>=r)return h(b)}else if(await c(),r===0)return null;return await new Promise((E,C)=>{const M=[],T=()=>{M.forEach(D=>D())};if(M.push(()=>{o=!0}),a>0){const D=setTimeout(()=>{T(),C(mn("wait for transaction timeout","TIMEOUT"))},a);M.push(()=>{clearTimeout(D)})}const P=async D=>{if(await D.confirmations()>=r){T();try{E(h(D))}catch(F){C(F)}}};if(M.push(()=>{this.provider.off(this.hash,P)}),this.provider.on(this.hash,P),i>=0){const D=async()=>{try{await c()}catch(F){if(Wn(F,"TRANSACTION_REPLACED")){T(),C(F);return}}o||this.provider.once("block",D)};M.push(()=>{this.provider.off("block",D)}),this.provider.once("block",D)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}removedEvent(){return Be(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),hj(this)}reorderedEvent(e){return Be(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),Be(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),dj(this,e)}replaceableTransaction(e){ce(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const n=new jT(this,this.provider);return re(n,Bl,e),n}};Bl=new WeakMap;let Yf=jT;function yue(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function dj(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function hj(t){return{orphan:"drop-transaction",tx:t}}function mue(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class Lb extends vd{constructor(n,r,a){super(n,n.provider);ge(this,"interface");ge(this,"fragment");ge(this,"args");const i=r.decodeEventLog(a,n.data,n.topics);et(this,{args:i,fragment:a,interface:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class r8 extends vd{constructor(n,r){super(n,n.provider);ge(this,"error");et(this,{error:r})}}var Ah;class tC extends n8{constructor(n,r,a){super(a,r);xe(this,Ah,void 0);re(this,Ah,n)}get logs(){return super.logs.map(n=>{const r=n.topics.length?H(this,Ah).getEvent(n.topics[0]):null;if(r)try{return new Lb(n,H(this,Ah),r)}catch(a){return new r8(n,a)}return n})}}Ah=new WeakMap;var tb;class Ub extends Yf{constructor(n,r,a){super(a,r);xe(this,tb,void 0);re(this,tb,n)}async wait(n){const r=await super.wait(n);return r==null?null:new tC(H(this,tb),this.provider,r)}}tb=new WeakMap;class a8 extends Kx{constructor(n,r,a,i){super(n,r,a);ge(this,"log");et(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class nC extends a8{constructor(e,n,r,a,i){super(e,n,r,new Lb(i,e.interface,a));const s=e.interface.decodeEventLog(a,this.log.data,this.log.topics);et(this,{args:s,fragment:a})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const gD=BigInt(0);function pj(t){return t&&typeof t.call=="function"}function yj(t){return t&&typeof t.estimateGas=="function"}function i8(t){return t&&typeof t.resolveName=="function"}function mj(t){return t&&typeof t.sendTransaction=="function"}function bj(t){if(t!=null){if(i8(t))return t;if(t.provider)return t.provider}}var nb;class bue{constructor(e,n,r){xe(this,nb,void 0);ge(this,"fragment");if(et(this,{fragment:n}),n.inputs.lengthr[c]==null?null:o.walkAsync(r[c],(b,v)=>b==="address"?Array.isArray(v)?Promise.all(v.map(E=>sr(E,i))):sr(v,i):v)));return e.interface.encodeFilterTopics(n,s)}())}getTopicFilter(){return H(this,nb)}}nb=new WeakMap;function ed(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function nf(t){return t==null?null:t.provider||null}async function rC(t,e){const n=Er.dereference(t,"overrides");ce(typeof n=="object","invalid overrides parameter","overrides",t);const r=dp(n);return ce(r.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",r.to),ce(r.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",r.data),r.from&&(r.from=r.from),r}async function gj(t,e,n){const r=ed(t,"resolveName"),a=i8(r)?r:null;return await Promise.all(e.map((i,s)=>i.walkAsync(n[s],(o,c)=>(c=Er.dereference(c,o),o==="address"?sr(c,a):c))))}function gue(t){const e=async function(s){const o=await rC(s,["data"]);o.to=await t.getAddress(),o.from&&(o.from=await sr(o.from,bj(t.runner)));const c=t.interface,h=it(o.value||gD,"overrides.value")===gD,b=(o.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!b&&!h&&ce(!1,"cannot send data to receive or send value to non-payable fallback","overrides",s),ce(c.fallback||b,"cannot send data to receive-only contract","overrides.data",o.data);const v=c.receive||c.fallback&&c.fallback.payable;return ce(v||h,"cannot send value to non-payable fallback","overrides.value",o.value),ce(c.fallback||b,"cannot send data to receive-only contract","overrides.data",o.data),o},n=async function(s){const o=ed(t.runner,"call");Be(pj(o),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(s);try{return await o.call(c)}catch(h){throw Ob(h)&&h.data?t.interface.makeError(h.data,c):h}},r=async function(s){const o=t.runner;Be(mj(o),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await o.sendTransaction(await e(s)),h=nf(t.runner);return new Ub(t.interface,h,c)},a=async function(s){const o=ed(t.runner,"estimateGas");return Be(yj(o),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await o.estimateGas(await e(s))},i=async s=>await r(s);return et(i,{_contract:t,estimateGas:a,populateTransaction:e,send:r,staticCall:n}),i}function xue(t,e){const n=function(...h){const b=t.interface.getFunction(e,h);return Be(b,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:h}}),b},r=async function(...h){const b=n(...h);let v={};if(b.inputs.length+1===h.length&&(v=await rC(h.pop()),v.from&&(v.from=await sr(v.from,bj(t.runner)))),b.inputs.length!==h.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const E=await gj(t.runner,b.inputs,h);return Object.assign({},v,await tr({to:t.getAddress(),data:t.interface.encodeFunctionData(b,E)}))},a=async function(...h){const b=await o(...h);return b.length===1?b[0]:b},i=async function(...h){const b=t.runner;Be(mj(b),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const v=await b.sendTransaction(await r(...h)),E=nf(t.runner);return new Ub(t.interface,E,v)},s=async function(...h){const b=ed(t.runner,"estimateGas");return Be(yj(b),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await b.estimateGas(await r(...h))},o=async function(...h){const b=ed(t.runner,"call");Be(pj(b),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const v=await r(...h);let E="0x";try{E=await b.call(v)}catch(M){throw Ob(M)&&M.data?t.interface.makeError(M.data,v):M}const C=n(...h);return t.interface.decodeFunctionResult(C,E)},c=async(...h)=>n(...h).constant?await a(...h):await i(...h);return et(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:n,estimateGas:s,populateTransaction:r,send:i,staticCall:a,staticCallResult:o}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const h=t.interface.getFunction(e);return Be(h,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),h}}),c}function vue(t,e){const n=function(...a){const i=t.interface.getEvent(e,a);return Be(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:a}}),i},r=function(...a){return new bue(t,n(...a),a)};return et(r,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const a=t.interface.getEvent(e);return Be(a,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),a}}),r}const i6=Symbol.for("_ethersInternal_contract"),xj=new WeakMap;function wue(t,e){xj.set(t[i6],e)}function za(t){return xj.get(t[i6])}function Eue(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function aC(t,e){let n,r=null;if(Array.isArray(e)){const i=function(s){if(pn(s,32))return s;const o=t.interface.getEvent(s);return ce(o,"unknown fragment","name",s),o.topicHash};n=e.map(s=>s==null?null:Array.isArray(s)?s.map(i):i(s))}else e==="*"?n=[null]:typeof e=="string"?pn(e,32)?n=[e]:(r=t.interface.getEvent(e),ce(r,"unknown fragment","event",e),n=[r.topicHash]):Eue(e)?n=await e.getTopicFilter():"fragment"in e?(r=e.fragment,n=[r.topicHash]):ce(!1,"unknown event name","event",e);n=n.map(i=>{if(i==null)return null;if(Array.isArray(i)){const s=Array.from(new Set(i.map(o=>o.toLowerCase())).values());return s.length===1?s[0]:(s.sort(),s)}return i.toLowerCase()});const a=n.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:r,tag:a,topics:n}}async function dy(t,e){const{subs:n}=za(t);return n.get((await aC(t,e)).tag)||null}async function xD(t,e,n){const r=nf(t.runner);Be(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:a,tag:i,topics:s}=await aC(t,n),{addr:o,subs:c}=za(t);let h=c.get(i);if(!h){const v={address:o||t,topics:s},E=P=>{let D=a;if(D==null)try{D=t.interface.getEvent(P.topics[0])}catch{}if(D){const F=D,O=a?t.interface.decodeEventLog(a,P.data,P.topics):[];dw(t,n,O,k=>new nC(t,k,n,F,P))}else dw(t,n,[],F=>new a8(t,F,n,P))};let C=[];h={tag:i,listeners:[],start:()=>{C.length||C.push(r.on(v,E))},stop:async()=>{if(C.length==0)return;let P=C;C=[],await Promise.all(P),r.off(v,E)}},c.set(i,h)}return h}let fw=Promise.resolve();async function _ue(t,e,n,r){await fw;const a=await dy(t,e);if(!a)return!1;const i=a.listeners.length;return a.listeners=a.listeners.filter(({listener:s,once:o})=>{const c=Array.from(n);r&&c.push(r(o?null:s));try{s.call(t,...c)}catch{}return!o}),a.listeners.length===0&&(a.stop(),za(t).subs.delete(a.tag)),i>0}async function dw(t,e,n,r){try{await fw}catch{}const a=_ue(t,e,n,r);return fw=a,await a}const q2=["then"];var ZBe;const Jy=class Jy{constructor(e,n,r,a){ge(this,"target");ge(this,"interface");ge(this,"runner");ge(this,"filters");ge(this,ZBe);ge(this,"fallback");ce(typeof e=="string"||Qx(e),"invalid value for Contract target","target",e),r==null&&(r=null);const i=fp.from(n);et(this,{target:e,runner:r,interface:i}),Object.defineProperty(this,i6,{value:{}});let s,o=null,c=null;if(a){const v=nf(r);c=new Ub(this.interface,v,a)}let h=new Map;if(typeof e=="string")if(pn(e))o=e,s=Promise.resolve(e);else{const v=ed(r,"resolveName");if(!i8(v))throw mn("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});s=v.resolveName(e).then(E=>{if(E==null)throw mn("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return za(this).addr=E,E})}else s=e.getAddress().then(v=>{if(v==null)throw new Error("TODO");return za(this).addr=v,v});wue(this,{addrPromise:s,addr:o,deployTx:c,subs:h});const b=new Proxy({},{get:(v,E,C)=>{if(typeof E=="symbol"||q2.indexOf(E)>=0)return Reflect.get(v,E,C);try{return this.getEvent(E)}catch(M){if(!Wn(M,"INVALID_ARGUMENT")||M.argument!=="key")throw M}},has:(v,E)=>q2.indexOf(E)>=0?Reflect.has(v,E):Reflect.has(v,E)||this.interface.hasEvent(String(E))});return et(this,{filters:b}),et(this,{fallback:i.receive||i.fallback?gue(this):null}),new Proxy(this,{get:(v,E,C)=>{if(typeof E=="symbol"||E in v||q2.indexOf(E)>=0)return Reflect.get(v,E,C);try{return v.getFunction(E)}catch(M){if(!Wn(M,"INVALID_ARGUMENT")||M.argument!=="key")throw M}},has:(v,E)=>typeof E=="symbol"||E in v||q2.indexOf(E)>=0?Reflect.has(v,E):v.interface.hasFunction(E)})}connect(e){return new Jy(this.target,this.interface,e)}attach(e){return new Jy(e,this.interface,this.runner)}async getAddress(){return await za(this).addrPromise}async getDeployedCode(){const e=nf(this.runner);Be(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const n=await e.getCode(await this.getAddress());return n==="0x"?null:n}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const r=nf(this.runner);return Be(r!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((a,i)=>{const s=async()=>{try{if(await this.getDeployedCode()!=null)return a(this);r.once("block",s)}catch(o){i(o)}};s()})}deploymentTransaction(){return za(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),xue(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),vue(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,n,r){n==null&&(n=0),r==null&&(r="latest");const{addr:a,addrPromise:i}=za(this),s=a||await i,{fragment:o,topics:c}=await aC(this,e),h={address:s,topics:c,fromBlock:n,toBlock:r},b=nf(this.runner);return Be(b,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await b.getLogs(h)).map(v=>{let E=o;if(E==null)try{E=this.interface.getEvent(v.topics[0])}catch{}if(E)try{return new Lb(v,this.interface,E)}catch(C){return new r8(v,C)}return new vd(v,b)})}async on(e,n){const r=await xD(this,"on",e);return r.listeners.push({listener:n,once:!1}),r.start(),this}async once(e,n){const r=await xD(this,"once",e);return r.listeners.push({listener:n,once:!0}),r.start(),this}async emit(e,...n){return await dw(this,e,n,null)}async listenerCount(e){if(e){const a=await dy(this,e);return a?a.listeners.length:0}const{subs:n}=za(this);let r=0;for(const{listeners:a}of n.values())r+=a.length;return r}async listeners(e){if(e){const a=await dy(this,e);return a?a.listeners.map(({listener:i})=>i):[]}const{subs:n}=za(this);let r=[];for(const{listeners:a}of n.values())r=r.concat(a.map(({listener:i})=>i));return r}async off(e,n){const r=await dy(this,e);if(!r)return this;if(n){const a=r.listeners.map(({listener:i})=>i).indexOf(n);a>=0&&r.listeners.splice(a,1)}return(n==null||r.listeners.length===0)&&(r.stop(),za(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){const n=await dy(this,e);if(!n)return this;n.stop(),za(this).subs.delete(n.tag)}else{const{subs:n}=za(this);for(const{tag:r,stop:a}of n.values())a(),n.delete(r)}return this}async addListener(e,n){return await this.on(e,n)}async removeListener(e,n){return await this.off(e,n)}static buildClass(e){class n extends Jy{constructor(a,i=null){super(a,e,i)}}return n}static from(e,n,r){return r==null&&(r=null),new this(e,n,r)}};ZBe=i6;let td=Jy;function Aue(){return td}class ru extends Aue(){}class s8{constructor(e,n,r){ge(this,"interface");ge(this,"bytecode");ge(this,"runner");const a=fp.from(e);n instanceof Uint8Array||(typeof n=="object"&&(n=n.object),n.startsWith("0x")||(n="0x"+n)),n=Ve(Ze(n)),et(this,{bytecode:n,interface:a,runner:r||null})}attach(e){return new td(e,this.interface,this.runner)}async getDeployTransaction(...e){let n={};const r=this.interface.deploy;if(r.inputs.length+1===e.length&&(n=await rC(e.pop())),r.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const a=await gj(this.runner,r.inputs,e),i=Ut([this.bytecode,this.interface.encodeDeploy(a)]);return Object.assign({},n,{data:i})}async deploy(...e){const n=await this.getDeployTransaction(...e);Be(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const r=await this.runner.sendTransaction(n),a=Zx(r);return new td(a,this.interface,this.runner,r)}connect(e){return new s8(this.interface,this.bytecode,e)}static fromSolidity(e,n){ce(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const r=e.abi;let a="";return e.bytecode?a=e.bytecode:e.evm&&e.evm.bytecode&&(a=e.evm.bytecode),new this(r,a,n)}}function t5(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):ce(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class iC{constructor(e){ge(this,"name");et(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,n){throw new Error("unsupported coin")}async decodeAddress(e,n){throw new Error("unsupported coin")}}const vj=new RegExp("^(ipfs)://(.*)$","i"),vD=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),vj,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var Ml,bf,Fl,l0,z6,wj;const N0=class N0{constructor(e,n,r){xe(this,Fl);ge(this,"provider");ge(this,"address");ge(this,"name");xe(this,Ml,void 0);xe(this,bf,void 0);et(this,{provider:e,address:n,name:r}),re(this,Ml,null),re(this,bf,new ru(n,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return H(this,Ml)==null&&re(this,Ml,(async()=>{try{return await H(this,bf).supportsInterface("0x9061b923")}catch(e){if(Wn(e,"CALL_EXCEPTION"))return!1;throw re(this,Ml,null),e}})()),await H(this,Ml)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await ke(this,Fl,l0).call(this,"addr(bytes32)");return i==null||i===Em?null:i}catch(i){if(Wn(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const s=await ke(this,Fl,l0).call(this,"addr(bytes32,uint)",[i]);if(pn(s,20))return Et(s)}let n=null;for(const i of this.provider.plugins)if(i instanceof iC&&i.supportsCoinType(e)){n=i;break}if(n==null)return null;const r=await ke(this,Fl,l0).call(this,"addr(bytes32,uint)",[e]);if(r==null||r==="0x")return null;const a=await n.decodeAddress(e,r);if(a!=null)return a;Be(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){const n=await ke(this,Fl,l0).call(this,"text(bytes32,string)",[e]);return n==null||n==="0x"?null:n}async getContentHash(){const e=await ke(this,Fl,l0).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const n=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const a=n[1]==="e3010170"?"ipfs":"ipns",i=parseInt(n[4],16);if(n[5].length===i*2)return`${a}://${Wx("0x"+n[2])}`}const r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&r[1].length===64)return`bzz://${r[1]}`;Be(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(n==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r{if(!Array.isArray(e))throw new Error("not an array");return e.map(n=>t(n))}}function jb(t,e){return n=>{const r={};for(const a in t){let i=a;if(e&&a in e&&!(i in n)){for(const s of e[a])if(s in n){i=s;break}}try{const s=t[a](n[i]);s!==void 0&&(r[a]=s)}catch(s){const o=s instanceof Error?s.message:"not-an-error";Be(!1,`invalid value for value.${a} (${o})`,"BAD_DATA",{value:n})}}return r}}function Cue(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}ce(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function pp(t){return ce(pn(t,!0),"invalid data","value",t),t}function Gi(t){return ce(pn(t,32),"invalid hash","value",t),t}const Sue=jb({address:Et,blockHash:Gi,blockNumber:lt,data:pp,index:lt,removed:xn(Cue,!1),topics:sC(Gi),transactionHash:Gi,transactionIndex:lt},{index:["logIndex"]});function Tue(t){return Sue(t)}const Bue=jb({hash:xn(Gi),parentHash:Gi,number:lt,timestamp:lt,nonce:xn(pp),difficulty:it,gasLimit:it,gasUsed:it,miner:xn(Et),extraData:pp,baseFeePerGas:xn(it)});function Mue(t){const e=Bue(t);return e.transactions=t.transactions.map(n=>typeof n=="string"?n:Ej(n)),e}const Fue=jb({transactionIndex:lt,blockNumber:lt,transactionHash:Gi,address:Et,topics:sC(Gi),data:pp,index:lt,blockHash:Gi},{index:["logIndex"]});function Due(t){return Fue(t)}const kue=jb({to:xn(Et,null),from:xn(Et,null),contractAddress:xn(Et,null),index:lt,root:xn(Ve),gasUsed:it,logsBloom:xn(pp),blockHash:Gi,hash:Gi,logs:sC(Due),blockNumber:lt,cumulativeGasUsed:it,effectiveGasPrice:xn(it),status:xn(lt),type:xn(lt,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Iue(t){return kue(t)}function Ej(t){t.to&&it(t.to)===wD&&(t.to="0x0000000000000000000000000000000000000000");const e=jb({hash:Gi,type:n=>n==="0x"||n==null?0:lt(n),accessList:xn(Oo,null),blockHash:xn(Gi,null),blockNumber:xn(lt,null),transactionIndex:xn(lt,null),from:Et,gasPrice:xn(it),maxPriorityFeePerGas:xn(it),maxFeePerGas:xn(it),gasLimit:it,to:xn(Et,null),value:it,nonce:lt,data:pp,creates:xn(Et,null),chainId:xn(it,null)},{data:["input"],gasLimit:["gas"]})(t);if(e.to==null&&e.creates==null&&(e.creates=Zx(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=Ds.from(t.signature):e.signature=Ds.from(t),e.chainId==null){const n=e.signature.legacyChainId;n!=null&&(e.chainId=n)}return e.blockHash&&it(e.blockHash)===wD&&(e.blockHash=null),e}const Oue="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class Wc{constructor(e){ge(this,"name");et(this,{name:e})}clone(){return new Wc(this.name)}}class Zp extends Wc{constructor(n,r){n==null&&(n=0);super(`org.ethers.network.plugins.GasCost#${n||0}`);ge(this,"effectiveBlock");ge(this,"txBase");ge(this,"txCreate");ge(this,"txDataZero");ge(this,"txDataNonzero");ge(this,"txAccessListStorageKey");ge(this,"txAccessListAddress");const a={effectiveBlock:n};function i(s,o){let c=(r||{})[s];c==null&&(c=o),ce(typeof c=="number",`invalud value for ${s}`,"costs",r),a[s]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),et(this,a)}clone(){return new Zp(this.effectiveBlock,this)}}class Qp extends Wc{constructor(n,r){super("org.ethers.plugins.network.Ens");ge(this,"address");ge(this,"targetNetwork");et(this,{address:n||Oue,targetNetwork:r??1})}clone(){return new Qp(this.address,this.targetNetwork)}}var gf;const HT=class HT extends Wc{constructor(n){super("org.ethers.plugins.network.FeeData");xe(this,gf,void 0);re(this,gf,n)}get feeDataFunc(){return H(this,gf)}async getFeeData(n){return await H(this,gf).call(this,n)}clone(){return new HT(H(this,gf))}};gf=new WeakMap;let s6=HT;var rb,ab;class oC extends Wc{constructor(n,r){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");xe(this,rb,void 0);xe(this,ab,void 0);re(this,rb,n),re(this,ab,r)}get url(){return H(this,rb)}get processFunc(){return H(this,ab)}clone(){return this}}rb=new WeakMap,ab=new WeakMap;const n5=new Map;var Ch,Sh,Dl;const $0=class $0{constructor(e,n){xe(this,Ch,void 0);xe(this,Sh,void 0);xe(this,Dl,void 0);re(this,Ch,e),re(this,Sh,it(n)),re(this,Dl,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return H(this,Ch)}set name(e){re(this,Ch,e)}get chainId(){return H(this,Sh)}set chainId(e){re(this,Sh,it(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===it(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===it(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===it(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(H(this,Dl).values())}attachPlugin(e){if(H(this,Dl).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return H(this,Dl).set(e.name,e.clone()),this}getPlugin(e){return H(this,Dl).get(e)||null}getPlugins(e){return this.plugins.filter(n=>n.name.split("#")[0]===e)}clone(){const e=new $0(this.name,this.chainId);return this.plugins.forEach(n=>{e.attachPlugin(n.clone())}),e}computeIntrinsicGas(e){const n=this.getPlugin("org.ethers.plugins.network.GasCost")||new Zp;let r=n.txBase;if(e.to==null&&(r+=n.txCreate),e.data)for(let a=2;a9){let a=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||a++,r[1]=a.toString()}return BigInt(r[0]+r[1])}function _D(t){return new oC(t,async(e,n,r)=>{r.setHeader("User-Agent","ethers");let a;try{const[i,s]=await Promise.all([r.send(),e()]);a=i;const o=a.bodyJson.standard;return{gasPrice:s.gasPrice,maxFeePerGas:ED(o.maxFee,9),maxPriorityFeePerGas:ED(o.maxPriorityFee,9)}}catch(i){Be(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:a,error:i})}})}let AD=!1;function Pue(){if(AD)return;AD=!0;function t(e,n,r){const a=function(){const i=new Hn(e,n);return r.ensNetwork!=null&&i.attachPlugin(new Qp(null,r.ensNetwork)),i.attachPlugin(new Zp),(r.plugins||[]).forEach(s=>{i.attachPlugin(s)}),i};Hn.register(e,a),Hn.register(n,a),r.altNames&&r.altNames.forEach(i=>{Hn.register(i,a)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("matic",137,{ensNetwork:1,plugins:[_D("https://gasstation.polygon.technology/v2")]}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[_D("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("xdai",100,{ensNetwork:1})}function hw(t){return JSON.parse(JSON.stringify(t))}var oc,Ai,kl,ao,Th,X3;class Rue{constructor(e){xe(this,Th);xe(this,oc,void 0);xe(this,Ai,void 0);xe(this,kl,void 0);xe(this,ao,void 0);re(this,oc,e),re(this,Ai,null),re(this,kl,4e3),re(this,ao,-2)}get pollingInterval(){return H(this,kl)}set pollingInterval(e){re(this,kl,e)}start(){H(this,Ai)||(re(this,Ai,H(this,oc)._setTimeout(ke(this,Th,X3).bind(this),H(this,kl))),ke(this,Th,X3).call(this))}stop(){H(this,Ai)&&(H(this,oc)._clearTimeout(H(this,Ai)),re(this,Ai,null))}pause(e){this.stop(),e&&re(this,ao,-2)}resume(){this.start()}}oc=new WeakMap,Ai=new WeakMap,kl=new WeakMap,ao=new WeakMap,Th=new WeakSet,X3=async function(){try{const e=await H(this,oc).getBlockNumber();if(H(this,ao)===-2){re(this,ao,e);return}if(e!==H(this,ao)){for(let n=H(this,ao)+1;n<=e;n++){if(H(this,Ai)==null)return;await H(this,oc).emit("block",n)}re(this,ao,e)}}catch{}H(this,Ai)!=null&&re(this,Ai,H(this,oc)._setTimeout(ke(this,Th,X3).bind(this),H(this,kl)))};var xf,vf,Il;class cC{constructor(e){xe(this,xf,void 0);xe(this,vf,void 0);xe(this,Il,void 0);re(this,xf,e),re(this,Il,!1),re(this,vf,n=>{this._poll(n,H(this,xf))})}async _poll(e,n){throw new Error("sub-classes must override this")}start(){H(this,Il)||(re(this,Il,!0),H(this,vf).call(this,-2),H(this,xf).on("block",H(this,vf)))}stop(){H(this,Il)&&(re(this,Il,!1),H(this,xf).off("block",H(this,vf)))}pause(e){this.stop()}resume(){this.start()}}xf=new WeakMap,vf=new WeakMap,Il=new WeakMap;var Bh,cc;class Nue extends cC{constructor(n,r){super(n);xe(this,Bh,void 0);xe(this,cc,void 0);re(this,Bh,r),re(this,cc,-2)}pause(n){n&&re(this,cc,-2),super.pause(n)}async _poll(n,r){const a=await r.getBlock(H(this,Bh));a!=null&&(H(this,cc)===-2?re(this,cc,a.number):a.number>H(this,cc)&&(r.emit(H(this,Bh),a.number),re(this,cc,a.number)))}}Bh=new WeakMap,cc=new WeakMap;var G6;class $ue extends cC{constructor(n,r){super(n);xe(this,G6,void 0);re(this,G6,hw(r))}async _poll(n,r){throw new Error("@TODO")}}G6=new WeakMap;var Mh;class Lue extends cC{constructor(n,r){super(n);xe(this,Mh,void 0);re(this,Mh,r)}async _poll(n,r){const a=await r.getTransactionReceipt(H(this,Mh));a&&r.emit(H(this,Mh),a)}}Mh=new WeakMap;var lc,Fh,Dh,Ol,Ci,V6,_j;class lC{constructor(e,n){xe(this,V6);xe(this,lc,void 0);xe(this,Fh,void 0);xe(this,Dh,void 0);xe(this,Ol,void 0);xe(this,Ci,void 0);re(this,lc,e),re(this,Fh,hw(n)),re(this,Dh,ke(this,V6,_j).bind(this)),re(this,Ol,!1),re(this,Ci,-2)}start(){H(this,Ol)||(re(this,Ol,!0),H(this,Ci)===-2&&H(this,lc).getBlockNumber().then(e=>{re(this,Ci,e)}),H(this,lc).on("block",H(this,Dh)))}stop(){H(this,Ol)&&(re(this,Ol,!1),H(this,lc).off("block",H(this,Dh)))}pause(e){this.stop(),e&&re(this,Ci,-2)}resume(){this.start()}}lc=new WeakMap,Fh=new WeakMap,Dh=new WeakMap,Ol=new WeakMap,Ci=new WeakMap,V6=new WeakSet,_j=async function(e){if(H(this,Ci)===-2)return;const n=hw(H(this,Fh));n.fromBlock=H(this,Ci)+1,n.toBlock=e;const r=await H(this,lc).getLogs(n);if(r.length===0){H(this,Ci){if(r==null)return"null";if(typeof r=="bigint")return`bigint:${r.toString()}`;if(typeof r=="string")return r.toLowerCase();if(typeof r=="object"&&!Array.isArray(r)){const a=Object.keys(r);return a.sort(),a.reduce((i,s)=>(i[s]=r[s],i),{})}return r})}class yp{constructor(e){ge(this,"name");et(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function Hue(t){return JSON.parse(JSON.stringify(t))}function pw(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function r5(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(pn(t,32)){const n=t.toLowerCase();return{type:"transaction",tag:Y3("tx",{hash:n}),hash:n}}if(t.orphan){const n=t;return{type:"orphan",tag:Y3("orphan",n),filter:Hue(n)}}if(t.address||t.topics){const n=t,r={topics:(n.topics||[]).map(a=>a==null?null:Array.isArray(a)?pw(a.map(i=>i.toLowerCase())):a.toLowerCase())};if(n.address){const a=[],i=[],s=o=>{pn(o)?a.push(o):i.push((async()=>{a.push(await sr(o,e))})())};Array.isArray(n.address)?n.address.forEach(s):s(n.address),i.length&&await Promise.all(i),r.address=pw(a.map(o=>o.toLowerCase()))}return{filter:r,tag:Y3("event",r),type:"event"}}ce(!1,"unknown ProviderEvent","event",t)}function a5(){return new Date().getTime()}const zue={cacheTimeout:250,pollingInterval:4e3};var Wr,Pl,Kr,kh,qa,wf,Rl,uc,ib,Si,Ih,Oh,ua,Ha,sb,yw,ob,mw,Ef,hy,cb,bw,_f,py,Ph,eg;class mp{constructor(e,n){xe(this,ua);xe(this,sb);xe(this,ob);xe(this,Ef);xe(this,cb);xe(this,_f);xe(this,Ph);xe(this,Wr,void 0);xe(this,Pl,void 0);xe(this,Kr,void 0);xe(this,kh,void 0);xe(this,qa,void 0);xe(this,wf,void 0);xe(this,Rl,void 0);xe(this,uc,void 0);xe(this,ib,void 0);xe(this,Si,void 0);xe(this,Ih,void 0);xe(this,Oh,void 0);if(re(this,Oh,Object.assign({},zue,n||{})),e==="any")re(this,wf,!0),re(this,qa,null);else if(e){const r=Hn.from(e);re(this,wf,!1),re(this,qa,Promise.resolve(r)),setTimeout(()=>{this.emit("network",r,null)},0)}else re(this,wf,!1),re(this,qa,null);re(this,uc,-1),re(this,Rl,new Map),re(this,Wr,new Map),re(this,Pl,new Map),re(this,Kr,null),re(this,kh,!1),re(this,ib,1),re(this,Si,new Map),re(this,Ih,!1)}get pollingInterval(){return H(this,Oh).pollingInterval}get provider(){return this}get plugins(){return Array.from(H(this,Pl).values())}attachPlugin(e){if(H(this,Pl).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return H(this,Pl).set(e.name,e.connect(this)),this}getPlugin(e){return H(this,Pl).get(e)||null}get disableCcipRead(){return H(this,Ih)}set disableCcipRead(e){re(this,Ih,!!e)}async ccipReadFetch(e,n,r){if(this.disableCcipRead||r.length===0||e.to==null)return null;const a=e.to.toLowerCase(),i=n.toLowerCase(),s=[];for(let o=0;o=500,`response not found during CCIP fetch: ${v}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:v}}),s.push(v)}Be(!1,`error encountered during CCIP fetch: ${s.map(o=>JSON.stringify(o)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:s}})}_wrapBlock(e,n){return new eC(Mue(e),this)}_wrapLog(e,n){return new vd(Tue(e),this)}_wrapTransactionReceipt(e,n){return new n8(Iue(e),this)}_wrapTransactionResponse(e,n){return new Yf(Ej(e),this)}_detectNetwork(){Be(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){Be(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=lt(await ke(this,ua,Ha).call(this,{method:"getBlockNumber"}),"%response");return H(this,uc)>=0&&re(this,uc,e),e}_getAddress(e){return sr(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(pn(e))return pn(e,32)?e:gc(e);if(typeof e=="bigint"&&(e=lt(e,"blockTag")),typeof e=="number")return e>=0?gc(e):H(this,uc)>=0?gc(H(this,uc)+e):this.getBlockNumber().then(n=>gc(n+e));ce(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const n=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?pw(c.map(h=>h.toLowerCase())):c.toLowerCase()),r="blockHash"in e?e.blockHash:void 0,a=(c,h,b)=>{let v;switch(c.length){case 0:break;case 1:v=c[0];break;default:c.sort(),v=c}if(r&&(h!=null||b!=null))throw new Error("invalid filter");const E={};return v&&(E.address=v),n.length&&(E.topics=n),h&&(E.fromBlock=h),b&&(E.toBlock=b),r&&(E.blockHash=r),E};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let s;"fromBlock"in e&&(s=this._getBlockTag(e.fromBlock));let o;return"toBlock"in e&&(o=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||s!=null&&typeof s!="string"||o!=null&&typeof o!="string"?Promise.all([Promise.all(i),s,o]).then(c=>a(c[0],c[1],c[2])):a(i,s,o)}_getTransactionRequest(e){const n=dp(e),r=[];if(["to","from"].forEach(a=>{if(n[a]==null)return;const i=sr(n[a],this);W2(i)?r.push(async function(){n[a]=await i}()):n[a]=i}),n.blockTag!=null){const a=this._getBlockTag(n.blockTag);W2(a)?r.push(async function(){n.blockTag=await a}()):n.blockTag=a}return r.length?async function(){return await Promise.all(r),n}():n}async getNetwork(){if(H(this,qa)==null){const a=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw H(this,qa)===a&&re(this,qa,null),i}})();return re(this,qa,a),(await a).clone()}const e=H(this,qa),[n,r]=await Promise.all([e,this._detectNetwork()]);return n.chainId!==r.chainId&&(H(this,wf)?(this.emit("network",r,n),H(this,qa)===e&&re(this,qa,Promise.resolve(r))):Be(!1,`network changed: ${n.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),n.clone()}async getFeeData(){const e=await this.getNetwork(),n=async()=>{const{_block:a,gasPrice:i,priorityFee:s}=await tr({_block:ke(this,cb,bw).call(this,"latest",!1),gasPrice:(async()=>{try{const b=await ke(this,ua,Ha).call(this,{method:"getGasPrice"});return it(b,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const b=await ke(this,ua,Ha).call(this,{method:"getPriorityFee"});return it(b,"%response")}catch{}return null})()});let o=null,c=null;const h=this._wrapBlock(a,e);return h&&h.baseFeePerGas&&(c=s??BigInt("1000000000"),o=h.baseFeePerGas*Uue+c),new a6(i,o,c)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){const a=new $r(r.url),i=await r.processFunc(n,this,a);return new a6(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await n()}async estimateGas(e){let n=this._getTransactionRequest(e);return W2(n)&&(n=await n),it(await ke(this,ua,Ha).call(this,{method:"estimateGas",transaction:n}),"%response")}async call(e){const{tx:n,blockTag:r}=await tr({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await ke(this,ob,mw).call(this,ke(this,sb,yw).call(this,n,r,e.enableCcipRead?0:-1))}async getBalance(e,n){return it(await ke(this,Ef,hy).call(this,{method:"getBalance"},e,n),"%response")}async getTransactionCount(e,n){return lt(await ke(this,Ef,hy).call(this,{method:"getTransactionCount"},e,n),"%response")}async getCode(e,n){return Ve(await ke(this,Ef,hy).call(this,{method:"getCode"},e,n))}async getStorage(e,n,r){const a=it(n,"position");return Ve(await ke(this,Ef,hy).call(this,{method:"getStorage",position:a},e,r))}async broadcastTransaction(e){const{blockNumber:n,hash:r,network:a}=await tr({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=du.from(e);if(i.hash!==r)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,a).replaceableTransaction(n)}async getBlock(e,n){const{network:r,params:a}=await tr({network:this.getNetwork(),params:ke(this,cb,bw).call(this,e,!!n)});return a==null?null:this._wrapBlock(a,r)}async getTransaction(e){const{network:n,params:r}=await tr({network:this.getNetwork(),params:ke(this,ua,Ha).call(this,{method:"getTransaction",hash:e})});return r==null?null:this._wrapTransactionResponse(r,n)}async getTransactionReceipt(e){const{network:n,params:r}=await tr({network:this.getNetwork(),params:ke(this,ua,Ha).call(this,{method:"getTransactionReceipt",hash:e})});if(r==null)return null;if(r.gasPrice==null&&r.effectiveGasPrice==null){const a=await ke(this,ua,Ha).call(this,{method:"getTransaction",hash:e});if(a==null)throw new Error("report this; could not find tx or effectiveGasPrice");r.effectiveGasPrice=a.gasPrice}return this._wrapTransactionReceipt(r,n)}async getTransactionResult(e){const{result:n}=await tr({network:this.getNetwork(),result:ke(this,ua,Ha).call(this,{method:"getTransactionResult",hash:e})});return n==null?null:Ve(n)}async getLogs(e){let n=this._getFilter(e);W2(n)&&(n=await n);const{network:r,params:a}=await tr({network:this.getNetwork(),params:ke(this,ua,Ha).call(this,{method:"getLogs",filter:n})});return a.map(i=>this._wrapLog(i,r))}_getProvider(e){Be(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await hp.fromName(this,e)}async getAvatar(e){const n=await this.getResolver(e);return n?await n.getAvatar():null}async resolveName(e){const n=await this.getResolver(e);return n?await n.getAddress():null}async lookupAddress(e){e=Et(e);const n=Tm(e.substring(2).toLowerCase()+".addr.reverse");try{const r=await hp.getEnsAddress(this),i=await new ru(r,["function resolver(bytes32) view returns (address)"],this).resolver(n);if(i==null||i===Em)return null;const o=await new ru(i,["function name(bytes32) view returns (string)"],this).name(n);return await this.resolveName(o)!==e?null:o}catch(r){if(Wn(r,"BAD_DATA")&&r.value==="0x"||Wn(r,"CALL_EXCEPTION"))return null;throw r}return null}async waitForTransaction(e,n,r){const a=n??1;return a===0?this.getTransactionReceipt(e):new Promise(async(i,s)=>{let o=null;const c=async h=>{try{const b=await this.getTransactionReceipt(e);if(b!=null&&h-b.blockNumber+1>=a){i(b),o&&(clearTimeout(o),o=null);return}}catch(b){console.log("EEE",b)}this.once("block",c)};r!=null&&(o=setTimeout(()=>{o!=null&&(o=null,this.off("block",c),s(mn("timeout","TIMEOUT",{reason:"timeout"})))},r)),c(await this.getBlockNumber())})}async waitForBlock(e){Be(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const n=H(this,Si).get(e);n&&(n.timer&&clearTimeout(n.timer),H(this,Si).delete(e))}_setTimeout(e,n){n==null&&(n=0);const r=Od(this,ib)._++,a=()=>{H(this,Si).delete(r),e()};if(this.paused)H(this,Si).set(r,{timer:null,func:a,time:n});else{const i=setTimeout(a,n);H(this,Si).set(r,{timer:i,func:a,time:a5()})}return r}_forEachSubscriber(e){for(const n of H(this,Wr).values())e(n.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new yp(e.type);case"block":{const n=new Rue(this);return n.pollingInterval=this.pollingInterval,n}case"safe":case"finalized":return new Nue(this,e.type);case"event":return new lC(this,e.filter);case"transaction":return new Lue(this,e.hash);case"orphan":return new $ue(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,n){for(const r of H(this,Wr).values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=n,r.started&&n.start(),H(this,Kr)!=null&&n.pause(H(this,Kr));break}}async on(e,n){const r=await ke(this,Ph,eg).call(this,e);return r.listeners.push({listener:n,once:!1}),r.started||(r.subscriber.start(),r.started=!0,H(this,Kr)!=null&&r.subscriber.pause(H(this,Kr))),this}async once(e,n){const r=await ke(this,Ph,eg).call(this,e);return r.listeners.push({listener:n,once:!0}),r.started||(r.subscriber.start(),r.started=!0,H(this,Kr)!=null&&r.subscriber.pause(H(this,Kr))),this}async emit(e,...n){const r=await ke(this,_f,py).call(this,e,n);if(!r||r.listeners.length===0)return!1;const a=r.listeners.length;return r.listeners=r.listeners.filter(({listener:i,once:s})=>{const o=new Kx(this,s?null:i,e);try{i.call(this,...n,o)}catch{}return!s}),r.listeners.length===0&&(r.started&&r.subscriber.stop(),H(this,Wr).delete(r.tag)),a>0}async listenerCount(e){if(e){const r=await ke(this,_f,py).call(this,e);return r?r.listeners.length:0}let n=0;for(const{listeners:r}of H(this,Wr).values())n+=r.length;return n}async listeners(e){if(e){const r=await ke(this,_f,py).call(this,e);return r?r.listeners.map(({listener:a})=>a):[]}let n=[];for(const{listeners:r}of H(this,Wr).values())n=n.concat(r.map(({listener:a})=>a));return n}async off(e,n){const r=await ke(this,_f,py).call(this,e);if(!r)return this;if(n){const a=r.listeners.map(({listener:i})=>i).indexOf(n);a>=0&&r.listeners.splice(a,1)}return(!n||r.listeners.length===0)&&(r.started&&r.subscriber.stop(),H(this,Wr).delete(r.tag)),this}async removeAllListeners(e){if(e){const{tag:n,started:r,subscriber:a}=await ke(this,Ph,eg).call(this,e);r&&a.stop(),H(this,Wr).delete(n)}else for(const[n,{started:r,subscriber:a}]of H(this,Wr))r&&a.stop(),H(this,Wr).delete(n);return this}async addListener(e,n){return await this.on(e,n)}async removeListener(e,n){return this.off(e,n)}get destroyed(){return H(this,kh)}destroy(){this.removeAllListeners();for(const e of H(this,Si).keys())this._clearTimeout(e);re(this,kh,!0)}get paused(){return H(this,Kr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(re(this,uc,-1),H(this,Kr)!=null){if(H(this,Kr)==!!e)return;Be(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(n=>n.pause(e)),re(this,Kr,!!e);for(const n of H(this,Si).values())n.timer&&clearTimeout(n.timer),n.time=a5()-n.time}resume(){if(H(this,Kr)!=null){this._forEachSubscriber(e=>e.resume()),re(this,Kr,null);for(const e of H(this,Si).values()){let n=e.time;n<0&&(n=0),e.time=a5(),setTimeout(e.func,n)}}}}Wr=new WeakMap,Pl=new WeakMap,Kr=new WeakMap,kh=new WeakMap,qa=new WeakMap,wf=new WeakMap,Rl=new WeakMap,uc=new WeakMap,ib=new WeakMap,Si=new WeakMap,Ih=new WeakMap,Oh=new WeakMap,ua=new WeakSet,Ha=async function(e){const n=H(this,Oh).cacheTimeout;if(n<0)return await this._perform(e);const r=Y3(e.method,e);let a=H(this,Rl).get(r);return a||(a=this._perform(e),H(this,Rl).set(r,a),setTimeout(()=>{H(this,Rl).get(r)===a&&H(this,Rl).delete(r)},n)),await a},sb=new WeakSet,yw=async function(e,n,r){Be(r=0&&n==="latest"&&a.to!=null&&Jt(i.data,0,4)==="0x556f1830"){const s=i.data,o=await sr(a.to,this);let c;try{c=Kue(Jt(i.data,4))}catch(v){Be(!1,v.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:a,info:{data:s}})}Be(c.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:s,reason:"OffchainLookup",transaction:a,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const h=await this.ccipReadFetch(a,c.calldata,c.urls);Be(h!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:a,info:{data:i.data,errorArgs:c.errorArgs}});const b={to:o,data:Ut([c.selector,Wue([h,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:b});try{const v=await ke(this,sb,yw).call(this,b,n,r+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},b),result:v}),v}catch(v){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},b),error:v}),v}}throw i}},ob=new WeakSet,mw=async function(e){const{value:n}=await tr({network:this.getNetwork(),value:e});return n},Ef=new WeakSet,hy=async function(e,n,r){let a=this._getAddress(n),i=this._getBlockTag(r);return(typeof a!="string"||typeof i!="string")&&([a,i]=await Promise.all([a,i])),await ke(this,ob,mw).call(this,ke(this,ua,Ha).call(this,Object.assign(e,{address:a,blockTag:i})))},cb=new WeakSet,bw=async function(e,n){if(pn(e,32))return await ke(this,ua,Ha).call(this,{method:"getBlock",blockHash:e,includeTransactions:n});let r=this._getBlockTag(e);return typeof r!="string"&&(r=await r),await ke(this,ua,Ha).call(this,{method:"getBlock",blockTag:r,includeTransactions:n})},_f=new WeakSet,py=async function(e,n){let r=await r5(e,this);return r.type==="event"&&n&&n.length>0&&n[0].removed===!0&&(r=await r5({orphan:"drop-log",log:n[0]},this)),H(this,Wr).get(r.tag)||null},Ph=new WeakSet,eg=async function(e){const n=await r5(e,this),r=n.tag;let a=H(this,Wr).get(r);return a||(a={subscriber:this._getSubscriber(n),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},H(this,Wr).set(r,a)),a};function Gue(t,e){try{const n=gw(t,e);if(n)return fu(n)}catch{}return null}function gw(t,e){if(t==="0x")return null;try{const n=lt(Jt(t,e,e+32)),r=lt(Jt(t,n,n+32));return Jt(t,n+32,n+32+r)}catch{}return null}function CD(t){const e=Or(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function Vue(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const que=new Uint8Array([]);function Wue(t){const e=[];let n=0;for(let r=0;r=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=Jt(t,0,32);Be(Jt(n,0,12)===Jt(SD,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=Jt(n,12);try{const r=[],a=lt(Jt(t,32,64)),i=lt(Jt(t,a,a+32)),s=Jt(t,a+32);for(let o=0;oe[r]),e}function Hd(t,e){if(t.provider)return t.provider;Be(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function TD(t,e){let n=dp(e);if(n.to!=null&&(n.to=sr(n.to,t)),n.from!=null){const r=n.from;n.from=Promise.all([t.getAddress(),sr(r,t)]).then(([a,i])=>(ce(a.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),a))}else n.from=t.getAddress();return await tr(n)}class Jp{constructor(e){ge(this,"provider");et(this,{provider:e||null})}async getNonce(e){return Hd(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await TD(this,e)}async populateTransaction(e){const n=Hd(this,"populateTransaction"),r=await TD(this,e);r.nonce==null&&(r.nonce=await this.getNonce("pending")),r.gasLimit==null&&(r.gasLimit=await this.estimateGas(r));const a=await this.provider.getNetwork();if(r.chainId!=null){const s=it(r.chainId);ce(s===a.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=a.chainId;const i=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||i)?ce(!1,"eip-1559 transaction do not support gasPrice","tx",e):(r.type===0||r.type===1)&&i&&ce(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1){const s=await n.getFeeData();Be(s.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),r.gasPrice==null&&(r.gasPrice=s.gasPrice)}else{const s=await n.getFeeData();if(r.type==null)if(s.maxFeePerGas!=null&&s.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const o=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=o,r.maxPriorityFeePerGas=o}else r.maxFeePerGas==null&&(r.maxFeePerGas=s.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=s.maxPriorityFeePerGas);else s.gasPrice!=null?(Be(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=s.gasPrice),r.type=0):Be(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=s.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=s.maxPriorityFeePerGas))}return await tr(r)}async estimateGas(e){return Hd(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Hd(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Hd(this,"resolveName").resolveName(e)}async sendTransaction(e){const n=Hd(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;const a=du.from(r);return await n.broadcastTransaction(await this.signTransaction(a))}}var Rh,tg;const zT=class zT extends Jp{constructor(n,r){super(r);xe(this,Rh);ge(this,"address");et(this,{address:n})}async getAddress(){return this.address}connect(n){return new zT(this.address,n)}async signTransaction(n){ke(this,Rh,tg).call(this,"transactions","signTransaction")}async signMessage(n){ke(this,Rh,tg).call(this,"messages","signMessage")}async signTypedData(n,r,a){ke(this,Rh,tg).call(this,"typed-data","signTypedData")}};Rh=new WeakSet,tg=function(n,r){Be(!1,`VoidSigner cannot sign ${n}`,"UNSUPPORTED_OPERATION",{operation:r})};let Mm=zT;const BD=new Set;function Eu(t){BD.has(t)||(BD.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (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.org/api-keys/"),console.log("=========================="))}function Zue(t){return JSON.parse(JSON.stringify(t))}var Ea,io,Af,Nl,Cf,Nh,lb,xw,ub,vw;class Aj{constructor(e){xe(this,lb);xe(this,ub);xe(this,Ea,void 0);xe(this,io,void 0);xe(this,Af,void 0);xe(this,Nl,void 0);xe(this,Cf,void 0);xe(this,Nh,void 0);re(this,Ea,e),re(this,io,null),re(this,Af,ke(this,lb,xw).bind(this)),re(this,Nl,!1),re(this,Cf,null),re(this,Nh,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,n){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){H(this,Nl)||(re(this,Nl,!0),ke(this,lb,xw).call(this,-2))}stop(){H(this,Nl)&&(re(this,Nl,!1),re(this,Nh,!0),ke(this,ub,vw).call(this),H(this,Ea).off("block",H(this,Af)))}pause(e){e&&ke(this,ub,vw).call(this),H(this,Ea).off("block",H(this,Af))}resume(){this.start()}}Ea=new WeakMap,io=new WeakMap,Af=new WeakMap,Nl=new WeakMap,Cf=new WeakMap,Nh=new WeakMap,lb=new WeakSet,xw=async function(e){try{H(this,io)==null&&re(this,io,this._subscribe(H(this,Ea)));let n=null;try{n=await H(this,io)}catch(i){if(!Wn(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(n==null){re(this,io,null),H(this,Ea)._recoverSubscriber(this,this._recover(H(this,Ea)));return}const r=await H(this,Ea).getNetwork();if(H(this,Cf)||re(this,Cf,r),H(this,Cf).chainId!==r.chainId)throw new Error("chaid changed");if(H(this,Nh))return;const a=await H(this,Ea).send("eth_getFilterChanges",[n]);await this._emitResults(H(this,Ea),a)}catch(n){console.log("@TODO",n)}H(this,Ea).once("block",H(this,Af))},ub=new WeakSet,vw=function(){const e=H(this,io);e&&(re(this,io,null),e.then(n=>{H(this,Ea).send("eth_uninstallFilter",[n])}))};var Sf;class Que extends Aj{constructor(n,r){super(n);xe(this,Sf,void 0);re(this,Sf,Zue(r))}_recover(n){return new lC(n,H(this,Sf))}async _subscribe(n){return await n.send("eth_newFilter",[H(this,Sf)])}async _emitResults(n,r){for(const a of r)n.emit(H(this,Sf),n._wrapLog(a,n._network))}}Sf=new WeakMap;class Jue extends Aj{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,n){for(const r of n)e.emit("pending",r)}}const Xue="bigint,boolean,function,number,string,symbol".split(/,/g);function ng(t){if(t==null||Xue.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(ng);if(typeof t=="object")return Object.keys(t).reduce((e,n)=>(e[n]=t[n],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function Yue(t){return new Promise(e=>{setTimeout(e,t)})}function zd(t){return t&&t.toLowerCase()}function MD(t){return t&&typeof t.pollingInterval=="number"}const efe={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class Hy extends Jp{constructor(n,r){super(n);ge(this,"address");r=Et(r),et(this,{address:r})}connect(n){Be(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(n){return await this.populateCall(n)}async sendUncheckedTransaction(n){const r=ng(n),a=[];if(r.from){const s=r.from;a.push((async()=>{const o=await sr(s,this.provider);ce(o!=null&&o.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=o})())}else r.from=this.address;if(r.gasLimit==null&&a.push((async()=>{r.gasLimit=await this.provider.estimateGas({...r,from:this.address})})()),r.to!=null){const s=r.to;a.push((async()=>{r.to=await sr(s,this.provider)})())}a.length&&await Promise.all(a);const i=this.provider.getRpcTransaction(r);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(n){const r=await this.provider.getBlockNumber(),a=await this.sendUncheckedTransaction(n);return await new Promise((i,s)=>{const o=[1e3,100];let c=0;const h=async()=>{try{const b=await this.provider.getTransaction(a);if(b!=null){i(b.replaceableTransaction(r));return}}catch(b){if(Wn(b,"CANCELLED")||Wn(b,"BAD_DATA")||Wn(b,"NETWORK_ERROR")){b.info==null&&(b.info={}),b.info.sendTransactionHash=a,s(b);return}if(Wn(b,"INVALID_ARGUMENT")&&(c++,b.info==null&&(b.info={}),b.info.sendTransactionHash=a,c>10)){s(b);return}this.provider.emit("error",mn("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:b}))}this.provider._setTimeout(()=>{h()},o.pop()||4e3)};h()})}async signTransaction(n){const r=ng(n);if(r.from){const i=await sr(r.from,this.provider);ce(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",n),r.from=i}else r.from=this.address;const a=this.provider.getRpcTransaction(r);return await this.provider.send("eth_signTransaction",[a])}async signMessage(n){const r=typeof n=="string"?Kn(n):n;return await this.provider.send("personal_sign",[Ve(r),this.address.toLowerCase()])}async signTypedData(n,r,a){const i=ng(a),s=await Dc.resolveNames(n,r,i,async o=>{const c=await sr(o);return ce(c!=null,"TypedData does not support null address","value",o),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Dc.getPayload(s.domain,r,s.value))])}async unlock(n){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),n,null])}async _legacySignMessage(n){const r=typeof n=="string"?Kn(n):n;return await this.provider.send("eth_sign",[this.address.toLowerCase(),Ve(r)])}}var Tf,$h,fc,so,bs,Ti,_a,fb,ww;class o8 extends mp{constructor(n,r){super(n,r);xe(this,fb);xe(this,Tf,void 0);xe(this,$h,void 0);xe(this,fc,void 0);xe(this,so,void 0);xe(this,bs,void 0);xe(this,Ti,void 0);xe(this,_a,void 0);re(this,$h,1),re(this,Tf,Object.assign({},efe,r||{})),re(this,fc,[]),re(this,so,null),re(this,Ti,null),re(this,_a,null);{let i=null;const s=new Promise(o=>{i=o});re(this,bs,{promise:s,resolve:i})}const a=this._getOption("staticNetwork");typeof a=="boolean"?(ce(!a||n!=="any","staticNetwork cannot be used on special network 'any'","options",r),a&&n!=null&&re(this,Ti,Hn.from(n))):a&&(ce(n==null||a.matches(n),"staticNetwork MUST match network object","options",r),re(this,Ti,a))}_getOption(n){return H(this,Tf)[n]}get _network(){return Be(H(this,Ti),"network is not available yet","NETWORK_ERROR"),H(this,Ti)}async _perform(n){if(n.method==="call"||n.method==="estimateGas"){let a=n.transaction;if(a&&a.type!=null&&it(a.type)&&a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=Object.assign({},n,{transaction:Object.assign({},a,{type:void 0})}))}}const r=this.getRpcRequest(n);return r!=null?await this.send(r.method,r.args):super._perform(n)}async _detectNetwork(){const n=this._getOption("staticNetwork");if(n)if(n===!0){if(H(this,Ti))return H(this,Ti)}else return n;return H(this,_a)?await H(this,_a):this.ready?(re(this,_a,(async()=>{try{const r=Hn.from(it(await this.send("eth_chainId",[])));return re(this,_a,null),r}catch(r){throw re(this,_a,null),r}})()),await H(this,_a)):(re(this,_a,(async()=>{const r={id:Od(this,$h)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:r});let a;try{a=(await this._send(r))[0],re(this,_a,null)}catch(i){throw re(this,_a,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:a}),"result"in a)return Hn.from(it(a.result));throw this.getRpcError(r,a)})()),await H(this,_a))}_start(){H(this,bs)==null||H(this,bs).resolve==null||(H(this,bs).resolve(),re(this,bs,null),(async()=>{for(;H(this,Ti)==null&&!this.destroyed;)try{re(this,Ti,await this._detectNetwork())}catch(n){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",mn("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:n}})),await Yue(1e3)}ke(this,fb,ww).call(this)})())}async _waitUntilReady(){if(H(this,bs)!=null)return await H(this,bs).promise}_getSubscriber(n){return n.type==="pending"?new Jue(this):n.type==="event"?this._getOption("polling")?new lC(this,n.filter):new Que(this,n.filter):n.type==="orphan"&&n.filter.orphan==="drop-log"?new yp("orphan"):super._getSubscriber(n)}get ready(){return H(this,bs)==null}getRpcTransaction(n){const r={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(a=>{if(n[a]==null)return;let i=a;a==="gasLimit"&&(i="gas"),r[i]=gc(it(n[a],`tx.${a}`))}),["from","to","data"].forEach(a=>{n[a]!=null&&(r[a]=Ve(n[a]))}),n.accessList&&(r.accessList=Oo(n.accessList)),r}getRpcRequest(n){switch(n.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[zd(n.address),n.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[zd(n.address),n.blockTag]};case"getCode":return{method:"eth_getCode",args:[zd(n.address),n.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[zd(n.address),"0x"+n.position.toString(16),n.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[n.signedTransaction]};case"getBlock":if("blockTag"in n)return{method:"eth_getBlockByNumber",args:[n.blockTag,!!n.includeTransactions]};if("blockHash"in n)return{method:"eth_getBlockByHash",args:[n.blockHash,!!n.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[n.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[n.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(n.transaction),n.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(n.transaction)]};case"getLogs":return n.filter&&n.filter.address!=null&&(Array.isArray(n.filter.address)?n.filter.address=n.filter.address.map(zd):n.filter.address=zd(n.filter.address)),{method:"eth_getLogs",args:[n.filter]}}return null}getRpcError(n,r){const{method:a}=n,{error:i}=r;if(a==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return mn("insufficient funds","INSUFFICIENT_FUNDS",{transaction:n.params[0],info:{payload:n,error:i}})}if(a==="eth_call"||a==="eth_estimateGas"){const c=Ew(i),h=hu.getBuiltinCallException(a==="eth_call"?"call":"estimateGas",n.params[0],c?c.data:null);return h.info={error:i,payload:n},h}const s=JSON.stringify(tfe(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return mn("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[a]||"unknown",reason:"rejected",info:{payload:n,error:i}});if(a==="eth_sendRawTransaction"||a==="eth_sendTransaction"){const c=n.params[0];if(s.match(/insufficient funds|base fee exceeds gas limit/i))return mn("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(s.match(/nonce/i)&&s.match(/too low/i))return mn("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(s.match(/replacement transaction/i)&&s.match(/underpriced/i))return mn("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(s.match(/only replay-protected/i))return mn("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:a,info:{transaction:c,info:{error:i}}})}let o=!!s.match(/the method .* does not exist/i);return o||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(o=!0),o?mn("unsupported operation","UNSUPPORTED_OPERATION",{operation:n.method,info:{error:i,payload:n}}):mn("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:n})}send(n,r){if(this.destroyed)return Promise.reject(mn("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n}));const a=Od(this,$h)._++,i=new Promise((s,o)=>{H(this,fc).push({resolve:s,reject:o,payload:{method:n,params:r,id:a,jsonrpc:"2.0"}})});return ke(this,fb,ww).call(this),i}async getSigner(n){n==null&&(n=0);const r=this.send("eth_accounts",[]);if(typeof n=="number"){const i=await r;if(n>=i.length)throw new Error("no such account");return new Hy(this,i[n])}const{accounts:a}=await tr({network:this.getNetwork(),accounts:r});n=Et(n);for(const i of a)if(Et(i)===n)return new Hy(this,n);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(r=>new Hy(this,r))}destroy(){H(this,so)&&(clearTimeout(H(this,so)),re(this,so,null));for(const{payload:n,reject:r}of H(this,fc))r(mn("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:n.method}));re(this,fc,[]),super.destroy()}}Tf=new WeakMap,$h=new WeakMap,fc=new WeakMap,so=new WeakMap,bs=new WeakMap,Ti=new WeakMap,_a=new WeakMap,fb=new WeakSet,ww=function(){if(H(this,so))return;const n=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");re(this,so,setTimeout(()=>{re(this,so,null);const r=H(this,fc);for(re(this,fc,[]);r.length;){const a=[r.shift()];for(;r.length&&a.length!==H(this,Tf).batchMaxCount;)if(a.push(r.shift()),JSON.stringify(a.map(s=>s.payload)).length>H(this,Tf).batchMaxSize){r.unshift(a.pop());break}(async()=>{const i=a.length===1?a[0].payload:a.map(s=>s.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const s=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:s});for(const{resolve:o,reject:c,payload:h}of a){if(this.destroyed){c(mn("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:h.method}));continue}const b=s.filter(v=>v.id===h.id)[0];if(b==null){const v=mn("missing response for request","BAD_DATA",{value:s,info:{payload:h}});this.emit("error",v),c(v);continue}if("error"in b){c(this.getRpcError(h,b));continue}o(b.result)}}catch(s){this.emit("debug",{action:"receiveRpcError",error:s});for(const{reject:o}of a)o(s)}})()}},n))};var $l;class Cj extends o8{constructor(n,r){super(n,r);xe(this,$l,void 0);re(this,$l,4e3)}_getSubscriber(n){const r=super._getSubscriber(n);return MD(r)&&(r.pollingInterval=H(this,$l)),r}get pollingInterval(){return H(this,$l)}set pollingInterval(n){if(!Number.isInteger(n)||n<0)throw new Error("invalid interval");re(this,$l,n),this._forEachSubscriber(r=>{MD(r)&&(r.pollingInterval=H(this,$l))})}}$l=new WeakMap;var Lh;class So extends Cj{constructor(n,r,a){n==null&&(n="http://localhost:8545");super(r,a);xe(this,Lh,void 0);typeof n=="string"?re(this,Lh,new $r(n)):re(this,Lh,n.clone())}_getConnection(){return H(this,Lh).clone()}async send(n,r){return await this._start(),await super.send(n,r)}async _send(n){const r=this._getConnection();r.body=JSON.stringify(n),r.setHeader("content-type","application/json");const a=await r.send();a.assertOk();let i=a.bodyJson;return Array.isArray(i)||(i=[i]),i}}Lh=new WeakMap;function Ew(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&pn(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const n=Ew(t[e]);if(n)return n}return null}if(typeof t=="string")try{return Ew(JSON.parse(t))}catch{}return null}function _w(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const n in t)_w(t[n],e);if(typeof t=="string")try{return _w(JSON.parse(t),e)}catch{}}}function tfe(t){const e=[];return _w(t,e),e}const K2="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function nfe(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"matic":return"rpc.ankr.com/polygon";case"arbitrum":return"rpc.ankr.com/arbitrum"}ce(!1,"unsupported network","network",t)}class bp extends So{constructor(n,r){n==null&&(n="mainnet");const a=Hn.from(n);r==null&&(r=K2);const i={polling:!0,staticNetwork:a},s=bp.getRequest(a,r);super(s,a,i);ge(this,"apiKey");et(this,{apiKey:r})}_getProvider(n){try{return new bp(n,this.apiKey)}catch{}return super._getProvider(n)}static getRequest(n,r){r==null&&(r=K2);const a=new $r(`https://${nfe(n.name)}/${r}`);return a.allowGzip=!0,r===K2&&(a.retryFunc=async(i,s,o)=>(Eu("AnkrProvider"),!0)),a}getRpcError(n,r){return n.method==="eth_sendRawTransaction"&&r&&r.error&&r.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(r.error.message="replacement transaction underpriced"),super.getRpcError(n,r)}isCommunityResource(){return this.apiKey===K2}}const Z2="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function rfe(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com"}ce(!1,"unsupported network","network",t)}class gp extends So{constructor(n,r){n==null&&(n="mainnet");const a=Hn.from(n);r==null&&(r=Z2);const i=gp.getRequest(a,r);super(i,a,{staticNetwork:a});ge(this,"apiKey");et(this,{apiKey:r})}_getProvider(n){try{return new gp(n,this.apiKey)}catch{}return super._getProvider(n)}async _perform(n){if(n.method==="getTransactionResult"){const{trace:r,tx:a}=await tr({trace:this.send("trace_transaction",[n.hash]),tx:this.getTransaction(n.hash)});if(r==null||a==null)return null;let i,s=!1;try{i=r[0].result.output,s=r[0].error==="Reverted"}catch{}if(i)return Be(!s,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:a,invocation:null,revert:null}),i;Be(!1,"could not parse trace result","BAD_DATA",{value:r})}return await super._perform(n)}isCommunityResource(){return this.apiKey===Z2}static getRequest(n,r){r==null&&(r=Z2);const a=new $r(`https://${rfe(n.name)}/v2/${r}`);return a.allowGzip=!0,r===Z2&&(a.retryFunc=async(i,s,o)=>(Eu("alchemy"),!0)),a}}class uC extends So{constructor(e){e==null&&(e="mainnet");const n=Hn.from(e);ce(n.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",n,{staticNetwork:n})}}const FD=2e3;function afe(t){return t&&typeof t.then=="function"}const Sj="org.ethers.plugins.provider.Etherscan";class c8 extends Wc{constructor(n){super(Sj);ge(this,"baseUrl");et(this,{baseUrl:n})}clone(){return new c8(this.baseUrl)}}const ife=["enableCcipRead"];let sfe=1;var Uh;class fC extends mp{constructor(n,r){const a=r??null;super();ge(this,"network");ge(this,"apiKey");xe(this,Uh,void 0);const i=Hn.from(n);re(this,Uh,i.getPlugin(Sj)),et(this,{apiKey:a,network:i}),this.getBaseUrl()}getBaseUrl(){if(H(this,Uh))return H(this,Uh).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";case"bnb":return"http://api.bscscan.com";case"bnbt":return"http://api-testnet.bscscan.com"}ce(!1,"unsupported network","network",this.network)}getUrl(n,r){const a=Object.keys(r).reduce((s,o)=>{const c=r[o];return c!=null&&(s+=`&${o}=${c}`),s},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${n}${a}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(n,r){return r.module=n,r.apikey=this.apiKey,r}async detectNetwork(){return this.network}async fetch(n,r,a){const i=sfe++,s=a?this.getPostUrl():this.getUrl(n,r),o=a?this.getPostData(n,r):null;this.emit("debug",{action:"sendRequest",id:i,url:s,payload:o});const c=new $r(s);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(v,E,C)=>(this.isCommunityResource()&&Eu("Etherscan"),Promise.resolve(!0)),c.processFunc=async(v,E)=>{const C=E.hasBody()?JSON.parse(fu(E.body)):{},M=(typeof C.result=="string"?C.result:"").toLowerCase().indexOf("rate limit")>=0;return n==="proxy"?C&&C.status==0&&C.message=="NOTOK"&&M&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:C}),E.throwThrottleError(C.result,FD)):M&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:C.result}),E.throwThrottleError(C.result,FD)),E},o&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(o).map(v=>`${v}=${o[v]}`).join("&"));const h=await c.send();try{h.assertOk()}catch(v){this.emit("debug",{action:"receiveError",id:i,error:v,reason:"assertOk"}),Be(!1,"response error","SERVER_ERROR",{request:c,response:h})}h.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),Be(!1,"missing response","SERVER_ERROR",{request:c,response:h}));const b=JSON.parse(fu(h.body));return n==="proxy"?(b.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:b,reason:"invalid JSON-RPC"}),Be(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:h,info:{result:b}})),b.error&&(this.emit("debug",{action:"receiveError",id:i,result:b,reason:"JSON-RPC error"}),Be(!1,"error response","SERVER_ERROR",{request:c,response:h,info:{result:b}})),this.emit("debug",{action:"receiveRequest",id:i,result:b}),b.result):b.status==0&&(b.message==="No records found"||b.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:b}),b.result):((b.status!=1||typeof b.message=="string"&&!b.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:b}),Be(!1,"error response","SERVER_ERROR",{request:c,response:h,info:{result:b}})),this.emit("debug",{action:"receiveRequest",id:i,result:b}),b.result)}_getTransactionPostData(n){const r={};for(let a in n){if(ife.indexOf(a)>=0||n[a]==null)continue;let i=n[a];a==="type"&&i===0||a==="blockTag"&&i==="latest"||({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[a]?i=gc(i):a==="accessList"?i="["+Oo(i).map(s=>`{address:"${s.address}",storageKeys:["${s.storageKeys.join('","')}"]}`).join(",")+"]":i=Ve(i),r[a]=i)}return r}_checkError(n,r,a){let i="";if(Wn(r,"SERVER_ERROR")){try{i=r.info.result.error.message}catch{}if(!i)try{i=r.info.message}catch{}}if(n.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&Be(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:n.transaction}),(n.method==="call"||n.method==="estimateGas")&&i.match(/execution reverted/i)){let s="";try{s=r.info.result.error.data}catch{}const o=hu.getBuiltinCallException(n.method,n.transaction,s);throw o.info={request:n,error:r},o}if(i&&n.method==="broadcastTransaction"){const s=du.from(n.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&Be(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:s}),i.match(/insufficient funds/)&&Be(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:s}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Be(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:s})}throw r}async _detectNetwork(){return this.network}async _perform(n){switch(n.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(r=>this._checkError(n,r,n.signedTransaction));case"getBlock":if("blockTag"in n)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"});Be(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.hash});case"call":{if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const r=this._getTransactionPostData(n.transaction);r.module="proxy",r.action="eth_call";try{return await this.fetch("proxy",r,!0)}catch(a){return this._checkError(n,a,n.transaction)}}case"estimateGas":{const r=this._getTransactionPostData(n.transaction);r.module="proxy",r.action="eth_estimateGas";try{return await this.fetch("proxy",r,!0)}catch(a){return this._checkError(n,a,n.transaction)}}}return super._perform(n)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(n){let r=this._getAddress(n);afe(r)&&(r=await r);try{const a=await this.fetch("contract",{action:"getabi",address:r}),i=JSON.parse(a);return new ru(r,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Uh=new WeakMap;var DD={};function ofe(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof DD<"u")return DD;throw new Error("unable to locate global object")}const cfe=ofe().WebSocket;var dc,db,Ll,Bf,Ul;class Hb{constructor(e,n){xe(this,dc,void 0);xe(this,db,void 0);xe(this,Ll,void 0);xe(this,Bf,void 0);xe(this,Ul,void 0);re(this,dc,e),re(this,db,JSON.stringify(n)),re(this,Ll,null),re(this,Bf,null),re(this,Ul,null)}get filter(){return JSON.parse(H(this,db))}start(){re(this,Ll,H(this,dc).send("eth_subscribe",this.filter).then(e=>(H(this,dc)._register(e,this),e)))}stop(){H(this,Ll).then(e=>{H(this,dc).send("eth_unsubscribe",[e])}),re(this,Ll,null)}pause(e){Be(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),re(this,Bf,!!e)}resume(){re(this,Bf,null)}_handleMessage(e){if(H(this,Ll)!=null&&H(this,Bf)===null){let n=H(this,Ul);n==null?n=this._emit(H(this,dc),e):n=n.then(async()=>{await this._emit(H(this,dc),e)}),re(this,Ul,n.then(()=>{H(this,Ul)===n&&re(this,Ul,null)}))}}async _emit(e,n){throw new Error("sub-classes must implemente this; _emit")}}dc=new WeakMap,db=new WeakMap,Ll=new WeakMap,Bf=new WeakMap,Ul=new WeakMap;class dC extends Hb{constructor(e){super(e,["newHeads"])}async _emit(e,n){e.emit("block",parseInt(n.number))}}class hC extends Hb{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,n){e.emit("pending",n)}}var hb;class pC extends Hb{constructor(n,r){super(n,["logs",r]);xe(this,hb,void 0);re(this,hb,JSON.stringify(r))}get logFilter(){return JSON.parse(H(this,hb))}async _emit(n,r){n.emit(this.logFilter,n._wrapLog(r,n._network))}}hb=new WeakMap;var Mf,jh,jl;class yC extends o8{constructor(n,r){const a=Object.assign({},r??{});ce(a.batchMaxCount==null||a.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",r),a.batchMaxCount=1,a.staticNetwork==null&&(a.staticNetwork=!0);super(n,a);xe(this,Mf,void 0);xe(this,jh,void 0);xe(this,jl,void 0);re(this,Mf,new Map),re(this,jh,new Map),re(this,jl,new Map)}_getSubscriber(n){switch(n.type){case"close":return new yp("close");case"block":return new dC(this);case"pending":return new hC(this);case"event":return new pC(this,n.filter);case"orphan":if(n.filter.orphan==="drop-log")return new yp("drop-log")}return super._getSubscriber(n)}_register(n,r){H(this,jh).set(n,r);const a=H(this,jl).get(n);if(a){for(const i of a)r._handleMessage(i);H(this,jl).delete(n)}}async _send(n){ce(!Array.isArray(n),"WebSocket does not support batch send","payload",n);const r=new Promise((a,i)=>{H(this,Mf).set(n.id,{payload:n,resolve:a,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(n)),[await r]}async _processMessage(n){const r=JSON.parse(n);if(r&&typeof r=="object"&&"id"in r){const a=H(this,Mf).get(r.id);if(a==null){this.emit("error",mn("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:r}));return}H(this,Mf).delete(r.id),a.resolve(r)}else if(r&&r.method==="eth_subscription"){const a=r.params.subscription,i=H(this,jh).get(a);if(i)i._handleMessage(r.params.result);else{let s=H(this,jl).get(a);s==null&&(s=[],H(this,jl).set(a,s)),s.push(r.params.result)}}else{this.emit("error",mn("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:r}));return}}async _write(n){throw new Error("sub-classes must override this")}}Mf=new WeakMap,jh=new WeakMap,jl=new WeakMap;var Ff,gs;class l8 extends yC{constructor(n,r,a){super(r,a);xe(this,Ff,void 0);xe(this,gs,void 0);typeof n=="string"?(re(this,Ff,()=>new cfe(n)),re(this,gs,H(this,Ff).call(this))):typeof n=="function"?(re(this,Ff,n),re(this,gs,n())):(re(this,Ff,null),re(this,gs,n)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(H(this,gs)==null)throw new Error("websocket closed");return H(this,gs)}async _write(n){this.websocket.send(n)}async destroy(){H(this,gs)!=null&&(H(this,gs).close(),re(this,gs,null)),super.destroy()}}Ff=new WeakMap,gs=new WeakMap;const yy="84842078b09946638c03157f83405213";function lfe(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io"}ce(!1,"unsupported network","network",t)}class mC extends l8{constructor(n,r){const a=new nd(n,r),i=a._getConnection();Be(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const s=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(s,n);ge(this,"projectId");ge(this,"projectSecret");et(this,{projectId:a.projectId,projectSecret:a.projectSecret})}isCommunityResource(){return this.projectId===yy}}class nd extends So{constructor(n,r,a){n==null&&(n="mainnet");const i=Hn.from(n);r==null&&(r=yy),a==null&&(a=null);const s=nd.getRequest(i,r,a);super(s,i,{staticNetwork:i});ge(this,"projectId");ge(this,"projectSecret");et(this,{projectId:r,projectSecret:a})}_getProvider(n){try{return new nd(n,this.projectId,this.projectSecret)}catch{}return super._getProvider(n)}isCommunityResource(){return this.projectId===yy}static getWebSocketProvider(n,r){return new mC(n,r)}static getRequest(n,r,a){r==null&&(r=yy),a==null&&(a=null);const i=new $r(`https://${lfe(n.name)}/v3/${r}`);return i.allowGzip=!0,a&&i.setCredentials("",a),r===yy&&(i.retryFunc=async(s,o,c)=>(Eu("InfuraProvider"),!0)),i}}const Q2="919b412a057b5e9c9b6dce193c5a60242d6efadb";function ufe(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro"}ce(!1,"unsupported network","network",t)}class xp extends So{constructor(n,r){n==null&&(n="mainnet");const a=Hn.from(n);r==null&&(r=Q2);const i=xp.getRequest(a,r);super(i,a,{staticNetwork:a});ge(this,"token");et(this,{token:r})}_getProvider(n){try{return new xp(n,this.token)}catch{}return super._getProvider(n)}isCommunityResource(){return this.token===Q2}static getRequest(n,r){r==null&&(r=Q2);const a=new $r(`https://${ufe(n.name)}/${r}`);return a.allowGzip=!0,r===Q2&&(a.retryFunc=async(i,s,o)=>(Eu("QuickNodeProvider"),!0)),a}}const ffe=BigInt("1"),dfe=BigInt("2");function hfe(t){for(let e=t.length-1;e>0;e--){const n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}}function pfe(t){return new Promise(e=>{setTimeout(e,t)})}function Aw(){return new Date().getTime()}function i5(t){return JSON.stringify(t,(e,n)=>typeof n=="bigint"?{type:"bigint",value:n.toString()}:n)}const kD={stallTimeout:400,priority:1,weight:1},ID={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function yfe(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const n=await t.provider.getBlockNumber();n>t.blockNumber&&(t.blockNumber=n)}catch(n){t.blockNumber=-2,t._lastFatalError=n,t._lastFatalErrorTimestamp=Aw()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function zy(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(zy).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return zy(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(n=>`${JSON.stringify(n)}:${zy(t[n])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function s5(t){if("error"in t){const n=t.error;return{tag:zy(n),value:n}}const e=t.result;return{tag:zy(e),value:e}}function rg(t,e){const n=new Map;for(const{value:a,tag:i,weight:s}of e){const o=n.get(i)||{value:a,weight:0};o.weight+=s,n.set(i,o)}let r=null;for(const a of n.values())a.weight>=t&&(!r||a.weight>r.weight)&&(r=a);if(r)return r.value}function Cw(t,e){let n=0;const r=new Map;let a=null;const i=[];for(const{value:o,tag:c,weight:h}of e)if(o instanceof Error){const b=r.get(c)||{value:o,weight:0};b.weight+=h,r.set(c,b),(a==null||b.weight>a.weight)&&(a=b)}else i.push(BigInt(o)),n+=h;if(n=t?a.value:void 0;i.sort((o,c)=>oo?1:0);const s=Math.floor(i.length/2);return i.length%2?i[s]:(i[s-1]+i[s]+ffe)/dfe}function o5(t,e){const n=rg(t,e);if(n!==void 0)return n;for(const r of e)if(r.value)return r.value}function mfe(t,e){if(t===1)return lt(Cw(t,e),"%internal");const n=new Map,r=(s,o)=>{const c=n.get(s)||{result:s,weight:0};c.weight+=o,n.set(s,c)};for(const{weight:s,value:o}of e){const c=lt(o);r(c-1,s),r(c,s),r(c+1,s)}let a=0,i;for(const{weight:s,result:o}of n.values())s>=t&&(s>a||i!=null&&s===a&&o>i)&&(a=s,i=o);return i}var Aa,hc,Hh,q6,Tj,pb,Sw,W6,Bj,K6,Mj,yb,Tw;class bC extends mp{constructor(n,r,a){super(r,a);xe(this,q6);xe(this,pb);xe(this,W6);xe(this,K6);xe(this,yb);ge(this,"quorum");ge(this,"eventQuorum");ge(this,"eventWorkers");xe(this,Aa,void 0);xe(this,hc,void 0);xe(this,Hh,void 0);re(this,Aa,n.map(i=>i instanceof mp?Object.assign({provider:i},kD,ID):Object.assign({},kD,i,ID))),re(this,hc,-2),re(this,Hh,null),a&&a.quorum!=null?this.quorum=a.quorum:this.quorum=Math.ceil(H(this,Aa).reduce((i,s)=>(i+=s.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,ce(this.quorum<=H(this,Aa).reduce((i,s)=>i+s.weight,0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return H(this,Aa).map(n=>{const r=Object.assign({},n);for(const a in r)a[0]==="_"&&delete r[a];return r})}async _detectNetwork(){return Hn.from(it(await this._perform({method:"chainId"})))}async _translatePerform(n,r){switch(r.method){case"broadcastTransaction":return await n.broadcastTransaction(r.signedTransaction);case"call":return await n.call(Object.assign({},r.transaction,{blockTag:r.blockTag}));case"chainId":return(await n.getNetwork()).chainId;case"estimateGas":return await n.estimateGas(r.transaction);case"getBalance":return await n.getBalance(r.address,r.blockTag);case"getBlock":{const a="blockHash"in r?r.blockHash:r.blockTag;return await n.getBlock(a,r.includeTransactions)}case"getBlockNumber":return await n.getBlockNumber();case"getCode":return await n.getCode(r.address,r.blockTag);case"getGasPrice":return(await n.getFeeData()).gasPrice;case"getPriorityFee":return(await n.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await n.getLogs(r.filter);case"getStorage":return await n.getStorage(r.address,r.position,r.blockTag);case"getTransaction":return await n.getTransaction(r.hash);case"getTransactionCount":return await n.getTransactionCount(r.address,r.blockTag);case"getTransactionReceipt":return await n.getTransactionReceipt(r.hash);case"getTransactionResult":return await n.getTransactionResult(r.hash)}}async _perform(n){if(n.method==="broadcastTransaction"){const s=H(this,Aa).map(h=>null),o=H(this,Aa).map(async({provider:h,weight:b},v)=>{try{const E=await h._perform(n);s[v]=Object.assign(s5({result:E}),{weight:b})}catch(E){s[v]=Object.assign(s5({error:E}),{weight:b})}});for(;;){const h=s.filter(E=>E!=null);for(const{value:E}of h)if(!(E instanceof Error))return E;const b=rg(this.quorum,s.filter(E=>E!=null));if(Wn(b,"INSUFFICIENT_FUNDS"))throw b;const v=o.filter((E,C)=>s[C]==null);if(v.length===0)break;await Promise.race(v)}const c=o5(this.quorum,s);if(Be(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:s.map(i5)}}),c instanceof Error)throw c;return c}await ke(this,W6,Bj).call(this);const r=new Set;let a=0;for(;;){const s=ke(this,pb,Sw).call(this,r,n);if(s==null||(a+=s.config.weight,a>=this.quorum))break}const i=await ke(this,yb,Tw).call(this,r,n);for(const s of r)s.perform&&s.result==null&&s.config.lateResponses++;return i}async destroy(){for(const{provider:n}of H(this,Aa))n.destroy();super.destroy()}}Aa=new WeakMap,hc=new WeakMap,Hh=new WeakMap,q6=new WeakSet,Tj=function(n){const r=Array.from(n).map(i=>i.config),a=H(this,Aa).slice();hfe(a),a.sort((i,s)=>i.priority-s.priority);for(const i of a)if(!i._lastFatalError&&r.indexOf(i)===-1)return i;return null},pb=new WeakSet,Sw=function(n,r){const a=ke(this,q6,Tj).call(this,n);if(a==null)return null;const i={config:a,result:null,didBump:!1,perform:null,staller:null},s=Aw();return i.perform=(async()=>{try{a.requests++;const c=await this._translatePerform(a.provider,r);i.result={result:c}}catch(c){a.errorResponses++,i.result={error:c}}const o=Aw()-s;a._totalTime+=o,a.rollingDuration=.95*a.rollingDuration+.05*o,i.perform=null})(),i.staller=(async()=>{await pfe(a.stallTimeout),i.staller=null})(),n.add(i),i},W6=new WeakSet,Bj=async function(){let n=H(this,Hh);if(!n){const r=[];H(this,Aa).forEach(a=>{r.push((async()=>{await yfe(a,0),a._lastFatalError||(a._network=await a.provider.getNetwork())})())}),re(this,Hh,n=(async()=>{await Promise.all(r);let a=null;for(const i of H(this,Aa)){if(i._lastFatalError)continue;const s=i._network;a==null?a=s.chainId:s.chainId!==a&&Be(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await n},K6=new WeakSet,Mj=async function(n,r){const a=[];for(const i of n)if(i.result!=null){const{tag:s,value:o}=s5(i.result);a.push({tag:s,value:o,weight:i.config.weight})}if(!(a.reduce((i,s)=>i+s.weight,0)!s._lastFatalError).map(s=>({value:s.blockNumber,tag:lt(s.blockNumber).toString(),weight:s.weight}))))));const i=mfe(this.quorum,a);return i===void 0?void 0:(i>H(this,hc)&&re(this,hc,i),H(this,hc))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return Cw(this.quorum,a);case"getBlock":return"blockTag"in r&&r.blockTag==="pending"?o5(this.quorum,a):rg(this.quorum,a);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return rg(this.quorum,a);case"broadcastTransaction":return o5(this.quorum,a)}Be(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${i5(r.method)})`})}},yb=new WeakSet,Tw=async function(n,r){if(n.size===0)throw new Error("no runners?!");const a=[];let i=0;for(const o of n){if(o.perform&&a.push(o.perform),o.staller){a.push(o.staller);continue}o.didBump||(o.didBump=!0,i++)}const s=await ke(this,K6,Mj).call(this,n,r);if(s!==void 0){if(s instanceof Error)throw s;return s}for(let o=0;o0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:Array.from(n).map(o=>i5(o.result))}}),await Promise.race(a),await ke(this,yb,Tw).call(this,n,r)};function bfe(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const gfe="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function Fj(t,e){e==null&&(e={});const n=s=>e[s]==="-"?!1:typeof e.exclusive=="string"?s===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(s)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new So(t);if(typeof t=="string"&&t.match(/^wss?:/)||bfe(t))return new l8(t);let r=null;try{r=Hn.from(t)}catch{}const a=[];if(n("publicPolygon")&&r&&r.name==="matic"&&a.push(new So("https://polygon-rpc.com/",r,{staticNetwork:r})),n("alchemy"))try{a.push(new gp(t,e.alchemy))}catch{}if(n("ankr")&&e.ankr!=null)try{a.push(new bp(t,e.ankr))}catch{}if(n("cloudflare"))try{a.push(new uC(t))}catch{}if(n("etherscan"))try{a.push(new fC(t,e.etherscan))}catch{}if(n("infura"))try{let s=e.infura,o;typeof s=="object"&&(o=s.projectSecret,s=s.projectId),a.push(new nd(t,s,o))}catch{}if(n("quicknode"))try{let s=e.quicknode;a.push(new xp(t,s))}catch{}if(Be(a.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),a.length===1)return a[0];let i=Math.floor(a.length/2);return i>2&&(i=2),r&&gfe.indexOf(r.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new bC(a,void 0,{quorum:i})}var Hl,Df;const GT=class GT extends Jp{constructor(n){super(n.provider);ge(this,"signer");xe(this,Hl,void 0);xe(this,Df,void 0);et(this,{signer:n}),re(this,Hl,null),re(this,Df,0)}async getAddress(){return this.signer.getAddress()}connect(n){return new GT(this.signer.connect(n))}async getNonce(n){if(n==="pending"){H(this,Hl)==null&&re(this,Hl,super.getNonce("pending"));const r=H(this,Df);return await H(this,Hl)+r}return super.getNonce(n)}increment(){Od(this,Df)._++}reset(){re(this,Df,0),re(this,Hl,null)}async sendTransaction(n){const r=this.getNonce("pending");return this.increment(),n=await this.signer.populateTransaction(n),n.nonce=await r,await this.signer.sendTransaction(n)}signTransaction(n){return this.signer.signTransaction(n)}signMessage(n){return this.signer.signMessage(n)}signTypedData(n,r,a){return this.signer.signTypedData(n,r,a)}};Hl=new WeakMap,Df=new WeakMap;let o6=GT;var zh;class gC extends Cj{constructor(n,r){super(r,{batchMaxCount:1});xe(this,zh,void 0);re(this,zh,async(a,i)=>{const s={method:a,params:i};this.emit("debug",{action:"sendEip1193Request",payload:s});try{const o=await n.request(s);return this.emit("debug",{action:"receiveEip1193Result",result:o}),o}catch(o){const c=new Error(o.message);throw c.code=o.code,c.data=o.data,c.payload=s,this.emit("debug",{action:"receiveEip1193Error",error:c}),c}})}async send(n,r){return await this._start(),await super.send(n,r)}async _send(n){ce(!Array.isArray(n),"EIP-1193 does not support batch request","payload",n);try{const r=await H(this,zh).call(this,n.method,n.params||[]);return[{id:n.id,result:r}]}catch(r){return[{id:n.id,error:{code:r.code,data:r.data,message:r.message}}]}}getRpcError(n,r){switch(r=JSON.parse(JSON.stringify(r)),r.error.code||-1){case 4001:r.error.message=`ethers-user-denied: ${r.error.message}`;break;case 4200:r.error.message=`ethers-unsupported: ${r.error.message}`;break}return super.getRpcError(n,r)}async hasSigner(n){n==null&&(n=0);const r=await this.send("eth_accounts",[]);return typeof n=="number"?r.length>n:(n=n.toLowerCase(),r.filter(a=>a.toLowerCase()===n).length!==0)}async getSigner(n){if(n==null&&(n=0),!await this.hasSigner(n))try{await H(this,zh).call(this,"eth_requestAccounts",[])}catch(r){const a=r.payload;throw this.getRpcError(a,{id:a.id,error:r})}return await super.getSigner(n)}}zh=new WeakMap;const J2="62e1ad51b37b8e00394bda3b";function xfe(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}ce(!1,"unsupported network","network",t)}class Fm extends So{constructor(n,r,a){n==null&&(n="mainnet");const i=Hn.from(n);r==null&&(r=J2),a==null&&(a=null);const s={staticNetwork:i},o=Fm.getRequest(i,r,a);super(o,i,s);ge(this,"applicationId");ge(this,"applicationSecret");et(this,{applicationId:r,applicationSecret:a})}_getProvider(n){try{return new Fm(n,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(n)}static getRequest(n,r,a){r==null&&(r=J2);const i=new $r(`https://${xfe(n.name)}/v1/lb/${r}`);return i.allowGzip=!0,a&&i.setCredentials("",a),r===J2&&(i.retryFunc=async(s,o,c)=>(Eu("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===J2}}const Dj=void 0;var Gh;const VT=class VT extends Jp{constructor(n,r){super(r);ge(this,"address");xe(this,Gh,void 0);ce(n&&typeof n.sign=="function","invalid private key","privateKey","[ REDACTED ]"),re(this,Gh,n);const a=xd(this.signingKey.publicKey);et(this,{address:a})}get signingKey(){return H(this,Gh)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(n){return new VT(H(this,Gh),n)}async signTransaction(n){const{to:r,from:a}=await tr({to:n.to?sr(n.to,this.provider):void 0,from:n.from?sr(n.from,this.provider):void 0});r!=null&&(n.to=r),a!=null&&(n.from=a),n.from!=null&&(ce(Et(n.from)===this.address,"transaction from address mismatch","tx.from",n.from),delete n.from);const i=du.from(n);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(n){return this.signMessageSync(n)}signMessageSync(n){return this.signingKey.sign(Yx(n)).serialized}async signTypedData(n,r,a){const i=await Dc.resolveNames(n,r,a,async s=>{Be(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:s}});const o=await this.provider.resolveName(s);return Be(o!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:s}),o});return this.signingKey.sign(Dc.hash(i.domain,r,i.value)).serialized}};Gh=new WeakMap;let vp=VT;const c6=" !#$%&'()*+,-./<=>?@[]^_`{|}~",vfe=/^[a-z]*$/i;function OD(t,e){let n=97;return t.reduce((r,a)=>(a===e?n++:a.match(vfe)?r.push(String.fromCharCode(n)+a):(n=97,r.push(a)),r),[])}function wfe(t,e){for(let a=c6.length-1;a>=0;a--)t=t.split(c6[a]).join(e.substring(2*a,2*a+2));const n=[],r=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(a,i,s,o)=>{if(s)for(let c=parseInt(s);c>=0;c--)n.push(";");else n.push(i.toLowerCase());return""});if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return OD(OD(n,";"),":")}function kj(t){return ce(t[0]==="0","unsupported auwl data","data",t),wfe(t.substring(1+2*c6.length),t.substring(1,1+2*c6.length))}class xC{constructor(e){ge(this,"locale");et(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var Vh,mb,kf,bb,Bw;class u8 extends xC{constructor(n,r,a){super(n);xe(this,bb);xe(this,Vh,void 0);xe(this,mb,void 0);xe(this,kf,void 0);re(this,Vh,r),re(this,mb,a),re(this,kf,null)}get _data(){return H(this,Vh)}_decodeWords(){return kj(H(this,Vh))}getWord(n){const r=ke(this,bb,Bw).call(this);return ce(n>=0&&n=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const r=new Uint8Array(Math.ceil(11*n.length/8));let a=0;for(let h=0;h=0,`invalid mnemonic word at index ${h}`,"mnemonic","[ REDACTED ]");for(let v=0;v<11;v++)b&1<<10-v&&(r[a>>3]|=1<<7-a%8),a++}const i=32*n.length/3,s=n.length/3,o=Ij(s),c=Ze(ga(r.slice(0,i/8)))[0]&o;return ce(c===(r[r.length-1]&o),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),Ve(r.slice(0,i/8))}function u5(t,e){ce(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=To.wordlist());const n=[0];let r=11;for(let s=0;s8?(n[n.length-1]<<=8,n[n.length-1]|=t[s],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=t[s]>>8-r,n.push(t[s]&Afe(8-r)),r+=3);const a=t.length/4,i=parseInt(ga(t).substring(2,4),16)&Ij(a);return n[n.length-1]<<=a,n[n.length-1]|=i>>8-a,e.join(n.map(s=>e.getWord(s)))}const f5={};class pu{constructor(e,n,r,a,i){ge(this,"phrase");ge(this,"password");ge(this,"wordlist");ge(this,"entropy");a==null&&(a=""),i==null&&(i=To.wordlist()),Io(e,f5,"Mnemonic"),et(this,{phrase:r,password:a,wordlist:i,entropy:n})}computeSeed(){const e=Kn("mnemonic"+this.password,"NFKD");return Ps(Kn(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,n,r){const a=l5(e,r);return e=u5(Ze(a),r),new pu(f5,a,e,n,r)}static fromEntropy(e,n,r){const a=Ze(e,"entropy"),i=u5(a,r);return new pu(f5,Ve(a),i,n,r)}static entropyToPhrase(e,n){const r=Ze(e,"entropy");return u5(r,n)}static phraseToEntropy(e,n){return l5(e,n)}static isValidMnemonic(e,n){try{return l5(e,n),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var Tr=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},d5=function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},ag,bi,zs;const Cfe={16:10,24:12,32:14},Sfe=[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],yi=[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],X2=[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],Tfe=[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],Bfe=[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],Mfe=[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],Ffe=[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],Dfe=[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],kfe=[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],Ife=[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],Ofe=[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],Pfe=[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],Rfe=[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],Nfe=[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],$fe=[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 h5(t){const e=[];for(let n=0;n>2,Tr(this,zs,"f")[s][b%4]=i[b],Tr(this,bi,"f")[n-s][b%4]=i[b];let o=0,c=a,h;for(;c>16&255]<<24^yi[h>>8&255]<<16^yi[h&255]<<8^yi[h>>24&255]^Sfe[o]<<24,o+=1,a!=8)for(let C=1;C>8&255]<<8^yi[h>>16&255]<<16^yi[h>>24&255]<<24;for(let C=a/2+1;C>2,E=c%4,Tr(this,zs,"f")[v][E]=i[b],Tr(this,bi,"f")[n-v][E]=i[b++],c++}for(let b=1;b>24&255]^Rfe[h>>16&255]^Nfe[h>>8&255]^$fe[h&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const n=Tr(this,zs,"f").length-1,r=[0,0,0,0];let a=h5(e);for(let o=0;o<4;o++)a[o]^=Tr(this,zs,"f")[0][o];for(let o=1;o>24&255]^Bfe[a[(c+1)%4]>>16&255]^Mfe[a[(c+2)%4]>>8&255]^Ffe[a[(c+3)%4]&255]^Tr(this,zs,"f")[o][c];a=r.slice()}const i=new Uint8Array(16);let s=0;for(let o=0;o<4;o++)s=Tr(this,zs,"f")[n][o],i[4*o]=(yi[a[o]>>24&255]^s>>24)&255,i[4*o+1]=(yi[a[(o+1)%4]>>16&255]^s>>16)&255,i[4*o+2]=(yi[a[(o+2)%4]>>8&255]^s>>8)&255,i[4*o+3]=(yi[a[(o+3)%4]&255]^s)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const n=Tr(this,bi,"f").length-1,r=[0,0,0,0];let a=h5(e);for(let o=0;o<4;o++)a[o]^=Tr(this,bi,"f")[0][o];for(let o=1;o>24&255]^kfe[a[(c+3)%4]>>16&255]^Ife[a[(c+2)%4]>>8&255]^Ofe[a[(c+1)%4]&255]^Tr(this,bi,"f")[o][c];a=r.slice()}const i=new Uint8Array(16);let s=0;for(let o=0;o<4;o++)s=Tr(this,bi,"f")[n][o],i[4*o]=(X2[a[o]>>24&255]^s>>24)&255,i[4*o+1]=(X2[a[(o+3)%4]>>16&255]^s>>16)&255,i[4*o+2]=(X2[a[(o+2)%4]>>8&255]^s>>8)&255,i[4*o+3]=(X2[a[(o+1)%4]&255]^s)&255;return i}}ag=new WeakMap,bi=new WeakMap,zs=new WeakMap;class Oj{constructor(e,n,r){if(r&&!(this instanceof r))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new vC(n)},name:{enumerable:!0,value:e}})}}var Y2=function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},Gd=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},my,zo;class wC extends Oj{constructor(e,n){if(super("ECC",e,wC),my.set(this,void 0),zo.set(this,void 0),n){if(n.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Y2(this,my,new Uint8Array(n),"f")}else Y2(this,my,new Uint8Array(16),"f");Y2(this,zo,this.iv,"f")}get iv(){return new Uint8Array(Gd(this,my,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const n=new Uint8Array(e.length);for(let r=0;rNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let n=15;n>=0;--n)mi(this,gi,"f")[n]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");mi(this,gi,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(mi(this,gi,"f")[e]===255)mi(this,gi,"f")[e]=0;else{mi(this,gi,"f")[e]++;break}}encrypt(e){var n,r;const a=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const n=t.length-e;for(let r=0;r0&&(r&r-1)===0,"invalid kdf.N","kdf.N",r),ce(a>0&&i>0,"invalid kdf","kdf",e);const s=Ln(t,"crypto.kdfparams.dklen:int!");return ce(s===32,"invalid kdf.dklen","kdf.dflen",s),{name:"scrypt",salt:n,N:r,r:a,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const n=Ln(t,"crypto.kdfparams.salt:data!"),r=Ln(t,"crypto.kdfparams.prf:string!"),a=r.split("-").pop();ce(a==="sha256"||a==="sha512","invalid kdf.pdf","kdf.pdf",r);const i=Ln(t,"crypto.kdfparams.c:int!"),s=Ln(t,"crypto.kdfparams.dklen:int!");return ce(s===32,"invalid kdf.dklen","kdf.dklen",s),{name:"pbkdf2",salt:n,count:i,dkLen:s,algorithm:a}}}ce(!1,"unsupported key-derivation function","kdf",e)}function EC(t,e){const n=JSON.parse(t),r=zb(e),a=Nj(n);if(a.name==="pbkdf2"){const{salt:v,count:E,dkLen:C,algorithm:M}=a,T=Ps(r,v,E,C,M);return u6(n,T)}Be(a.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:a});const{salt:i,N:s,r:o,p:c,dkLen:h}=a,b=qc(r,i,s,o,c,h);return u6(n,b)}function PD(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function _C(t,e,n){const r=JSON.parse(t),a=zb(e),i=Nj(r);if(i.name==="pbkdf2"){n&&(n(0),await PD(0));const{salt:E,count:C,dkLen:M,algorithm:T}=i,P=Ps(a,E,C,M,T);return n&&(n(1),await PD(0)),u6(r,P)}Be(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:s,N:o,r:c,p:h,dkLen:b}=i,v=await Vc(a,s,o,c,h,b,n);return u6(r,v)}function $j(t){const e=t.salt!=null?Ze(t.salt,"options.salt"):si(32);let n=1<<17,r=8,a=1;return t.scrypt&&(t.scrypt.N&&(n=t.scrypt.N),t.scrypt.r&&(r=t.scrypt.r),t.scrypt.p&&(a=t.scrypt.p)),ce(typeof n=="number"&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),ce(typeof r=="number"&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),ce(typeof a=="number"&&a>0&&Number.isSafeInteger(a),"invalid scrypt p parameter","options.p",a),{name:"scrypt",dkLen:32,salt:e,N:n,r,p:a}}function Lj(t,e,n,r){const a=Ze(n.privateKey,"privateKey"),i=r.iv!=null?Ze(r.iv,"options.iv"):si(16);ce(i.length===16,"invalid options.iv length","options.iv",r.iv);const s=r.uuid!=null?Ze(r.uuid,"options.uuid"):si(16);ce(s.length===16,"invalid options.uuid length","options.uuid",r.iv);const o=t.slice(0,16),c=t.slice(16,32),h=new wp(o,i),b=Ze(h.encrypt(a)),v=zt(Ut([c,b])),E={address:n.address.substring(2).toLowerCase(),id:LA(s),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Ve(i).substring(2)},ciphertext:Ve(b).substring(2),kdf:"scrypt",kdfparams:{salt:Ve(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:v.substring(2)}};if(n.mnemonic){const C=r.client!=null?r.client:`ethers/${Hx}`,M=n.mnemonic.path||Rj,T=n.mnemonic.locale||"en",P=t.slice(32,64),D=Ze(n.mnemonic.entropy,"account.mnemonic.entropy"),F=si(16),O=new wp(P,F),k=Ze(O.encrypt(D)),U=new Date,Y="UTC--"+(U.getUTCFullYear()+"-"+P1(U.getUTCMonth()+1,2)+"-"+P1(U.getUTCDate(),2)+"T"+P1(U.getUTCHours(),2)+"-"+P1(U.getUTCMinutes(),2)+"-"+P1(U.getUTCSeconds(),2)+".0Z")+"--"+E.address;E["x-ethers"]={client:C,gethFilename:Y,path:M,locale:T,mnemonicCounter:Ve(F).substring(2),mnemonicCiphertext:Ve(k).substring(2),version:"0.1"}}return JSON.stringify(E)}function f8(t,e,n){n==null&&(n={});const r=zb(e),a=$j(n),i=qc(r,a.salt,a.N,a.r,a.p,64);return Lj(Ze(i),a,t,n)}async function d8(t,e,n){n==null&&(n={});const r=zb(e),a=$j(n),i=await Vc(r,a.salt,a.N,a.r,a.p,64,n.progressCallback);return Lj(Ze(i),a,t,n)}const Gy="m/44'/60'/0'/0/0",jfe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),vo=2147483648,Hfe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),zfe="0123456789abcdef";function f6(t,e){let n="";for(;t;)n=zfe[t%16]+n,t=Math.trunc(t/16);for(;n.length=0;s-=8)a[33+(s>>3)]=t>>24-s&255;const i=Ze(zc("sha512",e,a));return{IL:i.slice(0,32),IR:i.slice(32)}}function jj(t,e){const n=e.split("/");ce(n.length>0&&(n[0]==="m"||t.depth>0),"invalid path","path",e),n[0]==="m"&&n.shift();let r=t;for(let a=0;a=16&&a.length<=64,"invalid seed","seed","[REDACTED]");const i=Ze(zc("sha512",jfe,a)),s=new zi(Ve(i.slice(0,32)));return new ls(Js,s,"0x00000000",Ve(i.slice(32)),"m",0,0,r,null)},xe(ls,If);let $f=ls;class rd extends Mm{constructor(n,r,a,i,s,o,c,h,b){super(r,b);ge(this,"publicKey");ge(this,"fingerprint");ge(this,"parentFingerprint");ge(this,"chainCode");ge(this,"path");ge(this,"index");ge(this,"depth");Io(n,Js,"HDNodeVoidWallet"),et(this,{publicKey:a});const v=Jt(Gc(ga(a)),0,4);et(this,{publicKey:a,fingerprint:v,parentFingerprint:i,chainCode:s,path:o,index:c,depth:h})}connect(n){return new rd(Js,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,n)}get extendedKey(){return Be(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),Mw(Ut(["0x0488B21E",f6(this.depth,1),this.parentFingerprint,f6(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(n){const r=lt(n,"index");ce(r<=4294967295,"invalid index","index",r);let a=this.path;a&&(a+="/"+(r&~vo),r&vo&&(a+="'"));const{IR:i,IL:s}=Uj(r,this.chainCode,this.publicKey,null),o=zi.addPoints(s,this.publicKey,!0),c=xd(o);return new rd(Js,c,o,this.fingerprint,Ve(i),a,r,this.depth+1,this.provider)}derivePath(n){return jj(this,n)}}function Hj(t){const e=lt(t,"index");return ce(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var xb,Dw;const Ku=class Ku extends vp{constructor(e,n){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let r=typeof e=="string"?new zi(e):e;super(r,n)}connect(e){return new Ku(this.signingKey,e)}async encrypt(e,n){const r={address:this.address,privateKey:this.privateKey};return await d8(r,e,{progressCallback:n})}encryptSync(e){const n={address:this.address,privateKey:this.privateKey};return f8(n,e)}static async fromEncryptedJson(e,n,r){var i;let a=null;return l6(e)?a=await _C(e,n,r):d6(e)&&(r&&(r(0),await RD(0)),a=h6(e,n),r&&(r(1),await RD(0))),ke(i=Ku,xb,Dw).call(i,a)}static fromEncryptedJsonSync(e,n){var a;let r=null;return l6(e)?r=EC(e,n):d6(e)?r=h6(e,n):ce(!1,"invalid JSON wallet","json","[ REDACTED ]"),ke(a=Ku,xb,Dw).call(a,r)}static createRandom(e){const n=$f.createRandom();return e?n.connect(e):n}static fromPhrase(e,n){const r=$f.fromPhrase(e);return n?r.connect(n):r}};xb=new WeakSet,Dw=function(e){if(ce(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const r=pu.fromEntropy(e.mnemonic.entropy),a=$f.fromMnemonic(r,e.mnemonic.path);if(a.address===e.address&&a.privateKey===e.privateKey)return a;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const n=new Ku(e.privateKey);return ce(n.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),n},xe(Ku,xb);let p6=Ku;const Gfe=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function Vfe(t,e){const n=(1<=t;){const c=a>>i-t;a&=(1<{const a=r.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);ce(a!==null,"internal error parsing accents","accents",e);let i=0;const s=Vfe(parseInt(a[3]),a[4]),o=parseInt(a[2]),c=new RegExp(`([${a[1]}])`,"g");n=n.replace(c,(h,b)=>(--s[i]===0&&(b=String.fromCharCode(b.charCodeAt(0),o),i++),b))}),n.split(",")}var vb;class Gj extends u8{constructor(n,r,a,i){super(n,r,i);xe(this,vb,void 0);re(this,vb,a)}get _accent(){return H(this,vb)}_decodeWords(){return qfe(this._data,this._accent)}}vb=new WeakMap;const Vj={en:To.wordlist()},y6=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:hu,AbstractProvider:mp,AbstractSigner:Jp,AlchemyProvider:gp,AnkrProvider:bp,BaseContract:td,BaseWallet:vp,Block:eC,BrowserProvider:gC,CloudflareProvider:uC,ConstructorFragment:Cs,Contract:ru,ContractEventPayload:nC,ContractFactory:s8,ContractTransactionReceipt:tC,ContractTransactionResponse:Ub,ContractUnknownEventPayload:a8,EnsPlugin:Qp,EnsResolver:hp,ErrorDescription:YA,ErrorFragment:ea,EtherSymbol:dU,EtherscanPlugin:c8,EtherscanProvider:fC,EventFragment:Ii,EventLog:Lb,EventPayload:Kx,FallbackFragment:_s,FallbackProvider:bC,FeeData:a6,FeeDataNetworkPlugin:s6,FetchCancelSignal:RA,FetchRequest:$r,FetchResponse:xo,FetchUrlFeeDataNetworkPlugin:oC,FixedNumber:op,Fragment:Ic,FunctionFragment:Oi,GasCostPlugin:Zp,HDNodeVoidWallet:rd,HDNodeWallet:$f,Indexed:r6,InfuraProvider:nd,InfuraWebSocketProvider:mC,Interface:fp,IpcSocketProvider:Dj,JsonRpcApiProvider:o8,JsonRpcProvider:So,JsonRpcSigner:Hy,LangEn:To,Log:vd,LogDescription:JA,MaxInt256:fU,MaxUint256:lU,MessagePrefix:HA,MinInt256:uU,Mnemonic:pu,MulticoinProviderPlugin:iC,N:oU,NamedFragment:Kp,Network:Hn,NetworkPlugin:Wc,NonceManager:o6,ParamType:or,PocketProvider:Fm,QuickNodeProvider:xp,Result:cp,Signature:Ds,SigningKey:zi,SocketBlockSubscriber:dC,SocketEventSubscriber:pC,SocketPendingSubscriber:hC,SocketProvider:yC,SocketSubscriber:Hb,StructFragment:Ac,Transaction:du,TransactionDescription:XA,TransactionReceipt:n8,TransactionResponse:Yf,Typed:Er,TypedDataEncoder:Dc,UndecodedEventLog:r8,UnmanagedSubscriber:yp,Utf8ErrorFuncs:PA,VoidSigner:Mm,Wallet:p6,WebSocketProvider:l8,WeiPerEther:cU,Wordlist:xC,WordlistOwl:u8,WordlistOwlA:Gj,ZeroAddress:Em,ZeroHash:Xg,accessListify:Oo,assert:Be,assertArgument:ce,assertArgumentCount:zx,assertNormalize:Gx,assertPrivate:Io,checkResultErrors:ML,computeAddress:xd,computeHmac:zc,concat:Ut,copyRequest:dp,dataLength:Ec,dataSlice:Jt,decodeBase58:kA,decodeBase64:IA,decodeBytes32String:uj,decodeRlp:Nb,decryptCrowdsaleJson:h6,decryptKeystoreJson:_C,decryptKeystoreJsonSync:EC,defaultPath:Gy,defineProperties:et,dnsEncode:ZA,encodeBase58:Wx,encodeBase64:OA,encodeBytes32String:lj,encodeRlp:Jf,encryptKeystoreJson:d8,encryptKeystoreJsonSync:f8,ensNormalize:KA,formatEther:TL,formatUnits:NA,fromTwos:sp,getAccountPath:Hj,getAddress:Et,getBigInt:it,getBytes:Ze,getBytesCopy:ar,getCreate2Address:mU,getCreateAddress:Zx,getDefaultProvider:Fj,getIcapAddress:yU,getIndexedAccountPath:zj,getNumber:lt,getUint:qp,hashMessage:Yx,hexlify:Ve,id:ks,isAddress:bU,isAddressable:Qx,isBytesLike:Vx,isCallException:Ob,isCrowdsaleJson:d6,isError:Wn,isHexString:pn,isKeystoreJson:l6,isValidName:HU,keccak256:zt,lock:hU,makeError:mn,mask:bc,namehash:Tm,parseEther:BL,parseUnits:$A,pbkdf2:Ps,randomBytes:si,recoverAddress:$b,resolveAddress:sr,resolveProperties:tr,ripemd160:Gc,scrypt:Vc,scryptSync:qc,sha256:ga,sha512:Wp,showThrottleMessage:Eu,solidityPacked:e8,solidityPackedKeccak256:KU,solidityPackedSha256:ZU,stripZerosLeft:yL,toBeArray:Or,toBeHex:Fs,toBigInt:gd,toNumber:DA,toQuantity:gc,toTwos:Rb,toUtf8Bytes:Kn,toUtf8CodePoints:xL,toUtf8String:fu,uuidV4:LA,verifyMessage:qU,verifyTypedData:ej,version:Hx,wordlists:Vj,zeroPadBytes:Pb,zeroPadValue:Hi},Symbol.toStringTag,{value:"Module"})),Wfe=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:hu,AbstractProvider:mp,AbstractSigner:Jp,AlchemyProvider:gp,AnkrProvider:bp,BaseContract:td,BaseWallet:vp,Block:eC,BrowserProvider:gC,CloudflareProvider:uC,ConstructorFragment:Cs,Contract:ru,ContractEventPayload:nC,ContractFactory:s8,ContractTransactionReceipt:tC,ContractTransactionResponse:Ub,ContractUnknownEventPayload:a8,EnsPlugin:Qp,EnsResolver:hp,ErrorDescription:YA,ErrorFragment:ea,EtherSymbol:dU,EtherscanPlugin:c8,EtherscanProvider:fC,EventFragment:Ii,EventLog:Lb,EventPayload:Kx,FallbackFragment:_s,FallbackProvider:bC,FeeData:a6,FeeDataNetworkPlugin:s6,FetchCancelSignal:RA,FetchRequest:$r,FetchResponse:xo,FetchUrlFeeDataNetworkPlugin:oC,FixedNumber:op,Fragment:Ic,FunctionFragment:Oi,GasCostPlugin:Zp,HDNodeVoidWallet:rd,HDNodeWallet:$f,Indexed:r6,InfuraProvider:nd,InfuraWebSocketProvider:mC,Interface:fp,IpcSocketProvider:Dj,JsonRpcApiProvider:o8,JsonRpcProvider:So,JsonRpcSigner:Hy,LangEn:To,Log:vd,LogDescription:JA,MaxInt256:fU,MaxUint256:lU,MessagePrefix:HA,MinInt256:uU,Mnemonic:pu,MulticoinProviderPlugin:iC,N:oU,NamedFragment:Kp,Network:Hn,NetworkPlugin:Wc,NonceManager:o6,ParamType:or,PocketProvider:Fm,QuickNodeProvider:xp,Result:cp,Signature:Ds,SigningKey:zi,SocketBlockSubscriber:dC,SocketEventSubscriber:pC,SocketPendingSubscriber:hC,SocketProvider:yC,SocketSubscriber:Hb,StructFragment:Ac,Transaction:du,TransactionDescription:XA,TransactionReceipt:n8,TransactionResponse:Yf,Typed:Er,TypedDataEncoder:Dc,UndecodedEventLog:r8,UnmanagedSubscriber:yp,Utf8ErrorFuncs:PA,VoidSigner:Mm,Wallet:p6,WebSocketProvider:l8,WeiPerEther:cU,Wordlist:xC,WordlistOwl:u8,WordlistOwlA:Gj,ZeroAddress:Em,ZeroHash:Xg,accessListify:Oo,assert:Be,assertArgument:ce,assertArgumentCount:zx,assertNormalize:Gx,assertPrivate:Io,checkResultErrors:ML,computeAddress:xd,computeHmac:zc,concat:Ut,copyRequest:dp,dataLength:Ec,dataSlice:Jt,decodeBase58:kA,decodeBase64:IA,decodeBytes32String:uj,decodeRlp:Nb,decryptCrowdsaleJson:h6,decryptKeystoreJson:_C,decryptKeystoreJsonSync:EC,defaultPath:Gy,defineProperties:et,dnsEncode:ZA,encodeBase58:Wx,encodeBase64:OA,encodeBytes32String:lj,encodeRlp:Jf,encryptKeystoreJson:d8,encryptKeystoreJsonSync:f8,ensNormalize:KA,ethers:y6,formatEther:TL,formatUnits:NA,fromTwos:sp,getAccountPath:Hj,getAddress:Et,getBigInt:it,getBytes:Ze,getBytesCopy:ar,getCreate2Address:mU,getCreateAddress:Zx,getDefaultProvider:Fj,getIcapAddress:yU,getIndexedAccountPath:zj,getNumber:lt,getUint:qp,hashMessage:Yx,hexlify:Ve,id:ks,isAddress:bU,isAddressable:Qx,isBytesLike:Vx,isCallException:Ob,isCrowdsaleJson:d6,isError:Wn,isHexString:pn,isKeystoreJson:l6,isValidName:HU,keccak256:zt,lock:hU,makeError:mn,mask:bc,namehash:Tm,parseEther:BL,parseUnits:$A,pbkdf2:Ps,randomBytes:si,recoverAddress:$b,resolveAddress:sr,resolveProperties:tr,ripemd160:Gc,scrypt:Vc,scryptSync:qc,sha256:ga,sha512:Wp,showThrottleMessage:Eu,solidityPacked:e8,solidityPackedKeccak256:KU,solidityPackedSha256:ZU,stripZerosLeft:yL,toBeArray:Or,toBeHex:Fs,toBigInt:gd,toNumber:DA,toQuantity:gc,toTwos:Rb,toUtf8Bytes:Kn,toUtf8CodePoints:xL,toUtf8String:fu,uuidV4:LA,verifyMessage:qU,verifyTypedData:ej,version:Hx,wordlists:Vj,zeroPadBytes:Pb,zeroPadValue:Hi},Symbol.toStringTag,{value:"Module"}));var Ep={},h8={},p8={},qj={};Object.defineProperty(qj,"__esModule",{value:!0});var Wj={};Object.defineProperty(Wj,"__esModule",{value:!0});var Kj={};Object.defineProperty(Kj,"__esModule",{value:!0});var Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var Jj={};Object.defineProperty(Jj,"__esModule",{value:!0});var Xj={};Object.defineProperty(Xj,"__esModule",{value:!0});var Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});var eH={};Object.defineProperty(eH,"__esModule",{value:!0});var tH={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.OperationType=void 0,function(e){e[e.Call=0]="Call",e[e.DelegateCall=1]="DelegateCall"}(t.OperationType||(t.OperationType={}))})(tH);(function(t){var e=de&&de.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i);var o=Object.getOwnPropertyDescriptor(a,i);(!o||("get"in o?!a.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,o)}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=de&&de.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,r,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(qj,t),n(Wj,t),n(Kj,t),n(Zj,t),n(Qj,t),n(Jj,t),n(Xj,t),n(Yj,t),n(eH,t),n(tH,t)})(p8);var y8={};const yn=NO(Wfe);var rn={},pa={};Object.defineProperty(pa,"__esModule",{value:!0});pa.output=pa.exists=pa.hash=pa.bytes=pa.bool=pa.number=void 0;function m6(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}pa.number=m6;function nH(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}pa.bool=nH;function Kfe(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function AC(t,...e){if(!Kfe(t))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}pa.bytes=AC;function rH(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");m6(t.outputLen),m6(t.blockLen)}pa.hash=rH;function aH(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}pa.exists=aH;function iH(t,e){AC(t);const n=e.outputLen;if(t.length>kw&e3)}:{h:Number(t>>kw&e3)|0,l:Number(t&e3)|0}}ut.fromBig=CC;function sH(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0);ut.toBig=oH;const cH=(t,e,n)=>t>>>n;ut.shrSH=cH;const lH=(t,e,n)=>t<<32-n|e>>>n;ut.shrSL=lH;const uH=(t,e,n)=>t>>>n|e<<32-n;ut.rotrSH=uH;const fH=(t,e,n)=>t<<32-n|e>>>n;ut.rotrSL=fH;const dH=(t,e,n)=>t<<64-n|e>>>n-32;ut.rotrBH=dH;const hH=(t,e,n)=>t>>>n-32|e<<64-n;ut.rotrBL=hH;const pH=(t,e)=>e;ut.rotr32H=pH;const yH=(t,e)=>t;ut.rotr32L=yH;const mH=(t,e,n)=>t<>>32-n;ut.rotlSH=mH;const bH=(t,e,n)=>e<>>32-n;ut.rotlSL=bH;const gH=(t,e,n)=>e<>>64-n;ut.rotlBH=gH;const xH=(t,e,n)=>t<>>64-n;ut.rotlBL=xH;function vH(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:a|0}}ut.add=vH;const wH=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);ut.add3L=wH;const EH=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;ut.add3H=EH;const _H=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);ut.add4L=_H;const AH=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0;ut.add4H=AH;const CH=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0);ut.add5L=CH;const SH=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0;ut.add5H=SH;const Qfe={fromBig:CC,split:sH,toBig:oH,shrSH:cH,shrSL:lH,rotrSH:uH,rotrSL:fH,rotrBH:dH,rotrBL:hH,rotr32H:pH,rotr32L:yH,rotlSH:mH,rotlSL:bH,rotlBH:gH,rotlBL:xH,add:vH,add3L:wH,add3H:EH,add4L:_H,add4H:AH,add5H:SH,add5L:CH};ut.default=Qfe;var TH={},m8={};Object.defineProperty(m8,"__esModule",{value:!0});m8.crypto=void 0;m8.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;(function(t){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const e=m8,n=L=>new Uint8Array(L.buffer,L.byteOffset,L.byteLength);t.u8=n;const r=L=>new Uint32Array(L.buffer,L.byteOffset,Math.floor(L.byteLength/4));t.u32=r;function a(L){return L instanceof Uint8Array||L!=null&&typeof L=="object"&&L.constructor.name==="Uint8Array"}const i=L=>new DataView(L.buffer,L.byteOffset,L.byteLength);t.createView=i;const s=(L,X)=>L<<32-X|L>>>X;if(t.rotr=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!t.isLE)throw new Error("Non little-endian hardware is not supported");const o=Array.from({length:256},(L,X)=>X.toString(16).padStart(2,"0"));function c(L){if(!a(L))throw new Error("Uint8Array expected");let X="";for(let B=0;B=h._0&&L<=h._9)return L-h._0;if(L>=h._A&&L<=h._F)return L-(h._A-10);if(L>=h._a&&L<=h._f)return L-(h._a-10)}function v(L){if(typeof L!="string")throw new Error("hex string expected, got "+typeof L);const X=L.length,B=X/2;if(X%2)throw new Error("padded hex string expected, got unpadded hex of length "+X);const u=new Uint8Array(B);for(let d=0,p=0;d{};t.nextTick=E;async function C(L,X,B){let u=Date.now();for(let d=0;d=0&&pL().update(T(u)).digest(),B=L();return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=()=>L(),X}t.wrapConstructor=k;function U(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapConstructorWithOpts=U;function J(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapXOFConstructorWithOpts=J;function Y(L=32){if(e.crypto&&typeof e.crypto.getRandomValues=="function")return e.crypto.getRandomValues(new Uint8Array(L));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=Y})(TH);Object.defineProperty(rn,"__esModule",{value:!0});rn.shake256=rn.shake128=rn.keccak_512=rn.keccak_384=rn.keccak_256=rn.keccak_224=rn.sha3_512=rn.sha3_384=rn.sha3_256=rn.sha3_224=rn.Keccak=rn.keccakP=void 0;const qd=pa,Dm=ut,Vy=TH,[BH,MH,FH]=[[],[],[]],Jfe=BigInt(0),R1=BigInt(1),Xfe=BigInt(2),Yfe=BigInt(7),ede=BigInt(256),tde=BigInt(113);for(let t=0,e=R1,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],BH.push(2*(5*r+n)),MH.push((t+1)*(t+2)/2%64);let a=Jfe;for(let i=0;i<7;i++)e=(e<>Yfe)*tde)%ede,e&Xfe&&(a^=R1<<(R1<n>32?(0,Dm.rotlBH)(t,e,n):(0,Dm.rotlSH)(t,e,n),$D=(t,e,n)=>n>32?(0,Dm.rotlBL)(t,e,n):(0,Dm.rotlSL)(t,e,n);function DH(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,h=n[c],b=n[c+1],v=ND(h,b,1)^n[o],E=$D(h,b,1)^n[o+1];for(let C=0;C<50;C+=10)t[s+C]^=v,t[s+C+1]^=E}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=MH[s],c=ND(a,i,o),h=$D(a,i,o),b=BH[s];a=t[b],i=t[b+1],t[b]=c,t[b+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)n[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=nde[r],t[1]^=rde[r]}n.fill(0)}rn.keccakP=DH;let SC=class kH extends Vy.Hash{constructor(e,n,r,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,qd.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Vy.u32)(this.state)}keccak(){DH(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,qd.exists)(this);const{blockLen:n,state:r}=this;e=(0,Vy.toBytes)(e);const a=e.length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-a);e.set(n.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,qd.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,qd.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new kH(n,r,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}};rn.Keccak=SC;const _u=(t,e,n)=>(0,Vy.wrapConstructor)(()=>new SC(e,t,n));rn.sha3_224=_u(6,144,224/8);rn.sha3_256=_u(6,136,256/8);rn.sha3_384=_u(6,104,384/8);rn.sha3_512=_u(6,72,512/8);rn.keccak_224=_u(1,144,224/8);rn.keccak_256=_u(1,136,256/8);rn.keccak_384=_u(1,104,384/8);rn.keccak_512=_u(1,72,512/8);const IH=(t,e,n)=>(0,Vy.wrapXOFConstructorWithOpts)((r={})=>new SC(e,t,r.dkLen===void 0?n:r.dkLen,!0));rn.shake128=IH(31,168,128/8);rn.shake256=IH(31,136,256/8);var na={};Object.defineProperty(na,"__esModule",{value:!0});na.safeDeploymentsL1ChainIds=na.safeDeploymentsVersions=na.SAFE_BASE_VERSION=na.DEFAULT_SAFE_VERSION=void 0;na.DEFAULT_SAFE_VERSION="1.3.0";na.SAFE_BASE_VERSION="1.0.0";na.safeDeploymentsVersions={"1.4.1":{safeSingletonVersion:"1.4.1",safeSingletonL2Version:"1.4.1",safeProxyFactoryVersion:"1.4.1",compatibilityFallbackHandler:"1.4.1",multiSendVersion:"1.4.1",multiSendCallOnlyVersion:"1.4.1",signMessageLibVersion:"1.4.1",createCallVersion:"1.4.1"},"1.3.0":{safeSingletonVersion:"1.3.0",safeSingletonL2Version:"1.3.0",safeProxyFactoryVersion:"1.3.0",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.3.0",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.2.0":{safeSingletonVersion:"1.2.0",safeSingletonL2Version:void 0,safeProxyFactoryVersion:"1.1.1",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.1.1":{safeSingletonVersion:"1.1.1",safeSingletonL2Version:void 0,safeProxyFactoryVersion:"1.1.1",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"},"1.0.0":{safeSingletonVersion:"1.0.0",safeSingletonL2Version:void 0,safeProxyFactoryVersion:"1.0.0",compatibilityFallbackHandler:"1.3.0",multiSendVersion:"1.1.1",multiSendCallOnlyVersion:"1.3.0",signMessageLibVersion:"1.3.0",createCallVersion:"1.3.0"}};na.safeDeploymentsL1ChainIds=[1n];var ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.SENTINEL_ADDRESS=ra.EMPTY_DATA=ra.ZERO_ADDRESS=void 0;ra.ZERO_ADDRESS=`0x${"0".repeat(40)}`;ra.EMPTY_DATA="0x";ra.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001";var b8={};Object.defineProperty(b8,"__esModule",{value:!0});b8.createMemoizedFunction=void 0;function ade(t,e={}){return(...n)=>{const r=JSON.stringify(n);return e[r]=e[r]||t(...n),e[r]}}b8.createMemoizedFunction=ade;var TC={},BC={},Kc={},g8={};g8.byteLength=ode;g8.toByteArray=lde;g8.fromByteArray=dde;var fo=[],_i=[],ide=typeof Uint8Array<"u"?Uint8Array:Array,p5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Wd=0,sde=p5.length;Wd0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function ode(t){var e=OH(t),n=e[0],r=e[1];return(n+r)*3/4-r}function cde(t,e,n){return(e+n)*3/4-n}function lde(t){var e,n=OH(t),r=n[0],a=n[1],i=new ide(cde(t,r,a)),s=0,o=a>0?r-4:r,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=_i[t.charCodeAt(c)]<<2|_i[t.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=_i[t.charCodeAt(c)]<<10|_i[t.charCodeAt(c+1)]<<4|_i[t.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function ude(t){return fo[t>>18&63]+fo[t>>12&63]+fo[t>>6&63]+fo[t&63]}function fde(t,e,n){for(var r,a=[],i=e;io?o:s+i));return r===1?(e=t[n-1],a.push(fo[e>>2]+fo[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],a.push(fo[e>>10]+fo[e>>4&63]+fo[e<<2&63]+"=")),a.join("")}var MC={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */MC.read=function(t,e,n,r,a){var i,s,o=a*8-r-1,c=(1<>1,b=-7,v=n?a-1:0,E=n?-1:1,C=t[e+v];for(v+=E,i=C&(1<<-b)-1,C>>=-b,b+=o;b>0;i=i*256+t[e+v],v+=E,b-=8);for(s=i&(1<<-b)-1,i>>=-b,b+=r;b>0;s=s*256+t[e+v],v+=E,b-=8);if(i===0)i=1-h;else{if(i===c)return s?NaN:(C?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-h}return(C?-1:1)*s*Math.pow(2,i-r)};MC.write=function(t,e,n,r,a,i){var s,o,c,h=i*8-a-1,b=(1<>1,E=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=r?0:i-1,M=r?1:-1,T=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=b):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+v>=1?e+=E/c:e+=E*Math.pow(2,1-v),e*c>=2&&(s++,c/=2),s+v>=b?(o=0,s=b):s+v>=1?(o=(e*c-1)*Math.pow(2,a),s=s+v):(o=e*Math.pow(2,v-1)*Math.pow(2,a),s=0));a>=8;t[n+C]=o&255,C+=M,o/=256,a-=8);for(s=s<0;t[n+C]=s&255,C+=M,s/=256,h-=8);t[n+C-M]|=T*128};/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */(function(t){var e=g8,n=MC,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=F,t.INSPECT_MAX_BYTES=50;var a=2147483647;t.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=i(),!o.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 i(){try{var Q=new Uint8Array(1),R={foo:function(){return 42}};return Object.setPrototypeOf(R,Uint8Array.prototype),Object.setPrototypeOf(Q,R),Q.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(Q){if(Q>a)throw new RangeError('The value "'+Q+'" is invalid for option "size"');var R=new Uint8Array(Q);return Object.setPrototypeOf(R,o.prototype),R}function o(Q,R,N){if(typeof Q=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(Q)}return c(Q,R,N)}o.poolSize=8192;function c(Q,R,N){if(typeof Q=="string")return E(Q,R);if(ArrayBuffer.isView(Q))return M(Q);if(Q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q);if(j(Q,ArrayBuffer)||Q&&j(Q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(j(Q,SharedArrayBuffer)||Q&&j(Q.buffer,SharedArrayBuffer)))return T(Q,R,N);if(typeof Q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var K=Q.valueOf&&Q.valueOf();if(K!=null&&K!==Q)return o.from(K,R,N);var ae=P(Q);if(ae)return ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Q[Symbol.toPrimitive]=="function")return o.from(Q[Symbol.toPrimitive]("string"),R,N);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Q)}o.from=function(Q,R,N){return c(Q,R,N)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function h(Q){if(typeof Q!="number")throw new TypeError('"size" argument must be of type number');if(Q<0)throw new RangeError('The value "'+Q+'" is invalid for option "size"')}function b(Q,R,N){return h(Q),Q<=0?s(Q):R!==void 0?typeof N=="string"?s(Q).fill(R,N):s(Q).fill(R):s(Q)}o.alloc=function(Q,R,N){return b(Q,R,N)};function v(Q){return h(Q),s(Q<0?0:D(Q)|0)}o.allocUnsafe=function(Q){return v(Q)},o.allocUnsafeSlow=function(Q){return v(Q)};function E(Q,R){if((typeof R!="string"||R==="")&&(R="utf8"),!o.isEncoding(R))throw new TypeError("Unknown encoding: "+R);var N=O(Q,R)|0,K=s(N),ae=K.write(Q,R);return ae!==N&&(K=K.slice(0,ae)),K}function C(Q){for(var R=Q.length<0?0:D(Q.length)|0,N=s(R),K=0;K=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return Q|0}function F(Q){return+Q!=Q&&(Q=0),o.alloc(+Q)}o.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==o.prototype},o.compare=function(R,N){if(j(R,Uint8Array)&&(R=o.from(R,R.offset,R.byteLength)),j(N,Uint8Array)&&(N=o.from(N,N.offset,N.byteLength)),!o.isBuffer(R)||!o.isBuffer(N))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===N)return 0;for(var K=R.length,ae=N.length,he=0,q=Math.min(K,ae);heae.length?o.from(q).copy(ae,he):Uint8Array.prototype.set.call(ae,q,he);else if(o.isBuffer(q))q.copy(ae,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=q.length}return ae};function O(Q,R){if(o.isBuffer(Q))return Q.length;if(ArrayBuffer.isView(Q)||j(Q,ArrayBuffer))return Q.byteLength;if(typeof Q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Q);var N=Q.length,K=arguments.length>2&&arguments[2]===!0;if(!K&&N===0)return 0;for(var ae=!1;;)switch(R){case"ascii":case"latin1":case"binary":return N;case"utf8":case"utf-8":return z(Q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N*2;case"hex":return N>>>1;case"base64":return ue(Q).length;default:if(ae)return K?-1:z(Q).length;R=(""+R).toLowerCase(),ae=!0}}o.byteLength=O;function k(Q,R,N){var K=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((N===void 0||N>this.length)&&(N=this.length),N<=0)||(N>>>=0,R>>>=0,N<=R))return"";for(Q||(Q="utf8");;)switch(Q){case"hex":return f(this,R,N);case"utf8":case"utf-8":return l(this,R,N);case"ascii":return w(this,R,N);case"latin1":case"binary":return x(this,R,N);case"base64":return p(this,R,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m(this,R,N);default:if(K)throw new TypeError("Unknown encoding: "+Q);Q=(Q+"").toLowerCase(),K=!0}}o.prototype._isBuffer=!0;function U(Q,R,N){var K=Q[R];Q[R]=Q[N],Q[N]=K}o.prototype.swap16=function(){var R=this.length;if(R%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;NN&&(R+=" ... "),""},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(R,N,K,ae,he){if(j(R,Uint8Array)&&(R=o.from(R,R.offset,R.byteLength)),!o.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(N===void 0&&(N=0),K===void 0&&(K=R?R.length:0),ae===void 0&&(ae=0),he===void 0&&(he=this.length),N<0||K>R.length||ae<0||he>this.length)throw new RangeError("out of range index");if(ae>=he&&N>=K)return 0;if(ae>=he)return-1;if(N>=K)return 1;if(N>>>=0,K>>>=0,ae>>>=0,he>>>=0,this===R)return 0;for(var q=he-ae,ee=K-N,ie=Math.min(q,ee),me=this.slice(ae,he),be=R.slice(N,K),pe=0;pe2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),N=+N,ne(N)&&(N=ae?0:Q.length-1),N<0&&(N=Q.length+N),N>=Q.length){if(ae)return-1;N=Q.length-1}else if(N<0)if(ae)N=0;else return-1;if(typeof R=="string"&&(R=o.from(R,K)),o.isBuffer(R))return R.length===0?-1:Y(Q,R,N,K,ae);if(typeof R=="number")return R=R&255,typeof Uint8Array.prototype.indexOf=="function"?ae?Uint8Array.prototype.indexOf.call(Q,R,N):Uint8Array.prototype.lastIndexOf.call(Q,R,N):Y(Q,[R],N,K,ae);throw new TypeError("val must be string, number or Buffer")}function Y(Q,R,N,K,ae){var he=1,q=Q.length,ee=R.length;if(K!==void 0&&(K=String(K).toLowerCase(),K==="ucs2"||K==="ucs-2"||K==="utf16le"||K==="utf-16le")){if(Q.length<2||R.length<2)return-1;he=2,q/=2,ee/=2,N/=2}function ie(Te,Ee){return he===1?Te[Ee]:Te.readUInt16BE(Ee*he)}var me;if(ae){var be=-1;for(me=N;meq&&(N=q-ee),me=N;me>=0;me--){for(var pe=!0,Me=0;Meae&&(K=ae)):K=ae;var he=R.length;K>he/2&&(K=he/2);for(var q=0;q>>0,isFinite(K)?(K=K>>>0,ae===void 0&&(ae="utf8")):(ae=K,K=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var he=this.length-N;if((K===void 0||K>he)&&(K=he),R.length>0&&(K<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ae||(ae="utf8");for(var q=!1;;)switch(ae){case"hex":return L(this,R,N,K);case"utf8":case"utf-8":return X(this,R,N,K);case"ascii":case"latin1":case"binary":return B(this,R,N,K);case"base64":return u(this,R,N,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d(this,R,N,K);default:if(q)throw new TypeError("Unknown encoding: "+ae);ae=(""+ae).toLowerCase(),q=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function p(Q,R,N){return R===0&&N===Q.length?e.fromByteArray(Q):e.fromByteArray(Q.slice(R,N))}function l(Q,R,N){N=Math.min(Q.length,N);for(var K=[],ae=R;ae239?4:he>223?3:he>191?2:1;if(ae+ee<=N){var ie,me,be,pe;switch(ee){case 1:he<128&&(q=he);break;case 2:ie=Q[ae+1],(ie&192)===128&&(pe=(he&31)<<6|ie&63,pe>127&&(q=pe));break;case 3:ie=Q[ae+1],me=Q[ae+2],(ie&192)===128&&(me&192)===128&&(pe=(he&15)<<12|(ie&63)<<6|me&63,pe>2047&&(pe<55296||pe>57343)&&(q=pe));break;case 4:ie=Q[ae+1],me=Q[ae+2],be=Q[ae+3],(ie&192)===128&&(me&192)===128&&(be&192)===128&&(pe=(he&15)<<18|(ie&63)<<12|(me&63)<<6|be&63,pe>65535&&pe<1114112&&(q=pe))}}q===null?(q=65533,ee=1):q>65535&&(q-=65536,K.push(q>>>10&1023|55296),q=56320|q&1023),K.push(q),ae+=ee}return g(K)}var y=4096;function g(Q){var R=Q.length;if(R<=y)return String.fromCharCode.apply(String,Q);for(var N="",K=0;KK)&&(N=K);for(var ae="",he=R;heK&&(R=K),N<0?(N+=K,N<0&&(N=0)):N>K&&(N=K),NN)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(R,N,K){R=R>>>0,N=N>>>0,K||A(R,N,this.length);for(var ae=this[R],he=1,q=0;++q>>0,N=N>>>0,K||A(R,N,this.length);for(var ae=this[R+--N],he=1;N>0&&(he*=256);)ae+=this[R+--N]*he;return ae},o.prototype.readUint8=o.prototype.readUInt8=function(R,N){return R=R>>>0,N||A(R,1,this.length),this[R]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(R,N){return R=R>>>0,N||A(R,2,this.length),this[R]|this[R+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(R,N){return R=R>>>0,N||A(R,2,this.length),this[R]<<8|this[R+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(R,N){return R=R>>>0,N||A(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+this[R+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(R,N){return R=R>>>0,N||A(R,4,this.length),this[R]*16777216+(this[R+1]<<16|this[R+2]<<8|this[R+3])},o.prototype.readIntLE=function(R,N,K){R=R>>>0,N=N>>>0,K||A(R,N,this.length);for(var ae=this[R],he=1,q=0;++q=he&&(ae-=Math.pow(2,8*N)),ae},o.prototype.readIntBE=function(R,N,K){R=R>>>0,N=N>>>0,K||A(R,N,this.length);for(var ae=N,he=1,q=this[R+--ae];ae>0&&(he*=256);)q+=this[R+--ae]*he;return he*=128,q>=he&&(q-=Math.pow(2,8*N)),q},o.prototype.readInt8=function(R,N){return R=R>>>0,N||A(R,1,this.length),this[R]&128?(255-this[R]+1)*-1:this[R]},o.prototype.readInt16LE=function(R,N){R=R>>>0,N||A(R,2,this.length);var K=this[R]|this[R+1]<<8;return K&32768?K|4294901760:K},o.prototype.readInt16BE=function(R,N){R=R>>>0,N||A(R,2,this.length);var K=this[R+1]|this[R]<<8;return K&32768?K|4294901760:K},o.prototype.readInt32LE=function(R,N){return R=R>>>0,N||A(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},o.prototype.readInt32BE=function(R,N){return R=R>>>0,N||A(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},o.prototype.readFloatLE=function(R,N){return R=R>>>0,N||A(R,4,this.length),n.read(this,R,!0,23,4)},o.prototype.readFloatBE=function(R,N){return R=R>>>0,N||A(R,4,this.length),n.read(this,R,!1,23,4)},o.prototype.readDoubleLE=function(R,N){return R=R>>>0,N||A(R,8,this.length),n.read(this,R,!0,52,8)},o.prototype.readDoubleBE=function(R,N){return R=R>>>0,N||A(R,8,this.length),n.read(this,R,!1,52,8)};function _(Q,R,N,K,ae,he){if(!o.isBuffer(Q))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>ae||RQ.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(R,N,K,ae){if(R=+R,N=N>>>0,K=K>>>0,!ae){var he=Math.pow(2,8*K)-1;_(this,R,N,K,he,0)}var q=1,ee=0;for(this[N]=R&255;++ee>>0,K=K>>>0,!ae){var he=Math.pow(2,8*K)-1;_(this,R,N,K,he,0)}var q=K-1,ee=1;for(this[N+q]=R&255;--q>=0&&(ee*=256);)this[N+q]=R/ee&255;return N+K},o.prototype.writeUint8=o.prototype.writeUInt8=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,1,255,0),this[N]=R&255,N+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,2,65535,0),this[N]=R&255,this[N+1]=R>>>8,N+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,2,65535,0),this[N]=R>>>8,this[N+1]=R&255,N+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,4,4294967295,0),this[N+3]=R>>>24,this[N+2]=R>>>16,this[N+1]=R>>>8,this[N]=R&255,N+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,4,4294967295,0),this[N]=R>>>24,this[N+1]=R>>>16,this[N+2]=R>>>8,this[N+3]=R&255,N+4},o.prototype.writeIntLE=function(R,N,K,ae){if(R=+R,N=N>>>0,!ae){var he=Math.pow(2,8*K-1);_(this,R,N,K,he-1,-he)}var q=0,ee=1,ie=0;for(this[N]=R&255;++q>0)-ie&255;return N+K},o.prototype.writeIntBE=function(R,N,K,ae){if(R=+R,N=N>>>0,!ae){var he=Math.pow(2,8*K-1);_(this,R,N,K,he-1,-he)}var q=K-1,ee=1,ie=0;for(this[N+q]=R&255;--q>=0&&(ee*=256);)R<0&&ie===0&&this[N+q+1]!==0&&(ie=1),this[N+q]=(R/ee>>0)-ie&255;return N+K},o.prototype.writeInt8=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,1,127,-128),R<0&&(R=255+R+1),this[N]=R&255,N+1},o.prototype.writeInt16LE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,2,32767,-32768),this[N]=R&255,this[N+1]=R>>>8,N+2},o.prototype.writeInt16BE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,2,32767,-32768),this[N]=R>>>8,this[N+1]=R&255,N+2},o.prototype.writeInt32LE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,4,2147483647,-2147483648),this[N]=R&255,this[N+1]=R>>>8,this[N+2]=R>>>16,this[N+3]=R>>>24,N+4},o.prototype.writeInt32BE=function(R,N,K){return R=+R,N=N>>>0,K||_(this,R,N,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[N]=R>>>24,this[N+1]=R>>>16,this[N+2]=R>>>8,this[N+3]=R&255,N+4};function S(Q,R,N,K,ae,he){if(N+K>Q.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function $(Q,R,N,K,ae){return R=+R,N=N>>>0,ae||S(Q,R,N,4),n.write(Q,R,N,K,23,4),N+4}o.prototype.writeFloatLE=function(R,N,K){return $(this,R,N,!0,K)},o.prototype.writeFloatBE=function(R,N,K){return $(this,R,N,!1,K)};function V(Q,R,N,K,ae){return R=+R,N=N>>>0,ae||S(Q,R,N,8),n.write(Q,R,N,K,52,8),N+8}o.prototype.writeDoubleLE=function(R,N,K){return V(this,R,N,!0,K)},o.prototype.writeDoubleBE=function(R,N,K){return V(this,R,N,!1,K)},o.prototype.copy=function(R,N,K,ae){if(!o.isBuffer(R))throw new TypeError("argument should be a Buffer");if(K||(K=0),!ae&&ae!==0&&(ae=this.length),N>=R.length&&(N=R.length),N||(N=0),ae>0&&ae=this.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("sourceEnd out of bounds");ae>this.length&&(ae=this.length),R.length-N>>0,K=K===void 0?this.length:K>>>0,R||(R=0);var q;if(typeof R=="number")for(q=N;q55295&&N<57344){if(!ae){if(N>56319){(R-=3)>-1&&he.push(239,191,189);continue}else if(q+1===K){(R-=3)>-1&&he.push(239,191,189);continue}ae=N;continue}if(N<56320){(R-=3)>-1&&he.push(239,191,189),ae=N;continue}N=(ae-55296<<10|N-56320)+65536}else ae&&(R-=3)>-1&&he.push(239,191,189);if(ae=null,N<128){if((R-=1)<0)break;he.push(N)}else if(N<2048){if((R-=2)<0)break;he.push(N>>6|192,N&63|128)}else if(N<65536){if((R-=3)<0)break;he.push(N>>12|224,N>>6&63|128,N&63|128)}else if(N<1114112){if((R-=4)<0)break;he.push(N>>18|240,N>>12&63|128,N>>6&63|128,N&63|128)}else throw new Error("Invalid code point")}return he}function Z(Q){for(var R=[],N=0;N>8,ae=N%256,he.push(ae),he.push(K);return he}function ue(Q){return e.toByteArray(W(Q))}function G(Q,R,N,K){for(var ae=0;ae=R.length||ae>=Q.length);++ae)R[ae+N]=Q[ae];return ae}function j(Q,R){return Q instanceof R||Q!=null&&Q.constructor!=null&&Q.constructor.name!=null&&Q.constructor.name===R.name}function ne(Q){return Q!==Q}var se=function(){for(var Q="0123456789abcdef",R=new Array(256),N=0;N<16;++N)for(var K=N*16,ae=0;ae<16;++ae)R[K+ae]=Q[N]+Q[ae];return R}()})(Kc);var Ra={},FC={exports:{}};const hde={},pde=Object.freeze(Object.defineProperty({__proto__:null,default:hde},Symbol.toStringTag,{value:"Module"})),ho=NO(pde);FC.exports;(function(t){(function(e,n){function r(p,l){if(!p)throw new Error(l||"Assertion failed")}function a(p,l){p.super_=l;var y=function(){};y.prototype=l.prototype,p.prototype=new y,p.prototype.constructor=p}function i(p,l,y){if(i.isBN(p))return p;this.negative=0,this.words=null,this.length=0,this.red=null,p!==null&&((l==="le"||l==="be")&&(y=l,l=10),this._init(p||0,l||10,y||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=ho.Buffer}catch{}i.isBN=function(l){return l instanceof i?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===i.wordSize&&Array.isArray(l.words)},i.max=function(l,y){return l.cmp(y)>0?l:y},i.min=function(l,y){return l.cmp(y)<0?l:y},i.prototype._init=function(l,y,g){if(typeof l=="number")return this._initNumber(l,y,g);if(typeof l=="object")return this._initArray(l,y,g);y==="hex"&&(y=16),r(y===(y|0)&&y>=2&&y<=36),l=l.toString().replace(/\s+/g,"");var w=0;l[0]==="-"&&(w++,this.negative=1),w=0;w-=3)f=l[w]|l[w-1]<<8|l[w-2]<<16,this.words[x]|=f<>>26-m&67108863,m+=24,m>=26&&(m-=26,x++);else if(g==="le")for(w=0,x=0;w>>26-m&67108863,m+=24,m>=26&&(m-=26,x++);return this._strip()};function o(p,l){var y=p.charCodeAt(l);if(y>=48&&y<=57)return y-48;if(y>=65&&y<=70)return y-55;if(y>=97&&y<=102)return y-87;r(!1,"Invalid character in "+p)}function c(p,l,y){var g=o(p,y);return y-1>=l&&(g|=o(p,y-1)<<4),g}i.prototype._parseHex=function(l,y,g){this.length=Math.ceil((l.length-y)/6),this.words=new Array(this.length);for(var w=0;w=y;w-=2)m=c(l,y,w)<=18?(x-=18,f+=1,this.words[f]|=m>>>26):x+=8;else{var A=l.length-y;for(w=A%2===0?y+1:y;w=18?(x-=18,f+=1,this.words[f]|=m>>>26):x+=8}this._strip()};function h(p,l,y,g){for(var w=0,x=0,f=Math.min(p.length,y),m=l;m=49?x=A-49+10:A>=17?x=A-17+10:x=A,r(A>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch{i.prototype.inspect=v}else i.prototype.inspect=v;function v(){return(this.red?""}var E=["","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"],C=[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];i.prototype.toString=function(l,y){l=l||10,y=y|0||1;var g;if(l===16||l==="hex"){g="";for(var w=0,x=0,f=0;f>>24-w&16777215,w+=2,w>=26&&(w-=26,f--),x!==0||f!==this.length-1?g=E[6-A.length]+A+g:g=A+g}for(x!==0&&(g=x.toString(16)+g);g.length%y!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(l===(l|0)&&l>=2&&l<=36){var _=C[l],S=M[l];g="";var $=this.clone();for($.negative=0;!$.isZero();){var V=$.modrn(S).toString(l);$=$.idivn(S),$.isZero()?g=V+g:g=E[_-V.length]+V+g}for(this.isZero()&&(g="0"+g);g.length%y!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},i.prototype.toJSON=function(){return this.toString(16,2)},s&&(i.prototype.toBuffer=function(l,y){return this.toArrayLike(s,l,y)}),i.prototype.toArray=function(l,y){return this.toArrayLike(Array,l,y)};var T=function(l,y){return l.allocUnsafe?l.allocUnsafe(y):new l(y)};i.prototype.toArrayLike=function(l,y,g){this._strip();var w=this.byteLength(),x=g||Math.max(1,w);r(w<=x,"byte array longer than desired length"),r(x>0,"Requested array length <= 0");var f=T(l,x),m=y==="le"?"LE":"BE";return this["_toArrayLike"+m](f,w),f},i.prototype._toArrayLikeLE=function(l,y){for(var g=0,w=0,x=0,f=0;x>8&255),g>16&255),f===6?(g>24&255),w=0,f=0):(w=m>>>24,f+=2)}if(g=0&&(l[g--]=m>>8&255),g>=0&&(l[g--]=m>>16&255),f===6?(g>=0&&(l[g--]=m>>24&255),w=0,f=0):(w=m>>>24,f+=2)}if(g>=0)for(l[g--]=w;g>=0;)l[g--]=0},Math.clz32?i.prototype._countBits=function(l){return 32-Math.clz32(l)}:i.prototype._countBits=function(l){var y=l,g=0;return y>=4096&&(g+=13,y>>>=13),y>=64&&(g+=7,y>>>=7),y>=8&&(g+=4,y>>>=4),y>=2&&(g+=2,y>>>=2),g+y},i.prototype._zeroBits=function(l){if(l===0)return 26;var y=l,g=0;return y&8191||(g+=13,y>>>=13),y&127||(g+=7,y>>>=7),y&15||(g+=4,y>>>=4),y&3||(g+=2,y>>>=2),y&1||g++,g},i.prototype.bitLength=function(){var l=this.words[this.length-1],y=this._countBits(l);return(this.length-1)*26+y};function P(p){for(var l=new Array(p.bitLength()),y=0;y>>w&1}return l}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,y=0;yl.length?this.clone().ior(l):l.clone().ior(this)},i.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},i.prototype.iuand=function(l){var y;this.length>l.length?y=l:y=this;for(var g=0;gl.length?this.clone().iand(l):l.clone().iand(this)},i.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},i.prototype.iuxor=function(l){var y,g;this.length>l.length?(y=this,g=l):(y=l,g=this);for(var w=0;wl.length?this.clone().ixor(l):l.clone().ixor(this)},i.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},i.prototype.inotn=function(l){r(typeof l=="number"&&l>=0);var y=Math.ceil(l/26)|0,g=l%26;this._expand(y),g>0&&y--;for(var w=0;w0&&(this.words[w]=~this.words[w]&67108863>>26-g),this._strip()},i.prototype.notn=function(l){return this.clone().inotn(l)},i.prototype.setn=function(l,y){r(typeof l=="number"&&l>=0);var g=l/26|0,w=l%26;return this._expand(g+1),y?this.words[g]=this.words[g]|1<l.length?(g=this,w=l):(g=l,w=this);for(var x=0,f=0;f>>26;for(;x!==0&&f>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;fl.length?this.clone().iadd(l):l.clone().iadd(this)},i.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var y=this.iadd(l);return l.negative=1,y._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var g=this.cmp(l);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,x;g>0?(w=this,x=l):(w=l,x=this);for(var f=0,m=0;m>26,this.words[m]=y&67108863;for(;f!==0&&m>26,this.words[m]=y&67108863;if(f===0&&m>>26,$=A&67108863,V=Math.min(_,l.length-1),I=Math.max(0,_-p.length+1);I<=V;I++){var W=_-I|0;w=p.words[W]|0,x=l.words[I]|0,f=w*x+$,S+=f/67108864|0,$=f&67108863}y.words[_]=$|0,A=S|0}return A!==0?y.words[_]=A|0:y.length--,y._strip()}var F=function(l,y,g){var w=l.words,x=y.words,f=g.words,m=0,A,_,S,$=w[0]|0,V=$&8191,I=$>>>13,W=w[1]|0,z=W&8191,Z=W>>>13,le=w[2]|0,ue=le&8191,G=le>>>13,j=w[3]|0,ne=j&8191,se=j>>>13,Q=w[4]|0,R=Q&8191,N=Q>>>13,K=w[5]|0,ae=K&8191,he=K>>>13,q=w[6]|0,ee=q&8191,ie=q>>>13,me=w[7]|0,be=me&8191,pe=me>>>13,Me=w[8]|0,Te=Me&8191,Ee=Me>>>13,Qe=w[9]|0,Ne=Qe&8191,Oe=Qe>>>13,at=x[0]|0,qe=at&8191,$e=at>>>13,xt=x[1]|0,Xe=xt&8191,He=xt>>>13,_t=x[2]|0,oe=_t&8191,fe=_t>>>13,Ce=x[3]|0,Ae=Ce&8191,_e=Ce>>>13,Je=x[4]|0,Fe=Je&8191,Se=Je>>>13,ze=x[5]|0,Pe=ze&8191,Ie=ze>>>13,Ye=x[6]|0,Le=Ye&8191,De=Ye>>>13,st=x[7]|0,We=st&8191,Ue=st>>>13,vt=x[8]|0,Ke=vt&8191,Re=vt>>>13,ht=x[9]|0,pt=ht&8191,yt=ht>>>13;g.negative=l.negative^y.negative,g.length=19,A=Math.imul(V,qe),_=Math.imul(V,$e),_=_+Math.imul(I,qe)|0,S=Math.imul(I,$e);var Kt=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,A=Math.imul(z,qe),_=Math.imul(z,$e),_=_+Math.imul(Z,qe)|0,S=Math.imul(Z,$e),A=A+Math.imul(V,Xe)|0,_=_+Math.imul(V,He)|0,_=_+Math.imul(I,Xe)|0,S=S+Math.imul(I,He)|0;var Ht=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,A=Math.imul(ue,qe),_=Math.imul(ue,$e),_=_+Math.imul(G,qe)|0,S=Math.imul(G,$e),A=A+Math.imul(z,Xe)|0,_=_+Math.imul(z,He)|0,_=_+Math.imul(Z,Xe)|0,S=S+Math.imul(Z,He)|0,A=A+Math.imul(V,oe)|0,_=_+Math.imul(V,fe)|0,_=_+Math.imul(I,oe)|0,S=S+Math.imul(I,fe)|0;var ot=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(ot>>>26)|0,ot&=67108863,A=Math.imul(ne,qe),_=Math.imul(ne,$e),_=_+Math.imul(se,qe)|0,S=Math.imul(se,$e),A=A+Math.imul(ue,Xe)|0,_=_+Math.imul(ue,He)|0,_=_+Math.imul(G,Xe)|0,S=S+Math.imul(G,He)|0,A=A+Math.imul(z,oe)|0,_=_+Math.imul(z,fe)|0,_=_+Math.imul(Z,oe)|0,S=S+Math.imul(Z,fe)|0,A=A+Math.imul(V,Ae)|0,_=_+Math.imul(V,_e)|0,_=_+Math.imul(I,Ae)|0,S=S+Math.imul(I,_e)|0;var Tt=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,A=Math.imul(R,qe),_=Math.imul(R,$e),_=_+Math.imul(N,qe)|0,S=Math.imul(N,$e),A=A+Math.imul(ne,Xe)|0,_=_+Math.imul(ne,He)|0,_=_+Math.imul(se,Xe)|0,S=S+Math.imul(se,He)|0,A=A+Math.imul(ue,oe)|0,_=_+Math.imul(ue,fe)|0,_=_+Math.imul(G,oe)|0,S=S+Math.imul(G,fe)|0,A=A+Math.imul(z,Ae)|0,_=_+Math.imul(z,_e)|0,_=_+Math.imul(Z,Ae)|0,S=S+Math.imul(Z,_e)|0,A=A+Math.imul(V,Fe)|0,_=_+Math.imul(V,Se)|0,_=_+Math.imul(I,Fe)|0,S=S+Math.imul(I,Se)|0;var mt=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(mt>>>26)|0,mt&=67108863,A=Math.imul(ae,qe),_=Math.imul(ae,$e),_=_+Math.imul(he,qe)|0,S=Math.imul(he,$e),A=A+Math.imul(R,Xe)|0,_=_+Math.imul(R,He)|0,_=_+Math.imul(N,Xe)|0,S=S+Math.imul(N,He)|0,A=A+Math.imul(ne,oe)|0,_=_+Math.imul(ne,fe)|0,_=_+Math.imul(se,oe)|0,S=S+Math.imul(se,fe)|0,A=A+Math.imul(ue,Ae)|0,_=_+Math.imul(ue,_e)|0,_=_+Math.imul(G,Ae)|0,S=S+Math.imul(G,_e)|0,A=A+Math.imul(z,Fe)|0,_=_+Math.imul(z,Se)|0,_=_+Math.imul(Z,Fe)|0,S=S+Math.imul(Z,Se)|0,A=A+Math.imul(V,Pe)|0,_=_+Math.imul(V,Ie)|0,_=_+Math.imul(I,Pe)|0,S=S+Math.imul(I,Ie)|0;var Pt=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,A=Math.imul(ee,qe),_=Math.imul(ee,$e),_=_+Math.imul(ie,qe)|0,S=Math.imul(ie,$e),A=A+Math.imul(ae,Xe)|0,_=_+Math.imul(ae,He)|0,_=_+Math.imul(he,Xe)|0,S=S+Math.imul(he,He)|0,A=A+Math.imul(R,oe)|0,_=_+Math.imul(R,fe)|0,_=_+Math.imul(N,oe)|0,S=S+Math.imul(N,fe)|0,A=A+Math.imul(ne,Ae)|0,_=_+Math.imul(ne,_e)|0,_=_+Math.imul(se,Ae)|0,S=S+Math.imul(se,_e)|0,A=A+Math.imul(ue,Fe)|0,_=_+Math.imul(ue,Se)|0,_=_+Math.imul(G,Fe)|0,S=S+Math.imul(G,Se)|0,A=A+Math.imul(z,Pe)|0,_=_+Math.imul(z,Ie)|0,_=_+Math.imul(Z,Pe)|0,S=S+Math.imul(Z,Ie)|0,A=A+Math.imul(V,Le)|0,_=_+Math.imul(V,De)|0,_=_+Math.imul(I,Le)|0,S=S+Math.imul(I,De)|0;var An=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(An>>>26)|0,An&=67108863,A=Math.imul(be,qe),_=Math.imul(be,$e),_=_+Math.imul(pe,qe)|0,S=Math.imul(pe,$e),A=A+Math.imul(ee,Xe)|0,_=_+Math.imul(ee,He)|0,_=_+Math.imul(ie,Xe)|0,S=S+Math.imul(ie,He)|0,A=A+Math.imul(ae,oe)|0,_=_+Math.imul(ae,fe)|0,_=_+Math.imul(he,oe)|0,S=S+Math.imul(he,fe)|0,A=A+Math.imul(R,Ae)|0,_=_+Math.imul(R,_e)|0,_=_+Math.imul(N,Ae)|0,S=S+Math.imul(N,_e)|0,A=A+Math.imul(ne,Fe)|0,_=_+Math.imul(ne,Se)|0,_=_+Math.imul(se,Fe)|0,S=S+Math.imul(se,Se)|0,A=A+Math.imul(ue,Pe)|0,_=_+Math.imul(ue,Ie)|0,_=_+Math.imul(G,Pe)|0,S=S+Math.imul(G,Ie)|0,A=A+Math.imul(z,Le)|0,_=_+Math.imul(z,De)|0,_=_+Math.imul(Z,Le)|0,S=S+Math.imul(Z,De)|0,A=A+Math.imul(V,We)|0,_=_+Math.imul(V,Ue)|0,_=_+Math.imul(I,We)|0,S=S+Math.imul(I,Ue)|0;var On=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(On>>>26)|0,On&=67108863,A=Math.imul(Te,qe),_=Math.imul(Te,$e),_=_+Math.imul(Ee,qe)|0,S=Math.imul(Ee,$e),A=A+Math.imul(be,Xe)|0,_=_+Math.imul(be,He)|0,_=_+Math.imul(pe,Xe)|0,S=S+Math.imul(pe,He)|0,A=A+Math.imul(ee,oe)|0,_=_+Math.imul(ee,fe)|0,_=_+Math.imul(ie,oe)|0,S=S+Math.imul(ie,fe)|0,A=A+Math.imul(ae,Ae)|0,_=_+Math.imul(ae,_e)|0,_=_+Math.imul(he,Ae)|0,S=S+Math.imul(he,_e)|0,A=A+Math.imul(R,Fe)|0,_=_+Math.imul(R,Se)|0,_=_+Math.imul(N,Fe)|0,S=S+Math.imul(N,Se)|0,A=A+Math.imul(ne,Pe)|0,_=_+Math.imul(ne,Ie)|0,_=_+Math.imul(se,Pe)|0,S=S+Math.imul(se,Ie)|0,A=A+Math.imul(ue,Le)|0,_=_+Math.imul(ue,De)|0,_=_+Math.imul(G,Le)|0,S=S+Math.imul(G,De)|0,A=A+Math.imul(z,We)|0,_=_+Math.imul(z,Ue)|0,_=_+Math.imul(Z,We)|0,S=S+Math.imul(Z,Ue)|0,A=A+Math.imul(V,Ke)|0,_=_+Math.imul(V,Re)|0,_=_+Math.imul(I,Ke)|0,S=S+Math.imul(I,Re)|0;var Zn=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,A=Math.imul(Ne,qe),_=Math.imul(Ne,$e),_=_+Math.imul(Oe,qe)|0,S=Math.imul(Oe,$e),A=A+Math.imul(Te,Xe)|0,_=_+Math.imul(Te,He)|0,_=_+Math.imul(Ee,Xe)|0,S=S+Math.imul(Ee,He)|0,A=A+Math.imul(be,oe)|0,_=_+Math.imul(be,fe)|0,_=_+Math.imul(pe,oe)|0,S=S+Math.imul(pe,fe)|0,A=A+Math.imul(ee,Ae)|0,_=_+Math.imul(ee,_e)|0,_=_+Math.imul(ie,Ae)|0,S=S+Math.imul(ie,_e)|0,A=A+Math.imul(ae,Fe)|0,_=_+Math.imul(ae,Se)|0,_=_+Math.imul(he,Fe)|0,S=S+Math.imul(he,Se)|0,A=A+Math.imul(R,Pe)|0,_=_+Math.imul(R,Ie)|0,_=_+Math.imul(N,Pe)|0,S=S+Math.imul(N,Ie)|0,A=A+Math.imul(ne,Le)|0,_=_+Math.imul(ne,De)|0,_=_+Math.imul(se,Le)|0,S=S+Math.imul(se,De)|0,A=A+Math.imul(ue,We)|0,_=_+Math.imul(ue,Ue)|0,_=_+Math.imul(G,We)|0,S=S+Math.imul(G,Ue)|0,A=A+Math.imul(z,Ke)|0,_=_+Math.imul(z,Re)|0,_=_+Math.imul(Z,Ke)|0,S=S+Math.imul(Z,Re)|0,A=A+Math.imul(V,pt)|0,_=_+Math.imul(V,yt)|0,_=_+Math.imul(I,pt)|0,S=S+Math.imul(I,yt)|0;var Qn=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,A=Math.imul(Ne,Xe),_=Math.imul(Ne,He),_=_+Math.imul(Oe,Xe)|0,S=Math.imul(Oe,He),A=A+Math.imul(Te,oe)|0,_=_+Math.imul(Te,fe)|0,_=_+Math.imul(Ee,oe)|0,S=S+Math.imul(Ee,fe)|0,A=A+Math.imul(be,Ae)|0,_=_+Math.imul(be,_e)|0,_=_+Math.imul(pe,Ae)|0,S=S+Math.imul(pe,_e)|0,A=A+Math.imul(ee,Fe)|0,_=_+Math.imul(ee,Se)|0,_=_+Math.imul(ie,Fe)|0,S=S+Math.imul(ie,Se)|0,A=A+Math.imul(ae,Pe)|0,_=_+Math.imul(ae,Ie)|0,_=_+Math.imul(he,Pe)|0,S=S+Math.imul(he,Ie)|0,A=A+Math.imul(R,Le)|0,_=_+Math.imul(R,De)|0,_=_+Math.imul(N,Le)|0,S=S+Math.imul(N,De)|0,A=A+Math.imul(ne,We)|0,_=_+Math.imul(ne,Ue)|0,_=_+Math.imul(se,We)|0,S=S+Math.imul(se,Ue)|0,A=A+Math.imul(ue,Ke)|0,_=_+Math.imul(ue,Re)|0,_=_+Math.imul(G,Ke)|0,S=S+Math.imul(G,Re)|0,A=A+Math.imul(z,pt)|0,_=_+Math.imul(z,yt)|0,_=_+Math.imul(Z,pt)|0,S=S+Math.imul(Z,yt)|0;var Jn=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,A=Math.imul(Ne,oe),_=Math.imul(Ne,fe),_=_+Math.imul(Oe,oe)|0,S=Math.imul(Oe,fe),A=A+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,_e)|0,_=_+Math.imul(Ee,Ae)|0,S=S+Math.imul(Ee,_e)|0,A=A+Math.imul(be,Fe)|0,_=_+Math.imul(be,Se)|0,_=_+Math.imul(pe,Fe)|0,S=S+Math.imul(pe,Se)|0,A=A+Math.imul(ee,Pe)|0,_=_+Math.imul(ee,Ie)|0,_=_+Math.imul(ie,Pe)|0,S=S+Math.imul(ie,Ie)|0,A=A+Math.imul(ae,Le)|0,_=_+Math.imul(ae,De)|0,_=_+Math.imul(he,Le)|0,S=S+Math.imul(he,De)|0,A=A+Math.imul(R,We)|0,_=_+Math.imul(R,Ue)|0,_=_+Math.imul(N,We)|0,S=S+Math.imul(N,Ue)|0,A=A+Math.imul(ne,Ke)|0,_=_+Math.imul(ne,Re)|0,_=_+Math.imul(se,Ke)|0,S=S+Math.imul(se,Re)|0,A=A+Math.imul(ue,pt)|0,_=_+Math.imul(ue,yt)|0,_=_+Math.imul(G,pt)|0,S=S+Math.imul(G,yt)|0;var Xn=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,A=Math.imul(Ne,Ae),_=Math.imul(Ne,_e),_=_+Math.imul(Oe,Ae)|0,S=Math.imul(Oe,_e),A=A+Math.imul(Te,Fe)|0,_=_+Math.imul(Te,Se)|0,_=_+Math.imul(Ee,Fe)|0,S=S+Math.imul(Ee,Se)|0,A=A+Math.imul(be,Pe)|0,_=_+Math.imul(be,Ie)|0,_=_+Math.imul(pe,Pe)|0,S=S+Math.imul(pe,Ie)|0,A=A+Math.imul(ee,Le)|0,_=_+Math.imul(ee,De)|0,_=_+Math.imul(ie,Le)|0,S=S+Math.imul(ie,De)|0,A=A+Math.imul(ae,We)|0,_=_+Math.imul(ae,Ue)|0,_=_+Math.imul(he,We)|0,S=S+Math.imul(he,Ue)|0,A=A+Math.imul(R,Ke)|0,_=_+Math.imul(R,Re)|0,_=_+Math.imul(N,Ke)|0,S=S+Math.imul(N,Re)|0,A=A+Math.imul(ne,pt)|0,_=_+Math.imul(ne,yt)|0,_=_+Math.imul(se,pt)|0,S=S+Math.imul(se,yt)|0;var Yn=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,A=Math.imul(Ne,Fe),_=Math.imul(Ne,Se),_=_+Math.imul(Oe,Fe)|0,S=Math.imul(Oe,Se),A=A+Math.imul(Te,Pe)|0,_=_+Math.imul(Te,Ie)|0,_=_+Math.imul(Ee,Pe)|0,S=S+Math.imul(Ee,Ie)|0,A=A+Math.imul(be,Le)|0,_=_+Math.imul(be,De)|0,_=_+Math.imul(pe,Le)|0,S=S+Math.imul(pe,De)|0,A=A+Math.imul(ee,We)|0,_=_+Math.imul(ee,Ue)|0,_=_+Math.imul(ie,We)|0,S=S+Math.imul(ie,Ue)|0,A=A+Math.imul(ae,Ke)|0,_=_+Math.imul(ae,Re)|0,_=_+Math.imul(he,Ke)|0,S=S+Math.imul(he,Re)|0,A=A+Math.imul(R,pt)|0,_=_+Math.imul(R,yt)|0,_=_+Math.imul(N,pt)|0,S=S+Math.imul(N,yt)|0;var er=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(er>>>26)|0,er&=67108863,A=Math.imul(Ne,Pe),_=Math.imul(Ne,Ie),_=_+Math.imul(Oe,Pe)|0,S=Math.imul(Oe,Ie),A=A+Math.imul(Te,Le)|0,_=_+Math.imul(Te,De)|0,_=_+Math.imul(Ee,Le)|0,S=S+Math.imul(Ee,De)|0,A=A+Math.imul(be,We)|0,_=_+Math.imul(be,Ue)|0,_=_+Math.imul(pe,We)|0,S=S+Math.imul(pe,Ue)|0,A=A+Math.imul(ee,Ke)|0,_=_+Math.imul(ee,Re)|0,_=_+Math.imul(ie,Ke)|0,S=S+Math.imul(ie,Re)|0,A=A+Math.imul(ae,pt)|0,_=_+Math.imul(ae,yt)|0,_=_+Math.imul(he,pt)|0,S=S+Math.imul(he,yt)|0;var sa=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(sa>>>26)|0,sa&=67108863,A=Math.imul(Ne,Le),_=Math.imul(Ne,De),_=_+Math.imul(Oe,Le)|0,S=Math.imul(Oe,De),A=A+Math.imul(Te,We)|0,_=_+Math.imul(Te,Ue)|0,_=_+Math.imul(Ee,We)|0,S=S+Math.imul(Ee,Ue)|0,A=A+Math.imul(be,Ke)|0,_=_+Math.imul(be,Re)|0,_=_+Math.imul(pe,Ke)|0,S=S+Math.imul(pe,Re)|0,A=A+Math.imul(ee,pt)|0,_=_+Math.imul(ee,yt)|0,_=_+Math.imul(ie,pt)|0,S=S+Math.imul(ie,yt)|0;var oa=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(oa>>>26)|0,oa&=67108863,A=Math.imul(Ne,We),_=Math.imul(Ne,Ue),_=_+Math.imul(Oe,We)|0,S=Math.imul(Oe,Ue),A=A+Math.imul(Te,Ke)|0,_=_+Math.imul(Te,Re)|0,_=_+Math.imul(Ee,Ke)|0,S=S+Math.imul(Ee,Re)|0,A=A+Math.imul(be,pt)|0,_=_+Math.imul(be,yt)|0,_=_+Math.imul(pe,pt)|0,S=S+Math.imul(pe,yt)|0;var Du=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Du>>>26)|0,Du&=67108863,A=Math.imul(Ne,Ke),_=Math.imul(Ne,Re),_=_+Math.imul(Oe,Ke)|0,S=Math.imul(Oe,Re),A=A+Math.imul(Te,pt)|0,_=_+Math.imul(Te,yt)|0,_=_+Math.imul(Ee,pt)|0,S=S+Math.imul(Ee,yt)|0;var Yv=(m+A|0)+((_&8191)<<13)|0;m=(S+(_>>>13)|0)+(Yv>>>26)|0,Yv&=67108863,A=Math.imul(Ne,pt),_=Math.imul(Ne,yt),_=_+Math.imul(Oe,pt)|0,S=Math.imul(Oe,yt);var e4=(m+A|0)+((_&8191)<<13)|0;return m=(S+(_>>>13)|0)+(e4>>>26)|0,e4&=67108863,f[0]=Kt,f[1]=Ht,f[2]=ot,f[3]=Tt,f[4]=mt,f[5]=Pt,f[6]=An,f[7]=On,f[8]=Zn,f[9]=Qn,f[10]=Jn,f[11]=Xn,f[12]=Yn,f[13]=er,f[14]=sa,f[15]=oa,f[16]=Du,f[17]=Yv,f[18]=e4,m!==0&&(f[19]=m,g.length++),g};Math.imul||(F=D);function O(p,l,y){y.negative=l.negative^p.negative,y.length=p.length+l.length;for(var g=0,w=0,x=0;x>>26)|0,w+=f>>>26,f&=67108863}y.words[x]=m,g=f,f=w}return g!==0?y.words[x]=g:y.length--,y._strip()}function k(p,l,y){return O(p,l,y)}i.prototype.mulTo=function(l,y){var g,w=this.length+l.length;return this.length===10&&l.length===10?g=F(this,l,y):w<63?g=D(this,l,y):w<1024?g=O(this,l,y):g=k(this,l,y),g},i.prototype.mul=function(l){var y=new i(null);return y.words=new Array(this.length+l.length),this.mulTo(l,y)},i.prototype.mulf=function(l){var y=new i(null);return y.words=new Array(this.length+l.length),k(this,l,y)},i.prototype.imul=function(l){return this.clone().mulTo(l,this)},i.prototype.imuln=function(l){var y=l<0;y&&(l=-l),r(typeof l=="number"),r(l<67108864);for(var g=0,w=0;w>=26,g+=x/67108864|0,g+=f>>>26,this.words[w]=f&67108863}return g!==0&&(this.words[w]=g,this.length++),y?this.ineg():this},i.prototype.muln=function(l){return this.clone().imuln(l)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(l){var y=P(l);if(y.length===0)return new i(1);for(var g=this,w=0;w=0);var y=l%26,g=(l-y)/26,w=67108863>>>26-y<<26-y,x;if(y!==0){var f=0;for(x=0;x>>26-y}f&&(this.words[x]=f,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x=0);var w;y?w=(y-y%26)/26:w=0;var x=l%26,f=Math.min((l-x)/26,this.length),m=67108863^67108863>>>x<f)for(this.length-=f,_=0;_=0&&(S!==0||_>=w);_--){var $=this.words[_]|0;this.words[_]=S<<26-x|$>>>x,S=$&m}return A&&S!==0&&(A.words[A.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(l,y,g){return r(this.negative===0),this.iushrn(l,y,g)},i.prototype.shln=function(l){return this.clone().ishln(l)},i.prototype.ushln=function(l){return this.clone().iushln(l)},i.prototype.shrn=function(l){return this.clone().ishrn(l)},i.prototype.ushrn=function(l){return this.clone().iushrn(l)},i.prototype.testn=function(l){r(typeof l=="number"&&l>=0);var y=l%26,g=(l-y)/26,w=1<=0);var y=l%26,g=(l-y)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(y!==0&&g++,this.length=Math.min(g,this.length),y!==0){var w=67108863^67108863>>>y<=67108864;y++)this.words[y]-=67108864,y===this.length-1?this.words[y+1]=1:this.words[y+1]++;return this.length=Math.max(this.length,y+1),this},i.prototype.isubn=function(l){if(r(typeof l=="number"),r(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var y=0;y>26)-(A/67108864|0),this.words[x+g]=f&67108863}for(;x>26,this.words[x+g]=f&67108863;if(m===0)return this._strip();for(r(m===-1),m=0,x=0;x>26,this.words[x]=f&67108863;return this.negative=1,this._strip()},i.prototype._wordDiv=function(l,y){var g=this.length-l.length,w=this.clone(),x=l,f=x.words[x.length-1]|0,m=this._countBits(f);g=26-m,g!==0&&(x=x.ushln(g),w.iushln(g),f=x.words[x.length-1]|0);var A=w.length-x.length,_;if(y!=="mod"){_=new i(null),_.length=A+1,_.words=new Array(_.length);for(var S=0;S<_.length;S++)_.words[S]=0}var $=w.clone()._ishlnsubmul(x,1,A);$.negative===0&&(w=$,_&&(_.words[A]=1));for(var V=A-1;V>=0;V--){var I=(w.words[x.length+V]|0)*67108864+(w.words[x.length+V-1]|0);for(I=Math.min(I/f|0,67108863),w._ishlnsubmul(x,I,V);w.negative!==0;)I--,w.negative=0,w._ishlnsubmul(x,1,V),w.isZero()||(w.negative^=1);_&&(_.words[V]=I)}return _&&_._strip(),w._strip(),y!=="div"&&g!==0&&w.iushrn(g),{div:_||null,mod:w}},i.prototype.divmod=function(l,y,g){if(r(!l.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var w,x,f;return this.negative!==0&&l.negative===0?(f=this.neg().divmod(l,y),y!=="mod"&&(w=f.div.neg()),y!=="div"&&(x=f.mod.neg(),g&&x.negative!==0&&x.iadd(l)),{div:w,mod:x}):this.negative===0&&l.negative!==0?(f=this.divmod(l.neg(),y),y!=="mod"&&(w=f.div.neg()),{div:w,mod:f.mod}):this.negative&l.negative?(f=this.neg().divmod(l.neg(),y),y!=="div"&&(x=f.mod.neg(),g&&x.negative!==0&&x.isub(l)),{div:f.div,mod:x}):l.length>this.length||this.cmp(l)<0?{div:new i(0),mod:this}:l.length===1?y==="div"?{div:this.divn(l.words[0]),mod:null}:y==="mod"?{div:null,mod:new i(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new i(this.modrn(l.words[0]))}:this._wordDiv(l,y)},i.prototype.div=function(l){return this.divmod(l,"div",!1).div},i.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},i.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},i.prototype.divRound=function(l){var y=this.divmod(l);if(y.mod.isZero())return y.div;var g=y.div.negative!==0?y.mod.isub(l):y.mod,w=l.ushrn(1),x=l.andln(1),f=g.cmp(w);return f<0||x===1&&f===0?y.div:y.div.negative!==0?y.div.isubn(1):y.div.iaddn(1)},i.prototype.modrn=function(l){var y=l<0;y&&(l=-l),r(l<=67108863);for(var g=(1<<26)%l,w=0,x=this.length-1;x>=0;x--)w=(g*w+(this.words[x]|0))%l;return y?-w:w},i.prototype.modn=function(l){return this.modrn(l)},i.prototype.idivn=function(l){var y=l<0;y&&(l=-l),r(l<=67108863);for(var g=0,w=this.length-1;w>=0;w--){var x=(this.words[w]|0)+g*67108864;this.words[w]=x/l|0,g=x%l}return this._strip(),y?this.ineg():this},i.prototype.divn=function(l){return this.clone().idivn(l)},i.prototype.egcd=function(l){r(l.negative===0),r(!l.isZero());var y=this,g=l.clone();y.negative!==0?y=y.umod(l):y=y.clone();for(var w=new i(1),x=new i(0),f=new i(0),m=new i(1),A=0;y.isEven()&&g.isEven();)y.iushrn(1),g.iushrn(1),++A;for(var _=g.clone(),S=y.clone();!y.isZero();){for(var $=0,V=1;!(y.words[0]&V)&&$<26;++$,V<<=1);if($>0)for(y.iushrn($);$-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(_),x.isub(S)),w.iushrn(1),x.iushrn(1);for(var I=0,W=1;!(g.words[0]&W)&&I<26;++I,W<<=1);if(I>0)for(g.iushrn(I);I-- >0;)(f.isOdd()||m.isOdd())&&(f.iadd(_),m.isub(S)),f.iushrn(1),m.iushrn(1);y.cmp(g)>=0?(y.isub(g),w.isub(f),x.isub(m)):(g.isub(y),f.isub(w),m.isub(x))}return{a:f,b:m,gcd:g.iushln(A)}},i.prototype._invmp=function(l){r(l.negative===0),r(!l.isZero());var y=this,g=l.clone();y.negative!==0?y=y.umod(l):y=y.clone();for(var w=new i(1),x=new i(0),f=g.clone();y.cmpn(1)>0&&g.cmpn(1)>0;){for(var m=0,A=1;!(y.words[0]&A)&&m<26;++m,A<<=1);if(m>0)for(y.iushrn(m);m-- >0;)w.isOdd()&&w.iadd(f),w.iushrn(1);for(var _=0,S=1;!(g.words[0]&S)&&_<26;++_,S<<=1);if(_>0)for(g.iushrn(_);_-- >0;)x.isOdd()&&x.iadd(f),x.iushrn(1);y.cmp(g)>=0?(y.isub(g),w.isub(x)):(g.isub(y),x.isub(w))}var $;return y.cmpn(1)===0?$=w:$=x,$.cmpn(0)<0&&$.iadd(l),$},i.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var y=this.clone(),g=l.clone();y.negative=0,g.negative=0;for(var w=0;y.isEven()&&g.isEven();w++)y.iushrn(1),g.iushrn(1);do{for(;y.isEven();)y.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=y.cmp(g);if(x<0){var f=y;y=g,g=f}else if(x===0||g.cmpn(1)===0)break;y.isub(g)}while(!0);return g.iushln(w)},i.prototype.invm=function(l){return this.egcd(l).a.umod(l)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(l){return this.words[0]&l},i.prototype.bincn=function(l){r(typeof l=="number");var y=l%26,g=(l-y)/26,w=1<>>26,m&=67108863,this.words[f]=m}return x!==0&&(this.words[f]=x,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(l){var y=l<0;if(this.negative!==0&&!y)return-1;if(this.negative===0&&y)return 1;this._strip();var g;if(this.length>1)g=1;else{y&&(l=-l),r(l<=67108863,"Number is too big");var w=this.words[0]|0;g=w===l?0:wl.length)return 1;if(this.length=0;g--){var w=this.words[g]|0,x=l.words[g]|0;if(w!==x){wx&&(y=1);break}}return y},i.prototype.gtn=function(l){return this.cmpn(l)===1},i.prototype.gt=function(l){return this.cmp(l)===1},i.prototype.gten=function(l){return this.cmpn(l)>=0},i.prototype.gte=function(l){return this.cmp(l)>=0},i.prototype.ltn=function(l){return this.cmpn(l)===-1},i.prototype.lt=function(l){return this.cmp(l)===-1},i.prototype.lten=function(l){return this.cmpn(l)<=0},i.prototype.lte=function(l){return this.cmp(l)<=0},i.prototype.eqn=function(l){return this.cmpn(l)===0},i.prototype.eq=function(l){return this.cmp(l)===0},i.red=function(l){return new u(l)},i.prototype.toRed=function(l){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(l){return this.red=l,this},i.prototype.forceRed=function(l){return r(!this.red,"Already a number in reduction context"),this._forceRed(l)},i.prototype.redAdd=function(l){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},i.prototype.redIAdd=function(l){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},i.prototype.redSub=function(l){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},i.prototype.redISub=function(l){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},i.prototype.redShl=function(l){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},i.prototype.redMul=function(l){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},i.prototype.redIMul=function(l){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(l){return r(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var U={k256:null,p224:null,p192:null,p25519:null};function J(p,l){this.name=p,this.p=new i(l,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}J.prototype._tmp=function(){var l=new i(null);return l.words=new Array(Math.ceil(this.n/13)),l},J.prototype.ireduce=function(l){var y=l,g;do this.split(y,this.tmp),y=this.imulK(y),y=y.iadd(this.tmp),g=y.bitLength();while(g>this.n);var w=g0?y.isub(this.p):y.strip!==void 0?y.strip():y._strip(),y},J.prototype.split=function(l,y){l.iushrn(this.n,0,y)},J.prototype.imulK=function(l){return l.imul(this.k)};function Y(){J.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(Y,J),Y.prototype.split=function(l,y){for(var g=4194303,w=Math.min(l.length,9),x=0;x>>22,f=m}f>>>=22,l.words[x-10]=f,f===0&&l.length>10?l.length-=10:l.length-=9},Y.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var y=0,g=0;g>>=26,l.words[g]=x,y=w}return y!==0&&(l.words[l.length++]=y),l},i._prime=function(l){if(U[l])return U[l];var y;if(l==="k256")y=new Y;else if(l==="p224")y=new L;else if(l==="p192")y=new X;else if(l==="p25519")y=new B;else throw new Error("Unknown prime "+l);return U[l]=y,y};function u(p){if(typeof p=="string"){var l=i._prime(p);this.m=l.p,this.prime=l}else r(p.gtn(1),"modulus must be greater than 1"),this.m=p,this.prime=null}u.prototype._verify1=function(l){r(l.negative===0,"red works only with positives"),r(l.red,"red works only with red numbers")},u.prototype._verify2=function(l,y){r((l.negative|y.negative)===0,"red works only with positives"),r(l.red&&l.red===y.red,"red works only with red numbers")},u.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(b(l,l.umod(this.m)._forceRed(this)),l)},u.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},u.prototype.add=function(l,y){this._verify2(l,y);var g=l.add(y);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},u.prototype.iadd=function(l,y){this._verify2(l,y);var g=l.iadd(y);return g.cmp(this.m)>=0&&g.isub(this.m),g},u.prototype.sub=function(l,y){this._verify2(l,y);var g=l.sub(y);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},u.prototype.isub=function(l,y){this._verify2(l,y);var g=l.isub(y);return g.cmpn(0)<0&&g.iadd(this.m),g},u.prototype.shl=function(l,y){return this._verify1(l),this.imod(l.ushln(y))},u.prototype.imul=function(l,y){return this._verify2(l,y),this.imod(l.imul(y))},u.prototype.mul=function(l,y){return this._verify2(l,y),this.imod(l.mul(y))},u.prototype.isqr=function(l){return this.imul(l,l.clone())},u.prototype.sqr=function(l){return this.mul(l,l)},u.prototype.sqrt=function(l){if(l.isZero())return l.clone();var y=this.m.andln(3);if(r(y%2===1),y===3){var g=this.m.add(new i(1)).iushrn(2);return this.pow(l,g)}for(var w=this.m.subn(1),x=0;!w.isZero()&&w.andln(1)===0;)x++,w.iushrn(1);r(!w.isZero());var f=new i(1).toRed(this),m=f.redNeg(),A=this.m.subn(1).iushrn(1),_=this.m.bitLength();for(_=new i(2*_*_).toRed(this);this.pow(_,A).cmp(m)!==0;)_.redIAdd(m);for(var S=this.pow(_,w),$=this.pow(l,w.addn(1).iushrn(1)),V=this.pow(l,w),I=x;V.cmp(f)!==0;){for(var W=V,z=0;W.cmp(f)!==0;z++)W=W.redSqr();r(z=0;x--){for(var S=y.words[x],$=_-1;$>=0;$--){var V=S>>$&1;if(f!==w[0]&&(f=this.sqr(f)),V===0&&m===0){A=0;continue}m<<=1,m|=V,A++,!(A!==g&&(x!==0||$!==0))&&(f=this.mul(f,w[m]),A=0,m=0)}_=26}return f},u.prototype.convertTo=function(l){var y=l.umod(this.m);return y===l?y.clone():y},u.prototype.convertFrom=function(l){var y=l.clone();return y.red=null,y},i.mont=function(l){return new d(l)};function d(p){u.call(this,p),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(d,u),d.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},d.prototype.convertFrom=function(l){var y=this.imod(l.mul(this.rinv));return y.red=null,y},d.prototype.imul=function(l,y){if(l.isZero()||y.isZero())return l.words[0]=0,l.length=1,l;var g=l.imul(y),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(w).iushrn(this.shift),f=x;return x.cmp(this.m)>=0?f=x.isub(this.m):x.cmpn(0)<0&&(f=x.iadd(this.m)),f._forceRed(this)},d.prototype.mul=function(l,y){if(l.isZero()||y.isZero())return new i(0)._forceRed(this);var g=l.mul(y),w=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(w).iushrn(this.shift),f=x;return x.cmp(this.m)>=0?f=x.isub(this.m):x.cmpn(0)<0&&(f=x.iadd(this.m)),f._forceRed(this)},d.prototype.invm=function(l){var y=this.imod(l._invmp(this.m).mul(this.r2));return y._forceRed(this)}})(t,de)})(FC);var Gb=FC.exports,au={},yde=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(au,"__esModule",{value:!0});au.getLength=au.decode=au.encode=void 0;var mde=yde(Gb);function PH(t){if(Array.isArray(t)){for(var e=[],n=0;nt.length)throw new Error("invalid rlp: total length is larger than the data");if(a=t.slice(n,c),a.length===0)throw new Error("invalid rlp, List has a invalid length");for(;a.length;)i=Ow(a),s.push(i.data),a=i.remainder;return{data:s,remainder:t.slice(c)}}}function RH(t){return t.slice(0,2)==="0x"}function xde(t){return typeof t!="string"?t:RH(t)?t.slice(2):t}function Pw(t){if(t<0)throw new Error("Invalid integer as argument, must be unsigned!");var e=t.toString(16);return e.length%2?"0"+e:e}function vde(t){return t.length%2?"0"+t:t}function wde(t){var e=Pw(t);return Buffer.from(e,"hex")}function DC(t){if(!Buffer.isBuffer(t)){if(typeof t=="string")return RH(t)?Buffer.from(vde(xde(t)),"hex"):Buffer.from(t);if(typeof t=="number"||typeof t=="bigint")return t?wde(t):Buffer.from([]);if(t==null)return Buffer.from([]);if(t instanceof Uint8Array)return Buffer.from(t);if(mde.default.isBN(t))return Buffer.from(t.toArray());throw new Error("invalid type")}return t}var Ede=de&&de.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,a)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),_de=de&&de.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ade=de&&de.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Ede(e,t,n);return _de(e,t),e},Cde=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.rlp=Ra.BN=void 0;var Sde=Cde(Gb);Ra.BN=Sde.default;var Tde=Ade(au);Ra.rlp=Tde;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var e=Kc,n=Ra;t.MAX_UINT64=new n.BN("ffffffffffffffff",16),t.MAX_INTEGER=new n.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new n.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.Buffer.from(t.KECCAK256_RLP_S,"hex")})(BC);var kC={},y5={exports:{}},m5={},ad={},NH={},$H=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(n 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]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},Bde=$H,x8=function(){return Bde()&&!!Symbol.toStringTag},b5,UD;function Mde(){if(UD)return b5;UD=1;var t=typeof Symbol<"u"&&Symbol,e=$H;return b5=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},b5}var g5,jD;function Fde(){if(jD)return g5;jD=1;var t={foo:{}},e=Object;return g5=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof e)},g5}var x5,HD;function Dde(){if(HD)return x5;HD=1;var t="Function.prototype.bind called on incompatible ",e=Array.prototype.slice,n=Object.prototype.toString,r="[object Function]";return x5=function(i){var s=this;if(typeof s!="function"||n.call(s)!==r)throw new TypeError(t+s);for(var o=e.call(arguments,1),c,h=function(){if(this instanceof c){var M=s.apply(this,o.concat(e.call(arguments)));return Object(M)===M?M:this}else return s.apply(i,o.concat(e.call(arguments)))},b=Math.max(0,s.length-o.length),v=[],E=0;E"u"||!b?t:b(Uint8Array),C={"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":c&&b?b([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&b?b(b([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!b?t:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!b?t:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&b?b(""[Symbol.iterator]()):t,"%Symbol%":c?Symbol:t,"%SyntaxError%":e,"%ThrowTypeError%":o,"%TypedArray%":E,"%TypeError%":r,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet};if(b)try{null.error}catch(d){var M=b(b(d));C["%Error.prototype%"]=M}var T=function d(p){var l;if(p==="%AsyncFunction%")l=a("async function () {}");else if(p==="%GeneratorFunction%")l=a("function* () {}");else if(p==="%AsyncGeneratorFunction%")l=a("async function* () {}");else if(p==="%AsyncGenerator%"){var y=d("%AsyncGeneratorFunction%");y&&(l=y.prototype)}else if(p==="%AsyncIteratorPrototype%"){var g=d("%AsyncGenerator%");g&&b&&(l=b(g.prototype))}return C[p]=l,l},P={"%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"]},D=IC(),F=kde(),O=D.call(Function.call,Array.prototype.concat),k=D.call(Function.apply,Array.prototype.splice),U=D.call(Function.call,String.prototype.replace),J=D.call(Function.call,String.prototype.slice),Y=D.call(Function.call,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,B=function(p){var l=J(p,0,1),y=J(p,-1);if(l==="%"&&y!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(y==="%"&&l!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var g=[];return U(p,L,function(w,x,f,m){g[g.length]=f?U(m,X,"$1"):x||w}),g},u=function(p,l){var y=p,g;if(F(P,y)&&(g=P[y],y="%"+g[0]+"%"),F(C,y)){var w=C[y];if(w===v&&(w=T(y)),typeof w>"u"&&!l)throw new r("intrinsic "+p+" exists, but is not available. Please file an issue!");return{alias:g,name:y,value:w}}throw new e("intrinsic "+p+" does not exist!")};return E5=function(p,l){if(typeof p!="string"||p.length===0)throw new r("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof l!="boolean")throw new r('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,p)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var y=B(p),g=y.length>0?y[0]:"",w=u("%"+g+"%",l),x=w.name,f=w.value,m=!1,A=w.alias;A&&(g=A[0],k(y,O([0,1],A)));for(var _=1,S=!0;_=y.length){var W=i(f,$);S=!!W,S&&"get"in W&&!("originalValue"in W.get)?f=W.get:f=f[$]}else S=F(f,$),f=f[$];S&&!m&&(C[x]=f)}}return f},E5}var _5={exports:{}},qD;function OC(){return qD||(qD=1,function(t){var e=IC(),n=v8(),r=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||e.call(a,r),s=n("%Object.getOwnPropertyDescriptor%",!0),o=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(o)try{o({},"a",{value:1})}catch{o=null}t.exports=function(v){var E=i(e,a,arguments);if(s&&o){var C=s(E,"length");C.configurable&&o(E,"length",{value:1+c(0,v.length-(arguments.length-1))})}return E};var h=function(){return i(e,r,arguments)};o?o(t.exports,"apply",{value:h}):t.exports.apply=h}(_5)),_5.exports}var LH=v8(),UH=OC(),Ide=UH(LH("String.prototype.indexOf")),PC=function(e,n){var r=LH(e,!!n);return typeof r=="function"&&Ide(e,".prototype.")>-1?UH(r):r},Ode=x8(),Pde=PC,Rw=Pde("Object.prototype.toString"),w8=function(e){return Ode&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Rw(e)==="[object Arguments]"},jH=function(e){return w8(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Rw(e)!=="[object Array]"&&Rw(e.callee)==="[object Function]"},Rde=function(){return w8(arguments)}();w8.isLegacyArguments=jH;var Nde=Rde?w8:jH,$de=Object.prototype.toString,Lde=Function.prototype.toString,Ude=/^\s*(?:function)?\*/,HH=x8(),A5=Object.getPrototypeOf,jde=function(){if(!HH)return!1;try{return Function("return function*() {}")()}catch{}},C5,Hde=function(e){if(typeof e!="function")return!1;if(Ude.test(Lde.call(e)))return!0;if(!HH){var n=$de.call(e);return n==="[object GeneratorFunction]"}if(!A5)return!1;if(typeof C5>"u"){var r=jde();C5=r?A5(r):!1}return A5(e)===C5},zH=Function.prototype.toString,I0=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Nw,ig;if(typeof I0=="function"&&typeof Object.defineProperty=="function")try{Nw=Object.defineProperty({},"length",{get:function(){throw ig}}),ig={},I0(function(){throw 42},null,Nw)}catch(t){t!==ig&&(I0=null)}else I0=null;var zde=/^\s*class\b/,$w=function(e){try{var n=zH.call(e);return zde.test(n)}catch{return!1}},S5=function(e){try{return $w(e)?!1:(zH.call(e),!0)}catch{return!1}},sg=Object.prototype.toString,Gde="[object Object]",Vde="[object Function]",qde="[object GeneratorFunction]",Wde="[object HTMLAllCollection]",Kde="[object HTML document.all class]",Zde="[object HTMLCollection]",Qde=typeof Symbol=="function"&&!!Symbol.toStringTag,Jde=!(0 in[,]),Lw=function(){return!1};if(typeof document=="object"){var Xde=document.all;sg.call(Xde)===sg.call(document.all)&&(Lw=function(e){if((Jde||!e)&&(typeof e>"u"||typeof e=="object"))try{var n=sg.call(e);return(n===Wde||n===Kde||n===Zde||n===Gde)&&e("")==null}catch{}return!1})}var Yde=I0?function(e){if(Lw(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{I0(e,null,Nw)}catch(n){if(n!==ig)return!1}return!$w(e)&&S5(e)}:function(e){if(Lw(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(Qde)return S5(e);if($w(e))return!1;var n=sg.call(e);return n!==Vde&&n!==qde&&!/^\[object HTML/.test(n)?!1:S5(e)},e0e=Yde,t0e=Object.prototype.toString,GH=Object.prototype.hasOwnProperty,n0e=function(e,n,r){for(var a=0,i=e.length;a=3&&(a=r),t0e.call(e)==="[object Array]"?n0e(e,n,a):typeof e=="string"?r0e(e,n,a):a0e(e,n,a)},VH=i0e,s0e={},T5=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o0e=typeof globalThis>"u"?s0e:globalThis,qH=function(){for(var e=[],n=0;n"u"?l0e:globalThis,QH=u0e(),h0e=RC("Array.prototype.indexOf",!0)||function(e,n){for(var r=0;r-1}return cg?y0e(e):!1},m0e={},YH=VH,b0e=qH,ez=PC,M5=WH,g0e=ez("Object.prototype.toString"),tz=x8(),WD=typeof globalThis>"u"?m0e:globalThis,x0e=b0e(),v0e=ez("String.prototype.slice"),nz={},F5=Object.getPrototypeOf;tz&&M5&&F5&&YH(x0e,function(t){if(typeof WD[t]=="function"){var e=new WD[t];if(Symbol.toStringTag in e){var n=F5(e),r=M5(n,Symbol.toStringTag);if(!r){var a=F5(n);r=M5(a,Symbol.toStringTag)}nz[t]=r.get}}});var w0e=function(e){var n=!1;return YH(nz,function(r,a){if(!n)try{var i=r.call(e);i===a&&(n=i)}catch{}}),n},E0e=XH,_0e=function(e){return E0e(e)?!tz||!(Symbol.toStringTag in e)?v0e(g0e(e),8,-1):w0e(e):!1};(function(t){var e=Nde,n=Hde,r=_0e,a=XH;function i(K){return K.call.bind(K)}var s=typeof BigInt<"u",o=typeof Symbol<"u",c=i(Object.prototype.toString),h=i(Number.prototype.valueOf),b=i(String.prototype.valueOf),v=i(Boolean.prototype.valueOf);if(s)var E=i(BigInt.prototype.valueOf);if(o)var C=i(Symbol.prototype.valueOf);function M(K,ae){if(typeof K!="object")return!1;try{return ae(K),!0}catch{return!1}}t.isArgumentsObject=e,t.isGeneratorFunction=n,t.isTypedArray=a;function T(K){return typeof Promise<"u"&&K instanceof Promise||K!==null&&typeof K=="object"&&typeof K.then=="function"&&typeof K.catch=="function"}t.isPromise=T;function P(K){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(K):a(K)||S(K)}t.isArrayBufferView=P;function D(K){return r(K)==="Uint8Array"}t.isUint8Array=D;function F(K){return r(K)==="Uint8ClampedArray"}t.isUint8ClampedArray=F;function O(K){return r(K)==="Uint16Array"}t.isUint16Array=O;function k(K){return r(K)==="Uint32Array"}t.isUint32Array=k;function U(K){return r(K)==="Int8Array"}t.isInt8Array=U;function J(K){return r(K)==="Int16Array"}t.isInt16Array=J;function Y(K){return r(K)==="Int32Array"}t.isInt32Array=Y;function L(K){return r(K)==="Float32Array"}t.isFloat32Array=L;function X(K){return r(K)==="Float64Array"}t.isFloat64Array=X;function B(K){return r(K)==="BigInt64Array"}t.isBigInt64Array=B;function u(K){return r(K)==="BigUint64Array"}t.isBigUint64Array=u;function d(K){return c(K)==="[object Map]"}d.working=typeof Map<"u"&&d(new Map);function p(K){return typeof Map>"u"?!1:d.working?d(K):K instanceof Map}t.isMap=p;function l(K){return c(K)==="[object Set]"}l.working=typeof Set<"u"&&l(new Set);function y(K){return typeof Set>"u"?!1:l.working?l(K):K instanceof Set}t.isSet=y;function g(K){return c(K)==="[object WeakMap]"}g.working=typeof WeakMap<"u"&&g(new WeakMap);function w(K){return typeof WeakMap>"u"?!1:g.working?g(K):K instanceof WeakMap}t.isWeakMap=w;function x(K){return c(K)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function f(K){return x(K)}t.isWeakSet=f;function m(K){return c(K)==="[object ArrayBuffer]"}m.working=typeof ArrayBuffer<"u"&&m(new ArrayBuffer);function A(K){return typeof ArrayBuffer>"u"?!1:m.working?m(K):K instanceof ArrayBuffer}t.isArrayBuffer=A;function _(K){return c(K)==="[object DataView]"}_.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&_(new DataView(new ArrayBuffer(1),0,1));function S(K){return typeof DataView>"u"?!1:_.working?_(K):K instanceof DataView}t.isDataView=S;var $=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function V(K){return c(K)==="[object SharedArrayBuffer]"}function I(K){return typeof $>"u"?!1:(typeof V.working>"u"&&(V.working=V(new $)),V.working?V(K):K instanceof $)}t.isSharedArrayBuffer=I;function W(K){return c(K)==="[object AsyncFunction]"}t.isAsyncFunction=W;function z(K){return c(K)==="[object Map Iterator]"}t.isMapIterator=z;function Z(K){return c(K)==="[object Set Iterator]"}t.isSetIterator=Z;function le(K){return c(K)==="[object Generator]"}t.isGeneratorObject=le;function ue(K){return c(K)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=ue;function G(K){return M(K,h)}t.isNumberObject=G;function j(K){return M(K,b)}t.isStringObject=j;function ne(K){return M(K,v)}t.isBooleanObject=ne;function se(K){return s&&M(K,E)}t.isBigIntObject=se;function Q(K){return o&&M(K,C)}t.isSymbolObject=Q;function R(K){return G(K)||j(K)||ne(K)||se(K)||Q(K)}t.isBoxedPrimitive=R;function N(K){return typeof Uint8Array<"u"&&(A(K)||I(K))}t.isAnyArrayBuffer=N,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(K){Object.defineProperty(t,K,{enumerable:!1,value:function(){throw new Error(K+" is not supported in userland")}})})})(NH);var A0e=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Uw={exports:{}};typeof Object.create=="function"?Uw.exports=function(e,n){n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Uw.exports=function(e,n){if(n){e.super_=n;var r=function(){};r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e}};var zn=Uw.exports;(function(t){var e={},n=Object.getOwnPropertyDescriptors||function($){for(var V=Object.keys($),I={},W=0;W=W)return le;switch(le){case"%s":return String(I[V++]);case"%d":return Number(I[V++]);case"%j":try{return JSON.stringify(I[V++])}catch{return"[Circular]"}default:return le}}),Z=I[V];V"u")return function(){return t.deprecate(S,$).apply(this,arguments)};var V=!1;function I(){if(!V){if(process.throwDeprecation)throw new Error($);process.traceDeprecation?console.trace($):console.error($),V=!0}return S.apply(this,arguments)}return I};var a={},i=/^$/;if(e.NODE_DEBUG){var s=e.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),i=new RegExp("^"+s+"$","i")}t.debuglog=function(S){if(S=S.toUpperCase(),!a[S])if(i.test(S)){var $=process.pid;a[S]=function(){var V=t.format.apply(t,arguments);console.error("%s %d: %s",S,$,V)}}else a[S]=function(){};return a[S]};function o(S,$){var V={seen:[],stylize:h};return arguments.length>=3&&(V.depth=arguments[2]),arguments.length>=4&&(V.colors=arguments[3]),F($)?V.showHidden=$:$&&t._extend(V,$),L(V.showHidden)&&(V.showHidden=!1),L(V.depth)&&(V.depth=2),L(V.colors)&&(V.colors=!1),L(V.customInspect)&&(V.customInspect=!0),V.colors&&(V.stylize=c),v(V,S,V.depth)}t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(S,$){var V=o.styles[$];return V?"\x1B["+o.colors[V][0]+"m"+S+"\x1B["+o.colors[V][1]+"m":S}function h(S,$){return S}function b(S){var $={};return S.forEach(function(V,I){$[V]=!0}),$}function v(S,$,V){if(S.customInspect&&$&&p($.inspect)&&$.inspect!==t.inspect&&!($.constructor&&$.constructor.prototype===$)){var I=$.inspect(V,S);return J(I)||(I=v(S,I,V)),I}var W=E(S,$);if(W)return W;var z=Object.keys($),Z=b(z);if(S.showHidden&&(z=Object.getOwnPropertyNames($)),d($)&&(z.indexOf("message")>=0||z.indexOf("description")>=0))return C($);if(z.length===0){if(p($)){var le=$.name?": "+$.name:"";return S.stylize("[Function"+le+"]","special")}if(X($))return S.stylize(RegExp.prototype.toString.call($),"regexp");if(u($))return S.stylize(Date.prototype.toString.call($),"date");if(d($))return C($)}var ue="",G=!1,j=["{","}"];if(D($)&&(G=!0,j=["[","]"]),p($)){var ne=$.name?": "+$.name:"";ue=" [Function"+ne+"]"}if(X($)&&(ue=" "+RegExp.prototype.toString.call($)),u($)&&(ue=" "+Date.prototype.toUTCString.call($)),d($)&&(ue=" "+C($)),z.length===0&&(!G||$.length==0))return j[0]+ue+j[1];if(V<0)return X($)?S.stylize(RegExp.prototype.toString.call($),"regexp"):S.stylize("[Object]","special");S.seen.push($);var se;return G?se=M(S,$,V,Z,z):se=z.map(function(Q){return T(S,$,V,Z,Q,G)}),S.seen.pop(),P(se,ue,j)}function E(S,$){if(L($))return S.stylize("undefined","undefined");if(J($)){var V="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return S.stylize(V,"string")}if(U($))return S.stylize(""+$,"number");if(F($))return S.stylize(""+$,"boolean");if(O($))return S.stylize("null","null")}function C(S){return"["+Error.prototype.toString.call(S)+"]"}function M(S,$,V,I,W){for(var z=[],Z=0,le=$.length;Z-1&&(z?le=le.split(` -`).map(function(G){return" "+G}).join(` -`).slice(2):le=` -`+le.split(` -`).map(function(G){return" "+G}).join(` -`))):le=S.stylize("[Circular]","special")),L(Z)){if(z&&W.match(/^\d+$/))return le;Z=JSON.stringify(""+W),Z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Z=Z.slice(1,-1),Z=S.stylize(Z,"name")):(Z=Z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Z=S.stylize(Z,"string"))}return Z+": "+le}function P(S,$,V){var I=S.reduce(function(W,z){return z.indexOf(` -`)>=0,W+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return I>60?V[0]+($===""?"":$+` - `)+" "+S.join(`, - `)+" "+V[1]:V[0]+$+" "+S.join(", ")+" "+V[1]}t.types=NH;function D(S){return Array.isArray(S)}t.isArray=D;function F(S){return typeof S=="boolean"}t.isBoolean=F;function O(S){return S===null}t.isNull=O;function k(S){return S==null}t.isNullOrUndefined=k;function U(S){return typeof S=="number"}t.isNumber=U;function J(S){return typeof S=="string"}t.isString=J;function Y(S){return typeof S=="symbol"}t.isSymbol=Y;function L(S){return S===void 0}t.isUndefined=L;function X(S){return B(S)&&y(S)==="[object RegExp]"}t.isRegExp=X,t.types.isRegExp=X;function B(S){return typeof S=="object"&&S!==null}t.isObject=B;function u(S){return B(S)&&y(S)==="[object Date]"}t.isDate=u,t.types.isDate=u;function d(S){return B(S)&&(y(S)==="[object Error]"||S instanceof Error)}t.isError=d,t.types.isNativeError=d;function p(S){return typeof S=="function"}t.isFunction=p;function l(S){return S===null||typeof S=="boolean"||typeof S=="number"||typeof S=="string"||typeof S=="symbol"||typeof S>"u"}t.isPrimitive=l,t.isBuffer=A0e;function y(S){return Object.prototype.toString.call(S)}function g(S){return S<10?"0"+S.toString(10):S.toString(10)}var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function x(){var S=new Date,$=[g(S.getHours()),g(S.getMinutes()),g(S.getSeconds())].join(":");return[S.getDate(),w[S.getMonth()],$].join(" ")}t.log=function(){console.log("%s - %s",x(),t.format.apply(t,arguments))},t.inherits=zn,t._extend=function(S,$){if(!$||!B($))return S;for(var V=Object.keys($),I=V.length;I--;)S[V[I]]=$[V[I]];return S};function f(S,$){return Object.prototype.hasOwnProperty.call(S,$)}var m=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(m&&$[m]){var V=$[m];if(typeof V!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(V,m,{value:V,enumerable:!1,writable:!1,configurable:!0}),V}function V(){for(var I,W,z=new Promise(function(ue,G){I=ue,W=G}),Z=[],le=0;le2?"one of ".concat(P," ").concat(T.slice(0,D-1).join(", "),", or ")+T[D-1]:D===2?"one of ".concat(P," ").concat(T[0]," or ").concat(T[1]):"of ".concat(P," ").concat(T[0])}else return"of ".concat(P," ").concat(String(T))}function E(T,P,D){return T.substr(!D||D<0?0:+D,P.length)===P}function C(T,P,D){return(D===void 0||D>T.length)&&(D=T.length),T.substring(D-P.length,D)===P}function M(T,P,D){return typeof D!="number"&&(D=0),D+P.length>T.length?!1:T.indexOf(P,D)!==-1}return b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",function(T,P,D){c===void 0&&(c=km()),c(typeof T=="string","'name' must be a string");var F;typeof P=="string"&&E(P,"not ")?(F="must not be",P=P.replace(/^not /,"")):F="must be";var O;if(C(T," argument"))O="The ".concat(T," ").concat(F," ").concat(v(P,"type"));else{var k=M(T,".")?"property":"argument";O='The "'.concat(T,'" ').concat(k," ").concat(F," ").concat(v(P,"type"))}return O+=". Received type ".concat(t(D)),O},TypeError),b("ERR_INVALID_ARG_VALUE",function(T,P){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";h===void 0&&(h=ad);var F=h.inspect(P);return F.length>128&&(F="".concat(F.slice(0,128),"...")),"The argument '".concat(T,"' ").concat(D,". Received ").concat(F)},TypeError),b("ERR_INVALID_RETURN_VALUE",function(T,P,D){var F;return D&&D.constructor&&D.constructor.name?F="instance of ".concat(D.constructor.name):F="type ".concat(t(D)),"Expected ".concat(T,' to be returned from the "').concat(P,'"')+" function but got ".concat(F,".")},TypeError),b("ERR_MISSING_ARGS",function(){for(var T=arguments.length,P=new Array(T),D=0;D0,"At least one arg needs to be specified");var F="The ",O=P.length;switch(P=P.map(function(k){return'"'.concat(k,'"')}),O){case 1:F+="".concat(P[0]," argument");break;case 2:F+="".concat(P[0]," and ").concat(P[1]," arguments");break;default:F+=P.slice(0,O-1).join(", "),F+=", and ".concat(P[O-1]," arguments");break}return"".concat(F," must be specified")},TypeError),m5.codes=o,m5}var D5,ZD;function C0e(){if(ZD)return D5;ZD=1;function t(y){for(var g=1;g"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function b(y,g,w){return h()?b=Reflect.construct:b=function(f,m,A){var _=[null];_.push.apply(_,m);var S=Function.bind.apply(f,_),$=new S;return A&&E($,A.prototype),$},b.apply(null,arguments)}function v(y){return Function.toString.call(y).indexOf("[native code]")!==-1}function E(y,g){return E=Object.setPrototypeOf||function(x,f){return x.__proto__=f,x},E(y,g)}function C(y){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)},C(y)}function M(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?M=function(w){return typeof w}:M=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},M(y)}var T=ad,P=T.inspect,D=rz(),F=D.codes.ERR_INVALID_ARG_TYPE;function O(y,g,w){return(w===void 0||w>y.length)&&(w=y.length),y.substring(w-g.length,w)===g}function k(y,g){if(g=Math.floor(g),y.length==0||g==0)return"";var w=y.length*g;for(g=Math.floor(Math.log(g)/Math.log(2));g;)y+=y,g--;return y+=y.substring(0,w-y.length),y}var U="",J="",Y="",L="",X={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},B=10;function u(y){var g=Object.keys(y),w=Object.create(Object.getPrototypeOf(y));return g.forEach(function(x){w[x]=y[x]}),Object.defineProperty(w,"message",{value:y.message}),w}function d(y){return P(y,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function p(y,g,w){var x="",f="",m=0,A="",_=!1,S=d(y),$=S.split(` -`),V=d(g).split(` -`),I=0,W="";if(w==="strictEqual"&&M(y)==="object"&&M(g)==="object"&&y!==null&&g!==null&&(w="strictEqualObject"),$.length===1&&V.length===1&&$[0]!==V[0]){var z=$[0].length+V[0].length;if(z<=B){if((M(y)!=="object"||y===null)&&(M(g)!=="object"||g===null)&&(y!==0||g!==0))return"".concat(X[w],` - -`)+"".concat($[0]," !== ").concat(V[0],` -`)}else if(w!=="strictEqualObject"){var Z=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(z2&&(W=` - `.concat(k(" ",I),"^"),I=0)}}}for(var le=$[$.length-1],ue=V[V.length-1];le===ue&&(I++<2?A=` - `.concat(le).concat(A):x=le,$.pop(),V.pop(),!($.length===0||V.length===0));)le=$[$.length-1],ue=V[V.length-1];var G=Math.max($.length,V.length);if(G===0){var j=S.split(` -`);if(j.length>30)for(j[26]="".concat(U,"...").concat(L);j.length>27;)j.pop();return"".concat(X.notIdentical,` - -`).concat(j.join(` -`),` -`)}I>3&&(A=` -`.concat(U,"...").concat(L).concat(A),_=!0),x!==""&&(A=` - `.concat(x).concat(A),x="");var ne=0,se=X[w]+` -`.concat(J,"+ actual").concat(L," ").concat(Y,"- expected").concat(L),Q=" ".concat(U,"...").concat(L," Lines skipped");for(I=0;I1&&I>2&&(R>4?(f+=` -`.concat(U,"...").concat(L),_=!0):R>3&&(f+=` - `.concat(V[I-2]),ne++),f+=` - `.concat(V[I-1]),ne++),m=I,x+=` -`.concat(Y,"-").concat(L," ").concat(V[I]),ne++;else if(V.length1&&I>2&&(R>4?(f+=` -`.concat(U,"...").concat(L),_=!0):R>3&&(f+=` - `.concat($[I-2]),ne++),f+=` - `.concat($[I-1]),ne++),m=I,f+=` -`.concat(J,"+").concat(L," ").concat($[I]),ne++;else{var N=V[I],K=$[I],ae=K!==N&&(!O(K,",")||K.slice(0,-1)!==N);ae&&O(N,",")&&N.slice(0,-1)===K&&(ae=!1,K+=","),ae?(R>1&&I>2&&(R>4?(f+=` -`.concat(U,"...").concat(L),_=!0):R>3&&(f+=` - `.concat($[I-2]),ne++),f+=` - `.concat($[I-1]),ne++),m=I,f+=` -`.concat(J,"+").concat(L," ").concat(K),x+=` -`.concat(Y,"-").concat(L," ").concat(N),ne+=2):(f+=x,x="",(R===1||I===0)&&(f+=` - `.concat(K),ne++))}if(ne>20&&I30)for(I[26]="".concat(U,"...").concat(L);I.length>27;)I.pop();I.length===1?x=i(this,C(g).call(this,"".concat(V," ").concat(I[0]))):x=i(this,C(g).call(this,"".concat(V,` - -`).concat(I.join(` -`),` -`)))}else{var W=d(_),z="",Z=X[m];m==="notDeepEqual"||m==="notEqual"?(W="".concat(X[m],` - -`).concat(W),W.length>1024&&(W="".concat(W.slice(0,1021),"..."))):(z="".concat(d(S)),W.length>512&&(W="".concat(W.slice(0,509),"...")),z.length>512&&(z="".concat(z.slice(0,509),"...")),m==="deepEqual"||m==="equal"?W="".concat(Z,` - -`).concat(W,` - -should equal - -`):z=" ".concat(m," ").concat(z)),x=i(this,C(g).call(this,"".concat(W).concat(z)))}return Error.stackTraceLimit=$,x.generatedMessage=!f,Object.defineProperty(s(x),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),x.code="ERR_ASSERTION",x.actual=_,x.expected=S,x.operator=m,Error.captureStackTrace&&Error.captureStackTrace(s(x),A),x.stack,x.name="AssertionError",i(x)}return a(g,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:P.custom,value:function(x,f){return P(this,t({},f,{customInspect:!1,depth:0}))}}]),g}(c(Error));return D5=l,D5}var k5,QD;function S0e(){if(QD)return k5;QD=1;function t(n,r){if(n==null)throw new TypeError("Cannot convert first argument to object");for(var a=Object(n),i=1;i=0&&t.call(n.callee)==="[object Function]"),a},I5}var O5,XD;function T0e(){if(XD)return O5;XD=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=az(),a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(E){var C=E.constructor;return C&&C.prototype===E},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},b=function(){if(typeof window>"u")return!1;for(var E in window)try{if(!h["$"+E]&&e.call(window,E)&&window[E]!==null&&typeof window[E]=="object")try{c(window[E])}catch{return!0}}catch{return!0}return!1}(),v=function(E){if(typeof window>"u"||!b)return c(E);try{return c(E)}catch{return!1}};t=function(C){var M=C!==null&&typeof C=="object",T=n.call(C)==="[object Function]",P=r(C),D=M&&n.call(C)==="[object String]",F=[];if(!M&&!T&&!P)throw new TypeError("Object.keys called on a non-object");var O=s&&T;if(D&&C.length>0&&!e.call(C,0))for(var k=0;k0)for(var U=0;U2?arguments[2]:{},C=t(v);e&&(C=r.call(C,Object.getOwnPropertySymbols(v)));for(var M=0;M10)return!0;for(var ee=0;ee57)return!0}return q.length===10&&q>=Math.pow(2,32)}function g(q){return Object.keys(q).filter(y).concat(h(q).filter(Object.prototype.propertyIsEnumerable.bind(q)))}/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */function w(q,ee){if(q===ee)return 0;for(var ie=q.length,me=ee.length,be=0,pe=Math.min(ie,me);be1?S-1:0),V=1;V1?S-1:0),V=1;V1?S-1:0),V=1;V1?S-1:0),V=1;V",z0e="MIT",G0e={url:"https://github.com/indutny/elliptic/issues"},V0e="https://github.com/indutny/elliptic",q0e={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"},W0e={"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"},K0e={name:O0e,version:P0e,description:R0e,main:N0e,files:$0e,scripts:L0e,repository:U0e,keywords:j0e,author:H0e,license:z0e,bugs:G0e,homepage:V0e,devDependencies:q0e,dependencies:W0e};var di={},$C={exports:{}};$C.exports;(function(t){(function(e,n){function r(u,d){if(!u)throw new Error(d||"Assertion failed")}function a(u,d){u.super_=d;var p=function(){};p.prototype=d.prototype,u.prototype=new p,u.prototype.constructor=u}function i(u,d,p){if(i.isBN(u))return u;this.negative=0,this.words=null,this.length=0,this.red=null,u!==null&&((d==="le"||d==="be")&&(p=d,d=10),this._init(u||0,d||10,p||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{typeof window<"u"&&typeof window.Buffer<"u"?s=window.Buffer:s=ho.Buffer}catch{}i.isBN=function(d){return d instanceof i?!0:d!==null&&typeof d=="object"&&d.constructor.wordSize===i.wordSize&&Array.isArray(d.words)},i.max=function(d,p){return d.cmp(p)>0?d:p},i.min=function(d,p){return d.cmp(p)<0?d:p},i.prototype._init=function(d,p,l){if(typeof d=="number")return this._initNumber(d,p,l);if(typeof d=="object")return this._initArray(d,p,l);p==="hex"&&(p=16),r(p===(p|0)&&p>=2&&p<=36),d=d.toString().replace(/\s+/g,"");var y=0;d[0]==="-"&&(y++,this.negative=1),y=0;y-=3)w=d[y]|d[y-1]<<8|d[y-2]<<16,this.words[g]|=w<>>26-x&67108863,x+=24,x>=26&&(x-=26,g++);else if(l==="le")for(y=0,g=0;y>>26-x&67108863,x+=24,x>=26&&(x-=26,g++);return this.strip()};function o(u,d){var p=u.charCodeAt(d);return p>=65&&p<=70?p-55:p>=97&&p<=102?p-87:p-48&15}function c(u,d,p){var l=o(u,p);return p-1>=d&&(l|=o(u,p-1)<<4),l}i.prototype._parseHex=function(d,p,l){this.length=Math.ceil((d.length-p)/6),this.words=new Array(this.length);for(var y=0;y=p;y-=2)x=c(d,p,y)<=18?(g-=18,w+=1,this.words[w]|=x>>>26):g+=8;else{var f=d.length-p;for(y=f%2===0?p+1:p;y=18?(g-=18,w+=1,this.words[w]|=x>>>26):g+=8}this.strip()};function h(u,d,p,l){for(var y=0,g=Math.min(u.length,p),w=d;w=49?y+=x-49+10:x>=17?y+=x-17+10:y+=x}return y}i.prototype._parseBase=function(d,p,l){this.words=[0],this.length=1;for(var y=0,g=1;g<=67108863;g*=p)y++;y--,g=g/p|0;for(var w=d.length-l,x=w%y,f=Math.min(w,w-x)+l,m=0,A=l;A1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var b=["","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"],v=[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],E=[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];i.prototype.toString=function(d,p){d=d||10,p=p|0||1;var l;if(d===16||d==="hex"){l="";for(var y=0,g=0,w=0;w>>24-y&16777215,g!==0||w!==this.length-1?l=b[6-f.length]+f+l:l=f+l,y+=2,y>=26&&(y-=26,w--)}for(g!==0&&(l=g.toString(16)+l);l.length%p!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(d===(d|0)&&d>=2&&d<=36){var m=v[d],A=E[d];l="";var _=this.clone();for(_.negative=0;!_.isZero();){var S=_.modn(A).toString(d);_=_.idivn(A),_.isZero()?l=S+l:l=b[m-S.length]+S+l}for(this.isZero()&&(l="0"+l);l.length%p!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var d=this.words[0];return this.length===2?d+=this.words[1]*67108864:this.length===3&&this.words[2]===1?d+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-d:d},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(d,p){return r(typeof s<"u"),this.toArrayLike(s,d,p)},i.prototype.toArray=function(d,p){return this.toArrayLike(Array,d,p)},i.prototype.toArrayLike=function(d,p,l){var y=this.byteLength(),g=l||Math.max(1,y);r(y<=g,"byte array longer than desired length"),r(g>0,"Requested array length <= 0"),this.strip();var w=p==="le",x=new d(g),f,m,A=this.clone();if(w){for(m=0;!A.isZero();m++)f=A.andln(255),A.iushrn(8),x[m]=f;for(;m=4096&&(l+=13,p>>>=13),p>=64&&(l+=7,p>>>=7),p>=8&&(l+=4,p>>>=4),p>=2&&(l+=2,p>>>=2),l+p},i.prototype._zeroBits=function(d){if(d===0)return 26;var p=d,l=0;return p&8191||(l+=13,p>>>=13),p&127||(l+=7,p>>>=7),p&15||(l+=4,p>>>=4),p&3||(l+=2,p>>>=2),p&1||l++,l},i.prototype.bitLength=function(){var d=this.words[this.length-1],p=this._countBits(d);return(this.length-1)*26+p};function C(u){for(var d=new Array(u.bitLength()),p=0;p>>y}return d}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var d=0,p=0;pd.length?this.clone().ior(d):d.clone().ior(this)},i.prototype.uor=function(d){return this.length>d.length?this.clone().iuor(d):d.clone().iuor(this)},i.prototype.iuand=function(d){var p;this.length>d.length?p=d:p=this;for(var l=0;ld.length?this.clone().iand(d):d.clone().iand(this)},i.prototype.uand=function(d){return this.length>d.length?this.clone().iuand(d):d.clone().iuand(this)},i.prototype.iuxor=function(d){var p,l;this.length>d.length?(p=this,l=d):(p=d,l=this);for(var y=0;yd.length?this.clone().ixor(d):d.clone().ixor(this)},i.prototype.uxor=function(d){return this.length>d.length?this.clone().iuxor(d):d.clone().iuxor(this)},i.prototype.inotn=function(d){r(typeof d=="number"&&d>=0);var p=Math.ceil(d/26)|0,l=d%26;this._expand(p),l>0&&p--;for(var y=0;y0&&(this.words[y]=~this.words[y]&67108863>>26-l),this.strip()},i.prototype.notn=function(d){return this.clone().inotn(d)},i.prototype.setn=function(d,p){r(typeof d=="number"&&d>=0);var l=d/26|0,y=d%26;return this._expand(l+1),p?this.words[l]=this.words[l]|1<d.length?(l=this,y=d):(l=d,y=this);for(var g=0,w=0;w>>26;for(;g!==0&&w>>26;if(this.length=l.length,g!==0)this.words[this.length]=g,this.length++;else if(l!==this)for(;wd.length?this.clone().iadd(d):d.clone().iadd(this)},i.prototype.isub=function(d){if(d.negative!==0){d.negative=0;var p=this.iadd(d);return d.negative=1,p._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(d),this.negative=1,this._normSign();var l=this.cmp(d);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var y,g;l>0?(y=this,g=d):(y=d,g=this);for(var w=0,x=0;x>26,this.words[x]=p&67108863;for(;w!==0&&x>26,this.words[x]=p&67108863;if(w===0&&x>>26,_=f&67108863,S=Math.min(m,d.length-1),$=Math.max(0,m-u.length+1);$<=S;$++){var V=m-$|0;y=u.words[V]|0,g=d.words[$]|0,w=y*g+_,A+=w/67108864|0,_=w&67108863}p.words[m]=_|0,f=A|0}return f!==0?p.words[m]=f|0:p.length--,p.strip()}var T=function(d,p,l){var y=d.words,g=p.words,w=l.words,x=0,f,m,A,_=y[0]|0,S=_&8191,$=_>>>13,V=y[1]|0,I=V&8191,W=V>>>13,z=y[2]|0,Z=z&8191,le=z>>>13,ue=y[3]|0,G=ue&8191,j=ue>>>13,ne=y[4]|0,se=ne&8191,Q=ne>>>13,R=y[5]|0,N=R&8191,K=R>>>13,ae=y[6]|0,he=ae&8191,q=ae>>>13,ee=y[7]|0,ie=ee&8191,me=ee>>>13,be=y[8]|0,pe=be&8191,Me=be>>>13,Te=y[9]|0,Ee=Te&8191,Qe=Te>>>13,Ne=g[0]|0,Oe=Ne&8191,at=Ne>>>13,qe=g[1]|0,$e=qe&8191,xt=qe>>>13,Xe=g[2]|0,He=Xe&8191,_t=Xe>>>13,oe=g[3]|0,fe=oe&8191,Ce=oe>>>13,Ae=g[4]|0,_e=Ae&8191,Je=Ae>>>13,Fe=g[5]|0,Se=Fe&8191,ze=Fe>>>13,Pe=g[6]|0,Ie=Pe&8191,Ye=Pe>>>13,Le=g[7]|0,De=Le&8191,st=Le>>>13,We=g[8]|0,Ue=We&8191,vt=We>>>13,Ke=g[9]|0,Re=Ke&8191,ht=Ke>>>13;l.negative=d.negative^p.negative,l.length=19,f=Math.imul(S,Oe),m=Math.imul(S,at),m=m+Math.imul($,Oe)|0,A=Math.imul($,at);var pt=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(pt>>>26)|0,pt&=67108863,f=Math.imul(I,Oe),m=Math.imul(I,at),m=m+Math.imul(W,Oe)|0,A=Math.imul(W,at),f=f+Math.imul(S,$e)|0,m=m+Math.imul(S,xt)|0,m=m+Math.imul($,$e)|0,A=A+Math.imul($,xt)|0;var yt=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(yt>>>26)|0,yt&=67108863,f=Math.imul(Z,Oe),m=Math.imul(Z,at),m=m+Math.imul(le,Oe)|0,A=Math.imul(le,at),f=f+Math.imul(I,$e)|0,m=m+Math.imul(I,xt)|0,m=m+Math.imul(W,$e)|0,A=A+Math.imul(W,xt)|0,f=f+Math.imul(S,He)|0,m=m+Math.imul(S,_t)|0,m=m+Math.imul($,He)|0,A=A+Math.imul($,_t)|0;var Kt=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,f=Math.imul(G,Oe),m=Math.imul(G,at),m=m+Math.imul(j,Oe)|0,A=Math.imul(j,at),f=f+Math.imul(Z,$e)|0,m=m+Math.imul(Z,xt)|0,m=m+Math.imul(le,$e)|0,A=A+Math.imul(le,xt)|0,f=f+Math.imul(I,He)|0,m=m+Math.imul(I,_t)|0,m=m+Math.imul(W,He)|0,A=A+Math.imul(W,_t)|0,f=f+Math.imul(S,fe)|0,m=m+Math.imul(S,Ce)|0,m=m+Math.imul($,fe)|0,A=A+Math.imul($,Ce)|0;var Ht=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,f=Math.imul(se,Oe),m=Math.imul(se,at),m=m+Math.imul(Q,Oe)|0,A=Math.imul(Q,at),f=f+Math.imul(G,$e)|0,m=m+Math.imul(G,xt)|0,m=m+Math.imul(j,$e)|0,A=A+Math.imul(j,xt)|0,f=f+Math.imul(Z,He)|0,m=m+Math.imul(Z,_t)|0,m=m+Math.imul(le,He)|0,A=A+Math.imul(le,_t)|0,f=f+Math.imul(I,fe)|0,m=m+Math.imul(I,Ce)|0,m=m+Math.imul(W,fe)|0,A=A+Math.imul(W,Ce)|0,f=f+Math.imul(S,_e)|0,m=m+Math.imul(S,Je)|0,m=m+Math.imul($,_e)|0,A=A+Math.imul($,Je)|0;var ot=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(ot>>>26)|0,ot&=67108863,f=Math.imul(N,Oe),m=Math.imul(N,at),m=m+Math.imul(K,Oe)|0,A=Math.imul(K,at),f=f+Math.imul(se,$e)|0,m=m+Math.imul(se,xt)|0,m=m+Math.imul(Q,$e)|0,A=A+Math.imul(Q,xt)|0,f=f+Math.imul(G,He)|0,m=m+Math.imul(G,_t)|0,m=m+Math.imul(j,He)|0,A=A+Math.imul(j,_t)|0,f=f+Math.imul(Z,fe)|0,m=m+Math.imul(Z,Ce)|0,m=m+Math.imul(le,fe)|0,A=A+Math.imul(le,Ce)|0,f=f+Math.imul(I,_e)|0,m=m+Math.imul(I,Je)|0,m=m+Math.imul(W,_e)|0,A=A+Math.imul(W,Je)|0,f=f+Math.imul(S,Se)|0,m=m+Math.imul(S,ze)|0,m=m+Math.imul($,Se)|0,A=A+Math.imul($,ze)|0;var Tt=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,f=Math.imul(he,Oe),m=Math.imul(he,at),m=m+Math.imul(q,Oe)|0,A=Math.imul(q,at),f=f+Math.imul(N,$e)|0,m=m+Math.imul(N,xt)|0,m=m+Math.imul(K,$e)|0,A=A+Math.imul(K,xt)|0,f=f+Math.imul(se,He)|0,m=m+Math.imul(se,_t)|0,m=m+Math.imul(Q,He)|0,A=A+Math.imul(Q,_t)|0,f=f+Math.imul(G,fe)|0,m=m+Math.imul(G,Ce)|0,m=m+Math.imul(j,fe)|0,A=A+Math.imul(j,Ce)|0,f=f+Math.imul(Z,_e)|0,m=m+Math.imul(Z,Je)|0,m=m+Math.imul(le,_e)|0,A=A+Math.imul(le,Je)|0,f=f+Math.imul(I,Se)|0,m=m+Math.imul(I,ze)|0,m=m+Math.imul(W,Se)|0,A=A+Math.imul(W,ze)|0,f=f+Math.imul(S,Ie)|0,m=m+Math.imul(S,Ye)|0,m=m+Math.imul($,Ie)|0,A=A+Math.imul($,Ye)|0;var mt=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(mt>>>26)|0,mt&=67108863,f=Math.imul(ie,Oe),m=Math.imul(ie,at),m=m+Math.imul(me,Oe)|0,A=Math.imul(me,at),f=f+Math.imul(he,$e)|0,m=m+Math.imul(he,xt)|0,m=m+Math.imul(q,$e)|0,A=A+Math.imul(q,xt)|0,f=f+Math.imul(N,He)|0,m=m+Math.imul(N,_t)|0,m=m+Math.imul(K,He)|0,A=A+Math.imul(K,_t)|0,f=f+Math.imul(se,fe)|0,m=m+Math.imul(se,Ce)|0,m=m+Math.imul(Q,fe)|0,A=A+Math.imul(Q,Ce)|0,f=f+Math.imul(G,_e)|0,m=m+Math.imul(G,Je)|0,m=m+Math.imul(j,_e)|0,A=A+Math.imul(j,Je)|0,f=f+Math.imul(Z,Se)|0,m=m+Math.imul(Z,ze)|0,m=m+Math.imul(le,Se)|0,A=A+Math.imul(le,ze)|0,f=f+Math.imul(I,Ie)|0,m=m+Math.imul(I,Ye)|0,m=m+Math.imul(W,Ie)|0,A=A+Math.imul(W,Ye)|0,f=f+Math.imul(S,De)|0,m=m+Math.imul(S,st)|0,m=m+Math.imul($,De)|0,A=A+Math.imul($,st)|0;var Pt=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,f=Math.imul(pe,Oe),m=Math.imul(pe,at),m=m+Math.imul(Me,Oe)|0,A=Math.imul(Me,at),f=f+Math.imul(ie,$e)|0,m=m+Math.imul(ie,xt)|0,m=m+Math.imul(me,$e)|0,A=A+Math.imul(me,xt)|0,f=f+Math.imul(he,He)|0,m=m+Math.imul(he,_t)|0,m=m+Math.imul(q,He)|0,A=A+Math.imul(q,_t)|0,f=f+Math.imul(N,fe)|0,m=m+Math.imul(N,Ce)|0,m=m+Math.imul(K,fe)|0,A=A+Math.imul(K,Ce)|0,f=f+Math.imul(se,_e)|0,m=m+Math.imul(se,Je)|0,m=m+Math.imul(Q,_e)|0,A=A+Math.imul(Q,Je)|0,f=f+Math.imul(G,Se)|0,m=m+Math.imul(G,ze)|0,m=m+Math.imul(j,Se)|0,A=A+Math.imul(j,ze)|0,f=f+Math.imul(Z,Ie)|0,m=m+Math.imul(Z,Ye)|0,m=m+Math.imul(le,Ie)|0,A=A+Math.imul(le,Ye)|0,f=f+Math.imul(I,De)|0,m=m+Math.imul(I,st)|0,m=m+Math.imul(W,De)|0,A=A+Math.imul(W,st)|0,f=f+Math.imul(S,Ue)|0,m=m+Math.imul(S,vt)|0,m=m+Math.imul($,Ue)|0,A=A+Math.imul($,vt)|0;var An=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(An>>>26)|0,An&=67108863,f=Math.imul(Ee,Oe),m=Math.imul(Ee,at),m=m+Math.imul(Qe,Oe)|0,A=Math.imul(Qe,at),f=f+Math.imul(pe,$e)|0,m=m+Math.imul(pe,xt)|0,m=m+Math.imul(Me,$e)|0,A=A+Math.imul(Me,xt)|0,f=f+Math.imul(ie,He)|0,m=m+Math.imul(ie,_t)|0,m=m+Math.imul(me,He)|0,A=A+Math.imul(me,_t)|0,f=f+Math.imul(he,fe)|0,m=m+Math.imul(he,Ce)|0,m=m+Math.imul(q,fe)|0,A=A+Math.imul(q,Ce)|0,f=f+Math.imul(N,_e)|0,m=m+Math.imul(N,Je)|0,m=m+Math.imul(K,_e)|0,A=A+Math.imul(K,Je)|0,f=f+Math.imul(se,Se)|0,m=m+Math.imul(se,ze)|0,m=m+Math.imul(Q,Se)|0,A=A+Math.imul(Q,ze)|0,f=f+Math.imul(G,Ie)|0,m=m+Math.imul(G,Ye)|0,m=m+Math.imul(j,Ie)|0,A=A+Math.imul(j,Ye)|0,f=f+Math.imul(Z,De)|0,m=m+Math.imul(Z,st)|0,m=m+Math.imul(le,De)|0,A=A+Math.imul(le,st)|0,f=f+Math.imul(I,Ue)|0,m=m+Math.imul(I,vt)|0,m=m+Math.imul(W,Ue)|0,A=A+Math.imul(W,vt)|0,f=f+Math.imul(S,Re)|0,m=m+Math.imul(S,ht)|0,m=m+Math.imul($,Re)|0,A=A+Math.imul($,ht)|0;var On=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(On>>>26)|0,On&=67108863,f=Math.imul(Ee,$e),m=Math.imul(Ee,xt),m=m+Math.imul(Qe,$e)|0,A=Math.imul(Qe,xt),f=f+Math.imul(pe,He)|0,m=m+Math.imul(pe,_t)|0,m=m+Math.imul(Me,He)|0,A=A+Math.imul(Me,_t)|0,f=f+Math.imul(ie,fe)|0,m=m+Math.imul(ie,Ce)|0,m=m+Math.imul(me,fe)|0,A=A+Math.imul(me,Ce)|0,f=f+Math.imul(he,_e)|0,m=m+Math.imul(he,Je)|0,m=m+Math.imul(q,_e)|0,A=A+Math.imul(q,Je)|0,f=f+Math.imul(N,Se)|0,m=m+Math.imul(N,ze)|0,m=m+Math.imul(K,Se)|0,A=A+Math.imul(K,ze)|0,f=f+Math.imul(se,Ie)|0,m=m+Math.imul(se,Ye)|0,m=m+Math.imul(Q,Ie)|0,A=A+Math.imul(Q,Ye)|0,f=f+Math.imul(G,De)|0,m=m+Math.imul(G,st)|0,m=m+Math.imul(j,De)|0,A=A+Math.imul(j,st)|0,f=f+Math.imul(Z,Ue)|0,m=m+Math.imul(Z,vt)|0,m=m+Math.imul(le,Ue)|0,A=A+Math.imul(le,vt)|0,f=f+Math.imul(I,Re)|0,m=m+Math.imul(I,ht)|0,m=m+Math.imul(W,Re)|0,A=A+Math.imul(W,ht)|0;var Zn=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,f=Math.imul(Ee,He),m=Math.imul(Ee,_t),m=m+Math.imul(Qe,He)|0,A=Math.imul(Qe,_t),f=f+Math.imul(pe,fe)|0,m=m+Math.imul(pe,Ce)|0,m=m+Math.imul(Me,fe)|0,A=A+Math.imul(Me,Ce)|0,f=f+Math.imul(ie,_e)|0,m=m+Math.imul(ie,Je)|0,m=m+Math.imul(me,_e)|0,A=A+Math.imul(me,Je)|0,f=f+Math.imul(he,Se)|0,m=m+Math.imul(he,ze)|0,m=m+Math.imul(q,Se)|0,A=A+Math.imul(q,ze)|0,f=f+Math.imul(N,Ie)|0,m=m+Math.imul(N,Ye)|0,m=m+Math.imul(K,Ie)|0,A=A+Math.imul(K,Ye)|0,f=f+Math.imul(se,De)|0,m=m+Math.imul(se,st)|0,m=m+Math.imul(Q,De)|0,A=A+Math.imul(Q,st)|0,f=f+Math.imul(G,Ue)|0,m=m+Math.imul(G,vt)|0,m=m+Math.imul(j,Ue)|0,A=A+Math.imul(j,vt)|0,f=f+Math.imul(Z,Re)|0,m=m+Math.imul(Z,ht)|0,m=m+Math.imul(le,Re)|0,A=A+Math.imul(le,ht)|0;var Qn=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,f=Math.imul(Ee,fe),m=Math.imul(Ee,Ce),m=m+Math.imul(Qe,fe)|0,A=Math.imul(Qe,Ce),f=f+Math.imul(pe,_e)|0,m=m+Math.imul(pe,Je)|0,m=m+Math.imul(Me,_e)|0,A=A+Math.imul(Me,Je)|0,f=f+Math.imul(ie,Se)|0,m=m+Math.imul(ie,ze)|0,m=m+Math.imul(me,Se)|0,A=A+Math.imul(me,ze)|0,f=f+Math.imul(he,Ie)|0,m=m+Math.imul(he,Ye)|0,m=m+Math.imul(q,Ie)|0,A=A+Math.imul(q,Ye)|0,f=f+Math.imul(N,De)|0,m=m+Math.imul(N,st)|0,m=m+Math.imul(K,De)|0,A=A+Math.imul(K,st)|0,f=f+Math.imul(se,Ue)|0,m=m+Math.imul(se,vt)|0,m=m+Math.imul(Q,Ue)|0,A=A+Math.imul(Q,vt)|0,f=f+Math.imul(G,Re)|0,m=m+Math.imul(G,ht)|0,m=m+Math.imul(j,Re)|0,A=A+Math.imul(j,ht)|0;var Jn=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,f=Math.imul(Ee,_e),m=Math.imul(Ee,Je),m=m+Math.imul(Qe,_e)|0,A=Math.imul(Qe,Je),f=f+Math.imul(pe,Se)|0,m=m+Math.imul(pe,ze)|0,m=m+Math.imul(Me,Se)|0,A=A+Math.imul(Me,ze)|0,f=f+Math.imul(ie,Ie)|0,m=m+Math.imul(ie,Ye)|0,m=m+Math.imul(me,Ie)|0,A=A+Math.imul(me,Ye)|0,f=f+Math.imul(he,De)|0,m=m+Math.imul(he,st)|0,m=m+Math.imul(q,De)|0,A=A+Math.imul(q,st)|0,f=f+Math.imul(N,Ue)|0,m=m+Math.imul(N,vt)|0,m=m+Math.imul(K,Ue)|0,A=A+Math.imul(K,vt)|0,f=f+Math.imul(se,Re)|0,m=m+Math.imul(se,ht)|0,m=m+Math.imul(Q,Re)|0,A=A+Math.imul(Q,ht)|0;var Xn=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,f=Math.imul(Ee,Se),m=Math.imul(Ee,ze),m=m+Math.imul(Qe,Se)|0,A=Math.imul(Qe,ze),f=f+Math.imul(pe,Ie)|0,m=m+Math.imul(pe,Ye)|0,m=m+Math.imul(Me,Ie)|0,A=A+Math.imul(Me,Ye)|0,f=f+Math.imul(ie,De)|0,m=m+Math.imul(ie,st)|0,m=m+Math.imul(me,De)|0,A=A+Math.imul(me,st)|0,f=f+Math.imul(he,Ue)|0,m=m+Math.imul(he,vt)|0,m=m+Math.imul(q,Ue)|0,A=A+Math.imul(q,vt)|0,f=f+Math.imul(N,Re)|0,m=m+Math.imul(N,ht)|0,m=m+Math.imul(K,Re)|0,A=A+Math.imul(K,ht)|0;var Yn=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,f=Math.imul(Ee,Ie),m=Math.imul(Ee,Ye),m=m+Math.imul(Qe,Ie)|0,A=Math.imul(Qe,Ye),f=f+Math.imul(pe,De)|0,m=m+Math.imul(pe,st)|0,m=m+Math.imul(Me,De)|0,A=A+Math.imul(Me,st)|0,f=f+Math.imul(ie,Ue)|0,m=m+Math.imul(ie,vt)|0,m=m+Math.imul(me,Ue)|0,A=A+Math.imul(me,vt)|0,f=f+Math.imul(he,Re)|0,m=m+Math.imul(he,ht)|0,m=m+Math.imul(q,Re)|0,A=A+Math.imul(q,ht)|0;var er=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(er>>>26)|0,er&=67108863,f=Math.imul(Ee,De),m=Math.imul(Ee,st),m=m+Math.imul(Qe,De)|0,A=Math.imul(Qe,st),f=f+Math.imul(pe,Ue)|0,m=m+Math.imul(pe,vt)|0,m=m+Math.imul(Me,Ue)|0,A=A+Math.imul(Me,vt)|0,f=f+Math.imul(ie,Re)|0,m=m+Math.imul(ie,ht)|0,m=m+Math.imul(me,Re)|0,A=A+Math.imul(me,ht)|0;var sa=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(sa>>>26)|0,sa&=67108863,f=Math.imul(Ee,Ue),m=Math.imul(Ee,vt),m=m+Math.imul(Qe,Ue)|0,A=Math.imul(Qe,vt),f=f+Math.imul(pe,Re)|0,m=m+Math.imul(pe,ht)|0,m=m+Math.imul(Me,Re)|0,A=A+Math.imul(Me,ht)|0;var oa=(x+f|0)+((m&8191)<<13)|0;x=(A+(m>>>13)|0)+(oa>>>26)|0,oa&=67108863,f=Math.imul(Ee,Re),m=Math.imul(Ee,ht),m=m+Math.imul(Qe,Re)|0,A=Math.imul(Qe,ht);var Du=(x+f|0)+((m&8191)<<13)|0;return x=(A+(m>>>13)|0)+(Du>>>26)|0,Du&=67108863,w[0]=pt,w[1]=yt,w[2]=Kt,w[3]=Ht,w[4]=ot,w[5]=Tt,w[6]=mt,w[7]=Pt,w[8]=An,w[9]=On,w[10]=Zn,w[11]=Qn,w[12]=Jn,w[13]=Xn,w[14]=Yn,w[15]=er,w[16]=sa,w[17]=oa,w[18]=Du,x!==0&&(w[19]=x,l.length++),l};Math.imul||(T=M);function P(u,d,p){p.negative=d.negative^u.negative,p.length=u.length+d.length;for(var l=0,y=0,g=0;g>>26)|0,y+=w>>>26,w&=67108863}p.words[g]=x,l=w,w=y}return l!==0?p.words[g]=l:p.length--,p.strip()}function D(u,d,p){var l=new F;return l.mulp(u,d,p)}i.prototype.mulTo=function(d,p){var l,y=this.length+d.length;return this.length===10&&d.length===10?l=T(this,d,p):y<63?l=M(this,d,p):y<1024?l=P(this,d,p):l=D(this,d,p),l};function F(u,d){this.x=u,this.y=d}F.prototype.makeRBT=function(d){for(var p=new Array(d),l=i.prototype._countBits(d)-1,y=0;y>=1;return y},F.prototype.permute=function(d,p,l,y,g,w){for(var x=0;x>>1)g++;return 1<>>13,l[2*w+1]=g&8191,g=g>>>13;for(w=2*p;w>=26,p+=y/67108864|0,p+=g>>>26,this.words[l]=g&67108863}return p!==0&&(this.words[l]=p,this.length++),this},i.prototype.muln=function(d){return this.clone().imuln(d)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(d){var p=C(d);if(p.length===0)return new i(1);for(var l=this,y=0;y=0);var p=d%26,l=(d-p)/26,y=67108863>>>26-p<<26-p,g;if(p!==0){var w=0;for(g=0;g>>26-p}w&&(this.words[g]=w,this.length++)}if(l!==0){for(g=this.length-1;g>=0;g--)this.words[g+l]=this.words[g];for(g=0;g=0);var y;p?y=(p-p%26)/26:y=0;var g=d%26,w=Math.min((d-g)/26,this.length),x=67108863^67108863>>>g<w)for(this.length-=w,m=0;m=0&&(A!==0||m>=y);m--){var _=this.words[m]|0;this.words[m]=A<<26-g|_>>>g,A=_&x}return f&&A!==0&&(f.words[f.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(d,p,l){return r(this.negative===0),this.iushrn(d,p,l)},i.prototype.shln=function(d){return this.clone().ishln(d)},i.prototype.ushln=function(d){return this.clone().iushln(d)},i.prototype.shrn=function(d){return this.clone().ishrn(d)},i.prototype.ushrn=function(d){return this.clone().iushrn(d)},i.prototype.testn=function(d){r(typeof d=="number"&&d>=0);var p=d%26,l=(d-p)/26,y=1<=0);var p=d%26,l=(d-p)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(p!==0&&l++,this.length=Math.min(l,this.length),p!==0){var y=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},i.prototype.isubn=function(d){if(r(typeof d=="number"),r(d<67108864),d<0)return this.iaddn(-d);if(this.negative!==0)return this.negative=0,this.iaddn(d),this.negative=1,this;if(this.words[0]-=d,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var p=0;p>26)-(f/67108864|0),this.words[g+l]=w&67108863}for(;g>26,this.words[g+l]=w&67108863;if(x===0)return this.strip();for(r(x===-1),x=0,g=0;g>26,this.words[g]=w&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(d,p){var l=this.length-d.length,y=this.clone(),g=d,w=g.words[g.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(g=g.ushln(l),y.iushln(l),w=g.words[g.length-1]|0);var f=y.length-g.length,m;if(p!=="mod"){m=new i(null),m.length=f+1,m.words=new Array(m.length);for(var A=0;A=0;S--){var $=(y.words[g.length+S]|0)*67108864+(y.words[g.length+S-1]|0);for($=Math.min($/w|0,67108863),y._ishlnsubmul(g,$,S);y.negative!==0;)$--,y.negative=0,y._ishlnsubmul(g,1,S),y.isZero()||(y.negative^=1);m&&(m.words[S]=$)}return m&&m.strip(),y.strip(),p!=="div"&&l!==0&&y.iushrn(l),{div:m||null,mod:y}},i.prototype.divmod=function(d,p,l){if(r(!d.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var y,g,w;return this.negative!==0&&d.negative===0?(w=this.neg().divmod(d,p),p!=="mod"&&(y=w.div.neg()),p!=="div"&&(g=w.mod.neg(),l&&g.negative!==0&&g.iadd(d)),{div:y,mod:g}):this.negative===0&&d.negative!==0?(w=this.divmod(d.neg(),p),p!=="mod"&&(y=w.div.neg()),{div:y,mod:w.mod}):this.negative&d.negative?(w=this.neg().divmod(d.neg(),p),p!=="div"&&(g=w.mod.neg(),l&&g.negative!==0&&g.isub(d)),{div:w.div,mod:g}):d.length>this.length||this.cmp(d)<0?{div:new i(0),mod:this}:d.length===1?p==="div"?{div:this.divn(d.words[0]),mod:null}:p==="mod"?{div:null,mod:new i(this.modn(d.words[0]))}:{div:this.divn(d.words[0]),mod:new i(this.modn(d.words[0]))}:this._wordDiv(d,p)},i.prototype.div=function(d){return this.divmod(d,"div",!1).div},i.prototype.mod=function(d){return this.divmod(d,"mod",!1).mod},i.prototype.umod=function(d){return this.divmod(d,"mod",!0).mod},i.prototype.divRound=function(d){var p=this.divmod(d);if(p.mod.isZero())return p.div;var l=p.div.negative!==0?p.mod.isub(d):p.mod,y=d.ushrn(1),g=d.andln(1),w=l.cmp(y);return w<0||g===1&&w===0?p.div:p.div.negative!==0?p.div.isubn(1):p.div.iaddn(1)},i.prototype.modn=function(d){r(d<=67108863);for(var p=(1<<26)%d,l=0,y=this.length-1;y>=0;y--)l=(p*l+(this.words[y]|0))%d;return l},i.prototype.idivn=function(d){r(d<=67108863);for(var p=0,l=this.length-1;l>=0;l--){var y=(this.words[l]|0)+p*67108864;this.words[l]=y/d|0,p=y%d}return this.strip()},i.prototype.divn=function(d){return this.clone().idivn(d)},i.prototype.egcd=function(d){r(d.negative===0),r(!d.isZero());var p=this,l=d.clone();p.negative!==0?p=p.umod(d):p=p.clone();for(var y=new i(1),g=new i(0),w=new i(0),x=new i(1),f=0;p.isEven()&&l.isEven();)p.iushrn(1),l.iushrn(1),++f;for(var m=l.clone(),A=p.clone();!p.isZero();){for(var _=0,S=1;!(p.words[0]&S)&&_<26;++_,S<<=1);if(_>0)for(p.iushrn(_);_-- >0;)(y.isOdd()||g.isOdd())&&(y.iadd(m),g.isub(A)),y.iushrn(1),g.iushrn(1);for(var $=0,V=1;!(l.words[0]&V)&&$<26;++$,V<<=1);if($>0)for(l.iushrn($);$-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(m),x.isub(A)),w.iushrn(1),x.iushrn(1);p.cmp(l)>=0?(p.isub(l),y.isub(w),g.isub(x)):(l.isub(p),w.isub(y),x.isub(g))}return{a:w,b:x,gcd:l.iushln(f)}},i.prototype._invmp=function(d){r(d.negative===0),r(!d.isZero());var p=this,l=d.clone();p.negative!==0?p=p.umod(d):p=p.clone();for(var y=new i(1),g=new i(0),w=l.clone();p.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,f=1;!(p.words[0]&f)&&x<26;++x,f<<=1);if(x>0)for(p.iushrn(x);x-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);for(var m=0,A=1;!(l.words[0]&A)&&m<26;++m,A<<=1);if(m>0)for(l.iushrn(m);m-- >0;)g.isOdd()&&g.iadd(w),g.iushrn(1);p.cmp(l)>=0?(p.isub(l),y.isub(g)):(l.isub(p),g.isub(y))}var _;return p.cmpn(1)===0?_=y:_=g,_.cmpn(0)<0&&_.iadd(d),_},i.prototype.gcd=function(d){if(this.isZero())return d.abs();if(d.isZero())return this.abs();var p=this.clone(),l=d.clone();p.negative=0,l.negative=0;for(var y=0;p.isEven()&&l.isEven();y++)p.iushrn(1),l.iushrn(1);do{for(;p.isEven();)p.iushrn(1);for(;l.isEven();)l.iushrn(1);var g=p.cmp(l);if(g<0){var w=p;p=l,l=w}else if(g===0||l.cmpn(1)===0)break;p.isub(l)}while(!0);return l.iushln(y)},i.prototype.invm=function(d){return this.egcd(d).a.umod(d)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(d){return this.words[0]&d},i.prototype.bincn=function(d){r(typeof d=="number");var p=d%26,l=(d-p)/26,y=1<>>26,x&=67108863,this.words[w]=x}return g!==0&&(this.words[w]=g,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(d){var p=d<0;if(this.negative!==0&&!p)return-1;if(this.negative===0&&p)return 1;this.strip();var l;if(this.length>1)l=1;else{p&&(d=-d),r(d<=67108863,"Number is too big");var y=this.words[0]|0;l=y===d?0:yd.length)return 1;if(this.length=0;l--){var y=this.words[l]|0,g=d.words[l]|0;if(y!==g){yg&&(p=1);break}}return p},i.prototype.gtn=function(d){return this.cmpn(d)===1},i.prototype.gt=function(d){return this.cmp(d)===1},i.prototype.gten=function(d){return this.cmpn(d)>=0},i.prototype.gte=function(d){return this.cmp(d)>=0},i.prototype.ltn=function(d){return this.cmpn(d)===-1},i.prototype.lt=function(d){return this.cmp(d)===-1},i.prototype.lten=function(d){return this.cmpn(d)<=0},i.prototype.lte=function(d){return this.cmp(d)<=0},i.prototype.eqn=function(d){return this.cmpn(d)===0},i.prototype.eq=function(d){return this.cmp(d)===0},i.red=function(d){return new X(d)},i.prototype.toRed=function(d){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),d.convertTo(this)._forceRed(d)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(d){return this.red=d,this},i.prototype.forceRed=function(d){return r(!this.red,"Already a number in reduction context"),this._forceRed(d)},i.prototype.redAdd=function(d){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,d)},i.prototype.redIAdd=function(d){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,d)},i.prototype.redSub=function(d){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,d)},i.prototype.redISub=function(d){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,d)},i.prototype.redShl=function(d){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,d)},i.prototype.redMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.mul(this,d)},i.prototype.redIMul=function(d){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,d),this.red.imul(this,d)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(d){return r(this.red&&!d.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,d)};var O={k256:null,p224:null,p192:null,p25519:null};function k(u,d){this.name=u,this.p=new i(d,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}k.prototype._tmp=function(){var d=new i(null);return d.words=new Array(Math.ceil(this.n/13)),d},k.prototype.ireduce=function(d){var p=d,l;do this.split(p,this.tmp),p=this.imulK(p),p=p.iadd(this.tmp),l=p.bitLength();while(l>this.n);var y=l0?p.isub(this.p):p.strip!==void 0?p.strip():p._strip(),p},k.prototype.split=function(d,p){d.iushrn(this.n,0,p)},k.prototype.imulK=function(d){return d.imul(this.k)};function U(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(U,k),U.prototype.split=function(d,p){for(var l=4194303,y=Math.min(d.length,9),g=0;g>>22,w=x}w>>>=22,d.words[g-10]=w,w===0&&d.length>10?d.length-=10:d.length-=9},U.prototype.imulK=function(d){d.words[d.length]=0,d.words[d.length+1]=0,d.length+=2;for(var p=0,l=0;l>>=26,d.words[l]=g,p=y}return p!==0&&(d.words[d.length++]=p),d},i._prime=function(d){if(O[d])return O[d];var p;if(d==="k256")p=new U;else if(d==="p224")p=new J;else if(d==="p192")p=new Y;else if(d==="p25519")p=new L;else throw new Error("Unknown prime "+d);return O[d]=p,p};function X(u){if(typeof u=="string"){var d=i._prime(u);this.m=d.p,this.prime=d}else r(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}X.prototype._verify1=function(d){r(d.negative===0,"red works only with positives"),r(d.red,"red works only with red numbers")},X.prototype._verify2=function(d,p){r((d.negative|p.negative)===0,"red works only with positives"),r(d.red&&d.red===p.red,"red works only with red numbers")},X.prototype.imod=function(d){return this.prime?this.prime.ireduce(d)._forceRed(this):d.umod(this.m)._forceRed(this)},X.prototype.neg=function(d){return d.isZero()?d.clone():this.m.sub(d)._forceRed(this)},X.prototype.add=function(d,p){this._verify2(d,p);var l=d.add(p);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},X.prototype.iadd=function(d,p){this._verify2(d,p);var l=d.iadd(p);return l.cmp(this.m)>=0&&l.isub(this.m),l},X.prototype.sub=function(d,p){this._verify2(d,p);var l=d.sub(p);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},X.prototype.isub=function(d,p){this._verify2(d,p);var l=d.isub(p);return l.cmpn(0)<0&&l.iadd(this.m),l},X.prototype.shl=function(d,p){return this._verify1(d),this.imod(d.ushln(p))},X.prototype.imul=function(d,p){return this._verify2(d,p),this.imod(d.imul(p))},X.prototype.mul=function(d,p){return this._verify2(d,p),this.imod(d.mul(p))},X.prototype.isqr=function(d){return this.imul(d,d.clone())},X.prototype.sqr=function(d){return this.mul(d,d)},X.prototype.sqrt=function(d){if(d.isZero())return d.clone();var p=this.m.andln(3);if(r(p%2===1),p===3){var l=this.m.add(new i(1)).iushrn(2);return this.pow(d,l)}for(var y=this.m.subn(1),g=0;!y.isZero()&&y.andln(1)===0;)g++,y.iushrn(1);r(!y.isZero());var w=new i(1).toRed(this),x=w.redNeg(),f=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new i(2*m*m).toRed(this);this.pow(m,f).cmp(x)!==0;)m.redIAdd(x);for(var A=this.pow(m,y),_=this.pow(d,y.addn(1).iushrn(1)),S=this.pow(d,y),$=g;S.cmp(w)!==0;){for(var V=S,I=0;V.cmp(w)!==0;I++)V=V.redSqr();r(I<$);var W=this.pow(A,new i(1).iushln($-I-1));_=_.redMul(W),A=W.redSqr(),S=S.redMul(A),$=I}return _},X.prototype.invm=function(d){var p=d._invmp(this.m);return p.negative!==0?(p.negative=0,this.imod(p).redNeg()):this.imod(p)},X.prototype.pow=function(d,p){if(p.isZero())return new i(1).toRed(this);if(p.cmpn(1)===0)return d.clone();var l=4,y=new Array(1<=0;g--){for(var A=p.words[g],_=m-1;_>=0;_--){var S=A>>_&1;if(w!==y[0]&&(w=this.sqr(w)),S===0&&x===0){f=0;continue}x<<=1,x|=S,f++,!(f!==l&&(g!==0||_!==0))&&(w=this.mul(w,y[x]),f=0,x=0)}m=26}return w},X.prototype.convertTo=function(d){var p=d.umod(this.m);return p===d?p.clone():p},X.prototype.convertFrom=function(d){var p=d.clone();return p.red=null,p},i.mont=function(d){return new B(d)};function B(u){X.call(this,u),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(B,X),B.prototype.convertTo=function(d){return this.imod(d.ushln(this.shift))},B.prototype.convertFrom=function(d){var p=this.imod(d.mul(this.rinv));return p.red=null,p},B.prototype.imul=function(d,p){if(d.isZero()||p.isZero())return d.words[0]=0,d.length=1,d;var l=d.imul(p),y=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=l.isub(y).iushrn(this.shift),w=g;return g.cmp(this.m)>=0?w=g.isub(this.m):g.cmpn(0)<0&&(w=g.iadd(this.m)),w._forceRed(this)},B.prototype.mul=function(d,p){if(d.isZero()||p.isZero())return new i(0)._forceRed(this);var l=d.mul(p),y=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),g=l.isub(y).iushrn(this.shift),w=g;return g.cmp(this.m)>=0?w=g.isub(this.m):g.cmpn(0)<0&&(w=g.iadd(this.m)),w._forceRed(this)},B.prototype.invm=function(d){var p=this.imod(d._invmp(this.m).mul(this.r2));return p._forceRed(this)}})(t,de)})($C);var Zc=$C.exports,wd=fz;function fz(t,e){if(!t)throw new Error(e||"Assertion failed")}fz.equal=function(e,n,r){if(e!=n)throw new Error(r||"Assertion failed: "+e+" != "+n)};var LC={};(function(t){var e=t;function n(i,s){if(Array.isArray(i))return i.slice();if(!i)return[];var o=[];if(typeof i!="string"){for(var c=0;c>8,v=h&255;b?o.push(b,v):o.push(v)}return o}e.toArray=n;function r(i){return i.length===1?"0"+i:i}e.zero2=r;function a(i){for(var s="",o=0;o(M>>1)-1?D=(M>>1)-F:D=F,T.isubn(D)):D=0,C[P]=D,T.iushrn(1)}return C}e.getNAF=i;function s(b,v){var E=[[],[]];b=b.clone(),v=v.clone();for(var C=0,M=0,T;b.cmpn(-C)>0||v.cmpn(-M)>0;){var P=b.andln(3)+C&3,D=v.andln(3)+M&3;P===3&&(P=-1),D===3&&(D=-1);var F;P&1?(T=b.andln(7)+C&7,(T===3||T===5)&&D===2?F=-P:F=P):F=0,E[0].push(F);var O;D&1?(T=v.andln(7)+M&7,(T===3||T===5)&&P===2?O=-D:O=D):O=0,E[1].push(O),2*C===F+1&&(C=1-C),2*M===O+1&&(M=1-M),b.iushrn(1),v.iushrn(1)}return E}e.getJSF=s;function o(b,v,E){var C="_"+v;b.prototype[v]=function(){return this[C]!==void 0?this[C]:this[C]=E.call(this)}}e.cachedProperty=o;function c(b){return typeof b=="string"?e.toArray(b,"hex"):b}e.parseBytes=c;function h(b){return new n(b,"hex","le")}e.intFromLE=h})(di);var UC={exports:{}},W5;UC.exports=function(e){return W5||(W5=new Vl(null)),W5.generate(e)};function Vl(t){this.rand=t}UC.exports.Rand=Vl;Vl.prototype.generate=function(e){return this._rand(e)};Vl.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var n=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var _8=Au;Au.prototype.point=function(){throw new Error("Not implemented")};Au.prototype.validate=function(){throw new Error("Not implemented")};Au.prototype._fixedNafMul=function(e,n){g6(e.precomputed);var r=e._getDoubles(),a=b6(n,1,this._bitLength),i=(1<=o;h--)c=(c<<1)+a[h];s.push(c)}for(var b=this.jpoint(null,null,null),v=this.jpoint(null,null,null),E=i;E>0;E--){for(o=0;o=0;c--){for(var h=0;c>=0&&s[c]===0;c--)h++;if(c>=0&&h++,o=o.dblp(h),c<0)break;var b=s[c];g6(b!==0),e.type==="affine"?b>0?o=o.mixedAdd(i[b-1>>1]):o=o.mixedAdd(i[-b-1>>1].neg()):b>0?o=o.add(i[b-1>>1]):o=o.add(i[-b-1>>1].neg())}return e.type==="affine"?o.toP():o};Au.prototype._wnafMulAdd=function(e,n,r,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,h=0,b,v,E;for(b=0;b=1;b-=2){var M=b-1,T=b;if(s[M]!==1||s[T]!==1){c[M]=b6(r[M],s[M],this._bitLength),c[T]=b6(r[T],s[T],this._bitLength),h=Math.max(c[M].length,h),h=Math.max(c[T].length,h);continue}var P=[n[M],null,null,n[T]];n[M].y.cmp(n[T].y)===0?(P[1]=n[M].add(n[T]),P[2]=n[M].toJ().mixedAdd(n[T].neg())):n[M].y.cmp(n[T].y.redNeg())===0?(P[1]=n[M].toJ().mixedAdd(n[T]),P[2]=n[M].add(n[T].neg())):(P[1]=n[M].toJ().mixedAdd(n[T]),P[2]=n[M].toJ().mixedAdd(n[T].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],F=Z0e(r[M],r[T]);for(h=Math.max(F[0].length,h),c[M]=new Array(h),c[T]=new Array(h),v=0;v=0;b--){for(var Y=0;b>=0;){var L=!0;for(v=0;v=0&&Y++,U=U.dblp(Y),b<0)break;for(v=0;v0?E=o[v][X-1>>1]:X<0&&(E=o[v][-X-1>>1].neg()),E.type==="affine"?U=U.mixedAdd(E):U=U.add(E))}}for(b=0;b=Math.ceil((e.bitLength()+1)/n.step):!1};Ji.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],a=this,i=0;i=0&&(C=h,M=b),v.negative&&(v=v.neg(),E=E.neg()),C.negative&&(C=C.neg(),M=M.neg()),[{a:v,b:E},{a:C,b:M}]};Xi.prototype._endoSplit=function(e){var n=this.endo.basis,r=n[0],a=n[1],i=a.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),c=s.mul(a.a),h=i.mul(r.b),b=s.mul(a.b),v=e.sub(o).sub(c),E=h.add(b).neg();return{k1:v,k2:E}};Xi.prototype.pointFromX=function(e,n){e=new Mn(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=r.redSqrt();if(a.redSqr().redSub(r).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(n&&!i||!n&&i)&&(a=a.redNeg()),this.point(e,a)};Xi.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,r=e.y,a=this.a.redMul(n),i=n.redSqr().redMul(n).redIAdd(a).redIAdd(this.b);return r.redSqr().redISub(i).cmpn(0)===0};Xi.prototype._endoWnafMulAdd=function(e,n,r){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Sr.prototype.isInfinity=function(){return this.inf};Sr.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 n=this.y.redSub(e.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var r=n.redSqr().redISub(this.x).redISub(e.x),a=n.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)};Sr.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 n=this.curve.a,r=this.x.redSqr(),a=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(n).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)};Sr.prototype.getX=function(){return this.x.fromRed()};Sr.prototype.getY=function(){return this.y.fromRed()};Sr.prototype.mul=function(e){return e=new Mn(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)};Sr.prototype.mulAdd=function(e,n,r){var a=[this,n],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Sr.prototype.jmulAdd=function(e,n,r){var a=[this,n],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Sr.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)};Sr.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,a=function(i){return i.neg()};n.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(a)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(a)}}}return n};Sr.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 Lr(t,e,n,r){Xp.BasePoint.call(this,t,"jacobian"),e===null&&n===null&&r===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Mn(0)):(this.x=new Mn(e,16),this.y=new Mn(n,16),this.z=new Mn(r,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}HC(Lr,Xp.BasePoint);Xi.prototype.jpoint=function(e,n,r){return new Lr(this,e,n,r)};Lr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),r=this.x.redMul(n),a=this.y.redMul(n).redMul(e);return this.curve.point(r,a)};Lr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Lr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),r=this.z.redSqr(),a=this.x.redMul(n),i=e.x.redMul(r),s=this.y.redMul(n.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),c=a.redSub(i),h=s.redSub(o);if(c.cmpn(0)===0)return h.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=c.redSqr(),v=b.redMul(c),E=a.redMul(b),C=h.redSqr().redIAdd(v).redISub(E).redISub(E),M=h.redMul(E.redISub(C)).redISub(s.redMul(v)),T=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(C,M,T)};Lr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),r=this.x,a=e.x.redMul(n),i=this.y,s=e.y.redMul(n).redMul(this.z),o=r.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 h=o.redSqr(),b=h.redMul(o),v=r.redMul(h),E=c.redSqr().redIAdd(b).redISub(v).redISub(v),C=c.redMul(v.redISub(E)).redISub(i.redMul(b)),M=this.z.redMul(o);return this.curve.jpoint(E,C,M)};Lr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var r=this;for(n=0;n=0)return!1;if(r.redIAdd(i),this.x.cmp(r)===0)return!0}};Lr.prototype.inspect=function(){return this.isInfinity()?"":""};Lr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var O0=Zc,hz=zn,A8=_8,Y0e=di;function Yp(t){A8.call(this,"mont",t),this.a=new O0(t.a,16).toRed(this.red),this.b=new O0(t.b,16).toRed(this.red),this.i4=new O0(4).toRed(this.red).redInvm(),this.two=new O0(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}hz(Yp,A8);var ehe=Yp;Yp.prototype.validate=function(e){var n=e.normalize().x,r=n.redSqr(),a=r.redMul(n).redAdd(r.redMul(this.a)).redAdd(n),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Ar(t,e,n){A8.BasePoint.call(this,t,"projective"),e===null&&n===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new O0(e,16),this.z=new O0(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}hz(Ar,A8.BasePoint);Yp.prototype.decodePoint=function(e,n){return this.point(Y0e.toArray(e,n),1)};Yp.prototype.point=function(e,n){return new Ar(this,e,n)};Yp.prototype.pointFromJSON=function(e){return Ar.fromJSON(this,e)};Ar.prototype.precompute=function(){};Ar.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Ar.fromJSON=function(e,n){return new Ar(e,n[0],n[1]||e.one)};Ar.prototype.inspect=function(){return this.isInfinity()?"":""};Ar.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Ar.prototype.dbl=function(){var e=this.x.redAdd(this.z),n=e.redSqr(),r=this.x.redSub(this.z),a=r.redSqr(),i=n.redSub(a),s=n.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};Ar.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.diffAdd=function(e,n){var r=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(r),c=i.redMul(a),h=n.z.redMul(o.redAdd(c).redSqr()),b=n.x.redMul(o.redISub(c).redSqr());return this.curve.point(h,b)};Ar.prototype.mul=function(e){for(var n=e.clone(),r=this,a=this.curve.point(null,null),i=this,s=[];n.cmpn(0)!==0;n.iushrn(1))s.push(n.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(r=r.diffAdd(a,i),a=a.dbl()):(a=r.diffAdd(a,i),r=r.dbl());return a};Ar.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Ar.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Ar.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Ar.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var the=di,xc=Zc,pz=zn,C8=_8,nhe=the.assert;function Po(t){this.twisted=(t.a|0)!==1,this.mOneA=this.twisted&&(t.a|0)===-1,this.extended=this.mOneA,C8.call(this,"edwards",t),this.a=new xc(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new xc(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new xc(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),nhe(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(t.c|0)===1}pz(Po,C8);var rhe=Po;Po.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Po.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Po.prototype.jpoint=function(e,n,r,a){return this.point(e,n,r,a)};Po.prototype.pointFromX=function(e,n){e=new xc(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),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(n&&!c||!n&&c)&&(o=o.redNeg()),this.point(e,o)};Po.prototype.pointFromY=function(e,n){e=new xc(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),a=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(n)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()!==n&&(o=o.redNeg()),this.point(o,e)};Po.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var n=e.x.redSqr(),r=e.y.redSqr(),a=n.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(n).redMul(r)));return a.cmp(i)===0};function ln(t,e,n,r,a){C8.BasePoint.call(this,t,"projective"),e===null&&n===null&&r===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 xc(e,16),this.y=new xc(n,16),this.z=r?new xc(r,16):this.curve.one,this.t=a&&new xc(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()))))}pz(ln,C8.BasePoint);Po.prototype.pointFromJSON=function(e){return ln.fromJSON(this,e)};Po.prototype.point=function(e,n,r,a){return new ln(this,e,n,r,a)};ln.fromJSON=function(e,n){return new ln(e,n[0],n[1],n[2])};ln.prototype.inspect=function(){return this.isInfinity()?"":""};ln.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ln.prototype._extDbl=function(){var e=this.x.redSqr(),n=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(n),s=a.redAdd(n),o=s.redSub(r),c=a.redSub(n),h=i.redMul(o),b=s.redMul(c),v=i.redMul(c),E=o.redMul(s);return this.curve.point(h,b,E,v)};ln.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),n=this.x.redSqr(),r=this.y.redSqr(),a,i,s,o,c,h;if(this.curve.twisted){o=this.curve._mulA(n);var b=o.redAdd(r);this.zOne?(a=e.redSub(n).redSub(r).redMul(b.redSub(this.curve.two)),i=b.redMul(o.redSub(r)),s=b.redSqr().redSub(b).redSub(b)):(c=this.z.redSqr(),h=b.redSub(c).redISub(c),a=e.redSub(n).redISub(r).redMul(h),i=b.redMul(o.redSub(r)),s=b.redMul(h))}else o=n.redAdd(r),c=this.curve._mulC(this.z).redSqr(),h=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(h),i=this.curve._mulC(o).redMul(n.redISub(r)),s=o.redMul(h);return this.curve.point(a,i,s)};ln.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ln.prototype._extAdd=function(e){var n=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=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=r.redSub(n),o=i.redSub(a),c=i.redAdd(a),h=r.redAdd(n),b=s.redMul(o),v=c.redMul(h),E=s.redMul(h),C=o.redMul(c);return this.curve.point(b,v,C,E)};ln.prototype._projAdd=function(e){var n=this.z.redMul(e.z),r=n.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=r.redSub(s),c=r.redAdd(s),h=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),b=n.redMul(o).redMul(h),v,E;return this.curve.twisted?(v=n.redMul(c).redMul(i.redSub(this.curve._mulA(a))),E=o.redMul(c)):(v=n.redMul(c).redMul(i.redSub(a)),E=this.curve._mulC(o).redMul(c)),this.curve.point(b,v,E)};ln.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ln.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ln.prototype.mulAdd=function(e,n,r){return this.curve._wnafMulAdd(1,[this,n],[e,r],2,!1)};ln.prototype.jmulAdd=function(e,n,r){return this.curve._wnafMulAdd(1,[this,n],[e,r],2,!0)};ln.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};ln.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ln.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ln.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ln.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ln.prototype.eqXToP=function(e){var n=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(n)===0)return!0;for(var r=e.clone(),a=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(a),this.x.cmp(n)===0)return!0}};ln.prototype.toP=ln.prototype.normalize;ln.prototype.mixedAdd=ln.prototype.add;(function(t){var e=t;e.base=_8,e.short=X0e,e.mont=ehe,e.edwards=rhe})(jC);var S8={},T8={},Ft={},ahe=wd,ihe=zn;Ft.inherits=ihe;function she(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function ohe(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),a=0;a>6|192,n[r++]=i&63|128):she(t,a)?(i=65536+((i&1023)<<10)+(t.charCodeAt(++a)&1023),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=i&63|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=i&63|128)}else for(a=0;a>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}Ft.htonl=yz;function lhe(t,e){for(var n="",r=0;r>>0}return i}Ft.join32=uhe;function fhe(t,e){for(var n=new Array(t.length*4),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=i&255):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=i&255)}return n}Ft.split32=fhe;function dhe(t,e){return t>>>e|t<<32-e}Ft.rotr32=dhe;function hhe(t,e){return t<>>32-e}Ft.rotl32=hhe;function phe(t,e){return t+e>>>0}Ft.sum32=phe;function yhe(t,e,n){return t+e+n>>>0}Ft.sum32_3=yhe;function mhe(t,e,n,r){return t+e+n+r>>>0}Ft.sum32_4=mhe;function bhe(t,e,n,r,a){return t+e+n+r+a>>>0}Ft.sum32_5=bhe;function ghe(t,e,n,r){var a=t[e],i=t[e+1],s=r+i>>>0,o=(s>>0,t[e+1]=s}Ft.sum64=ghe;function xhe(t,e,n,r){var a=e+r>>>0,i=(a>>0}Ft.sum64_hi=xhe;function vhe(t,e,n,r){var a=e+r;return a>>>0}Ft.sum64_lo=vhe;function whe(t,e,n,r,a,i,s,o){var c=0,h=e;h=h+r>>>0,c+=h>>0,c+=h>>0,c+=h>>0}Ft.sum64_4_hi=whe;function Ehe(t,e,n,r,a,i,s,o){var c=e+r+i+o;return c>>>0}Ft.sum64_4_lo=Ehe;function _he(t,e,n,r,a,i,s,o,c,h){var b=0,v=e;v=v+r>>>0,b+=v>>0,b+=v>>0,b+=v>>0,b+=v>>0}Ft.sum64_5_hi=_he;function Ahe(t,e,n,r,a,i,s,o,c,h){var b=e+r+i+o+h;return b>>>0}Ft.sum64_5_lo=Ahe;function Che(t,e,n){var r=e<<32-n|t>>>n;return r>>>0}Ft.rotr64_hi=Che;function She(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}Ft.rotr64_lo=She;function The(t,e,n){return t>>>n}Ft.shr64_hi=The;function Bhe(t,e,n){var r=t<<32-n|e>>>n;return r>>>0}Ft.shr64_lo=Bhe;var e1={},hk=Ft,Mhe=wd;function B8(){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}e1.BlockHash=B8;B8.prototype.update=function(e,n){if(e=hk.toArray(e,n),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=hk.join32(e,0,e.length-r,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>>3}Ro.g0_256=Ohe;function Phe(t){return wo(t,17)^wo(t,19)^t>>>10}Ro.g1_256=Phe;var _p=Ft,Rhe=e1,Nhe=Ro,K5=_p.rotl32,N1=_p.sum32,$he=_p.sum32_5,Lhe=Nhe.ft_1,wz=Rhe.BlockHash,Uhe=[1518500249,1859775393,2400959708,3395469782];function Bo(){if(!(this instanceof Bo))return new Bo;wz.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}_p.inherits(Bo,wz);var jhe=Bo;Bo.blockSize=512;Bo.outSize=160;Bo.hmacStrength=80;Bo.padLength=64;Bo.prototype._update=function(e,n){for(var r=this.W,a=0;a<16;a++)r[a]=e[n+a];for(;athis.blockSize&&(e=new this.Hash().update(e).digest()),Bpe(e.length<=this.blockSize);for(var n=e.length;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var kpe=yu;yu.prototype._init=function(e,n,r){var a=e.concat(n).concat(r);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(r||[])),this._reseed=1};yu.prototype.generate=function(e,n,r,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(a=r,r=n,n=null),r&&(r=Lf.toArray(r,a||"hex"),this._update(r));for(var i=[];i.length"};var x6=Zc,zC=di,Rpe=zC.assert;function M8(t,e){if(t instanceof M8)return t;this._importDER(t,e)||(Rpe(t.r&&t.s,"Signature without r or s"),this.r=new x6(t.r,16),this.s=new x6(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Npe=M8;function $pe(){this.place=0}function X5(t,e){var n=t[e.place++];if(!(n&128))return n;var r=n&15;if(r===0||r>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function gk(t){for(var e=0,n=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(n|128);--n;)t.push(e>>>(n<<3)&255);t.push(e)}M8.prototype.toDER=function(e){var n=this.r.toArray(),r=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),r[0]&128&&(r=[0].concat(r)),n=gk(n),r=gk(r);!r[0]&&!(r[1]&128);)r=r.slice(1);var a=[2];Y5(a,n.length),a=a.concat(n),a.push(2),Y5(a,r.length);var i=a.concat(r),s=[48];return Y5(s,i.length),s=s.concat(i),zC.encode(s,e)};var Uf=Zc,Iz=kpe,Lpe=di,e9=S8,Upe=dz,Oz=Lpe.assert,GC=Ppe,F8=Npe;function Zi(t){if(!(this instanceof Zi))return new Zi(t);typeof t=="string"&&(Oz(Object.prototype.hasOwnProperty.call(e9,t),"Unknown curve "+t),t=e9[t]),t instanceof e9.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var jpe=Zi;Zi.prototype.keyPair=function(e){return new GC(this,e)};Zi.prototype.keyFromPrivate=function(e,n){return GC.fromPrivate(this,e,n)};Zi.prototype.keyFromPublic=function(e,n){return GC.fromPublic(this,e,n)};Zi.prototype.genKeyPair=function(e){e||(e={});for(var n=new Iz({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Upe(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),a=this.n.sub(new Uf(2));;){var i=new Uf(n.generate(r));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Zi.prototype._truncateToN=function(e,n){var r=e.byteLength()*8-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e};Zi.prototype.sign=function(e,n,r,a){typeof r=="object"&&(a=r,r=null),a||(a={}),n=this.keyFromPrivate(n,r),e=this._truncateToN(new Uf(e,16));for(var i=this.n.byteLength(),s=n.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new Iz({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),h=this.n.sub(new Uf(1)),b=0;;b++){var v=a.k?a.k(b):new Uf(c.generate(this.n.byteLength()));if(v=this._truncateToN(v,!0),!(v.cmpn(1)<=0||v.cmp(h)>=0)){var E=this.g.mul(v);if(!E.isInfinity()){var C=E.getX(),M=C.umod(this.n);if(M.cmpn(0)!==0){var T=v.invm(this.n).mul(M.mul(n.getPrivate()).iadd(e));if(T=T.umod(this.n),T.cmpn(0)!==0){var P=(E.getY().isOdd()?1:0)|(C.cmp(M)!==0?2:0);return a.canonical&&T.cmp(this.nh)>0&&(T=this.n.sub(T),P^=1),new F8({r:M,s:T,recoveryParam:P})}}}}}};Zi.prototype.verify=function(e,n,r,a){e=this._truncateToN(new Uf(e,16)),r=this.keyFromPublic(r,a),n=new F8(n,"hex");var i=n.r,s=n.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),h=o.mul(i).umod(this.n),b;return this.curve._maxwellTrick?(b=this.g.jmulAdd(c,r.getPublic(),h),b.isInfinity()?!1:b.eqXToP(i)):(b=this.g.mulAdd(c,r.getPublic(),h),b.isInfinity()?!1:b.getX().umod(this.n).cmp(i)===0)};Zi.prototype.recoverPubKey=function(t,e,n,r){Oz((3&n)===n,"The recovery param is more than two bits"),e=new F8(e,r);var a=this.n,i=new Uf(t),s=e.r,o=e.s,c=n&1,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");h?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var b=e.r.invm(a),v=a.sub(i).mul(b).umod(a),E=o.mul(b).umod(a);return this.g.mulAdd(v,s,E)};Zi.prototype.getKeyRecoveryParam=function(t,e,n,r){if(e=new F8(e,r),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(t,e,a)}catch{continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var qb=di,Pz=qb.assert,xk=qb.parseBytes,r1=qb.cachedProperty;function _r(t,e){this.eddsa=t,this._secret=xk(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=xk(e.pub)}_r.fromPublic=function(e,n){return n instanceof _r?n:new _r(e,{pub:n})};_r.fromSecret=function(e,n){return n instanceof _r?n:new _r(e,{secret:n})};_r.prototype.secret=function(){return this._secret};r1(_r,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});r1(_r,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});r1(_r,"privBytes",function(){var e=this.eddsa,n=this.hash(),r=e.encodingLength-1,a=n.slice(0,e.encodingLength);return a[0]&=248,a[r]&=127,a[r]|=64,a});r1(_r,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});r1(_r,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});r1(_r,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});_r.prototype.sign=function(e){return Pz(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};_r.prototype.verify=function(e,n){return this.eddsa.verify(e,n,this)};_r.prototype.getSecret=function(e){return Pz(this._secret,"KeyPair is public only"),qb.encode(this.secret(),e)};_r.prototype.getPublic=function(e){return qb.encode(this.pubBytes(),e)};var Hpe=_r,zpe=Zc,D8=di,Gpe=D8.assert,k8=D8.cachedProperty,Vpe=D8.parseBytes;function Ed(t,e){this.eddsa=t,typeof e!="object"&&(e=Vpe(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),Gpe(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof zpe&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}k8(Ed,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});k8(Ed,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});k8(Ed,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});k8(Ed,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Ed.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Ed.prototype.toHex=function(){return D8.encode(this.toBytes(),"hex").toUpperCase()};var qpe=Ed,Wpe=T8,Kpe=S8,Sp=di,Zpe=Sp.assert,Rz=Sp.parseBytes,Nz=Hpe,vk=qpe;function $a(t){if(Zpe(t==="ed25519","only tested with ed25519 so far"),!(this instanceof $a))return new $a(t);t=Kpe[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=Wpe.sha512}var Qpe=$a;$a.prototype.sign=function(e,n){e=Rz(e);var r=this.keyFromSecret(n),a=this.hashInt(r.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,r.pubBytes(),e).mul(r.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};$a.prototype.verify=function(e,n,r){e=Rz(e),n=this.makeSignature(n);var a=this.keyFromPublic(r),i=this.hashInt(n.Rencoded(),a.pubBytes(),e),s=this.g.mul(n.S()),o=n.R().add(a.pub().mul(i));return o.eq(s)};$a.prototype.hashInt=function(){for(var e=this.hash(),n=0;n=0)return null;n=n.toRed(Dt.red);let r=n.redSqr().redIMul(n).redIAdd(Dt.b).redSqrt();return t===3!==r.isOdd()&&(r=r.redNeg()),Xs.keyPair({pub:{x:n,y:r}})}function Ype(t,e,n){let r=new en(e),a=new en(n);if(r.cmp(Dt.p)>=0||a.cmp(Dt.p)>=0||(r=r.toRed(Dt.red),a=a.toRed(Dt.red),(t===6||t===7)&&a.isOdd()!==(t===7)))return null;const i=r.redSqr().redIMul(r);return a.redSqr().redISub(i.redIAdd(Dt.b)).isZero()?Xs.keyPair({pub:{x:r,y:a}}):null}function al(t){const e=t[0];switch(e){case 2:case 3:return t.length!==33?null:Xpe(e,t.subarray(1,33));case 4:case 6:case 7:return t.length!==65?null:Ype(e,t.subarray(1,33),t.subarray(33,65));default:return null}}function Ru(t,e){const n=e.encode(null,t.length===33);for(let r=0;r=0||(n.iadd(new en(t)),n.cmp(Dt.n)>=0&&n.isub(Dt.n),n.isZero()))return 1;const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},privateKeyTweakMul(t,e){let n=new en(e);if(n.cmp(Dt.n)>=0||n.isZero())return 1;n.imul(new en(t)),n.cmp(Dt.n)>=0&&(n=n.umod(Dt.n));const r=n.toArrayLike(Uint8Array,"be",32);return t.set(r),0},publicKeyVerify(t){return al(t)===null?1:0},publicKeyCreate(t,e){const n=new en(e);if(n.cmp(Dt.n)>=0||n.isZero())return 1;const r=Xs.keyFromPrivate(e).getPublic();return Ru(t,r),0},publicKeyConvert(t,e){const n=al(e);if(n===null)return 1;const r=n.getPublic();return Ru(t,r),0},publicKeyNegate(t,e){const n=al(e);if(n===null)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),Ru(t,r),0},publicKeyCombine(t,e){const n=new Array(e.length);for(let a=0;a=0)return 2;const a=r.getPublic().add(Dt.g.mul(n));return a.isInfinity()?2:(Ru(t,a),0)},publicKeyTweakMul(t,e,n){const r=al(e);if(r===null)return 1;if(n=new en(n),n.cmp(Dt.n)>=0||n.isZero())return 2;const a=r.getPublic().mul(n);return Ru(t,a),0},signatureNormalize(t){const e=new en(t.subarray(0,32)),n=new en(t.subarray(32,64));return e.cmp(Dt.n)>=0||n.cmp(Dt.n)>=0?1:(n.cmp(Xs.nh)===1&&t.set(Dt.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(t,e){const n=e.subarray(0,32),r=e.subarray(32,64);if(new en(n).cmp(Dt.n)>=0||new en(r).cmp(Dt.n)>=0)return 1;const{output:a}=t;let i=a.subarray(4,37);i[0]=0,i.set(n,1);let s=33,o=0;for(;s>1&&i[o]===0&&!(i[o+1]&128);--s,++o);if(i=i.subarray(o),i[0]&128||s>1&&i[0]===0&&!(i[1]&128))return 1;let c=a.subarray(39,72);c[0]=0,c.set(r,1);let h=33,b=0;for(;h>1&&c[b]===0&&!(c[b+1]&128);--h,++b);return c=c.subarray(b),c[0]&128||h>1&&c[0]===0&&!(c[1]&128)?1:(t.outputlen=6+s+h,a[0]=48,a[1]=t.outputlen-2,a[2]=2,a[3]=i.length,a.set(i,4),a[4+s]=2,a[5+s]=c.length,a.set(c,6+s),0)},signatureImport(t,e){if(e.length<8||e.length>72||e[0]!==48||e[1]!==e.length-2||e[2]!==2)return 1;const n=e[3];if(n===0||5+n>=e.length||e[4+n]!==2)return 1;const r=e[5+n];if(r===0||6+n+r!==e.length||e[4]&128||n>1&&e[4]===0&&!(e[5]&128)||e[n+6]&128||r>1&&e[n+6]===0&&!(e[n+7]&128))return 1;let a=e.subarray(4,4+n);if(a.length===33&&a[0]===0&&(a=a.subarray(1)),a.length>32)return 1;let i=e.subarray(6+n);if(i.length===33&&i[0]===0&&(i=i.slice(1)),i.length>32)throw new Error("S length is too long");let s=new en(a);s.cmp(Dt.n)>=0&&(s=new en(0));let o=new en(e.subarray(6+n));return o.cmp(Dt.n)>=0&&(o=new en(0)),t.set(s.toArrayLike(Uint8Array,"be",32),0),t.set(o.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(t,e,n,r,a){if(a){const o=a;a=c=>{const h=o(e,n,null,r,c);if(!(h instanceof Uint8Array&&h.length===32))throw new Error("This is the way");return new en(h)}}const i=new en(n);if(i.cmp(Dt.n)>=0||i.isZero())return 1;let s;try{s=Xs.sign(e,n,{canonical:!0,k:a,pers:r})}catch{return 1}return t.signature.set(s.r.toArrayLike(Uint8Array,"be",32),0),t.signature.set(s.s.toArrayLike(Uint8Array,"be",32),32),t.recid=s.recoveryParam,0},ecdsaVerify(t,e,n){const r={r:t.subarray(0,32),s:t.subarray(32,64)},a=new en(r.r),i=new en(r.s);if(a.cmp(Dt.n)>=0||i.cmp(Dt.n)>=0)return 1;if(i.cmp(Xs.nh)===1||a.isZero()||i.isZero())return 3;const s=al(n);if(s===null)return 2;const o=s.getPublic();return Xs.verify(e,r,o)?0:3},ecdsaRecover(t,e,n,r){const a={r:e.slice(0,32),s:e.slice(32,64)},i=new en(a.r),s=new en(a.s);if(i.cmp(Dt.n)>=0||s.cmp(Dt.n)>=0)return 1;if(i.isZero()||s.isZero())return 2;let o;try{o=Xs.recoverPubKey(r,a,n)}catch{return 2}return Ru(t,o),0},ecdh(t,e,n,r,a,i,s){const o=al(e);if(o===null)return 1;const c=new en(n);if(c.cmp(Dt.n)>=0||c.isZero())return 2;const h=o.getPublic().mul(c);if(a===void 0){const b=h.encode(null,!0),v=Xs.hash().update(b).digest();for(let E=0;E<32;++E)t[E]=v[E]}else{i||(i=new Uint8Array(32));const b=h.getX().toArray("be",32);for(let M=0;M<32;++M)i[M]=b[M];s||(s=new Uint8Array(32));const v=h.getY().toArray("be",32);for(let M=0;M<32;++M)s[M]=v[M];const E=a(i,s,r);if(!(E instanceof Uint8Array&&E.length===t.length))return 2;t.set(E)}return 0}};const $t={IMPOSSIBLE_CASE:"Impossible case. Please create issue.",TWEAK_ADD:"The tweak was out of range or the resulted private key is invalid",TWEAK_MUL:"The tweak was out of range or equal to zero",CONTEXT_RANDOMIZE_UNKNOW:"Unknow error on context randomization",SECKEY_INVALID:"Private Key is invalid",PUBKEY_PARSE:"Public Key could not be parsed",PUBKEY_SERIALIZE:"Public Key serialization error",PUBKEY_COMBINE:"The sum of the public keys is not valid",SIG_PARSE:"Signature could not be parsed",SIGN:"The nonce generation function failed, or the private key was invalid",RECOVER:"Public key could not be recover",ECDH:"Scalar was invalid (zero or overflow)"};function Fi(t,e){if(!t)throw new Error(e)}function kt(t,e,n){if(Fi(e instanceof Uint8Array,`Expected ${t} to be an Uint8Array`),n!==void 0)if(Array.isArray(n)){const r=n.join(", "),a=`Expected ${t} to be an Uint8Array with length [${r}]`;Fi(n.includes(e.length),a)}else{const r=`Expected ${t} to be an Uint8Array with length ${n}`;Fi(e.length===n,r)}}function Nu(t){Fi(u0(t)==="Boolean","Expected compressed to be a Boolean")}function as(t=n=>new Uint8Array(n),e){return typeof t=="function"&&(t=t(e)),kt("output",t,e),t}function u0(t){return Object.prototype.toString.call(t).slice(8,-1)}var t1e=t=>({contextRandomize(e){switch(Fi(e===null||e instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),e!==null&&kt("seed",e,32),t.contextRandomize(e)){case 1:throw new Error($t.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(e){return kt("private key",e,32),t.privateKeyVerify(e)===0},privateKeyNegate(e){switch(kt("private key",e,32),t.privateKeyNegate(e)){case 0:return e;case 1:throw new Error($t.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(e,n){switch(kt("private key",e,32),kt("tweak",n,32),t.privateKeyTweakAdd(e,n)){case 0:return e;case 1:throw new Error($t.TWEAK_ADD)}},privateKeyTweakMul(e,n){switch(kt("private key",e,32),kt("tweak",n,32),t.privateKeyTweakMul(e,n)){case 0:return e;case 1:throw new Error($t.TWEAK_MUL)}},publicKeyVerify(e){return kt("public key",e,[33,65]),t.publicKeyVerify(e)===0},publicKeyCreate(e,n=!0,r){switch(kt("private key",e,32),Nu(n),r=as(r,n?33:65),t.publicKeyCreate(r,e)){case 0:return r;case 1:throw new Error($t.SECKEY_INVALID);case 2:throw new Error($t.PUBKEY_SERIALIZE)}},publicKeyConvert(e,n=!0,r){switch(kt("public key",e,[33,65]),Nu(n),r=as(r,n?33:65),t.publicKeyConvert(r,e)){case 0:return r;case 1:throw new Error($t.PUBKEY_PARSE);case 2:throw new Error($t.PUBKEY_SERIALIZE)}},publicKeyNegate(e,n=!0,r){switch(kt("public key",e,[33,65]),Nu(n),r=as(r,n?33:65),t.publicKeyNegate(r,e)){case 0:return r;case 1:throw new Error($t.PUBKEY_PARSE);case 2:throw new Error($t.IMPOSSIBLE_CASE);case 3:throw new Error($t.PUBKEY_SERIALIZE)}},publicKeyCombine(e,n=!0,r){Fi(Array.isArray(e),"Expected public keys to be an Array"),Fi(e.length>0,"Expected public keys array will have more than zero items");for(const a of e)kt("public key",a,[33,65]);switch(Nu(n),r=as(r,n?33:65),t.publicKeyCombine(r,e)){case 0:return r;case 1:throw new Error($t.PUBKEY_PARSE);case 2:throw new Error($t.PUBKEY_COMBINE);case 3:throw new Error($t.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(e,n,r=!0,a){switch(kt("public key",e,[33,65]),kt("tweak",n,32),Nu(r),a=as(a,r?33:65),t.publicKeyTweakAdd(a,e,n)){case 0:return a;case 1:throw new Error($t.PUBKEY_PARSE);case 2:throw new Error($t.TWEAK_ADD)}},publicKeyTweakMul(e,n,r=!0,a){switch(kt("public key",e,[33,65]),kt("tweak",n,32),Nu(r),a=as(a,r?33:65),t.publicKeyTweakMul(a,e,n)){case 0:return a;case 1:throw new Error($t.PUBKEY_PARSE);case 2:throw new Error($t.TWEAK_MUL)}},signatureNormalize(e){switch(kt("signature",e,64),t.signatureNormalize(e)){case 0:return e;case 1:throw new Error($t.SIG_PARSE)}},signatureExport(e,n){kt("signature",e,64),n=as(n,72);const r={output:n,outputlen:72};switch(t.signatureExport(r,e)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error($t.SIG_PARSE);case 2:throw new Error($t.IMPOSSIBLE_CASE)}},signatureImport(e,n){switch(kt("signature",e),n=as(n,64),t.signatureImport(n,e)){case 0:return n;case 1:throw new Error($t.SIG_PARSE);case 2:throw new Error($t.IMPOSSIBLE_CASE)}},ecdsaSign(e,n,r={},a){kt("message",e,32),kt("private key",n,32),Fi(u0(r)==="Object","Expected options to be an Object"),r.data!==void 0&&kt("options.data",r.data),r.noncefn!==void 0&&Fi(u0(r.noncefn)==="Function","Expected options.noncefn to be a Function"),a=as(a,64);const i={signature:a,recid:null};switch(t.ecdsaSign(i,e,n,r.data,r.noncefn)){case 0:return i;case 1:throw new Error($t.SIGN);case 2:throw new Error($t.IMPOSSIBLE_CASE)}},ecdsaVerify(e,n,r){switch(kt("signature",e,64),kt("message",n,32),kt("public key",r,[33,65]),t.ecdsaVerify(e,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error($t.SIG_PARSE);case 2:throw new Error($t.PUBKEY_PARSE)}},ecdsaRecover(e,n,r,a=!0,i){switch(kt("signature",e,64),Fi(u0(n)==="Number"&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),kt("message",r,32),Nu(a),i=as(i,a?33:65),t.ecdsaRecover(i,e,n,r)){case 0:return i;case 1:throw new Error($t.SIG_PARSE);case 2:throw new Error($t.RECOVER);case 3:throw new Error($t.IMPOSSIBLE_CASE)}},ecdh(e,n,r={},a){switch(kt("public key",e,[33,65]),kt("private key",n,32),Fi(u0(r)==="Object","Expected options to be an Object"),r.data!==void 0&&kt("options.data",r.data),r.hashfn!==void 0?(Fi(u0(r.hashfn)==="Function","Expected options.hashfn to be a Function"),r.xbuf!==void 0&&kt("options.xbuf",r.xbuf,32),r.ybuf!==void 0&&kt("options.ybuf",r.ybuf,32),kt("output",a)):a=as(a,32),t.ecdh(a,e,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return a;case 1:throw new Error($t.PUBKEY_PARSE);case 2:throw new Error($t.ECDH)}}}),wk=t1e(e1e),I8={},Gw={exports:{}},Vw={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(t,e){var n=Kc,r=n.Buffer;function a(s,o){for(var c in s)o[c]=s[c]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=i);function i(s,o,c){return r(s,o,c)}i.prototype=Object.create(r.prototype),a(r,i),i.from=function(s,o,c){if(typeof s=="number")throw new TypeError("Argument must not be a number");return r(s,o,c)},i.alloc=function(s,o,c){if(typeof s!="number")throw new TypeError("Argument must be a number");var h=r(s);return o!==void 0?typeof c=="string"?h.fill(o,c):h.fill(o):h.fill(0),h},i.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r(s)},i.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(s)}})(Vw,Vw.exports);var Yi=Vw.exports,Ek={},t9=65536,n1e=4294967295;function r1e(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var a1e=Yi.Buffer,v6=Ek.crypto||Ek.msCrypto;v6&&v6.getRandomValues?Gw.exports=i1e:Gw.exports=r1e;function i1e(t,e){if(t>n1e)throw new RangeError("requested too many random bytes");var n=a1e.allocUnsafe(t);if(t>0)if(t>t9)for(var r=0;r0&&M[M.length-1])&&(F[0]===6||F[0]===2)){v=0;continue}if(F[0]===3&&(!M||F[1]>M[0]&&F[1]=0})}tn.arrayContainsArray=u1e;function f1e(t){var e="",n=0,r=t.length;for(t.substring(0,2)==="0x"&&(n=2);n=u.length&&(u=void 0),{value:u&&u[l++],done:!u}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")},n=de&&de.__read||function(u,d){var p=typeof Symbol=="function"&&u[Symbol.iterator];if(!p)return u;var l=p.call(u),y,g=[],w;try{for(;(d===void 0||d-- >0)&&!(y=l.next()).done;)g.push(y.value)}catch(x){w={error:x}}finally{try{y&&!y.done&&(p=l.return)&&p.call(l)}finally{if(w)throw w.error}}return g};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var r=Ra,a=tn,i=ni,s=function(u){if(!Number.isSafeInteger(u)||u<0)throw new Error("Received an invalid integer type: ".concat(u));return"0x".concat(u.toString(16))};t.intToHex=s;var o=function(u){var d=(0,t.intToHex)(u);return Buffer.from((0,a.padToEven)(d.slice(2)),"hex")};t.intToBuffer=o;var c=function(u){return Buffer.allocUnsafe(u).fill(0)};t.zeros=c;var h=function(u,d,p){var l=(0,t.zeros)(d);return p?u.length0&&d.toString()==="0";)u=u.slice(1),d=u[0];return u},C=function(u){return(0,i.assertIsBuffer)(u),E(u)};t.unpadBuffer=C;var M=function(u){return(0,i.assertIsArray)(u),E(u)};t.unpadArray=M;var T=function(u){return(0,i.assertIsHexString)(u),u=(0,a.stripHexPrefix)(u),E(u)};t.unpadHexString=T;var P=function(u){if(u==null)return Buffer.allocUnsafe(0);if(Buffer.isBuffer(u)||Array.isArray(u)||u instanceof Uint8Array)return Buffer.from(u);if(typeof u=="string"){if(!(0,a.isHexString)(u))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(u));return Buffer.from((0,a.padToEven)((0,a.stripHexPrefix)(u)),"hex")}if(typeof u=="number")return(0,t.intToBuffer)(u);if(r.BN.isBN(u)){if(u.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(u));return u.toArrayLike(Buffer)}if(u.toArray)return Buffer.from(u.toArray());if(u.toBuffer)return Buffer.from(u.toBuffer());throw new Error("invalid type")};t.toBuffer=P;var D=function(u){return new r.BN((0,t.toBuffer)(u)).toNumber()};t.bufferToInt=D;var F=function(u){return u=(0,t.toBuffer)(u),"0x"+u.toString("hex")};t.bufferToHex=F;var O=function(u){return new r.BN(u).fromTwos(256)};t.fromSigned=O;var k=function(u){return Buffer.from(u.toTwos(256).toArray())};t.toUnsigned=k;var U=function(u){return typeof u!="string"||(0,a.isHexPrefixed)(u)?u:"0x"+u};t.addHexPrefix=U;var J=function(u){var d=/^(00)+|(00)+$/g;if(u=(0,a.stripHexPrefix)(u),u.length%2!==0)throw new Error("Invalid non-even hex string input for toUtf8() provided");var p=Buffer.from(u.replace(d,""),"hex");return p.toString("utf8")};t.toUtf8=J;var Y=function(u){if(Buffer.isBuffer(u))return"0x".concat(u.toString("hex"));if(u instanceof Array){for(var d=[],p=0;p0&&x[0]===0)throw new Error("".concat(w," cannot have leading zeroes, received: ").concat(x.toString("hex")))}}catch(f){d={error:f}}finally{try{y&&!y.done&&(p=l.return)&&p.call(l)}finally{if(d)throw d.error}}};t.validateNoLeadingZeroes=L;function X(u){return Array.isArray(u)?u.map(function(d){return X(d)}):Buffer.from(u)}t.arrToBufArr=X;function B(u){return Array.isArray(u)?u.map(function(d){return B(d)}):Uint8Array.from(u??[])}t.bufArrToArr=B})(Cu);var O8={},a1={},VC={};Object.defineProperty(VC,"__esModule",{value:!0});function w1e(t){return function(e){var n=t();return n.update(e),Buffer.from(n.digest())}}VC.createHashFunction=w1e;var Hz={};const _k=[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];Hz.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],r=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],i=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],o=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],h=t[7]^t[17]^t[27]^t[37]^t[47],b=t[8]^t[18]^t[28]^t[38]^t[48],v=t[9]^t[19]^t[29]^t[39]^t[49];let E=b^(a<<1|i>>>31),C=v^(i<<1|a>>>31);const M=t[0]^E,T=t[1]^C,P=t[10]^E,D=t[11]^C,F=t[20]^E,O=t[21]^C,k=t[30]^E,U=t[31]^C,J=t[40]^E,Y=t[41]^C;E=n^(s<<1|o>>>31),C=r^(o<<1|s>>>31);const L=t[2]^E,X=t[3]^C,B=t[12]^E,u=t[13]^C,d=t[22]^E,p=t[23]^C,l=t[32]^E,y=t[33]^C,g=t[42]^E,w=t[43]^C;E=a^(c<<1|h>>>31),C=i^(h<<1|c>>>31);const x=t[4]^E,f=t[5]^C,m=t[14]^E,A=t[15]^C,_=t[24]^E,S=t[25]^C,$=t[34]^E,V=t[35]^C,I=t[44]^E,W=t[45]^C;E=s^(b<<1|v>>>31),C=o^(v<<1|b>>>31);const z=t[6]^E,Z=t[7]^C,le=t[16]^E,ue=t[17]^C,G=t[26]^E,j=t[27]^C,ne=t[36]^E,se=t[37]^C,Q=t[46]^E,R=t[47]^C;E=c^(n<<1|r>>>31),C=h^(r<<1|n>>>31);const N=t[8]^E,K=t[9]^C,ae=t[18]^E,he=t[19]^C,q=t[28]^E,ee=t[29]^C,ie=t[38]^E,me=t[39]^C,be=t[48]^E,pe=t[49]^C,Me=M,Te=T,Ee=D<<4|P>>>28,Qe=P<<4|D>>>28,Ne=F<<3|O>>>29,Oe=O<<3|F>>>29,at=U<<9|k>>>23,qe=k<<9|U>>>23,$e=J<<18|Y>>>14,xt=Y<<18|J>>>14,Xe=L<<1|X>>>31,He=X<<1|L>>>31,_t=u<<12|B>>>20,oe=B<<12|u>>>20,fe=d<<10|p>>>22,Ce=p<<10|d>>>22,Ae=y<<13|l>>>19,_e=l<<13|y>>>19,Je=g<<2|w>>>30,Fe=w<<2|g>>>30,Se=f<<30|x>>>2,ze=x<<30|f>>>2,Pe=m<<6|A>>>26,Ie=A<<6|m>>>26,Ye=S<<11|_>>>21,Le=_<<11|S>>>21,De=$<<15|V>>>17,st=V<<15|$>>>17,We=W<<29|I>>>3,Ue=I<<29|W>>>3,vt=z<<28|Z>>>4,Ke=Z<<28|z>>>4,Re=ue<<23|le>>>9,ht=le<<23|ue>>>9,pt=G<<25|j>>>7,yt=j<<25|G>>>7,Kt=ne<<21|se>>>11,Ht=se<<21|ne>>>11,ot=R<<24|Q>>>8,Tt=Q<<24|R>>>8,mt=N<<27|K>>>5,Pt=K<<27|N>>>5,An=ae<<20|he>>>12,On=he<<20|ae>>>12,Zn=ee<<7|q>>>25,Qn=q<<7|ee>>>25,Jn=ie<<8|me>>>24,Xn=me<<8|ie>>>24,Yn=be<<14|pe>>>18,er=pe<<14|be>>>18;t[0]=Me^~_t&Ye,t[1]=Te^~oe&Le,t[10]=vt^~An&Ne,t[11]=Ke^~On&Oe,t[20]=Xe^~Pe&pt,t[21]=He^~Ie&yt,t[30]=mt^~Ee&fe,t[31]=Pt^~Qe&Ce,t[40]=Se^~Re&Zn,t[41]=ze^~ht&Qn,t[2]=_t^~Ye&Kt,t[3]=oe^~Le&Ht,t[12]=An^~Ne&Ae,t[13]=On^~Oe&_e,t[22]=Pe^~pt&Jn,t[23]=Ie^~yt&Xn,t[32]=Ee^~fe&De,t[33]=Qe^~Ce&st,t[42]=Re^~Zn&at,t[43]=ht^~Qn&qe,t[4]=Ye^~Kt&Yn,t[5]=Le^~Ht&er,t[14]=Ne^~Ae&We,t[15]=Oe^~_e&Ue,t[24]=pt^~Jn&$e,t[25]=yt^~Xn&xt,t[34]=fe^~De&ot,t[35]=Ce^~st&Tt,t[44]=Zn^~at&Je,t[45]=Qn^~qe&Fe,t[6]=Kt^~Yn&Me,t[7]=Ht^~er&Te,t[16]=Ae^~We&vt,t[17]=_e^~Ue&Ke,t[26]=Jn^~$e&Xe,t[27]=Xn^~xt&He,t[36]=De^~ot&mt,t[37]=st^~Tt&Pt,t[46]=at^~Je&Se,t[47]=qe^~Fe&ze,t[8]=Yn^~Me&_t,t[9]=er^~Te&oe,t[18]=We^~vt&An,t[19]=Ue^~Ke&On,t[28]=$e^~Xe&Pe,t[29]=xt^~He&Ie,t[38]=ot^~mt&Ee,t[39]=Tt^~Pt&Qe,t[48]=Je^~Se&Re,t[49]=Fe^~ze&ht,t[0]^=_k[e*2],t[1]^=_k[e*2+1]}};const w6=Hz;function i1(){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}i1.prototype.initialize=function(t,e){for(let n=0;n<50;++n)this.state[n]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1};i1.prototype.absorb=function(t){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(w6.p1600(this.state),this.count=0);return e};i1.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing};var E1e=i1,qw={exports:{}},qC={exports:{}},Z0=typeof Reflect=="object"?Reflect:null,Ak=Z0&&typeof Z0.apply=="function"?Z0.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},lg;Z0&&typeof Z0.ownKeys=="function"?lg=Z0.ownKeys:Object.getOwnPropertySymbols?lg=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:lg=function(e){return Object.getOwnPropertyNames(e)};function _1e(t){console&&console.warn&&console.warn(t)}var zz=Number.isNaN||function(e){return e!==e};function Yt(){Yt.init.call(this)}qC.exports=Yt;qC.exports.once=T1e;Yt.EventEmitter=Yt;Yt.prototype._events=void 0;Yt.prototype._eventsCount=0;Yt.prototype._maxListeners=void 0;var Ck=10;function P8(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(Yt,"defaultMaxListeners",{enumerable:!0,get:function(){return Ck},set:function(t){if(typeof t!="number"||t<0||zz(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Ck=t}});Yt.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};Yt.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||zz(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 Gz(t){return t._maxListeners===void 0?Yt.defaultMaxListeners:t._maxListeners}Yt.prototype.getMaxListeners=function(){return Gz(this)};Yt.prototype.emit=function(e){for(var n=[],r=1;r0&&(s=n[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")Ak(c,this,n);else for(var h=c.length,b=Zz(c,h),r=0;r0&&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=t,o.type=e,o.count=s.length,_1e(o)}return t}Yt.prototype.addListener=function(e,n){return Vz(this,e,n,!1)};Yt.prototype.on=Yt.prototype.addListener;Yt.prototype.prependListener=function(e,n){return Vz(this,e,n,!0)};function A1e(){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 qz(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},a=A1e.bind(r);return a.listener=n,r.wrapFn=a,a}Yt.prototype.once=function(e,n){return P8(n),this.on(e,qz(this,e,n)),this};Yt.prototype.prependOnceListener=function(e,n){return P8(n),this.prependListener(e,qz(this,e,n)),this};Yt.prototype.removeListener=function(e,n){var r,a,i,s,o;if(P8(n),a=this._events,a===void 0)return this;if(r=a[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){o=r[s].listener,i=s;break}if(i<0)return this;i===0?r.shift():C1e(r,i),r.length===1&&(a[e]=r[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||n)}return this};Yt.prototype.off=Yt.prototype.removeListener;Yt.prototype.removeAllListeners=function(e){var n,r,a;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var i=Object.keys(r),s;for(a=0;a=0;a--)this.removeListener(e,n[a]);return this};function Wz(t,e,n){var r=t._events;if(r===void 0)return[];var a=r[e];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?S1e(a):Zz(a,a.length)}Yt.prototype.listeners=function(e){return Wz(this,e,!0)};Yt.prototype.rawListeners=function(e){return Wz(this,e,!1)};Yt.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):Kz.call(t,e)};Yt.prototype.listenerCount=Kz;function Kz(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}Yt.prototype.eventNames=function(){return this._eventsCount>0?lg(this._events):[]};function Zz(t,e){for(var n=new Array(e),r=0;r0?this.tail.next=D:this.head=D,this.tail=D,++this.length}},{key:"unshift",value:function(P){var D={data:P,next:this.head};this.length===0&&(this.tail=D),this.head=D,++this.length}},{key:"shift",value:function(){if(this.length!==0){var P=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,P}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(P){if(this.length===0)return"";for(var D=this.head,F=""+D.data;D=D.next;)F+=P+D.data;return F}},{key:"concat",value:function(P){if(this.length===0)return h.alloc(0);for(var D=h.allocUnsafe(P>>>0),F=this.head,O=0;F;)C(F.data,D,O),O+=F.data.length,F=F.next;return D}},{key:"consume",value:function(P,D){var F;return Pk.length?k.length:P;if(U===k.length?O+=k:O+=k.slice(0,P),P-=U,P===0){U===k.length?(++F,D.next?this.head=D.next:this.head=this.tail=null):(this.head=D,D.data=k.slice(U));break}++F}return this.length-=F,O}},{key:"_getBuffer",value:function(P){var D=h.allocUnsafe(P),F=this.head,O=1;for(F.data.copy(D),P-=F.data.length;F=F.next;){var k=F.data,U=P>k.length?k.length:P;if(k.copy(D,D.length-P,0,U),P-=U,P===0){U===k.length?(++O,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=k.slice(U));break}++O}return this.length-=O,D}},{key:E,value:function(P,D){return v(this,e(e({},D),{},{depth:0,customInspect:!1}))}}]),M}(),n9}function F1e(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ww,this,t)):process.nextTick(Ww,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(i){!e&&i?n._writableState?n._writableState.errorEmitted?process.nextTick(ug,n):(n._writableState.errorEmitted=!0,process.nextTick(Tk,n,i)):process.nextTick(Tk,n,i):e?(process.nextTick(ug,n),e(i)):process.nextTick(ug,n)}),this)}function Tk(t,e){Ww(t,e),ug(t)}function ug(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function D1e(){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 Ww(t,e){t.emit("error",e)}function k1e(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}var Xz={destroy:F1e,undestroy:D1e,errorOrDestroy:k1e},_d={};function I1e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var Yz={};function es(t,e,n){n||(n=Error);function r(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){I1e(s,i);function s(o,c,h){return i.call(this,r(o,c,h))||this}return s}(n);a.prototype.name=n.name,a.prototype.code=t,Yz[t]=a}function Bk(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map(function(r){return String(r)}),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:n===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function O1e(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function P1e(t,e,n){return(n===void 0||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function R1e(t,e,n){return typeof n!="number"&&(n=0),n+e.length>t.length?!1:t.indexOf(e,n)!==-1}es("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);es("ERR_INVALID_ARG_TYPE",function(t,e,n){var r;typeof e=="string"&&O1e(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be";var a;if(P1e(t," argument"))a="The ".concat(t," ").concat(r," ").concat(Bk(e,"type"));else{var i=R1e(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(i," ").concat(r," ").concat(Bk(e,"type"))}return a+=". Received type ".concat(typeof n),a},TypeError);es("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");es("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});es("ERR_STREAM_PREMATURE_CLOSE","Premature close");es("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});es("ERR_MULTIPLE_CALLBACK","Callback called multiple times");es("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");es("ERR_STREAM_WRITE_AFTER_END","write after end");es("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);es("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);es("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_d.codes=Yz;var N1e=_d.codes.ERR_INVALID_OPT_VALUE;function $1e(t,e,n){return t.highWaterMark!=null?t.highWaterMark:e?t[n]:null}function L1e(t,e,n,r){var a=$1e(e,r,n);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=r?n:"highWaterMark";throw new N1e(i,a)}return Math.floor(a)}return t.objectMode?16:16*1024}var eG={getHighWaterMark:L1e},Mk={},U1e=j1e;function j1e(t,e){if(r9("noDeprecation"))return t;var n=!1;function r(){if(!n){if(r9("throwDeprecation"))throw new Error(e);r9("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return r}function r9(t){try{if(!Mk.localStorage)return!1}catch{return!1}var e=Mk.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var a9,Fk;function tG(){if(Fk)return a9;Fk=1;var t={};a9=X;function e(W){var z=this;this.next=null,this.entry=null,this.finish=function(){I(z,W)}}var n;X.WritableState=Y;var r={deprecate:U1e},a=Jz,i=Kc.Buffer,s=(typeof t<"u"?t:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(W){return i.from(W)}function c(W){return i.isBuffer(W)||W instanceof s}var h=Xz,b=eG,v=b.getHighWaterMark,E=_d.codes,C=E.ERR_INVALID_ARG_TYPE,M=E.ERR_METHOD_NOT_IMPLEMENTED,T=E.ERR_MULTIPLE_CALLBACK,P=E.ERR_STREAM_CANNOT_PIPE,D=E.ERR_STREAM_DESTROYED,F=E.ERR_STREAM_NULL_VALUES,O=E.ERR_STREAM_WRITE_AFTER_END,k=E.ERR_UNKNOWN_ENCODING,U=h.errorOrDestroy;zn(X,a);function J(){}function Y(W,z,Z){n=n||Tp(),W=W||{},typeof Z!="boolean"&&(Z=z instanceof n),this.objectMode=!!W.objectMode,Z&&(this.objectMode=this.objectMode||!!W.writableObjectMode),this.highWaterMark=v(this,W,"writableHighWaterMark",Z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var le=W.decodeStrings===!1;this.decodeStrings=!le,this.defaultEncoding=W.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ue){w(z,ue)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var z=this.bufferedRequest,Z=[];z;)Z.push(z),z=z.next;return Z},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(X,Symbol.hasInstance,{value:function(z){return L.call(this,z)?!0:this!==X?!1:z&&z._writableState instanceof Y}})):L=function(z){return z instanceof this};function X(W){n=n||Tp();var z=this instanceof n;if(!z&&!L.call(X,this))return new X(W);this._writableState=new Y(W,this,z),this.writable=!0,W&&(typeof W.write=="function"&&(this._write=W.write),typeof W.writev=="function"&&(this._writev=W.writev),typeof W.destroy=="function"&&(this._destroy=W.destroy),typeof W.final=="function"&&(this._final=W.final)),a.call(this)}X.prototype.pipe=function(){U(this,new P)};function B(W,z){var Z=new O;U(W,Z),process.nextTick(z,Z)}function u(W,z,Z,le){var ue;return Z===null?ue=new F:typeof Z!="string"&&!z.objectMode&&(ue=new C("chunk",["string","Buffer"],Z)),ue?(U(W,ue),process.nextTick(le,ue),!1):!0}X.prototype.write=function(W,z,Z){var le=this._writableState,ue=!1,G=!le.objectMode&&c(W);return G&&!i.isBuffer(W)&&(W=o(W)),typeof z=="function"&&(Z=z,z=null),G?z="buffer":z||(z=le.defaultEncoding),typeof Z!="function"&&(Z=J),le.ending?B(this,Z):(G||u(this,le,W,Z))&&(le.pendingcb++,ue=p(this,le,G,W,z,Z)),ue},X.prototype.cork=function(){this._writableState.corked++},X.prototype.uncork=function(){var W=this._writableState;W.corked&&(W.corked--,!W.writing&&!W.corked&&!W.bufferProcessing&&W.bufferedRequest&&m(this,W))},X.prototype.setDefaultEncoding=function(z){if(typeof z=="string"&&(z=z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((z+"").toLowerCase())>-1))throw new k(z);return this._writableState.defaultEncoding=z,this},Object.defineProperty(X.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function d(W,z,Z){return!W.objectMode&&W.decodeStrings!==!1&&typeof z=="string"&&(z=i.from(z,Z)),z}Object.defineProperty(X.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p(W,z,Z,le,ue,G){if(!Z){var j=d(z,le,ue);le!==j&&(Z=!0,ue="buffer",le=j)}var ne=z.objectMode?1:le.length;z.length+=ne;var se=z.length>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function G1e(t,e,n){var r=e.length-1;if(r=0?(a>0&&(t.lastNeed=a-1),a):--r=0?(a>0&&(t.lastNeed=a-2),a):--r=0?(a>0&&(a===2?a=0:t.lastNeed=a-3),a):0))}function V1e(t,e,n){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function q1e(t){var e=this.lastTotal-this.lastNeed,n=V1e(this,t);if(n!==void 0)return n;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function W1e(t,e){var n=G1e(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function K1e(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function Z1e(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function Q1e(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function J1e(t,e){var n=(t.length-e)%3;return n===0?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function X1e(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function Y1e(t){return t.toString(this.encoding)}function eye(t){return t&&t.length?this.write(t):""}var Ik=_d.codes.ERR_STREAM_PREMATURE_CLOSE;function tye(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),a=0;a0)if(typeof j!="string"&&!R.objectMode&&Object.getPrototypeOf(j)!==a.prototype&&(j=s(j)),se)R.endEmitted?J(G,new F):d(G,R,j,!0);else if(R.ended)J(G,new P);else{if(R.destroyed)return!1;R.reading=!1,R.decoder&&!ne?(j=R.decoder.write(j),R.objectMode||j.length!==0?d(G,R,j,!1):m(G,R)):d(G,R,j,!1)}else se||(R.reading=!1,m(G,R))}return!R.ended&&(R.length=l?G=l:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}function g(G,j){return G<=0||j.length===0&&j.ended?0:j.objectMode?1:G!==G?j.flowing&&j.length?j.buffer.head.data.length:j.length:(G>j.highWaterMark&&(j.highWaterMark=y(G)),G<=j.length?G:j.ended?j.length:(j.needReadable=!0,0))}B.prototype.read=function(G){h("read",G),G=parseInt(G,10);var j=this._readableState,ne=G;if(G!==0&&(j.emittedReadable=!1),G===0&&j.needReadable&&((j.highWaterMark!==0?j.length>=j.highWaterMark:j.length>0)||j.ended))return h("read: emitReadable",j.length,j.ended),j.length===0&&j.ended?Z(this):x(this),null;if(G=g(G,j),G===0&&j.ended)return j.length===0&&Z(this),null;var se=j.needReadable;h("need readable",se),(j.length===0||j.length-G0?Q=z(G,j):Q=null,Q===null?(j.needReadable=j.length<=j.highWaterMark,G=0):(j.length-=G,j.awaitDrain=0),j.length===0&&(j.ended||(j.needReadable=!0),ne!==G&&j.ended&&Z(this)),Q!==null&&this.emit("data",Q),Q};function w(G,j){if(h("onEofChunk"),!j.ended){if(j.decoder){var ne=j.decoder.end();ne&&ne.length&&(j.buffer.push(ne),j.length+=j.objectMode?1:ne.length)}j.ended=!0,j.sync?x(G):(j.needReadable=!1,j.emittedReadable||(j.emittedReadable=!0,f(G)))}}function x(G){var j=G._readableState;h("emitReadable",j.needReadable,j.emittedReadable),j.needReadable=!1,j.emittedReadable||(h("emitReadable",j.flowing),j.emittedReadable=!0,process.nextTick(f,G))}function f(G){var j=G._readableState;h("emitReadable_",j.destroyed,j.length,j.ended),!j.destroyed&&(j.length||j.ended)&&(G.emit("readable"),j.emittedReadable=!1),j.needReadable=!j.flowing&&!j.ended&&j.length<=j.highWaterMark,W(G)}function m(G,j){j.readingMore||(j.readingMore=!0,process.nextTick(A,G,j))}function A(G,j){for(;!j.reading&&!j.ended&&(j.length1&&ue(se.pipes,G)!==-1)&&!he&&(h("false write response, pause",se.awaitDrain),se.awaitDrain++),ne.pause())}function ie(Me){h("onerror",Me),pe(),G.removeListener("error",ie),n(G,"error")===0&&J(G,Me)}L(G,"error",ie);function me(){G.removeListener("finish",be),pe()}G.once("close",me);function be(){h("onfinish"),G.removeListener("close",me),pe()}G.once("finish",be);function pe(){h("unpipe"),ne.unpipe(G)}return G.emit("pipe",ne),se.flowing||(h("pipe resume"),ne.resume()),G};function _(G){return function(){var ne=G._readableState;h("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&n(G,"data")&&(ne.flowing=!0,W(G))}}B.prototype.unpipe=function(G){var j=this._readableState,ne={hasUnpiped:!1};if(j.pipesCount===0)return this;if(j.pipesCount===1)return G&&G!==j.pipes?this:(G||(G=j.pipes),j.pipes=null,j.pipesCount=0,j.flowing=!1,G&&G.emit("unpipe",this,ne),this);if(!G){var se=j.pipes,Q=j.pipesCount;j.pipes=null,j.pipesCount=0,j.flowing=!1;for(var R=0;R0,se.flowing!==!1&&this.resume()):G==="readable"&&!se.endEmitted&&!se.readableListening&&(se.readableListening=se.needReadable=!0,se.flowing=!1,se.emittedReadable=!1,h("on readable",se.length,se.reading),se.length?x(this):se.reading||process.nextTick($,this)),ne},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(G,j){var ne=r.prototype.removeListener.call(this,G,j);return G==="readable"&&process.nextTick(S,this),ne},B.prototype.removeAllListeners=function(G){var j=r.prototype.removeAllListeners.apply(this,arguments);return(G==="readable"||G===void 0)&&process.nextTick(S,this),j};function S(G){var j=G._readableState;j.readableListening=G.listenerCount("readable")>0,j.resumeScheduled&&!j.paused?j.flowing=!0:G.listenerCount("data")>0&&G.resume()}function $(G){h("readable nexttick read 0"),G.read(0)}B.prototype.resume=function(){var G=this._readableState;return G.flowing||(h("resume"),G.flowing=!G.readableListening,V(this,G)),G.paused=!1,this};function V(G,j){j.resumeScheduled||(j.resumeScheduled=!0,process.nextTick(I,G,j))}function I(G,j){h("resume",j.reading),j.reading||G.read(0),j.resumeScheduled=!1,G.emit("resume"),W(G),j.flowing&&!j.reading&&G.read(0)}B.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function W(G){var j=G._readableState;for(h("flow",j.flowing);j.flowing&&G.read()!==null;);}B.prototype.wrap=function(G){var j=this,ne=this._readableState,se=!1;G.on("end",function(){if(h("wrapped end"),ne.decoder&&!ne.ended){var N=ne.decoder.end();N&&N.length&&j.push(N)}j.push(null)}),G.on("data",function(N){if(h("wrapped data"),ne.decoder&&(N=ne.decoder.write(N)),!(ne.objectMode&&N==null)&&!(!ne.objectMode&&(!N||!N.length))){var K=j.push(N);K||(se=!0,G.pause())}});for(var Q in G)this[Q]===void 0&&typeof G[Q]=="function"&&(this[Q]=function(K){return function(){return G[K].apply(G,arguments)}}(Q));for(var R=0;R=j.length?(j.decoder?ne=j.buffer.join(""):j.buffer.length===1?ne=j.buffer.first():ne=j.buffer.concat(j.length),j.buffer.clear()):ne=j.buffer.consume(G,j.decoder),ne}function Z(G){var j=G._readableState;h("endReadable",j.endEmitted),j.endEmitted||(j.ended=!0,process.nextTick(le,j,G))}function le(G,j){if(h("endReadableNT",G.endEmitted,G.length),!G.endEmitted&&G.length===0&&(G.endEmitted=!0,j.readable=!1,j.emit("end"),G.autoDestroy)){var ne=j._writableState;(!ne||ne.autoDestroy&&ne.finished)&&j.destroy()}}typeof Symbol=="function"&&(B.from=function(G,j){return U===void 0&&(U=iye()),U(B,G,j)});function ue(G,j){for(var ne=0,se=G.length;ne0;return bye(s,c,h,function(b){a||(a=b),b&&i.forEach(Lk),!c&&(i.forEach(Lk),r(a))})});return e.reduce(gye)}var wye=vye;(function(t,e){e=t.exports=rG(),e.Stream=e,e.Readable=e,e.Writable=tG(),e.Duplex=Tp(),e.Transform=aG,e.PassThrough=dye,e.finished=ZC,e.pipeline=wye})(qw,qw.exports);var QC=qw.exports;const{Transform:Eye}=QC;var _ye=t=>class oG extends Eye{constructor(n,r,a,i,s){super(s),this._rate=n,this._capacity=r,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new t,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,a){let i=null;try{this.update(n,r)}catch(s){i=s}a(i)}_flush(n){let r=null;try{this.push(this.digest())}catch(a){r=a}n(r)}update(n,r){if(!Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(n)||(n=Buffer.from(n,r)),this._state.absorb(n),this}digest(n){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let r=this._state.squeeze(this._hashBitLength/8);return n!==void 0&&(r=r.toString(n)),this._resetState(),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new oG(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const{Transform:Aye}=QC;var Cye=t=>class cG extends Aye{constructor(n,r,a,i){super(i),this._rate=n,this._capacity=r,this._delimitedSuffix=a,this._options=i,this._state=new t,this._state.initialize(n,r),this._finalized=!1}_transform(n,r,a){let i=null;try{this.update(n,r)}catch(s){i=s}a(i)}_flush(){}_read(n){this.push(this.squeeze(n))}update(n,r){if(!Buffer.isBuffer(n)&&typeof n!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(n)||(n=Buffer.from(n,r)),this._state.absorb(n),this}squeeze(n,r){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(n);return r!==void 0&&(a=a.toString(r)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const n=new cG(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(n._state),n._finalized=this._finalized,n}};const Sye=_ye,Tye=Cye;var Bye=function(t){const e=Sye(t),n=Tye(t);return function(r,a){switch(typeof r=="string"?r.toLowerCase():r){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 n(1344,256,31,a);case"shake256":return new n(1088,512,31,a);default:throw new Error("Invald algorithm: "+r)}}},Mye=Bye(E1e);Object.defineProperty(a1,"__esModule",{value:!0});var $8=VC,L8=Mye;a1.keccak224=$8.createHashFunction(function(){return L8("keccak224")});a1.keccak256=$8.createHashFunction(function(){return L8("keccak256")});a1.keccak384=$8.createHashFunction(function(){return L8("keccak384")});a1.keccak512=$8.createHashFunction(function(){return L8("keccak512")});var _6=Yi.Buffer,lG=QC.Transform,Fye=zn;function Dye(t,e){if(!_6.isBuffer(t)&&typeof t!="string")throw new TypeError(e+" must be a string or a buffer")}function Su(t){lG.call(this),this._block=_6.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Fye(Su,lG);Su.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(a){r=a}n(r)};Su.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)};Su.prototype.update=function(t,e){if(Dye(t,"Data"),this._finalized)throw new Error("Digest already called");_6.isBuffer(t)||(t=_6.from(t,e));for(var n=this._block,r=0;this._blockOffset+t.length-r>=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};Su.prototype._update=function(){throw new Error("_update is not implemented")};Su.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();t!==void 0&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e};Su.prototype._digest=function(){throw new Error("_digest is not implemented")};var uG=Su,kye=zn,fG=uG,Iye=Yi.Buffer,Oye=new Array(16);function U8(){fG.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}kye(U8,fG);U8.prototype._update=function(){for(var t=Oye,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);var n=this._a,r=this._b,a=this._c,i=this._d;n=Hr(n,r,a,i,t[0],3614090360,7),i=Hr(i,n,r,a,t[1],3905402710,12),a=Hr(a,i,n,r,t[2],606105819,17),r=Hr(r,a,i,n,t[3],3250441966,22),n=Hr(n,r,a,i,t[4],4118548399,7),i=Hr(i,n,r,a,t[5],1200080426,12),a=Hr(a,i,n,r,t[6],2821735955,17),r=Hr(r,a,i,n,t[7],4249261313,22),n=Hr(n,r,a,i,t[8],1770035416,7),i=Hr(i,n,r,a,t[9],2336552879,12),a=Hr(a,i,n,r,t[10],4294925233,17),r=Hr(r,a,i,n,t[11],2304563134,22),n=Hr(n,r,a,i,t[12],1804603682,7),i=Hr(i,n,r,a,t[13],4254626195,12),a=Hr(a,i,n,r,t[14],2792965006,17),r=Hr(r,a,i,n,t[15],1236535329,22),n=zr(n,r,a,i,t[1],4129170786,5),i=zr(i,n,r,a,t[6],3225465664,9),a=zr(a,i,n,r,t[11],643717713,14),r=zr(r,a,i,n,t[0],3921069994,20),n=zr(n,r,a,i,t[5],3593408605,5),i=zr(i,n,r,a,t[10],38016083,9),a=zr(a,i,n,r,t[15],3634488961,14),r=zr(r,a,i,n,t[4],3889429448,20),n=zr(n,r,a,i,t[9],568446438,5),i=zr(i,n,r,a,t[14],3275163606,9),a=zr(a,i,n,r,t[3],4107603335,14),r=zr(r,a,i,n,t[8],1163531501,20),n=zr(n,r,a,i,t[13],2850285829,5),i=zr(i,n,r,a,t[2],4243563512,9),a=zr(a,i,n,r,t[7],1735328473,14),r=zr(r,a,i,n,t[12],2368359562,20),n=Gr(n,r,a,i,t[5],4294588738,4),i=Gr(i,n,r,a,t[8],2272392833,11),a=Gr(a,i,n,r,t[11],1839030562,16),r=Gr(r,a,i,n,t[14],4259657740,23),n=Gr(n,r,a,i,t[1],2763975236,4),i=Gr(i,n,r,a,t[4],1272893353,11),a=Gr(a,i,n,r,t[7],4139469664,16),r=Gr(r,a,i,n,t[10],3200236656,23),n=Gr(n,r,a,i,t[13],681279174,4),i=Gr(i,n,r,a,t[0],3936430074,11),a=Gr(a,i,n,r,t[3],3572445317,16),r=Gr(r,a,i,n,t[6],76029189,23),n=Gr(n,r,a,i,t[9],3654602809,4),i=Gr(i,n,r,a,t[12],3873151461,11),a=Gr(a,i,n,r,t[15],530742520,16),r=Gr(r,a,i,n,t[2],3299628645,23),n=Vr(n,r,a,i,t[0],4096336452,6),i=Vr(i,n,r,a,t[7],1126891415,10),a=Vr(a,i,n,r,t[14],2878612391,15),r=Vr(r,a,i,n,t[5],4237533241,21),n=Vr(n,r,a,i,t[12],1700485571,6),i=Vr(i,n,r,a,t[3],2399980690,10),a=Vr(a,i,n,r,t[10],4293915773,15),r=Vr(r,a,i,n,t[1],2240044497,21),n=Vr(n,r,a,i,t[8],1873313359,6),i=Vr(i,n,r,a,t[15],4264355552,10),a=Vr(a,i,n,r,t[6],2734768916,15),r=Vr(r,a,i,n,t[13],1309151649,21),n=Vr(n,r,a,i,t[4],4149444226,6),i=Vr(i,n,r,a,t[11],3174756917,10),a=Vr(a,i,n,r,t[2],718787259,15),r=Vr(r,a,i,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0};U8.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 t=Iye.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t};function j8(t,e){return t<>>32-e}function Hr(t,e,n,r,a,i,s){return j8(t+(e&n|~e&r)+a+i|0,s)+e|0}function zr(t,e,n,r,a,i,s){return j8(t+(e&r|n&~r)+a+i|0,s)+e|0}function Gr(t,e,n,r,a,i,s){return j8(t+(e^n^r)+a+i|0,s)+e|0}function Vr(t,e,n,r,a,i,s){return j8(t+(n^(e|~r))+a+i|0,s)+e|0}var Pye=U8,f9=Kc.Buffer,Rye=zn,dG=uG,Nye=new Array(16),L1=[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],U1=[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],j1=[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],H1=[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],z1=[0,1518500249,1859775393,2400959708,2840853838],G1=[1352829926,1548603684,1836072691,2053994217,0];function H8(){dG.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Rye(H8,dG);H8.prototype._update=function(){for(var t=Nye,e=0;e<16;++e)t[e]=this._block.readInt32LE(e*4);for(var n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,h=this._c|0,b=this._d|0,v=this._e|0,E=0;E<80;E+=1){var C,M;E<16?(C=Uk(n,r,a,i,s,t[L1[E]],z1[0],j1[E]),M=Gk(o,c,h,b,v,t[U1[E]],G1[0],H1[E])):E<32?(C=jk(n,r,a,i,s,t[L1[E]],z1[1],j1[E]),M=zk(o,c,h,b,v,t[U1[E]],G1[1],H1[E])):E<48?(C=Hk(n,r,a,i,s,t[L1[E]],z1[2],j1[E]),M=Hk(o,c,h,b,v,t[U1[E]],G1[2],H1[E])):E<64?(C=zk(n,r,a,i,s,t[L1[E]],z1[3],j1[E]),M=jk(o,c,h,b,v,t[U1[E]],G1[3],H1[E])):(C=Gk(n,r,a,i,s,t[L1[E]],z1[4],j1[E]),M=Uk(o,c,h,b,v,t[U1[E]],G1[4],H1[E])),n=s,s=i,i=sd(a,10),a=r,r=C,o=v,v=b,b=sd(h,10),h=c,c=M}var T=this._b+a+b|0;this._b=this._c+i+v|0,this._c=this._d+s+o|0,this._d=this._e+n+c|0,this._e=this._a+r+h|0,this._a=T};H8.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 t=f9.alloc?f9.alloc(20):new f9(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};function sd(t,e){return t<>>32-e}function Uk(t,e,n,r,a,i,s,o){return sd(t+(e^n^r)+i+s|0,o)+a|0}function jk(t,e,n,r,a,i,s,o){return sd(t+(e&n|~e&r)+i+s|0,o)+a|0}function Hk(t,e,n,r,a,i,s,o){return sd(t+((e|~n)^r)+i+s|0,o)+a|0}function zk(t,e,n,r,a,i,s,o){return sd(t+(e&r|n&~r)+i+s|0,o)+a|0}function Gk(t,e,n,r,a,i,s,o){return sd(t+(e^(n|~r))+i+s|0,o)+a|0}var $ye=H8,hG={exports:{}},pG=Yi.Buffer;function z8(t,e){this._block=pG.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}z8.prototype.update=function(t,e){typeof t=="string"&&(e=e||"utf8",t=pG.from(t,e));for(var n=this._block,r=this._blockSize,a=t.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=this._len*8;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(n&4294967295)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return t?i.toString(t):i};z8.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var s1=z8,Lye=zn,yG=s1,Uye=Yi.Buffer,jye=[1518500249,1859775393,-1894007588,-899497514],Hye=new Array(80);function Kb(){this.init(),this._w=Hye,yG.call(this,64,56)}Lye(Kb,yG);Kb.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function zye(t){return t<<5|t>>>27}function Gye(t){return t<<30|t>>>2}function Vye(t,e,n,r){return t===0?e&n|~e&r:t===2?e&n|e&r|n&r:e^n^r}Kb.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=t.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 h=~~(c/20),b=zye(n)+Vye(h,r,a,i)+s+e[c]+jye[h]|0;s=i,i=a,a=Gye(r),r=n,n=b}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};Kb.prototype._hash=function(){var t=Uye.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var qye=Kb,Wye=zn,mG=s1,Kye=Yi.Buffer,Zye=[1518500249,1859775393,-1894007588,-899497514],Qye=new Array(80);function Zb(){this.init(),this._w=Qye,mG.call(this,64,56)}Wye(Zb,mG);Zb.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Jye(t){return t<<1|t>>>31}function Xye(t){return t<<5|t>>>27}function Yye(t){return t<<30|t>>>2}function eme(t,e,n,r){return t===0?e&n|~e&r:t===2?e&n|e&r|n&r:e^n^r}Zb.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=t.readInt32BE(o*4);for(;o<80;++o)e[o]=Jye(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var h=~~(c/20),b=Xye(n)+eme(h,r,a,i)+s+e[c]+Zye[h]|0;s=i,i=a,a=Yye(r),r=n,n=b}this._a=n+this._a|0,this._b=r+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};Zb.prototype._hash=function(){var t=Kye.allocUnsafe(20);return t.writeInt32BE(this._a|0,0),t.writeInt32BE(this._b|0,4),t.writeInt32BE(this._c|0,8),t.writeInt32BE(this._d|0,12),t.writeInt32BE(this._e|0,16),t};var tme=Zb,nme=zn,bG=s1,rme=Yi.Buffer,ame=[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],ime=new Array(64);function Qb(){this.init(),this._w=ime,bG.call(this,64,56)}nme(Qb,bG);Qb.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 sme(t,e,n){return n^t&(e^n)}function ome(t,e,n){return t&e|n&(t|e)}function cme(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function lme(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function ume(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function fme(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}Qb.prototype._update=function(t){for(var e=this._w,n=this._a|0,r=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,h=this._h|0,b=0;b<16;++b)e[b]=t.readInt32BE(b*4);for(;b<64;++b)e[b]=fme(e[b-2])+e[b-7]+ume(e[b-15])+e[b-16]|0;for(var v=0;v<64;++v){var E=h+lme(s)+sme(s,o,c)+ame[v]+e[v]|0,C=cme(n)+ome(n,r,a)|0;h=c,c=o,o=s,s=i+E|0,i=a,a=r,r=n,n=E+C|0}this._a=n+this._a|0,this._b=r+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=h+this._h|0};Qb.prototype._hash=function(){var t=rme.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t};var gG=Qb,dme=zn,hme=gG,pme=s1,yme=Yi.Buffer,mme=new Array(64);function G8(){this.init(),this._w=mme,pme.call(this,64,56)}dme(G8,hme);G8.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};G8.prototype._hash=function(){var t=yme.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t};var bme=G8,gme=zn,xG=s1,xme=Yi.Buffer,Vk=[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],vme=new Array(160);function Jb(){this.init(),this._w=vme,xG.call(this,128,112)}gme(Jb,xG);Jb.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 qk(t,e,n){return n^t&(e^n)}function Wk(t,e,n){return t&e|n&(t|e)}function Kk(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function Zk(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function wme(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function Eme(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function _me(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function Ame(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function cr(t,e){return t>>>0>>0?1:0}Jb.prototype._update=function(t){for(var e=this._w,n=this._ah|0,r=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,h=this._hh|0,b=this._al|0,v=this._bl|0,E=this._cl|0,C=this._dl|0,M=this._el|0,T=this._fl|0,P=this._gl|0,D=this._hl|0,F=0;F<32;F+=2)e[F]=t.readInt32BE(F*4),e[F+1]=t.readInt32BE(F*4+4);for(;F<160;F+=2){var O=e[F-30],k=e[F-15*2+1],U=wme(O,k),J=Eme(k,O);O=e[F-2*2],k=e[F-2*2+1];var Y=_me(O,k),L=Ame(k,O),X=e[F-7*2],B=e[F-7*2+1],u=e[F-16*2],d=e[F-16*2+1],p=J+B|0,l=U+X+cr(p,J)|0;p=p+L|0,l=l+Y+cr(p,L)|0,p=p+d|0,l=l+u+cr(p,d)|0,e[F]=l,e[F+1]=p}for(var y=0;y<160;y+=2){l=e[y],p=e[y+1];var g=Wk(n,r,a),w=Wk(b,v,E),x=Kk(n,b),f=Kk(b,n),m=Zk(s,M),A=Zk(M,s),_=Vk[y],S=Vk[y+1],$=qk(s,o,c),V=qk(M,T,P),I=D+A|0,W=h+m+cr(I,D)|0;I=I+V|0,W=W+$+cr(I,V)|0,I=I+S|0,W=W+_+cr(I,S)|0,I=I+p|0,W=W+l+cr(I,p)|0;var z=f+w|0,Z=x+g+cr(z,f)|0;h=c,D=P,c=o,P=T,o=s,T=M,M=C+I|0,s=i+W+cr(M,C)|0,i=a,C=E,a=r,E=v,r=n,v=b,b=I+z|0,n=W+Z+cr(b,I)|0}this._al=this._al+b|0,this._bl=this._bl+v|0,this._cl=this._cl+E|0,this._dl=this._dl+C|0,this._el=this._el+M|0,this._fl=this._fl+T|0,this._gl=this._gl+P|0,this._hl=this._hl+D|0,this._ah=this._ah+n+cr(this._al,b)|0,this._bh=this._bh+r+cr(this._bl,v)|0,this._ch=this._ch+a+cr(this._cl,E)|0,this._dh=this._dh+i+cr(this._dl,C)|0,this._eh=this._eh+s+cr(this._el,M)|0,this._fh=this._fh+o+cr(this._fl,T)|0,this._gh=this._gh+c+cr(this._gl,P)|0,this._hh=this._hh+h+cr(this._hl,D)|0};Jb.prototype._hash=function(){var t=xme.allocUnsafe(64);function e(n,r,a){t.writeInt32BE(n,a),t.writeInt32BE(r,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),t};var vG=Jb,Cme=zn,Sme=vG,Tme=s1,Bme=Yi.Buffer,Mme=new Array(160);function V8(){this.init(),this._w=Mme,Tme.call(this,128,112)}Cme(V8,Sme);V8.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};V8.prototype._hash=function(){var t=Bme.allocUnsafe(48);function e(n,r,a){t.writeInt32BE(n,a),t.writeInt32BE(r,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),t};var Fme=V8,Ad=hG.exports=function(e){e=e.toLowerCase();var n=Ad[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n};Ad.sha=qye;Ad.sha1=tme;Ad.sha224=bme;Ad.sha256=gG;Ad.sha384=Fme;Ad.sha512=vG;var Dme=hG.exports,wG=Yi.Buffer,EG=ho.Transform,kme=E6.StringDecoder,Ime=zn;function Ns(t){EG.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}Ime(Ns,EG);Ns.prototype.update=function(t,e,n){typeof t=="string"&&(t=wG.from(t,e));var r=this._update(t);return this.hashMode?this:(n&&(r=this._toString(r,n)),r)};Ns.prototype.setAutoPadding=function(){};Ns.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Ns.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Ns.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Ns.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(a){r=a}finally{n(r)}};Ns.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)};Ns.prototype._finalOrDigest=function(t){var e=this.__final()||wG.alloc(0);return t&&(e=this._toString(e,t,!0)),e};Ns.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new kme(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r};var Ome=Ns,Pme=zn,Rme=Pye,Nme=$ye,$me=Dme,_G=Ome;function q8(t){_G.call(this,"digest"),this._hash=t}Pme(q8,_G);q8.prototype._update=function(t){this._hash.update(t)};q8.prototype._final=function(){return this._hash.digest()};var Lme=function(e){return e=e.toLowerCase(),e==="md5"?new Rme:e==="rmd160"||e==="ripemd160"?new Nme:new q8($me(e))};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var e=a1,n=Lme,r=Ra,a=Cu,i=ni,s=function(k,U){switch(U===void 0&&(U=256),(0,i.assertIsBuffer)(k),U){case 224:return(0,e.keccak224)(k);case 256:return(0,e.keccak256)(k);case 384:return(0,e.keccak384)(k);case 512:return(0,e.keccak512)(k);default:throw new Error("Invald algorithm: keccak".concat(U))}};t.keccak=s;var o=function(k){return(0,t.keccak)(k)};t.keccak256=o;var c=function(k,U){U===void 0&&(U=256),(0,i.assertIsString)(k);var J=Buffer.from(k,"utf8");return(0,t.keccak)(J,U)};t.keccakFromString=c;var h=function(k,U){return U===void 0&&(U=256),(0,i.assertIsHexString)(k),(0,t.keccak)((0,a.toBuffer)(k),U)};t.keccakFromHexString=h;var b=function(k,U){return U===void 0&&(U=256),(0,i.assertIsArray)(k),(0,t.keccak)((0,a.toBuffer)(k),U)};t.keccakFromArray=b;var v=function(k){return k=(0,a.toBuffer)(k),n("sha256").update(k).digest()},E=function(k){return(0,i.assertIsBuffer)(k),v(k)};t.sha256=E;var C=function(k){return(0,i.assertIsString)(k),v(k)};t.sha256FromString=C;var M=function(k){return(0,i.assertIsArray)(k),v(k)};t.sha256FromArray=M;var T=function(k,U){k=(0,a.toBuffer)(k);var J=n("rmd160").update(k).digest();return U===!0?(0,a.setLengthLeft)(J,32):J},P=function(k,U){return(0,i.assertIsBuffer)(k),T(k,U)};t.ripemd160=P;var D=function(k,U){return(0,i.assertIsString)(k),T(k,U)};t.ripemd160FromString=D;var F=function(k,U){return(0,i.assertIsArray)(k),T(k,U)};t.ripemd160FromArray=F;var O=function(k){return(0,t.keccak)(r.rlp.encode(k))};t.rlphash=O})(O8);var W8={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var e=Ra,n=tn,r=Cu;function a(h){return"0x".concat(h.toString(16))}t.bnToHex=a;function i(h){return(0,r.unpadBuffer)(h.toArrayLike(Buffer))}t.bnToUnpaddedBuffer=i;function s(h){return i(h)}t.bnToRlp=s;var o;(function(h){h[h.Number=0]="Number",h[h.BN=1]="BN",h[h.Buffer=2]="Buffer",h[h.PrefixedHexString=3]="PrefixedHexString"})(o=t.TypeOutput||(t.TypeOutput={}));function c(h,b){if(h===null)return null;if(h!==void 0){if(typeof h=="string"&&!(0,n.isHexString)(h))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(h));if(typeof h=="number"&&!Number.isSafeInteger(h))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var v=(0,r.toBuffer)(h);if(b===o.Buffer)return v;if(b===o.BN)return new e.BN(v);if(b===o.Number){var E=new e.BN(v),C=new e.BN(Number.MAX_SAFE_INTEGER.toString());if(E.gt(C))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return E.toNumber()}else return"0x".concat(v.toString("hex"))}}t.toType=c})(W8);(function(t){var e=de&&de.__read||function(B,u){var d=typeof Symbol=="function"&&B[Symbol.iterator];if(!d)return B;var p=d.call(B),l,y=[],g;try{for(;(u===void 0||u-- >0)&&!(l=p.next()).done;)y.push(l.value)}catch(w){g={error:w}}finally{try{l&&!l.done&&(d=p.return)&&d.call(p)}finally{if(g)throw g.error}}return y},n=de&&de.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var r=n(km()),a=Ra,i=NC,s=tn,o=BC,c=Cu,h=O8,b=ni,v=W8,E=function(){function B(u,d,p,l){u===void 0&&(u=new a.BN(0)),d===void 0&&(d=new a.BN(0)),p===void 0&&(p=o.KECCAK256_RLP),l===void 0&&(l=o.KECCAK256_NULL),this.nonce=u,this.balance=d,this.stateRoot=p,this.codeHash=l,this._validate()}return B.fromAccountData=function(u){var d=u.nonce,p=u.balance,l=u.stateRoot,y=u.codeHash;return new B(d?new a.BN((0,c.toBuffer)(d)):void 0,p?new a.BN((0,c.toBuffer)(p)):void 0,l?(0,c.toBuffer)(l):void 0,y?(0,c.toBuffer)(y):void 0)},B.fromRlpSerializedAccount=function(u){var d=a.rlp.decode(u);if(!Array.isArray(d))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(d)},B.fromValuesArray=function(u){var d=e(u,4),p=d[0],l=d[1],y=d[2],g=d[3];return new B(new a.BN(p),new a.BN(l),y,g)},B.prototype._validate=function(){if(this.nonce.lt(new a.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new a.BN(0)))throw new Error("balance must be greater than zero");if(this.stateRoot.length!==32)throw new Error("stateRoot must have a length of 32");if(this.codeHash.length!==32)throw new Error("codeHash must have a length of 32")},B.prototype.raw=function(){return[(0,v.bnToUnpaddedBuffer)(this.nonce),(0,v.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},B.prototype.serialize=function(){return a.rlp.encode(this.raw())},B.prototype.isContract=function(){return!this.codeHash.equals(o.KECCAK256_NULL)},B.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(o.KECCAK256_NULL)},B}();t.Account=E;var C=function(B){try{(0,b.assertIsString)(B)}catch{return!1}return/^0x[0-9a-fA-F]{40}$/.test(B)};t.isValidAddress=C;var M=function(B,u){(0,b.assertIsHexString)(B);var d=(0,s.stripHexPrefix)(B).toLowerCase(),p="";if(u){var l=(0,v.toType)(u,v.TypeOutput.BN);p=l.toString()+"0x"}for(var y=(0,h.keccakFromString)(p+d).toString("hex"),g="0x",w=0;w=8?g+=d[w].toUpperCase():g+=d[w];return g};t.toChecksumAddress=M;var T=function(B,u){return(0,t.isValidAddress)(B)&&(0,t.toChecksumAddress)(B,u)===B};t.isValidChecksumAddress=T;var P=function(B,u){(0,b.assertIsBuffer)(B),(0,b.assertIsBuffer)(u);var d=new a.BN(u);return d.isZero()?(0,h.rlphash)([B,null]).slice(-20):(0,h.rlphash)([B,Buffer.from(d.toArray())]).slice(-20)};t.generateAddress=P;var D=function(B,u,d){(0,b.assertIsBuffer)(B),(0,b.assertIsBuffer)(u),(0,b.assertIsBuffer)(d),(0,r.default)(B.length===20),(0,r.default)(u.length===32);var p=(0,h.keccak256)(Buffer.concat([Buffer.from("ff","hex"),B,u,(0,h.keccak256)(d)]));return p.slice(-20)};t.generateAddress2=D;var F=function(B){return(0,i.privateKeyVerify)(B)};t.isValidPrivate=F;var O=function(B,u){return u===void 0&&(u=!1),(0,b.assertIsBuffer)(B),B.length===64?(0,i.publicKeyVerify)(Buffer.concat([Buffer.from([4]),B])):u?(0,i.publicKeyVerify)(B):!1};t.isValidPublic=O;var k=function(B,u){return u===void 0&&(u=!1),(0,b.assertIsBuffer)(B),u&&B.length!==64&&(B=Buffer.from((0,i.publicKeyConvert)(B,!1).slice(1))),(0,r.default)(B.length===64),(0,h.keccak)(B).slice(-20)};t.pubToAddress=k,t.publicToAddress=t.pubToAddress;var U=function(B){return(0,b.assertIsBuffer)(B),Buffer.from((0,i.publicKeyCreate)(B,!1)).slice(1)};t.privateToPublic=U;var J=function(B){return(0,t.publicToAddress)((0,t.privateToPublic)(B))};t.privateToAddress=J;var Y=function(B){return(0,b.assertIsBuffer)(B),B.length!==64&&(B=Buffer.from((0,i.publicKeyConvert)(B,!1).slice(1))),B};t.importPublic=Y;var L=function(){var B=20,u=(0,c.zeros)(B);return(0,c.bufferToHex)(u)};t.zeroAddress=L;var X=function(B){try{(0,b.assertIsString)(B)}catch{return!1}var u=(0,t.zeroAddress)();return u===B};t.isZeroAddress=X})(kC);var K8={},Ume=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K8,"__esModule",{value:!0});K8.Address=void 0;var $u=Ume(km()),n3=Ra,Qk=Cu,V1=kC,jme=function(){function t(e){(0,$u.default)(e.length===20,"Invalid address length"),this.buf=e}return t.zero=function(){return new t((0,Qk.zeros)(20))},t.fromString=function(e){return(0,$u.default)((0,V1.isValidAddress)(e),"Invalid address"),new t((0,Qk.toBuffer)(e))},t.fromPublicKey=function(e){(0,$u.default)(Buffer.isBuffer(e),"Public key should be Buffer");var n=(0,V1.pubToAddress)(e);return new t(n)},t.fromPrivateKey=function(e){(0,$u.default)(Buffer.isBuffer(e),"Private key should be Buffer");var n=(0,V1.privateToAddress)(e);return new t(n)},t.generate=function(e,n){return(0,$u.default)(n3.BN.isBN(n)),new t((0,V1.generateAddress)(e.buf,n.toArrayLike(Buffer)))},t.generate2=function(e,n,r){return(0,$u.default)(Buffer.isBuffer(n)),(0,$u.default)(Buffer.isBuffer(r)),new t((0,V1.generateAddress2)(e.buf,n,r))},t.prototype.equals=function(e){return this.buf.equals(e.buf)},t.prototype.isZero=function(){return this.equals(t.zero())},t.prototype.isPrecompileOrSystemAddress=function(){var e=new n3.BN(this.buf),n=new n3.BN(0),r=new n3.BN("ffff","hex");return e.gte(n)&&e.lte(r)},t.prototype.toString=function(){return"0x"+this.buf.toString("hex")},t.prototype.toBuffer=function(){return Buffer.from(this.buf)},t}();K8.Address=jme;var Zr={};Object.defineProperty(Zr,"__esModule",{value:!0});Zr.hashPersonalMessage=Zr.isValidSignature=Zr.fromRpcSig=Zr.toCompactSig=Zr.toRpcSig=Zr.ecrecover=Zr.ecsign=void 0;var Kw=NC,xy=Ra,Ni=Cu,Hme=O8,zme=ni,lo=W8;function Gme(t,e,n){var r=(0,Kw.ecdsaSign)(t,e),a=r.signature,i=r.recid,s=Buffer.from(a.slice(0,32)),o=Buffer.from(a.slice(32,64));if(!n||typeof n=="number"){if(n&&!Number.isSafeInteger(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var c=n?i+(n*2+35):i+27;return{r:s,s:o,v:c}}var h=(0,lo.toType)(n,lo.TypeOutput.BN),b=h.muln(2).addn(35).addn(i).toArrayLike(Buffer);return{r:s,s:o,v:b}}Zr.ecsign=Gme;function Z8(t,e){var n=(0,lo.toType)(t,lo.TypeOutput.BN);if(n.eqn(0)||n.eqn(1))return(0,lo.toType)(t,lo.TypeOutput.BN);if(!e)return n.subn(27);var r=(0,lo.toType)(e,lo.TypeOutput.BN);return n.sub(r.muln(2).addn(35))}function Q8(t){var e=new xy.BN(t);return e.eqn(0)||e.eqn(1)}var Vme=function(t,e,n,r,a){var i=Buffer.concat([(0,Ni.setLengthLeft)(n,32),(0,Ni.setLengthLeft)(r,32)],64),s=Z8(e,a);if(!Q8(s))throw new Error("Invalid signature v value");var o=(0,Kw.ecdsaRecover)(i,s.toNumber(),t);return Buffer.from((0,Kw.publicKeyConvert)(o,!1).slice(1))};Zr.ecrecover=Vme;var qme=function(t,e,n,r){var a=Z8(t,r);if(!Q8(a))throw new Error("Invalid signature v value");return(0,Ni.bufferToHex)(Buffer.concat([(0,Ni.setLengthLeft)(e,32),(0,Ni.setLengthLeft)(n,32),(0,Ni.toBuffer)(t)]))};Zr.toRpcSig=qme;var Wme=function(t,e,n,r){var a=Z8(t,r);if(!Q8(a))throw new Error("Invalid signature v value");var i=(0,lo.toType)(t,lo.TypeOutput.Number),s=n;return(i>28&&i%2===1||i===1||i===28)&&(s=Buffer.from(n),s[0]|=128),(0,Ni.bufferToHex)(Buffer.concat([(0,Ni.setLengthLeft)(e,32),(0,Ni.setLengthLeft)(s,32)]))};Zr.toCompactSig=Wme;var Kme=function(t){var e=(0,Ni.toBuffer)(t),n,r,a;if(e.length>=65)n=e.slice(0,32),r=e.slice(32,64),a=(0,Ni.bufferToInt)(e.slice(64));else if(e.length===64)n=e.slice(0,32),r=e.slice(32,64),a=(0,Ni.bufferToInt)(e.slice(32,33))>>7,r[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a+=27),{v:a,r:n,s:r}};Zr.fromRpcSig=Kme;var Zme=function(t,e,n,r,a){r===void 0&&(r=!0);var i=new xy.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new xy.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(e.length!==32||n.length!==32||!Q8(Z8(t,a)))return!1;var o=new xy.BN(e),c=new xy.BN(n);return!(o.isZero()||o.gt(s)||c.isZero()||c.gt(s)||r&&c.cmp(i)===1)};Zr.isValidSignature=Zme;var Qme=function(t){(0,zme.assertIsBuffer)(t);var e=Buffer.from(`Ethereum Signed Message: -`.concat(t.length),"utf-8");return(0,Hme.keccak)(Buffer.concat([e,t]))};Zr.hashPersonalMessage=Qme;var J8={},Jme=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(J8,"__esModule",{value:!0});J8.defineProperties=void 0;var Jk=Jme(km()),Xme=tn,Xk=Ra,r3=Cu,Yme=function(t,e,n){if(t.raw=[],t._fields=[],t.toJSON=function(a){if(a===void 0&&(a=!1),a){var i={};return t._fields.forEach(function(s){i[s]="0x".concat(t[s].toString("hex"))}),i}return(0,r3.baToJSON)(t.raw)},t.serialize=function(){return Xk.rlp.encode(t.raw)},e.forEach(function(a,i){t._fields.push(a.name);function s(){return t.raw[i]}function o(c){c=(0,r3.toBuffer)(c),c.toString("hex")==="00"&&!a.allowZero&&(c=Buffer.allocUnsafe(0)),a.allowLess&&a.length?(c=(0,r3.unpadBuffer)(c),(0,Jk.default)(a.length>=c.length,"The field ".concat(a.name," must not have more ").concat(a.length," bytes"))):!(a.allowZero&&c.length===0)&&a.length&&(0,Jk.default)(a.length===c.length,"The field ".concat(a.name," must have byte length of ").concat(a.length)),t.raw[i]=c}Object.defineProperty(t,a.name,{enumerable:!0,configurable:!0,get:s,set:o}),a.default&&(t[a.name]=a.default),a.alias&&Object.defineProperty(t,a.alias,{enumerable:!1,configurable:!0,set:o,get:s})}),n)if(typeof n=="string"&&(n=Buffer.from((0,Xme.stripHexPrefix)(n),"hex")),Buffer.isBuffer(n)&&(n=Xk.rlp.decode(n)),Array.isArray(n)){if(n.length>t._fields.length)throw new Error("wrong number of fields in data");n.forEach(function(a,i){t[t._fields[i]]=(0,r3.toBuffer)(a)})}else if(typeof n=="object"){var r=Object.keys(n);e.forEach(function(a){r.indexOf(a.name)!==-1&&(t[a.name]=n[a.name]),r.indexOf(a.alias)!==-1&&(t[a.alias]=n[a.alias])})}else throw new Error("invalid data")};J8.defineProperties=Yme;(function(t){var e=de&&de.__createBinding||(Object.create?function(a,i,s,o){o===void 0&&(o=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,o,c)}:function(a,i,s,o){o===void 0&&(o=s),a[o]=i[s]}),n=de&&de.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,n(BC,t),n(kC,t),n(K8,t),n(O8,t),n(Zr,t),n(Cu,t),n(J8,t),n(Ra,t),n(W8,t);var r=tn;Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return r.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return r.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return r.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return r.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return r.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return r.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return r.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return r.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return r.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return r.isHexString}})})(TC);var d9,Yk;function ebe(){return Yk||(Yk=1,d9=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),d9}var tbe=jt;jt.Node=od;jt.create=jt;function jt(t){var e=this;if(e instanceof jt||(e=new jt),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(a){e.push(a)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=e;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;r!==null;a++)n=t(n,r.value,a),r=r.next;return n};jt.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;r!==null;a--)n=t(n,r.value,a),r=r.prev;return n};jt.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;n!==null;e++)t[e]=n.value,n=n.next;return t};jt.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;n!==null;e++)t[e]=n.value,n=n.prev;return t};jt.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new jt;if(ethis.length&&(e=this.length);for(var r=0,a=this.head;a!==null&&rthis.length&&(e=this.length);for(var r=this.length,a=this.tail;a!==null&&r>e;r--)a=a.prev;for(;a!==null&&r>t;r--,a=a.prev)n.push(a.value);return n};jt.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,a=this.head;a!==null&&r1;class sbe{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[qu]=e.max||1/0;const n=e.length||h9;if(this[Kd]=typeof n!="function"?h9:n,this[qy]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[rf]=e.maxAge||0,this[qo]=e.dispose,this[eI]=e.noDisposeOnSet||!1,this[AG]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[qu]=e||1/0,q1(this)}get max(){return this[qu]}set allowStale(e){this[qy]=!!e}get allowStale(){return this[qy]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[rf]=e,q1(this)}get maxAge(){return this[rf]}set lengthCalculator(e){typeof e!="function"&&(e=h9),e!==this[Kd]&&(this[Kd]=e,this[Jo]=0,this[ur].forEach(n=>{n.length=this[Kd](n.value,n.key),this[Jo]+=n.length})),q1(this)}get lengthCalculator(){return this[Kd]}get length(){return this[Jo]}get itemCount(){return this[ur].length}rforEach(e,n){n=n||this;for(let r=this[ur].tail;r!==null;){const a=r.prev;tI(this,e,r,n),r=a}}forEach(e,n){n=n||this;for(let r=this[ur].head;r!==null;){const a=r.next;tI(this,e,r,n),r=a}}keys(){return this[ur].toArray().map(e=>e.key)}values(){return this[ur].toArray().map(e=>e.value)}reset(){this[qo]&&this[ur]&&this[ur].length&&this[ur].forEach(e=>this[qo](e.key,e.value)),this[cs]=new Map,this[ur]=new ibe,this[Jo]=0}dump(){return this[ur].map(e=>A6(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ur]}set(e,n,r){if(r=r||this[rf],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const a=r?Date.now():0,i=this[Kd](n,e);if(this[cs].has(e)){if(i>this[qu])return Q0(this,this[cs].get(e)),!1;const c=this[cs].get(e).value;return this[qo]&&(this[eI]||this[qo](e,c.value)),c.now=a,c.maxAge=r,c.value=n,this[Jo]+=i-c.length,c.length=i,this.get(e),q1(this),!0}const s=new obe(e,n,i,a,r);return s.length>this[qu]?(this[qo]&&this[qo](e,n),!1):(this[Jo]+=s.length,this[ur].unshift(s),this[cs].set(e,this[ur].head),q1(this),!0)}has(e){if(!this[cs].has(e))return!1;const n=this[cs].get(e).value;return!A6(this,n)}get(e){return p9(this,e,!0)}peek(e){return p9(this,e,!1)}pop(){const e=this[ur].tail;return e?(Q0(this,e),e.value):null}del(e){Q0(this,this[cs].get(e))}load(e){this.reset();const n=Date.now();for(let r=e.length-1;r>=0;r--){const a=e[r],i=a.e||0;if(i===0)this.set(a.k,a.v);else{const s=i-n;s>0&&this.set(a.k,a.v,s)}}}prune(){this[cs].forEach((e,n)=>p9(this,n,!1))}}const p9=(t,e,n)=>{const r=t[cs].get(e);if(r){const a=r.value;if(A6(t,a)){if(Q0(t,r),!t[qy])return}else n&&(t[AG]&&(r.value.now=Date.now()),t[ur].unshiftNode(r));return a.value}},A6=(t,e)=>{if(!e||!e.maxAge&&!t[rf])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[rf]&&n>t[rf]},q1=t=>{if(t[Jo]>t[qu])for(let e=t[ur].tail;t[Jo]>t[qu]&&e!==null;){const n=e.prev;Q0(t,e),e=n}},Q0=(t,e)=>{if(e){const n=e.value;t[qo]&&t[qo](n.key,n.value),t[Jo]-=n.length,t[cs].delete(n.key),t[ur].removeNode(e)}};class obe{constructor(e,n,r,a,i){this.key=e,this.value=n,this.length=r,this.now=a,this.maxAge=i||0}}const tI=(t,e,n,r)=>{let a=n.value;A6(t,a)&&(Q0(t,n),t[qy]||(a=void 0)),a&&e.call(r,a.value,a.key,t)};var CG=sbe;const cbe=Object.freeze({loose:!0}),lbe=Object.freeze({}),ube=t=>t?typeof t!="object"?cbe:t:lbe;var JC=ube,Zw={exports:{}};const fbe="2.0.0",SG=256,dbe=Number.MAX_SAFE_INTEGER||9007199254740991,hbe=16,pbe=SG-6,ybe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var XC={MAX_LENGTH:SG,MAX_SAFE_COMPONENT_LENGTH:hbe,MAX_SAFE_BUILD_LENGTH:pbe,MAX_SAFE_INTEGER:dbe,RELEASE_TYPES:ybe,SEMVER_SPEC_VERSION:fbe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},y9={};const mbe=typeof process=="object"&&y9&&y9.NODE_DEBUG&&/\bsemver\b/i.test(y9.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var X8=mbe;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:a}=XC,i=X8;e=t.exports={};const s=e.re=[],o=e.safeRe=[],c=e.src=[],h=e.t={};let b=0;const v="[a-zA-Z0-9-]",E=[["\\s",1],["\\d",a],[v,r]],C=T=>{for(const[P,D]of E)T=T.split(`${P}*`).join(`${P}{0,${D}}`).split(`${P}+`).join(`${P}{1,${D}}`);return T},M=(T,P,D)=>{const F=C(P),O=b++;i(T,O,P),h[T]=O,c[O]=P,s[O]=new RegExp(P,D?"g":void 0),o[O]=new RegExp(F,D?"g":void 0)};M("NUMERICIDENTIFIER","0|[1-9]\\d*"),M("NUMERICIDENTIFIERLOOSE","\\d+"),M("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${v}*`),M("MAINVERSION",`(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})`),M("MAINVERSIONLOOSE",`(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})`),M("PRERELEASEIDENTIFIER",`(?:${c[h.NUMERICIDENTIFIER]}|${c[h.NONNUMERICIDENTIFIER]})`),M("PRERELEASEIDENTIFIERLOOSE",`(?:${c[h.NUMERICIDENTIFIERLOOSE]}|${c[h.NONNUMERICIDENTIFIER]})`),M("PRERELEASE",`(?:-(${c[h.PRERELEASEIDENTIFIER]}(?:\\.${c[h.PRERELEASEIDENTIFIER]})*))`),M("PRERELEASELOOSE",`(?:-?(${c[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[h.PRERELEASEIDENTIFIERLOOSE]})*))`),M("BUILDIDENTIFIER",`${v}+`),M("BUILD",`(?:\\+(${c[h.BUILDIDENTIFIER]}(?:\\.${c[h.BUILDIDENTIFIER]})*))`),M("FULLPLAIN",`v?${c[h.MAINVERSION]}${c[h.PRERELEASE]}?${c[h.BUILD]}?`),M("FULL",`^${c[h.FULLPLAIN]}$`),M("LOOSEPLAIN",`[v=\\s]*${c[h.MAINVERSIONLOOSE]}${c[h.PRERELEASELOOSE]}?${c[h.BUILD]}?`),M("LOOSE",`^${c[h.LOOSEPLAIN]}$`),M("GTLT","((?:<|>)?=?)"),M("XRANGEIDENTIFIERLOOSE",`${c[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),M("XRANGEIDENTIFIER",`${c[h.NUMERICIDENTIFIER]}|x|X|\\*`),M("XRANGEPLAIN",`[v=\\s]*(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:${c[h.PRERELEASE]})?${c[h.BUILD]}?)?)?`),M("XRANGEPLAINLOOSE",`[v=\\s]*(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:${c[h.PRERELEASELOOSE]})?${c[h.BUILD]}?)?)?`),M("XRANGE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAIN]}$`),M("XRANGELOOSE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAINLOOSE]}$`),M("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),M("COERCERTL",c[h.COERCE],!0),M("LONETILDE","(?:~>?)"),M("TILDETRIM",`(\\s*)${c[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",M("TILDE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAIN]}$`),M("TILDELOOSE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAINLOOSE]}$`),M("LONECARET","(?:\\^)"),M("CARETTRIM",`(\\s*)${c[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",M("CARET",`^${c[h.LONECARET]}${c[h.XRANGEPLAIN]}$`),M("CARETLOOSE",`^${c[h.LONECARET]}${c[h.XRANGEPLAINLOOSE]}$`),M("COMPARATORLOOSE",`^${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]})$|^$`),M("COMPARATOR",`^${c[h.GTLT]}\\s*(${c[h.FULLPLAIN]})$|^$`),M("COMPARATORTRIM",`(\\s*)${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]}|${c[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",M("HYPHENRANGE",`^\\s*(${c[h.XRANGEPLAIN]})\\s+-\\s+(${c[h.XRANGEPLAIN]})\\s*$`),M("HYPHENRANGELOOSE",`^\\s*(${c[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[h.XRANGEPLAINLOOSE]})\\s*$`),M("STAR","(<|>)?=?\\s*\\*"),M("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),M("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Zw,Zw.exports);var YC=Zw.exports;const nI=/^[0-9]+$/,TG=(t,e)=>{const n=nI.test(t),r=nI.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tTG(e,t);var gbe={compareIdentifiers:TG,rcompareIdentifiers:bbe};const a3=X8,{MAX_LENGTH:rI,MAX_SAFE_INTEGER:i3}=XC,{safeRe:aI,t:iI}=YC,xbe=JC,{compareIdentifiers:Zd}=gbe;let vbe=class Gs{constructor(e,n){if(n=xbe(n),e instanceof Gs){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>rI)throw new TypeError(`version is longer than ${rI} characters`);a3("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?aI[iI.LOOSE]:aI[iI.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>i3||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i3||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i3||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const i=+a;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let i=[n,a];r===!1&&(i=[n]),Zd(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var eS=vbe;const sI=eS,wbe=(t,e,n)=>new sI(t,n).compare(new sI(e,n));var o1=wbe;const Ebe=o1,_be=(t,e,n)=>Ebe(t,e,n)===0;var Abe=_be;const Cbe=o1,Sbe=(t,e,n)=>Cbe(t,e,n)!==0;var Tbe=Sbe;const Bbe=o1,Mbe=(t,e,n)=>Bbe(t,e,n)>0;var Fbe=Mbe;const Dbe=o1,kbe=(t,e,n)=>Dbe(t,e,n)>=0;var Ibe=kbe;const Obe=o1,Pbe=(t,e,n)=>Obe(t,e,n)<0;var Rbe=Pbe;const Nbe=o1,$be=(t,e,n)=>Nbe(t,e,n)<=0;var Lbe=$be;const Ube=Abe,jbe=Tbe,Hbe=Fbe,zbe=Ibe,Gbe=Rbe,Vbe=Lbe,qbe=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return Ube(t,n,r);case"!=":return jbe(t,n,r);case">":return Hbe(t,n,r);case">=":return zbe(t,n,r);case"<":return Gbe(t,n,r);case"<=":return Vbe(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};var Wbe=qbe,m9,oI;function Kbe(){if(oI)return m9;oI=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(b,v){if(v=n(v),b instanceof e){if(b.loose===!!v.loose)return b;b=b.value}b=b.trim().split(/\s+/).join(" "),s("comparator",b,v),this.options=v,this.loose=!!v.loose,this.parse(b),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(b){const v=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],E=b.match(v);if(!E)throw new TypeError(`Invalid comparator: ${b}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new o(E[2],this.options.loose):this.semver=t}toString(){return this.value}test(b){if(s("Comparator.test",b,this.options.loose),this.semver===t||b===t)return!0;if(typeof b=="string")try{b=new o(b,this.options)}catch{return!1}return i(b,this.operator,this.semver,this.options)}intersects(b,v){if(!(b instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(b.value,v).test(this.value):b.operator===""?b.value===""?!0:new c(this.value,v).test(b.semver):(v=n(v),v.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&b.operator.startsWith(">")||this.operator.startsWith("<")&&b.operator.startsWith("<")||this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")||i(this.semver,"<",b.semver,v)&&this.operator.startsWith(">")&&b.operator.startsWith("<")||i(this.semver,">",b.semver,v)&&this.operator.startsWith("<")&&b.operator.startsWith(">")))}}m9=e;const n=JC,{safeRe:r,t:a}=YC,i=Wbe,s=X8,o=eS,c=BG();return m9}var b9,cI;function BG(){if(cI)return b9;cI=1;class t{constructor(l,y){if(y=r(y),l instanceof t)return l.loose===!!y.loose&&l.includePrerelease===!!y.includePrerelease?l:new t(l.raw,y);if(l instanceof a)return this.raw=l.value,this.set=[[l]],this.format(),this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=l.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(w=>!M(w[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&T(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(l=>l.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(l){const g=((this.options.includePrerelease&&E)|(this.options.loose&&C))+":"+l,w=n.get(g);if(w)return w;const x=this.options.loose,f=x?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];l=l.replace(f,u(this.options.includePrerelease)),i("hyphen replace",l),l=l.replace(o[c.COMPARATORTRIM],h),i("comparator trim",l),l=l.replace(o[c.TILDETRIM],b),i("tilde trim",l),l=l.replace(o[c.CARETTRIM],v),i("caret trim",l);let m=l.split(" ").map($=>D($,this.options)).join(" ").split(/\s+/).map($=>B($,this.options));x&&(m=m.filter($=>(i("loose invalid filter",$,this.options),!!$.match(o[c.COMPARATORLOOSE])))),i("range list",m);const A=new Map,_=m.map($=>new a($,this.options));for(const $ of _){if(M($))return[$];A.set($.value,$)}A.size>1&&A.has("")&&A.delete("");const S=[...A.values()];return n.set(g,S),S}intersects(l,y){if(!(l instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>P(g,y)&&l.set.some(w=>P(w,y)&&g.every(x=>w.every(f=>x.intersects(f,y)))))}test(l){if(!l)return!1;if(typeof l=="string")try{l=new s(l,this.options)}catch{return!1}for(let y=0;yp.value==="<0.0.0-0",T=p=>p.value==="",P=(p,l)=>{let y=!0;const g=p.slice();let w=g.pop();for(;y&&g.length;)y=g.every(x=>w.intersects(x,l)),w=g.pop();return y},D=(p,l)=>(i("comp",p,l),p=U(p,l),i("caret",p),p=O(p,l),i("tildes",p),p=Y(p,l),i("xrange",p),p=X(p,l),i("stars",p),p),F=p=>!p||p.toLowerCase()==="x"||p==="*",O=(p,l)=>p.trim().split(/\s+/).map(y=>k(y,l)).join(" "),k=(p,l)=>{const y=l.loose?o[c.TILDELOOSE]:o[c.TILDE];return p.replace(y,(g,w,x,f,m)=>{i("tilde",p,g,w,x,f,m);let A;return F(w)?A="":F(x)?A=`>=${w}.0.0 <${+w+1}.0.0-0`:F(f)?A=`>=${w}.${x}.0 <${w}.${+x+1}.0-0`:m?(i("replaceTilde pr",m),A=`>=${w}.${x}.${f}-${m} <${w}.${+x+1}.0-0`):A=`>=${w}.${x}.${f} <${w}.${+x+1}.0-0`,i("tilde return",A),A})},U=(p,l)=>p.trim().split(/\s+/).map(y=>J(y,l)).join(" "),J=(p,l)=>{i("caret",p,l);const y=l.loose?o[c.CARETLOOSE]:o[c.CARET],g=l.includePrerelease?"-0":"";return p.replace(y,(w,x,f,m,A)=>{i("caret",p,w,x,f,m,A);let _;return F(x)?_="":F(f)?_=`>=${x}.0.0${g} <${+x+1}.0.0-0`:F(m)?x==="0"?_=`>=${x}.${f}.0${g} <${x}.${+f+1}.0-0`:_=`>=${x}.${f}.0${g} <${+x+1}.0.0-0`:A?(i("replaceCaret pr",A),x==="0"?f==="0"?_=`>=${x}.${f}.${m}-${A} <${x}.${f}.${+m+1}-0`:_=`>=${x}.${f}.${m}-${A} <${x}.${+f+1}.0-0`:_=`>=${x}.${f}.${m}-${A} <${+x+1}.0.0-0`):(i("no pr"),x==="0"?f==="0"?_=`>=${x}.${f}.${m}${g} <${x}.${f}.${+m+1}-0`:_=`>=${x}.${f}.${m}${g} <${x}.${+f+1}.0-0`:_=`>=${x}.${f}.${m} <${+x+1}.0.0-0`),i("caret return",_),_})},Y=(p,l)=>(i("replaceXRanges",p,l),p.split(/\s+/).map(y=>L(y,l)).join(" ")),L=(p,l)=>{p=p.trim();const y=l.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return p.replace(y,(g,w,x,f,m,A)=>{i("xRange",p,g,w,x,f,m,A);const _=F(x),S=_||F(f),$=S||F(m),V=$;return w==="="&&V&&(w=""),A=l.includePrerelease?"-0":"",_?w===">"||w==="<"?g="<0.0.0-0":g="*":w&&V?(S&&(f=0),m=0,w===">"?(w=">=",S?(x=+x+1,f=0,m=0):(f=+f+1,m=0)):w==="<="&&(w="<",S?x=+x+1:f=+f+1),w==="<"&&(A="-0"),g=`${w+x}.${f}.${m}${A}`):S?g=`>=${x}.0.0${A} <${+x+1}.0.0-0`:$&&(g=`>=${x}.${f}.0${A} <${x}.${+f+1}.0-0`),i("xRange return",g),g})},X=(p,l)=>(i("replaceStars",p,l),p.trim().replace(o[c.STAR],"")),B=(p,l)=>(i("replaceGTE0",p,l),p.trim().replace(o[l.includePrerelease?c.GTE0PRE:c.GTE0],"")),u=p=>(l,y,g,w,x,f,m,A,_,S,$,V,I)=>(F(g)?y="":F(w)?y=`>=${g}.0.0${p?"-0":""}`:F(x)?y=`>=${g}.${w}.0${p?"-0":""}`:f?y=`>=${y}`:y=`>=${y}${p?"-0":""}`,F(_)?A="":F(S)?A=`<${+_+1}.0.0-0`:F($)?A=`<${_}.${+S+1}.0-0`:V?A=`<=${_}.${S}.${$}-${V}`:p?A=`<${_}.${S}.${+$+1}-0`:A=`<=${A}`,`${y} ${A}`.trim()),d=(p,l,y)=>{for(let g=0;g0){const w=p[g].semver;if(w.major===l.major&&w.minor===l.minor&&w.patch===l.patch)return!0}return!1}return!0};return b9}const Zbe=BG(),Qbe=(t,e,n)=>{try{e=new Zbe(e,n)}catch{return!1}return e.test(t)};var Xb=Qbe,Ct={},MG={},FG={};Object.defineProperty(FG,"__esModule",{value:!0});var DG={};const Jbe="0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",Xbe=!0,Ybe="SafeL2",e2e="1.4.1",t2e={1:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",5:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",10:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",56:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",71:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",100:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",137:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",1030:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",1101:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",1442:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",4337:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",8192:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",8194:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",8453:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",10243:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",11235:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",13337:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",17e3:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",42161:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",42220:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",54211:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",80001:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",84531:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",84532:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762",11155111:"0x29fcB43b46531BcA003ddC8FCB67FFE91900C762"},n2e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"SafeModuleTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{indexed:!1,internalType:"uint256",name:"safeTxGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gasPrice",type:"uint256"},{indexed:!1,internalType:"address",name:"gasToken",type:"address"},{indexed:!1,internalType:"address payable",name:"refundReceiver",type:"address"},{indexed:!1,internalType:"bytes",name:"signatures",type:"bytes"},{indexed:!1,internalType:"bytes",name:"additionalInfo",type:"bytes"}],name:"SafeMultiSigTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],r2e={defaultAddress:Jbe,released:Xbe,contractName:Ybe,version:e2e,networkAddresses:t2e,abi:n2e},a2e="0x41675C099F32341bf84BFc5382aF534df5C7461a",i2e=!0,s2e="Safe",o2e="1.4.1",c2e={1:"0x41675C099F32341bf84BFc5382aF534df5C7461a",5:"0x41675C099F32341bf84BFc5382aF534df5C7461a",10:"0x41675C099F32341bf84BFc5382aF534df5C7461a",56:"0x41675C099F32341bf84BFc5382aF534df5C7461a",71:"0x41675C099F32341bf84BFc5382aF534df5C7461a",100:"0x41675C099F32341bf84BFc5382aF534df5C7461a",137:"0x41675C099F32341bf84BFc5382aF534df5C7461a",1030:"0x41675C099F32341bf84BFc5382aF534df5C7461a",1101:"0x41675C099F32341bf84BFc5382aF534df5C7461a",1442:"0x41675C099F32341bf84BFc5382aF534df5C7461a",4337:"0x41675C099F32341bf84BFc5382aF534df5C7461a",8192:"0x41675C099F32341bf84BFc5382aF534df5C7461a",8194:"0x41675C099F32341bf84BFc5382aF534df5C7461a",8453:"0x41675C099F32341bf84BFc5382aF534df5C7461a",10243:"0x41675C099F32341bf84BFc5382aF534df5C7461a",11235:"0x41675C099F32341bf84BFc5382aF534df5C7461a",13337:"0x41675C099F32341bf84BFc5382aF534df5C7461a",17e3:"0x41675C099F32341bf84BFc5382aF534df5C7461a",42161:"0x41675C099F32341bf84BFc5382aF534df5C7461a",42220:"0x41675C099F32341bf84BFc5382aF534df5C7461a",54211:"0x41675C099F32341bf84BFc5382aF534df5C7461a",80001:"0x41675C099F32341bf84BFc5382aF534df5C7461a",84531:"0x41675C099F32341bf84BFc5382aF534df5C7461a",84532:"0x41675C099F32341bf84BFc5382aF534df5C7461a",11155111:"0x41675C099F32341bf84BFc5382aF534df5C7461a"},l2e=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],u2e={defaultAddress:a2e,released:i2e,contractName:s2e,version:o2e,networkAddresses:c2e,abi:l2e},f2e="0x3E5c63644E683549055b9Be8653de26E0B4CD36E",d2e=!0,h2e="GnosisSafeL2",p2e="1.3.0",y2e={1:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",5:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",10:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",11:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",12:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",18:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",25:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",28:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",30:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",31:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",39:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",40:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",41:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",44:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",46:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",50:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",51:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",56:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",57:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",61:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",63:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",69:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",71:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",81:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",82:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",83:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",97:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",100:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",106:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",108:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",111:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",122:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",123:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",137:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",148:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",155:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",169:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",204:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",246:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",250:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",255:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",280:"0x1727c2c531cf966f902E5927b98490fDFb3b2b70",288:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",291:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",300:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",321:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",322:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",324:"0x1727c2c531cf966f902E5927b98490fDFb3b2b70",336:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",338:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",420:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",424:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",570:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",588:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",592:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",595:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",599:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",686:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",787:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1030:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1088:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1101:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1111:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1112:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1115:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1116:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1230:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1231:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1284:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1285:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1287:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1294:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1442:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1559:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1663:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1807:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1890:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1891:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1984:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2001:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2002:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2019:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2020:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2021:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2221:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2222:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",2358:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",3737:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4002:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4337:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4460:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4689:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",4918:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",4919:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",5e3:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",5001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",5700:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",6102:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7332:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",7341:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",7700:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",8217:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",8453:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",9e3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",9001:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",9728:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",1e4:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10001:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10081:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",10200:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",10243:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",11235:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",11437:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",11891:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",12357:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",13337:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",17e3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",23294:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",23295:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",34443:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42161:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42170:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",42220:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",43113:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",43114:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",43288:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",44787:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",45e3:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",47805:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",54211:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",56288:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",57e3:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",58008:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",59140:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",59144:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",71401:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",71402:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",73799:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",80001:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",84531:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",84532:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",200101:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",200202:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",333999:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",421611:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",421613:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",421614:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",534351:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",534352:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",534353:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",622277:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",7777777:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",11155111:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",222000222:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",245022926:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",245022934:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",333000333:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1313161554:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",1313161555:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",16666e5:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA",16667e5:"0xfb1bffC9d739B8D520DaF37dF666da4C687191EA","11297108099":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E","11297108109":"0x3E5c63644E683549055b9Be8653de26E0B4CD36E"},m2e=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"SafeModuleTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"},{indexed:!1,internalType:"bytes",name:"data",type:"bytes"},{indexed:!1,internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{indexed:!1,internalType:"uint256",name:"safeTxGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseGas",type:"uint256"},{indexed:!1,internalType:"uint256",name:"gasPrice",type:"uint256"},{indexed:!1,internalType:"address",name:"gasToken",type:"address"},{indexed:!1,internalType:"address payable",name:"refundReceiver",type:"address"},{indexed:!1,internalType:"bytes",name:"signatures",type:"bytes"},{indexed:!1,internalType:"bytes",name:"additionalInfo",type:"bytes"}],name:"SafeMultiSigTransaction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],b2e={defaultAddress:f2e,released:d2e,contractName:h2e,version:p2e,networkAddresses:y2e,abi:m2e},g2e="0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",x2e=!0,v2e="GnosisSafe",w2e="1.3.0",E2e={1:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",5:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",10:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",11:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",12:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",18:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",25:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",28:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",30:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",31:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",39:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",40:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",41:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",44:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",46:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",50:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",51:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",56:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",57:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",61:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",63:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",69:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",71:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",81:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",82:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",83:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",97:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",100:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",106:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",108:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",111:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",122:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",123:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",137:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",148:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",155:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",169:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",204:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",246:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",250:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",255:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",280:"0xB00ce5CCcdEf57e539ddcEd01DF43a13855d9910",288:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",291:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",300:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",321:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",322:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",324:"0xB00ce5CCcdEf57e539ddcEd01DF43a13855d9910",336:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",338:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",420:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",424:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",570:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",588:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",592:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",595:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",599:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",686:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",787:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1030:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1088:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1101:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1111:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1112:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1115:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1116:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1230:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1231:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1284:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1285:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1287:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1294:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1442:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1559:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1663:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1807:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1890:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1891:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1984:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2001:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2002:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2019:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2020:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2021:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2221:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2222:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",2358:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",3737:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4002:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4337:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4460:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4689:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",4918:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",4919:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",5e3:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",5001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",5700:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",6102:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7332:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",7341:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",7700:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",8217:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",8453:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",9e3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",9001:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",9728:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",1e4:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10001:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10081:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",10200:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",10243:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",11235:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",11437:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",11891:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",12357:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",13337:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",17e3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",23294:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",23295:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",34443:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42161:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42170:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",42220:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",43113:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",43114:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",43288:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",44787:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",45e3:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",47805:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",54211:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",56288:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",57e3:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",58008:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",59140:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",59144:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",71401:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",71402:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",73799:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",80001:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",84531:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",84532:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",200101:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",200202:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",333999:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",421611:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",421613:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",421614:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",534351:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",534352:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",534353:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",622277:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",7777777:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",11155111:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",222000222:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",245022926:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",245022934:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",333000333:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1313161554:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",1313161555:"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552",16666e5:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938",16667e5:"0x69f4D1788e39c87893C980c06EdF4b7f686e2938","11297108099":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552","11297108109":"0xd9Db270c1B5E3Bd161E8c8503c55cEABeE709552"},_2e=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],A2e={defaultAddress:g2e,released:x2e,contractName:v2e,version:w2e,networkAddresses:E2e,abi:_2e},C2e="0x6851D6fDFAfD08c0295C392436245E5bc78B0185",S2e=!0,T2e="GnosisSafe",B2e="1.2.0",M2e={1:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",4:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",5:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",42:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",88:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",100:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",246:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185",73799:"0x6851D6fDFAfD08c0295C392436245E5bc78B0185"},F2e=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],D2e={defaultAddress:C2e,released:S2e,contractName:T2e,version:B2e,networkAddresses:M2e,abi:F2e},k2e="0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",I2e=!0,O2e="GnosisSafe",P2e="1.1.1",R2e={1:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",4:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",5:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",42:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",88:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",100:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",246:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F",73799:"0x34CfAC646f301356fAa8B21e94227e3583Fe3F5F"},N2e=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],$2e={defaultAddress:k2e,released:I2e,contractName:O2e,version:P2e,networkAddresses:R2e,abi:N2e},L2e="0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",U2e=!0,j2e="GnosisSafe",H2e="1.0.0",z2e={1:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",4:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",5:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",42:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A",100:"0xb6029EA3B2c51D09a50B53CA8012FeEB05bDa35A"},G2e=[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}],V2e={defaultAddress:L2e,released:U2e,contractName:j2e,version:H2e,networkAddresses:z2e,abi:G2e};var Tu={};const q2e=Object.freeze({loose:!0}),W2e=Object.freeze({}),K2e=t=>t?typeof t!="object"?q2e:t:W2e;var tS=K2e,Qw={exports:{}};const Z2e="2.0.0",Q2e=256,J2e=Number.MAX_SAFE_INTEGER||9007199254740991,X2e=16,Y2e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var nS={MAX_LENGTH:Q2e,MAX_SAFE_COMPONENT_LENGTH:X2e,MAX_SAFE_INTEGER:J2e,RELEASE_TYPES:Y2e,SEMVER_SPEC_VERSION:Z2e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},g9={};const e3e=typeof process=="object"&&g9&&g9.NODE_DEBUG&&/\bsemver\b/i.test(g9.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};var Y8=e3e;(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n}=nS,r=Y8;e=t.exports={};const a=e.re=[],i=e.src=[],s=e.t={};let o=0;const c=(h,b,v)=>{const E=o++;r(h,E,b),s[h]=E,i[E]=b,a[E]=new RegExp(b,v?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})\\.(${i[s.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})\\.(${i[s.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${i[s.NUMERICIDENTIFIER]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${i[s.NUMERICIDENTIFIERLOOSE]}|${i[s.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${i[s.PRERELEASEIDENTIFIER]}(?:\\.${i[s.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${i[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[s.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${i[s.BUILDIDENTIFIER]}(?:\\.${i[s.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${i[s.MAINVERSION]}${i[s.PRERELEASE]}?${i[s.BUILD]}?`),c("FULL",`^${i[s.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${i[s.MAINVERSIONLOOSE]}${i[s.PRERELEASELOOSE]}?${i[s.BUILD]}?`),c("LOOSE",`^${i[s.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${i[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${i[s.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:\\.(${i[s.XRANGEIDENTIFIER]})(?:${i[s.PRERELEASE]})?${i[s.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[s.XRANGEIDENTIFIERLOOSE]})(?:${i[s.PRERELEASELOOSE]})?${i[s.BUILD]}?)?)?`),c("XRANGE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${i[s.GTLT]}\\s*${i[s.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",i[s.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${i[s.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${i[s.LONETILDE]}${i[s.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${i[s.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${i[s.LONECARET]}${i[s.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${i[s.LONECARET]}${i[s.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${i[s.GTLT]}\\s*(${i[s.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${i[s.GTLT]}\\s*(${i[s.LOOSEPLAIN]}|${i[s.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${i[s.XRANGEPLAIN]})\\s+-\\s+(${i[s.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${i[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[s.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Qw,Qw.exports);var rS=Qw.exports;const lI=/^[0-9]+$/,kG=(t,e)=>{const n=lI.test(t),r=lI.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tkG(e,t);var n3e={compareIdentifiers:kG,rcompareIdentifiers:t3e};const s3=Y8,{MAX_LENGTH:uI,MAX_SAFE_INTEGER:o3}=nS,{re:fI,t:dI}=rS,r3e=tS,{compareIdentifiers:Qd}=n3e;let a3e=class Vs{constructor(e,n){if(n=r3e(n),e instanceof Vs){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>uI)throw new TypeError(`version is longer than ${uI} characters`);s3("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?fI[dI.LOOSE]:fI[dI.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o3||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o3||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o3||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){const i=+a;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(a)}}if(n){let i=[n,a];r===!1&&(i=[n]),Qd(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};var aS=a3e;const hI=aS,i3e=(t,e,n)=>new hI(t,n).compare(new hI(e,n));var c1=i3e;const s3e=c1,o3e=(t,e,n)=>s3e(t,e,n)===0;var c3e=o3e;const l3e=c1,u3e=(t,e,n)=>l3e(t,e,n)!==0;var f3e=u3e;const d3e=c1,h3e=(t,e,n)=>d3e(t,e,n)>0;var p3e=h3e;const y3e=c1,m3e=(t,e,n)=>y3e(t,e,n)>=0;var b3e=m3e;const g3e=c1,x3e=(t,e,n)=>g3e(t,e,n)<0;var v3e=x3e;const w3e=c1,E3e=(t,e,n)=>w3e(t,e,n)<=0;var _3e=E3e;const A3e=c3e,C3e=f3e,S3e=p3e,T3e=b3e,B3e=v3e,M3e=_3e,F3e=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return A3e(t,n,r);case"!=":return C3e(t,n,r);case">":return S3e(t,n,r);case">=":return T3e(t,n,r);case"<":return B3e(t,n,r);case"<=":return M3e(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};var D3e=F3e,x9,pI;function k3e(){if(pI)return x9;pI=1;const t=Symbol("SemVer ANY");class e{static get ANY(){return t}constructor(b,v){if(v=n(v),b instanceof e){if(b.loose===!!v.loose)return b;b=b.value}s("comparator",b,v),this.options=v,this.loose=!!v.loose,this.parse(b),this.semver===t?this.value="":this.value=this.operator+this.semver.version,s("comp",this)}parse(b){const v=this.options.loose?r[a.COMPARATORLOOSE]:r[a.COMPARATOR],E=b.match(v);if(!E)throw new TypeError(`Invalid comparator: ${b}`);this.operator=E[1]!==void 0?E[1]:"",this.operator==="="&&(this.operator=""),E[2]?this.semver=new o(E[2],this.options.loose):this.semver=t}toString(){return this.value}test(b){if(s("Comparator.test",b,this.options.loose),this.semver===t||b===t)return!0;if(typeof b=="string")try{b=new o(b,this.options)}catch{return!1}return i(b,this.operator,this.semver,this.options)}intersects(b,v){if(!(b instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new c(b.value,v).test(this.value):b.operator===""?b.value===""?!0:new c(this.value,v).test(b.semver):(v=n(v),v.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")||!v.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&b.operator.startsWith(">")||this.operator.startsWith("<")&&b.operator.startsWith("<")||this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")||i(this.semver,"<",b.semver,v)&&this.operator.startsWith(">")&&b.operator.startsWith("<")||i(this.semver,">",b.semver,v)&&this.operator.startsWith("<")&&b.operator.startsWith(">")))}}x9=e;const n=tS,{re:r,t:a}=rS,i=D3e,s=Y8,o=aS,c=IG();return x9}var v9,yI;function IG(){if(yI)return v9;yI=1;class t{constructor(l,y){if(y=r(y),l instanceof t)return l.loose===!!y.loose&&l.includePrerelease===!!y.includePrerelease?l:new t(l.raw,y);if(l instanceof a)return this.raw=l.value,this.set=[[l]],this.format(),this;if(this.options=y,this.loose=!!y.loose,this.includePrerelease=!!y.includePrerelease,this.raw=l,this.set=l.split("||").map(g=>this.parseRange(g.trim())).filter(g=>g.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${l}`);if(this.set.length>1){const g=this.set[0];if(this.set=this.set.filter(w=>!M(w[0])),this.set.length===0)this.set=[g];else if(this.set.length>1){for(const w of this.set)if(w.length===1&&T(w[0])){this.set=[w];break}}}this.format()}format(){return this.range=this.set.map(l=>l.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(l){l=l.trim();const g=((this.options.includePrerelease&&E)|(this.options.loose&&C))+":"+l,w=n.get(g);if(w)return w;const x=this.options.loose,f=x?o[c.HYPHENRANGELOOSE]:o[c.HYPHENRANGE];l=l.replace(f,u(this.options.includePrerelease)),i("hyphen replace",l),l=l.replace(o[c.COMPARATORTRIM],h),i("comparator trim",l),l=l.replace(o[c.TILDETRIM],b),l=l.replace(o[c.CARETTRIM],v),l=l.split(/\s+/).join(" ");let m=l.split(" ").map($=>D($,this.options)).join(" ").split(/\s+/).map($=>B($,this.options));x&&(m=m.filter($=>(i("loose invalid filter",$,this.options),!!$.match(o[c.COMPARATORLOOSE])))),i("range list",m);const A=new Map,_=m.map($=>new a($,this.options));for(const $ of _){if(M($))return[$];A.set($.value,$)}A.size>1&&A.has("")&&A.delete("");const S=[...A.values()];return n.set(g,S),S}intersects(l,y){if(!(l instanceof t))throw new TypeError("a Range is required");return this.set.some(g=>P(g,y)&&l.set.some(w=>P(w,y)&&g.every(x=>w.every(f=>x.intersects(f,y)))))}test(l){if(!l)return!1;if(typeof l=="string")try{l=new s(l,this.options)}catch{return!1}for(let y=0;yp.value==="<0.0.0-0",T=p=>p.value==="",P=(p,l)=>{let y=!0;const g=p.slice();let w=g.pop();for(;y&&g.length;)y=g.every(x=>w.intersects(x,l)),w=g.pop();return y},D=(p,l)=>(i("comp",p,l),p=U(p,l),i("caret",p),p=O(p,l),i("tildes",p),p=Y(p,l),i("xrange",p),p=X(p,l),i("stars",p),p),F=p=>!p||p.toLowerCase()==="x"||p==="*",O=(p,l)=>p.trim().split(/\s+/).map(y=>k(y,l)).join(" "),k=(p,l)=>{const y=l.loose?o[c.TILDELOOSE]:o[c.TILDE];return p.replace(y,(g,w,x,f,m)=>{i("tilde",p,g,w,x,f,m);let A;return F(w)?A="":F(x)?A=`>=${w}.0.0 <${+w+1}.0.0-0`:F(f)?A=`>=${w}.${x}.0 <${w}.${+x+1}.0-0`:m?(i("replaceTilde pr",m),A=`>=${w}.${x}.${f}-${m} <${w}.${+x+1}.0-0`):A=`>=${w}.${x}.${f} <${w}.${+x+1}.0-0`,i("tilde return",A),A})},U=(p,l)=>p.trim().split(/\s+/).map(y=>J(y,l)).join(" "),J=(p,l)=>{i("caret",p,l);const y=l.loose?o[c.CARETLOOSE]:o[c.CARET],g=l.includePrerelease?"-0":"";return p.replace(y,(w,x,f,m,A)=>{i("caret",p,w,x,f,m,A);let _;return F(x)?_="":F(f)?_=`>=${x}.0.0${g} <${+x+1}.0.0-0`:F(m)?x==="0"?_=`>=${x}.${f}.0${g} <${x}.${+f+1}.0-0`:_=`>=${x}.${f}.0${g} <${+x+1}.0.0-0`:A?(i("replaceCaret pr",A),x==="0"?f==="0"?_=`>=${x}.${f}.${m}-${A} <${x}.${f}.${+m+1}-0`:_=`>=${x}.${f}.${m}-${A} <${x}.${+f+1}.0-0`:_=`>=${x}.${f}.${m}-${A} <${+x+1}.0.0-0`):(i("no pr"),x==="0"?f==="0"?_=`>=${x}.${f}.${m}${g} <${x}.${f}.${+m+1}-0`:_=`>=${x}.${f}.${m}${g} <${x}.${+f+1}.0-0`:_=`>=${x}.${f}.${m} <${+x+1}.0.0-0`),i("caret return",_),_})},Y=(p,l)=>(i("replaceXRanges",p,l),p.split(/\s+/).map(y=>L(y,l)).join(" ")),L=(p,l)=>{p=p.trim();const y=l.loose?o[c.XRANGELOOSE]:o[c.XRANGE];return p.replace(y,(g,w,x,f,m,A)=>{i("xRange",p,g,w,x,f,m,A);const _=F(x),S=_||F(f),$=S||F(m),V=$;return w==="="&&V&&(w=""),A=l.includePrerelease?"-0":"",_?w===">"||w==="<"?g="<0.0.0-0":g="*":w&&V?(S&&(f=0),m=0,w===">"?(w=">=",S?(x=+x+1,f=0,m=0):(f=+f+1,m=0)):w==="<="&&(w="<",S?x=+x+1:f=+f+1),w==="<"&&(A="-0"),g=`${w+x}.${f}.${m}${A}`):S?g=`>=${x}.0.0${A} <${+x+1}.0.0-0`:$&&(g=`>=${x}.${f}.0${A} <${x}.${+f+1}.0-0`),i("xRange return",g),g})},X=(p,l)=>(i("replaceStars",p,l),p.trim().replace(o[c.STAR],"")),B=(p,l)=>(i("replaceGTE0",p,l),p.trim().replace(o[l.includePrerelease?c.GTE0PRE:c.GTE0],"")),u=p=>(l,y,g,w,x,f,m,A,_,S,$,V,I)=>(F(g)?y="":F(w)?y=`>=${g}.0.0${p?"-0":""}`:F(x)?y=`>=${g}.${w}.0${p?"-0":""}`:f?y=`>=${y}`:y=`>=${y}${p?"-0":""}`,F(_)?A="":F(S)?A=`<${+_+1}.0.0-0`:F($)?A=`<${_}.${+S+1}.0-0`:V?A=`<=${_}.${S}.${$}-${V}`:p?A=`<${_}.${S}.${+$+1}-0`:A=`<=${A}`,`${y} ${A}`.trim()),d=(p,l,y)=>{for(let g=0;g0){const w=p[g].semver;if(w.major===l.major&&w.minor===l.minor&&w.patch===l.patch)return!0}return!1}return!0};return v9}const I3e=IG(),O3e=(t,e,n)=>{try{e=new I3e(e,n)}catch{return!1}return e.test(t)};var P3e=O3e,R3e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.findDeployment=void 0;const N3e=R3e(P3e),mI={released:!0},$3e=(t=mI,e)=>{const n=Object.assign(Object.assign({},mI),t);return e.find(r=>!(typeof n.version<"u"&&!(0,N3e.default)(r.version,n.version)||typeof n.released=="boolean"&&r.released!=n.released||n.network&&!r.networkAddresses[n.network]))};Tu.findDeployment=$3e;(function(t){var e=de&&de.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSafeL2SingletonDeployment=t._safeL2Deployments=t.getSafeSingletonDeployment=t._safeDeployments=void 0;const n=e(r2e),r=e(u2e),a=e(b2e),i=e(A2e),s=e(D2e),o=e($2e),c=e(V2e),h=Tu;t._safeDeployments=[r.default,i.default,s.default,o.default,c.default];const b=E=>(0,h.findDeployment)(E,t._safeDeployments);t.getSafeSingletonDeployment=b,t._safeL2Deployments=[n.default,a.default];const v=E=>(0,h.findDeployment)(E,t._safeL2Deployments);t.getSafeL2SingletonDeployment=v})(DG);var ev={};const L3e="0x12302fE9c02ff50939BaAaaf415fc226C078613C",U3e=!0,j3e="ProxyFactory",H3e="1.0.0",z3e={1:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",4:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",5:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",42:"0x12302fE9c02ff50939BaAaaf415fc226C078613C",100:"0x12302fE9c02ff50939BaAaaf415fc226C078613C"},G3e=[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}],V3e={defaultAddress:L3e,released:U3e,contractName:j3e,version:H3e,networkAddresses:z3e,abi:G3e},q3e="0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",W3e=!0,K3e="ProxyFactory",Z3e="1.1.1",Q3e={1:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",4:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",5:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",42:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",88:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",100:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",246:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B",73799:"0x76E2cFc1F5Fa8F6a5b3fC4c8F4788F0116861F9B"},J3e=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}],X3e={defaultAddress:q3e,released:W3e,contractName:K3e,version:Z3e,networkAddresses:Q3e,abi:J3e},Y3e="0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",ege=!0,tge="GnosisSafeProxyFactory",nge="1.3.0",rge={1:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",5:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",10:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",11:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",12:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",18:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",25:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",28:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",30:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",31:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",39:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",40:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",41:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",44:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",46:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",50:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",51:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",56:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",57:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",61:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",63:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",69:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",71:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",81:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",82:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",83:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",97:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",100:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",106:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",108:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",111:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",122:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",123:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",137:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",148:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",155:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",169:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",204:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",246:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",250:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",255:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",280:"0xDAec33641865E4651fB43181C6DB6f7232Ee91c2",288:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",291:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",300:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",321:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",322:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",324:"0xDAec33641865E4651fB43181C6DB6f7232Ee91c2",336:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",338:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",420:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",424:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",570:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",588:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",592:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",595:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",599:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",686:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",787:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1030:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1088:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1101:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1111:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1112:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1115:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1116:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1230:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1231:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1284:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1285:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1287:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1294:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1442:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1559:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1663:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1807:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1890:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1891:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1984:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2001:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2002:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2019:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2020:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2021:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2221:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2222:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",2358:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",3737:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4002:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4337:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4460:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4689:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",4918:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",4919:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",5e3:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",5001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",5700:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",6102:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7332:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",7341:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",7700:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",8217:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",8453:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",9e3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",9001:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",9728:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",1e4:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10001:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10081:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",10200:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",10243:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",11235:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",11437:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",11891:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",12357:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",13337:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",17e3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",23294:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",23295:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",34443:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42161:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42170:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",42220:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",43113:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",43114:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",43288:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",44787:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",45e3:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",47805:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",54211:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",56288:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",57e3:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",58008:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",59140:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",59144:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",71401:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",71402:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",73799:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",80001:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",84531:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",84532:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",200101:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",200202:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",333999:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",421611:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",421613:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",421614:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",534351:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",534352:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",534353:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",622277:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",7777777:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",11155111:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",222000222:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",245022926:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",245022934:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",333000333:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1313161554:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",1313161555:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",16666e5:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC",16667e5:"0xC22834581EbC8527d974F8a1c97E1bEA4EF910BC","11297108099":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2","11297108109":"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2"},age=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}],ige={defaultAddress:Y3e,released:ege,contractName:tge,version:nge,networkAddresses:rge,abi:age},sge="0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",oge="SafeProxyFactory",cge="1.4.1",lge=!0,uge={1:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",5:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",10:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",56:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",71:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",100:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",137:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",1030:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",1101:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",1442:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",4337:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",8192:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",8194:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",8453:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",10243:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",11235:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",13337:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",17e3:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",42161:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",42220:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",54211:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",80001:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",84531:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",84532:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67",11155111:"0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67"},fge=[{anonymous:!1,inputs:[{indexed:!0,internalType:"contract SafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createChainSpecificProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}],dge={defaultAddress:sge,contractName:oge,version:cge,released:lge,networkAddresses:uge,abi:fge};var tv=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ev,"__esModule",{value:!0});ev.getProxyFactoryDeployment=void 0;const hge=tv(V3e),pge=tv(X3e),yge=tv(ige),mge=tv(dge),bge=Tu,gge=[mge.default,yge.default,pge.default,hge.default],xge=t=>(0,bge.findDeployment)(t,gge);ev.getProxyFactoryDeployment=xge;var po={};const vge="0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",wge=!0,Ege="CreateCall",_ge="1.3.0",Age={1:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",5:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",10:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",11:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",12:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",18:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",25:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",28:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",30:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",31:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",39:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",40:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",41:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",44:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",46:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",50:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",51:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",56:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",57:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",61:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",63:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",69:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",71:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",81:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",82:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",83:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",97:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",100:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",106:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",108:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",111:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",122:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",123:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",137:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",148:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",155:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",169:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",204:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",246:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",250:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",255:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",280:"0xcB8e5E438c5c2b45FbE17B02Ca9aF91509a8ad56",288:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",300:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",321:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",322:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",324:"0xcB8e5E438c5c2b45FbE17B02Ca9aF91509a8ad56",336:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",338:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",420:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",424:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",570:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",588:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",592:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",595:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",599:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",686:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",787:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1030:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1088:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1101:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1111:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1112:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1115:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1116:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1230:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1231:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1284:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1285:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1287:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1294:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1442:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1559:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1663:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1807:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1890:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1891:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1984:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2001:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2002:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2019:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2020:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2021:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2221:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2222:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",2358:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",3737:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4002:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4337:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4460:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4689:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",4918:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",4919:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",5e3:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",5001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",5700:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",6102:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7332:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",7341:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",7700:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",8217:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",8453:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",9e3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",9001:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",9728:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",1e4:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10001:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10081:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",10200:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",10243:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",11235:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",11437:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",11891:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",12357:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",13337:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",17e3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",23294:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",23295:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",34443:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42161:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42170:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",42220:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",43113:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",43114:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",43288:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",44787:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",45e3:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",47805:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",54211:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",56288:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",57e3:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",58008:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",59140:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",59144:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",71401:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",71402:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",73799:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",80001:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",84531:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",84532:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",200101:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",200202:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",333999:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",421611:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",421613:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",421614:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",534351:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",534352:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",534353:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",622277:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",7777777:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",11155111:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",222000222:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",245022926:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",245022934:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",333000333:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1313161554:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",1313161555:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",16666e5:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d",16667e5:"0xB19D6FFc2182150F8Eb585b79D4ABcd7C5640A9d","11297108099":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4","11297108109":"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4"},Cge=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}],Sge={defaultAddress:vge,released:wge,contractName:Ege,version:_ge,networkAddresses:Age,abi:Cge},Tge="0x9b35Af71d77eaf8d7e40252370304687390A1A52",Bge=!0,Mge="CreateCall",Fge="1.4.1",Dge={1:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",5:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",10:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",56:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",71:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",100:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",137:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",1030:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",1101:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",1442:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",4337:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",8192:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",8194:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",8453:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",10243:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",11235:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",13337:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",17e3:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",42161:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",42220:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",54211:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",80001:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",84531:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",84532:"0x9b35Af71d77eaf8d7e40252370304687390A1A52",11155111:"0x9b35Af71d77eaf8d7e40252370304687390A1A52"},kge=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}],Ige={defaultAddress:Tge,released:Bge,contractName:Mge,version:Fge,networkAddresses:Dge,abi:kge},Oge="0x8D29bE29923b68abfDD21e541b9374737B49cdAD",Pge=!0,Rge="MultiSend",Nge="1.1.1",$ge={1:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",4:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",5:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",42:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",88:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",100:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",246:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD",73799:"0x8D29bE29923b68abfDD21e541b9374737B49cdAD"},Lge=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],Uge={defaultAddress:Oge,released:Pge,contractName:Rge,version:Nge,networkAddresses:$ge,abi:Lge},jge="0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",Hge=!0,zge="MultiSend",Gge="1.3.0",Vge={1:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",5:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",10:"0x998739BFdAAdde7C933B942a68053933098f9EDa",11:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",12:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",18:"0x998739BFdAAdde7C933B942a68053933098f9EDa",25:"0x998739BFdAAdde7C933B942a68053933098f9EDa",28:"0x998739BFdAAdde7C933B942a68053933098f9EDa",30:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",31:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",39:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",40:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",41:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",44:"0x998739BFdAAdde7C933B942a68053933098f9EDa",46:"0x998739BFdAAdde7C933B942a68053933098f9EDa",50:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",51:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",56:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",57:"0x998739BFdAAdde7C933B942a68053933098f9EDa",61:"0x998739BFdAAdde7C933B942a68053933098f9EDa",63:"0x998739BFdAAdde7C933B942a68053933098f9EDa",69:"0x998739BFdAAdde7C933B942a68053933098f9EDa",71:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",81:"0x998739BFdAAdde7C933B942a68053933098f9EDa",82:"0x998739BFdAAdde7C933B942a68053933098f9EDa",83:"0x998739BFdAAdde7C933B942a68053933098f9EDa",97:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",100:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",106:"0x998739BFdAAdde7C933B942a68053933098f9EDa",108:"0x998739BFdAAdde7C933B942a68053933098f9EDa",111:"0x998739BFdAAdde7C933B942a68053933098f9EDa",122:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",123:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",137:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",148:"0x998739BFdAAdde7C933B942a68053933098f9EDa",155:"0x998739BFdAAdde7C933B942a68053933098f9EDa",169:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",204:"0x998739BFdAAdde7C933B942a68053933098f9EDa",246:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",250:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",255:"0x998739BFdAAdde7C933B942a68053933098f9EDa",280:"0x0dFcccB95225ffB03c6FBB2559B530C2B7C8A912",288:"0x998739BFdAAdde7C933B942a68053933098f9EDa",291:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",300:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",321:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",322:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",324:"0x0dFcccB95225ffB03c6FBB2559B530C2B7C8A912",336:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",338:"0x998739BFdAAdde7C933B942a68053933098f9EDa",420:"0x998739BFdAAdde7C933B942a68053933098f9EDa",424:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",570:"0x998739BFdAAdde7C933B942a68053933098f9EDa",588:"0x998739BFdAAdde7C933B942a68053933098f9EDa",592:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",595:"0x998739BFdAAdde7C933B942a68053933098f9EDa",599:"0x998739BFdAAdde7C933B942a68053933098f9EDa",686:"0x998739BFdAAdde7C933B942a68053933098f9EDa",787:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1030:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1088:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1101:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1111:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1112:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1115:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1116:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1230:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1231:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1284:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1285:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1287:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1294:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1442:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1559:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1663:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1807:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1890:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1891:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1984:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2001:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2002:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2019:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2020:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2021:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2221:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2222:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",2358:"0x998739BFdAAdde7C933B942a68053933098f9EDa",3737:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4002:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4337:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4460:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4689:"0x998739BFdAAdde7C933B942a68053933098f9EDa",4918:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",4919:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",5e3:"0x998739BFdAAdde7C933B942a68053933098f9EDa",5001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",5700:"0x998739BFdAAdde7C933B942a68053933098f9EDa",6102:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7332:"0x998739BFdAAdde7C933B942a68053933098f9EDa",7341:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",7700:"0x998739BFdAAdde7C933B942a68053933098f9EDa",8217:"0x998739BFdAAdde7C933B942a68053933098f9EDa",8453:"0x998739BFdAAdde7C933B942a68053933098f9EDa",9e3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",9001:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",9728:"0x998739BFdAAdde7C933B942a68053933098f9EDa",1e4:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10001:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10081:"0x998739BFdAAdde7C933B942a68053933098f9EDa",10200:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",10243:"0x998739BFdAAdde7C933B942a68053933098f9EDa",11235:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",11437:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",11891:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",12357:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",13337:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",17e3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",23294:"0x998739BFdAAdde7C933B942a68053933098f9EDa",23295:"0x998739BFdAAdde7C933B942a68053933098f9EDa",34443:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42161:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42170:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",42220:"0x998739BFdAAdde7C933B942a68053933098f9EDa",43113:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",43114:"0x998739BFdAAdde7C933B942a68053933098f9EDa",43288:"0x998739BFdAAdde7C933B942a68053933098f9EDa",44787:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",45e3:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",47805:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",54211:"0x998739BFdAAdde7C933B942a68053933098f9EDa",56288:"0x998739BFdAAdde7C933B942a68053933098f9EDa",57e3:"0x998739BFdAAdde7C933B942a68053933098f9EDa",58008:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",59140:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",59144:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",71401:"0x998739BFdAAdde7C933B942a68053933098f9EDa",71402:"0x998739BFdAAdde7C933B942a68053933098f9EDa",73799:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",80001:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",84531:"0x998739BFdAAdde7C933B942a68053933098f9EDa",84532:"0x998739BFdAAdde7C933B942a68053933098f9EDa",200101:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",200202:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",333999:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",421611:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",421613:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",421614:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",534351:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",534352:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",534353:"0x998739BFdAAdde7C933B942a68053933098f9EDa",622277:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",7777777:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",11155111:"0x998739BFdAAdde7C933B942a68053933098f9EDa",222000222:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",245022926:"0x998739BFdAAdde7C933B942a68053933098f9EDa",245022934:"0x998739BFdAAdde7C933B942a68053933098f9EDa",333000333:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1313161554:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",1313161555:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",16666e5:"0x998739BFdAAdde7C933B942a68053933098f9EDa",16667e5:"0x998739BFdAAdde7C933B942a68053933098f9EDa","11297108099":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761","11297108109":"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761"},qge=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],Wge={defaultAddress:jge,released:Hge,contractName:zge,version:Gge,networkAddresses:Vge,abi:qge},Kge="0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",Zge=!0,Qge="MultiSend",Jge="1.4.1",Xge={1:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",5:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",10:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",56:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",71:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",100:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",137:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",1030:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",1101:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",1442:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",4337:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",8192:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",8194:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",8453:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",10243:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",11235:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",13337:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",17e3:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",42161:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",42220:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",54211:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",80001:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",84531:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",84532:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526",11155111:"0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526"},Yge=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],e6e={defaultAddress:Kge,released:Zge,contractName:Qge,version:Jge,networkAddresses:Xge,abi:Yge},t6e="0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",n6e=!0,r6e="MultiSendCallOnly",a6e="1.3.0",i6e={1:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",5:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",10:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",11:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",12:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",18:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",25:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",28:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",30:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",31:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",39:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",40:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",41:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",44:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",46:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",50:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",51:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",56:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",57:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",61:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",63:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",69:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",71:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",81:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",82:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",83:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",97:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",100:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",106:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",108:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",111:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",122:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",123:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",137:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",148:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",155:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",169:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",204:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",246:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",250:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",255:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",280:"0xf220D3b4DFb23C4ade8C88E526C1353AbAcbC38F",288:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",291:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",300:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",321:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",322:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",324:"0xf220D3b4DFb23C4ade8C88E526C1353AbAcbC38F",336:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",338:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",420:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",424:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",570:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",588:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",592:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",595:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",599:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",686:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",787:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1030:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1088:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1101:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1111:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1112:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1115:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1116:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1230:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1231:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1284:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1285:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1287:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1294:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1442:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1559:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1663:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1807:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1890:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1891:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1984:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2001:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2002:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2019:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2020:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2021:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2221:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2222:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",2358:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",3737:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4002:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4337:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4460:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4689:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",4918:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",4919:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",5e3:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",5001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",5700:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",6102:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7332:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",7341:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",7700:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",8217:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",8453:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",9e3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",9001:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",9728:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",1e4:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10001:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10081:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",10200:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",10243:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",11235:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",11437:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",11891:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",12357:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",13337:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",17e3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",23294:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",23295:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",34443:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42161:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42170:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",42220:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",43113:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",43114:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",43288:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",44787:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",45e3:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",47805:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",54211:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",56288:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",57e3:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",58008:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",59140:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",59144:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",71401:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",71402:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",73799:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",80001:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",84531:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",84532:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",200101:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",200202:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",333999:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",421611:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",421613:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",421614:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",534351:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",534352:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",534353:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",622277:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",7777777:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",11155111:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",222000222:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",245022926:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",245022934:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",333000333:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1313161554:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",1313161555:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",16666e5:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B",16667e5:"0xA1dabEF33b3B82c7814B6D82A79e50F4AC44102B","11297108099":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D","11297108109":"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D"},s6e=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],o6e={defaultAddress:t6e,released:n6e,contractName:r6e,version:a6e,networkAddresses:i6e,abi:s6e},c6e="0x9641d764fc13c8B624c04430C7356C1C7C8102e2",l6e=!0,u6e="MultiSendCallOnly",f6e="1.4.1",d6e={1:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",5:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",10:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",56:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",71:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",100:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",137:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",1030:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",1101:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",1442:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",4337:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",8192:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",8194:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",8453:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",10243:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",11235:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",13337:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",17e3:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",42161:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",42220:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",54211:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",80001:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",84531:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",84532:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2",11155111:"0x9641d764fc13c8B624c04430C7356C1C7C8102e2"},h6e=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}],p6e={defaultAddress:c6e,released:l6e,contractName:u6e,version:f6e,networkAddresses:d6e,abi:h6e},y6e="0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",m6e="SignMessageLib",b6e="1.3.0",g6e=!0,x6e={1:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",5:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",10:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",11:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",12:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",18:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",25:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",28:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",30:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",31:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",39:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",40:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",41:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",44:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",46:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",50:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",51:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",56:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",57:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",61:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",63:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",69:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",71:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",81:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",82:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",83:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",97:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",100:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",106:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",108:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",111:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",122:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",123:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",137:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",148:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",155:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",169:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",204:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",246:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",250:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",255:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",280:"0x357147caf9C0cCa67DfA0CF5369318d8193c8407",288:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",291:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",300:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",321:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",322:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",324:"0x357147caf9C0cCa67DfA0CF5369318d8193c8407",336:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",338:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",420:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",424:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",570:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",588:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",592:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",595:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",599:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",686:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",787:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1030:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1088:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1101:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1111:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1112:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1115:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1116:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1230:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1231:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1284:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1285:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1287:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1294:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1442:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1559:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1663:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1807:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1890:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1891:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1984:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2001:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2002:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2019:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2020:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2021:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2221:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2222:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",2358:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",3737:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4002:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4337:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4460:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4689:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",4918:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",4919:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",5e3:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",5001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",5700:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",6102:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7332:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",7341:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",7700:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",8217:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",8453:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",9e3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",9001:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",9728:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",1e4:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10001:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10081:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",10200:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",10243:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",11235:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",11437:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",11891:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",12357:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",13337:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",17e3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",23294:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",23295:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",34443:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42161:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42170:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",42220:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",43113:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",43114:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",43288:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",44787:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",45e3:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",47805:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",54211:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",56288:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",57e3:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",58008:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",59140:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",59144:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",71401:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",71402:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",73799:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",80001:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",84531:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",84532:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",200101:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",200202:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",421611:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",421613:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",421614:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",534351:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",534352:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",534353:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",622277:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",7777777:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",11155111:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",222000222:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",245022926:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",245022934:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",333000333:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1313161554:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",1313161555:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",16666e5:"0x98FFBBF51bb33A056B08ddf711f289936AafF717",16667e5:"0x98FFBBF51bb33A056B08ddf711f289936AafF717","11297108099":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2","11297108109":"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2"},v6e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}],w6e={defaultAddress:y6e,contractName:m6e,version:b6e,released:g6e,networkAddresses:x6e,abi:v6e},E6e="0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",_6e="SignMessageLib",A6e="1.4.1",C6e=!0,S6e={1:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",5:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",10:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",56:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",71:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",100:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",137:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",1030:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",1101:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",1442:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",4337:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",8192:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",8194:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",8453:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",10243:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",11235:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",13337:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",17e3:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",42161:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",42220:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",54211:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",80001:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",84531:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",84532:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9",11155111:"0xd53cd0aB83D845Ac265BE939c57F53AD838012c9"},T6e=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}],B6e={defaultAddress:E6e,contractName:_6e,version:A6e,released:C6e,networkAddresses:S6e,abi:T6e};var Qc=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(po,"__esModule",{value:!0});po.getSignMessageLibDeployment=po.getCreateCallDeployment=po.getMultiSendCallOnlyDeployment=po.getMultiSendDeployment=void 0;const M6e=Qc(Sge),F6e=Qc(Ige),D6e=Qc(Uge),k6e=Qc(Wge),I6e=Qc(e6e),O6e=Qc(o6e),P6e=Qc(p6e),R6e=Qc(w6e),N6e=Qc(B6e),nv=Tu,$6e=[I6e.default,k6e.default,D6e.default],L6e=t=>(0,nv.findDeployment)(t,$6e);po.getMultiSendDeployment=L6e;const U6e=[P6e.default,O6e.default],j6e=t=>(0,nv.findDeployment)(t,U6e);po.getMultiSendCallOnlyDeployment=j6e;const H6e=[F6e.default,M6e.default],z6e=t=>(0,nv.findDeployment)(t,H6e);po.getCreateCallDeployment=z6e;const G6e=[N6e.default,R6e.default],V6e=t=>(0,nv.findDeployment)(t,G6e);po.getSignMessageLibDeployment=V6e;var iu={};const q6e="0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",W6e=!0,K6e="DefaultCallbackHandler",Z6e="1.1.1",Q6e={1:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",4:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",5:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",42:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",88:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",100:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",246:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44",73799:"0xd5D82B6aDDc9027B22dCA772Aa68D5d74cdBdF44"},J6e=[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,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"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,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"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,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"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],X6e={defaultAddress:q6e,released:W6e,contractName:K6e,version:Z6e,networkAddresses:Q6e,abi:J6e},Y6e="0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",exe=!0,txe="CompatibilityFallbackHandler",nxe="1.3.0",rxe={1:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",5:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",10:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",11:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",12:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",18:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",25:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",28:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",30:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",31:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",39:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",40:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",41:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",44:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",46:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",50:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",51:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",56:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",57:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",61:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",63:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",69:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",71:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",81:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",82:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",83:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",97:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",100:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",106:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",108:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",111:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",122:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",123:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",137:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",148:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",155:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",169:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",204:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",246:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",250:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",255:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",280:"0x2f870a80647BbC554F3a0EBD093f11B4d2a7492A",288:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",291:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",300:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",321:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",322:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",324:"0x2f870a80647BbC554F3a0EBD093f11B4d2a7492A",336:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",338:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",420:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",424:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",570:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",588:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",592:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",595:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",599:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",686:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",787:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1030:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1088:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1101:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1111:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1112:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1115:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1116:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1230:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1231:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1284:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1285:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1287:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1294:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1442:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1559:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1663:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1807:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1890:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1891:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1984:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2001:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2002:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2019:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2020:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2021:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2221:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2222:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",2358:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",3737:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4002:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4337:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4460:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4689:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",4918:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",4919:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",5e3:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",5001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",5700:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",6102:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7332:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",7341:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",7700:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",8217:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",8453:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",9e3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",9001:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",9728:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",1e4:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10001:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10081:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",10200:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",10243:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",11235:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",11437:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",11891:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",12357:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",13337:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",17e3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",23294:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",23295:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",34443:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42161:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42170:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",42220:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",43113:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",43114:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",43288:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",44787:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",45e3:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",47805:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",54211:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",56288:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",57e3:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",58008:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",59140:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",59144:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",71401:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",71402:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",73799:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",80001:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",84531:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",84532:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",200101:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",200202:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",333999:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",421611:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",421613:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",421614:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",534351:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",534352:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",534353:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",622277:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",7777777:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",11155111:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",222000222:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",245022926:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",245022934:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",333000333:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1313161554:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",1313161555:"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4",16666e5:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804",16667e5:"0x017062a1dE2FE6b99BE3d9d37841FeD19F573804","11297108099":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4","11297108109":"0xf48f2B2d2a534e402487b3ee7C18c33Aec0Fe5e4"},axe=[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}],ixe={defaultAddress:Y6e,released:exe,contractName:txe,version:nxe,networkAddresses:rxe,abi:axe},sxe="0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",oxe=!0,cxe="CompatibilityFallbackHandler",lxe="1.4.1",uxe={1:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",5:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",10:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",56:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",71:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",100:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",137:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",1030:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",1101:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",1442:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",4337:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",8192:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",8194:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",8453:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",10243:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",11235:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",13337:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",17e3:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",42161:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",42220:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",54211:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",80001:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",84531:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",84532:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99",11155111:"0xfd0732Dc9E303f09fCEf3a7388Ad10A83459Ec99"},fxe=[{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"encodeMessageDataForSafe",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}],dxe={defaultAddress:sxe,released:oxe,contractName:cxe,version:lxe,networkAddresses:uxe,abi:fxe};var iS=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(iu,"__esModule",{value:!0});iu.getFallbackHandlerDeployment=iu.getCompatibilityFallbackHandlerDeployment=iu.getDefaultCallbackHandlerDeployment=void 0;const OG=iS(X6e),PG=iS(ixe),RG=iS(dxe),sS=Tu,hxe=[OG.default],pxe=t=>(0,sS.findDeployment)(t,hxe);iu.getDefaultCallbackHandlerDeployment=pxe;const yxe=[RG.default,PG.default],mxe=t=>(0,sS.findDeployment)(t,yxe);iu.getCompatibilityFallbackHandlerDeployment=mxe;const bxe=[RG.default,PG.default,OG.default],gxe=t=>(0,sS.findDeployment)(t,bxe);iu.getFallbackHandlerDeployment=gxe;var rv={};const xxe="0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",vxe=!0,wxe="SimulateTxAccessor",Exe="1.3.0",_xe={1:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",5:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",10:"0x727a77a074D1E6c4530e814F89E618a3298FC044",11:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",12:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",18:"0x727a77a074D1E6c4530e814F89E618a3298FC044",25:"0x727a77a074D1E6c4530e814F89E618a3298FC044",28:"0x727a77a074D1E6c4530e814F89E618a3298FC044",30:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",31:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",39:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",40:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",41:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",44:"0x727a77a074D1E6c4530e814F89E618a3298FC044",46:"0x727a77a074D1E6c4530e814F89E618a3298FC044",50:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",51:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",56:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",57:"0x727a77a074D1E6c4530e814F89E618a3298FC044",61:"0x727a77a074D1E6c4530e814F89E618a3298FC044",63:"0x727a77a074D1E6c4530e814F89E618a3298FC044",69:"0x727a77a074D1E6c4530e814F89E618a3298FC044",71:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",81:"0x727a77a074D1E6c4530e814F89E618a3298FC044",82:"0x727a77a074D1E6c4530e814F89E618a3298FC044",83:"0x727a77a074D1E6c4530e814F89E618a3298FC044",97:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",100:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",106:"0x727a77a074D1E6c4530e814F89E618a3298FC044",108:"0x727a77a074D1E6c4530e814F89E618a3298FC044",111:"0x727a77a074D1E6c4530e814F89E618a3298FC044",122:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",123:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",137:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",148:"0x727a77a074D1E6c4530e814F89E618a3298FC044",155:"0x727a77a074D1E6c4530e814F89E618a3298FC044",169:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",204:"0x727a77a074D1E6c4530e814F89E618a3298FC044",246:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",250:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",255:"0x727a77a074D1E6c4530e814F89E618a3298FC044",280:"0x4191E2e12E8BC5002424CE0c51f9947b02675a44",288:"0x727a77a074D1E6c4530e814F89E618a3298FC044",291:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",300:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",321:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",322:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",324:"0x4191E2e12E8BC5002424CE0c51f9947b02675a44",336:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",338:"0x727a77a074D1E6c4530e814F89E618a3298FC044",420:"0x727a77a074D1E6c4530e814F89E618a3298FC044",570:"0x727a77a074D1E6c4530e814F89E618a3298FC044",588:"0x727a77a074D1E6c4530e814F89E618a3298FC044",592:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",595:"0x727a77a074D1E6c4530e814F89E618a3298FC044",599:"0x727a77a074D1E6c4530e814F89E618a3298FC044",686:"0x727a77a074D1E6c4530e814F89E618a3298FC044",787:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1008:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1030:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1088:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1101:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1111:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1112:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1115:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1116:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1230:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1231:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1284:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1285:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1287:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1294:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1442:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1559:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1663:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1807:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1890:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1891:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1984:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2001:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2002:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2008:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2019:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2020:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2021:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2221:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2222:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",2358:"0x727a77a074D1E6c4530e814F89E618a3298FC044",3737:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4002:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4337:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4460:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4689:"0x727a77a074D1E6c4530e814F89E618a3298FC044",4918:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",4919:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",5e3:"0x727a77a074D1E6c4530e814F89E618a3298FC044",5001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",5700:"0x727a77a074D1E6c4530e814F89E618a3298FC044",6102:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7332:"0x727a77a074D1E6c4530e814F89E618a3298FC044",7341:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",7700:"0x727a77a074D1E6c4530e814F89E618a3298FC044",8217:"0x727a77a074D1E6c4530e814F89E618a3298FC044",8453:"0x727a77a074D1E6c4530e814F89E618a3298FC044",9e3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",9001:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",9728:"0x727a77a074D1E6c4530e814F89E618a3298FC044",1e4:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10001:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10081:"0x727a77a074D1E6c4530e814F89E618a3298FC044",10200:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",10243:"0x727a77a074D1E6c4530e814F89E618a3298FC044",11235:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",11437:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",11891:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",12357:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",13337:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",17e3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",23294:"0x727a77a074D1E6c4530e814F89E618a3298FC044",23295:"0x727a77a074D1E6c4530e814F89E618a3298FC044",34443:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42161:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42170:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",42220:"0x727a77a074D1E6c4530e814F89E618a3298FC044",43113:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",43114:"0x727a77a074D1E6c4530e814F89E618a3298FC044",43288:"0x727a77a074D1E6c4530e814F89E618a3298FC044",44787:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",45e3:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",47805:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",54211:"0x727a77a074D1E6c4530e814F89E618a3298FC044",56288:"0x727a77a074D1E6c4530e814F89E618a3298FC044",57e3:"0x727a77a074D1E6c4530e814F89E618a3298FC044",59140:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",59144:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",71401:"0x727a77a074D1E6c4530e814F89E618a3298FC044",71402:"0x727a77a074D1E6c4530e814F89E618a3298FC044",73799:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",80001:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",84531:"0x727a77a074D1E6c4530e814F89E618a3298FC044",84532:"0x727a77a074D1E6c4530e814F89E618a3298FC044",200101:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",200202:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",333999:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",421611:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",421613:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",421614:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",534351:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",534352:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",534353:"0x727a77a074D1E6c4530e814F89E618a3298FC044",622277:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",7777777:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",11155111:"0x727a77a074D1E6c4530e814F89E618a3298FC044",222000222:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",245022926:"0x727a77a074D1E6c4530e814F89E618a3298FC044",245022934:"0x727a77a074D1E6c4530e814F89E618a3298FC044",333000333:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1313161554:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",1313161555:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da",16666e5:"0x727a77a074D1E6c4530e814F89E618a3298FC044",16667e5:"0x727a77a074D1E6c4530e814F89E618a3298FC044","11297108099":"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da","11297108109":"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da"},Axe=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}],Cxe={defaultAddress:xxe,released:vxe,contractName:wxe,version:Exe,networkAddresses:_xe,abi:Axe},Sxe="0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",Txe=!0,Bxe="SimulateTxAccessor",Mxe="1.4.1",Fxe={1:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",5:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",10:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",56:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",71:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",100:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",137:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",1030:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",1101:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",1442:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",4337:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",8192:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",8194:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",8453:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",10243:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",11235:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",13337:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",17e3:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",42161:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",42220:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",54211:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",80001:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",84531:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",84532:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199",11155111:"0x3d4BA2E0884aa488718476ca2FB8Efc291A46199"},Dxe=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}],kxe={defaultAddress:Sxe,released:Txe,contractName:Bxe,version:Mxe,networkAddresses:Fxe,abi:Dxe};var NG=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rv,"__esModule",{value:!0});rv.getSimulateTxAccessorDeployment=void 0;const Ixe=NG(Cxe),Oxe=NG(kxe),Pxe=Tu,Rxe=[Oxe.default,Ixe.default],Nxe=t=>(0,Pxe.findDeployment)(t,Rxe);rv.getSimulateTxAccessorDeployment=Nxe;(function(t){var e=de&&de.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i);var o=Object.getOwnPropertyDescriptor(a,i);(!o||("get"in o?!a.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(r,s,o)}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=de&&de.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,r,i)};Object.defineProperty(t,"__esModule",{value:!0}),n(FG,t),n(DG,t),n(ev,t),n(po,t),n(iu,t),n(rv,t)})(MG);Object.defineProperty(Ct,"__esModule",{value:!0});Ct.getSimulateTxAccessorContract=Ct.getCreateCallContract=Ct.getSignMessageLibContract=Ct.getMultiSendCallOnlyContract=Ct.getMultiSendContract=Ct.getCompatibilityFallbackHandlerContract=Ct.getProxyFactoryContract=Ct.getSafeContract=Ct.getSimulateTxAccessorContractDeployment=Ct.getCreateCallContractDeployment=Ct.getSignMessageLibContractDeployment=Ct.getSafeProxyFactoryContractDeployment=Ct.getMultiSendContractDeployment=Ct.getMultiSendCallOnlyContractDeployment=Ct.getCompatibilityFallbackHandlerContractDeployment=Ct.getSafeContractDeployment=void 0;const Nc=MG,$c=na;function $G(t,e,n=!1){const a={version:$c.safeDeploymentsVersions[t].safeSingletonVersion,network:e.toString(),released:!0};return $c.safeDeploymentsL1ChainIds.includes(e)||n?(0,Nc.getSafeSingletonDeployment)(a):(0,Nc.getSafeL2SingletonDeployment)(a)}Ct.getSafeContractDeployment=$G;function LG(t,e){const n=$c.safeDeploymentsVersions[t].compatibilityFallbackHandler;return(0,Nc.getCompatibilityFallbackHandlerDeployment)({version:n,network:e.toString(),released:!0})}Ct.getCompatibilityFallbackHandlerContractDeployment=LG;function UG(t,e){const n=$c.safeDeploymentsVersions[t].multiSendCallOnlyVersion;return(0,Nc.getMultiSendCallOnlyDeployment)({version:n,network:e.toString(),released:!0})}Ct.getMultiSendCallOnlyContractDeployment=UG;function jG(t,e){const n=$c.safeDeploymentsVersions[t].multiSendVersion;return(0,Nc.getMultiSendDeployment)({version:n,network:e.toString(),released:!0})}Ct.getMultiSendContractDeployment=jG;function HG(t,e){const n=$c.safeDeploymentsVersions[t].safeProxyFactoryVersion;return(0,Nc.getProxyFactoryDeployment)({version:n,network:e.toString(),released:!0})}Ct.getSafeProxyFactoryContractDeployment=HG;function zG(t,e){const n=$c.safeDeploymentsVersions[t].signMessageLibVersion;return(0,Nc.getSignMessageLibDeployment)({version:n,network:e.toString(),released:!0})}Ct.getSignMessageLibContractDeployment=zG;function GG(t,e){const n=$c.safeDeploymentsVersions[t].createCallVersion;return(0,Nc.getCreateCallDeployment)({version:n,network:e.toString(),released:!0})}Ct.getCreateCallContractDeployment=GG;function VG(t,e){const n=$c.safeDeploymentsVersions[t].createCallVersion;return(0,Nc.getSimulateTxAccessorDeployment)({version:n,network:e.toString(),released:!0})}Ct.getSimulateTxAccessorContractDeployment=VG;async function $xe({ethAdapter:t,safeVersion:e,customSafeAddress:n,isL1SafeSingleton:r,customContracts:a}){const i=await t.getChainId(),s=$G(e,i,r),o=await t.getSafeContract({safeVersion:e,singletonDeployment:s,customContractAddress:n??(a==null?void 0:a.safeSingletonAddress),customContractAbi:a==null?void 0:a.safeSingletonAbi});if(!await t.isContractDeployed(await o.getAddress()))throw new Error("SafeProxy contract is not deployed on the current network");return o}Ct.getSafeContract=$xe;async function Lxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=HG(e,r),i=await t.getSafeProxyFactoryContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.safeProxyFactoryAddress,customContractAbi:n==null?void 0:n.safeProxyFactoryAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("SafeProxyFactory contract is not deployed on the current network");return i}Ct.getProxyFactoryContract=Lxe;async function Uxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=LG(e,r),i=await t.getCompatibilityFallbackHandlerContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.fallbackHandlerAddress,customContractAbi:n==null?void 0:n.fallbackHandlerAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("CompatibilityFallbackHandler contract is not deployed on the current network");return i}Ct.getCompatibilityFallbackHandlerContract=Uxe;async function jxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=jG(e,r),i=await t.getMultiSendContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.multiSendAddress,customContractAbi:n==null?void 0:n.multiSendAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("MultiSend contract is not deployed on the current network");return i}Ct.getMultiSendContract=jxe;async function Hxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=UG(e,r),i=await t.getMultiSendCallOnlyContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.multiSendCallOnlyAddress,customContractAbi:n==null?void 0:n.multiSendCallOnlyAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("MultiSendCallOnly contract is not deployed on the current network");return i}Ct.getMultiSendCallOnlyContract=Hxe;async function zxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=zG(e,r),i=await t.getSignMessageLibContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.signMessageLibAddress,customContractAbi:n==null?void 0:n.signMessageLibAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("SignMessageLib contract is not deployed on the current network");return i}Ct.getSignMessageLibContract=zxe;async function Gxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=GG(e,r),i=await t.getCreateCallContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.createCallAddress,customContractAbi:n==null?void 0:n.createCallAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("CreateCall contract is not deployed on the current network");return i}Ct.getCreateCallContract=Gxe;async function Vxe({ethAdapter:t,safeVersion:e,customContracts:n}){const r=await t.getChainId(),a=VG(e,r),i=await t.getSimulateTxAccessorContract({safeVersion:e,singletonDeployment:a,customContractAddress:n==null?void 0:n.simulateTxAccessorAddress,customContractAbi:n==null?void 0:n.simulateTxAccessorAbi});if(!await t.isContractDeployed(await i.getAddress()))throw new Error("SimulateTxAccessor contract is not deployed on the current network");return i}Ct.getSimulateTxAccessorContract=Vxe;(function(t){var e=de&&de.__importDefault||function(X){return X&&X.__esModule?X:{default:X}};Object.defineProperty(t,"__esModule",{value:!0}),t.zkSyncEraCreate2Address=t.validateSafeDeploymentConfig=t.validateSafeAccountConfig=t.predictSafeAddress=t.getChainSpecificDefaultSaltNonce=t.encodeSetupCallData=t.encodeCreateProxyWithNonce=t.PREDETERMINED_SALT_NONCE=void 0;const n=yn,r=rn,a=na,i=ra,s=b8,o=TC,c=e(Xb),h=Ct;t.PREDETERMINED_SALT_NONCE="0xb1073742015cbcf5a3a4d9d1ae33ecf619439710b89475f92e2abd2117e90f90";const b=324n,v=280n,E={"1.3.0":{deployedBytecodeHash:"0x0100004124426fb9ebb25e27d670c068e52f9ba631bd383279a188be47e3f86d"}},C="0x2020dba91b30cc0006188af794c2fb30dd8520db7e2c088b7fc7c103c00ca494";function M(X,B,u){return X.encode("createProxyWithNonce",[B,u,t.PREDETERMINED_SALT_NONCE])}t.encodeCreateProxyWithNonce=M;const T=(0,s.createMemoizedFunction)(h.getCompatibilityFallbackHandlerContract);async function P({ethAdapter:X,safeAccountConfig:B,safeContract:u,customContracts:d,customSafeVersion:p}){const{owners:l,threshold:y,to:g=i.ZERO_ADDRESS,data:w=i.EMPTY_DATA,fallbackHandler:x,paymentToken:f=i.ZERO_ADDRESS,payment:m=0,paymentReceiver:A=i.ZERO_ADDRESS}=B,_=p||await u.getVersion();if((0,c.default)(_,"<=1.0.0"))return u.encode("setup",[l,y,g,w,f,m,A]);let S=x;return S!==void 0&&(0,n.isAddress)(S)||(S=await(await T({ethAdapter:X,safeVersion:_,customContracts:d})).getAddress()),u.encode("setup",[l,y,g,w,S,f,m,A])}t.encodeSetupCallData=P;const D=(0,s.createMemoizedFunction)(h.getProxyFactoryContract),F=(0,s.createMemoizedFunction)(h.getSafeContract),O=(0,s.createMemoizedFunction)(async({ethAdapter:X,safeVersion:B,customContracts:u})=>(await D({ethAdapter:X,safeVersion:B,customContracts:u})).proxyCreationCode());function k(X){return`0x${Buffer.from((0,r.keccak_256)(t.PREDETERMINED_SALT_NONCE+X)).toString("hex")}`}t.getChainSpecificDefaultSaltNonce=k;async function U({ethAdapter:X,safeAccountConfig:B,safeDeploymentConfig:u={},isL1SafeSingleton:d=!1,customContracts:p}){(0,t.validateSafeAccountConfig)(B),(0,t.validateSafeDeploymentConfig)(u);const l=await X.getChainId(),{safeVersion:y=a.DEFAULT_SAFE_VERSION,saltNonce:g=k(l)}=u,w=await D({ethAdapter:X,safeVersion:y,customContracts:p}),x=await O({ethAdapter:X,safeVersion:y,customContracts:p}),f=await F({ethAdapter:X,safeVersion:y,isL1SafeSingleton:d,customContracts:p}),m=await P({ethAdapter:X,safeAccountConfig:B,safeContract:f,customContracts:p,customSafeVersion:y}),A=(0,o.toBuffer)(X.encodeParameters(["uint256"],[g])).toString("hex"),_=(0,o.keccak256)((0,o.toBuffer)("0x"+(0,o.keccak256)((0,o.toBuffer)(m)).toString("hex")+A)),S=X.encodeParameters(["address"],[await f.getAddress()]),$=await w.getAddress();if([b,v].includes(l)){const Z=L($,y,_,S);return X.getChecksummedAddress(Z)}const I=(0,o.toBuffer)(S).toString("hex"),W=x+I,z="0x"+(0,o.generateAddress2)((0,o.toBuffer)($),(0,o.toBuffer)(_),(0,o.toBuffer)(W)).toString("hex");return X.getChecksummedAddress(z)}t.predictSafeAddress=U;const J=({owners:X,threshold:B})=>{if(X.length<=0)throw new Error("Owner list must have at least one owner");if(B<=0)throw new Error("Threshold must be greater than or equal to 1");if(B>X.length)throw new Error("Threshold must be lower than or equal to owners length")};t.validateSafeAccountConfig=J;const Y=({saltNonce:X})=>{if(X&&BigInt(X)<0)throw new Error("saltNonce must be greater than or equal to 0")};t.validateSafeDeploymentConfig=Y;function L(X,B,u,d){const p=E[B].deployedBytecodeHash,l=(0,o.keccak256)((0,o.toBuffer)(d));return(0,o.keccak256)((0,o.toBuffer)(C+(0,n.zeroPadValue)(X,32).slice(2)+u.toString("hex")+p.slice(2)+l.toString("hex"))).toString("hex").slice(24)}t.zkSyncEraCreate2Address=L})(y8);var av={},Yb={};Object.defineProperty(Yb,"__esModule",{value:!0});Yb.isSafeConfigWithPredictedSafe=void 0;function qxe(t){return t.predictedSafe!==void 0}Yb.isSafeConfigWithPredictedSafe=qxe;var W1=de&&de.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},K1=de&&de.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},fg,dg,hg,pg,yg;Object.defineProperty(av,"__esModule",{value:!0});const w9=na,c3=Ct,Wxe=Yb;class oS{constructor(){fg.set(this,void 0),dg.set(this,void 0),hg.set(this,void 0),pg.set(this,void 0),yg.set(this,void 0)}static async create(e){const n=new oS;return await n.init(e),n}async init(e){var b;const{ethAdapter:n,isL1SafeSingleton:r,contractNetworks:a,predictedSafe:i,safeAddress:s}=e,o=await n.getChainId(),c=a==null?void 0:a[o.toString()];W1(this,fg,a,"f"),W1(this,dg,r,"f");let h;if((0,Wxe.isSafeConfigWithPredictedSafe)(e))h=((b=i==null?void 0:i.safeDeploymentConfig)==null?void 0:b.safeVersion)??w9.DEFAULT_SAFE_VERSION;else{const v=await(0,c3.getSafeContract)({ethAdapter:n,safeVersion:w9.DEFAULT_SAFE_VERSION,isL1SafeSingleton:r,customSafeAddress:s,customContracts:c});h=await v.getVersion();const E=h===w9.DEFAULT_SAFE_VERSION;W1(this,hg,E?v:await(0,c3.getSafeContract)({ethAdapter:n,safeVersion:h,isL1SafeSingleton:r,customSafeAddress:s,customContracts:c}),"f")}W1(this,pg,await(0,c3.getMultiSendContract)({ethAdapter:n,safeVersion:h,customContracts:c}),"f"),W1(this,yg,await(0,c3.getMultiSendCallOnlyContract)({ethAdapter:n,safeVersion:h,customContracts:c}),"f")}get contractNetworks(){return K1(this,fg,"f")}get isL1SafeSingleton(){return K1(this,dg,"f")}get safeContract(){return K1(this,hg,"f")}get multiSendContract(){return K1(this,pg,"f")}get multiSendCallOnlyContract(){return K1(this,yg,"f")}}fg=new WeakMap,dg=new WeakMap,hg=new WeakMap,pg=new WeakMap,yg=new WeakMap;av.default=oS;var cS={},E9={},Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});Bs.isRestrictedAddress=Bs.isZeroAddress=Bs.sameString=void 0;const qG=ra;function lS(t,e){return t.toLowerCase()===e.toLowerCase()}Bs.sameString=lS;function WG(t){return lS(t,qG.ZERO_ADDRESS)}Bs.isZeroAddress=WG;function Kxe(t){return lS(t,qG.SENTINEL_ADDRESS)}function Zxe(t){return WG(t)||Kxe(t)}Bs.isRestrictedAddress=Zxe;var Ba={};function C6(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uS={exports:{}};uS.exports;(function(t){(function(e,n){function r(B,u){if(!B)throw new Error(u||"Assertion failed")}function a(B,u){B.super_=u;var d=function(){};d.prototype=u.prototype,B.prototype=new d,B.prototype.constructor=B}function i(B,u,d){if(i.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((u==="le"||u==="be")&&(d=u,u=10),this._init(B||0,u||10,d||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{s=C6("buffer").Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,d){return u.cmp(d)>0?u:d},i.min=function(u,d){return u.cmp(d)<0?u:d},i.prototype._init=function(u,d,p){if(typeof u=="number")return this._initNumber(u,d,p);if(typeof u=="object")return this._initArray(u,d,p);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),u=u.toString().replace(/\s+/g,"");var l=0;u[0]==="-"&&l++,d===16?this._parseHex(u,l):this._parseBase(u,d,l),u[0]==="-"&&(this.negative=1),this.strip(),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initNumber=function(u,d,p){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initArray=function(u,d,p){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var l=0;l=0;l-=3)g=u[l]|u[l-1]<<8|u[l-2]<<16,this.words[y]|=g<>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);else if(p==="le")for(l=0,y=0;l>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);return this.strip()};function o(B,u,d){for(var p=0,l=Math.min(B.length,d),y=u;y=49&&g<=54?p|=g-49+10:g>=17&&g<=22?p|=g-17+10:p|=g&15}return p}i.prototype._parseHex=function(u,d){this.length=Math.ceil((u.length-d)/6),this.words=new Array(this.length);for(var p=0;p=d;p-=6)y=o(u,p,p+6),this.words[l]|=y<>>26-g&4194303,g+=24,g>=26&&(g-=26,l++);p+6!==d&&(y=o(u,d,p+6),this.words[l]|=y<>>26-g&4194303),this.strip()};function c(B,u,d,p){for(var l=0,y=Math.min(B.length,d),g=u;g=49?l+=w-49+10:w>=17?l+=w-17+10:l+=w}return l}i.prototype._parseBase=function(u,d,p){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=d)l++;l--,y=y/d|0;for(var g=u.length-p,w=g%l,x=Math.min(g,g-w)+p,f=0,m=p;m1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],b=[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],v=[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];i.prototype.toString=function(u,d){u=u||10,d=d|0||1;var p;if(u===16||u==="hex"){p="";for(var l=0,y=0,g=0;g>>24-l&16777215,y!==0||g!==this.length-1?p=h[6-x.length]+x+p:p=x+p,l+=2,l>=26&&(l-=26,g--)}for(y!==0&&(p=y.toString(16)+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(u===(u|0)&&u>=2&&u<=36){var f=b[u],m=v[u];p="";var A=this.clone();for(A.negative=0;!A.isZero();){var _=A.modn(m).toString(u);A=A.idivn(m),A.isZero()?p=_+p:p=h[f-_.length]+_+p}for(this.isZero()&&(p="0"+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,d){return r(typeof s<"u"),this.toArrayLike(s,u,d)},i.prototype.toArray=function(u,d){return this.toArrayLike(Array,u,d)},i.prototype.toArrayLike=function(u,d,p){var l=this.byteLength(),y=p||Math.max(1,l);r(l<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var g=d==="le",w=new u(y),x,f,m=this.clone();if(g){for(f=0;!m.isZero();f++)x=m.andln(255),m.iushrn(8),w[f]=x;for(;f=4096&&(p+=13,d>>>=13),d>=64&&(p+=7,d>>>=7),d>=8&&(p+=4,d>>>=4),d>=2&&(p+=2,d>>>=2),p+d},i.prototype._zeroBits=function(u){if(u===0)return 26;var d=u,p=0;return d&8191||(p+=13,d>>>=13),d&127||(p+=7,d>>>=7),d&15||(p+=4,d>>>=4),d&3||(p+=2,d>>>=2),d&1||p++,p},i.prototype.bitLength=function(){var u=this.words[this.length-1],d=this._countBits(u);return(this.length-1)*26+d};function E(B){for(var u=new Array(B.bitLength()),d=0;d>>l}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,d=0;du.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var d;this.length>u.length?d=u:d=this;for(var p=0;pu.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var d,p;this.length>u.length?(d=this,p=u):(d=u,p=this);for(var l=0;lu.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var d=Math.ceil(u/26)|0,p=u%26;this._expand(d),p>0&&d--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-p),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,d){r(typeof u=="number"&&u>=0);var p=u/26|0,l=u%26;return this._expand(p+1),d?this.words[p]=this.words[p]|1<u.length?(p=this,l=u):(p=u,l=this);for(var y=0,g=0;g>>26;for(;y!==0&&g>>26;if(this.length=p.length,y!==0)this.words[this.length]=y,this.length++;else if(p!==this)for(;gu.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var d=this.iadd(u);return u.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var p=this.cmp(u);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var l,y;p>0?(l=this,y=u):(l=u,y=this);for(var g=0,w=0;w>26,this.words[w]=d&67108863;for(;g!==0&&w>26,this.words[w]=d&67108863;if(g===0&&w>>26,A=x&67108863,_=Math.min(f,u.length-1),S=Math.max(0,f-B.length+1);S<=_;S++){var $=f-S|0;l=B.words[$]|0,y=u.words[S]|0,g=l*y+A,m+=g/67108864|0,A=g&67108863}d.words[f]=A|0,x=m|0}return x!==0?d.words[f]=x|0:d.length--,d.strip()}var M=function(u,d,p){var l=u.words,y=d.words,g=p.words,w=0,x,f,m,A=l[0]|0,_=A&8191,S=A>>>13,$=l[1]|0,V=$&8191,I=$>>>13,W=l[2]|0,z=W&8191,Z=W>>>13,le=l[3]|0,ue=le&8191,G=le>>>13,j=l[4]|0,ne=j&8191,se=j>>>13,Q=l[5]|0,R=Q&8191,N=Q>>>13,K=l[6]|0,ae=K&8191,he=K>>>13,q=l[7]|0,ee=q&8191,ie=q>>>13,me=l[8]|0,be=me&8191,pe=me>>>13,Me=l[9]|0,Te=Me&8191,Ee=Me>>>13,Qe=y[0]|0,Ne=Qe&8191,Oe=Qe>>>13,at=y[1]|0,qe=at&8191,$e=at>>>13,xt=y[2]|0,Xe=xt&8191,He=xt>>>13,_t=y[3]|0,oe=_t&8191,fe=_t>>>13,Ce=y[4]|0,Ae=Ce&8191,_e=Ce>>>13,Je=y[5]|0,Fe=Je&8191,Se=Je>>>13,ze=y[6]|0,Pe=ze&8191,Ie=ze>>>13,Ye=y[7]|0,Le=Ye&8191,De=Ye>>>13,st=y[8]|0,We=st&8191,Ue=st>>>13,vt=y[9]|0,Ke=vt&8191,Re=vt>>>13;p.negative=u.negative^d.negative,p.length=19,x=Math.imul(_,Ne),f=Math.imul(_,Oe),f=f+Math.imul(S,Ne)|0,m=Math.imul(S,Oe);var ht=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,x=Math.imul(V,Ne),f=Math.imul(V,Oe),f=f+Math.imul(I,Ne)|0,m=Math.imul(I,Oe),x=x+Math.imul(_,qe)|0,f=f+Math.imul(_,$e)|0,f=f+Math.imul(S,qe)|0,m=m+Math.imul(S,$e)|0;var pt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(z,Ne),f=Math.imul(z,Oe),f=f+Math.imul(Z,Ne)|0,m=Math.imul(Z,Oe),x=x+Math.imul(V,qe)|0,f=f+Math.imul(V,$e)|0,f=f+Math.imul(I,qe)|0,m=m+Math.imul(I,$e)|0,x=x+Math.imul(_,Xe)|0,f=f+Math.imul(_,He)|0,f=f+Math.imul(S,Xe)|0,m=m+Math.imul(S,He)|0;var yt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(ue,Ne),f=Math.imul(ue,Oe),f=f+Math.imul(G,Ne)|0,m=Math.imul(G,Oe),x=x+Math.imul(z,qe)|0,f=f+Math.imul(z,$e)|0,f=f+Math.imul(Z,qe)|0,m=m+Math.imul(Z,$e)|0,x=x+Math.imul(V,Xe)|0,f=f+Math.imul(V,He)|0,f=f+Math.imul(I,Xe)|0,m=m+Math.imul(I,He)|0,x=x+Math.imul(_,oe)|0,f=f+Math.imul(_,fe)|0,f=f+Math.imul(S,oe)|0,m=m+Math.imul(S,fe)|0;var Kt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,x=Math.imul(ne,Ne),f=Math.imul(ne,Oe),f=f+Math.imul(se,Ne)|0,m=Math.imul(se,Oe),x=x+Math.imul(ue,qe)|0,f=f+Math.imul(ue,$e)|0,f=f+Math.imul(G,qe)|0,m=m+Math.imul(G,$e)|0,x=x+Math.imul(z,Xe)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(Z,Xe)|0,m=m+Math.imul(Z,He)|0,x=x+Math.imul(V,oe)|0,f=f+Math.imul(V,fe)|0,f=f+Math.imul(I,oe)|0,m=m+Math.imul(I,fe)|0,x=x+Math.imul(_,Ae)|0,f=f+Math.imul(_,_e)|0,f=f+Math.imul(S,Ae)|0,m=m+Math.imul(S,_e)|0;var Ht=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,x=Math.imul(R,Ne),f=Math.imul(R,Oe),f=f+Math.imul(N,Ne)|0,m=Math.imul(N,Oe),x=x+Math.imul(ne,qe)|0,f=f+Math.imul(ne,$e)|0,f=f+Math.imul(se,qe)|0,m=m+Math.imul(se,$e)|0,x=x+Math.imul(ue,Xe)|0,f=f+Math.imul(ue,He)|0,f=f+Math.imul(G,Xe)|0,m=m+Math.imul(G,He)|0,x=x+Math.imul(z,oe)|0,f=f+Math.imul(z,fe)|0,f=f+Math.imul(Z,oe)|0,m=m+Math.imul(Z,fe)|0,x=x+Math.imul(V,Ae)|0,f=f+Math.imul(V,_e)|0,f=f+Math.imul(I,Ae)|0,m=m+Math.imul(I,_e)|0,x=x+Math.imul(_,Fe)|0,f=f+Math.imul(_,Se)|0,f=f+Math.imul(S,Fe)|0,m=m+Math.imul(S,Se)|0;var ot=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ot>>>26)|0,ot&=67108863,x=Math.imul(ae,Ne),f=Math.imul(ae,Oe),f=f+Math.imul(he,Ne)|0,m=Math.imul(he,Oe),x=x+Math.imul(R,qe)|0,f=f+Math.imul(R,$e)|0,f=f+Math.imul(N,qe)|0,m=m+Math.imul(N,$e)|0,x=x+Math.imul(ne,Xe)|0,f=f+Math.imul(ne,He)|0,f=f+Math.imul(se,Xe)|0,m=m+Math.imul(se,He)|0,x=x+Math.imul(ue,oe)|0,f=f+Math.imul(ue,fe)|0,f=f+Math.imul(G,oe)|0,m=m+Math.imul(G,fe)|0,x=x+Math.imul(z,Ae)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(Z,Ae)|0,m=m+Math.imul(Z,_e)|0,x=x+Math.imul(V,Fe)|0,f=f+Math.imul(V,Se)|0,f=f+Math.imul(I,Fe)|0,m=m+Math.imul(I,Se)|0,x=x+Math.imul(_,Pe)|0,f=f+Math.imul(_,Ie)|0,f=f+Math.imul(S,Pe)|0,m=m+Math.imul(S,Ie)|0;var Tt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,x=Math.imul(ee,Ne),f=Math.imul(ee,Oe),f=f+Math.imul(ie,Ne)|0,m=Math.imul(ie,Oe),x=x+Math.imul(ae,qe)|0,f=f+Math.imul(ae,$e)|0,f=f+Math.imul(he,qe)|0,m=m+Math.imul(he,$e)|0,x=x+Math.imul(R,Xe)|0,f=f+Math.imul(R,He)|0,f=f+Math.imul(N,Xe)|0,m=m+Math.imul(N,He)|0,x=x+Math.imul(ne,oe)|0,f=f+Math.imul(ne,fe)|0,f=f+Math.imul(se,oe)|0,m=m+Math.imul(se,fe)|0,x=x+Math.imul(ue,Ae)|0,f=f+Math.imul(ue,_e)|0,f=f+Math.imul(G,Ae)|0,m=m+Math.imul(G,_e)|0,x=x+Math.imul(z,Fe)|0,f=f+Math.imul(z,Se)|0,f=f+Math.imul(Z,Fe)|0,m=m+Math.imul(Z,Se)|0,x=x+Math.imul(V,Pe)|0,f=f+Math.imul(V,Ie)|0,f=f+Math.imul(I,Pe)|0,m=m+Math.imul(I,Ie)|0,x=x+Math.imul(_,Le)|0,f=f+Math.imul(_,De)|0,f=f+Math.imul(S,Le)|0,m=m+Math.imul(S,De)|0;var mt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(be,Ne),f=Math.imul(be,Oe),f=f+Math.imul(pe,Ne)|0,m=Math.imul(pe,Oe),x=x+Math.imul(ee,qe)|0,f=f+Math.imul(ee,$e)|0,f=f+Math.imul(ie,qe)|0,m=m+Math.imul(ie,$e)|0,x=x+Math.imul(ae,Xe)|0,f=f+Math.imul(ae,He)|0,f=f+Math.imul(he,Xe)|0,m=m+Math.imul(he,He)|0,x=x+Math.imul(R,oe)|0,f=f+Math.imul(R,fe)|0,f=f+Math.imul(N,oe)|0,m=m+Math.imul(N,fe)|0,x=x+Math.imul(ne,Ae)|0,f=f+Math.imul(ne,_e)|0,f=f+Math.imul(se,Ae)|0,m=m+Math.imul(se,_e)|0,x=x+Math.imul(ue,Fe)|0,f=f+Math.imul(ue,Se)|0,f=f+Math.imul(G,Fe)|0,m=m+Math.imul(G,Se)|0,x=x+Math.imul(z,Pe)|0,f=f+Math.imul(z,Ie)|0,f=f+Math.imul(Z,Pe)|0,m=m+Math.imul(Z,Ie)|0,x=x+Math.imul(V,Le)|0,f=f+Math.imul(V,De)|0,f=f+Math.imul(I,Le)|0,m=m+Math.imul(I,De)|0,x=x+Math.imul(_,We)|0,f=f+Math.imul(_,Ue)|0,f=f+Math.imul(S,We)|0,m=m+Math.imul(S,Ue)|0;var Pt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(Te,Ne),f=Math.imul(Te,Oe),f=f+Math.imul(Ee,Ne)|0,m=Math.imul(Ee,Oe),x=x+Math.imul(be,qe)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(pe,qe)|0,m=m+Math.imul(pe,$e)|0,x=x+Math.imul(ee,Xe)|0,f=f+Math.imul(ee,He)|0,f=f+Math.imul(ie,Xe)|0,m=m+Math.imul(ie,He)|0,x=x+Math.imul(ae,oe)|0,f=f+Math.imul(ae,fe)|0,f=f+Math.imul(he,oe)|0,m=m+Math.imul(he,fe)|0,x=x+Math.imul(R,Ae)|0,f=f+Math.imul(R,_e)|0,f=f+Math.imul(N,Ae)|0,m=m+Math.imul(N,_e)|0,x=x+Math.imul(ne,Fe)|0,f=f+Math.imul(ne,Se)|0,f=f+Math.imul(se,Fe)|0,m=m+Math.imul(se,Se)|0,x=x+Math.imul(ue,Pe)|0,f=f+Math.imul(ue,Ie)|0,f=f+Math.imul(G,Pe)|0,m=m+Math.imul(G,Ie)|0,x=x+Math.imul(z,Le)|0,f=f+Math.imul(z,De)|0,f=f+Math.imul(Z,Le)|0,m=m+Math.imul(Z,De)|0,x=x+Math.imul(V,We)|0,f=f+Math.imul(V,Ue)|0,f=f+Math.imul(I,We)|0,m=m+Math.imul(I,Ue)|0,x=x+Math.imul(_,Ke)|0,f=f+Math.imul(_,Re)|0,f=f+Math.imul(S,Ke)|0,m=m+Math.imul(S,Re)|0;var An=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(An>>>26)|0,An&=67108863,x=Math.imul(Te,qe),f=Math.imul(Te,$e),f=f+Math.imul(Ee,qe)|0,m=Math.imul(Ee,$e),x=x+Math.imul(be,Xe)|0,f=f+Math.imul(be,He)|0,f=f+Math.imul(pe,Xe)|0,m=m+Math.imul(pe,He)|0,x=x+Math.imul(ee,oe)|0,f=f+Math.imul(ee,fe)|0,f=f+Math.imul(ie,oe)|0,m=m+Math.imul(ie,fe)|0,x=x+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,_e)|0,f=f+Math.imul(he,Ae)|0,m=m+Math.imul(he,_e)|0,x=x+Math.imul(R,Fe)|0,f=f+Math.imul(R,Se)|0,f=f+Math.imul(N,Fe)|0,m=m+Math.imul(N,Se)|0,x=x+Math.imul(ne,Pe)|0,f=f+Math.imul(ne,Ie)|0,f=f+Math.imul(se,Pe)|0,m=m+Math.imul(se,Ie)|0,x=x+Math.imul(ue,Le)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(G,Le)|0,m=m+Math.imul(G,De)|0,x=x+Math.imul(z,We)|0,f=f+Math.imul(z,Ue)|0,f=f+Math.imul(Z,We)|0,m=m+Math.imul(Z,Ue)|0,x=x+Math.imul(V,Ke)|0,f=f+Math.imul(V,Re)|0,f=f+Math.imul(I,Ke)|0,m=m+Math.imul(I,Re)|0;var On=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(On>>>26)|0,On&=67108863,x=Math.imul(Te,Xe),f=Math.imul(Te,He),f=f+Math.imul(Ee,Xe)|0,m=Math.imul(Ee,He),x=x+Math.imul(be,oe)|0,f=f+Math.imul(be,fe)|0,f=f+Math.imul(pe,oe)|0,m=m+Math.imul(pe,fe)|0,x=x+Math.imul(ee,Ae)|0,f=f+Math.imul(ee,_e)|0,f=f+Math.imul(ie,Ae)|0,m=m+Math.imul(ie,_e)|0,x=x+Math.imul(ae,Fe)|0,f=f+Math.imul(ae,Se)|0,f=f+Math.imul(he,Fe)|0,m=m+Math.imul(he,Se)|0,x=x+Math.imul(R,Pe)|0,f=f+Math.imul(R,Ie)|0,f=f+Math.imul(N,Pe)|0,m=m+Math.imul(N,Ie)|0,x=x+Math.imul(ne,Le)|0,f=f+Math.imul(ne,De)|0,f=f+Math.imul(se,Le)|0,m=m+Math.imul(se,De)|0,x=x+Math.imul(ue,We)|0,f=f+Math.imul(ue,Ue)|0,f=f+Math.imul(G,We)|0,m=m+Math.imul(G,Ue)|0,x=x+Math.imul(z,Ke)|0,f=f+Math.imul(z,Re)|0,f=f+Math.imul(Z,Ke)|0,m=m+Math.imul(Z,Re)|0;var Zn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,x=Math.imul(Te,oe),f=Math.imul(Te,fe),f=f+Math.imul(Ee,oe)|0,m=Math.imul(Ee,fe),x=x+Math.imul(be,Ae)|0,f=f+Math.imul(be,_e)|0,f=f+Math.imul(pe,Ae)|0,m=m+Math.imul(pe,_e)|0,x=x+Math.imul(ee,Fe)|0,f=f+Math.imul(ee,Se)|0,f=f+Math.imul(ie,Fe)|0,m=m+Math.imul(ie,Se)|0,x=x+Math.imul(ae,Pe)|0,f=f+Math.imul(ae,Ie)|0,f=f+Math.imul(he,Pe)|0,m=m+Math.imul(he,Ie)|0,x=x+Math.imul(R,Le)|0,f=f+Math.imul(R,De)|0,f=f+Math.imul(N,Le)|0,m=m+Math.imul(N,De)|0,x=x+Math.imul(ne,We)|0,f=f+Math.imul(ne,Ue)|0,f=f+Math.imul(se,We)|0,m=m+Math.imul(se,Ue)|0,x=x+Math.imul(ue,Ke)|0,f=f+Math.imul(ue,Re)|0,f=f+Math.imul(G,Ke)|0,m=m+Math.imul(G,Re)|0;var Qn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,x=Math.imul(Te,Ae),f=Math.imul(Te,_e),f=f+Math.imul(Ee,Ae)|0,m=Math.imul(Ee,_e),x=x+Math.imul(be,Fe)|0,f=f+Math.imul(be,Se)|0,f=f+Math.imul(pe,Fe)|0,m=m+Math.imul(pe,Se)|0,x=x+Math.imul(ee,Pe)|0,f=f+Math.imul(ee,Ie)|0,f=f+Math.imul(ie,Pe)|0,m=m+Math.imul(ie,Ie)|0,x=x+Math.imul(ae,Le)|0,f=f+Math.imul(ae,De)|0,f=f+Math.imul(he,Le)|0,m=m+Math.imul(he,De)|0,x=x+Math.imul(R,We)|0,f=f+Math.imul(R,Ue)|0,f=f+Math.imul(N,We)|0,m=m+Math.imul(N,Ue)|0,x=x+Math.imul(ne,Ke)|0,f=f+Math.imul(ne,Re)|0,f=f+Math.imul(se,Ke)|0,m=m+Math.imul(se,Re)|0;var Jn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,x=Math.imul(Te,Fe),f=Math.imul(Te,Se),f=f+Math.imul(Ee,Fe)|0,m=Math.imul(Ee,Se),x=x+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ie)|0,f=f+Math.imul(pe,Pe)|0,m=m+Math.imul(pe,Ie)|0,x=x+Math.imul(ee,Le)|0,f=f+Math.imul(ee,De)|0,f=f+Math.imul(ie,Le)|0,m=m+Math.imul(ie,De)|0,x=x+Math.imul(ae,We)|0,f=f+Math.imul(ae,Ue)|0,f=f+Math.imul(he,We)|0,m=m+Math.imul(he,Ue)|0,x=x+Math.imul(R,Ke)|0,f=f+Math.imul(R,Re)|0,f=f+Math.imul(N,Ke)|0,m=m+Math.imul(N,Re)|0;var Xn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,x=Math.imul(Te,Pe),f=Math.imul(Te,Ie),f=f+Math.imul(Ee,Pe)|0,m=Math.imul(Ee,Ie),x=x+Math.imul(be,Le)|0,f=f+Math.imul(be,De)|0,f=f+Math.imul(pe,Le)|0,m=m+Math.imul(pe,De)|0,x=x+Math.imul(ee,We)|0,f=f+Math.imul(ee,Ue)|0,f=f+Math.imul(ie,We)|0,m=m+Math.imul(ie,Ue)|0,x=x+Math.imul(ae,Ke)|0,f=f+Math.imul(ae,Re)|0,f=f+Math.imul(he,Ke)|0,m=m+Math.imul(he,Re)|0;var Yn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,x=Math.imul(Te,Le),f=Math.imul(Te,De),f=f+Math.imul(Ee,Le)|0,m=Math.imul(Ee,De),x=x+Math.imul(be,We)|0,f=f+Math.imul(be,Ue)|0,f=f+Math.imul(pe,We)|0,m=m+Math.imul(pe,Ue)|0,x=x+Math.imul(ee,Ke)|0,f=f+Math.imul(ee,Re)|0,f=f+Math.imul(ie,Ke)|0,m=m+Math.imul(ie,Re)|0;var er=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(Te,We),f=Math.imul(Te,Ue),f=f+Math.imul(Ee,We)|0,m=Math.imul(Ee,Ue),x=x+Math.imul(be,Ke)|0,f=f+Math.imul(be,Re)|0,f=f+Math.imul(pe,Ke)|0,m=m+Math.imul(pe,Re)|0;var sa=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(Te,Ke),f=Math.imul(Te,Re),f=f+Math.imul(Ee,Ke)|0,m=Math.imul(Ee,Re);var oa=(w+x|0)+((f&8191)<<13)|0;return w=(m+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,g[0]=ht,g[1]=pt,g[2]=yt,g[3]=Kt,g[4]=Ht,g[5]=ot,g[6]=Tt,g[7]=mt,g[8]=Pt,g[9]=An,g[10]=On,g[11]=Zn,g[12]=Qn,g[13]=Jn,g[14]=Xn,g[15]=Yn,g[16]=er,g[17]=sa,g[18]=oa,w!==0&&(g[19]=w,p.length++),p};Math.imul||(M=C);function T(B,u,d){d.negative=u.negative^B.negative,d.length=B.length+u.length;for(var p=0,l=0,y=0;y>>26)|0,l+=g>>>26,g&=67108863}d.words[y]=w,p=g,g=l}return p!==0?d.words[y]=p:d.length--,d.strip()}function P(B,u,d){var p=new D;return p.mulp(B,u,d)}i.prototype.mulTo=function(u,d){var p,l=this.length+u.length;return this.length===10&&u.length===10?p=M(this,u,d):l<63?p=C(this,u,d):l<1024?p=T(this,u,d):p=P(this,u,d),p};function D(B,u){this.x=B,this.y=u}D.prototype.makeRBT=function(u){for(var d=new Array(u),p=i.prototype._countBits(u)-1,l=0;l>=1;return l},D.prototype.permute=function(u,d,p,l,y,g){for(var w=0;w>>1)y++;return 1<>>13,p[2*g+1]=y&8191,y=y>>>13;for(g=2*d;g>=26,d+=l/67108864|0,d+=y>>>26,this.words[p]=y&67108863}return d!==0&&(this.words[p]=d,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var d=E(u);if(d.length===0)return new i(1);for(var p=this,l=0;l=0);var d=u%26,p=(u-d)/26,l=67108863>>>26-d<<26-d,y;if(d!==0){var g=0;for(y=0;y>>26-d}g&&(this.words[y]=g,this.length++)}if(p!==0){for(y=this.length-1;y>=0;y--)this.words[y+p]=this.words[y];for(y=0;y=0);var l;d?l=(d-d%26)/26:l=0;var y=u%26,g=Math.min((u-y)/26,this.length),w=67108863^67108863>>>y<g)for(this.length-=g,f=0;f=0&&(m!==0||f>=l);f--){var A=this.words[f]|0;this.words[f]=m<<26-y|A>>>y,m=A&w}return x&&m!==0&&(x.words[x.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,d,p){return r(this.negative===0),this.iushrn(u,d,p)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var d=u%26,p=(u-d)/26,l=1<=0);var d=u%26,p=(u-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(d!==0&&p++,this.length=Math.min(p,this.length),d!==0){var l=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(x/67108864|0),this.words[y+p]=g&67108863}for(;y>26,this.words[y+p]=g&67108863;if(w===0)return this.strip();for(r(w===-1),w=0,y=0;y>26,this.words[y]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,d){var p=this.length-u.length,l=this.clone(),y=u,g=y.words[y.length-1]|0,w=this._countBits(g);p=26-w,p!==0&&(y=y.ushln(p),l.iushln(p),g=y.words[y.length-1]|0);var x=l.length-y.length,f;if(d!=="mod"){f=new i(null),f.length=x+1,f.words=new Array(f.length);for(var m=0;m=0;_--){var S=(l.words[y.length+_]|0)*67108864+(l.words[y.length+_-1]|0);for(S=Math.min(S/g|0,67108863),l._ishlnsubmul(y,S,_);l.negative!==0;)S--,l.negative=0,l._ishlnsubmul(y,1,_),l.isZero()||(l.negative^=1);f&&(f.words[_]=S)}return f&&f.strip(),l.strip(),d!=="div"&&p!==0&&l.iushrn(p),{div:f||null,mod:l}},i.prototype.divmod=function(u,d,p){if(r(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var l,y,g;return this.negative!==0&&u.negative===0?(g=this.neg().divmod(u,d),d!=="mod"&&(l=g.div.neg()),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.iadd(u)),{div:l,mod:y}):this.negative===0&&u.negative!==0?(g=this.divmod(u.neg(),d),d!=="mod"&&(l=g.div.neg()),{div:l,mod:g.mod}):this.negative&u.negative?(g=this.neg().divmod(u.neg(),d),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.isub(u)),{div:g.div,mod:y}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?d==="div"?{div:this.divn(u.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,d)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var d=this.divmod(u);if(d.mod.isZero())return d.div;var p=d.div.negative!==0?d.mod.isub(u):d.mod,l=u.ushrn(1),y=u.andln(1),g=p.cmp(l);return g<0||y===1&&g===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modn=function(u){r(u<=67108863);for(var d=(1<<26)%u,p=0,l=this.length-1;l>=0;l--)p=(d*p+(this.words[l]|0))%u;return p},i.prototype.idivn=function(u){r(u<=67108863);for(var d=0,p=this.length-1;p>=0;p--){var l=(this.words[p]|0)+d*67108864;this.words[p]=l/u|0,d=l%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=new i(0),w=new i(1),x=0;d.isEven()&&p.isEven();)d.iushrn(1),p.iushrn(1),++x;for(var f=p.clone(),m=d.clone();!d.isZero();){for(var A=0,_=1;!(d.words[0]&_)&&A<26;++A,_<<=1);if(A>0)for(d.iushrn(A);A-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(f),y.isub(m)),l.iushrn(1),y.iushrn(1);for(var S=0,$=1;!(p.words[0]&$)&&S<26;++S,$<<=1);if(S>0)for(p.iushrn(S);S-- >0;)(g.isOdd()||w.isOdd())&&(g.iadd(f),w.isub(m)),g.iushrn(1),w.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(g),y.isub(w)):(p.isub(d),g.isub(l),w.isub(y))}return{a:g,b:w,gcd:p.iushln(x)}},i.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=p.clone();d.cmpn(1)>0&&p.cmpn(1)>0;){for(var w=0,x=1;!(d.words[0]&x)&&w<26;++w,x<<=1);if(w>0)for(d.iushrn(w);w-- >0;)l.isOdd()&&l.iadd(g),l.iushrn(1);for(var f=0,m=1;!(p.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(p.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(g),y.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(y)):(p.isub(d),y.isub(l))}var A;return d.cmpn(1)===0?A=l:A=y,A.cmpn(0)<0&&A.iadd(u),A},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var d=this.clone(),p=u.clone();d.negative=0,p.negative=0;for(var l=0;d.isEven()&&p.isEven();l++)d.iushrn(1),p.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;p.isEven();)p.iushrn(1);var y=d.cmp(p);if(y<0){var g=d;d=p,p=g}else if(y===0||p.cmpn(1)===0)break;d.isub(p)}while(!0);return p.iushln(l)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){r(typeof u=="number");var d=u%26,p=(u-d)/26,l=1<>>26,w&=67108863,this.words[g]=w}return y!==0&&(this.words[g]=y,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var d=u<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var p;if(this.length>1)p=1;else{d&&(u=-u),r(u<=67108863,"Number is too big");var l=this.words[0]|0;p=l===u?0:lu.length)return 1;if(this.length=0;p--){var l=this.words[p]|0,y=u.words[p]|0;if(l!==y){ly&&(d=1);break}}return d},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new L(u)},i.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var F={k256:null,p224:null,p192:null,p25519:null};function O(B,u){this.name=B,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},O.prototype.ireduce=function(u){var d=u,p;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),p=d.bitLength();while(p>this.n);var l=p0?d.isub(this.p):d.strip(),d},O.prototype.split=function(u,d){u.iushrn(this.n,0,d)},O.prototype.imulK=function(u){return u.imul(this.k)};function k(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(k,O),k.prototype.split=function(u,d){for(var p=4194303,l=Math.min(u.length,9),y=0;y>>22,g=w}g>>>=22,u.words[y-10]=g,g===0&&u.length>10?u.length-=10:u.length-=9},k.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var d=0,p=0;p>>=26,u.words[p]=y,d=l}return d!==0&&(u.words[u.length++]=d),u},i._prime=function(u){if(F[u])return F[u];var d;if(u==="k256")d=new k;else if(u==="p224")d=new U;else if(u==="p192")d=new J;else if(u==="p25519")d=new Y;else throw new Error("Unknown prime "+u);return F[u]=d,d};function L(B){if(typeof B=="string"){var u=i._prime(B);this.m=u.p,this.prime=u}else r(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}L.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},L.prototype._verify2=function(u,d){r((u.negative|d.negative)===0,"red works only with positives"),r(u.red&&u.red===d.red,"red works only with red numbers")},L.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},L.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},L.prototype.add=function(u,d){this._verify2(u,d);var p=u.add(d);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},L.prototype.iadd=function(u,d){this._verify2(u,d);var p=u.iadd(d);return p.cmp(this.m)>=0&&p.isub(this.m),p},L.prototype.sub=function(u,d){this._verify2(u,d);var p=u.sub(d);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},L.prototype.isub=function(u,d){this._verify2(u,d);var p=u.isub(d);return p.cmpn(0)<0&&p.iadd(this.m),p},L.prototype.shl=function(u,d){return this._verify1(u),this.imod(u.ushln(d))},L.prototype.imul=function(u,d){return this._verify2(u,d),this.imod(u.imul(d))},L.prototype.mul=function(u,d){return this._verify2(u,d),this.imod(u.mul(d))},L.prototype.isqr=function(u){return this.imul(u,u.clone())},L.prototype.sqr=function(u){return this.mul(u,u)},L.prototype.sqrt=function(u){if(u.isZero())return u.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(u,p)}for(var l=this.m.subn(1),y=0;!l.isZero()&&l.andln(1)===0;)y++,l.iushrn(1);r(!l.isZero());var g=new i(1).toRed(this),w=g.redNeg(),x=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,x).cmp(w)!==0;)f.redIAdd(w);for(var m=this.pow(f,l),A=this.pow(u,l.addn(1).iushrn(1)),_=this.pow(u,l),S=y;_.cmp(g)!==0;){for(var $=_,V=0;$.cmp(g)!==0;V++)$=$.redSqr();r(V=0;y--){for(var m=d.words[y],A=f-1;A>=0;A--){var _=m>>A&1;if(g!==l[0]&&(g=this.sqr(g)),_===0&&w===0){x=0;continue}w<<=1,w|=_,x++,!(x!==p&&(y!==0||A!==0))&&(g=this.mul(g,l[w]),x=0,w=0)}f=26}return g},L.prototype.convertTo=function(u){var d=u.umod(this.m);return d===u?d.clone():d},L.prototype.convertFrom=function(u){var d=u.clone();return d.red=null,d},i.mont=function(u){return new X(u)};function X(B){L.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(X,L),X.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},X.prototype.convertFrom=function(u){var d=this.imod(u.mul(this.rinv));return d.red=null,d},X.prototype.imul=function(u,d){if(u.isZero()||d.isZero())return u.words[0]=0,u.length=1,u;var p=u.imul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.mul=function(u,d){if(u.isZero()||d.isZero())return new i(0)._forceRed(this);var p=u.mul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.invm=function(u){var d=this.imod(u._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(t,de)})(uS);var Qxe=uS.exports,fS={exports:{}};fS.exports;(function(t){(function(e,n){function r(B,u){if(!B)throw new Error(u||"Assertion failed")}function a(B,u){B.super_=u;var d=function(){};d.prototype=u.prototype,B.prototype=new d,B.prototype.constructor=B}function i(B,u,d){if(i.isBN(B))return B;this.negative=0,this.words=null,this.length=0,this.red=null,B!==null&&((u==="le"||u==="be")&&(d=u,u=10),this._init(B||0,u||10,d||"be"))}typeof e=="object"?e.exports=i:n.BN=i,i.BN=i,i.wordSize=26;var s;try{s=C6("buffer").Buffer}catch{}i.isBN=function(u){return u instanceof i?!0:u!==null&&typeof u=="object"&&u.constructor.wordSize===i.wordSize&&Array.isArray(u.words)},i.max=function(u,d){return u.cmp(d)>0?u:d},i.min=function(u,d){return u.cmp(d)<0?u:d},i.prototype._init=function(u,d,p){if(typeof u=="number")return this._initNumber(u,d,p);if(typeof u=="object")return this._initArray(u,d,p);d==="hex"&&(d=16),r(d===(d|0)&&d>=2&&d<=36),u=u.toString().replace(/\s+/g,"");var l=0;u[0]==="-"&&l++,d===16?this._parseHex(u,l):this._parseBase(u,d,l),u[0]==="-"&&(this.negative=1),this.strip(),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initNumber=function(u,d,p){u<0&&(this.negative=1,u=-u),u<67108864?(this.words=[u&67108863],this.length=1):u<4503599627370496?(this.words=[u&67108863,u/67108864&67108863],this.length=2):(r(u<9007199254740992),this.words=[u&67108863,u/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),d,p)},i.prototype._initArray=function(u,d,p){if(r(typeof u.length=="number"),u.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(u.length/3),this.words=new Array(this.length);for(var l=0;l=0;l-=3)g=u[l]|u[l-1]<<8|u[l-2]<<16,this.words[y]|=g<>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);else if(p==="le")for(l=0,y=0;l>>26-w&67108863,w+=24,w>=26&&(w-=26,y++);return this.strip()};function o(B,u,d){for(var p=0,l=Math.min(B.length,d),y=u;y=49&&g<=54?p|=g-49+10:g>=17&&g<=22?p|=g-17+10:p|=g&15}return p}i.prototype._parseHex=function(u,d){this.length=Math.ceil((u.length-d)/6),this.words=new Array(this.length);for(var p=0;p=d;p-=6)y=o(u,p,p+6),this.words[l]|=y<>>26-g&4194303,g+=24,g>=26&&(g-=26,l++);p+6!==d&&(y=o(u,d,p+6),this.words[l]|=y<>>26-g&4194303),this.strip()};function c(B,u,d,p){for(var l=0,y=Math.min(B.length,d),g=u;g=49?l+=w-49+10:w>=17?l+=w-17+10:l+=w}return l}i.prototype._parseBase=function(u,d,p){this.words=[0],this.length=1;for(var l=0,y=1;y<=67108863;y*=d)l++;l--,y=y/d|0;for(var g=u.length-p,w=g%l,x=Math.min(g,g-w)+p,f=0,m=p;m1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},i.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},i.prototype.inspect=function(){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"],b=[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],v=[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];i.prototype.toString=function(u,d){u=u||10,d=d|0||1;var p;if(u===16||u==="hex"){p="";for(var l=0,y=0,g=0;g>>24-l&16777215,y!==0||g!==this.length-1?p=h[6-x.length]+x+p:p=x+p,l+=2,l>=26&&(l-=26,g--)}for(y!==0&&(p=y.toString(16)+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(u===(u|0)&&u>=2&&u<=36){var f=b[u],m=v[u];p="";var A=this.clone();for(A.negative=0;!A.isZero();){var _=A.modn(m).toString(u);A=A.idivn(m),A.isZero()?p=_+p:p=h[f-_.length]+_+p}for(this.isZero()&&(p="0"+p);p.length%d!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var u=this.words[0];return this.length===2?u+=this.words[1]*67108864:this.length===3&&this.words[2]===1?u+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-u:u},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(u,d){return r(typeof s<"u"),this.toArrayLike(s,u,d)},i.prototype.toArray=function(u,d){return this.toArrayLike(Array,u,d)},i.prototype.toArrayLike=function(u,d,p){var l=this.byteLength(),y=p||Math.max(1,l);r(l<=y,"byte array longer than desired length"),r(y>0,"Requested array length <= 0"),this.strip();var g=d==="le",w=new u(y),x,f,m=this.clone();if(g){for(f=0;!m.isZero();f++)x=m.andln(255),m.iushrn(8),w[f]=x;for(;f=4096&&(p+=13,d>>>=13),d>=64&&(p+=7,d>>>=7),d>=8&&(p+=4,d>>>=4),d>=2&&(p+=2,d>>>=2),p+d},i.prototype._zeroBits=function(u){if(u===0)return 26;var d=u,p=0;return d&8191||(p+=13,d>>>=13),d&127||(p+=7,d>>>=7),d&15||(p+=4,d>>>=4),d&3||(p+=2,d>>>=2),d&1||p++,p},i.prototype.bitLength=function(){var u=this.words[this.length-1],d=this._countBits(u);return(this.length-1)*26+d};function E(B){for(var u=new Array(B.bitLength()),d=0;d>>l}return u}i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,d=0;du.length?this.clone().ior(u):u.clone().ior(this)},i.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},i.prototype.iuand=function(u){var d;this.length>u.length?d=u:d=this;for(var p=0;pu.length?this.clone().iand(u):u.clone().iand(this)},i.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},i.prototype.iuxor=function(u){var d,p;this.length>u.length?(d=this,p=u):(d=u,p=this);for(var l=0;lu.length?this.clone().ixor(u):u.clone().ixor(this)},i.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},i.prototype.inotn=function(u){r(typeof u=="number"&&u>=0);var d=Math.ceil(u/26)|0,p=u%26;this._expand(d),p>0&&d--;for(var l=0;l0&&(this.words[l]=~this.words[l]&67108863>>26-p),this.strip()},i.prototype.notn=function(u){return this.clone().inotn(u)},i.prototype.setn=function(u,d){r(typeof u=="number"&&u>=0);var p=u/26|0,l=u%26;return this._expand(p+1),d?this.words[p]=this.words[p]|1<u.length?(p=this,l=u):(p=u,l=this);for(var y=0,g=0;g>>26;for(;y!==0&&g>>26;if(this.length=p.length,y!==0)this.words[this.length]=y,this.length++;else if(p!==this)for(;gu.length?this.clone().iadd(u):u.clone().iadd(this)},i.prototype.isub=function(u){if(u.negative!==0){u.negative=0;var d=this.iadd(u);return u.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var p=this.cmp(u);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var l,y;p>0?(l=this,y=u):(l=u,y=this);for(var g=0,w=0;w>26,this.words[w]=d&67108863;for(;g!==0&&w>26,this.words[w]=d&67108863;if(g===0&&w>>26,A=x&67108863,_=Math.min(f,u.length-1),S=Math.max(0,f-B.length+1);S<=_;S++){var $=f-S|0;l=B.words[$]|0,y=u.words[S]|0,g=l*y+A,m+=g/67108864|0,A=g&67108863}d.words[f]=A|0,x=m|0}return x!==0?d.words[f]=x|0:d.length--,d.strip()}var M=function(u,d,p){var l=u.words,y=d.words,g=p.words,w=0,x,f,m,A=l[0]|0,_=A&8191,S=A>>>13,$=l[1]|0,V=$&8191,I=$>>>13,W=l[2]|0,z=W&8191,Z=W>>>13,le=l[3]|0,ue=le&8191,G=le>>>13,j=l[4]|0,ne=j&8191,se=j>>>13,Q=l[5]|0,R=Q&8191,N=Q>>>13,K=l[6]|0,ae=K&8191,he=K>>>13,q=l[7]|0,ee=q&8191,ie=q>>>13,me=l[8]|0,be=me&8191,pe=me>>>13,Me=l[9]|0,Te=Me&8191,Ee=Me>>>13,Qe=y[0]|0,Ne=Qe&8191,Oe=Qe>>>13,at=y[1]|0,qe=at&8191,$e=at>>>13,xt=y[2]|0,Xe=xt&8191,He=xt>>>13,_t=y[3]|0,oe=_t&8191,fe=_t>>>13,Ce=y[4]|0,Ae=Ce&8191,_e=Ce>>>13,Je=y[5]|0,Fe=Je&8191,Se=Je>>>13,ze=y[6]|0,Pe=ze&8191,Ie=ze>>>13,Ye=y[7]|0,Le=Ye&8191,De=Ye>>>13,st=y[8]|0,We=st&8191,Ue=st>>>13,vt=y[9]|0,Ke=vt&8191,Re=vt>>>13;p.negative=u.negative^d.negative,p.length=19,x=Math.imul(_,Ne),f=Math.imul(_,Oe),f=f+Math.imul(S,Ne)|0,m=Math.imul(S,Oe);var ht=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ht>>>26)|0,ht&=67108863,x=Math.imul(V,Ne),f=Math.imul(V,Oe),f=f+Math.imul(I,Ne)|0,m=Math.imul(I,Oe),x=x+Math.imul(_,qe)|0,f=f+Math.imul(_,$e)|0,f=f+Math.imul(S,qe)|0,m=m+Math.imul(S,$e)|0;var pt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(pt>>>26)|0,pt&=67108863,x=Math.imul(z,Ne),f=Math.imul(z,Oe),f=f+Math.imul(Z,Ne)|0,m=Math.imul(Z,Oe),x=x+Math.imul(V,qe)|0,f=f+Math.imul(V,$e)|0,f=f+Math.imul(I,qe)|0,m=m+Math.imul(I,$e)|0,x=x+Math.imul(_,Xe)|0,f=f+Math.imul(_,He)|0,f=f+Math.imul(S,Xe)|0,m=m+Math.imul(S,He)|0;var yt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(yt>>>26)|0,yt&=67108863,x=Math.imul(ue,Ne),f=Math.imul(ue,Oe),f=f+Math.imul(G,Ne)|0,m=Math.imul(G,Oe),x=x+Math.imul(z,qe)|0,f=f+Math.imul(z,$e)|0,f=f+Math.imul(Z,qe)|0,m=m+Math.imul(Z,$e)|0,x=x+Math.imul(V,Xe)|0,f=f+Math.imul(V,He)|0,f=f+Math.imul(I,Xe)|0,m=m+Math.imul(I,He)|0,x=x+Math.imul(_,oe)|0,f=f+Math.imul(_,fe)|0,f=f+Math.imul(S,oe)|0,m=m+Math.imul(S,fe)|0;var Kt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Kt>>>26)|0,Kt&=67108863,x=Math.imul(ne,Ne),f=Math.imul(ne,Oe),f=f+Math.imul(se,Ne)|0,m=Math.imul(se,Oe),x=x+Math.imul(ue,qe)|0,f=f+Math.imul(ue,$e)|0,f=f+Math.imul(G,qe)|0,m=m+Math.imul(G,$e)|0,x=x+Math.imul(z,Xe)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(Z,Xe)|0,m=m+Math.imul(Z,He)|0,x=x+Math.imul(V,oe)|0,f=f+Math.imul(V,fe)|0,f=f+Math.imul(I,oe)|0,m=m+Math.imul(I,fe)|0,x=x+Math.imul(_,Ae)|0,f=f+Math.imul(_,_e)|0,f=f+Math.imul(S,Ae)|0,m=m+Math.imul(S,_e)|0;var Ht=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,x=Math.imul(R,Ne),f=Math.imul(R,Oe),f=f+Math.imul(N,Ne)|0,m=Math.imul(N,Oe),x=x+Math.imul(ne,qe)|0,f=f+Math.imul(ne,$e)|0,f=f+Math.imul(se,qe)|0,m=m+Math.imul(se,$e)|0,x=x+Math.imul(ue,Xe)|0,f=f+Math.imul(ue,He)|0,f=f+Math.imul(G,Xe)|0,m=m+Math.imul(G,He)|0,x=x+Math.imul(z,oe)|0,f=f+Math.imul(z,fe)|0,f=f+Math.imul(Z,oe)|0,m=m+Math.imul(Z,fe)|0,x=x+Math.imul(V,Ae)|0,f=f+Math.imul(V,_e)|0,f=f+Math.imul(I,Ae)|0,m=m+Math.imul(I,_e)|0,x=x+Math.imul(_,Fe)|0,f=f+Math.imul(_,Se)|0,f=f+Math.imul(S,Fe)|0,m=m+Math.imul(S,Se)|0;var ot=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(ot>>>26)|0,ot&=67108863,x=Math.imul(ae,Ne),f=Math.imul(ae,Oe),f=f+Math.imul(he,Ne)|0,m=Math.imul(he,Oe),x=x+Math.imul(R,qe)|0,f=f+Math.imul(R,$e)|0,f=f+Math.imul(N,qe)|0,m=m+Math.imul(N,$e)|0,x=x+Math.imul(ne,Xe)|0,f=f+Math.imul(ne,He)|0,f=f+Math.imul(se,Xe)|0,m=m+Math.imul(se,He)|0,x=x+Math.imul(ue,oe)|0,f=f+Math.imul(ue,fe)|0,f=f+Math.imul(G,oe)|0,m=m+Math.imul(G,fe)|0,x=x+Math.imul(z,Ae)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(Z,Ae)|0,m=m+Math.imul(Z,_e)|0,x=x+Math.imul(V,Fe)|0,f=f+Math.imul(V,Se)|0,f=f+Math.imul(I,Fe)|0,m=m+Math.imul(I,Se)|0,x=x+Math.imul(_,Pe)|0,f=f+Math.imul(_,Ie)|0,f=f+Math.imul(S,Pe)|0,m=m+Math.imul(S,Ie)|0;var Tt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,x=Math.imul(ee,Ne),f=Math.imul(ee,Oe),f=f+Math.imul(ie,Ne)|0,m=Math.imul(ie,Oe),x=x+Math.imul(ae,qe)|0,f=f+Math.imul(ae,$e)|0,f=f+Math.imul(he,qe)|0,m=m+Math.imul(he,$e)|0,x=x+Math.imul(R,Xe)|0,f=f+Math.imul(R,He)|0,f=f+Math.imul(N,Xe)|0,m=m+Math.imul(N,He)|0,x=x+Math.imul(ne,oe)|0,f=f+Math.imul(ne,fe)|0,f=f+Math.imul(se,oe)|0,m=m+Math.imul(se,fe)|0,x=x+Math.imul(ue,Ae)|0,f=f+Math.imul(ue,_e)|0,f=f+Math.imul(G,Ae)|0,m=m+Math.imul(G,_e)|0,x=x+Math.imul(z,Fe)|0,f=f+Math.imul(z,Se)|0,f=f+Math.imul(Z,Fe)|0,m=m+Math.imul(Z,Se)|0,x=x+Math.imul(V,Pe)|0,f=f+Math.imul(V,Ie)|0,f=f+Math.imul(I,Pe)|0,m=m+Math.imul(I,Ie)|0,x=x+Math.imul(_,Le)|0,f=f+Math.imul(_,De)|0,f=f+Math.imul(S,Le)|0,m=m+Math.imul(S,De)|0;var mt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(mt>>>26)|0,mt&=67108863,x=Math.imul(be,Ne),f=Math.imul(be,Oe),f=f+Math.imul(pe,Ne)|0,m=Math.imul(pe,Oe),x=x+Math.imul(ee,qe)|0,f=f+Math.imul(ee,$e)|0,f=f+Math.imul(ie,qe)|0,m=m+Math.imul(ie,$e)|0,x=x+Math.imul(ae,Xe)|0,f=f+Math.imul(ae,He)|0,f=f+Math.imul(he,Xe)|0,m=m+Math.imul(he,He)|0,x=x+Math.imul(R,oe)|0,f=f+Math.imul(R,fe)|0,f=f+Math.imul(N,oe)|0,m=m+Math.imul(N,fe)|0,x=x+Math.imul(ne,Ae)|0,f=f+Math.imul(ne,_e)|0,f=f+Math.imul(se,Ae)|0,m=m+Math.imul(se,_e)|0,x=x+Math.imul(ue,Fe)|0,f=f+Math.imul(ue,Se)|0,f=f+Math.imul(G,Fe)|0,m=m+Math.imul(G,Se)|0,x=x+Math.imul(z,Pe)|0,f=f+Math.imul(z,Ie)|0,f=f+Math.imul(Z,Pe)|0,m=m+Math.imul(Z,Ie)|0,x=x+Math.imul(V,Le)|0,f=f+Math.imul(V,De)|0,f=f+Math.imul(I,Le)|0,m=m+Math.imul(I,De)|0,x=x+Math.imul(_,We)|0,f=f+Math.imul(_,Ue)|0,f=f+Math.imul(S,We)|0,m=m+Math.imul(S,Ue)|0;var Pt=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,x=Math.imul(Te,Ne),f=Math.imul(Te,Oe),f=f+Math.imul(Ee,Ne)|0,m=Math.imul(Ee,Oe),x=x+Math.imul(be,qe)|0,f=f+Math.imul(be,$e)|0,f=f+Math.imul(pe,qe)|0,m=m+Math.imul(pe,$e)|0,x=x+Math.imul(ee,Xe)|0,f=f+Math.imul(ee,He)|0,f=f+Math.imul(ie,Xe)|0,m=m+Math.imul(ie,He)|0,x=x+Math.imul(ae,oe)|0,f=f+Math.imul(ae,fe)|0,f=f+Math.imul(he,oe)|0,m=m+Math.imul(he,fe)|0,x=x+Math.imul(R,Ae)|0,f=f+Math.imul(R,_e)|0,f=f+Math.imul(N,Ae)|0,m=m+Math.imul(N,_e)|0,x=x+Math.imul(ne,Fe)|0,f=f+Math.imul(ne,Se)|0,f=f+Math.imul(se,Fe)|0,m=m+Math.imul(se,Se)|0,x=x+Math.imul(ue,Pe)|0,f=f+Math.imul(ue,Ie)|0,f=f+Math.imul(G,Pe)|0,m=m+Math.imul(G,Ie)|0,x=x+Math.imul(z,Le)|0,f=f+Math.imul(z,De)|0,f=f+Math.imul(Z,Le)|0,m=m+Math.imul(Z,De)|0,x=x+Math.imul(V,We)|0,f=f+Math.imul(V,Ue)|0,f=f+Math.imul(I,We)|0,m=m+Math.imul(I,Ue)|0,x=x+Math.imul(_,Ke)|0,f=f+Math.imul(_,Re)|0,f=f+Math.imul(S,Ke)|0,m=m+Math.imul(S,Re)|0;var An=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(An>>>26)|0,An&=67108863,x=Math.imul(Te,qe),f=Math.imul(Te,$e),f=f+Math.imul(Ee,qe)|0,m=Math.imul(Ee,$e),x=x+Math.imul(be,Xe)|0,f=f+Math.imul(be,He)|0,f=f+Math.imul(pe,Xe)|0,m=m+Math.imul(pe,He)|0,x=x+Math.imul(ee,oe)|0,f=f+Math.imul(ee,fe)|0,f=f+Math.imul(ie,oe)|0,m=m+Math.imul(ie,fe)|0,x=x+Math.imul(ae,Ae)|0,f=f+Math.imul(ae,_e)|0,f=f+Math.imul(he,Ae)|0,m=m+Math.imul(he,_e)|0,x=x+Math.imul(R,Fe)|0,f=f+Math.imul(R,Se)|0,f=f+Math.imul(N,Fe)|0,m=m+Math.imul(N,Se)|0,x=x+Math.imul(ne,Pe)|0,f=f+Math.imul(ne,Ie)|0,f=f+Math.imul(se,Pe)|0,m=m+Math.imul(se,Ie)|0,x=x+Math.imul(ue,Le)|0,f=f+Math.imul(ue,De)|0,f=f+Math.imul(G,Le)|0,m=m+Math.imul(G,De)|0,x=x+Math.imul(z,We)|0,f=f+Math.imul(z,Ue)|0,f=f+Math.imul(Z,We)|0,m=m+Math.imul(Z,Ue)|0,x=x+Math.imul(V,Ke)|0,f=f+Math.imul(V,Re)|0,f=f+Math.imul(I,Ke)|0,m=m+Math.imul(I,Re)|0;var On=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(On>>>26)|0,On&=67108863,x=Math.imul(Te,Xe),f=Math.imul(Te,He),f=f+Math.imul(Ee,Xe)|0,m=Math.imul(Ee,He),x=x+Math.imul(be,oe)|0,f=f+Math.imul(be,fe)|0,f=f+Math.imul(pe,oe)|0,m=m+Math.imul(pe,fe)|0,x=x+Math.imul(ee,Ae)|0,f=f+Math.imul(ee,_e)|0,f=f+Math.imul(ie,Ae)|0,m=m+Math.imul(ie,_e)|0,x=x+Math.imul(ae,Fe)|0,f=f+Math.imul(ae,Se)|0,f=f+Math.imul(he,Fe)|0,m=m+Math.imul(he,Se)|0,x=x+Math.imul(R,Pe)|0,f=f+Math.imul(R,Ie)|0,f=f+Math.imul(N,Pe)|0,m=m+Math.imul(N,Ie)|0,x=x+Math.imul(ne,Le)|0,f=f+Math.imul(ne,De)|0,f=f+Math.imul(se,Le)|0,m=m+Math.imul(se,De)|0,x=x+Math.imul(ue,We)|0,f=f+Math.imul(ue,Ue)|0,f=f+Math.imul(G,We)|0,m=m+Math.imul(G,Ue)|0,x=x+Math.imul(z,Ke)|0,f=f+Math.imul(z,Re)|0,f=f+Math.imul(Z,Ke)|0,m=m+Math.imul(Z,Re)|0;var Zn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,x=Math.imul(Te,oe),f=Math.imul(Te,fe),f=f+Math.imul(Ee,oe)|0,m=Math.imul(Ee,fe),x=x+Math.imul(be,Ae)|0,f=f+Math.imul(be,_e)|0,f=f+Math.imul(pe,Ae)|0,m=m+Math.imul(pe,_e)|0,x=x+Math.imul(ee,Fe)|0,f=f+Math.imul(ee,Se)|0,f=f+Math.imul(ie,Fe)|0,m=m+Math.imul(ie,Se)|0,x=x+Math.imul(ae,Pe)|0,f=f+Math.imul(ae,Ie)|0,f=f+Math.imul(he,Pe)|0,m=m+Math.imul(he,Ie)|0,x=x+Math.imul(R,Le)|0,f=f+Math.imul(R,De)|0,f=f+Math.imul(N,Le)|0,m=m+Math.imul(N,De)|0,x=x+Math.imul(ne,We)|0,f=f+Math.imul(ne,Ue)|0,f=f+Math.imul(se,We)|0,m=m+Math.imul(se,Ue)|0,x=x+Math.imul(ue,Ke)|0,f=f+Math.imul(ue,Re)|0,f=f+Math.imul(G,Ke)|0,m=m+Math.imul(G,Re)|0;var Qn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Qn>>>26)|0,Qn&=67108863,x=Math.imul(Te,Ae),f=Math.imul(Te,_e),f=f+Math.imul(Ee,Ae)|0,m=Math.imul(Ee,_e),x=x+Math.imul(be,Fe)|0,f=f+Math.imul(be,Se)|0,f=f+Math.imul(pe,Fe)|0,m=m+Math.imul(pe,Se)|0,x=x+Math.imul(ee,Pe)|0,f=f+Math.imul(ee,Ie)|0,f=f+Math.imul(ie,Pe)|0,m=m+Math.imul(ie,Ie)|0,x=x+Math.imul(ae,Le)|0,f=f+Math.imul(ae,De)|0,f=f+Math.imul(he,Le)|0,m=m+Math.imul(he,De)|0,x=x+Math.imul(R,We)|0,f=f+Math.imul(R,Ue)|0,f=f+Math.imul(N,We)|0,m=m+Math.imul(N,Ue)|0,x=x+Math.imul(ne,Ke)|0,f=f+Math.imul(ne,Re)|0,f=f+Math.imul(se,Ke)|0,m=m+Math.imul(se,Re)|0;var Jn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Jn>>>26)|0,Jn&=67108863,x=Math.imul(Te,Fe),f=Math.imul(Te,Se),f=f+Math.imul(Ee,Fe)|0,m=Math.imul(Ee,Se),x=x+Math.imul(be,Pe)|0,f=f+Math.imul(be,Ie)|0,f=f+Math.imul(pe,Pe)|0,m=m+Math.imul(pe,Ie)|0,x=x+Math.imul(ee,Le)|0,f=f+Math.imul(ee,De)|0,f=f+Math.imul(ie,Le)|0,m=m+Math.imul(ie,De)|0,x=x+Math.imul(ae,We)|0,f=f+Math.imul(ae,Ue)|0,f=f+Math.imul(he,We)|0,m=m+Math.imul(he,Ue)|0,x=x+Math.imul(R,Ke)|0,f=f+Math.imul(R,Re)|0,f=f+Math.imul(N,Ke)|0,m=m+Math.imul(N,Re)|0;var Xn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,x=Math.imul(Te,Pe),f=Math.imul(Te,Ie),f=f+Math.imul(Ee,Pe)|0,m=Math.imul(Ee,Ie),x=x+Math.imul(be,Le)|0,f=f+Math.imul(be,De)|0,f=f+Math.imul(pe,Le)|0,m=m+Math.imul(pe,De)|0,x=x+Math.imul(ee,We)|0,f=f+Math.imul(ee,Ue)|0,f=f+Math.imul(ie,We)|0,m=m+Math.imul(ie,Ue)|0,x=x+Math.imul(ae,Ke)|0,f=f+Math.imul(ae,Re)|0,f=f+Math.imul(he,Ke)|0,m=m+Math.imul(he,Re)|0;var Yn=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(Yn>>>26)|0,Yn&=67108863,x=Math.imul(Te,Le),f=Math.imul(Te,De),f=f+Math.imul(Ee,Le)|0,m=Math.imul(Ee,De),x=x+Math.imul(be,We)|0,f=f+Math.imul(be,Ue)|0,f=f+Math.imul(pe,We)|0,m=m+Math.imul(pe,Ue)|0,x=x+Math.imul(ee,Ke)|0,f=f+Math.imul(ee,Re)|0,f=f+Math.imul(ie,Ke)|0,m=m+Math.imul(ie,Re)|0;var er=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(er>>>26)|0,er&=67108863,x=Math.imul(Te,We),f=Math.imul(Te,Ue),f=f+Math.imul(Ee,We)|0,m=Math.imul(Ee,Ue),x=x+Math.imul(be,Ke)|0,f=f+Math.imul(be,Re)|0,f=f+Math.imul(pe,Ke)|0,m=m+Math.imul(pe,Re)|0;var sa=(w+x|0)+((f&8191)<<13)|0;w=(m+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(Te,Ke),f=Math.imul(Te,Re),f=f+Math.imul(Ee,Ke)|0,m=Math.imul(Ee,Re);var oa=(w+x|0)+((f&8191)<<13)|0;return w=(m+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,g[0]=ht,g[1]=pt,g[2]=yt,g[3]=Kt,g[4]=Ht,g[5]=ot,g[6]=Tt,g[7]=mt,g[8]=Pt,g[9]=An,g[10]=On,g[11]=Zn,g[12]=Qn,g[13]=Jn,g[14]=Xn,g[15]=Yn,g[16]=er,g[17]=sa,g[18]=oa,w!==0&&(g[19]=w,p.length++),p};Math.imul||(M=C);function T(B,u,d){d.negative=u.negative^B.negative,d.length=B.length+u.length;for(var p=0,l=0,y=0;y>>26)|0,l+=g>>>26,g&=67108863}d.words[y]=w,p=g,g=l}return p!==0?d.words[y]=p:d.length--,d.strip()}function P(B,u,d){var p=new D;return p.mulp(B,u,d)}i.prototype.mulTo=function(u,d){var p,l=this.length+u.length;return this.length===10&&u.length===10?p=M(this,u,d):l<63?p=C(this,u,d):l<1024?p=T(this,u,d):p=P(this,u,d),p};function D(B,u){this.x=B,this.y=u}D.prototype.makeRBT=function(u){for(var d=new Array(u),p=i.prototype._countBits(u)-1,l=0;l>=1;return l},D.prototype.permute=function(u,d,p,l,y,g){for(var w=0;w>>1)y++;return 1<>>13,p[2*g+1]=y&8191,y=y>>>13;for(g=2*d;g>=26,d+=l/67108864|0,d+=y>>>26,this.words[p]=y&67108863}return d!==0&&(this.words[p]=d,this.length++),this},i.prototype.muln=function(u){return this.clone().imuln(u)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(u){var d=E(u);if(d.length===0)return new i(1);for(var p=this,l=0;l=0);var d=u%26,p=(u-d)/26,l=67108863>>>26-d<<26-d,y;if(d!==0){var g=0;for(y=0;y>>26-d}g&&(this.words[y]=g,this.length++)}if(p!==0){for(y=this.length-1;y>=0;y--)this.words[y+p]=this.words[y];for(y=0;y=0);var l;d?l=(d-d%26)/26:l=0;var y=u%26,g=Math.min((u-y)/26,this.length),w=67108863^67108863>>>y<g)for(this.length-=g,f=0;f=0&&(m!==0||f>=l);f--){var A=this.words[f]|0;this.words[f]=m<<26-y|A>>>y,m=A&w}return x&&m!==0&&(x.words[x.length++]=m),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(u,d,p){return r(this.negative===0),this.iushrn(u,d,p)},i.prototype.shln=function(u){return this.clone().ishln(u)},i.prototype.ushln=function(u){return this.clone().iushln(u)},i.prototype.shrn=function(u){return this.clone().ishrn(u)},i.prototype.ushrn=function(u){return this.clone().iushrn(u)},i.prototype.testn=function(u){r(typeof u=="number"&&u>=0);var d=u%26,p=(u-d)/26,l=1<=0);var d=u%26,p=(u-d)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(d!==0&&p++,this.length=Math.min(p,this.length),d!==0){var l=67108863^67108863>>>d<=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},i.prototype.isubn=function(u){if(r(typeof u=="number"),r(u<67108864),u<0)return this.iaddn(-u);if(this.negative!==0)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d>26)-(x/67108864|0),this.words[y+p]=g&67108863}for(;y>26,this.words[y+p]=g&67108863;if(w===0)return this.strip();for(r(w===-1),w=0,y=0;y>26,this.words[y]=g&67108863;return this.negative=1,this.strip()},i.prototype._wordDiv=function(u,d){var p=this.length-u.length,l=this.clone(),y=u,g=y.words[y.length-1]|0,w=this._countBits(g);p=26-w,p!==0&&(y=y.ushln(p),l.iushln(p),g=y.words[y.length-1]|0);var x=l.length-y.length,f;if(d!=="mod"){f=new i(null),f.length=x+1,f.words=new Array(f.length);for(var m=0;m=0;_--){var S=(l.words[y.length+_]|0)*67108864+(l.words[y.length+_-1]|0);for(S=Math.min(S/g|0,67108863),l._ishlnsubmul(y,S,_);l.negative!==0;)S--,l.negative=0,l._ishlnsubmul(y,1,_),l.isZero()||(l.negative^=1);f&&(f.words[_]=S)}return f&&f.strip(),l.strip(),d!=="div"&&p!==0&&l.iushrn(p),{div:f||null,mod:l}},i.prototype.divmod=function(u,d,p){if(r(!u.isZero()),this.isZero())return{div:new i(0),mod:new i(0)};var l,y,g;return this.negative!==0&&u.negative===0?(g=this.neg().divmod(u,d),d!=="mod"&&(l=g.div.neg()),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.iadd(u)),{div:l,mod:y}):this.negative===0&&u.negative!==0?(g=this.divmod(u.neg(),d),d!=="mod"&&(l=g.div.neg()),{div:l,mod:g.mod}):this.negative&u.negative?(g=this.neg().divmod(u.neg(),d),d!=="div"&&(y=g.mod.neg(),p&&y.negative!==0&&y.isub(u)),{div:g.div,mod:y}):u.length>this.length||this.cmp(u)<0?{div:new i(0),mod:this}:u.length===1?d==="div"?{div:this.divn(u.words[0]),mod:null}:d==="mod"?{div:null,mod:new i(this.modn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new i(this.modn(u.words[0]))}:this._wordDiv(u,d)},i.prototype.div=function(u){return this.divmod(u,"div",!1).div},i.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},i.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},i.prototype.divRound=function(u){var d=this.divmod(u);if(d.mod.isZero())return d.div;var p=d.div.negative!==0?d.mod.isub(u):d.mod,l=u.ushrn(1),y=u.andln(1),g=p.cmp(l);return g<0||y===1&&g===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},i.prototype.modn=function(u){r(u<=67108863);for(var d=(1<<26)%u,p=0,l=this.length-1;l>=0;l--)p=(d*p+(this.words[l]|0))%u;return p},i.prototype.idivn=function(u){r(u<=67108863);for(var d=0,p=this.length-1;p>=0;p--){var l=(this.words[p]|0)+d*67108864;this.words[p]=l/u|0,d=l%u}return this.strip()},i.prototype.divn=function(u){return this.clone().idivn(u)},i.prototype.egcd=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=new i(0),w=new i(1),x=0;d.isEven()&&p.isEven();)d.iushrn(1),p.iushrn(1),++x;for(var f=p.clone(),m=d.clone();!d.isZero();){for(var A=0,_=1;!(d.words[0]&_)&&A<26;++A,_<<=1);if(A>0)for(d.iushrn(A);A-- >0;)(l.isOdd()||y.isOdd())&&(l.iadd(f),y.isub(m)),l.iushrn(1),y.iushrn(1);for(var S=0,$=1;!(p.words[0]&$)&&S<26;++S,$<<=1);if(S>0)for(p.iushrn(S);S-- >0;)(g.isOdd()||w.isOdd())&&(g.iadd(f),w.isub(m)),g.iushrn(1),w.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(g),y.isub(w)):(p.isub(d),g.isub(l),w.isub(y))}return{a:g,b:w,gcd:p.iushln(x)}},i.prototype._invmp=function(u){r(u.negative===0),r(!u.isZero());var d=this,p=u.clone();d.negative!==0?d=d.umod(u):d=d.clone();for(var l=new i(1),y=new i(0),g=p.clone();d.cmpn(1)>0&&p.cmpn(1)>0;){for(var w=0,x=1;!(d.words[0]&x)&&w<26;++w,x<<=1);if(w>0)for(d.iushrn(w);w-- >0;)l.isOdd()&&l.iadd(g),l.iushrn(1);for(var f=0,m=1;!(p.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(p.iushrn(f);f-- >0;)y.isOdd()&&y.iadd(g),y.iushrn(1);d.cmp(p)>=0?(d.isub(p),l.isub(y)):(p.isub(d),y.isub(l))}var A;return d.cmpn(1)===0?A=l:A=y,A.cmpn(0)<0&&A.iadd(u),A},i.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var d=this.clone(),p=u.clone();d.negative=0,p.negative=0;for(var l=0;d.isEven()&&p.isEven();l++)d.iushrn(1),p.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;p.isEven();)p.iushrn(1);var y=d.cmp(p);if(y<0){var g=d;d=p,p=g}else if(y===0||p.cmpn(1)===0)break;d.isub(p)}while(!0);return p.iushln(l)},i.prototype.invm=function(u){return this.egcd(u).a.umod(u)},i.prototype.isEven=function(){return(this.words[0]&1)===0},i.prototype.isOdd=function(){return(this.words[0]&1)===1},i.prototype.andln=function(u){return this.words[0]&u},i.prototype.bincn=function(u){r(typeof u=="number");var d=u%26,p=(u-d)/26,l=1<>>26,w&=67108863,this.words[g]=w}return y!==0&&(this.words[g]=y,this.length++),this},i.prototype.isZero=function(){return this.length===1&&this.words[0]===0},i.prototype.cmpn=function(u){var d=u<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this.strip();var p;if(this.length>1)p=1;else{d&&(u=-u),r(u<=67108863,"Number is too big");var l=this.words[0]|0;p=l===u?0:lu.length)return 1;if(this.length=0;p--){var l=this.words[p]|0,y=u.words[p]|0;if(l!==y){ly&&(d=1);break}}return d},i.prototype.gtn=function(u){return this.cmpn(u)===1},i.prototype.gt=function(u){return this.cmp(u)===1},i.prototype.gten=function(u){return this.cmpn(u)>=0},i.prototype.gte=function(u){return this.cmp(u)>=0},i.prototype.ltn=function(u){return this.cmpn(u)===-1},i.prototype.lt=function(u){return this.cmp(u)===-1},i.prototype.lten=function(u){return this.cmpn(u)<=0},i.prototype.lte=function(u){return this.cmp(u)<=0},i.prototype.eqn=function(u){return this.cmpn(u)===0},i.prototype.eq=function(u){return this.cmp(u)===0},i.red=function(u){return new L(u)},i.prototype.toRed=function(u){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),u.convertTo(this)._forceRed(u)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(u){return this.red=u,this},i.prototype.forceRed=function(u){return r(!this.red,"Already a number in reduction context"),this._forceRed(u)},i.prototype.redAdd=function(u){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},i.prototype.redIAdd=function(u){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},i.prototype.redSub=function(u){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},i.prototype.redISub=function(u){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},i.prototype.redShl=function(u){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},i.prototype.redMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},i.prototype.redIMul=function(u){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(u){return r(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var F={k256:null,p224:null,p192:null,p25519:null};function O(B,u){this.name=B,this.p=new i(u,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var u=new i(null);return u.words=new Array(Math.ceil(this.n/13)),u},O.prototype.ireduce=function(u){var d=u,p;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),p=d.bitLength();while(p>this.n);var l=p0?d.isub(this.p):d.strip(),d},O.prototype.split=function(u,d){u.iushrn(this.n,0,d)},O.prototype.imulK=function(u){return u.imul(this.k)};function k(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(k,O),k.prototype.split=function(u,d){for(var p=4194303,l=Math.min(u.length,9),y=0;y>>22,g=w}g>>>=22,u.words[y-10]=g,g===0&&u.length>10?u.length-=10:u.length-=9},k.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var d=0,p=0;p>>=26,u.words[p]=y,d=l}return d!==0&&(u.words[u.length++]=d),u},i._prime=function(u){if(F[u])return F[u];var d;if(u==="k256")d=new k;else if(u==="p224")d=new U;else if(u==="p192")d=new J;else if(u==="p25519")d=new Y;else throw new Error("Unknown prime "+u);return F[u]=d,d};function L(B){if(typeof B=="string"){var u=i._prime(B);this.m=u.p,this.prime=u}else r(B.gtn(1),"modulus must be greater than 1"),this.m=B,this.prime=null}L.prototype._verify1=function(u){r(u.negative===0,"red works only with positives"),r(u.red,"red works only with red numbers")},L.prototype._verify2=function(u,d){r((u.negative|d.negative)===0,"red works only with positives"),r(u.red&&u.red===d.red,"red works only with red numbers")},L.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):u.umod(this.m)._forceRed(this)},L.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},L.prototype.add=function(u,d){this._verify2(u,d);var p=u.add(d);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},L.prototype.iadd=function(u,d){this._verify2(u,d);var p=u.iadd(d);return p.cmp(this.m)>=0&&p.isub(this.m),p},L.prototype.sub=function(u,d){this._verify2(u,d);var p=u.sub(d);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},L.prototype.isub=function(u,d){this._verify2(u,d);var p=u.isub(d);return p.cmpn(0)<0&&p.iadd(this.m),p},L.prototype.shl=function(u,d){return this._verify1(u),this.imod(u.ushln(d))},L.prototype.imul=function(u,d){return this._verify2(u,d),this.imod(u.imul(d))},L.prototype.mul=function(u,d){return this._verify2(u,d),this.imod(u.mul(d))},L.prototype.isqr=function(u){return this.imul(u,u.clone())},L.prototype.sqr=function(u){return this.mul(u,u)},L.prototype.sqrt=function(u){if(u.isZero())return u.clone();var d=this.m.andln(3);if(r(d%2===1),d===3){var p=this.m.add(new i(1)).iushrn(2);return this.pow(u,p)}for(var l=this.m.subn(1),y=0;!l.isZero()&&l.andln(1)===0;)y++,l.iushrn(1);r(!l.isZero());var g=new i(1).toRed(this),w=g.redNeg(),x=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);this.pow(f,x).cmp(w)!==0;)f.redIAdd(w);for(var m=this.pow(f,l),A=this.pow(u,l.addn(1).iushrn(1)),_=this.pow(u,l),S=y;_.cmp(g)!==0;){for(var $=_,V=0;$.cmp(g)!==0;V++)$=$.redSqr();r(V=0;y--){for(var m=d.words[y],A=f-1;A>=0;A--){var _=m>>A&1;if(g!==l[0]&&(g=this.sqr(g)),_===0&&w===0){x=0;continue}w<<=1,w|=_,x++,!(x!==p&&(y!==0||A!==0))&&(g=this.mul(g,l[w]),x=0,w=0)}f=26}return g},L.prototype.convertTo=function(u){var d=u.umod(this.m);return d===u?d.clone():d},L.prototype.convertFrom=function(u){var d=u.clone();return d.red=null,d},i.mont=function(u){return new X(u)};function X(B){L.call(this,B),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new i(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)}a(X,L),X.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},X.prototype.convertFrom=function(u){var d=this.imod(u.mul(this.rinv));return d.red=null,d},X.prototype.imul=function(u,d){if(u.isZero()||d.isZero())return u.words[0]=0,u.length=1,u;var p=u.imul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.mul=function(u,d){if(u.isZero()||d.isZero())return new i(0)._forceRed(this);var p=u.mul(d),l=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=p.isub(l).iushrn(this.shift),g=y;return y.cmp(this.m)>=0?g=y.isub(this.m):y.cmpn(0)<0&&(g=y.iadd(this.m)),g._forceRed(this)},X.prototype.invm=function(u){var d=this.imod(u._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(t,de)})(fS);var Jxe=fS.exports,Xxe=function(e){if(typeof e!="string")throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return e.slice(0,2)==="0x"},Yxe=Xxe,e8e=function(e){return typeof e!="string"?e:Yxe(e)?e.slice(2):e},Z1=Jxe,bI=e8e,KG=function(e){if(typeof e=="string"||typeof e=="number"){var n=new Z1(1),r=String(e).toLowerCase().trim(),a=r.substr(0,2)==="0x"||r.substr(0,3)==="-0x",i=bI(r);if(i.substr(0,1)==="-"&&(i=bI(i.slice(1)),n=new Z1(-1,10)),i=i===""?"0":i,!i.match(/^-?[0-9]+$/)&&i.match(/^[0-9A-Fa-f]+$/)||i.match(/^[a-fA-F]+$/)||a===!0&&i.match(/^[0-9A-Fa-f]+$/))return new Z1(i,16).mul(n);if((i.match(/^-?[0-9]+$/)||i==="")&&a===!1)return new Z1(i,10).mul(n)}else if(typeof e=="object"&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new Z1(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")},J0=Qxe,t8e=KG,n8e=new J0(0),ZG=new J0(-1),Om={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function dS(t){var e=t?t.toLowerCase():"ether",n=Om[e];if(typeof n!="string")throw new Error("[ethjs-unit] the unit provided "+t+" doesn't exists, please use the one of the following units "+JSON.stringify(Om,null,2));return new J0(n,10)}function QG(t){if(typeof t=="string"){if(!t.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+t+"', should be a number matching (^-?[0-9.]+).");return t}else{if(typeof t=="number")return String(t);if(typeof t=="object"&&t.toString&&(t.toTwos||t.dividedToIntegerBy))return t.toPrecision?String(t.toPrecision()):t.toString(10)}throw new Error("while converting number to string, invalid number value '"+t+"' type "+typeof t+".")}function r8e(t,e,n){var r=t8e(t),a=r.lt(n8e),i=dS(e),s=Om[e].length-1||1,o=n||{};a&&(r=r.mul(ZG));for(var c=r.mod(i).toString(10);c.length2)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal points");var o=s[0],c=s[1];if(o||(o="0"),c||(c="0"),c.length>a)throw new Error("[ethjs-unit] while converting number "+t+" to wei, too many decimal places");for(;c.length=55296&&O<=56319&&D65535&&(F-=65536,O+=n(F>>>10&1023|55296),F=56320|F&1023),O+=n(F);return O}function i(T){if(T>=55296&&T<=57343)throw Error("Lone surrogate U+"+T.toString(16).toUpperCase()+" is not a scalar value")}function s(T,P){return n(T>>P&63|128)}function o(T){if(!(T&4294967168))return n(T);var P="";return T&4294965248?T&4294901760?T&4292870144||(P=n(T>>18&7|240),P+=s(T,12),P+=s(T,6)):(i(T),P=n(T>>12&15|224),P+=s(T,6)):P=n(T>>6&31|192),P+=n(T&63|128),P}function c(T){for(var P=r(T),D=P.length,F=-1,O,k="";++F=E)throw Error("Invalid byte index");var T=v[C]&255;if(C++,(T&192)==128)return T&63;throw Error("Invalid continuation byte")}function b(){var T,P,D,F,O;if(C>E)throw Error("Invalid byte index");if(C==E)return!1;if(T=v[C]&255,C++,!(T&128))return T;if((T&224)==192){if(P=h(),O=(T&31)<<6|P,O>=128)return O;throw Error("Invalid continuation byte")}if((T&240)==224){if(P=h(),D=h(),O=(T&15)<<12|P<<6|D,O>=2048)return i(O),O;throw Error("Invalid continuation byte")}if((T&248)==240&&(P=h(),D=h(),F=h(),O=(T&7)<<18|P<<12|D<<6|F,O>=65536&&O<=1114111))return O;throw Error("Invalid UTF-8 detected")}var v,E,C;function M(T){v=r(T),E=v.length,C=0;for(var P=[],D;(D=b())!==!1;)P.push(D);return a(P)}e.version="3.0.0",e.encode=c,e.decode=M})(t)})(JG);var XG={},iv={},sv={},YG={},Bp={},ov={},br={};Object.defineProperty(br,"__esModule",{value:!0});br.output=br.exists=br.hash=br.bytes=br.bool=br.number=void 0;function S6(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}br.number=S6;function eV(t){if(typeof t!="boolean")throw new Error(`Expected boolean, not ${t}`)}br.bool=eV;function s8e(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function hS(t,...e){if(!s8e(t))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}br.bytes=hS;function tV(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");S6(t.outputLen),S6(t.blockLen)}br.hash=tV;function nV(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}br.exists=nV;function rV(t,e){hS(t);const n=e.outputLen;if(t.lengthnew Uint8Array(L.buffer,L.byteOffset,L.byteLength);t.u8=n;const r=L=>new Uint32Array(L.buffer,L.byteOffset,Math.floor(L.byteLength/4));t.u32=r;function a(L){return L instanceof Uint8Array||L!=null&&typeof L=="object"&&L.constructor.name==="Uint8Array"}const i=L=>new DataView(L.buffer,L.byteOffset,L.byteLength);t.createView=i;const s=(L,X)=>L<<32-X|L>>>X;if(t.rotr=s,t.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!t.isLE)throw new Error("Non little-endian hardware is not supported");const o=Array.from({length:256},(L,X)=>X.toString(16).padStart(2,"0"));function c(L){if(!a(L))throw new Error("Uint8Array expected");let X="";for(let B=0;B=h._0&&L<=h._9)return L-h._0;if(L>=h._A&&L<=h._F)return L-(h._A-10);if(L>=h._a&&L<=h._f)return L-(h._a-10)}function v(L){if(typeof L!="string")throw new Error("hex string expected, got "+typeof L);const X=L.length,B=X/2;if(X%2)throw new Error("padded hex string expected, got unpadded hex of length "+X);const u=new Uint8Array(B);for(let d=0,p=0;d{};t.nextTick=E;async function C(L,X,B){let u=Date.now();for(let d=0;d=0&&pL().update(T(u)).digest(),B=L();return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=()=>L(),X}t.wrapConstructor=k;function U(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapConstructorWithOpts=U;function J(L){const X=(u,d)=>L(d).update(T(u)).digest(),B=L({});return X.outputLen=B.outputLen,X.blockLen=B.blockLen,X.create=u=>L(u),X}t.wrapXOFConstructorWithOpts=J;function Y(L=32){if(e.crypto&&typeof e.crypto.getRandomValues=="function")return e.crypto.getRandomValues(new Uint8Array(L));throw new Error("crypto.getRandomValues must be defined")}t.randomBytes=Y})(Lc);Object.defineProperty(ov,"__esModule",{value:!0});ov.SHA2=void 0;const _9=br,Q1=Lc;function c8e(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const a=BigInt(32),i=BigInt(4294967295),s=Number(n>>a&i),o=Number(n&i),c=r?4:0,h=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+h,o,r)}class l8e extends Q1.Hash{constructor(e,n,r,a){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=a,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,Q1.createView)(this.buffer)}update(e){(0,_9.exists)(this);const{view:n,buffer:r,blockLen:a}=this;e=(0,Q1.toBytes)(e);const i=e.length;for(let s=0;sa-s&&(this.process(r,0),s=0);for(let v=s;vb.length)throw new Error("_sha2: outputLen bigger than state");for(let v=0;vt&e^~t&n,d8e=(t,e,n)=>t&e^t&n^e&n,h8e=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]),il=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sl=new Uint32Array(64);class aV extends u8e.SHA2{constructor(){super(64,32,8,!1),this.A=il[0]|0,this.B=il[1]|0,this.C=il[2]|0,this.D=il[3]|0,this.E=il[4]|0,this.F=il[5]|0,this.G=il[6]|0,this.H=il[7]|0}get(){const{A:e,B:n,C:r,D:a,E:i,F:s,G:o,H:c}=this;return[e,n,r,a,i,s,o,c]}set(e,n,r,a,i,s,o,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=a|0,this.E=i|0,this.F=s|0,this.G=o|0,this.H=c|0}process(e,n){for(let v=0;v<16;v++,n+=4)sl[v]=e.getUint32(n,!1);for(let v=16;v<64;v++){const E=sl[v-15],C=sl[v-2],M=(0,vi.rotr)(E,7)^(0,vi.rotr)(E,18)^E>>>3,T=(0,vi.rotr)(C,17)^(0,vi.rotr)(C,19)^C>>>10;sl[v]=T+sl[v-7]+M+sl[v-16]|0}let{A:r,B:a,C:i,D:s,E:o,F:c,G:h,H:b}=this;for(let v=0;v<64;v++){const E=(0,vi.rotr)(o,6)^(0,vi.rotr)(o,11)^(0,vi.rotr)(o,25),C=b+E+f8e(o,c,h)+h8e[v]+sl[v]|0,T=((0,vi.rotr)(r,2)^(0,vi.rotr)(r,13)^(0,vi.rotr)(r,22))+d8e(r,a,i)|0;b=h,h=c,c=o,o=s+C|0,s=i,i=a,a=r,r=C+T|0}r=r+this.A|0,a=a+this.B|0,i=i+this.C|0,s=s+this.D|0,o=o+this.E|0,c=c+this.F|0,h=h+this.G|0,b=b+this.H|0,this.set(r,a,i,s,o,c,h,b)}roundClean(){sl.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class p8e extends aV{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}Bp.sha256=(0,vi.wrapConstructor)(()=>new aV);Bp.sha224=(0,vi.wrapConstructor)(()=>new p8e);var bt={},dt={};Object.defineProperty(dt,"__esModule",{value:!0});dt.validateObject=dt.createHmacDrbg=dt.bitMask=dt.bitSet=dt.bitGet=dt.bitLen=dt.utf8ToBytes=dt.equalBytes=dt.concatBytes=dt.ensureBytes=dt.numberToVarBytesBE=dt.numberToBytesLE=dt.numberToBytesBE=dt.bytesToNumberLE=dt.bytesToNumberBE=dt.hexToBytes=dt.hexToNumber=dt.numberToHexUnpadded=dt.bytesToHex=dt.isBytes=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const iV=BigInt(0),lv=BigInt(1),y8e=BigInt(2);function l1(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}dt.isBytes=l1;const m8e=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function pS(t){if(!l1(t))throw new Error("Uint8Array expected");let e="";for(let n=0;n=$o._0&&t<=$o._9)return t-$o._0;if(t>=$o._A&&t<=$o._F)return t-($o._A-10);if(t>=$o._a&&t<=$o._f)return t-($o._a-10)}function uv(t){if(typeof t!="string")throw new Error("hex string expected, got "+typeof t);const e=t.length,n=e/2;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let a=0,i=0;aiV;t>>=lv,e+=1);return e}dt.bitLen=A8e;function C8e(t,e){return t>>BigInt(e)&lv}dt.bitGet=C8e;const S8e=(t,e,n)=>t|(n?lv:iV)<(y8e<new Uint8Array(t),xI=t=>Uint8Array.from(t);function B8e(t,e,n){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=A9(t),a=A9(t),i=0;const s=()=>{r.fill(1),a.fill(0),i=0},o=(...v)=>n(a,r,...v),c=(v=A9())=>{a=o(xI([0]),v),r=o(),v.length!==0&&(a=o(xI([1]),v),r=o())},h=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let v=0;const E=[];for(;v{s(),c(v);let C;for(;!(C=E(h()));)c();return s(),C}}dt.createHmacDrbg=B8e;const M8e={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||l1(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function F8e(t,e,n={}){const r=(a,i,s)=>{const o=M8e[i];if(typeof o!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[a];if(!(s&&c===void 0)&&!o(c,t))throw new Error(`Invalid param ${String(a)}=${c} (${typeof c}), expected ${i}`)};for(const[a,i]of Object.entries(e))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return t}dt.validateObject=F8e;Object.defineProperty(bt,"__esModule",{value:!0});bt.mapHashToField=bt.getMinHashLength=bt.getFieldBytesLength=bt.hashToPrivateScalar=bt.FpSqrtEven=bt.FpSqrtOdd=bt.Field=bt.nLength=bt.FpIsSquare=bt.FpDiv=bt.FpInvertBatch=bt.FpPow=bt.validateField=bt.isNegativeLE=bt.FpSqrt=bt.tonelliShanks=bt.invert=bt.pow2=bt.pow=bt.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ya=dt,xr=BigInt(0),on=BigInt(1),El=BigInt(2),D8e=BigInt(3),Jw=BigInt(4),vI=BigInt(5),wI=BigInt(8);BigInt(9);BigInt(16);function Za(t,e){const n=t%e;return n>=xr?n:e+n}bt.mod=Za;function lV(t,e,n){if(n<=xr||e 0");if(n===on)return xr;let r=on;for(;e>xr;)e&on&&(r=r*t%n),t=t*t%n,e>>=on;return r}bt.pow=lV;function k8e(t,e,n){let r=t;for(;e-- >xr;)r*=r,r%=n;return r}bt.pow2=k8e;function T6(t,e){if(t===xr||e<=xr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let n=Za(t,e),r=e,a=xr,i=on;for(;n!==xr;){const o=r/n,c=r%n,h=a-i*o;r=n,n=c,a=i,i=h}if(r!==on)throw new Error("invert: does not exist");return Za(a,e)}bt.invert=T6;function uV(t){const e=(t-on)/El;let n,r,a;for(n=t-on,r=0;n%El===xr;n/=El,r++);for(a=El;a(Za(t,e)&on)===on;bt.isNegativeLE=I8e;const O8e=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function P8e(t){const e={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},n=O8e.reduce((r,a)=>(r[a]="function",r),e);return(0,Ya.validateObject)(t,n)}bt.validateField=P8e;function dV(t,e,n){if(n 0");if(n===xr)return t.ONE;if(n===on)return e;let r=t.ONE,a=e;for(;n>xr;)n&on&&(r=t.mul(r,a)),a=t.sqr(a),n>>=on;return r}bt.FpPow=dV;function hV(t,e){const n=new Array(e.length),r=e.reduce((i,s,o)=>t.is0(s)?i:(n[o]=i,t.mul(i,s)),t.ONE),a=t.inv(r);return e.reduceRight((i,s,o)=>t.is0(s)?i:(n[o]=t.mul(i,n[o]),t.mul(i,s)),a),n}bt.FpInvertBatch=hV;function R8e(t,e,n){return t.mul(e,typeof n=="bigint"?T6(n,t.ORDER):t.inv(n))}bt.FpDiv=R8e;function N8e(t){const e=(t.ORDER-on)/El;return n=>{const r=t.pow(n,e);return t.eql(r,t.ZERO)||t.eql(r,t.ONE)}}bt.FpIsSquare=N8e;function mS(t,e){const n=e!==void 0?e:t.toString(2).length,r=Math.ceil(n/8);return{nBitLength:n,nByteLength:r}}bt.nLength=mS;function $8e(t,e,n=!1,r={}){if(t<=xr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:a,nByteLength:i}=mS(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const s=fV(t),o=Object.freeze({ORDER:t,BITS:a,BYTES:i,MASK:(0,Ya.bitMask)(a),ZERO:xr,ONE:on,create:c=>Za(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return xr<=c&&cc===xr,isOdd:c=>(c&on)===on,neg:c=>Za(-c,t),eql:(c,h)=>c===h,sqr:c=>Za(c*c,t),add:(c,h)=>Za(c+h,t),sub:(c,h)=>Za(c-h,t),mul:(c,h)=>Za(c*h,t),pow:(c,h)=>dV(o,c,h),div:(c,h)=>Za(c*T6(h,t),t),sqrN:c=>c*c,addN:(c,h)=>c+h,subN:(c,h)=>c-h,mulN:(c,h)=>c*h,inv:c=>T6(c,t),sqrt:r.sqrt||(c=>s(o,c)),invertBatch:c=>hV(o,c),cmov:(c,h,b)=>b?h:c,toBytes:c=>n?(0,Ya.numberToBytesLE)(c,i):(0,Ya.numberToBytesBE)(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return n?(0,Ya.bytesToNumberLE)(c):(0,Ya.bytesToNumberBE)(c)}});return Object.freeze(o)}bt.Field=$8e;function L8e(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?n:t.neg(n)}bt.FpSqrtOdd=L8e;function U8e(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");const n=t.sqrt(e);return t.isOdd(n)?t.neg(n):n}bt.FpSqrtEven=U8e;function j8e(t,e,n=!1){t=(0,Ya.ensureBytes)("privateHash",t);const r=t.length,a=mS(e).nByteLength+8;if(a<24||r1024)throw new Error(`hashToPrivateScalar: expected ${a}-1024 bytes of input, got ${r}`);const i=n?(0,Ya.bytesToNumberLE)(t):(0,Ya.bytesToNumberBE)(t);return Za(i,e-on)+on}bt.hashToPrivateScalar=j8e;function bS(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}bt.getFieldBytesLength=bS;function pV(t){const e=bS(t);return e+Math.ceil(e/2)}bt.getMinHashLength=pV;function H8e(t,e,n=!1){const r=t.length,a=bS(e),i=pV(e);if(r<16||r1024)throw new Error(`expected ${i}-1024 bytes of input, got ${r}`);const s=n?(0,Ya.bytesToNumberBE)(t):(0,Ya.bytesToNumberLE)(t),o=Za(s,e-on)+on;return n?(0,Ya.numberToBytesLE)(o,a):(0,Ya.numberToBytesBE)(o,a)}bt.mapHashToField=H8e;var gS={},Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});Mp.validateBasic=Mp.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const EI=bt,z8e=dt,G8e=BigInt(0),C9=BigInt(1);function V8e(t,e){const n=(a,i)=>{const s=i.negate();return a?s:i},r=a=>{const i=Math.ceil(e/a)+1,s=2**(a-1);return{windows:i,windowSize:s}};return{constTimeNegate:n,unsafeLadder(a,i){let s=t.ZERO,o=a;for(;i>G8e;)i&C9&&(s=s.add(o)),o=o.double(),i>>=C9;return s},precomputeWindow(a,i){const{windows:s,windowSize:o}=r(i),c=[];let h=a,b=h;for(let v=0;v>=C,P>c&&(P-=E,s+=C9);const D=T,F=T+Math.abs(P)-1,O=M%2!==0,k=P<0;P===0?b=b.add(n(O,i[D])):h=h.add(n(k,i[F]))}return{p:h,f:b}},wNAFCached(a,i,s,o){const c=a._WINDOW_SIZE||1;let h=i.get(a);return h||(h=this.precomputeWindow(a,c),c!==1&&i.set(a,o(h))),this.wNAF(c,h,s)}}}Mp.wNAF=V8e;function q8e(t){return(0,EI.validateField)(t.Fp),(0,z8e.validateObject)(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,EI.nLength)(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}Mp.validateBasic=q8e;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=bt,n=dt,r=dt,a=Mp;function i(F){const O=(0,a.validateBasic)(F);n.validateObject(O,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:k,Fp:U,a:J}=O;if(k){if(!U.eql(J,U.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof k!="object"||typeof k.beta!="bigint"||typeof k.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...O})}const{bytesToNumberBE:s,hexToBytes:o}=n;t.DER={Err:class extends Error{constructor(O=""){super(O)}},_parseInt(F){const{Err:O}=t.DER;if(F.length<2||F[0]!==2)throw new O("Invalid signature integer tag");const k=F[1],U=F.subarray(2,k+2);if(!k||U.length!==k)throw new O("Invalid signature integer: wrong length");if(U[0]&128)throw new O("Invalid signature integer: negative");if(U[0]===0&&!(U[1]&128))throw new O("Invalid signature integer: unnecessary leading zero");return{d:s(U),l:F.subarray(k+2)}},toSig(F){const{Err:O}=t.DER,k=typeof F=="string"?o(F):F;if(!n.isBytes(k))throw new Error("ui8a expected");let U=k.length;if(U<2||k[0]!=48)throw new O("Invalid signature tag");if(k[1]!==U-2)throw new O("Invalid signature: incorrect length");const{d:J,l:Y}=t.DER._parseInt(k.subarray(2)),{d:L,l:X}=t.DER._parseInt(Y);if(X.length)throw new O("Invalid signature: left bytes after parsing");return{r:J,s:L}},hexFromSig(F){const O=u=>Number.parseInt(u[0],16)&8?"00"+u:u,k=u=>{const d=u.toString(16);return d.length&1?`0${d}`:d},U=O(k(F.s)),J=O(k(F.r)),Y=U.length/2,L=J.length/2,X=k(Y),B=k(L);return`30${k(L+Y+4)}02${B}${J}02${X}${U}`}};const c=BigInt(0),h=BigInt(1),b=BigInt(2),v=BigInt(3),E=BigInt(4);function C(F){const O=i(F),{Fp:k}=O,U=O.toBytes||((g,w,x)=>{const f=w.toAffine();return n.concatBytes(Uint8Array.from([4]),k.toBytes(f.x),k.toBytes(f.y))}),J=O.fromBytes||(g=>{const w=g.subarray(1),x=k.fromBytes(w.subarray(0,k.BYTES)),f=k.fromBytes(w.subarray(k.BYTES,2*k.BYTES));return{x,y:f}});function Y(g){const{a:w,b:x}=O,f=k.sqr(g),m=k.mul(f,g);return k.add(k.add(m,k.mul(g,w)),x)}if(!k.eql(k.sqr(O.Gy),Y(O.Gx)))throw new Error("bad generator point: equation left != right");function L(g){return typeof g=="bigint"&&ck.eql(A,k.ZERO);return m(x)&&m(f)?p.ZERO:new p(x,f,k.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(w){const x=k.invertBatch(w.map(f=>f.pz));return w.map((f,m)=>f.toAffine(x[m])).map(p.fromAffine)}static fromHex(w){const x=p.fromAffine(J((0,r.ensureBytes)("pointHex",w)));return x.assertValidity(),x}static fromPrivateKey(w){return p.BASE.multiply(B(w))}_setWindowSize(w){this._WINDOW_SIZE=w,u.delete(this)}assertValidity(){if(this.is0()){if(O.allowInfinityPoint&&!k.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:w,y:x}=this.toAffine();if(!k.isValid(w)||!k.isValid(x))throw new Error("bad point: x or y not FE");const f=k.sqr(x),m=Y(w);if(!k.eql(f,m))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:w}=this.toAffine();if(k.isOdd)return!k.isOdd(w);throw new Error("Field doesn't support isOdd")}equals(w){d(w);const{px:x,py:f,pz:m}=this,{px:A,py:_,pz:S}=w,$=k.eql(k.mul(x,S),k.mul(A,m)),V=k.eql(k.mul(f,S),k.mul(_,m));return $&&V}negate(){return new p(this.px,k.neg(this.py),this.pz)}double(){const{a:w,b:x}=O,f=k.mul(x,v),{px:m,py:A,pz:_}=this;let S=k.ZERO,$=k.ZERO,V=k.ZERO,I=k.mul(m,m),W=k.mul(A,A),z=k.mul(_,_),Z=k.mul(m,A);return Z=k.add(Z,Z),V=k.mul(m,_),V=k.add(V,V),S=k.mul(w,V),$=k.mul(f,z),$=k.add(S,$),S=k.sub(W,$),$=k.add(W,$),$=k.mul(S,$),S=k.mul(Z,S),V=k.mul(f,V),z=k.mul(w,z),Z=k.sub(I,z),Z=k.mul(w,Z),Z=k.add(Z,V),V=k.add(I,I),I=k.add(V,I),I=k.add(I,z),I=k.mul(I,Z),$=k.add($,I),z=k.mul(A,_),z=k.add(z,z),I=k.mul(z,Z),S=k.sub(S,I),V=k.mul(z,W),V=k.add(V,V),V=k.add(V,V),new p(S,$,V)}add(w){d(w);const{px:x,py:f,pz:m}=this,{px:A,py:_,pz:S}=w;let $=k.ZERO,V=k.ZERO,I=k.ZERO;const W=O.a,z=k.mul(O.b,v);let Z=k.mul(x,A),le=k.mul(f,_),ue=k.mul(m,S),G=k.add(x,f),j=k.add(A,_);G=k.mul(G,j),j=k.add(Z,le),G=k.sub(G,j),j=k.add(x,m);let ne=k.add(A,S);return j=k.mul(j,ne),ne=k.add(Z,ue),j=k.sub(j,ne),ne=k.add(f,m),$=k.add(_,S),ne=k.mul(ne,$),$=k.add(le,ue),ne=k.sub(ne,$),I=k.mul(W,j),$=k.mul(z,ue),I=k.add($,I),$=k.sub(le,I),I=k.add(le,I),V=k.mul($,I),le=k.add(Z,Z),le=k.add(le,Z),ue=k.mul(W,ue),j=k.mul(z,j),le=k.add(le,ue),ue=k.sub(Z,ue),ue=k.mul(W,ue),j=k.add(j,ue),Z=k.mul(le,j),V=k.add(V,Z),Z=k.mul(ne,j),$=k.mul(G,$),$=k.sub($,Z),Z=k.mul(G,le),I=k.mul(ne,I),I=k.add(I,Z),new p($,V,I)}subtract(w){return this.add(w.negate())}is0(){return this.equals(p.ZERO)}wNAF(w){return y.wNAFCached(this,u,w,x=>{const f=k.invertBatch(x.map(m=>m.pz));return x.map((m,A)=>m.toAffine(f[A])).map(p.fromAffine)})}multiplyUnsafe(w){const x=p.ZERO;if(w===c)return x;if(X(w),w===h)return this;const{endo:f}=O;if(!f)return y.unsafeLadder(this,w);let{k1neg:m,k1:A,k2neg:_,k2:S}=f.splitScalar(w),$=x,V=x,I=this;for(;A>c||S>c;)A&h&&($=$.add(I)),S&h&&(V=V.add(I)),I=I.double(),A>>=h,S>>=h;return m&&($=$.negate()),_&&(V=V.negate()),V=new p(k.mul(V.px,f.beta),V.py,V.pz),$.add(V)}multiply(w){X(w);let x=w,f,m;const{endo:A}=O;if(A){const{k1neg:_,k1:S,k2neg:$,k2:V}=A.splitScalar(x);let{p:I,f:W}=this.wNAF(S),{p:z,f:Z}=this.wNAF(V);I=y.constTimeNegate(_,I),z=y.constTimeNegate($,z),z=new p(k.mul(z.px,A.beta),z.py,z.pz),f=I.add(z),m=W.add(Z)}else{const{p:_,f:S}=this.wNAF(x);f=_,m=S}return p.normalizeZ([f,m])[0]}multiplyAndAddUnsafe(w,x,f){const m=p.BASE,A=(S,$)=>$===c||$===h||!S.equals(m)?S.multiplyUnsafe($):S.multiply($),_=A(this,x).add(A(w,f));return _.is0()?void 0:_}toAffine(w){const{px:x,py:f,pz:m}=this,A=this.is0();w==null&&(w=A?k.ONE:k.inv(m));const _=k.mul(x,w),S=k.mul(f,w),$=k.mul(m,w);if(A)return{x:k.ZERO,y:k.ZERO};if(!k.eql($,k.ONE))throw new Error("invZ was invalid");return{x:_,y:S}}isTorsionFree(){const{h:w,isTorsionFree:x}=O;if(w===h)return!0;if(x)return x(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:w,clearCofactor:x}=O;return w===h?this:x?x(p,this):this.multiplyUnsafe(O.h)}toRawBytes(w=!0){return this.assertValidity(),U(p,this,w)}toHex(w=!0){return n.bytesToHex(this.toRawBytes(w))}}p.BASE=new p(O.Gx,O.Gy,k.ONE),p.ZERO=new p(k.ZERO,k.ONE,k.ZERO);const l=O.nBitLength,y=(0,a.wNAF)(p,O.endo?Math.ceil(l/2):l);return{CURVE:O,ProjectivePoint:p,normPrivateKeyToScalar:B,weierstrassEquation:Y,isWithinCurveOrder:L}}t.weierstrassPoints=C;function M(F){const O=(0,a.validateBasic)(F);return n.validateObject(O,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...O})}function T(F){const O=M(F),{Fp:k,n:U}=O,J=k.BYTES+1,Y=2*k.BYTES+1;function L(j){return cn.bytesToHex(n.numberToBytesBE(j,O.nByteLength));function g(j){const ne=U>>h;return j>ne}function w(j){return g(j)?X(-j):j}const x=(j,ne,se)=>n.bytesToNumberBE(j.slice(ne,se));class f{constructor(ne,se,Q){this.r=ne,this.s=se,this.recovery=Q,this.assertValidity()}static fromCompact(ne){const se=O.nByteLength;return ne=(0,r.ensureBytes)("compactSignature",ne,se*2),new f(x(ne,0,se),x(ne,se,2*se))}static fromDER(ne){const{r:se,s:Q}=t.DER.toSig((0,r.ensureBytes)("DER",ne));return new f(se,Q)}assertValidity(){if(!l(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!l(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(ne){return new f(this.r,this.s,ne)}recoverPublicKey(ne){const{r:se,s:Q,recovery:R}=this,N=V((0,r.ensureBytes)("msgHash",ne));if(R==null||![0,1,2,3].includes(R))throw new Error("recovery id invalid");const K=R===2||R===3?se+O.n:se;if(K>=k.ORDER)throw new Error("recovery id 2 or 3 invalid");const ae=R&1?"03":"02",he=u.fromHex(ae+y(K)),q=B(K),ee=X(-N*q),ie=X(Q*q),me=u.BASE.multiplyAndAddUnsafe(he,ee,ie);if(!me)throw new Error("point at infinify");return me.assertValidity(),me}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new f(this.r,X(-this.s),this.recovery):this}toDERRawBytes(){return n.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return n.hexToBytes(this.toCompactHex())}toCompactHex(){return y(this.r)+y(this.s)}}const m={isValidPrivateKey(j){try{return d(j),!0}catch{return!1}},normPrivateKeyToScalar:d,randomPrivateKey:()=>{const j=e.getMinHashLength(O.n);return e.mapHashToField(O.randomBytes(j),O.n)},precompute(j=8,ne=u.BASE){return ne._setWindowSize(j),ne.multiply(BigInt(3)),ne}};function A(j,ne=!0){return u.fromPrivateKey(j).toRawBytes(ne)}function _(j){const ne=n.isBytes(j),se=typeof j=="string",Q=(ne||se)&&j.length;return ne?Q===J||Q===Y:se?Q===2*J||Q===2*Y:j instanceof u}function S(j,ne,se=!0){if(_(j))throw new Error("first arg must be private key");if(!_(ne))throw new Error("second arg must be public key");return u.fromHex(ne).multiply(d(j)).toRawBytes(se)}const $=O.bits2int||function(j){const ne=n.bytesToNumberBE(j),se=j.length*8-O.nBitLength;return se>0?ne>>BigInt(se):ne},V=O.bits2int_modN||function(j){return X($(j))},I=n.bitMask(O.nBitLength);function W(j){if(typeof j!="bigint")throw new Error("bigint expected");if(!(c<=j&&jpe in se))throw new Error("sign() legacy options not supported");const{hash:Q,randomBytes:R}=O;let{lowS:N,prehash:K,extraEntropy:ae}=se;N==null&&(N=!0),j=(0,r.ensureBytes)("msgHash",j),K&&(j=(0,r.ensureBytes)("prehashed msgHash",Q(j)));const he=V(j),q=d(ne),ee=[W(q),W(he)];if(ae!=null){const pe=ae===!0?R(k.BYTES):ae;ee.push((0,r.ensureBytes)("extraEntropy",pe))}const ie=n.concatBytes(...ee),me=he;function be(pe){const Me=$(pe);if(!l(Me))return;const Te=B(Me),Ee=u.BASE.multiply(Me).toAffine(),Qe=X(Ee.x);if(Qe===c)return;const Ne=X(Te*X(me+Qe*q));if(Ne===c)return;let Oe=(Ee.x===Qe?0:2)|Number(Ee.y&h),at=Ne;return N&&g(Ne)&&(at=w(Ne),Oe^=1),new f(Qe,at,Oe)}return{seed:ie,k2sig:be}}const Z={lowS:O.lowS,prehash:!1},le={lowS:O.lowS,prehash:!1};function ue(j,ne,se=Z){const{seed:Q,k2sig:R}=z(j,ne,se),N=O;return n.createHmacDrbg(N.hash.outputLen,N.nByteLength,N.hmac)(Q,R)}u.BASE._setWindowSize(8);function G(j,ne,se,Q=le){var Ee;const R=j;if(ne=(0,r.ensureBytes)("msgHash",ne),se=(0,r.ensureBytes)("publicKey",se),"strict"in Q)throw new Error("options.strict was renamed to lowS");const{lowS:N,prehash:K}=Q;let ae,he;try{if(typeof R=="string"||n.isBytes(R))try{ae=f.fromDER(R)}catch(Qe){if(!(Qe instanceof t.DER.Err))throw Qe;ae=f.fromCompact(R)}else if(typeof R=="object"&&typeof R.r=="bigint"&&typeof R.s=="bigint"){const{r:Qe,s:Ne}=R;ae=new f(Qe,Ne)}else throw new Error("PARSE");he=u.fromHex(se)}catch(Qe){if(Qe.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(N&&ae.hasHighS())return!1;K&&(ne=O.hash(ne));const{r:q,s:ee}=ae,ie=V(ne),me=B(ee),be=X(ie*me),pe=X(q*me),Me=(Ee=u.BASE.multiplyAndAddUnsafe(he,be,pe))==null?void 0:Ee.toAffine();return Me?X(Me.x)===q:!1}return{CURVE:O,getPublicKey:A,getSharedSecret:S,sign:ue,verify:G,ProjectivePoint:u,Signature:f,utils:m}}t.weierstrass=T;function P(F,O){const k=F.ORDER;let U=c;for(let g=k-h;g%b===c;g/=b)U+=h;const J=U,Y=b<{let x=p,f=F.pow(w,u),m=F.sqr(f);m=F.mul(m,w);let A=F.mul(g,m);A=F.pow(A,B),A=F.mul(A,f),f=F.mul(A,w),m=F.mul(A,g);let _=F.mul(m,f);A=F.pow(_,d);let S=F.eql(A,F.ONE);f=F.mul(m,l),A=F.mul(_,x),m=F.cmov(f,m,S),_=F.cmov(A,_,S);for(let $=J;$>h;$--){let V=$-b;V=b<{let m=F.sqr(f);const A=F.mul(x,f);m=F.mul(m,A);let _=F.pow(m,g);_=F.mul(_,A);const S=F.mul(_,w),$=F.mul(F.sqr(_),f),V=F.eql($,x);let I=F.cmov(S,_,V);return{isValid:V,value:I}}}return y}t.SWUFpSqrtRatio=P;function D(F,O){if(e.validateField(F),!F.isValid(O.A)||!F.isValid(O.B)||!F.isValid(O.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const k=P(F,O.Z);if(!F.isOdd)throw new Error("Fp.isOdd is not implemented!");return U=>{let J,Y,L,X,B,u,d,p;J=F.sqr(U),J=F.mul(J,O.Z),Y=F.sqr(J),Y=F.add(Y,J),L=F.add(Y,F.ONE),L=F.mul(L,O.B),X=F.cmov(O.Z,F.neg(Y),!F.eql(Y,F.ZERO)),X=F.mul(X,O.A),Y=F.sqr(L),u=F.sqr(X),B=F.mul(u,O.A),Y=F.add(Y,B),Y=F.mul(Y,L),u=F.mul(u,X),B=F.mul(u,O.B),Y=F.add(Y,B),d=F.mul(J,L);const{isValid:l,value:y}=k(Y,u);p=F.mul(J,U),p=F.mul(p,y),d=F.cmov(d,L,l),p=F.cmov(p,y,l);const g=F.isOdd(U)===F.isOdd(p);return p=F.cmov(F.neg(p),p,g),d=F.div(d,X),{x:d,y:p}}}t.mapToCurveSimpleSWU=D})(gS);var Pi={};Object.defineProperty(Pi,"__esModule",{value:!0});Pi.createHasher=Pi.isogenyMap=Pi.hash_to_field=Pi.expand_message_xof=Pi.expand_message_xmd=void 0;const W8e=bt,Qa=dt;function K8e(t){if((0,Qa.isBytes)(t))return t;if(typeof t=="string")return(0,Qa.utf8ToBytes)(t);throw new Error("DST must be Uint8Array or string")}const Z8e=Qa.bytesToNumberBE;function bl(t,e){if(t<0||t>=1<<8*e)throw new Error(`bad I2OSP call: value=${t} length=${e}`);const n=Array.from({length:e}).fill(0);for(let r=e-1;r>=0;r--)n[r]=t&255,t>>>=8;return new Uint8Array(n)}function Q8e(t,e){const n=new Uint8Array(t.length);for(let r=0;r255&&(e=r((0,Qa.concatBytes)((0,Qa.utf8ToBytes)("H2C-OVERSIZE-DST-"),e)));const{outputLen:a,blockLen:i}=r,s=Math.ceil(n/a);if(s>255)throw new Error("Invalid xmd length");const o=(0,Qa.concatBytes)(e,bl(e.length,1)),c=bl(0,i),h=bl(n,2),b=new Array(s),v=r((0,Qa.concatBytes)(c,t,h,bl(0,1),o));b[0]=r((0,Qa.concatBytes)(v,bl(1,1),o));for(let C=1;C<=s;C++){const M=[Q8e(v,b[C-1]),bl(C+1,1),o];b[C]=r((0,Qa.concatBytes)(...M))}return(0,Qa.concatBytes)(...b).slice(0,n)}Pi.expand_message_xmd=yV;function mV(t,e,n,r,a){if(Pm(t),Pm(e),xS(n),e.length>255){const i=Math.ceil(2*r/8);e=a.create({dkLen:i}).update((0,Qa.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(e).digest()}if(n>65535||e.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return a.create({dkLen:n}).update(t).update(bl(n,2)).update(e).update(bl(e.length,1)).digest()}Pi.expand_message_xof=mV;function Xw(t,e,n){(0,Qa.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:r,k:a,m:i,hash:s,expand:o,DST:c}=n;Pm(t),xS(e);const h=K8e(c),b=r.toString(2).length,v=Math.ceil((b+a)/8),E=e*i*v;let C;if(o==="xmd")C=yV(t,h,E,s);else if(o==="xof")C=mV(t,h,E,a,s);else if(o==="_internal_pass")C=t;else throw new Error('expand must be "xmd" or "xof"');const M=new Array(e);for(let T=0;TArray.from(r).reverse());return(r,a)=>{const[i,s,o,c]=n.map(h=>h.reduce((b,v)=>t.add(t.mul(b,r),v)));return r=t.div(i,s),a=t.mul(a,t.div(o,c)),{x:r,y:a}}}Pi.isogenyMap=J8e;function X8e(t,e,n){if(typeof e!="function")throw new Error("mapToCurve() must be defined");return{hashToCurve(r,a){const i=Xw(r,2,{...n,DST:n.DST,...a}),s=t.fromAffine(e(i[0])),o=t.fromAffine(e(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(r,a){const i=Xw(r,1,{...n,DST:n.encodeDST,...a}),s=t.fromAffine(e(i[0])).clearCofactor();return s.assertValidity(),s}}}Pi.createHasher=X8e;var Fp={},bV={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const e=br,n=Lc;class r extends n.Hash{constructor(s,o){super(),this.finished=!1,this.destroyed=!1,(0,e.hash)(s);const c=(0,n.toBytes)(o);if(this.iHash=s.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const h=this.blockLen,b=new Uint8Array(h);b.set(c.length>h?s.create().update(c).digest():c);for(let v=0;vnew r(i,s).update(o).digest();t.hmac=a,t.hmac.create=(i,s)=>new r(i,s)})(bV);Object.defineProperty(Fp,"__esModule",{value:!0});Fp.createCurve=Fp.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Y8e=bV,_I=Lc,eve=gS;function gV(t){return{hash:t,hmac:(e,...n)=>(0,Y8e.hmac)(t,e,(0,_I.concatBytes)(...n)),randomBytes:_I.randomBytes}}Fp.getHash=gV;function tve(t,e){const n=r=>(0,eve.weierstrass)({...t,...gV(r)});return Object.freeze({...n(e),create:n})}Fp.createCurve=tve;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const e=Bp,n=Lc,r=bt,a=gS,i=dt,s=Pi,o=Fp,c=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),h=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),b=BigInt(1),v=BigInt(2),E=(f,m)=>(f+m/v)/m;function C(f){const m=c,A=BigInt(3),_=BigInt(6),S=BigInt(11),$=BigInt(22),V=BigInt(23),I=BigInt(44),W=BigInt(88),z=f*f*f%m,Z=z*z*f%m,le=(0,r.pow2)(Z,A,m)*Z%m,ue=(0,r.pow2)(le,A,m)*Z%m,G=(0,r.pow2)(ue,v,m)*z%m,j=(0,r.pow2)(G,S,m)*G%m,ne=(0,r.pow2)(j,$,m)*j%m,se=(0,r.pow2)(ne,I,m)*ne%m,Q=(0,r.pow2)(se,W,m)*se%m,R=(0,r.pow2)(Q,I,m)*ne%m,N=(0,r.pow2)(R,A,m)*Z%m,K=(0,r.pow2)(N,V,m)*j%m,ae=(0,r.pow2)(K,_,m)*z%m,he=(0,r.pow2)(ae,v,m);if(!M.eql(M.sqr(he),f))throw new Error("Cannot find square root");return he}const M=(0,r.Field)(c,void 0,void 0,{sqrt:C});t.secp256k1=(0,o.createCurve)({a:BigInt(0),b:BigInt(7),Fp:M,n:h,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:f=>{const m=h,A=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),_=-b*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),S=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),$=A,V=BigInt("0x100000000000000000000000000000000"),I=E($*f,m),W=E(-_*f,m);let z=(0,r.mod)(f-I*A-W*S,m),Z=(0,r.mod)(-I*_-W*$,m);const le=z>V,ue=Z>V;if(le&&(z=m-z),ue&&(Z=m-Z),z>V||Z>V)throw new Error("splitScalar: Endomorphism failed, k="+f);return{k1neg:le,k1:z,k2neg:ue,k2:Z}}}},e.sha256);const T=BigInt(0),P=f=>typeof f=="bigint"&&Ttypeof f=="bigint"&&TS.charCodeAt(0)));A=(0,i.concatBytes)(_,_),F[f]=A}return(0,e.sha256)((0,i.concatBytes)(A,...m))}const k=f=>f.toRawBytes(!0).slice(1),U=f=>(0,i.numberToBytesBE)(f,32),J=f=>(0,r.mod)(f,c),Y=f=>(0,r.mod)(f,h),L=t.secp256k1.ProjectivePoint,X=(f,m,A)=>L.BASE.multiplyAndAddUnsafe(f,m,A);function B(f){let m=t.secp256k1.utils.normPrivateKeyToScalar(f),A=L.fromPrivateKey(m);return{scalar:A.hasEvenY()?m:Y(-m),bytes:k(A)}}function u(f){if(!P(f))throw new Error("bad x: need 0 < x < p");const m=J(f*f),A=J(m*f+BigInt(7));let _=C(A);_%v!==T&&(_=J(-_));const S=new L(f,_,b);return S.assertValidity(),S}function d(...f){return Y((0,i.bytesToNumberBE)(O("BIP0340/challenge",...f)))}function p(f){return B(f).bytes}function l(f,m,A=(0,n.randomBytes)(32)){const _=(0,i.ensureBytes)("message",f),{bytes:S,scalar:$}=B(m),V=(0,i.ensureBytes)("auxRand",A,32),I=U($^(0,i.bytesToNumberBE)(O("BIP0340/aux",V))),W=O("BIP0340/nonce",I,S,_),z=Y((0,i.bytesToNumberBE)(W));if(z===T)throw new Error("sign failed: k is zero");const{bytes:Z,scalar:le}=B(z),ue=d(Z,S,_),G=new Uint8Array(64);if(G.set(Z,0),G.set(U(Y(le+ue*$)),32),!y(G,_,S))throw new Error("sign: Invalid signature produced");return G}function y(f,m,A){const _=(0,i.ensureBytes)("signature",f,64),S=(0,i.ensureBytes)("message",m),$=(0,i.ensureBytes)("publicKey",A,32);try{const V=u((0,i.bytesToNumberBE)($)),I=(0,i.bytesToNumberBE)(_.subarray(0,32));if(!P(I))return!1;const W=(0,i.bytesToNumberBE)(_.subarray(32,64));if(!D(W))return!1;const z=d(U(I),k(V),S),Z=X(V,W,Y(-z));return!(!Z||!Z.hasEvenY()||Z.toAffine().x!==I)}catch{return!1}}t.schnorr={getPublicKey:p,sign:l,verify:y,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:u,pointToBytes:k,numberToBytesBE:i.numberToBytesBE,bytesToNumberBE:i.bytesToNumberBE,taggedHash:O,mod:r.mod}};const g=(0,s.isogenyMap)(M,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(f=>f.map(m=>BigInt(m)))),w=(0,a.mapToCurveSimpleSWU)(M,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:M.create(BigInt("-11"))}),x=(0,s.createHasher)(t.secp256k1.ProjectivePoint,f=>{const{x:m,y:A}=w(M.create(f[0]));return g(m,A)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:M.ORDER,m:1,k:128,expand:"xmd",hash:e.sha256});t.hashToCurve=x.hashToCurve,t.encodeToCurve=x.encodeToCurve})(YG);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=void 0;var e=YG;Object.defineProperty(t,"secp256k1",{enumerable:!0,get:function(){return e.secp256k1}})})(sv);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_WITHDRAWALS_PER_PAYLOAD=t.RLP_EMPTY_STRING=t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.SECP256K1_ORDER_DIV_2=t.SECP256K1_ORDER=t.MAX_INTEGER_BIGINT=t.MAX_INTEGER=t.MAX_UINT64=void 0;const e=Kc,n=sv;t.MAX_UINT64=BigInt("0xffffffffffffffff"),t.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),t.SECP256K1_ORDER=n.secp256k1.CURVE.n,t.SECP256K1_ORDER_DIV_2=n.secp256k1.CURVE.n/BigInt(2),t.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.Buffer.from(t.KECCAK256_RLP_S,"hex"),t.RLP_EMPTY_STRING=e.Buffer.from([128]),t.MAX_WITHDRAWALS_PER_PAYLOAD=16})(iv);var fv={};Object.defineProperty(fv,"__esModule",{value:!0});fv.GWEI_TO_WEI=void 0;fv.GWEI_TO_WEI=BigInt(1e9);var vS={},yo={};Object.defineProperty(yo,"__esModule",{value:!0});yo.RLP=yo.utils=yo.decode=yo.encode=void 0;function wS(t){if(Array.isArray(t)){const n=[];let r=0;for(let a=0;at.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return t.slice(e,n)}function AI(t){if(t[0]===0)throw new Error("invalid RLP: extra zeros");return wV(vV(t))}function CI(t,e){if(t<56)return Uint8Array.from([t+e]);const n=tE(t),r=n.length/2,a=tE(e+55+r);return Uint8Array.from(B6(a+n))}function xV(t,e=!1){if(typeof t>"u"||t===null||t.length===0)return Uint8Array.from([]);const n=AV(t),r=Yw(n);if(e)return r;if(r.remainder.length!==0)throw new Error("invalid RLP: remainder must be zero");return r.data}yo.decode=xV;function Yw(t){let e,n,r,a,i;const s=[],o=t[0];if(o<=127)return{data:t.slice(0,1),remainder:t.slice(1)};if(o<=183){if(e=o-127,o===128?r=Uint8Array.from([]):r=Jd(t,1,e),e===2&&r[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:r,remainder:t.slice(e)}}else if(o<=191){if(n=o-182,t.length-1t.length)throw new Error("invalid RLP: total length is larger than the data");for(a=Jd(t,n,c);a.length;)i=Yw(a),s.push(i.data),a=i.remainder;return{data:s,remainder:t.slice(c)}}}const nve=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function vV(t){let e="";for(let n=0;nr+a.length,0),n=new Uint8Array(e);for(let r=0,a=0;r=2&&t[0]==="0"&&t[1]==="x"}function ave(t){return typeof t!="string"?t:_V(t)?t.slice(2):t}function AV(t){if(t instanceof Uint8Array)return t;if(typeof t=="string")return _V(t)?B6(rve(ave(t))):EV(t);if(typeof t=="number"||typeof t=="bigint")return t?B6(tE(t)):Uint8Array.from([]);if(t==null)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof t)}yo.utils={bytesToHex:vV,concatBytes:eE,hexToBytes:B6,utf8ToBytes:EV};yo.RLP={encode:wS,decode:xV};var $i={},an={},ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.add5L=ft.add5H=ft.add4H=ft.add4L=ft.add3H=ft.add3L=ft.add=ft.rotlBL=ft.rotlBH=ft.rotlSL=ft.rotlSH=ft.rotr32L=ft.rotr32H=ft.rotrBL=ft.rotrBH=ft.rotrSL=ft.rotrSH=ft.shrSL=ft.shrSH=ft.toBig=ft.split=ft.fromBig=void 0;const l3=BigInt(2**32-1),nE=BigInt(32);function ES(t,e=!1){return e?{h:Number(t&l3),l:Number(t>>nE&l3)}:{h:Number(t>>nE&l3)|0,l:Number(t&l3)|0}}ft.fromBig=ES;function CV(t,e=!1){let n=new Uint32Array(t.length),r=new Uint32Array(t.length);for(let a=0;aBigInt(t>>>0)<>>0);ft.toBig=SV;const TV=(t,e,n)=>t>>>n;ft.shrSH=TV;const BV=(t,e,n)=>t<<32-n|e>>>n;ft.shrSL=BV;const MV=(t,e,n)=>t>>>n|e<<32-n;ft.rotrSH=MV;const FV=(t,e,n)=>t<<32-n|e>>>n;ft.rotrSL=FV;const DV=(t,e,n)=>t<<64-n|e>>>n-32;ft.rotrBH=DV;const kV=(t,e,n)=>t>>>n-32|e<<64-n;ft.rotrBL=kV;const IV=(t,e)=>e;ft.rotr32H=IV;const OV=(t,e)=>t;ft.rotr32L=OV;const PV=(t,e,n)=>t<>>32-n;ft.rotlSH=PV;const RV=(t,e,n)=>e<>>32-n;ft.rotlSL=RV;const NV=(t,e,n)=>e<>>64-n;ft.rotlBH=NV;const $V=(t,e,n)=>t<>>64-n;ft.rotlBL=$V;function LV(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:a|0}}ft.add=LV;const UV=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0);ft.add3L=UV;const jV=(t,e,n,r)=>e+n+r+(t/2**32|0)|0;ft.add3H=jV;const HV=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0);ft.add4L=HV;const zV=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0;ft.add4H=zV;const GV=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0);ft.add5L=GV;const VV=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0;ft.add5H=VV;const ive={fromBig:ES,split:CV,toBig:SV,shrSH:TV,shrSL:BV,rotrSH:MV,rotrSL:FV,rotrBH:DV,rotrBL:kV,rotr32H:IV,rotr32L:OV,rotlSH:PV,rotlSL:RV,rotlBH:NV,rotlBL:$V,add:LV,add3L:UV,add3H:jV,add4L:HV,add4H:zV,add5H:VV,add5L:GV};ft.default=ive;Object.defineProperty(an,"__esModule",{value:!0});an.shake256=an.shake128=an.keccak_512=an.keccak_384=an.keccak_256=an.keccak_224=an.sha3_512=an.sha3_384=an.sha3_256=an.sha3_224=an.Keccak=an.keccakP=void 0;const Xd=br,Rm=ft,Wy=Lc,[qV,WV,KV]=[[],[],[]],sve=BigInt(0),J1=BigInt(1),ove=BigInt(2),cve=BigInt(7),lve=BigInt(256),uve=BigInt(113);for(let t=0,e=J1,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],qV.push(2*(5*r+n)),WV.push((t+1)*(t+2)/2%64);let a=sve;for(let i=0;i<7;i++)e=(e<>cve)*uve)%lve,e&ove&&(a^=J1<<(J1<n>32?(0,Rm.rotlBH)(t,e,n):(0,Rm.rotlSH)(t,e,n),TI=(t,e,n)=>n>32?(0,Rm.rotlBL)(t,e,n):(0,Rm.rotlSL)(t,e,n);function ZV(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let s=0;s<10;s++)n[s]=t[s]^t[s+10]^t[s+20]^t[s+30]^t[s+40];for(let s=0;s<10;s+=2){const o=(s+8)%10,c=(s+2)%10,h=n[c],b=n[c+1],v=SI(h,b,1)^n[o],E=TI(h,b,1)^n[o+1];for(let C=0;C<50;C+=10)t[s+C]^=v,t[s+C+1]^=E}let a=t[2],i=t[3];for(let s=0;s<24;s++){const o=WV[s],c=SI(a,i,o),h=TI(a,i,o),b=qV[s];a=t[b],i=t[b+1],t[b]=c,t[b+1]=h}for(let s=0;s<50;s+=10){for(let o=0;o<10;o++)n[o]=t[s+o];for(let o=0;o<10;o++)t[s+o]^=~n[(o+2)%10]&n[(o+4)%10]}t[0]^=fve[r],t[1]^=dve[r]}n.fill(0)}an.keccakP=ZV;class e2 extends Wy.Hash{constructor(e,n,r,a=!1,i=24){if(super(),this.blockLen=e,this.suffix=n,this.outputLen=r,this.enableXOF=a,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,Xd.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Wy.u32)(this.state)}keccak(){ZV(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,Xd.exists)(this);const{blockLen:n,state:r}=this;e=(0,Wy.toBytes)(e);const a=e.length;for(let i=0;i=r&&this.keccak();const s=Math.min(r-this.posOut,i-a);e.set(n.subarray(this.posOut,this.posOut+s),a),this.posOut+=s,a+=s}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,Xd.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,Xd.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:n,suffix:r,outputLen:a,rounds:i,enableXOF:s}=this;return e||(e=new e2(n,r,a,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=s,e.destroyed=this.destroyed,e}}an.Keccak=e2;const Bu=(t,e,n)=>(0,Wy.wrapConstructor)(()=>new e2(e,t,n));an.sha3_224=Bu(6,144,224/8);an.sha3_256=Bu(6,136,256/8);an.sha3_384=Bu(6,104,384/8);an.sha3_512=Bu(6,72,512/8);an.keccak_224=Bu(1,144,224/8);an.keccak_256=Bu(1,136,256/8);an.keccak_384=Bu(1,104,384/8);an.keccak_512=Bu(1,72,512/8);const QV=(t,e,n)=>(0,Wy.wrapXOFConstructorWithOpts)((r={})=>new e2(e,t,r.dkLen===void 0?n:r.dkLen,!0));an.shake128=QV(31,168,128/8);an.shake256=QV(31,136,256/8);var M6={exports:{}};M6.exports;(function(t,e){var n=de&&de.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=e.wrapHash=e.equalsBytes=e.hexToBytes=e.bytesToUtf8=e.utf8ToBytes=e.createView=e.concatBytes=e.toHex=e.bytesToHex=e.assertBytes=e.assertBool=void 0;const r=n(br),a=Lc,i=r.default.bool;e.assertBool=i;const s=r.default.bytes;e.assertBytes=s;var o=Lc;Object.defineProperty(e,"bytesToHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(e,"toHex",{enumerable:!0,get:function(){return o.bytesToHex}}),Object.defineProperty(e,"concatBytes",{enumerable:!0,get:function(){return o.concatBytes}}),Object.defineProperty(e,"createView",{enumerable:!0,get:function(){return o.createView}}),Object.defineProperty(e,"utf8ToBytes",{enumerable:!0,get:function(){return o.utf8ToBytes}});function c(E){if(!(E instanceof Uint8Array))throw new TypeError(`bytesToUtf8 expected Uint8Array, got ${typeof E}`);return new TextDecoder().decode(E)}e.bytesToUtf8=c;function h(E){const C=E.startsWith("0x")?E.substring(2):E;return(0,a.hexToBytes)(C)}e.hexToBytes=h;function b(E,C){if(E.length!==C.length)return!1;for(let M=0;M(r.default.bytes(C),E(C))}e.wrapHash=v,e.crypto=(()=>{const E=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0,C=typeof C6=="function"&&C6.bind(t);return{node:C&&!E?C("crypto"):void 0,web:E}})()})(M6,M6.exports);var JV=M6.exports;Object.defineProperty($i,"__esModule",{value:!0});$i.keccak512=$i.keccak384=$i.keccak256=$i.keccak224=void 0;const Nm=an,dv=JV;$i.keccak224=(0,dv.wrapHash)(Nm.keccak_224);$i.keccak256=(()=>{const t=(0,dv.wrapHash)(Nm.keccak_256);return t.create=Nm.keccak_256.create,t})();$i.keccak384=(0,dv.wrapHash)(Nm.keccak_384);$i.keccak512=(0,dv.wrapHash)(Nm.keccak_512);var Cd={},Li={},sn={};Object.defineProperty(sn,"__esModule",{value:!0});sn.isHexString=sn.getKeys=sn.fromAscii=sn.fromUtf8=sn.toAscii=sn.arrayContainsArray=sn.getBinarySize=sn.padToEven=sn.stripHexPrefix=sn.isHexPrefixed=void 0;function XV(t){if(typeof t!="string")throw new Error(`[isHexPrefixed] input must be type 'string', received type ${typeof t}`);return t[0]==="0"&&t[1]==="x"}sn.isHexPrefixed=XV;const hve=t=>{if(typeof t!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof t}`);return XV(t)?t.slice(2):t};sn.stripHexPrefix=hve;function YV(t){let e=t;if(typeof e!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof e}`);return e.length%2&&(e=`0${e}`),e}sn.padToEven=YV;function pve(t){if(typeof t!="string")throw new Error(`[getBinarySize] method requires input type 'string', received ${typeof t}`);return Buffer.byteLength(t,"utf8")}sn.getBinarySize=pve;function yve(t,e,n){if(Array.isArray(t)!==!0)throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof t}'`);if(Array.isArray(e)!==!0)throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof e}'`);return e[n===!0?"some":"every"](r=>t.indexOf(r)>=0)}sn.arrayContainsArray=yve;function mve(t){let e="",n=0;const r=t.length;for(t.substring(0,2)==="0x"&&(n=2);n0&&t.length!==2+2*e)}sn.isHexString=vve;Object.defineProperty(Li,"__esModule",{value:!0});Li.assertIsString=Li.assertIsArray=Li.assertIsBuffer=Li.assertIsHexString=void 0;const wve=sn,Eve=function(t){if(!(0,wve.isHexString)(t)){const e=`This method only supports 0x-prefixed hex strings but input was: ${t}`;throw new Error(e)}};Li.assertIsHexString=Eve;const _ve=function(t){if(!Buffer.isBuffer(t)){const e=`This method only supports Buffer but input was: ${t}`;throw new Error(e)}};Li.assertIsBuffer=_ve;const Ave=function(t){if(!Array.isArray(t)){const e=`This method only supports number arrays but input was: ${t}`;throw new Error(e)}};Li.assertIsArray=Ave;const Cve=function(t){if(typeof t!="string"){const e=`This method only supports strings but input was: ${t}`;throw new Error(e)}};Li.assertIsString=Cve;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.intToUnpaddedBuffer=t.bigIntToUnpaddedBuffer=t.bigIntToHex=t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.short=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToInt=t.bigIntToBuffer=t.bufferToBigInt=t.bufferToHex=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;const e=Li,n=sn,r=function(l){if(!Number.isSafeInteger(l)||l<0)throw new Error(`Received an invalid integer type: ${l}`);return`0x${l.toString(16)}`};t.intToHex=r;const a=function(l){const y=(0,t.intToHex)(l);return Buffer.from((0,n.padToEven)(y.slice(2)),"hex")};t.intToBuffer=a;const i=function(l){return Buffer.allocUnsafe(l).fill(0)};t.zeros=i;const s=function(l,y,g){const w=(0,t.zeros)(y);return g?l.length0&&y.toString()==="0";)l=l.slice(1),y=l[0];return l},b=function(l){return(0,e.assertIsBuffer)(l),h(l)};t.unpadBuffer=b;const v=function(l){return(0,e.assertIsArray)(l),h(l)};t.unpadArray=v;const E=function(l){return(0,e.assertIsHexString)(l),l=(0,n.stripHexPrefix)(l),"0x"+h(l)};t.unpadHexString=E;const C=function(l){if(l==null)return Buffer.allocUnsafe(0);if(Buffer.isBuffer(l)||Array.isArray(l)||l instanceof Uint8Array)return Buffer.from(l);if(typeof l=="string"){if(!(0,n.isHexString)(l))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${l}`);return Buffer.from((0,n.padToEven)((0,n.stripHexPrefix)(l)),"hex")}if(typeof l=="number")return(0,t.intToBuffer)(l);if(typeof l=="bigint"){if(l0&&g[0]===0)throw new Error(`${y} cannot have leading zeroes, received: ${g.toString("hex")}`)};t.validateNoLeadingZeroes=L;function X(l){return Array.isArray(l)?l.map(y=>X(y)):Buffer.from(l)}t.arrToBufArr=X;function B(l){return Array.isArray(l)?l.map(y=>B(y)):Uint8Array.from(l??[])}t.bufArrToArr=B;const u=l=>"0x"+l.toString(16);t.bigIntToHex=u;function d(l){return(0,t.unpadBuffer)(P(l))}t.bigIntToUnpaddedBuffer=d;function p(l){return(0,t.unpadBuffer)((0,t.intToBuffer)(l))}t.intToUnpaddedBuffer=p})(Cd);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.accountBodyToRLP=t.accountBodyToSlim=t.accountBodyFromSlim=t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;const e=yo,n=$i,r=sv,a=JV,i=Cd,s=iv,o=Li,c=sn,h=BigInt(0);class b{constructor(p=h,l=h,y=s.KECCAK256_RLP,g=s.KECCAK256_NULL){this.nonce=p,this.balance=l,this.storageRoot=y,this.codeHash=g,this._validate()}static fromAccountData(p){const{nonce:l,balance:y,storageRoot:g,codeHash:w}=p;return new b(l!==void 0?(0,i.bufferToBigInt)((0,i.toBuffer)(l)):void 0,y!==void 0?(0,i.bufferToBigInt)((0,i.toBuffer)(y)):void 0,g!==void 0?(0,i.toBuffer)(g):void 0,w!==void 0?(0,i.toBuffer)(w):void 0)}static fromRlpSerializedAccount(p){const l=(0,i.arrToBufArr)(e.RLP.decode(Uint8Array.from(p)));if(!Array.isArray(l))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(l)}static fromValuesArray(p){const[l,y,g,w]=p;return new b((0,i.bufferToBigInt)(l),(0,i.bufferToBigInt)(y),g,w)}_validate(){if(this.nonce=8?x+=l[f].toUpperCase():x+=l[f];return x};t.toChecksumAddress=E;const C=function(d,p){return(0,t.isValidAddress)(d)&&(0,t.toChecksumAddress)(d,p)===d};t.isValidChecksumAddress=C;const M=function(d,p){return(0,o.assertIsBuffer)(d),(0,o.assertIsBuffer)(p),(0,i.bufferToBigInt)(p)===BigInt(0)?Buffer.from((0,n.keccak256)(e.RLP.encode((0,i.bufArrToArr)([d,null])))).slice(-20):Buffer.from((0,n.keccak256)(e.RLP.encode((0,i.bufArrToArr)([d,p])))).slice(-20)};t.generateAddress=M;const T=function(d,p,l){if((0,o.assertIsBuffer)(d),(0,o.assertIsBuffer)(p),(0,o.assertIsBuffer)(l),d.length!==20)throw new Error("Expected from to be of length 20");if(p.length!==32)throw new Error("Expected salt to be of length 32");const y=(0,n.keccak256)(Buffer.concat([Buffer.from("ff","hex"),d,p,(0,n.keccak256)(l)]));return(0,i.toBuffer)(y).slice(-20)};t.generateAddress2=T;const P=function(d){return r.secp256k1.utils.isValidPrivateKey(d)};t.isValidPrivate=P;const D=function(d,p=!1){if((0,o.assertIsBuffer)(d),d.length===64)try{return r.secp256k1.ProjectivePoint.fromHex(Buffer.concat([Buffer.from([4]),d])),!0}catch{return!1}if(!p)return!1;try{return r.secp256k1.ProjectivePoint.fromHex(d),!0}catch{return!1}};t.isValidPublic=D;const F=function(d,p=!1){if((0,o.assertIsBuffer)(d),p&&d.length!==64&&(d=Buffer.from(r.secp256k1.ProjectivePoint.fromHex(d).toRawBytes(!1).slice(1))),d.length!==64)throw new Error("Expected pubKey to be of length 64");return Buffer.from((0,n.keccak256)(d)).slice(-20)};t.pubToAddress=F,t.publicToAddress=t.pubToAddress;const O=function(d){return(0,o.assertIsBuffer)(d),Buffer.from(r.secp256k1.ProjectivePoint.fromPrivateKey(d).toRawBytes(!1).slice(1))};t.privateToPublic=O;const k=function(d){return(0,t.publicToAddress)((0,t.privateToPublic)(d))};t.privateToAddress=k;const U=function(d){return(0,o.assertIsBuffer)(d),d.length!==64&&(d=Buffer.from(r.secp256k1.ProjectivePoint.fromHex(d).toRawBytes(!1).slice(1))),d};t.importPublic=U;const J=function(){const p=(0,i.zeros)(20);return(0,i.bufferToHex)(p)};t.zeroAddress=J;const Y=function(d){try{(0,o.assertIsString)(d)}catch{return!1}return(0,t.zeroAddress)()===d};t.isZeroAddress=Y;function L(d){const[p,l,y,g]=d;return[p,l,(0,i.arrToBufArr)(y).length===0?s.KECCAK256_RLP:y,(0,i.arrToBufArr)(g).length===0?s.KECCAK256_NULL:g]}t.accountBodyFromSlim=L;const X=new Uint8Array(0);function B(d){const[p,l,y,g]=d;return[p,l,(0,i.arrToBufArr)(y).equals(s.KECCAK256_RLP)?X:y,(0,i.arrToBufArr)(g).equals(s.KECCAK256_NULL)?X:g]}t.accountBodyToSlim=B;function u(d,p=!0){const l=p?L(d):d;return(0,i.arrToBufArr)(e.RLP.encode(l))}t.accountBodyToRLP=u})(vS);var t2={};Object.defineProperty(t2,"__esModule",{value:!0});t2.Address=void 0;const X1=vS,u3=Cd;class Wo{constructor(e){if(e.length!==20)throw new Error("Invalid address length");this.buf=e}static zero(){return new Wo((0,u3.zeros)(20))}static fromString(e){if(!(0,X1.isValidAddress)(e))throw new Error("Invalid address");return new Wo((0,u3.toBuffer)(e))}static fromPublicKey(e){if(!Buffer.isBuffer(e))throw new Error("Public key should be Buffer");const n=(0,X1.pubToAddress)(e);return new Wo(n)}static fromPrivateKey(e){if(!Buffer.isBuffer(e))throw new Error("Private key should be Buffer");const n=(0,X1.privateToAddress)(e);return new Wo(n)}static generate(e,n){if(typeof n!="bigint")throw new Error("Expected nonce to be a bigint");return new Wo((0,X1.generateAddress)(e.buf,(0,u3.bigIntToBuffer)(n)))}static generate2(e,n,r){if(!Buffer.isBuffer(n))throw new Error("Expected salt to be a Buffer");if(!Buffer.isBuffer(r))throw new Error("Expected initCode to be a Buffer");return new Wo((0,X1.generateAddress2)(e.buf,n,r))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(Wo.zero())}isPrecompileOrSystemAddress(){const e=(0,u3.bufferToBigInt)(this.buf),n=BigInt(0),r=BigInt("0xffff");return e>=n&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return Buffer.from(this.buf)}}t2.Address=Wo;var hv={},_S={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=void 0;const e=Cd,n=sn;var r;(function(i){i[i.Number=0]="Number",i[i.BigInt=1]="BigInt",i[i.Buffer=2]="Buffer",i[i.PrefixedHexString=3]="PrefixedHexString"})(r=t.TypeOutput||(t.TypeOutput={}));function a(i,s){if(i===null)return null;if(i===void 0)return;if(typeof i=="string"&&!(0,n.isHexString)(i))throw new Error(`A string must be provided with a 0x-prefix, given: ${i}`);if(typeof i=="number"&&!Number.isSafeInteger(i))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const o=(0,e.toBuffer)(i);switch(s){case r.Buffer:return o;case r.BigInt:return(0,e.bufferToBigInt)(o);case r.Number:{const c=(0,e.bufferToBigInt)(o);if(c>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(c)}case r.PrefixedHexString:return(0,e.bufferToHex)(o);default:throw new Error("unknown outputType")}}t.toType=a})(_S);Object.defineProperty(hv,"__esModule",{value:!0});hv.Withdrawal=void 0;const BI=t2,S9=Cd,Cn=_S;class Ky{constructor(e,n,r,a){this.index=e,this.validatorIndex=n,this.address=r,this.amount=a}static fromWithdrawalData(e){const{index:n,validatorIndex:r,address:a,amount:i}=e,s=(0,Cn.toType)(n,Cn.TypeOutput.BigInt),o=(0,Cn.toType)(r,Cn.TypeOutput.BigInt),c=new BI.Address((0,Cn.toType)(a,Cn.TypeOutput.Buffer)),h=(0,Cn.toType)(i,Cn.TypeOutput.BigInt);return new Ky(s,o,c,h)}static fromValuesArray(e){if(e.length!==4)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[n,r,a,i]=e;return Ky.fromWithdrawalData({index:n,validatorIndex:r,address:a,amount:i})}static toBufferArray(e){const{index:n,validatorIndex:r,address:a,amount:i}=e,s=(0,Cn.toType)(n,Cn.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,Cn.toType)(n,Cn.TypeOutput.Buffer),o=(0,Cn.toType)(r,Cn.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,Cn.toType)(r,Cn.TypeOutput.Buffer);let c;a instanceof BI.Address?c=a.buf:c=(0,Cn.toType)(a,Cn.TypeOutput.Buffer);const h=(0,Cn.toType)(i,Cn.TypeOutput.BigInt)===BigInt(0)?Buffer.alloc(0):(0,Cn.toType)(i,Cn.TypeOutput.Buffer);return[s,o,c,h]}raw(){return Ky.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,S9.bigIntToHex)(this.index),validatorIndex:(0,S9.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,S9.bigIntToHex)(this.amount)}}}hv.Withdrawal=Ky;var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.hashPersonalMessage=Qr.isValidSignature=Qr.fromRpcSig=Qr.toCompactSig=Qr.toRpcSig=Qr.ecrecover=Qr.ecsign=void 0;const Sve=$i,eq=sv,Da=Cd,T9=iv,Tve=Li;function Bve(t,e,n){const r=eq.secp256k1.sign(t,e),a=r.toCompactRawBytes(),i=Buffer.from(a.slice(0,32)),s=Buffer.from(a.slice(32,64)),o=n===void 0?BigInt(r.recovery+27):BigInt(r.recovery+35)+BigInt(n)*BigInt(2);return{r:i,s,v:o}}Qr.ecsign=Bve;function pv(t,e){return t===BigInt(0)||t===BigInt(1)?t:e===void 0?t-BigInt(27):t-(e*BigInt(2)+BigInt(35))}function yv(t){return t===BigInt(0)||t===BigInt(1)}const Mve=function(t,e,n,r,a){const i=Buffer.concat([(0,Da.setLengthLeft)(n,32),(0,Da.setLengthLeft)(r,32)],64),s=pv(e,a);if(!yv(s))throw new Error("Invalid signature v value");const c=eq.secp256k1.Signature.fromCompact(i).addRecoveryBit(Number(s)).recoverPublicKey(t);return Buffer.from(c.toRawBytes(!1).slice(1))};Qr.ecrecover=Mve;const Fve=function(t,e,n,r){const a=pv(t,r);if(!yv(a))throw new Error("Invalid signature v value");return(0,Da.bufferToHex)(Buffer.concat([(0,Da.setLengthLeft)(e,32),(0,Da.setLengthLeft)(n,32),(0,Da.toBuffer)(t)]))};Qr.toRpcSig=Fve;const Dve=function(t,e,n,r){const a=pv(t,r);if(!yv(a))throw new Error("Invalid signature v value");let i=n;return(t>BigInt(28)&&t%BigInt(2)===BigInt(1)||t===BigInt(1)||t===BigInt(28))&&(i=Buffer.from(n),i[0]|=128),(0,Da.bufferToHex)(Buffer.concat([(0,Da.setLengthLeft)(e,32),(0,Da.setLengthLeft)(i,32)]))};Qr.toCompactSig=Dve;const kve=function(t){const e=(0,Da.toBuffer)(t);let n,r,a;if(e.length>=65)n=e.slice(0,32),r=e.slice(32,64),a=(0,Da.bufferToBigInt)(e.slice(64));else if(e.length===64)n=e.slice(0,32),r=e.slice(32,64),a=BigInt((0,Da.bufferToInt)(e.slice(32,33))>>7),r[0]&=127;else throw new Error("Invalid signature length");return a<27&&(a=a+BigInt(27)),{v:a,r:n,s:r}};Qr.fromRpcSig=kve;const Ive=function(t,e,n,r=!0,a){if(e.length!==32||n.length!==32||!yv(pv(t,a)))return!1;const i=(0,Da.bufferToBigInt)(e),s=(0,Da.bufferToBigInt)(n);return!(i===BigInt(0)||i>=T9.SECP256K1_ORDER||s===BigInt(0)||s>=T9.SECP256K1_ORDER||r&&s>=T9.SECP256K1_ORDER_DIV_2)};Qr.isValidSignature=Ive;const Ove=function(t){(0,Tve.assertIsBuffer)(t);const e=Buffer.from(`Ethereum Signed Message: -${t.length}`,"utf-8");return Buffer.from((0,Sve.keccak256)(Buffer.concat([e,t])))};Qr.hashPersonalMessage=Ove;var tq={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.compactBytesToNibbles=t.bytesToNibbles=t.nibblesToCompactBytes=t.nibblesToBytes=t.hasTerminator=void 0;const e=s=>s.length>0&&s[s.length-1]===16;t.hasTerminator=e;const n=(s,o)=>{for(let c=0,h=0;h{let o=0;(0,t.hasTerminator)(s)&&(o=1,s=s.subarray(0,s.length-1));const c=new Uint8Array(s.length/2+1);return c[0]=o<<5,(s.length&1)===1&&(c[0]|=16,c[0]|=s[0],s=s.subarray(1)),(0,t.nibblesToBytes)(s,c.subarray(1)),c};t.nibblesToCompactBytes=r;const a=s=>{const o=s.length*2+1,c=new Uint8Array(o);for(let h=0;h{if(s.length===0)return s;let o=(0,t.bytesToNibbles)(s);o[0]<2&&(o=o.subarray(0,o.length-1));const c=2-(o[0]&1);return o.subarray(c)};t.compactBytesToNibbles=i})(tq);var mv={};Object.defineProperty(mv,"__esModule",{value:!0});mv.AsyncEventEmitter=void 0;const Pve=WC;async function Rve(t,e,n){let r;for await(const a of e)try{a.length<2?a.call(t,n):await new Promise((i,s)=>{a.call(t,n,o=>{o?s(o):i()})})}catch(i){r=i}if(r)throw r}class Nve extends Pve.EventEmitter{emit(e,...n){let[r,a]=n;const i=this;let s=i._events[e]??[];return a===void 0&&typeof r=="function"&&(a=r,r=void 0),(e==="newListener"||e==="removeListener")&&(r={event:r,fn:a},a=void 0),s=Array.isArray(s)?s:[s],Rve(i,s.slice(),r).then(a).catch(a),i.listenerCount(e)>0}once(e,n){const r=this;let a;if(typeof n!="function")throw new TypeError("listener must be a function");return n.length>=2?a=function(i,s){r.removeListener(e,a),n(i,s)}:a=function(i){r.removeListener(e,a),n(i,a)},r.on(e,a),r}first(e,n){let r=this._events[e]??[];if(typeof n!="function")throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(n),this}before(e,n,r){return this.beforeOrAfter(e,n,r)}after(e,n,r){return this.beforeOrAfter(e,n,r,"after")}beforeOrAfter(e,n,r,a){let i=this._events[e]??[],s,o;const c=a==="after"?1:0;if(typeof r!="function")throw new TypeError("listener must be a function");if(typeof n!="function")throw new TypeError("target must be a function");for(Array.isArray(i)||(this._events[e]=i=[i]),o=i.length,s=i.length;s--;)if(i[s]===n){o=s+c;break}return i.splice(o,0,r),this}on(e,n){return super.on(e,n)}addListener(e,n){return super.addListener(e,n)}prependListener(e,n){return super.prependListener(e,n)}prependOnceListener(e,n){return super.prependOnceListener(e,n)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,n){return super.removeListener(e,n)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}mv.AsyncEventEmitter=Nve;var bv={};Object.defineProperty(bv,"__esModule",{value:!0});bv.Lock=void 0;class $ve{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise(e=>this.promiseResolverQueue.push(e))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(this.permits===1&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}bv.Lock=$ve;var Dp={},cd={};Object.defineProperty(cd,"__esModule",{value:!0});cd.InvalidStatusCodeError=cd.InvalidCertError=void 0;const nq=Object.freeze({redirect:!0,expectStatusCode:200,headers:{},full:!1,keepAlive:!0,cors:!1,referrer:!1,sslAllowSelfSigned:!1,_redirectCount:0});class rE extends Error{constructor(e,n){super(e),this.fingerprint256=n}}cd.InvalidCertError=rE;class AS extends Error{constructor(e){super(`Request Failed. Status Code: ${e}`),this.statusCode=e}}cd.InvalidStatusCodeError=AS;function rq(t,e){if(!e||e==="text"||e==="json")try{let n=new TextDecoder("utf8",{fatal:!0}).decode(t);if(e==="text")return n;try{return JSON.parse(n)}catch(r){if(e==="json")throw r;return n}}catch(n){if(e==="text"||e==="json")throw n}return t}let MI={};function aE(t,e){var E;let n={...nq,...e};const r=ho,a=ho,i=ho,{promisify:s}=ad,{resolve:o}=ho,c=!!/^https/.test(t);let h={method:n.method||"GET",headers:{"Accept-Encoding":"gzip, deflate, br"}};const b=C=>C.replace(/:| /g,"").toLowerCase();if(n.keepAlive){const C={keepAlive:!0,keepAliveMsecs:3e4,maxFreeSockets:1024,maxCachedSessions:1024},M=[c,c&&((E=n.sslPinnedCertificates)==null?void 0:E.map(T=>b(T)).sort())].join();h.agent=MI[M]||(MI[M]=new(c?a:r).Agent(C))}n.type==="json"&&(h.headers["Content-Type"]="application/json"),n.data&&(n.method||(h.method="POST"),h.body=n.type==="json"?JSON.stringify(n.data):n.data),h.headers={...h.headers,...n.headers},n.sslAllowSelfSigned&&(h.rejectUnauthorized=!1);const v=async C=>{const M=C.statusCode;if(n.redirect&&300<=M&&M<400&&C.headers.location){if(n._redirectCount==10)throw new Error("Request failed. Too much redirects.");return n._redirectCount+=1,await aE(o(t,C.headers.location),n)}if(n.expectStatusCode&&M!==n.expectStatusCode)throw C.resume(),new AS(M);let T=[];for await(const O of C)T.push(O);let P=Buffer.concat(T);const D=C.headers["content-encoding"];D==="br"&&(P=await s(i.brotliDecompress)(P)),(D==="gzip"||D==="deflate")&&(P=await s(i.unzip)(P));const F=rq(P,n.type);return n.full?{headers:C.headers,status:M,body:F}:F};return new Promise((C,M)=>{var O;const T=async k=>{if(k&&k.code==="DEPTH_ZERO_SELF_SIGNED_CERT")try{await aE(t,{...n,sslAllowSelfSigned:!0,sslPinnedCertificates:[]})}catch(U){U&&U.fingerprint256&&(k=new rE(`Self-signed SSL certificate: ${U.fingerprint256}`,U.fingerprint256))}M(k)},P=(c?a:r).request(t,h,k=>{k.on("error",T),(async()=>{try{C(await v(k))}catch(U){M(U)}})()});P.on("error",T);const D=(O=n.sslPinnedCertificates)==null?void 0:O.map(k=>b(k)),F=k=>{var J;const U=b(((J=k.getPeerCertificate())==null?void 0:J.fingerprint256)||"");if(!(!U&&k.isSessionReused())&&!D.includes(U))return P.emit("error",new rE(`Invalid SSL certificate: ${U} Expected: ${D}`,U)),P.abort()};n.sslPinnedCertificates&&P.on("socket",k=>{k.listeners("secureConnect").map(J=>(J.name||"").replace("bound ","")).includes("mfetchSecureConnect")||k.on("secureConnect",F.bind(null,k))}),n.keepAlive&&P.setNoDelay(!0),h.body&&P.write(h.body),P.end()})}const Lve=new Set(["Accept","Accept-Language","Content-Language","Content-Type"].map(t=>t.toLowerCase())),Uve=new Set(["Accept-Charset","Accept-Encoding","Access-Control-Request-Headers","Access-Control-Request-Method","Connection","Content-Length","Cookie","Cookie2","Date","DNT","Expect","Host","Keep-Alive","Origin","Referer","TE","Trailer","Transfer-Encoding","Upgrade","Via"].map(t=>t.toLowerCase()));async function jve(t,e){let n={...nq,...e};const r=new Headers;n.type==="json"&&r.set("Content-Type","application/json");let a=new URL(t);if(a.username){const c=btoa(`${a.username}:${a.password}`);r.set("Authorization",`Basic ${c}`),a.username="",a.password=""}t=""+a;for(let c in n.headers){const h=c.toLowerCase();(Lve.has(h)||n.cors&&!Uve.has(h))&&r.set(c,n.headers[c])}let i={headers:r,redirect:n.redirect?"follow":"manual"};n.referrer||(i.referrerPolicy="no-referrer"),n.cors&&(i.mode="cors"),n.data&&(n.method||(i.method="POST"),i.body=n.type==="json"?JSON.stringify(n.data):n.data);const s=await fetch(t,i);if(n.expectStatusCode&&s.status!==n.expectStatusCode)throw new AS(s.status);const o=rq(new Uint8Array(await s.arrayBuffer()),n.type);return n.full?{headers:Object.fromEntries(s.headers.entries()),status:s.status,body:o}:o}const Hve=!!(typeof process=="object"&&process.versions&&process.versions.node&&process.versions.v8);function zve(t,e){return(Hve?aE:jve)(t,e)}cd.default=zve;Object.defineProperty(Dp,"__esModule",{value:!0});Dp.getProvider=Dp.fetchFromProvider=void 0;const Gve=cd,Vve=async(t,e)=>(await(0,Gve.default)(t,{headers:{"content-type":"application/json"},type:"json",data:{method:e.method,params:e.params,jsonrpc:"2.0",id:1}})).result;Dp.fetchFromProvider=Vve;const qve=t=>{var e;if(typeof t=="string")return t;if(((e=t==null?void 0:t.connection)==null?void 0:e.url)!==void 0)return t.connection.url;throw new Error("Must provide valid provider URL or Web3Provider")};Dp.getProvider=qve;(function(t){var e=de&&de.__createBinding||(Object.create?function(a,i,s,o){o===void 0&&(o=s);var c=Object.getOwnPropertyDescriptor(i,s);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(a,o,c)}:function(a,i,s,o){o===void 0&&(o=s),a[o]=i[s]}),n=de&&de.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),t.toAscii=t.stripHexPrefix=t.padToEven=t.isHexString=t.isHexPrefixed=t.getKeys=t.getBinarySize=t.fromUtf8=t.fromAscii=t.arrayContainsArray=void 0,n(iv,t),n(fv,t),n(vS,t),n(t2,t),n(hv,t),n(Qr,t),n(Cd,t),n(_S,t),n(tq,t),n(mv,t);var r=sn;Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return r.arrayContainsArray}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return r.fromAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return r.fromUtf8}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return r.getBinarySize}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return r.getKeys}}),Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return r.isHexPrefixed}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return r.isHexString}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return r.padToEven}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return r.stripHexPrefix}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return r.toAscii}}),n(bv,t),n(Dp,t)})(XG);var Jc={},u1={},aq={exports:{}};(function(t){var e={};/** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.8.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */(function(){var n="input is invalid type",r="finalize already called",a=typeof window=="object",i=a?window:{};i.JS_SHA3_NO_WINDOW&&(a=!1);var s=!a&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=e:s&&(i=self);var c=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,h=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",b="0123456789abcdef".split(""),v=[31,7936,2031616,520093696],E=[4,1024,262144,67108864],C=[1,256,65536,16777216],M=[6,1536,393216,100663296],T=[0,8,16,24],P=[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],D=[224,256,384,512],F=[128,256],O=["hex","buffer","arrayBuffer","array","digest"],k={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(I){return Object.prototype.toString.call(I)==="[object Array]"}),h&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(I){return typeof I=="object"&&I.buffer&&I.buffer.constructor===ArrayBuffer});for(var U=function(I,W,z){return function(Z){return new S(I,W,I).update(Z)[z]()}},J=function(I,W,z){return function(Z,le){return new S(I,W,le).update(Z)[z]()}},Y=function(I,W,z){return function(Z,le,ue,G){return y["cshake"+I].update(Z,le,ue,G)[z]()}},L=function(I,W,z){return function(Z,le,ue,G){return y["kmac"+I].update(Z,le,ue,G)[z]()}},X=function(I,W,z,Z){for(var le=0;le>5,this.byteCount=this.blockCount<<2,this.outputBlocks=z>>5,this.extraBytes=(z&31)>>3;for(var Z=0;Z<50;++Z)this.s[Z]=0}S.prototype.update=function(I){if(this.finalized)throw new Error(r);var W,z=typeof I;if(z!=="string"){if(z==="object"){if(I===null)throw new Error(n);if(h&&I.constructor===ArrayBuffer)I=new Uint8Array(I);else if(!Array.isArray(I)&&(!h||!ArrayBuffer.isView(I)))throw new Error(n)}else throw new Error(n);W=!0}for(var Z=this.blocks,le=this.byteCount,ue=I.length,G=this.blockCount,j=0,ne=this.s,se,Q;j>2]|=I[j]<>2]|=Q<>2]|=(192|Q>>6)<>2]|=(128|Q&63)<=57344?(Z[se>>2]|=(224|Q>>12)<>2]|=(128|Q>>6&63)<>2]|=(128|Q&63)<>2]|=(240|Q>>18)<>2]|=(128|Q>>12&63)<>2]|=(128|Q>>6&63)<>2]|=(128|Q&63)<=le){for(this.start=se-le,this.block=Z[G],se=0;se>8,z=I&255;z>0;)le.unshift(z),I=I>>8,z=I&255,++Z;return W?le.push(Z):le.unshift(Z),this.update(le),le.length},S.prototype.encodeString=function(I){var W,z=typeof I;if(z!=="string"){if(z==="object"){if(I===null)throw new Error(n);if(h&&I.constructor===ArrayBuffer)I=new Uint8Array(I);else if(!Array.isArray(I)&&(!h||!ArrayBuffer.isView(I)))throw new Error(n)}else throw new Error(n);W=!0}var Z=0,le=I.length;if(W)Z=le;else for(var ue=0;ue=57344?Z+=3:(G=65536+((G&1023)<<10|I.charCodeAt(++ue)&1023),Z+=4)}return Z+=this.encode(Z*8),this.update(I),Z},S.prototype.bytepad=function(I,W){for(var z=this.encode(W),Z=0;Z>2]|=this.padding[W&3],this.lastByteIndex===this.byteCount)for(I[0]=I[z],W=1;W>4&15]+b[j&15]+b[j>>12&15]+b[j>>8&15]+b[j>>20&15]+b[j>>16&15]+b[j>>28&15]+b[j>>24&15];ue%I===0&&(V(W),le=0)}return Z&&(j=W[le],G+=b[j>>4&15]+b[j&15],Z>1&&(G+=b[j>>12&15]+b[j>>8&15]),Z>2&&(G+=b[j>>20&15]+b[j>>16&15])),G},S.prototype.arrayBuffer=function(){this.finalize();var I=this.blockCount,W=this.s,z=this.outputBlocks,Z=this.extraBytes,le=0,ue=0,G=this.outputBits>>3,j;Z?j=new ArrayBuffer(z+1<<2):j=new ArrayBuffer(G);for(var ne=new Uint32Array(j);ue>8&255,G[j+2]=ne>>16&255,G[j+3]=ne>>24&255;ue%I===0&&V(W)}return Z&&(j=ue<<2,ne=W[le],G[j]=ne&255,Z>1&&(G[j+1]=ne>>8&255),Z>2&&(G[j+2]=ne>>16&255)),G};function $(I,W,z){S.call(this,I,W,z)}$.prototype=new S,$.prototype.finalize=function(){return this.encode(this.outputBits,!0),S.prototype.finalize.call(this)};var V=function(I){var W,z,Z,le,ue,G,j,ne,se,Q,R,N,K,ae,he,q,ee,ie,me,be,pe,Me,Te,Ee,Qe,Ne,Oe,at,qe,$e,xt,Xe,He,_t,oe,fe,Ce,Ae,_e,Je,Fe,Se,ze,Pe,Ie,Ye,Le,De,st,We,Ue,vt,Ke,Re,ht,pt,yt,Kt,Ht,ot,Tt,mt,Pt;for(Z=0;Z<48;Z+=2)le=I[0]^I[10]^I[20]^I[30]^I[40],ue=I[1]^I[11]^I[21]^I[31]^I[41],G=I[2]^I[12]^I[22]^I[32]^I[42],j=I[3]^I[13]^I[23]^I[33]^I[43],ne=I[4]^I[14]^I[24]^I[34]^I[44],se=I[5]^I[15]^I[25]^I[35]^I[45],Q=I[6]^I[16]^I[26]^I[36]^I[46],R=I[7]^I[17]^I[27]^I[37]^I[47],N=I[8]^I[18]^I[28]^I[38]^I[48],K=I[9]^I[19]^I[29]^I[39]^I[49],W=N^(G<<1|j>>>31),z=K^(j<<1|G>>>31),I[0]^=W,I[1]^=z,I[10]^=W,I[11]^=z,I[20]^=W,I[21]^=z,I[30]^=W,I[31]^=z,I[40]^=W,I[41]^=z,W=le^(ne<<1|se>>>31),z=ue^(se<<1|ne>>>31),I[2]^=W,I[3]^=z,I[12]^=W,I[13]^=z,I[22]^=W,I[23]^=z,I[32]^=W,I[33]^=z,I[42]^=W,I[43]^=z,W=G^(Q<<1|R>>>31),z=j^(R<<1|Q>>>31),I[4]^=W,I[5]^=z,I[14]^=W,I[15]^=z,I[24]^=W,I[25]^=z,I[34]^=W,I[35]^=z,I[44]^=W,I[45]^=z,W=ne^(N<<1|K>>>31),z=se^(K<<1|N>>>31),I[6]^=W,I[7]^=z,I[16]^=W,I[17]^=z,I[26]^=W,I[27]^=z,I[36]^=W,I[37]^=z,I[46]^=W,I[47]^=z,W=Q^(le<<1|ue>>>31),z=R^(ue<<1|le>>>31),I[8]^=W,I[9]^=z,I[18]^=W,I[19]^=z,I[28]^=W,I[29]^=z,I[38]^=W,I[39]^=z,I[48]^=W,I[49]^=z,ae=I[0],he=I[1],Ye=I[11]<<4|I[10]>>>28,Le=I[10]<<4|I[11]>>>28,at=I[20]<<3|I[21]>>>29,qe=I[21]<<3|I[20]>>>29,ot=I[31]<<9|I[30]>>>23,Tt=I[30]<<9|I[31]>>>23,Se=I[40]<<18|I[41]>>>14,ze=I[41]<<18|I[40]>>>14,_t=I[2]<<1|I[3]>>>31,oe=I[3]<<1|I[2]>>>31,q=I[13]<<12|I[12]>>>20,ee=I[12]<<12|I[13]>>>20,De=I[22]<<10|I[23]>>>22,st=I[23]<<10|I[22]>>>22,$e=I[33]<<13|I[32]>>>19,xt=I[32]<<13|I[33]>>>19,mt=I[42]<<2|I[43]>>>30,Pt=I[43]<<2|I[42]>>>30,Re=I[5]<<30|I[4]>>>2,ht=I[4]<<30|I[5]>>>2,fe=I[14]<<6|I[15]>>>26,Ce=I[15]<<6|I[14]>>>26,ie=I[25]<<11|I[24]>>>21,me=I[24]<<11|I[25]>>>21,We=I[34]<<15|I[35]>>>17,Ue=I[35]<<15|I[34]>>>17,Xe=I[45]<<29|I[44]>>>3,He=I[44]<<29|I[45]>>>3,Ee=I[6]<<28|I[7]>>>4,Qe=I[7]<<28|I[6]>>>4,pt=I[17]<<23|I[16]>>>9,yt=I[16]<<23|I[17]>>>9,Ae=I[26]<<25|I[27]>>>7,_e=I[27]<<25|I[26]>>>7,be=I[36]<<21|I[37]>>>11,pe=I[37]<<21|I[36]>>>11,vt=I[47]<<24|I[46]>>>8,Ke=I[46]<<24|I[47]>>>8,Pe=I[8]<<27|I[9]>>>5,Ie=I[9]<<27|I[8]>>>5,Ne=I[18]<<20|I[19]>>>12,Oe=I[19]<<20|I[18]>>>12,Kt=I[29]<<7|I[28]>>>25,Ht=I[28]<<7|I[29]>>>25,Je=I[38]<<8|I[39]>>>24,Fe=I[39]<<8|I[38]>>>24,Me=I[48]<<14|I[49]>>>18,Te=I[49]<<14|I[48]>>>18,I[0]=ae^~q&ie,I[1]=he^~ee&me,I[10]=Ee^~Ne&at,I[11]=Qe^~Oe&qe,I[20]=_t^~fe&Ae,I[21]=oe^~Ce&_e,I[30]=Pe^~Ye&De,I[31]=Ie^~Le&st,I[40]=Re^~pt&Kt,I[41]=ht^~yt&Ht,I[2]=q^~ie&be,I[3]=ee^~me&pe,I[12]=Ne^~at&$e,I[13]=Oe^~qe&xt,I[22]=fe^~Ae&Je,I[23]=Ce^~_e&Fe,I[32]=Ye^~De&We,I[33]=Le^~st&Ue,I[42]=pt^~Kt&ot,I[43]=yt^~Ht&Tt,I[4]=ie^~be&Me,I[5]=me^~pe&Te,I[14]=at^~$e&Xe,I[15]=qe^~xt&He,I[24]=Ae^~Je&Se,I[25]=_e^~Fe&ze,I[34]=De^~We&vt,I[35]=st^~Ue&Ke,I[44]=Kt^~ot&mt,I[45]=Ht^~Tt&Pt,I[6]=be^~Me&ae,I[7]=pe^~Te&he,I[16]=$e^~Xe&Ee,I[17]=xt^~He&Qe,I[26]=Je^~Se&_t,I[27]=Fe^~ze&oe,I[36]=We^~vt&Pe,I[37]=Ue^~Ke&Ie,I[46]=ot^~mt&Re,I[47]=Tt^~Pt&ht,I[8]=Me^~ae&q,I[9]=Te^~he&ee,I[18]=Xe^~Ee&Ne,I[19]=He^~Qe&Oe,I[28]=Se^~_t&fe,I[29]=ze^~oe&Ce,I[38]=vt^~Pe&Ye,I[39]=Ke^~Ie&Le,I[48]=mt^~Re&pt,I[49]=Pt^~ht&yt,I[0]^=P[Z],I[1]^=P[Z+1]};if(c)t.exports=y;else for(w=0;w{const n=/^0x/i.test(t)||typeof t=="number";t=t.toString().replace(/^0x/i,"");const r=e-t.length+1>=0?e-t.length+1:0;return(n?"0x":"")+new Array(r).join("0")+t};function Qve(t){const e=[];for(let n=0;n>>4).toString(16)),e.push((t[n]&15).toString(16));return`0x${e.join("").replace(/^0+/,"")}`}u1.bytesToHex=Qve;function iq(t){if(t==null)throw new Error("cannot convert null value to array");if(typeof t=="string"){const e=t.match(/^(0x)?[0-9a-fA-F]*$/);if(!e)throw new Error("invalid hexidecimal string");if(e[1]!=="0x")throw new Error("hex string must have 0x prefix");t=t.substring(2),t.length%2&&(t="0"+t);const n=[];for(let r=0;r=256||parseInt(String(n))!=n)return!1}return!0}function iE(t){return t.slice!==void 0||(t.slice=()=>{const e=Array.prototype.slice.call(arguments);return iE(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}Object.defineProperty(Jc,"__esModule",{value:!0});const sE=u1;function gv(t){return typeof t!="string"||!/^(0x)?[0-9a-f]{512}$/i.test(t)?!1:!!(/^(0x)?[0-9a-f]{512}$/.test(t)||/^(0x)?[0-9A-F]{512}$/.test(t))}Jc.isBloom=gv;function xv(t,e){typeof e=="object"&&e.constructor===Uint8Array&&(e=sE.bytesToHex(e));const n=sE.keccak256(e).replace("0x","");for(let r=0;r<12;r+=4){const a=(parseInt(n.substr(r,2),16)<<8)+parseInt(n.substr(r+2,2),16)&2047,i=Xve(t.charCodeAt(t.length-1-Math.floor(a/4))),s=1<=48&&t<=57)return t-48;if(t>=65&&t<=70)return t-55;if(t>=97&&t<=102)return t-87;throw new Error("invalid bloom")}function Yve(t,e){if(!gv(t))throw new Error("Invalid bloom given");if(!CS(e))throw new Error(`Invalid ethereum address given: "${e}"`);const n=sE.padLeft(e,64);return xv(t,n)}Jc.isUserEthereumAddressInBloom=Yve;function e4e(t,e){if(!gv(t))throw new Error("Invalid bloom given");if(!CS(e))throw new Error(`Invalid contract address given: "${e}"`);return xv(t,e)}Jc.isContractAddressInBloom=e4e;function t4e(t,e){if(!gv(t))throw new Error("Invalid bloom given");if(!sq(e))throw new Error("Invalid topic");return xv(t,e)}Jc.isTopicInBloom=t4e;function sq(t){if(typeof t!="string")return!1;if(/^(0x)?[0-9a-f]{64}$/i.test(t)){if(/^(0x)?[0-9a-f]{64}$/.test(t)||/^(0x)?[0-9A-F]{64}$/.test(t))return!0}else return!1;return!1}Jc.isTopic=sq;function CS(t){return typeof t!="string"?!1:!!(t.match(/^(0x)?[0-9a-fA-F]{40}$/)||t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}Jc.isAddress=CS;var kp=Gb,n4e=KG,oq=JG,FI=XG,f1=Jc,{keccak256:cq}=$i,SS=function(t){return kp.isBN(t)},lq=function(t){return t&&t.constructor&&t.constructor.name==="BigNumber"},n2=function(t){try{return n4e.apply(null,arguments)}catch(e){throw new Error(e+' Given value: "'+t+'"')}},r4e=function(t){return"0x"+n2(t).toTwos(256).toString(16,64)},uq=function(t){return/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:fq(t):!1},fq=function(t){t=t.replace(/^0x/i,"");for(var e=vv(t.toLowerCase()).replace(/^0x/i,""),n=0;n<40;n++)if(parseInt(e[n],16)>7&&t[n].toUpperCase()!==t[n]||parseInt(e[n],16)<=7&&t[n].toLowerCase()!==t[n])return!1;return!0},a4e=function(t,e,n){var r=/^0x/i.test(t)||typeof t=="number";t=t.toString(16).replace(/^0x/i,"");var a=e-t.length+1>=0?e-t.length+1:0;return(r?"0x":"")+new Array(a).join(n||"0")+t},i4e=function(t,e,n){var r=/^0x/i.test(t)||typeof t=="number";t=t.toString(16).replace(/^0x/i,"");var a=e-t.length+1>=0?e-t.length+1:0;return(r?"0x":"")+t+new Array(a).join(n||"0")},oE=function(t){t=oq.encode(t);var e="";t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join(""),t=t.replace(/^(?:\u0000)*/,""),t=t.split("").reverse().join("");for(var n=0;nNumber.MAX_SAFE_INTEGER||n>>4).toString(16)),e.push((t[n]&15).toString(16));return"0x"+e.join("")},l4e=function(t){if(t=t.toString(16),!Sd(t))throw new Error('Given value "'+t+'" is not a valid hex string.');t=t.replace(/^0x/i,"");for(var e=[],n=0;n32||r256)throw new Error("Invalid uint"+r+" size");if(a=DI(e),a.bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+a.bitLength());if(a.lt(new af(0)))throw new Error("Supplied uint "+a.toString()+" is negative");return r?Xa.leftPad(a.toString("hex"),r/8*2):a}else if(t.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if(a=DI(e),a.bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+a.bitLength());return a.lt(new af(0))?a.toTwos(r).toString("hex"):r?Xa.leftPad(a.toString("hex"),r/8*2):a}else throw new Error("Unsupported or invalid type: "+t)},BS=function(t){if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");var e,n="",r,a;if(t&&typeof t=="object"&&(t.hasOwnProperty("v")||t.hasOwnProperty("t")||t.hasOwnProperty("value")||t.hasOwnProperty("type"))?(e=t.hasOwnProperty("t")?t.t:t.type,n=t.hasOwnProperty("v")?t.v:t.value):(e=Xa.toHex(t,!0),n=Xa.toHex(t),!e.startsWith("int")&&!e.startsWith("uint")&&(e="bytes")),(e.startsWith("int")||e.startsWith("uint"))&&typeof n=="string"&&!/^(-)?0x/i.test(n)&&(n=new af(n)),Array.isArray(n)){if(a=w4e(e),a&&n.length!==a)throw new Error(e+" is not matching the given array "+JSON.stringify(n));a=n.length}return Array.isArray(n)?(r=n.map(function(i){return kI(e,i,a).toString("hex").replace("0x","")}),r.join("")):(r=kI(e,n,a),r.toString("hex").replace("0x",""))},E4e=function(){var t=Array.prototype.slice.call(arguments),e=t.map(BS);return Xa.sha3("0x"+e.join(""))},_4e=function(){return Xa.sha3Raw("0x"+Array.prototype.slice.call(arguments).map(BS).join(""))},A4e=function(){var t=Array.prototype.slice.call(arguments),e=t.map(BS);return"0x"+e.join("").toLowerCase()},C4e={soliditySha3:E4e,soliditySha3Raw:_4e,encodePacked:A4e},ld=i8e,gt=mq,B9=C4e,S4e=$z,II=Gb,T4e=function(t,e,n,r,a){return t&&typeof t=="object"&&!(t instanceof Error)&&t.data&&((t.data&&typeof t.data=="object"||Array.isArray(t.data))&&(t.data=JSON.stringify(t.data,null,2)),t=t.message+` -`+t.data),typeof t=="string"&&(t=new Error(t)),typeof r=="function"&&r(t,a),typeof n=="function"&&((e&&typeof e.listeners=="function"&&e.listeners("error").length||typeof r=="function")&&e.catch(function(){}),setTimeout(function(){n(t)},1)),e&&typeof e.emit=="function"&&setTimeout(function(){e.emit("error",t,a),e.removeAllListeners()},1),e},B4e=function(t){return t&&typeof t=="object"&&t.name&&t.name.indexOf("(")!==-1?t.name:t.name+"("+MS(!1,t.inputs).join(",")+")"},MS=function(t,e){var n=[];return e.forEach(function(r){if(typeof r.components=="object"){if(r.type.substring(0,5)!=="tuple")throw new Error("components found but type is not tuple; report on GitHub");var a="",i=r.type.indexOf("[");i>=0&&(a=r.type.substring(i));var s=MS(t,r.components);Array.isArray(s)&&t?n.push("tuple("+s.join(",")+")"+a):t?n.push("("+s+")"):n.push("("+s.join(",")+")"+a)}else n.push(r.type)}),n},M4e=function(t){return"0x"+S4e(t).toString("hex")},OI=function(t){if(!gt.isHexStrict(t))throw new Error("The parameter must be a valid HEX string.");var e="",n=0,r=t.length;for(t.substring(0,2)==="0x"&&(n=2);n"u")return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(t))throw new Error('Given address "'+t+'" is not a valid Ethereum address.');t=t.toLowerCase().replace(/^0x/i,"");for(var e=gt.sha3(t).replace(/^0x/i,""),n="0x",r=0;r7?n+=t[r].toUpperCase():n+=t[r];return n},I4e=function(t,e){if(t===e)return 0;if((t==="genesis"||t==="earliest"||t===0)&&(e==="genesis"||e==="earliest"||e===0))return 0;if(t==="genesis"||t==="earliest"||t===0)return-1;if(e==="genesis"||e==="earliest"||e===0)return 1;if(t==="latest"||t==="finalized")return e==="pending"?-1:1;if(e==="latest"||e==="finalized")return t==="pending"?1:-1;if(t==="pending")return 1;if(e==="pending")return-1;if(t==="safe"||e==="safe")return;{let n=new II(t),r=new II(e);return n.lt(r)?-1:n.eq(r)?0:1}},gq={_fireError:T4e,_jsonInterfaceMethodToString:B4e,_flattenTypes:MS,randomHex:M4e,BN:gt.BN,isBN:gt.isBN,isBigNumber:gt.isBigNumber,isHex:gt.isHex,isHexStrict:gt.isHexStrict,sha3:gt.sha3,sha3Raw:gt.sha3Raw,keccak256:gt.sha3,soliditySha3:B9.soliditySha3,soliditySha3Raw:B9.soliditySha3Raw,encodePacked:B9.encodePacked,isAddress:gt.isAddress,checkAddressChecksum:gt.checkAddressChecksum,toChecksumAddress:k4e,toHex:gt.toHex,toBN:gt.toBN,bytesToHex:gt.bytesToHex,hexToBytes:gt.hexToBytes,hexToNumberString:gt.hexToNumberString,hexToNumber:gt.hexToNumber,toDecimal:gt.hexToNumber,numberToHex:gt.numberToHex,fromDecimal:gt.numberToHex,hexToUtf8:gt.hexToUtf8,hexToString:gt.hexToUtf8,toUtf8:gt.hexToUtf8,stripHexPrefix:gt.stripHexPrefix,utf8ToHex:gt.utf8ToHex,stringToHex:gt.utf8ToHex,fromUtf8:gt.utf8ToHex,hexToAscii:OI,toAscii:OI,asciiToHex:PI,fromAscii:PI,unitMap:ld.unitMap,toWei:D4e,fromWei:F4e,padLeft:gt.leftPad,leftPad:gt.leftPad,padRight:gt.rightPad,rightPad:gt.rightPad,toTwosComplement:gt.toTwosComplement,isBloom:gt.isBloom,isUserEthereumAddressInBloom:gt.isUserEthereumAddressInBloom,isContractAddressInBloom:gt.isContractAddressInBloom,isTopic:gt.isTopic,isTopicInBloom:gt.isTopicInBloom,isInBloom:gt.isInBloom,compareBlockNumbers:I4e,toNumber:gt.toNumber},xq={};(function(t){var e={};Object.defineProperty(t,"__esModule",{value:!0}),t.networks=void 0,t.networks=[{chainId:1n,shortName:"eth"},{chainId:3n,shortName:"rop"},{chainId:4n,shortName:"rin"},{chainId:5n,shortName:"gor"},{chainId:10n,shortName:"oeth"},{chainId:11n,shortName:"meta"},{chainId:12n,shortName:"kal"},{chainId:18n,shortName:"tst"},{chainId:25n,shortName:"cro"},{chainId:28n,shortName:"bobarinkeby"},{chainId:30n,shortName:"rsk"},{chainId:31n,shortName:"trsk"},{chainId:39n,shortName:"u2u"},{chainId:40n,shortName:"telosevm"},{chainId:41n,shortName:"telosevmtestnet"},{chainId:42n,shortName:"kov"},{chainId:44n,shortName:"crab"},{chainId:46n,shortName:"darwinia"},{chainId:50n,shortName:"xdc"},{chainId:51n,shortName:"txdc"},{chainId:56n,shortName:"bnb"},{chainId:57n,shortName:"sys"},{chainId:61n,shortName:"etc"},{chainId:63n,shortName:"metc"},{chainId:69n,shortName:"okov"},{chainId:81n,shortName:"joc"},{chainId:82n,shortName:"meter"},{chainId:83n,shortName:"meter-test"},{chainId:97n,shortName:"bnbt"},{chainId:100n,shortName:"gno"},{chainId:106n,shortName:"vlx"},{chainId:108n,shortName:"tt"},{chainId:111n,shortName:"etl"},{chainId:122n,shortName:"fuse"},{chainId:123n,shortName:"spark"},{chainId:137n,shortName:"matic"},{chainId:148n,shortName:"shimmerevm-mainnet"},{chainId:155n,shortName:"tenet-testnet"},{chainId:246n,shortName:"ewt"},{chainId:250n,shortName:"ftm"},{chainId:280n,shortName:"zksync-goerli"},{chainId:288n,shortName:"boba"},{chainId:291n,shortName:"orderly"},{chainId:300n,shortName:"ogn"},{chainId:321n,shortName:"kcs"},{chainId:322n,shortName:"kcst"},{chainId:324n,shortName:"zksync"},{chainId:336n,shortName:"sdn"},{chainId:338n,shortName:"tcro"},{chainId:420n,shortName:"ogor"},{chainId:570n,shortName:"sys-rollux"},{chainId:588n,shortName:"metis-stardust"},{chainId:592n,shortName:"astr"},{chainId:595n,shortName:"maca"},{chainId:599n,shortName:"metis-goerli"},{chainId:686n,shortName:"kar"},{chainId:787n,shortName:"aca"},{chainId:1001n,shortName:"baobab"},{chainId:1008n,shortName:"eun"},{chainId:1088n,shortName:"metis-andromeda"},{chainId:1101n,shortName:"zkevm"},{chainId:1111n,shortName:"wemix"},{chainId:1112n,shortName:"twemix"},{chainId:1115n,shortName:"tcore"},{chainId:1116n,shortName:"core"},{chainId:1230n,shortName:"UltronTestnet"},{chainId:1231n,shortName:"UltronMainnet"},{chainId:1284n,shortName:"mbeam"},{chainId:1285n,shortName:"mriver"},{chainId:1287n,shortName:"mbase"},{chainId:1294n,shortName:"bobabeam"},{chainId:1442n,shortName:"testnet-zkEVM-mango"},{chainId:1559n,shortName:"tenet"},{chainId:1807n,shortName:"rana"},{chainId:1890n,shortName:"lightlink_phoenix"},{chainId:1891n,shortName:"lightlink_pegasus"},{chainId:1984n,shortName:"euntest"},{chainId:2001n,shortName:"milkada"},{chainId:2002n,shortName:"milkalgo"},{chainId:2008n,shortName:"cloudwalk_testnet"},{chainId:2019n,shortName:"pmint_test"},{chainId:2020n,shortName:"pmint"},{chainId:2021n,shortName:"edg"},{chainId:2221n,shortName:"tkava"},{chainId:2222n,shortName:"kava"},{chainId:3737n,shortName:"csb"},{chainId:4002n,shortName:"tftm"},{chainId:4460n,shortName:"orderlyl2"},{chainId:4689n,shortName:"iotex-mainnet"},{chainId:4918n,shortName:"txvm"},{chainId:4919n,shortName:"xvm"},{chainId:5000n,shortName:"mantle"},{chainId:5001n,shortName:"mantle-testnet"},{chainId:5700n,shortName:"tsys"},{chainId:6102n,shortName:"cascadia"},{chainId:7001n,shortName:"zetachain-athens"},{chainId:7341n,shortName:"shyft"},{chainId:7700n,shortName:"canto"},{chainId:8217n,shortName:"cypress"},{chainId:8453n,shortName:"base"},{chainId:9000n,shortName:"evmos-testnet"},{chainId:9001n,shortName:"evmos"},{chainId:9728n,shortName:"boba-testnet"},{chainId:10000n,shortName:"smartbch"},{chainId:10001n,shortName:"smartbchtest"},{chainId:10081n,shortName:"joct"},{chainId:10200n,shortName:"chi"},{chainId:11235n,shortName:"islm"},{chainId:11437n,shortName:"shyftt"},{chainId:11891n,shortName:"Arianee"},{chainId:12357n,shortName:"rei-testnet"},{chainId:17000n,shortName:"holesky"},{chainId:23294n,shortName:"sapphire"},{chainId:23295n,shortName:"sapphire-testnet"},{chainId:42161n,shortName:"arb1"},{chainId:42170n,shortName:"arb-nova"},{chainId:42220n,shortName:"celo"},{chainId:43113n,shortName:"fuji"},{chainId:43114n,shortName:"avax"},{chainId:43288n,shortName:"boba-avax"},{chainId:44787n,shortName:"alfa"},{chainId:45000n,shortName:"autobahnnetwork"},{chainId:47805n,shortName:"rei"},{chainId:54211n,shortName:"islmt"},{chainId:56288n,shortName:"boba-bnb"},{chainId:57000n,shortName:"tsys-rollux"},{chainId:59140n,shortName:"linea-testnet"},{chainId:59144n,shortName:"linea"},{chainId:71401n,shortName:"gw-testnet-v1"},{chainId:71402n,shortName:"gw-mainnet-v1"},{chainId:73799n,shortName:"vt"},{chainId:80001n,shortName:"maticmum"},{chainId:84531n,shortName:"base-gor"},{chainId:200101n,shortName:"milktada"},{chainId:200202n,shortName:"milktalgo"},{chainId:333999n,shortName:"olympus"},{chainId:421611n,shortName:"arb-rinkeby"},{chainId:421613n,shortName:"arb-goerli"},{chainId:421614n,shortName:"arb-sep"},{chainId:534351n,shortName:"scr-sepolia"},{chainId:534352n,shortName:"scr"},{chainId:534353n,shortName:"scr-alpha"},{chainId:622277n,shortName:"rth"},{chainId:7777777n,shortName:"zora"},{chainId:11155111n,shortName:"sep"},{chainId:245022926n,shortName:"neonevm-devnet"},{chainId:245022934n,shortName:"neonevm-mainnet"},{chainId:1313161554n,shortName:"aurora"},{chainId:1313161555n,shortName:"aurora-testnet"},{chainId:1666600000n,shortName:"hmy-s0"},{chainId:1666700000n,shortName:"hmy-b-s0"},{chainId:11297108099n,shortName:"tpalm"},{chainId:11297108109n,shortName:"palm"}],e.TEST_NETWORK==="hardhat"?t.networks.push({shortName:"local",chainId:31337n}):e.TEST_NETWORK==="ganache"&&t.networks.push({shortName:"local",chainId:1337n})})(xq);Object.defineProperty(Ba,"__esModule",{value:!0});Ba.validateEip3770Address=Ba.validateEthereumAddress=Ba.validateEip3770NetworkPrefix=Ba.isValidEip3770NetworkPrefix=Ba.getEip3770NetworkPrefixFromChainId=Ba.parseEip3770Address=void 0;const RI=gq,vq=xq;function wq(t){const e=t.split(":"),n=e.length>1?e[1]:e[0];return{prefix:e.length>1?e[0]:"",address:n}}Ba.parseEip3770Address=wq;function Eq(t){const e=vq.networks.find(n=>t===n.chainId);if(!e)throw new Error("No network prefix supported for the current chainId");return e.shortName}Ba.getEip3770NetworkPrefixFromChainId=Eq;function _q(t){return vq.networks.some(({shortName:e})=>e===t)}Ba.isValidEip3770NetworkPrefix=_q;function Aq(t,e){const n=t===Eq(e);if(!_q(t)||!n)throw new Error("The network prefix must match the current network")}Ba.validateEip3770NetworkPrefix=Aq;function Cq(t){if(!((0,RI.isHexStrict)(t)&&(0,RI.isAddress)(t)))throw new Error(`Invalid Ethereum address ${t}`)}Ba.validateEthereumAddress=Cq;function O4e(t,e){const{address:n,prefix:r}=wq(t);return Cq(n),r&&Aq(r,e),{address:n,prefix:r}}Ba.validateEip3770Address=O4e;var Sq={};(function(t){var e=de&&de.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateTypedData=t.getEip712MessageTypes=t.EIP712_DOMAIN=t.EIP712_DOMAIN_BEFORE_V130=void 0;const n=e(Xb),r=">=1.3.0";t.EIP712_DOMAIN_BEFORE_V130=[{type:"address",name:"verifyingContract"}],t.EIP712_DOMAIN=[{type:"uint256",name:"chainId"},{type:"address",name:"verifyingContract"}];function a(s){return{EIP712Domain:(0,n.default)(s,r)?t.EIP712_DOMAIN:t.EIP712_DOMAIN_BEFORE_V130,SafeTx:[{type:"address",name:"to"},{type:"uint256",name:"value"},{type:"bytes",name:"data"},{type:"uint8",name:"operation"},{type:"uint256",name:"safeTxGas"},{type:"uint256",name:"baseGas"},{type:"uint256",name:"gasPrice"},{type:"address",name:"gasToken"},{type:"address",name:"refundReceiver"},{type:"uint256",name:"nonce"}]}}t.getEip712MessageTypes=a;function i({safeAddress:s,safeVersion:o,chainId:c,safeTransactionData:h}){const b=(0,n.default)(o,r),v={types:a(o),domain:{verifyingContract:s},primaryType:"SafeTx",message:{...h,value:h.value,safeTxGas:h.safeTxGas,baseGas:h.baseGas,gasPrice:h.gasPrice,nonce:h.nonce}};return b&&(v.domain.chainId=c.toString()),v}t.generateTypedData=i})(Sq);var Tq={};(function(t){var e=de&&de.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0}),t.hasSafeFeature=t.SAFE_FEATURES=void 0;const n=e(Xb);var r;(function(s){s.SAFE_TX_GAS_OPTIONAL="SAFE_TX_GAS_OPTIONAL",s.SAFE_TX_GUARDS="SAFE_TX_GUARDS",s.SAFE_FALLBACK_HANDLER="SAFE_FALLBACK_HANDLER",s.ETH_SIGN="ETH_SIGN",s.ACCOUNT_ABSTRACTION="ACCOUNT_ABSTRACTION"})(r=t.SAFE_FEATURES||(t.SAFE_FEATURES={}));const a={[r.SAFE_TX_GAS_OPTIONAL]:">=1.3.0",[r.SAFE_TX_GUARDS]:">=1.3.0",[r.SAFE_FALLBACK_HANDLER]:">=1.1.1",[r.ETH_SIGN]:">=1.1.0",[r.ACCOUNT_ABSTRACTION]:">=1.3.0"},i=(s,o)=>s in a?(0,n.default)(o,a[s]):!1;t.hasSafeFeature=i})(Tq);var Bq={},r2={};Object.defineProperty(r2,"__esModule",{value:!0});r2.EthSafeSignature=void 0;class P4e{constructor(e,n){this.signer=e,this.data=n}staticPart(){return this.data}dynamicPart(){return""}}r2.EthSafeSignature=P4e;var FS={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.generateEIP712Signature=t.generateSignature=t.adjustVInSignature=t.isTxHashSignedWithPrefix=t.generatePreValidatedSignature=void 0;const e=TC,n=Bs,r=r2;function a(h){const b="0x000000000000000000000000"+h.slice(2)+"000000000000000000000000000000000000000000000000000000000000000001";return new r.EthSafeSignature(h,b)}t.generatePreValidatedSignature=a;function i(h,b,v){let E;try{const C={r:Buffer.from(b.slice(2,66),"hex"),s:Buffer.from(b.slice(66,130),"hex"),v:parseInt(b.slice(130,132),16)},M=(0,e.ecrecover)(Buffer.from(h.slice(2),"hex"),C.v,C.r,C.s),T=(0,e.bufferToHex)((0,e.pubToAddress)(M));E=!(0,n.sameString)(T,v)}catch{E=!0}return E}t.isTxHashSignedWithPrefix=i;const s=(h,b,v,E)=>{const C=[0,1,27,28],M=27;let T=parseInt(b.slice(-2),16);if(!C.includes(T))throw new Error("Invalid signature");if(h==="eth_sign"){Tr==="0x"?n+0:r==="00"?n+L4e:n+uE,0)}async function q4e(t,e,n,r,a,i,s,o){const c=await n.getChainId(),h=await(0,$m.getSimulateTxAccessorContract)({ethAdapter:n,safeVersion:t,customContracts:o==null?void 0:o[c.toString()]}),b=h.encode("simulate",[r,a,i,s]),v=e.encode("simulateAndRevert",[await h.getAddress(),b]),E=await e.getAddress(),C={to:E,value:"0",data:v,from:E};try{const M=await n.call(C);return Zy(M)}catch(M){return Fq(M)}}ei.estimateGas=q4e;async function W4e(t,e,n,r,a,i){let s=0;const o=await t.getAddress(),c=t.encode("requiredTxGas",[n,r,a,i]);try{s=+("0x"+(await e.estimateGas({to:o,from:o,data:c})).substring(138))+1e4}catch{}if(s>0){const h=Mq(c);let b=1e4;for(let v=0;v<10;v++){try{if(await e.call({to:o,from:o,data:c,gasPrice:"0",gasLimit:(s+h+b).toString()})!=="0x")break}catch{}s=s+b,b*=2}return(s+b).toString()}try{return await e.estimateGas({to:n,from:o,value:r,data:a})}catch(h){return i===N4e.OperationType.DelegateCall?"0":Promise.reject(h)}}ei.estimateTxGas=W4e;async function K4e(t,e){var p;const n=e.data,{to:r,value:a,data:i,operation:s,safeTxGas:o,gasToken:c,refundReceiver:h}=n,b=await t.getThreshold(),v=await t.getNonce(),E=b*V4e,C=o||0,M=0,T=1,P=c||lE.ZERO_ADDRESS,D=h||lE.ZERO_ADDRESS,F="0x",O=await t.getContractVersion(),k=t.getEthAdapter(),U=t.getContractManager().isL1SafeSingleton,J=await t.getChainId(),Y=(p=t.getContractManager().contractNetworks)==null?void 0:p[J.toString()],X=(await(0,$m.getSafeContract)({ethAdapter:k,safeVersion:O,isL1SafeSingleton:U,customContracts:Y})).encode("execTransaction",[r,a,i,s,C,M,T,P,D,F]),u=v!==0?j4e:U4e;let d=E+Mq(X)+u+H4e;return d>65536?d+=64:d+=128,d+=G4e,d.toString()}ei.estimateTxBaseGas=K4e;async function Z4e(t,e){const n=await t.getContractVersion();if((0,$4e.default)(n,">=1.3.0")){const a=await J4e(t,e);return NI(a)}const r=await Q4e(t,e);return NI(r)}ei.estimateSafeTxGas=Z4e;function NI(t){return Math.round(Number(t)*1.05).toString()}async function Q4e(t,e){var C,M,T;const n=await t.isSafeDeployed(),r=await t.getAddress(),a=await t.getContractVersion(),i=t.getEthAdapter(),s=t.getContractManager().isL1SafeSingleton,o=await t.getChainId(),c=(C=t.getContractManager().contractNetworks)==null?void 0:C[o.toString()],h=await(0,$m.getSafeContract)({ethAdapter:i,safeVersion:a,isL1SafeSingleton:s,customContracts:c}),b=h.encode("requiredTxGas",[e.data.to,e.data.value,e.data.data,e.data.operation]),E={to:n?r:await h.getAddress(),value:"0",data:b,from:r};try{return"0x"+(await i.call(E)).slice(-32)}catch(P){try{const D=(T=(M=P==null?void 0:P.info)==null?void 0:M.error)==null?void 0:T.data;if(D&&D.startsWith("Reverted ")){const[,F]=D.split("Reverted ");return Number(F).toString()}}catch{return"0"}}return"0"}function Zy(t){const[,e]=t.split("0x");return(+("0x"+("0x"+e).slice(184).slice(0,10))).toString()}function Fq(t){var a,i,s;const e=t==null?void 0:t.data;if(e)return Zy(e);const n=(i=(a=t==null?void 0:t.info)==null?void 0:a.error)==null?void 0:i.data;if(n){const c=typeof n=="string"?n:n.data;return Zy(c)}if((s=t==null?void 0:t.message)==null?void 0:s.includes("0x"))return Zy(t==null?void 0:t.message);throw new Error("Could not parse SafeTxGas from Estimation response, Details: "+(t==null?void 0:t.message))}async function J4e(t,e){var T;const n=await t.isSafeDeployed(),r=await t.getAddress(),a=await t.getContractVersion(),i=t.getEthAdapter(),s=await t.getChainId(),o=(T=t.getContractManager().contractNetworks)==null?void 0:T[s.toString()],c=t.getContractManager().isL1SafeSingleton,h=await(0,$m.getSafeContract)({ethAdapter:i,safeVersion:a,isL1SafeSingleton:c,customContracts:o}),b=await(0,$m.getSimulateTxAccessorContract)({ethAdapter:i,safeVersion:a,customContracts:o}),v=b.encode("simulate",[e.data.to,e.data.value,e.data.data,e.data.operation]),E=n?r:await h.getAddress(),C=h.encode("simulateAndRevert",[await b.getAddress(),v]),M={to:E,value:"0",data:C,from:r};try{const P=await i.call(M);return Zy(P)}catch(P){return Fq(P)}return"0"}async function X4e(t){if(await t.isSafeDeployed())return"0";const n=t.getEthAdapter(),r=await t.createSafeDeploymentTransaction();return await n.estimateGas({...r,from:lE.ZERO_ADDRESS})}ei.estimateSafeDeploymentGas=X4e;var wv={};Object.defineProperty(wv,"__esModule",{value:!0});class Y4e{constructor(e){this.signatures=new Map,this.data=e}addSignature(e){this.signatures.set(e.signer.toLowerCase(),e)}encodedSignatures(){const e=Array.from(this.signatures.keys()).sort();e.length*65;let n="",r="";return e.forEach(a=>{const i=this.signatures.get(a);n+=i==null?void 0:i.staticPart().slice(2),r+=i==null?void 0:i.dynamicPart()}),"0x"+n+r}}wv.default=Y4e;var Dq={};Object.defineProperty(Dq,"__esModule",{value:!0});var Ua={},$I;function DS(){if($I)return Ua;$I=1;var t=de&&de.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.isSafeMultisigTransactionResponse=Ua.decodeMultiSendData=Ua.encodeMultiSendData=Ua.standardizeSafeTransactionData=Ua.standardizeMetaTransactionData=void 0;const e=yn,n=na,r=Td(),a=ra,i=p8,s=t(Xb),o=gq,c=ei;function h(T){return{...T,operation:T.operation??i.OperationType.Call}}Ua.standardizeMetaTransactionData=h;async function b({safeContract:T,predictedSafe:P,ethAdapter:D,tx:F,contractNetworks:O}){var L;const k={to:F.to,value:F.value,data:F.data,operation:F.operation??i.OperationType.Call,baseGas:F.baseGas??"0",gasPrice:F.gasPrice??"0",gasToken:F.gasToken||a.ZERO_ADDRESS,refundReceiver:F.refundReceiver||a.ZERO_ADDRESS,nonce:F.nonce??(T?await T.getNonce():0)};if(typeof F.safeTxGas<"u")return{...k,safeTxGas:F.safeTxGas};let U;if(P)U=((L=P==null?void 0:P.safeDeploymentConfig)==null?void 0:L.safeVersion)||n.DEFAULT_SAFE_VERSION;else{if(!T)throw new Error("Safe is not deployed");U=await T.getVersion()}const J=(0,r.hasSafeFeature)(r.SAFE_FEATURES.SAFE_TX_GAS_OPTIONAL,U);if(J&&k.gasPrice==="0"||J&&P)return{...k,safeTxGas:"0"};if(!T)throw new Error("Safe is not deployed");let Y;return(0,s.default)(U,">=1.3.0")?Y=await(0,c.estimateGas)(U,T,D,k.to,k.value,k.data,k.operation,O):Y=await(0,c.estimateTxGas)(T,D,k.to,k.value,k.data,k.operation),{...k,safeTxGas:Y}}Ua.standardizeSafeTransactionData=b;function v(T){const P=(0,e.getBytes)(T.data);return(0,e.solidityPacked)(["uint8","address","uint256","uint256","bytes"],[T.operation,T.to,T.value,P.length,P]).slice(2)}function E(T){return"0x"+T.map(P=>v(P)).join("")}Ua.encodeMultiSendData=E;function C(T){const P=new e.Interface(["function multiSend(bytes memory transactions) public payable"]),[D]=P.decodeFunctionData("multiSend",T),F=[];let O=2;for(;O(0,F9.sameString)(i,e))>=0)throw new Error("Module provided is already enabled")}validateModuleIsEnabled(e,n){const r=n.findIndex(i=>(0,F9.sameString)(i,e));if(!(r>=0))throw new Error("Module provided is not enabled yet");return r}async getModules(){if(!Lo(this,is,"f"))throw new Error("Safe is not deployed");return Lo(this,is,"f").getModules()}async isModuleEnabled(e){if(!Lo(this,is,"f"))throw new Error("Safe is not deployed");return Lo(this,is,"f").isModuleEnabled(e)}async encodeEnableModuleData(e){if(!Lo(this,is,"f"))throw new Error("Safe is not deployed");this.validateModuleAddress(e);const n=await this.getModules();return this.validateModuleIsNotEnabled(e,n),Lo(this,is,"f").encode("enableModule",[e])}async encodeDisableModuleData(e){if(!Lo(this,is,"f"))throw new Error("Safe is not deployed");this.validateModuleAddress(e);const n=await this.getModules(),r=this.validateModuleIsEnabled(e,n),a=r===0?i5e.SENTINEL_ADDRESS:n[r-1];return Lo(this,is,"f").encode("disableModule",[a,e])}}mg=new WeakMap,is=new WeakMap;IS.default=s5e;var OS={},GI=de&&de.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},ca=de&&de.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},bg,Br;Object.defineProperty(OS,"__esModule",{value:!0});const D9=Bs,VI=ra;class o5e{constructor(e,n){bg.set(this,void 0),Br.set(this,void 0),GI(this,bg,e,"f"),GI(this,Br,n,"f")}validateOwnerAddress(e,n){if(!ca(this,bg,"f").isAddress(e)||(0,D9.isRestrictedAddress)(e))throw new Error(n||"Invalid owner address provided")}validateThreshold(e,n){if(e<=0)throw new Error("Threshold needs to be greater than 0");if(e>n)throw new Error("Threshold cannot exceed owner count")}validateAddressIsNotOwner(e,n,r){if(n.findIndex(s=>(0,D9.sameString)(s,e))>=0)throw new Error(r||"Address provided is already an owner")}validateAddressIsOwner(e,n,r){const a=n.findIndex(s=>(0,D9.sameString)(s,e));if(!(a>=0))throw new Error(r||"Address provided is not an owner");return a}async getOwners(){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");return[...await ca(this,Br,"f").getOwners()]}async getThreshold(){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");return ca(this,Br,"f").getThreshold()}async isOwner(e){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");return ca(this,Br,"f").isOwner(e)}async encodeAddOwnerWithThresholdData(e,n){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");this.validateOwnerAddress(e);const r=await this.getOwners();this.validateAddressIsNotOwner(e,r);const a=n??await this.getThreshold();return this.validateThreshold(a,r.length+1),ca(this,Br,"f").encode("addOwnerWithThreshold",[e,a])}async encodeRemoveOwnerData(e,n){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");this.validateOwnerAddress(e);const r=await this.getOwners(),a=this.validateAddressIsOwner(e,r),i=n??await this.getThreshold()-1;this.validateThreshold(i,r.length-1);const s=a===0?VI.SENTINEL_ADDRESS:r[a-1];return ca(this,Br,"f").encode("removeOwner",[s,e,i])}async encodeSwapOwnerData(e,n){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");this.validateOwnerAddress(n,"Invalid new owner address provided"),this.validateOwnerAddress(e,"Invalid old owner address provided");const r=await this.getOwners();this.validateAddressIsNotOwner(n,r,"New address provided is already an owner");const a=this.validateAddressIsOwner(e,r,"Old address provided is not an owner"),i=a===0?VI.SENTINEL_ADDRESS:r[a-1];return ca(this,Br,"f").encode("swapOwner",[i,e,n])}async encodeChangeThresholdData(e){if(!ca(this,Br,"f"))throw new Error("Safe is not deployed");const n=await this.getOwners();return this.validateThreshold(e,n.length),ca(this,Br,"f").encode("changeThreshold",[e])}}bg=new WeakMap,Br=new WeakMap;OS.default=o5e;var ol=de&&de.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},je=de&&de.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},d1=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},Pn,Gt,wt,Ks,Gu,f0,d0;Object.defineProperty(h8,"__esModule",{value:!0});const k9=p8,I9=y8,c5e=na,qI=d1(av),l5e=d1(cS),u5e=d1(kS),f5e=d1(IS),d5e=d1(OS),ja=Td(),Yd=FS,WI=d1(wv),ty=DS(),h5e=Yb,f3=Ct;let p5e=class h0{constructor(){Pn.set(this,void 0),Gt.set(this,void 0),wt.set(this,void 0),Ks.set(this,void 0),Gu.set(this,void 0),f0.set(this,void 0),d0.set(this,void 0)}static async create(e){const n=new h0;return await n.init(e),n}async init(e){const{ethAdapter:n,isL1SafeSingleton:r,contractNetworks:a}=e;ol(this,Gt,n,"f"),(0,h5e.isSafeConfigWithPredictedSafe)(e)?(ol(this,Pn,e.predictedSafe,"f"),ol(this,wt,await qI.default.create({ethAdapter:je(this,Gt,"f"),predictedSafe:je(this,Pn,"f"),isL1SafeSingleton:r,contractNetworks:a}),"f")):ol(this,wt,await qI.default.create({ethAdapter:je(this,Gt,"f"),safeAddress:e.safeAddress,isL1SafeSingleton:r,contractNetworks:a}),"f"),ol(this,Ks,new d5e.default(je(this,Gt,"f"),je(this,wt,"f").safeContract),"f"),ol(this,Gu,new f5e.default(je(this,Gt,"f"),je(this,wt,"f").safeContract),"f"),ol(this,f0,new u5e.default(je(this,Gt,"f"),je(this,wt,"f").safeContract),"f"),ol(this,d0,new l5e.default(je(this,Gt,"f"),je(this,wt,"f").safeContract),"f")}async connect(e){const{ethAdapter:n,safeAddress:r,predictedSafe:a,isL1SafeSingleton:i,contractNetworks:s}=e,o={ethAdapter:n||je(this,Gt,"f"),isL1SafeSingleton:i||je(this,wt,"f").isL1SafeSingleton,contractNetworks:s||je(this,wt,"f").contractNetworks};return r?await h0.create({safeAddress:r,...o}):a?await h0.create({predictedSafe:a,...o}):je(this,Pn,"f")?await h0.create({predictedSafe:je(this,Pn,"f"),...o}):await h0.create({safeAddress:await this.getAddress(),...o})}async getAddress(){var e;if(je(this,Pn,"f")){const n=await this.getContractVersion();if(!(0,ja.hasSafeFeature)(ja.SAFE_FEATURES.ACCOUNT_ABSTRACTION,n))throw new Error("Account Abstraction functionality is not available for Safes with version lower than v1.3.0");const r=await je(this,Gt,"f").getChainId();return(0,I9.predictSafeAddress)({ethAdapter:je(this,Gt,"f"),customContracts:(e=je(this,wt,"f").contractNetworks)==null?void 0:e[r.toString()],...je(this,Pn,"f")})}if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");return await je(this,wt,"f").safeContract.getAddress()}getContractManager(){return je(this,wt,"f")}getEthAdapter(){return je(this,Gt,"f")}async getMultiSendAddress(){return await je(this,wt,"f").multiSendContract.getAddress()}async getMultiSendCallOnlyAddress(){return await je(this,wt,"f").multiSendCallOnlyContract.getAddress()}async isSafeDeployed(){const e=await this.getAddress();return await je(this,Gt,"f").isContractDeployed(e)}async getContractVersion(){var e,n;return je(this,wt,"f").safeContract?je(this,wt,"f").safeContract.getVersion():(n=(e=je(this,Pn,"f"))==null?void 0:e.safeDeploymentConfig)!=null&&n.safeVersion?Promise.resolve(je(this,Pn,"f").safeDeploymentConfig.safeVersion):Promise.resolve(c5e.DEFAULT_SAFE_VERSION)}async getOwners(){var e;return(e=je(this,Pn,"f"))!=null&&e.safeAccountConfig.owners?Promise.resolve(je(this,Pn,"f").safeAccountConfig.owners):je(this,Ks,"f").getOwners()}async getNonce(){return je(this,wt,"f").safeContract?je(this,wt,"f").safeContract.getNonce():Promise.resolve(0)}async getThreshold(){var e;return(e=je(this,Pn,"f"))!=null&&e.safeAccountConfig.threshold?Promise.resolve(je(this,Pn,"f").safeAccountConfig.threshold):je(this,Ks,"f").getThreshold()}async getChainId(){return je(this,Gt,"f").getChainId()}async getBalance(){return je(this,Gt,"f").getBalance(await this.getAddress())}getFallbackHandler(){return je(this,d0,"f").getFallbackHandler()}async getGuard(){return je(this,f0,"f").getGuard()}async getModules(){return je(this,Gu,"f").getModules()}async isModuleEnabled(e){return je(this,Gu,"f").isModuleEnabled(e)}async isOwner(e){var n,r;return(n=je(this,Pn,"f"))!=null&&n.safeAccountConfig.owners?Promise.resolve((r=je(this,Pn,"f"))==null?void 0:r.safeAccountConfig.owners.some(a=>(0,ja.sameString)(a,e))):je(this,Ks,"f").isOwner(e)}async createTransaction({transactions:e,onlyCalls:n=!1,options:r}){const a=await this.getContractVersion();if(je(this,Pn,"f")&&!(0,ja.hasSafeFeature)(ja.SAFE_FEATURES.ACCOUNT_ABSTRACTION,a))throw new Error("Account Abstraction functionality is not available for Safes with version lower than v1.3.0");if(e.length===0)throw new Error("Invalid empty array of transactions");let i;if(e.length>1){const s=n?je(this,wt,"f").multiSendCallOnlyContract:je(this,wt,"f").multiSendContract,o=(0,ty.encodeMultiSendData)(e.map(ty.standardizeMetaTransactionData));i={...r,to:await s.getAddress(),value:"0",data:s.encode("multiSend",[o]),operation:k9.OperationType.DelegateCall}}else i={...r,...e[0]};if(je(this,Pn,"f"))return new WI.default(await(0,ty.standardizeSafeTransactionData)({predictedSafe:je(this,Pn,"f"),ethAdapter:je(this,Gt,"f"),tx:i,contractNetworks:je(this,wt,"f").contractNetworks}));if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");return new WI.default(await(0,ty.standardizeSafeTransactionData)({safeContract:je(this,wt,"f").safeContract,ethAdapter:je(this,Gt,"f"),tx:i,contractNetworks:je(this,wt,"f").contractNetworks}))}async createRejectionTransaction(e){const n={to:await this.getAddress(),value:"0",data:"0x"},r={nonce:e,safeTxGas:"0"};return this.createTransaction({transactions:[n],options:r})}async copyTransaction(e){const{to:n,value:r,data:a,operation:i,...s}=e.data,o={to:n,value:r,data:a,operation:i},c=await this.createTransaction({transactions:[o],options:s});return e.signatures.forEach(h=>{c.addSignature(h)}),c}async getTransactionHash(e){if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const n=e.data;return await je(this,wt,"f").safeContract.getTransactionHash(n)}async signTransactionHash(e){return(0,Yd.generateSignature)(je(this,Gt,"f"),e)}async signTypedData(e,n){const r={safeAddress:await this.getAddress(),safeVersion:await this.getContractVersion(),chainId:await this.getEthAdapter().getChainId(),safeTransactionData:e.data};return(0,Yd.generateEIP712Signature)(je(this,Gt,"f"),r,n)}async signTransaction(e,n="eth_signTypedData_v4"){const r=(0,ja.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.getOwners(),i=await je(this,Gt,"f").getSignerAddress();if(!i)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!a.some(h=>i&&(0,ja.sameString)(h,i)))throw new Error("Transactions can only be signed by Safe owners");let o;if(n==="eth_signTypedData_v4")o=await this.signTypedData(r,"v4");else if(n==="eth_signTypedData_v3")o=await this.signTypedData(r,"v3");else if(n==="eth_signTypedData")o=await this.signTypedData(r);else{const h=await this.getContractVersion();if(!(0,ja.hasSafeFeature)(ja.SAFE_FEATURES.ETH_SIGN,h))throw new Error("eth_sign is only supported by Safes >= v1.1.0");const b=await this.getTransactionHash(r);o=await this.signTransactionHash(b)}const c=await this.copyTransaction(r);return c.addSignature(o),c}async approveTransactionHash(e,n){if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const r=await this.getOwners(),a=await je(this,Gt,"f").getSignerAddress();if(!a)throw new Error("EthAdapter must be initialized with a signer to use this method");if(!r.some(s=>a&&(0,ja.sameString)(s,a)))throw new Error("Transaction hashes can only be approved by Safe owners");if(n!=null&&n.gas&&(n!=null&&n.gasLimit))throw new Error("Cannot specify gas and gasLimit together in transaction options");return je(this,wt,"f").safeContract.approveHash(e,{from:a,...n})}async getOwnersWhoApprovedTx(e){if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const n=await this.getOwners(),r=[];for(const a of n)await je(this,wt,"f").safeContract.approvedHashes(a,e)>0&&r.push(a);return r}async createEnableFallbackHandlerTx(e,n){const r={to:await this.getAddress(),value:"0",data:await je(this,d0,"f").encodeEnableFallbackHandlerData(e)};return await this.createTransaction({transactions:[r],options:n})}async createDisableFallbackHandlerTx(e){const n={to:await this.getAddress(),value:"0",data:await je(this,d0,"f").encodeDisableFallbackHandlerData()};return await this.createTransaction({transactions:[n],options:e})}async createEnableGuardTx(e,n){const r={to:await this.getAddress(),value:"0",data:await je(this,f0,"f").encodeEnableGuardData(e)};return await this.createTransaction({transactions:[r],options:n})}async createDisableGuardTx(e){const n={to:await this.getAddress(),value:"0",data:await je(this,f0,"f").encodeDisableGuardData()};return await this.createTransaction({transactions:[n],options:e})}async createEnableModuleTx(e,n){const r={to:await this.getAddress(),value:"0",data:await je(this,Gu,"f").encodeEnableModuleData(e)};return await this.createTransaction({transactions:[r],options:n})}async createDisableModuleTx(e,n){const r={to:await this.getAddress(),value:"0",data:await je(this,Gu,"f").encodeDisableModuleData(e)};return await this.createTransaction({transactions:[r],options:n})}async createAddOwnerTx({ownerAddress:e,threshold:n},r){const a={to:await this.getAddress(),value:"0",data:await je(this,Ks,"f").encodeAddOwnerWithThresholdData(e,n)};return await this.createTransaction({transactions:[a],options:r})}async createRemoveOwnerTx({ownerAddress:e,threshold:n},r){const a={to:await this.getAddress(),value:"0",data:await je(this,Ks,"f").encodeRemoveOwnerData(e,n)};return await this.createTransaction({transactions:[a],options:r})}async createSwapOwnerTx({oldOwnerAddress:e,newOwnerAddress:n},r){const a={to:await this.getAddress(),value:"0",data:await je(this,Ks,"f").encodeSwapOwnerData(e,n)};return await this.createTransaction({transactions:[a],options:r})}async createChangeThresholdTx(e,n){const r={to:await this.getAddress(),value:"0",data:await je(this,Ks,"f").encodeChangeThresholdData(e)};return await this.createTransaction({transactions:[r],options:n})}async toSafeTransactionType(e){var i;const n={to:e.to,value:e.value,data:e.data||"0x",operation:e.operation},r={safeTxGas:e.safeTxGas.toString(),baseGas:e.baseGas.toString(),gasPrice:e.gasPrice,gasToken:e.gasToken,refundReceiver:e.refundReceiver,nonce:e.nonce},a=await this.createTransaction({transactions:[n],options:r});return(i=e.confirmations)==null||i.map(s=>{const o=new ja.EthSafeSignature(s.owner,s.signature);a.addSignature(o)}),a}async isValidTransaction(e,n){if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const r=(0,ja.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.copyTransaction(r),i=await this.getTransactionHash(a),s=await this.getOwnersWhoApprovedTx(i);for(const b of s)a.addSignature((0,Yd.generatePreValidatedSignature)(b));const o=await this.getOwners(),c=await je(this,Gt,"f").getSignerAddress();if(!c)throw new Error("EthAdapter must be initialized with a signer to use this method");return o.includes(c)&&a.addSignature((0,Yd.generatePreValidatedSignature)(c)),await je(this,wt,"f").safeContract.isValidTransaction(a,{from:c,...n})}async executeTransaction(e,n){if(!je(this,wt,"f").safeContract)throw new Error("Safe is not deployed");const r=(0,ja.isSafeMultisigTransactionResponse)(e)?await this.toSafeTransactionType(e):e,a=await this.copyTransaction(r),i=await this.getTransactionHash(a),s=await this.getOwnersWhoApprovedTx(i);for(const E of s)a.addSignature((0,Yd.generatePreValidatedSignature)(E));const o=await this.getOwners(),c=await this.getThreshold(),h=await je(this,Gt,"f").getSignerAddress();if(c>a.signatures.size&&h&&o.includes(h)&&a.addSignature((0,Yd.generatePreValidatedSignature)(h)),c>a.signatures.size){const E=c-a.signatures.size;throw new Error(`There ${E>1?"are":"is"} ${E} signature${E>1?"s":""} missing`)}const b=BigInt(a.data.value);if(b!==0n){const E=await this.getBalance();if(b>E)throw new Error("Not enough Ether funds")}if(n!=null&&n.gas&&(n!=null&&n.gasLimit))throw new Error("Cannot specify gas and gasLimit together in transaction options");return await je(this,wt,"f").safeContract.execTransaction(a,{from:h,...n})}async getEncodedTransaction(e){var c;const n=await this.getContractVersion(),r=await this.getChainId(),a=(c=je(this,wt,"f").contractNetworks)==null?void 0:c[r.toString()],i=je(this,wt,"f").isL1SafeSingleton;return(await(0,f3.getSafeContract)({ethAdapter:je(this,Gt,"f"),safeVersion:n,isL1SafeSingleton:i,customContracts:a})).encode("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()])}async wrapSafeTransactionIntoDeploymentBatch(e,n,r){if(await this.isSafeDeployed())throw new Error("Safe already deployed");const i=await this.createSafeDeploymentTransaction(r),s={to:i.to,value:i.value,data:i.data,operation:k9.OperationType.Call},o={to:await this.getAddress(),value:"0",data:await this.getEncodedTransaction(e),operation:k9.OperationType.Call},c=[s,o];return await this.createTransactionBatch(c,n)}async createSafeDeploymentTransaction(e,n){var T;if(!je(this,Pn,"f"))throw new Error("Predict Safe should be present");const{safeAccountConfig:r,safeDeploymentConfig:a}=je(this,Pn,"f"),i=await this.getContractVersion(),s=je(this,Gt,"f"),o=await s.getChainId(),c=je(this,wt,"f").isL1SafeSingleton,h=(T=je(this,wt,"f").contractNetworks)==null?void 0:T[o.toString()],b=await(0,f3.getSafeContract)({ethAdapter:je(this,Gt,"f"),safeVersion:i,isL1SafeSingleton:c,customContracts:h}),v=await(0,f3.getProxyFactoryContract)({ethAdapter:s,safeVersion:i,customContracts:h}),E=await(0,I9.encodeSetupCallData)({ethAdapter:s,safeContract:b,safeAccountConfig:r,customContracts:h}),C=e||(a==null?void 0:a.saltNonce)||(0,I9.getChainSpecificDefaultSaltNonce)(o);return{...n,to:await v.getAddress(),value:"0",data:v.encode("createProxyWithNonce",[await b.getAddress(),E,C])}}async createTransactionBatch(e,n){var o;const r=await je(this,Gt,"f").getChainId(),a=await(0,f3.getMultiSendCallOnlyContract)({ethAdapter:je(this,Gt,"f"),safeVersion:await this.getContractVersion(),customContracts:(o=je(this,wt,"f").contractNetworks)==null?void 0:o[r.toString()]}),i=a.encode("multiSend",[(0,ty.encodeMultiSendData)(e)]);return{...n,to:await a.getAddress(),value:"0",data:i}}};Pn=new WeakMap,Gt=new WeakMap,wt=new WeakMap,Ks=new WeakMap,Gu=new WeakMap,f0=new WeakMap,d0=new WeakMap;h8.default=p5e;var Jr={},PS={},pr={},Ev={};Object.defineProperty(Ev,"__esModule",{value:!0});Ev.Gnosis_safe__factory=void 0;const KI=yn,hE=[{constant:!1,inputs:[{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"owner",type:"address"}],name:"isOwner",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"bytes32"}],name:"signedMessages",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_MODULES",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SENTINEL_OWNERS",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"NAME",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_MSG_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"SAFE_TX_TYPEHASH",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevModule",type:"address"},{name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"oldOwner",type:"address"},{name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"prevOwner",type:"address"},{name:"owner",type:"address"},{name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!1,name:"txHash",type:"bytes32"}],name:"ExecutionFailed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{constant:!1,inputs:[{name:"_owners",type:"address[]"},{name:"_threshold",type:"uint256"},{name:"to",type:"address"},{name:"data",type:"bytes"},{name:"paymentToken",type:"address"},{name:"payment",type:"uint256"},{name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"operation",type:"uint8"},{name:"safeTxGas",type:"uint256"},{name:"baseGas",type:"uint256"},{name:"gasPrice",type:"uint256"},{name:"gasToken",type:"address"},{name:"refundReceiver",type:"address"},{name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}];let kq=class{static createInterface(){return new KI.Interface(hE)}static connect(e,n){return new KI.Contract(e,hE,n)}};Ev.Gnosis_safe__factory=kq;kq.abi=hE;var _v={};Object.defineProperty(_v,"__esModule",{value:!0});_v.Proxy_factory__factory=void 0;const ZI=yn,pE=[{constant:!1,inputs:[{name:"_mastercopy",type:"address"},{name:"initializer",type:"bytes"},{name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{name:"masterCopy",type:"address"},{name:"data",type:"bytes"}],name:"createProxy",outputs:[{name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{anonymous:!1,inputs:[{indexed:!1,name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"}];let Iq=class{static createInterface(){return new ZI.Interface(pE)}static connect(e,n){return new ZI.Contract(e,pE,n)}};_v.Proxy_factory__factory=Iq;Iq.abi=pE;var Av={};Object.defineProperty(Av,"__esModule",{value:!0});Av.Gnosis_safe__factory=void 0;const QI=yn,yE=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}];let Oq=class{static createInterface(){return new QI.Interface(yE)}static connect(e,n){return new QI.Contract(e,yE,n)}};Av.Gnosis_safe__factory=Oq;Oq.abi=yE;var Cv={};Object.defineProperty(Cv,"__esModule",{value:!0});Cv.Multi_send__factory=void 0;const JI=yn,mE=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{constant:!1,inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}];let Pq=class{static createInterface(){return new JI.Interface(mE)}static connect(e,n){return new JI.Contract(e,mE,n)}};Cv.Multi_send__factory=Pq;Pq.abi=mE;var Sv={};Object.defineProperty(Sv,"__esModule",{value:!0});Sv.Proxy_factory__factory=void 0;const XI=yn,bE=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],name:"ProxyCreation",type:"event"},{constant:!1,inputs:[{internalType:"address",name:"masterCopy",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!0,inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"pure",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_mastercopy",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"}];let Rq=class{static createInterface(){return new XI.Interface(bE)}static connect(e,n){return new XI.Contract(e,bE,n)}};Sv.Proxy_factory__factory=Rq;Rq.abi=bE;var Tv={};Object.defineProperty(Tv,"__esModule",{value:!0});Tv.Gnosis_safe__factory=void 0;const YI=yn,gE=[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"masterCopy",type:"address"}],name:"ChangedMasterCopy",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"contract Module",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{payable:!0,stateMutability:"payable",type:"fallback"},{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_masterCopy",type:"address"}],name:"changeMasterCopy",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"prevModule",type:"address"},{internalType:"contract Module",name:"module",type:"address"}],name:"disableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"enableModule",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"contract Module",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],payable:!0,stateMutability:"payable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"}];let Nq=class{static createInterface(){return new YI.Interface(gE)}static connect(e,n){return new YI.Contract(e,gE,n)}};Tv.Gnosis_safe__factory=Nq;Nq.abi=gE;var Bv={};Object.defineProperty(Bv,"__esModule",{value:!0});Bv.Compatibility_fallback_handler__factory=void 0;const eO=yn,xE=[{inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract GnosisSafe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}];let $q=class{static createInterface(){return new eO.Interface(xE)}static connect(e,n){return new eO.Contract(e,xE,n)}};Bv.Compatibility_fallback_handler__factory=$q;$q.abi=xE;var Mv={};Object.defineProperty(Mv,"__esModule",{value:!0});Mv.Create_call__factory=void 0;const tO=yn,vE=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}];let Lq=class{static createInterface(){return new tO.Interface(vE)}static connect(e,n){return new tO.Contract(e,vE,n)}};Mv.Create_call__factory=Lq;Lq.abi=vE;var Fv={};Object.defineProperty(Fv,"__esModule",{value:!0});Fv.Gnosis_safe__factory=void 0;const nO=yn,wE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"requiredTxGas",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];class Uq{static createInterface(){return new nO.Interface(wE)}static connect(e,n){return new nO.Contract(e,wE,n)}}Fv.Gnosis_safe__factory=Uq;Uq.abi=wE;var Dv={};Object.defineProperty(Dv,"__esModule",{value:!0});Dv.Multi_send__factory=void 0;const rO=yn,EE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];let jq=class{static createInterface(){return new rO.Interface(EE)}static connect(e,n){return new rO.Contract(e,EE,n)}};Dv.Multi_send__factory=jq;jq.abi=EE;var kv={};Object.defineProperty(kv,"__esModule",{value:!0});kv.Multi_send_call_only__factory=void 0;const aO=yn,_E=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];let Hq=class{static createInterface(){return new aO.Interface(_E)}static connect(e,n){return new aO.Contract(e,_E,n)}};kv.Multi_send_call_only__factory=Hq;Hq.abi=_E;var Iv={};Object.defineProperty(Iv,"__esModule",{value:!0});Iv.Proxy_factory__factory=void 0;const iO=yn,AE=[{anonymous:!1,inputs:[{indexed:!1,internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"calculateCreateProxyWithNonceAddress",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"singleton",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"createProxy",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract GnosisSafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[],name:"proxyRuntimeCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}];class zq{static createInterface(){return new iO.Interface(AE)}static connect(e,n){return new iO.Contract(e,AE,n)}}Iv.Proxy_factory__factory=zq;zq.abi=AE;var Ov={};Object.defineProperty(Ov,"__esModule",{value:!0});Ov.Sign_message_lib__factory=void 0;const sO=yn,CE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}];let Gq=class{static createInterface(){return new sO.Interface(CE)}static connect(e,n){return new sO.Contract(e,CE,n)}};Ov.Sign_message_lib__factory=Gq;Gq.abi=CE;var Pv={};Object.defineProperty(Pv,"__esModule",{value:!0});Pv.Simulate_tx_accessor__factory=void 0;const oO=yn,SE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}];let Vq=class{static createInterface(){return new oO.Interface(SE)}static connect(e,n){return new oO.Contract(e,SE,n)}};Pv.Simulate_tx_accessor__factory=Vq;Vq.abi=SE;var Rv={};Object.defineProperty(Rv,"__esModule",{value:!0});Rv.Compatibility_fallback_handler__factory=void 0;const cO=yn,TE=[{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"encodeMessageDataForSafe",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract Safe",name:"safe",type:"address"},{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHashForSafe",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getModules",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_dataHash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],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:"pure",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:"pure",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:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulate",outputs:[{internalType:"bytes",name:"response",type:"bytes"}],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:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"},{internalType:"bytes",name:"",type:"bytes"}],name:"tokensReceived",outputs:[],stateMutability:"pure",type:"function"}];class qq{static createInterface(){return new cO.Interface(TE)}static connect(e,n){return new cO.Contract(e,TE,n)}}Rv.Compatibility_fallback_handler__factory=qq;qq.abi=TE;var Nv={};Object.defineProperty(Nv,"__esModule",{value:!0});Nv.Create_call__factory=void 0;const lO=yn,BE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newContract",type:"address"}],name:"ContractCreation",type:"event"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"}],name:"performCreate",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"deploymentData",type:"bytes"},{internalType:"bytes32",name:"salt",type:"bytes32"}],name:"performCreate2",outputs:[{internalType:"address",name:"newContract",type:"address"}],stateMutability:"nonpayable",type:"function"}];class Wq{static createInterface(){return new lO.Interface(BE)}static connect(e,n){return new lO.Contract(e,BE,n)}}Nv.Create_call__factory=Wq;Wq.abi=BE;var $v={};Object.defineProperty($v,"__esModule",{value:!0});$v.Multi_send__factory=void 0;const uO=yn,ME=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];class Kq{static createInterface(){return new uO.Interface(ME)}static connect(e,n){return new uO.Contract(e,ME,n)}}$v.Multi_send__factory=Kq;Kq.abi=ME;var Lv={};Object.defineProperty(Lv,"__esModule",{value:!0});Lv.Multi_send_call_only__factory=void 0;const fO=yn,FE=[{inputs:[{internalType:"bytes",name:"transactions",type:"bytes"}],name:"multiSend",outputs:[],stateMutability:"payable",type:"function"}];class Zq{static createInterface(){return new fO.Interface(FE)}static connect(e,n){return new fO.Contract(e,FE,n)}}Lv.Multi_send_call_only__factory=Zq;Zq.abi=FE;var Uv={};Object.defineProperty(Uv,"__esModule",{value:!0});Uv.Safe__factory=void 0;const dO=yn,DE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"AddedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"approvedHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"ApproveHash",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"handler",type:"address"}],name:"ChangedFallbackHandler",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"guard",type:"address"}],name:"ChangedGuard",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"}],name:"ChangedThreshold",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"DisabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"EnabledModule",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleFailure",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"module",type:"address"}],name:"ExecutionFromModuleSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"txHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"payment",type:"uint256"}],name:"ExecutionSuccess",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"}],name:"RemovedOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"SafeReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"initiator",type:"address"},{indexed:!1,internalType:"address[]",name:"owners",type:"address[]"},{indexed:!1,internalType:"uint256",name:"threshold",type:"uint256"},{indexed:!1,internalType:"address",name:"initializer",type:"address"},{indexed:!1,internalType:"address",name:"fallbackHandler",type:"address"}],name:"SafeSetup",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{stateMutability:"nonpayable",type:"fallback"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"addOwnerWithThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"hashToApprove",type:"bytes32"}],name:"approveHash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"bytes32",name:"",type:"bytes32"}],name:"approvedHashes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"changeThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"},{internalType:"uint256",name:"requiredSignatures",type:"uint256"}],name:"checkNSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataHash",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"checkSignatures",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevModule",type:"address"},{internalType:"address",name:"module",type:"address"}],name:"disableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"enableModule",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"encodeTransactionData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address payable",name:"refundReceiver",type:"address"},{internalType:"bytes",name:"signatures",type:"bytes"}],name:"execTransaction",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModule",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"execTransactionFromModuleReturnData",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"start",type:"address"},{internalType:"uint256",name:"pageSize",type:"uint256"}],name:"getModulesPaginated",outputs:[{internalType:"address[]",name:"array",type:"address[]"},{internalType:"address",name:"next",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOwners",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"offset",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"}],name:"getStorageAt",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"},{internalType:"uint256",name:"safeTxGas",type:"uint256"},{internalType:"uint256",name:"baseGas",type:"uint256"},{internalType:"uint256",name:"gasPrice",type:"uint256"},{internalType:"address",name:"gasToken",type:"address"},{internalType:"address",name:"refundReceiver",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"getTransactionHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"module",type:"address"}],name:"isModuleEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"isOwner",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"}],name:"removeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"handler",type:"address"}],name:"setFallbackHandler",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"guard",type:"address"}],name:"setGuard",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256",name:"_threshold",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"address",name:"fallbackHandler",type:"address"},{internalType:"address",name:"paymentToken",type:"address"},{internalType:"uint256",name:"payment",type:"uint256"},{internalType:"address payable",name:"paymentReceiver",type:"address"}],name:"setup",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"signedMessages",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"targetContract",type:"address"},{internalType:"bytes",name:"calldataPayload",type:"bytes"}],name:"simulateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"prevOwner",type:"address"},{internalType:"address",name:"oldOwner",type:"address"},{internalType:"address",name:"newOwner",type:"address"}],name:"swapOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];class Qq{static createInterface(){return new dO.Interface(DE)}static connect(e,n){return new dO.Contract(e,DE,n)}}Uv.Safe__factory=Qq;Qq.abi=DE;var jv={};Object.defineProperty(jv,"__esModule",{value:!0});jv.Safe_proxy_factory__factory=void 0;const hO=yn,kE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"contract SafeProxy",name:"proxy",type:"address"},{indexed:!1,internalType:"address",name:"singleton",type:"address"}],name:"ProxyCreation",type:"event"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createChainSpecificProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"},{internalType:"contract IProxyCreationCallback",name:"callback",type:"address"}],name:"createProxyWithCallback",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_singleton",type:"address"},{internalType:"bytes",name:"initializer",type:"bytes"},{internalType:"uint256",name:"saltNonce",type:"uint256"}],name:"createProxyWithNonce",outputs:[{internalType:"contract SafeProxy",name:"proxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxyCreationCode",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"pure",type:"function"}];class Jq{static createInterface(){return new hO.Interface(kE)}static connect(e,n){return new hO.Contract(e,kE,n)}}jv.Safe_proxy_factory__factory=Jq;Jq.abi=kE;var Hv={};Object.defineProperty(Hv,"__esModule",{value:!0});Hv.Sign_message_lib__factory=void 0;const pO=yn,IE=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"msgHash",type:"bytes32"}],name:"SignMsg",type:"event"},{inputs:[{internalType:"bytes",name:"message",type:"bytes"}],name:"getMessageHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"signMessage",outputs:[],stateMutability:"nonpayable",type:"function"}];class Xq{static createInterface(){return new pO.Interface(IE)}static connect(e,n){return new pO.Contract(e,IE,n)}}Hv.Sign_message_lib__factory=Xq;Xq.abi=IE;var zv={};Object.defineProperty(zv,"__esModule",{value:!0});zv.Simulate_tx_accessor__factory=void 0;const yO=yn,OE=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"enum Enum.Operation",name:"operation",type:"uint8"}],name:"simulate",outputs:[{internalType:"uint256",name:"estimate",type:"uint256"},{internalType:"bool",name:"success",type:"bool"},{internalType:"bytes",name:"returnData",type:"bytes"}],stateMutability:"nonpayable",type:"function"}];class Yq{static createInterface(){return new yO.Interface(OE)}static connect(e,n){return new yO.Contract(e,OE,n)}}zv.Simulate_tx_accessor__factory=Yq;Yq.abi=OE;var RS={},Gv={};Object.defineProperty(Gv,"__esModule",{value:!0});class y5e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}Gv.default=y5e;var m5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(RS,"__esModule",{value:!0});const b5e=m5e(Gv);class g5e extends b5e.default{constructor(e){super(e),this.contract=e}}RS.default=g5e;var NS={},x5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(NS,"__esModule",{value:!0});const v5e=x5e(Gv);class w5e extends v5e.default{constructor(e){super(e),this.contract=e}}NS.default=w5e;var $S={},a2={},vr={};Object.defineProperty(vr,"__esModule",{value:!0});vr.isSignerCompatible=vr.isTypedDataSigner=vr.toTxResult=vr.sameString=void 0;function E5e(t,e){return t.toLowerCase()===e.toLowerCase()}vr.sameString=E5e;function _5e(t,e){return{hash:t.hash,options:e,transactionResponse:t}}vr.toTxResult=_5e;function A5e(t){return t.signTypedData!==void 0}vr.isTypedDataSigner=A5e;function C5e(t){const e=t,n=typeof e.signTransaction=="function",r=typeof e.signMessage=="function",a=typeof e.getAddress=="function";return n&&r&&a}vr.isSignerCompatible=C5e;Object.defineProperty(a2,"__esModule",{value:!0});const mO=vr;class S5e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}async performCreate2(e,n,r,a){a&&!a.gasLimit&&(a.gasLimit=await this.estimateGas("performCreate2",[e,n,r],{...a}));const i=await this.contract.performCreate2(e,n,r);return(0,mO.toTxResult)(i,a)}async performCreate(e,n,r){r&&!r.gasLimit&&(r.gasLimit=await this.estimateGas("performCreate",[e,n],{...r}));const a=await this.contract.performCreate(e,n,{...r});return(0,mO.toTxResult)(a,r)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}a2.default=S5e;var T5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($S,"__esModule",{value:!0});const B5e=T5e(a2);class M5e extends B5e.default{constructor(e){super(e),this.contract=e}}$S.default=M5e;var LS={},F5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(LS,"__esModule",{value:!0});const D5e=F5e(a2);class k5e extends D5e.default{constructor(e){super(e),this.contract=e}}LS.default=k5e;var US={},h1={};Object.defineProperty(h1,"__esModule",{value:!0});class I5e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}h1.default=I5e;var O5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(US,"__esModule",{value:!0});const P5e=O5e(h1);class R5e extends P5e.default{constructor(e){super(e),this.contract=e}}US.default=R5e;var jS={},N5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jS,"__esModule",{value:!0});const $5e=N5e(h1);class L5e extends $5e.default{constructor(e){super(e),this.contract=e}}jS.default=L5e;var HS={},U5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(HS,"__esModule",{value:!0});const j5e=U5e(h1);class H5e extends j5e.default{constructor(e){super(e),this.contract=e}}HS.default=H5e;var zS={},i2={};Object.defineProperty(i2,"__esModule",{value:!0});class z5e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}i2.default=z5e;var G5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(zS,"__esModule",{value:!0});const V5e=G5e(i2);class q5e extends V5e.default{constructor(e){super(e),this.contract=e}}zS.default=q5e;var GS={},W5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(GS,"__esModule",{value:!0});const K5e=W5e(i2);class Z5e extends K5e.default{constructor(e){super(e),this.contract=e}}GS.default=Z5e;var VS={},Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});Vi.SENTINEL_ADDRESS=Vi.EMPTY_DATA=Vi.ZERO_ADDRESS=void 0;Vi.ZERO_ADDRESS=`0x${"0".repeat(40)}`;Vi.EMPTY_DATA="0x";Vi.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001";var Mu={};Object.defineProperty(Mu,"__esModule",{value:!0});const bO=vr;class Q5e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}async getVersion(){return await this.contract.VERSION()}getAddress(){return this.contract.getAddress()}async getNonce(){return Number(await this.contract.nonce())}async getThreshold(){return Number(await this.contract.getThreshold())}async getOwners(){return this.contract.getOwners()}async isOwner(e){return this.contract.isOwner(e)}async getTransactionHash(e){return this.contract.getTransactionHash(e.to,e.value,e.data,e.operation,e.safeTxGas,e.baseGas,e.gasPrice,e.gasToken,e.refundReceiver,e.nonce)}async approvedHashes(e,n){return this.contract.approvedHashes(e,n)}async approveHash(e,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("approveHash",[e],{...n}));const r=await this.contract.approveHash(e,{...n});return(0,bO.toTxResult)(r,n)}async isValidTransaction(e,n){let r=!1;try{n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n})),r=await this.contract.execTransaction.staticCall(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures(),{...n})}catch{}return r}async execTransaction(e,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n}));const r=await this.contract.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures(),{...n});return(0,bO.toTxResult)(r,n)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}Mu.default=Q5e;var J5e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(VS,"__esModule",{value:!0});const gO=vr,d3=Vi,X5e=J5e(Mu);class Y5e extends X5e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=d3.ZERO_ADDRESS,data:s=d3.EMPTY_DATA,paymentToken:o=d3.ZERO_ADDRESS,payment:c=0,paymentReceiver:h=d3.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h],{...n}));const b=await this.contract.setup(r,a,i,s,o,c,h,{...n});return(0,gO.toTxResult)(b,n)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,gO.sameString)(a,e))}}VS.default=Y5e;var qS={},e9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qS,"__esModule",{value:!0});const xO=vr,ny=Vi,t9e=e9e(Mu);class n9e extends t9e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=ny.ZERO_ADDRESS,data:s=ny.EMPTY_DATA,fallbackHandler:o=ny.ZERO_ADDRESS,paymentToken:c=ny.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=ny.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,xO.toTxResult)(v,n)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,xO.sameString)(a,e))}}qS.default=n9e;var WS={},r9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(WS,"__esModule",{value:!0});const a9e=vr,ry=Vi,i9e=r9e(Mu);class s9e extends i9e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=ry.ZERO_ADDRESS,data:s=ry.EMPTY_DATA,fallbackHandler:o=ry.ZERO_ADDRESS,paymentToken:c=ry.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=ry.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,a9e.toTxResult)(v,n)}async getModules(){return this.contract.getModules()}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}}WS.default=s9e;var KS={},o9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(KS,"__esModule",{value:!0});const c9e=vr,e0=Vi,l9e=o9e(Mu);class u9e extends l9e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=e0.ZERO_ADDRESS,data:s=e0.EMPTY_DATA,fallbackHandler:o=e0.ZERO_ADDRESS,paymentToken:c=e0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=e0.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,c9e.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.getModulesPaginated(e0.SENTINEL_ADDRESS,10);return e}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}}KS.default=u9e;var ZS={},f9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ZS,"__esModule",{value:!0});const d9e=vr,t0=Vi,h9e=f9e(Mu);class p9e extends h9e.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=t0.ZERO_ADDRESS,data:s=t0.EMPTY_DATA,fallbackHandler:o=t0.ZERO_ADDRESS,paymentToken:c=t0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=t0.ZERO_ADDRESS}=e;n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=await this.contract.setup(r,a,i,s,o,c,h,b,{...n});return(0,d9e.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.getModulesPaginated(t0.SENTINEL_ADDRESS,10);return e}async isModuleEnabled(e){return this.contract.isModuleEnabled(e)}}ZS.default=p9e;var QS={},Bd={};Object.defineProperty(Bd,"__esModule",{value:!0});class y9e{constructor(e){this.contract=e}getAddress(){return this.contract.getAddress()}async proxyCreationCode(){return this.contract.proxyCreationCode()}async createProxy({safeSingletonAddress:e,initializer:n,saltNonce:r,options:a,callback:i}){if(BigInt(r)<0)throw new Error("saltNonce must be greater than or equal to 0");return a&&!a.gasLimit&&(a.gasLimit=await this.estimateGas("createProxyWithNonce",[e,n,r],{...a})),this.contract.createProxyWithNonce(e,n,r,{...a}).then(async o=>{i&&i(o.hash);const c=await o.wait(),b=(c==null?void 0:c.logs).find(E=>(E==null?void 0:E.eventName)==="ProxyCreation");if(!b||!b.args)throw new Error("SafeProxy was not deployed correctly");return b.args[0]})}encode(e,n){return this.contract.interface.encodeFunctionData(e,n)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}Bd.default=y9e;var m9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(QS,"__esModule",{value:!0});const b9e=m9e(Bd);class g9e extends b9e.default{constructor(e){super(e),this.contract=e}}QS.default=g9e;var JS={},x9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(JS,"__esModule",{value:!0});const v9e=x9e(Bd);class w9e extends v9e.default{constructor(e){super(e),this.contract=e}}JS.default=w9e;var XS={},E9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(XS,"__esModule",{value:!0});const _9e=E9e(Bd);class A9e extends _9e.default{constructor(e){super(e),this.contract=e}}XS.default=A9e;var YS={},C9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(YS,"__esModule",{value:!0});const S9e=C9e(Bd);class T9e extends S9e.default{constructor(e){super(e),this.contract=e}}YS.default=T9e;var eT={},s2={};Object.defineProperty(s2,"__esModule",{value:!0});const B9e=vr;class M9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}async signMessage(e,n){n&&!n.gasLimit&&(n.gasLimit=await this.estimateGas("signMessage",[e],{...n}));const r=await this.contract.signMessage(e,{...n});return(0,B9e.toTxResult)(r,n)}async getMessageHash(e){return this.contract.getMessageHash(e)}async estimateGas(e,n,r){return(await this.contract.getFunction(e).estimateGas(...n,r)).toString()}}s2.default=M9e;var F9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(eT,"__esModule",{value:!0});const D9e=F9e(s2);class k9e extends D9e.default{constructor(e){super(e),this.contract=e}}eT.default=k9e;var tT={},I9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(tT,"__esModule",{value:!0});const O9e=I9e(s2);class P9e extends O9e.default{constructor(e){super(e),this.contract=e}}tT.default=P9e;var nT={},Vv={};Object.defineProperty(Vv,"__esModule",{value:!0});class R9e{constructor(e){this.contract=e,this.encode=(n,r)=>this.contract.interface.encodeFunctionData(n,r)}getAddress(){return this.contract.getAddress()}}Vv.default=R9e;var N9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(nT,"__esModule",{value:!0});const $9e=N9e(Vv);class L9e extends $9e.default{constructor(e){super(e),this.contract=e}}nT.default=L9e;var rT={},U9e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(rT,"__esModule",{value:!0});const j9e=U9e(Vv);class H9e extends j9e.default{constructor(e){super(e),this.contract=e}}rT.default=H9e;var kn=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pr,"__esModule",{value:!0});pr.getSimulateTxAccessorContractInstance=pr.getCreateCallContractInstance=pr.getSignMessageLibContractInstance=pr.getSafeProxyFactoryContractInstance=pr.getMultiSendCallOnlyContractInstance=pr.getMultiSendContractInstance=pr.getCompatibilityFallbackHandlerContractInstance=pr.getSafeContractInstance=void 0;const z9e=Ev,G9e=_v,V9e=Av,q9e=Cv,W9e=Sv,K9e=Tv,Z9e=Bv,Q9e=Mv,J9e=Fv,X9e=Dv,Y9e=kv,e7e=Iv,t7e=Ov,n7e=Pv,r7e=Rv,a7e=Nv,i7e=$v,s7e=Lv,o7e=Uv,c7e=jv,l7e=Hv,u7e=zv,f7e=kn(RS),d7e=kn(NS),h7e=kn($S),p7e=kn(LS),y7e=kn(US),m7e=kn(jS),b7e=kn(HS),g7e=kn(zS),x7e=kn(GS),v7e=kn(VS),w7e=kn(qS),E7e=kn(WS),_7e=kn(KS),A7e=kn(ZS),C7e=kn(QS),S7e=kn(JS),T7e=kn(XS),B7e=kn(YS),M7e=kn(eT),F7e=kn(tT),D7e=kn(nT),k7e=kn(rT);function I7e(t,e,n){let r;switch(t){case"1.4.1":return r=o7e.Safe__factory.connect(e,n),new A7e.default(r);case"1.3.0":return r=J9e.Gnosis_safe__factory.connect(e,n),new _7e.default(r);case"1.2.0":return r=K9e.Gnosis_safe__factory.connect(e,n),new E7e.default(r);case"1.1.1":return r=V9e.Gnosis_safe__factory.connect(e,n),new w7e.default(r);case"1.0.0":return r=z9e.Gnosis_safe__factory.connect(e,n),new v7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getSafeContractInstance=I7e;function O7e(t,e,n){let r;switch(t){case"1.4.1":return r=r7e.Compatibility_fallback_handler__factory.connect(e,n),new d7e.default(r);case"1.3.0":case"1.2.0":case"1.1.1":return r=Z9e.Compatibility_fallback_handler__factory.connect(e,n),new f7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getCompatibilityFallbackHandlerContractInstance=O7e;function P7e(t,e,n){let r;switch(t){case"1.4.1":return r=i7e.Multi_send__factory.connect(e,n),new b7e.default(r);case"1.3.0":return r=X9e.Multi_send__factory.connect(e,n),new m7e.default(r);case"1.2.0":case"1.1.1":case"1.0.0":return r=q9e.Multi_send__factory.connect(e,n),new y7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getMultiSendContractInstance=P7e;function R7e(t,e,n){let r;switch(t){case"1.4.1":return r=s7e.Multi_send_call_only__factory.connect(e,n),new x7e.default(r);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return r=Y9e.Multi_send_call_only__factory.connect(e,n),new g7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getMultiSendCallOnlyContractInstance=R7e;function N7e(t,e,n){let r;switch(t){case"1.4.1":return r=c7e.Safe_proxy_factory__factory.connect(e,n),new B7e.default(r);case"1.3.0":return r=e7e.Proxy_factory__factory.connect(e,n),new T7e.default(r);case"1.2.0":case"1.1.1":return r=W9e.Proxy_factory__factory.connect(e,n),new S7e.default(r);case"1.0.0":return r=G9e.Proxy_factory__factory.connect(e,n),new C7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getSafeProxyFactoryContractInstance=N7e;function $7e(t,e,n){let r;switch(t){case"1.4.1":return r=l7e.Sign_message_lib__factory.connect(e,n),new F7e.default(r);case"1.3.0":return r=t7e.Sign_message_lib__factory.connect(e,n),new M7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getSignMessageLibContractInstance=$7e;function L7e(t,e,n){let r;switch(t){case"1.4.1":return r=a7e.Create_call__factory.connect(e,n),new p7e.default(r);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return r=Q9e.Create_call__factory.connect(e,n),new h7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getCreateCallContractInstance=L7e;function U7e(t,e,n){let r;switch(t){case"1.4.1":return r=u7e.Simulate_tx_accessor__factory.connect(e,n),new k7e.default(r);case"1.3.0":return r=n7e.Simulate_tx_accessor__factory.connect(e,n),new D7e.default(r);default:throw new Error("Invalid Safe version")}}pr.getSimulateTxAccessorContractInstance=U7e;var h3=de&&de.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},St=de&&de.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},dl,lr,Sn;Object.defineProperty(PS,"__esModule",{value:!0});const vO=Td(),cl=pr,wO=vr;class j7e{constructor({ethers:e,signerOrProvider:n}){if(dl.set(this,void 0),lr.set(this,void 0),Sn.set(this,void 0),!e)throw new Error("ethers property missing from options");if(h3(this,dl,e,"f"),(0,wO.isSignerCompatible)(n)){const a=n;if(!a.provider)throw new Error("Signer must be connected to a provider");h3(this,Sn,a.provider,"f"),h3(this,lr,a,"f")}else h3(this,Sn,n,"f")}getProvider(){return St(this,Sn,"f")}getSigner(){return St(this,lr,"f")}isAddress(e){return St(this,dl,"f").isAddress(e)}async getEip3770Address(e){const n=await this.getChainId();return(0,vO.validateEip3770Address)(e,n)}async getBalance(e,n){return St(this,Sn,"f").getBalance(e,n)}async getNonce(e,n){return St(this,Sn,"f").getTransactionCount(e,n)}async getChainId(){return(await St(this,Sn,"f").getNetwork()).chainId}getChecksummedAddress(e){return St(this,dl,"f").getAddress(e)}async getSafeContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SafeProxy contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getSafeContractInstance)(e,i,s)}async getSafeProxyFactoryContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SafeProxyFactory contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getSafeProxyFactoryContractInstance)(e,i,s)}async getMultiSendContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid MultiSend contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getMultiSendContractInstance)(e,i,s)}async getMultiSendCallOnlyContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid MultiSendCallOnly contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getMultiSendCallOnlyContractInstance)(e,i,s)}async getCompatibilityFallbackHandlerContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid CompatibilityFallbackHandler contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getCompatibilityFallbackHandlerContractInstance)(e,i,s)}async getSignMessageLibContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SignMessageLib contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getSignMessageLibContractInstance)(e,i,s)}async getCreateCallContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid CreateCall contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getCreateCallContractInstance)(e,i,s)}async getSimulateTxAccessorContract({safeVersion:e,singletonDeployment:n,customContractAddress:r}){const a=await this.getChainId(),i=r??(n==null?void 0:n.networkAddresses[a.toString()]);if(!i)throw new Error("Invalid SimulateTxAccessor contract address");const s=St(this,lr,"f")||St(this,Sn,"f");return(0,cl.getSimulateTxAccessorContractInstance)(e,i,s)}async getContractCode(e,n){return St(this,Sn,"f").getCode(e,n)}async isContractDeployed(e,n){return await St(this,Sn,"f").getCode(e,n)!=="0x"}async getStorageAt(e,n){const r=await St(this,Sn,"f").getStorage(e,n);return this.decodeParameters(["address"],r)[0]}async getTransaction(e){return St(this,Sn,"f").getTransaction(e)}async getSignerAddress(){var e;return(e=St(this,lr,"f"))==null?void 0:e.getAddress()}signMessage(e){if(!St(this,lr,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");const n=St(this,dl,"f").getBytes(e);return St(this,lr,"f").signMessage(n)}async signTypedData(e){if(!St(this,lr,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");if((0,wO.isTypedDataSigner)(St(this,lr,"f"))){const n=(0,vO.generateTypedData)(e);return await St(this,lr,"f").signTypedData(n.domain,{SafeTx:n.types.SafeTx},n.message)}throw new Error("The current signer does not implement EIP-712 to sign typed data")}async estimateGas(e){return(await St(this,Sn,"f").estimateGas(e)).toString()}call(e,n){return St(this,Sn,"f").call({...e,blockTag:n})}encodeParameters(e,n){return new(St(this,dl,"f")).AbiCoder().encode(e,n)}decodeParameters(e,n){return new(St(this,dl,"f")).AbiCoder().decode(e,n)}}dl=new WeakMap,lr=new WeakMap,Sn=new WeakMap;PS.default=j7e;var Md=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.SignMessageLibEthersContract=Jr.SafeProxyFactoryEthersContract=Jr.SafeContractEthers=Jr.MultiSendEthersContract=Jr.MultiSendCallOnlyEthersContract=Jr.EthersAdapter=Jr.CreateCallEthersContract=void 0;const H7e=Md(PS);Jr.EthersAdapter=H7e.default;const z7e=Md(a2);Jr.CreateCallEthersContract=z7e.default;const G7e=Md(h1);Jr.MultiSendEthersContract=G7e.default;const V7e=Md(i2);Jr.MultiSendCallOnlyEthersContract=V7e.default;const q7e=Md(Mu);Jr.SafeContractEthers=q7e.default;const W7e=Md(Bd);Jr.SafeProxyFactoryEthersContract=W7e.default;const K7e=Md(s2);Jr.SignMessageLibEthersContract=K7e.default;var Xr={},aT={},yr={},iT={},qv={};Object.defineProperty(qv,"__esModule",{value:!0});class Z7e{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}qv.default=Z7e;var Q7e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(iT,"__esModule",{value:!0});const J7e=Q7e(qv);class X7e extends J7e.default{constructor(e){super(e),this.contract=e}}iT.default=X7e;var sT={},Y7e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sT,"__esModule",{value:!0});const ewe=Y7e(qv);class twe extends ewe.default{constructor(e){super(e),this.contract=e}}sT.default=twe;var oT={},o2={},La={};Object.defineProperty(La,"__esModule",{value:!0});La.toTxResult=La.sameString=void 0;function nwe(t,e){return t.toLowerCase()===e.toLowerCase()}La.sameString=nwe;async function rwe(t,e){return new Promise((n,r)=>t.once("transactionHash",a=>n({hash:a,promiEvent:t,options:e})).catch(r))}La.toTxResult=rwe;Object.defineProperty(o2,"__esModule",{value:!0});const EO=La;class awe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}async performCreate2(e,n,r,a){a&&!a.gas&&(a.gas=await this.estimateGas("performCreate2",[e,n,r],{...a}));const i=this.contract.methods.performCreate2(e,n,r).send(a);return(0,EO.toTxResult)(i,a)}async performCreate(e,n,r){r&&!r.gas&&(r.gas=await this.estimateGas("performCreate",[e,n],{...r}));const a=this.contract.methods.performCreate(e,n).send(r);return(0,EO.toTxResult)(a,r)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}o2.default=awe;var iwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(oT,"__esModule",{value:!0});const swe=iwe(o2);class owe extends swe.default{constructor(e){super(e),this.contract=e}}oT.default=owe;var cT={},cwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(cT,"__esModule",{value:!0});const lwe=cwe(o2);class uwe extends lwe.default{constructor(e){super(e),this.contract=e}}cT.default=uwe;var lT={},p1={};Object.defineProperty(p1,"__esModule",{value:!0});class fwe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}p1.default=fwe;var dwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lT,"__esModule",{value:!0});const hwe=dwe(p1);class pwe extends hwe.default{constructor(e){super(e),this.contract=e}}lT.default=pwe;var uT={},ywe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uT,"__esModule",{value:!0});const mwe=ywe(p1);class bwe extends mwe.default{constructor(e){super(e),this.contract=e}}uT.default=bwe;var fT={},gwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fT,"__esModule",{value:!0});const xwe=gwe(p1);class vwe extends xwe.default{constructor(e){super(e),this.contract=e}}fT.default=vwe;var dT={},c2={};Object.defineProperty(c2,"__esModule",{value:!0});class wwe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}c2.default=wwe;var Ewe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dT,"__esModule",{value:!0});const _we=Ewe(c2);class Awe extends _we.default{constructor(e){super(e),this.contract=e}}dT.default=Awe;var hT={},Cwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hT,"__esModule",{value:!0});const Swe=Cwe(c2);class Twe extends Swe.default{constructor(e){super(e),this.contract=e}}hT.default=Twe;var pT={},qi={};Object.defineProperty(qi,"__esModule",{value:!0});qi.SENTINEL_ADDRESS=qi.EMPTY_DATA=qi.ZERO_ADDRESS=void 0;qi.ZERO_ADDRESS=`0x${"0".repeat(40)}`;qi.EMPTY_DATA="0x";qi.SENTINEL_ADDRESS="0x0000000000000000000000000000000000000001";var Fu={};Object.defineProperty(Fu,"__esModule",{value:!0});const _O=La;class Bwe{constructor(e){this.contract=e}async getVersion(){return await this.contract.methods.VERSION().call()}getAddress(){return Promise.resolve(this.contract.options.address)}async getNonce(){return Number(await this.contract.methods.nonce().call())}async getThreshold(){return Number(await this.contract.methods.getThreshold().call())}async getOwners(){return this.contract.methods.getOwners().call()}async isOwner(e){return this.contract.methods.isOwner(e).call()}async getTransactionHash(e){return this.contract.methods.getTransactionHash(e.to,e.value,e.data,e.operation,e.safeTxGas,e.baseGas,e.gasPrice,e.gasToken,e.refundReceiver,e.nonce).call()}async approvedHashes(e,n){return BigInt(await this.contract.methods.approvedHashes(e,n).call())}async approveHash(e,n){n&&!n.gas&&(n.gas=await this.estimateGas("approveHash",[e],{...n}));const r=this.contract.methods.approveHash(e).send(n);return(0,_O.toTxResult)(r,n)}async isValidTransaction(e,n){let r=!1;try{n&&!n.gas&&(n.gas=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n})),r=await this.contract.methods.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()).call(n)}catch{}return r}async execTransaction(e,n){n&&!n.gas&&(n.gas=await this.estimateGas("execTransaction",[e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()],{...n}));const r=this.contract.methods.execTransaction(e.data.to,e.data.value,e.data.data,e.data.operation,e.data.safeTxGas,e.data.baseGas,e.data.gasPrice,e.data.gasToken,e.data.refundReceiver,e.encodedSignatures()).send(n);return(0,_O.toTxResult)(r,n)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}Fu.default=Bwe;var Mwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(pT,"__esModule",{value:!0});const AO=La,p3=qi,Fwe=Mwe(Fu);class Dwe extends Fwe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=p3.ZERO_ADDRESS,data:s=p3.EMPTY_DATA,paymentToken:o=p3.ZERO_ADDRESS,payment:c=0,paymentReceiver:h=p3.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h],{...n}));const b=this.contract.methods.setup(r,a,i,s,o,c,h).send(n);return(0,AO.toTxResult)(b,n)}async getModules(){return this.contract.methods.getModules().call()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,AO.sameString)(a,e))}}pT.default=Dwe;var yT={},kwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yT,"__esModule",{value:!0});const CO=La,ay=qi,Iwe=kwe(Fu);class Owe extends Iwe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=ay.ZERO_ADDRESS,data:s=ay.EMPTY_DATA,fallbackHandler:o=ay.ZERO_ADDRESS,paymentToken:c=ay.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=ay.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,CO.toTxResult)(v,n)}async getModules(){return this.contract.methods.getModules().call()}async isModuleEnabled(e){return(await this.getModules()).some(a=>(0,CO.sameString)(a,e))}}yT.default=Owe;var mT={},Pwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mT,"__esModule",{value:!0});const Rwe=La,iy=qi,Nwe=Pwe(Fu);class $we extends Nwe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=iy.ZERO_ADDRESS,data:s=iy.EMPTY_DATA,fallbackHandler:o=iy.ZERO_ADDRESS,paymentToken:c=iy.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=iy.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,Rwe.toTxResult)(v,n)}async getModules(){return this.contract.methods.getModules().call()}async isModuleEnabled(e){return this.contract.methods.isModuleEnabled(e).call()}}mT.default=$we;var bT={},Lwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(bT,"__esModule",{value:!0});const Uwe=La,n0=qi,jwe=Lwe(Fu);class Hwe extends jwe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=n0.ZERO_ADDRESS,data:s=n0.EMPTY_DATA,fallbackHandler:o=n0.ZERO_ADDRESS,paymentToken:c=n0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=n0.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,Uwe.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.methods.getModulesPaginated(n0.SENTINEL_ADDRESS,10).call();return e}async isModuleEnabled(e){return this.contract.methods.isModuleEnabled(e).call()}}bT.default=Hwe;var gT={},zwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gT,"__esModule",{value:!0});const Gwe=La,r0=qi,Vwe=zwe(Fu);class qwe extends Vwe.default{constructor(e){super(e),this.contract=e}async setup(e,n){const{owners:r,threshold:a,to:i=r0.ZERO_ADDRESS,data:s=r0.EMPTY_DATA,fallbackHandler:o=r0.ZERO_ADDRESS,paymentToken:c=r0.ZERO_ADDRESS,payment:h=0,paymentReceiver:b=r0.ZERO_ADDRESS}=e;n&&!n.gas&&(n.gas=await this.estimateGas("setup",[r,a,i,s,o,c,h,b],{...n}));const v=this.contract.methods.setup(r,a,i,s,o,c,h,b).send(n);return(0,Gwe.toTxResult)(v,n)}async getModules(){const{array:e}=await this.contract.methods.getModulesPaginated(r0.SENTINEL_ADDRESS,10).call();return e}async isModuleEnabled(e){return this.contract.methods.isModuleEnabled(e).call()}}gT.default=qwe;var xT={},Fd={};Object.defineProperty(Fd,"__esModule",{value:!0});const Wwe=La;class Kwe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}async proxyCreationCode(){return this.contract.methods.proxyCreationCode().call()}async createProxy({safeSingletonAddress:e,initializer:n,saltNonce:r,options:a,callback:i}){var h,b,v;if(BigInt(r)<0)throw new Error("saltNonce must be greater than or equal to 0");a&&!a.gas&&(a.gas=await this.estimateGas("createProxyWithNonce",[e,n,r],{...a}));const s=this.contract.methods.createProxyWithNonce(e,n,r).send(a);if(i){const E=await(0,Wwe.toTxResult)(s);i(E.hash)}const c=(v=(b=(h=(await new Promise((E,C)=>s.once("receipt",M=>E(M)).catch(C))).events)==null?void 0:h.ProxyCreation)==null?void 0:b.returnValues)==null?void 0:v.proxy;if(!c)throw new Error("SafeProxy was not deployed correctly");return c}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}Fd.default=Kwe;var Zwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(xT,"__esModule",{value:!0});const Qwe=Zwe(Fd);class Jwe extends Qwe.default{constructor(e){super(e),this.contract=e}}xT.default=Jwe;var vT={},Xwe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vT,"__esModule",{value:!0});const Ywe=Xwe(Fd);class eEe extends Ywe.default{constructor(e){super(e),this.contract=e}}vT.default=eEe;var wT={},tEe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wT,"__esModule",{value:!0});const nEe=tEe(Fd);class rEe extends nEe.default{constructor(e){super(e),this.contract=e}}wT.default=rEe;var ET={},aEe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ET,"__esModule",{value:!0});const iEe=aEe(Fd);class sEe extends iEe.default{constructor(e){super(e),this.contract=e}}ET.default=sEe;var _T={},l2={};Object.defineProperty(l2,"__esModule",{value:!0});const oEe=La;class cEe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}async signMessage(e,n){n&&!n.gas&&(n.gas=await this.estimateGas("signMessage",[e],{...n}));const r=this.contract.methods.signMessage(e).send(n);return(0,oEe.toTxResult)(r,n)}async getMessageHash(e){return this.contract.methods.getMessageHash(e).call()}encode(e,n){return this.contract.methods[e](...n).encodeABI()}async estimateGas(e,n,r){return(await this.contract.methods[e](...n).estimateGas(r)).toString()}}l2.default=cEe;var lEe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_T,"__esModule",{value:!0});const uEe=lEe(l2);class fEe extends uEe.default{constructor(e){super(e),this.contract=e}}_T.default=fEe;var AT={},dEe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(AT,"__esModule",{value:!0});const hEe=dEe(l2);class pEe extends hEe.default{constructor(e){super(e),this.contract=e}}AT.default=pEe;var CT={},Wv={};Object.defineProperty(Wv,"__esModule",{value:!0});class yEe{constructor(e){this.contract=e}getAddress(){return Promise.resolve(this.contract.options.address)}encode(e,n){return this.contract.methods[e](...n).encodeABI()}}Wv.default=yEe;var mEe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(CT,"__esModule",{value:!0});const bEe=mEe(Wv);class gEe extends bEe.default{constructor(e){super(e),this.contract=e}}CT.default=gEe;var ST={},xEe=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ST,"__esModule",{value:!0});const vEe=xEe(Wv);class wEe extends vEe.default{constructor(e){super(e),this.contract=e}}ST.default=wEe;var In=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(yr,"__esModule",{value:!0});yr.getSimulateTxAccessorContractInstance=yr.getCreateCallContractInstance=yr.getSignMessageLibContractInstance=yr.getSafeProxyFactoryContractInstance=yr.getMultiSendCallOnlyContractInstance=yr.getMultiSendContractInstance=yr.getCompatibilityFallbackHandlerContractInstance=yr.getSafeContractInstance=void 0;const EEe=In(iT),_Ee=In(sT),AEe=In(oT),CEe=In(cT),SEe=In(lT),TEe=In(uT),BEe=In(fT),MEe=In(dT),FEe=In(hT),DEe=In(pT),kEe=In(yT),IEe=In(mT),OEe=In(bT),PEe=In(gT),REe=In(xT),NEe=In(vT),$Ee=In(wT),LEe=In(ET),UEe=In(_T),jEe=In(AT),HEe=In(CT),zEe=In(ST);function GEe(t,e){switch(t){case"1.4.1":return new PEe.default(e);case"1.3.0":return new OEe.default(e);case"1.2.0":return new IEe.default(e);case"1.1.1":return new kEe.default(e);case"1.0.0":return new DEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getSafeContractInstance=GEe;function VEe(t,e){switch(t){case"1.4.1":return new _Ee.default(e);case"1.3.0":case"1.2.0":case"1.1.1":return new EEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getCompatibilityFallbackHandlerContractInstance=VEe;function qEe(t,e){switch(t){case"1.4.1":return new BEe.default(e);case"1.3.0":return new TEe.default(e);case"1.2.0":case"1.1.1":case"1.0.0":return new SEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getMultiSendContractInstance=qEe;function WEe(t,e){switch(t){case"1.4.1":return new FEe.default(e);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return new MEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getMultiSendCallOnlyContractInstance=WEe;function KEe(t,e){switch(t){case"1.4.1":return new LEe.default(e);case"1.3.0":return new $Ee.default(e);case"1.2.0":case"1.1.1":return new NEe.default(e);case"1.0.0":return new REe.default(e);default:throw new Error("Invalid Safe version")}}yr.getSafeProxyFactoryContractInstance=KEe;function ZEe(t,e){switch(t){case"1.4.1":return new jEe.default(e);case"1.3.0":return new UEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getSignMessageLibContractInstance=ZEe;function QEe(t,e){switch(t){case"1.4.1":return new CEe.default(e);case"1.3.0":case"1.2.0":case"1.1.1":case"1.0.0":return new AEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getCreateCallContractInstance=QEe;function JEe(t,e){switch(t){case"1.4.1":return new zEe.default(e);case"1.3.0":return new HEe.default(e);default:throw new Error("Invalid Safe version")}}yr.getSimulateTxAccessorContractInstance=JEe;var SO=de&&de.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},un=de&&de.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},Rn,Zs;Object.defineProperty(aT,"__esModule",{value:!0});const TO=Td(),ll=yr;class XEe{constructor({web3:e,signerAddress:n}){if(Rn.set(this,void 0),Zs.set(this,void 0),!e)throw new Error("web3 property missing from options");SO(this,Rn,e,"f"),SO(this,Zs,n,"f")}isAddress(e){return un(this,Rn,"f").utils.isAddress(e)}async getEip3770Address(e){const n=await this.getChainId();return(0,TO.validateEip3770Address)(e,n)}async getBalance(e,n){const r=n?await un(this,Rn,"f").eth.getBalance(e,n):await un(this,Rn,"f").eth.getBalance(e);return BigInt(r)}async getNonce(e,n){return n?await un(this,Rn,"f").eth.getTransactionCount(e,n):await un(this,Rn,"f").eth.getTransactionCount(e)}async getChainId(){return BigInt(await un(this,Rn,"f").eth.getChainId())}getChecksummedAddress(e){return un(this,Rn,"f").utils.toChecksumAddress(e)}async getSafeContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SafeProxy contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getSafeContractInstance)(e,o)}async getSafeProxyFactoryContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SafeProxyFactory contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getSafeProxyFactoryContractInstance)(e,o)}async getMultiSendContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid MultiSend contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getMultiSendContractInstance)(e,o)}async getMultiSendCallOnlyContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid MultiSendCallOnly contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getMultiSendCallOnlyContractInstance)(e,o)}async getCompatibilityFallbackHandlerContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid Compatibility Fallback Handler contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getCompatibilityFallbackHandlerContractInstance)(e,o)}async getSignMessageLibContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SignMessageLib contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getSignMessageLibContractInstance)(e,o)}async getCreateCallContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid CreateCall contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getCreateCallContractInstance)(e,o)}async getSimulateTxAccessorContract({safeVersion:e,singletonDeployment:n,customContractAddress:r,customContractAbi:a}){const i=await this.getChainId(),s=r??(n==null?void 0:n.networkAddresses[i.toString()]);if(!s)throw new Error("Invalid SimulateTxAccessor contract address");const o=this.getContract(s,a??(n==null?void 0:n.abi));return(0,ll.getSimulateTxAccessorContractInstance)(e,o)}getContract(e,n,r){return new(un(this,Rn,"f")).eth.Contract(n,e,r)}async getContractCode(e,n){return n?await un(this,Rn,"f").eth.getCode(e,n):await un(this,Rn,"f").eth.getCode(e)}async isContractDeployed(e,n){return await this.getContractCode(e,n)!=="0x"}async getStorageAt(e,n){const r=await un(this,Rn,"f").eth.getStorageAt(e,n);return this.decodeParameters(["address"],r)[0]}async getTransaction(e){return un(this,Rn,"f").eth.getTransaction(e)}async getSignerAddress(){return un(this,Zs,"f")}signMessage(e){if(!un(this,Zs,"f"))throw new Error("EthAdapter must be initialized with a signer to use this method");return un(this,Rn,"f").eth.sign(e,un(this,Zs,"f"))}async signTypedData(e,n){if(!un(this,Zs,"f"))throw new Error("This method requires a signer");const r=(0,TO.generateTypedData)(e);let a="eth_signTypedData_v3";n==="v4"?a="eth_signTypedData_v4":n||(a="eth_signTypedData");const i=JSON.stringify(r),s={jsonrpc:"2.0",method:a,params:n==="v3"||n==="v4"?[un(this,Zs,"f"),i]:[i,un(this,Zs,"f")],from:un(this,Zs,"f"),id:new Date().getTime()};return new Promise((o,c)=>{const h=un(this,Rn,"f").currentProvider;function b(v,E){if(v){c(v);return}if((E==null?void 0:E.result)==null){c(new Error("EIP-712 is not supported by user's wallet"));return}o(E.result)}h.send(s,b)})}async estimateGas(e,n){return(await un(this,Rn,"f").eth.estimateGas(e,n)).toString()}call(e,n){return un(this,Rn,"f").eth.call(e,n)}encodeParameters(e,n){return un(this,Rn,"f").eth.abi.encodeParameters(e,n)}decodeParameters(e,n){return un(this,Rn,"f").eth.abi.decodeParameters(e,n)}}Rn=new WeakMap,Zs=new WeakMap;aT.default=XEe;var Dd=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Web3Adapter=Xr.SignMessageLibWeb3Contract=Xr.SafeProxyFactoryWeb3Contract=Xr.SafeContractWeb3=Xr.MultiSendWeb3Contract=Xr.MultiSendCallOnlyWeb3Contract=Xr.CreateCallWeb3Contract=void 0;const YEe=Dd(aT);Xr.Web3Adapter=YEe.default;const e_e=Dd(o2);Xr.CreateCallWeb3Contract=e_e.default;const t_e=Dd(p1);Xr.MultiSendWeb3Contract=t_e.default;const n_e=Dd(c2);Xr.MultiSendCallOnlyWeb3Contract=n_e.default;const r_e=Dd(Fu);Xr.SafeContractWeb3=r_e.default;const a_e=Dd(Fd);Xr.SafeProxyFactoryWeb3Contract=a_e.default;const i_e=Dd(l2);Xr.SignMessageLibWeb3Contract=i_e.default;var TT={},a0=de&&de.__classPrivateFieldSet||function(t,e,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!a:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(t,n):a?a.value=n:e.set(t,n),n},Gn=de&&de.__classPrivateFieldGet||function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},s_e=de&&de.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},p0,Ey,_y,xi,Ay,Cy;Object.defineProperty(TT,"__esModule",{value:!0});const o_e=s_e(h8),c_e=na,BO=Ct,i0=y8;class BT{constructor(){p0.set(this,void 0),Ey.set(this,void 0),_y.set(this,void 0),xi.set(this,void 0),Ay.set(this,void 0),Cy.set(this,void 0)}static async create({ethAdapter:e,safeVersion:n=c_e.DEFAULT_SAFE_VERSION,isL1SafeSingleton:r=!1,contractNetworks:a}){const i=new BT;return await i.init({ethAdapter:e,safeVersion:n,isL1SafeSingleton:r,contractNetworks:a}),i}async init({ethAdapter:e,safeVersion:n,isL1SafeSingleton:r,contractNetworks:a}){a0(this,xi,e,"f"),a0(this,_y,n,"f"),a0(this,Ey,r,"f"),a0(this,p0,a,"f");const i=await Gn(this,xi,"f").getChainId(),s=a==null?void 0:a[i.toString()];a0(this,Ay,await(0,BO.getProxyFactoryContract)({ethAdapter:e,safeVersion:n,customContracts:s}),"f"),a0(this,Cy,await(0,BO.getSafeContract)({ethAdapter:e,safeVersion:n,isL1SafeSingleton:r,customContracts:s}),"f")}getEthAdapter(){return Gn(this,xi,"f")}getSafeVersion(){return Gn(this,_y,"f")}getAddress(){return Gn(this,Ay,"f").getAddress()}async getChainId(){return Gn(this,xi,"f").getChainId()}async predictSafeAddress(e,n){var o;const r=await Gn(this,xi,"f").getChainId(),a=(o=Gn(this,p0,"f"))==null?void 0:o[r.toString()],i=Gn(this,_y,"f"),s={saltNonce:n||(0,i0.getChainSpecificDefaultSaltNonce)(r),safeVersion:i};return(0,i0.predictSafeAddress)({ethAdapter:Gn(this,xi,"f"),safeAccountConfig:e,safeDeploymentConfig:s,isL1SafeSingleton:Gn(this,Ey,"f"),customContracts:a})}async deploySafe({safeAccountConfig:e,saltNonce:n,options:r,callback:a}){var E;(0,i0.validateSafeAccountConfig)(e),(0,i0.validateSafeDeploymentConfig)({saltNonce:n});const i=await Gn(this,xi,"f").getSignerAddress();if(!i)throw new Error("EthAdapter must be initialized with a signer to use this method");const s=await this.getChainId(),o=(E=Gn(this,p0,"f"))==null?void 0:E[s.toString()],c=await(0,i0.encodeSetupCallData)({ethAdapter:Gn(this,xi,"f"),safeAccountConfig:e,safeContract:Gn(this,Cy,"f"),customContracts:o});if(r!=null&&r.gas&&(r!=null&&r.gasLimit))throw new Error("Cannot specify gas and gasLimit together in transaction options");const h=await Gn(this,Ay,"f").createProxy({safeSingletonAddress:await Gn(this,Cy,"f").getAddress(),initializer:c,saltNonce:n||(0,i0.getChainSpecificDefaultSaltNonce)(s),options:{from:i,...r},callback:a});if(!await Gn(this,xi,"f").isContractDeployed(h))throw new Error("SafeProxy contract is not deployed on the current network");return await o_e.default.create({ethAdapter:Gn(this,xi,"f"),safeAddress:h,isL1SafeSingleton:Gn(this,Ey,"f"),contractNetworks:Gn(this,p0,"f")})}}p0=new WeakMap,Ey=new WeakMap,_y=new WeakMap,xi=new WeakMap,Ay=new WeakMap,Cy=new WeakMap;TT.default=BT;var su={};Object.defineProperty(su,"__esModule",{value:!0});su.createERC20TokenTransferTransaction=su.isGasTokenCompatibleWithHandlePayment=su.getERC20Decimals=void 0;const eW=yn,l_e=ra,tW=["function transfer(address recipient, uint256 amount) returns (bool)","function decimals() view returns (uint8)"];async function nW(t,e){const n=e.getEthAdapter(),r=new eW.Interface(tW),a={to:t,from:t,value:"0",data:r.encodeFunctionData("decimals")},i=await n.call(a),s=Number(i);if(Number.isNaN(s))throw new Error("Invalid ERC-20 decimals");return s}su.getERC20Decimals=nW;const u_e=18;async function f_e(t,e){return t===l_e.ZERO_ADDRESS?!0:await nW(t,e)===u_e}su.isGasTokenCompatibleWithHandlePayment=f_e;function d_e(t,e,n){const r=new eW.Interface(tW);return{to:t,value:"0",data:r.encodeFunctionData("transfer",[e,n])}}su.createERC20TokenTransferTransaction=d_e;(function(t){var e=de&&de.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateEip3770Address=t.standardizeSafeTransactionData=t.predictSafeAddress=t.isGasTokenCompatibleWithHandlePayment=t.getSignMessageLibContract=t.getSafeContract=t.getProxyFactoryContract=t.getMultiSendContract=t.getMultiSendCallOnlyContract=t.getERC20Decimals=t.getCreateCallContract=t.getCompatibilityFallbackHandlerContract=t.encodeSetupCallData=t.encodeMultiSendData=t.encodeCreateProxyWithNonce=t.Web3Adapter=t.SignMessageLibWeb3Contract=t.SignMessageLibEthersContract=t.SafeProxyFactoryWeb3Contract=t.SafeProxyFactoryEthersContract=t.SafeFactory=t.SafeContractWeb3=t.SafeContractEthers=t.PREDETERMINED_SALT_NONCE=t.MultiSendWeb3Contract=t.MultiSendEthersContract=t.MultiSendCallOnlyWeb3Contract=t.MultiSendCallOnlyEthersContract=t.EthersAdapter=t.EthSafeSignature=t.DEFAULT_SAFE_VERSION=t.createERC20TokenTransferTransaction=t.CreateCallWeb3Contract=t.CreateCallEthersContract=t.ContractManager=t.estimateSafeDeploymentGas=t.estimateSafeTxGas=t.estimateTxGas=t.estimateTxBaseGas=void 0;const n=e(h8),r=Jr;Object.defineProperty(t,"CreateCallEthersContract",{enumerable:!0,get:function(){return r.CreateCallEthersContract}}),Object.defineProperty(t,"EthersAdapter",{enumerable:!0,get:function(){return r.EthersAdapter}}),Object.defineProperty(t,"MultiSendCallOnlyEthersContract",{enumerable:!0,get:function(){return r.MultiSendCallOnlyEthersContract}}),Object.defineProperty(t,"MultiSendEthersContract",{enumerable:!0,get:function(){return r.MultiSendEthersContract}}),Object.defineProperty(t,"SafeContractEthers",{enumerable:!0,get:function(){return r.SafeContractEthers}}),Object.defineProperty(t,"SafeProxyFactoryEthersContract",{enumerable:!0,get:function(){return r.SafeProxyFactoryEthersContract}}),Object.defineProperty(t,"SignMessageLibEthersContract",{enumerable:!0,get:function(){return r.SignMessageLibEthersContract}});const a=Xr;Object.defineProperty(t,"CreateCallWeb3Contract",{enumerable:!0,get:function(){return a.CreateCallWeb3Contract}}),Object.defineProperty(t,"MultiSendCallOnlyWeb3Contract",{enumerable:!0,get:function(){return a.MultiSendCallOnlyWeb3Contract}}),Object.defineProperty(t,"MultiSendWeb3Contract",{enumerable:!0,get:function(){return a.MultiSendWeb3Contract}}),Object.defineProperty(t,"SafeContractWeb3",{enumerable:!0,get:function(){return a.SafeContractWeb3}}),Object.defineProperty(t,"SafeProxyFactoryWeb3Contract",{enumerable:!0,get:function(){return a.SafeProxyFactoryWeb3Contract}}),Object.defineProperty(t,"SignMessageLibWeb3Contract",{enumerable:!0,get:function(){return a.SignMessageLibWeb3Contract}}),Object.defineProperty(t,"Web3Adapter",{enumerable:!0,get:function(){return a.Web3Adapter}});const i=na;Object.defineProperty(t,"DEFAULT_SAFE_VERSION",{enumerable:!0,get:function(){return i.DEFAULT_SAFE_VERSION}});const s=Ct;Object.defineProperty(t,"getCompatibilityFallbackHandlerContract",{enumerable:!0,get:function(){return s.getCompatibilityFallbackHandlerContract}}),Object.defineProperty(t,"getCreateCallContract",{enumerable:!0,get:function(){return s.getCreateCallContract}}),Object.defineProperty(t,"getMultiSendCallOnlyContract",{enumerable:!0,get:function(){return s.getMultiSendCallOnlyContract}}),Object.defineProperty(t,"getMultiSendContract",{enumerable:!0,get:function(){return s.getMultiSendContract}}),Object.defineProperty(t,"getProxyFactoryContract",{enumerable:!0,get:function(){return s.getProxyFactoryContract}}),Object.defineProperty(t,"getSafeContract",{enumerable:!0,get:function(){return s.getSafeContract}}),Object.defineProperty(t,"getSignMessageLibContract",{enumerable:!0,get:function(){return s.getSignMessageLibContract}});const o=y8;Object.defineProperty(t,"PREDETERMINED_SALT_NONCE",{enumerable:!0,get:function(){return o.PREDETERMINED_SALT_NONCE}}),Object.defineProperty(t,"encodeCreateProxyWithNonce",{enumerable:!0,get:function(){return o.encodeCreateProxyWithNonce}}),Object.defineProperty(t,"encodeSetupCallData",{enumerable:!0,get:function(){return o.encodeSetupCallData}}),Object.defineProperty(t,"predictSafeAddress",{enumerable:!0,get:function(){return o.predictSafeAddress}});const c=e(av);t.ContractManager=c.default;const h=e(TT);t.SafeFactory=h.default;const b=Td();Object.defineProperty(t,"EthSafeSignature",{enumerable:!0,get:function(){return b.EthSafeSignature}}),Object.defineProperty(t,"estimateTxBaseGas",{enumerable:!0,get:function(){return b.estimateTxBaseGas}}),Object.defineProperty(t,"estimateTxGas",{enumerable:!0,get:function(){return b.estimateTxGas}}),Object.defineProperty(t,"estimateSafeTxGas",{enumerable:!0,get:function(){return b.estimateSafeTxGas}}),Object.defineProperty(t,"estimateSafeDeploymentGas",{enumerable:!0,get:function(){return b.estimateSafeDeploymentGas}}),Object.defineProperty(t,"validateEip3770Address",{enumerable:!0,get:function(){return b.validateEip3770Address}});const v=DS();Object.defineProperty(t,"encodeMultiSendData",{enumerable:!0,get:function(){return v.encodeMultiSendData}}),Object.defineProperty(t,"standardizeSafeTransactionData",{enumerable:!0,get:function(){return v.standardizeSafeTransactionData}});const E=su;Object.defineProperty(t,"getERC20Decimals",{enumerable:!0,get:function(){return E.getERC20Decimals}}),Object.defineProperty(t,"isGasTokenCompatibleWithHandlePayment",{enumerable:!0,get:function(){return E.isGasTokenCompatibleWithHandlePayment}}),Object.defineProperty(t,"createERC20TokenTransferTransaction",{enumerable:!0,get:function(){return E.createERC20TokenTransferTransaction}}),t.default=n.default})(Ep);const h_e=ud(Ep),p_e=ye({id:787,name:"Acala",network:"acala",nativeCurrency:{name:"Acala",symbol:"ACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]},default:{http:["https://eth-rpc-acala.aca-api.network"],webSocket:["wss://eth-rpc-acala.aca-api.network"]}},blockExplorers:{default:{name:"Acala Blockscout",url:"https://blockscout.acala.network",apiUrl:"https://blockscout.acala.network/api"}},testnet:!1}),y_e=ye({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),m_e=ye({id:3993,name:"APEX Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.apexlayer.xyz"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-testnet.apexlayer.xyz",apiUrl:"https://exp-testnet.apexlayer.xyz/api"}},contracts:{multicall3:{address:"0xf7642be33a6b18D16a995657adb5a68CD0438aE2",blockCreated:283775}},testnet:!0}),PE=ye({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),RE=ye({id:421613,name:"Arbitrum Goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0}),NE=ye({id:42170,name:"Arbitrum Nova",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://nova.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://nova.arbiscan.io",apiUrl:"https://api-nova.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1746963}}}),b_e=ye({id:592,name:"Astar",network:"astar-mainnet",nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},rpcUrls:{default:{http:["https://astar.api.onfinality.io/public"]}},blockExplorers:{default:{name:"Astar Subscan",url:"https://astar.subscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:761794}},testnet:!1}),$E=ye({id:421614,name:"Arbitrum Sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://sepolia.arbiscan.io",apiUrl:"https://sepolia.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:81930}},testnet:!0}),g_e=ye({id:1261120,name:"Astar zkEVM Testnet zKatana",network:"zKatana",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zkatana.gelato.digital","https://rpc.startale.com/zkatana"]}},blockExplorers:{default:{name:"zKatana Explorer",url:"https://zkatana.explorer.startale.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:31317}},testnet:!0}),x_e=ye({id:1313161554,name:"Aurora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://aurorascan.dev",apiUrl:"https://aurorascan.dev/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:62907816}}}),v_e=ye({id:1313161555,name:"Aurora Testnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.aurora.dev"]}},blockExplorers:{default:{name:"Aurorascan",url:"https://testnet.aurorascan.dev",apiUrl:"https://testnet.aurorascan.dev/api"}},testnet:!0}),w_e=ye({id:43114,name:"Avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowScan",url:"https://snowscan.xyz",apiUrl:"https://api.snowscan.xyz/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),E_e=ye({id:43113,name:"Avalanche Fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://testnet.snowtrace.io",apiUrl:"https://api-testnet.snowtrace.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7096959}},testnet:!0}),__e=ye({id:5165,network:"bahamut",name:"Bahamut",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]},public:{http:["https://rpc1.bahamut.io","https://bahamut.publicnode.com","https://rpc2.bahamut.io"],webSocket:["wss://ws1.sahara.bahamutchain.com","wss://bahamut.publicnode.com","wss://ws2.sahara.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://www.ftnscan.com",apiUrl:"https://www.ftnscan.com/api"}}}),A_e={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},MT={block:EA({format(t){var n;return{transactions:(n=t.transactions)==null?void 0:n.map(r=>{if(typeof r=="string")return r;const a=Nx(r);return a.typeHex==="0x7e"&&(a.isSystemTx=r.isSystemTx,a.mint=r.mint?Vn(r.mint):void 0,a.sourceHash=r.sourceHash,a.type="deposit"),a}),stateRoot:t.stateRoot}}}),transaction:wA({format(t){const e={};return t.type==="0x7e"&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Vn(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:tL({format(t){return{l1GasPrice:t.l1GasPrice?Vn(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?Vn(t.l1GasUsed):null,l1Fee:t.l1Fee?Vn(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null}}})},C_e=(t,e)=>B_e(t)?T_e(t):SA(t,e),S_e={transaction:C_e};function T_e(t){M_e(t);const{sourceHash:e,data:n,from:r,gas:a,isSystemTx:i,mint:s,to:o,value:c}=t,h=[e,r,o??"0x",s?ct(s):"0x",c?ct(c):"0x",a?ct(a):"0x",i?"0x1":"0x",n??"0x"];return Hp(["0x7e",bd(h)])}function B_e(t){return t.type==="deposit"||typeof t.sourceHash<"u"}function M_e(t){const{from:e,to:n}=t;if(e&&!Rr(e))throw new ji({address:e});if(n&&!Rr(n))throw new ji({address:n})}const gn={contracts:A_e,formatters:MT,serializers:S_e},y3=1,F6=ye({...gn,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...gn.contracts,l2OutputOracle:{[y3]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[y3]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[y3]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:y3}),m3=5,rW=ye({...gn,id:84531,name:"Base Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org",apiUrl:"https://goerli.basescan.org/api"}},contracts:{...gn.contracts,l2OutputOracle:{[m3]:{address:"0x2A35891ff30313CcFa6CE88dcf3858bb075A2298"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1376988},portal:{[m3]:{address:"0xe93c8cD0D409341205A592f8c4Ac1A5fe5585cfA"}},l1StandardBridge:{[m3]:{address:"0xfA6D8Ee5BE770F84FC001D098C4bD604Fe01284a"}}},testnet:!0,sourceId:m3}),b3=11155111,LE=ye({...gn,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...gn.contracts,l2OutputOracle:{[b3]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[b3]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[b3]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:b3}),F_e=ye({id:641230,name:"Bear Network Chain Mainnet",nativeCurrency:{decimals:18,name:"BearNetworkChain",symbol:"BRNKC"},rpcUrls:{default:{http:["https://brnkc-mainnet.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkScan",url:"https://brnkscan.bearnetwork.net",apiUrl:"https://brnkscan.bearnetwork.net/api"}}}),D_e=ye({id:751230,name:"Bear Network Chain Testnet",nativeCurrency:{decimals:18,name:"tBRNKC",symbol:"tBRNKC"},rpcUrls:{default:{http:["https://brnkc-test.bearnetwork.net"]}},blockExplorers:{default:{name:"BrnkTestScan",url:"https://brnktest-scan.bearnetwork.net",apiUrl:"https://brnktest-scan.bearnetwork.net/api"}},testnet:!0}),k_e=ye({id:80085,name:"Berachain Artio",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},rpcUrls:{default:{http:["https://artio.rpc.berachain.com"]}},blockExplorers:{default:{name:"Berachain",url:"https://artio.beratrail.io"}},testnet:!0}),I_e=ye({id:199,name:"BitTorrent",network:"bittorrent-chain-mainnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://rpc.bittorrentchain.io"]},public:{http:["https://rpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://bttcscan.com",apiUrl:"https://api.bttcscan.com/api"}}}),O_e=ye({id:1028,name:"BitTorrent Chain Testnet",network:"bittorrent-chain-testnet",nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},rpcUrls:{default:{http:["https://testrpc.bittorrentchain.io"]},public:{http:["https://testrpc.bittorrentchain.io"]}},blockExplorers:{default:{name:"Bttcscan",url:"https://testnet.bttcscan.com",apiUrl:"https://testnet.bttcscan.com/api"}},testnet:!0}),P_e=11155111,D6=ye({id:168587773,name:"Blast Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.blast.io"]}},blockExplorers:{default:{name:"Blastscan",url:"https://testnet.blastscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:756690}},testnet:!0,sourceId:P_e}),R_e=ye({id:288,name:"Boba Network",nativeCurrency:{decimals:18,name:"Boba",symbol:"BOBA"},rpcUrls:{default:{http:["https://mainnet.boba.network"]}},blockExplorers:{default:{name:"BOBAScan",url:"https://bobascan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:446859}}}),N_e=ye({id:1039,name:"Bronos",nativeCurrency:{decimals:18,name:"BRO",symbol:"BRO"},rpcUrls:{default:{http:["https://evm.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://broscan.bronos.org"}}}),$_e=ye({id:1038,name:"Bronos Testnet",nativeCurrency:{decimals:18,name:"Bronos Coin",symbol:"tBRO"},rpcUrls:{default:{http:["https://evm-testnet.bronos.org"]}},blockExplorers:{default:{name:"BronoScan",url:"https://tbroscan.bronos.org"}},testnet:!0}),L_e=ye({id:56,name:"BNB Smart Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),U_e=ye({id:97,name:"Binance Smart Chain Testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{default:{name:"BscScan",url:"https://testnet.bscscan.com",apiUrl:"https://testnet.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0}),j_e=ye({id:1017,name:"BNB Greenfield Chain",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://greenfield-chain.bnbchain.org"]}},blockExplorers:{default:{name:"BNB Greenfield Mainnet Scan",url:"https://greenfieldscan.com"}},testnet:!1}),H_e=ye({id:4999,name:"BlackFort Exchange Network",nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},rpcUrls:{default:{http:["https://mainnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.blackfort.network",apiUrl:"https://explorer.blackfort.network/api"}}}),z_e=ye({id:4777,name:"BlackFort Exchange Network Testnet",nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},rpcUrls:{default:{http:["https://testnet.blackfort.network/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://testnet-explorer.blackfort.network",apiUrl:"https://testnet-explorer.blackfort.network/api"}}}),G_e=ye({id:7700,name:"Canto",nativeCurrency:{decimals:18,name:"Canto",symbol:"CANTO"},rpcUrls:{default:{http:["https://canto.gravitychain.io"]}},blockExplorers:{default:{name:"Tuber.Build (Blockscout)",url:"https://tuber.build"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2905789}}});function ql(t){return t===0||t===0n||t===void 0||t===null||t==="0"||t===""||typeof t=="string"&&(Co(t).toLowerCase()==="0x"||Co(t).toLowerCase()==="0x00")}function Ir(t){return!ql(t)}function aW(t){return Ir(t.maxFeePerGas)&&Ir(t.maxPriorityFeePerGas)}function iW(t){return t.type==="cip42"?!0:aW(t)&&(Ir(t.feeCurrency)||Ir(t.gatewayFeeRecipient)||Ir(t.gatewayFee))}function sW(t){return t.type==="cip64"?!0:aW(t)&&Ir(t.feeCurrency)&&ql(t.gatewayFee)&&ql(t.gatewayFeeRecipient)}const V_e={block:EA({exclude:["difficulty","gasLimit","mixHash","nonce","uncles"],format(t){var n;const e=(n=t.transactions)==null?void 0:n.map(r=>typeof r=="string"?r:{...Nx(r),feeCurrency:r.feeCurrency,...r.type!=="0x7b"?{gatewayFee:r.gatewayFee?Vn(r.gatewayFee):null,gatewayFeeRecipient:r.gatewayFeeRecipient||null}:{}});return{randomness:t.randomness,transactions:e}}}),transaction:wA({format(t){const e={feeCurrency:t.feeCurrency};return t.type==="0x7b"?e.type="cip64":(t.type==="0x7c"&&(e.type="cip42"),e.gatewayFee=t.gatewayFee?Vn(t.gatewayFee):null,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}}),transactionRequest:Q$({format(t){const e={feeCurrency:t.feeCurrency};return sW(t)?e.type="0x7b":(iW(t)&&(e.type="0x7c"),e.gatewayFee=typeof t.gatewayFee<"u"?Qo(t.gatewayFee):void 0,e.gatewayFeeRecipient=t.gatewayFeeRecipient),e}})},q_e=(t,e)=>sW(t)?Z_e(t,e):iW(t)?K_e(t,e):SA(t,e),W_e={transaction:q_e};function K_e(t,e){Q_e(t);const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:h,feeCurrency:b,gatewayFeeRecipient:v,gatewayFee:E,data:C}=t,M=[ct(n),a?ct(a):"0x",c?ct(c):"0x",o?ct(o):"0x",r?ct(r):"0x",b??"0x",v??"0x",E?ct(E):"0x",i??"0x",s?ct(s):"0x",C??"0x",$x(h)];return e&&M.push(e.v===27n?"0x":ct(1),Co(e.r),Co(e.s)),Hp(["0x7c",bd(M)])}function Z_e(t,e){J_e(t);const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:h,feeCurrency:b,data:v}=t,E=[ct(n),a?ct(a):"0x",c?ct(c):"0x",o?ct(o):"0x",r?ct(r):"0x",i??"0x",s?ct(s):"0x",v??"0x",$x(h),b];return e&&E.push(e.v===27n?"0x":ct(1),Co(e.r),Co(e.s)),Hp(["0x7b",bd(E)])}const oW=2n**256n-1n;function Q_e(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i,feeCurrency:s,gatewayFee:o,gatewayFeeRecipient:c}=t;if(e<=0)throw new Gp({chainId:e});if(i&&!Rr(i))throw new ji({address:i});if(r)throw new Lt("`gasPrice` is not a valid CIP-42 Transaction attribute.");if(Ir(a)&&a>oW)throw new zp({maxFeePerGas:a});if(Ir(n)&&Ir(a)&&n>a)throw new Px({maxFeePerGas:a,maxPriorityFeePerGas:n});if(Ir(o)&&ql(c)||Ir(c)&&ql(o))throw new Lt("`gatewayFee` and `gatewayFeeRecipient` must be provided together.");if(Ir(s)&&!Rr(s))throw new Lt("`feeCurrency` MUST be a token address for CIP-42 transactions.");if(Ir(c)&&!Rr(c))throw new ji(c);if(ql(s)&&ql(c))throw new Lt("Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.")}function J_e(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i,feeCurrency:s}=t;if(e<=0)throw new Gp({chainId:e});if(i&&!Rr(i))throw new ji({address:i});if(r)throw new Lt("`gasPrice` is not a valid CIP-64 Transaction attribute.");if(Ir(a)&&a>oW)throw new zp({maxFeePerGas:a});if(Ir(n)&&Ir(a)&&n>a)throw new Px({maxFeePerGas:a,maxPriorityFeePerGas:n});if(Ir(s)&&!Rr(s))throw new Lt("`feeCurrency` MUST be a token address for CIP-64 transactions.");if(ql(s))throw new Lt("`feeCurrency` must be provided for CIP-64 transactions.")}const cW={formatters:V_e,serializers:W_e},X_e=ye({...cW,id:42220,name:"Celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet",apiUrl:"https://explorer.celo.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13112599}},testnet:!1}),Y_e=ye({...cW,id:44787,name:"Alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"A-CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores",apiUrl:"https://explorer.celo.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:14569001}},testnet:!0}),eAe=ye({id:88888,name:"Chiliz Chain",network:"chiliz-chain",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://rpc.ankr.com/chiliz","https://chiliz.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"https://scan.chiliz.com",apiUrl:"https://scan.chiliz.com/api"}}}),tAe=ye({id:61,name:"Ethereum Classic",nativeCurrency:{decimals:18,name:"ETC",symbol:"ETC"},rpcUrls:{default:{http:["https://etc.rivet.link"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.com/etc/mainnet"}}}),nAe=ye({id:1030,name:"Conflux eSpace",nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evm.confluxrpc.org"],webSocket:["wss://evm.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evm.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:68602935}}}),rAe=ye({id:71,name:"Conflux eSpace Testnet",network:"cfx-espace-testnet",testnet:!0,nativeCurrency:{name:"Conflux",symbol:"CFX",decimals:18},rpcUrls:{default:{http:["https://evmtestnet.confluxrpc.org"],webSocket:["wss://evmtestnet.confluxrpc.org/ws"]}},blockExplorers:{default:{name:"ConfluxScan",url:"https://evmtestnet.confluxscan.io"}},contracts:{multicall3:{address:"0xEFf0078910f638cd81996cc117bccD3eDf2B072F",blockCreated:117499050}}}),aAe=ye({id:1116,name:"Core Dao",nativeCurrency:{decimals:18,name:"Core",symbol:"CORE"},rpcUrls:{default:{http:["https://rpc.coredao.org"]}},blockExplorers:{default:{name:"CoreDao",url:"https://scan.coredao.org"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:11907934}},testnet:!1}),iAe=ye({id:25,name:"Cronos Mainnet",nativeCurrency:{decimals:18,name:"Cronos",symbol:"CRO"},rpcUrls:{default:{http:["https://evm.cronos.org"]}},blockExplorers:{default:{name:"Cronoscan",url:"https://cronoscan.com",apiUrl:"https://api.cronoscan.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1963112}}}),sAe=ye({id:338,name:"Cronos Testnet",nativeCurrency:{decimals:18,name:"CRO",symbol:"tCRO"},rpcUrls:{default:{http:["https://evm-t3.cronos.org"]}},blockExplorers:{default:{name:"Cronos Explorer",url:"https://cronos.org/explorer/testnet3"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:10191251}},testnet:!0}),oAe=ye({id:3737,name:"Crossbell",nativeCurrency:{decimals:18,name:"CSB",symbol:"CSB"},rpcUrls:{default:{http:["https://rpc.crossbell.io"]}},blockExplorers:{default:{name:"CrossScan",url:"https://scan.crossbell.io",apiUrl:"https://scan.crossbell.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:38246031}}}),cAe=ye({id:1130,network:"defichain-evm",name:"DeFiChain EVM Mainnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:8},rpcUrls:{default:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]},public:{http:["https://eth.mainnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:137852}}}),lAe=ye({id:1131,network:"defichain-evm-testnet",name:"DeFiChain EVM Testnet",nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:8},rpcUrls:{default:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]},public:{http:["https://eth.testnet.ocean.jellyfishsdk.com"]}},blockExplorers:{default:{name:"DeFiScan",url:"https://meta.defiscan.live/?network=TestNet"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:156462}},testnet:!0}),uAe=ye({id:53935,name:"DFK Chain",nativeCurrency:{decimals:18,name:"Jewel",symbol:"JEWEL"},rpcUrls:{default:{http:["https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"]}},blockExplorers:{default:{name:"DFKSubnetScan",url:"https://subnets.avax.network/defi-kingdoms"}}}),fAe=ye({id:2e3,name:"Dogechain",nativeCurrency:{decimals:18,name:"Dogechain",symbol:"DC"},rpcUrls:{default:{http:["https://rpc.dogechain.dog"]}},blockExplorers:{default:{name:"DogeChainExplorer",url:"https://explorer.dogechain.dog",apiUrl:"https://explorer.dogechain.dog/api"}}}),dAe=ye({id:2021,name:"Edgeware EdgeEVM Mainnet",nativeCurrency:{decimals:18,name:"Edgeware",symbol:"EDG"},rpcUrls:{default:{http:["https://edgeware-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",apiUrl:"https://edgscan.live/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18117872}}}),hAe=ye({id:2022,name:"Beresheet BereEVM Testnet",nativeCurrency:{decimals:18,name:"Testnet EDG",symbol:"tEDG"},rpcUrls:{default:{http:["https://beresheet-evm.jelliedowl.net"]}},blockExplorers:{default:{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",apiUrl:"https://testnet.edgscan.live/api"}}}),pAe=ye({id:17777,name:"EOS EVM",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Explorer",url:"https://explorer.evm.eosnetwork.com",apiUrl:"https://explorer.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7943933}}}),yAe=ye({id:15557,name:"EOS EVM Testnet",nativeCurrency:{decimals:18,name:"EOS",symbol:"EOS"},rpcUrls:{default:{http:["https://api.testnet.evm.eosnetwork.com"]}},blockExplorers:{default:{name:"EOS EVM Testnet Explorer",url:"https://explorer.testnet.evm.eosnetwork.com",apiUrl:"https://explorer.testnet.evm.eosnetwork.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9067940}},testnet:!0}),mAe=ye({id:128123,name:"Etherlink Testnet",nativeCurrency:{decimals:18,name:"Tez",symbol:"XTZ"},rpcUrls:{default:{http:["https://node.ghostnet.etherlink.com"]}},blockExplorers:{default:{name:"Etherlink Testnet",url:"https://testnet-explorer.etherlink.com"}},testnet:!0}),bAe=ye({id:9001,name:"Evmos",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.org:8545"]}},blockExplorers:{default:{name:"Evmos Block Explorer",url:"https://escan.live"}}}),gAe=ye({id:9e3,name:"Evmos Testnet",nativeCurrency:{decimals:18,name:"Evmos",symbol:"EVMOS"},rpcUrls:{default:{http:["https://eth.bd.evmos.dev:8545"]}},blockExplorers:{default:{name:"Evmos Testnet Block Explorer",url:"https://evm.evmos.dev/"}}}),xAe=ye({id:1994,name:"Ekta",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://main.ekta.io"]}},blockExplorers:{default:{name:"Ektascan",url:"https://ektascan.io",apiUrl:"https://ektascan.io/api"}}}),vAe=ye({id:1004,name:"Ekta Testnet",nativeCurrency:{decimals:18,name:"EKTA",symbol:"EKTA"},rpcUrls:{default:{http:["https://test.ekta.io:8545"]}},blockExplorers:{default:{name:"Test Ektascan",url:"https://test.ektascan.io",apiUrl:"https://test.ektascan.io/api"}},testnet:!0}),wAe=ye({id:250,name:"Fantom",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.ankr.com/fantom"]}},blockExplorers:{default:{name:"FTMScan",url:"https://ftmscan.com",apiUrl:"https://api.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:33001987}}}),EAe=ye({id:64240,name:"Fantom Sonic Open Testnet",network:"fantom-sonic-testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpcapi.sonic.fantom.network"]}},blockExplorers:{default:{name:"Fantom Sonic Open Testnet Explorer",url:"https://public-sonic.fantom.network"}},testnet:!0}),_Ae=ye({id:4002,name:"Fantom Testnet",nativeCurrency:{decimals:18,name:"Fantom",symbol:"FTM"},rpcUrls:{default:{http:["https://rpc.testnet.fantom.network"]}},blockExplorers:{default:{name:"FTMScan",url:"https://testnet.ftmscan.com",apiUrl:"https://testnet.ftmscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:8328688}}}),AAe=ye({id:12306,name:"Fibo Chain",nativeCurrency:{decimals:18,name:"fibo",symbol:"FIBO"},rpcUrls:{default:{http:["https://network.hzroc.art"]}},blockExplorers:{default:{name:"FiboScan",url:"https://scan.fibochain.org"}}}),CAe=ye({id:314,name:"Filecoin Mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3328594}}}),SAe=ye({id:314159,name:"Filecoin Calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}}),TAe=ye({id:3141,name:"Filecoin Hyperspace",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.hyperspace.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://hyperspace.filfox.info/en"}}}),BAe=ye({id:14,name:"Flare Mainnet",nativeCurrency:{decimals:18,name:"flare",symbol:"FLR"},rpcUrls:{default:{http:["https://flare-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Flare Explorer",url:"https://flare-explorer.flare.network",apiUrl:"https://flare-explorer.flare.network/api"}}}),MAe=ye({id:114,name:"Coston2",nativeCurrency:{decimals:18,name:"coston2flare",symbol:"C2FLR"},rpcUrls:{default:{http:["https://coston2-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston2 Explorer",url:"https://coston2-explorer.flare.network",apiUrl:"https://coston2-explorer.flare.network/api"}},testnet:!0}),FAe=ye({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}}),g3=1,DAe=ye({...gn,id:252,name:"Fraxtal",nativeCurrency:{name:"Frax Ether",symbol:"frxETH",decimals:18},rpcUrls:{default:{http:["https://rpc.frax.com"]}},blockExplorers:{default:{name:"fraxscan",url:"https://fraxscan.com",apiUrl:"https://api.fraxscan.com/api"}},contracts:{...gn.contracts,l2OutputOracle:{[g3]:{address:"0x66CC916Ed5C6C2FA97014f7D1cD141528Ae171e4"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[g3]:{address:"0x36cb65c1967A0Fb0EEE11569C51C2f2aA1Ca6f6D",blockCreated:19135323}},l1StandardBridge:{[g3]:{address:"0x34C0bD5877A5Ee7099D0f5688D65F4bB9158BDE2",blockCreated:19135323}}},sourceId:g3}),x3=17e3,kAe=ye({...gn,id:2522,name:"Fraxtal Testnet",nativeCurrency:{name:"Frax Ether",symbol:"frxETH",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.frax.com"]}},blockExplorers:{default:{name:"fraxscan testnet",url:"https://holesky.fraxscan.com",apiUrl:"https://api-holesky.fraxscan.com/api"}},contracts:{...gn.contracts,l2OutputOracle:{[x3]:{address:"0x715EA64DA13F4d0831ece4Ad3E8c1aa013167F32"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[x3]:{address:"0xB9c64BfA498d5b9a8398Ed6f46eb76d90dE5505d",blockCreated:318416}},l1StandardBridge:{[x3]:{address:"0x0BaafC217162f64930909aD9f2B27125121d6332",blockCreated:318416}}},sourceId:x3}),IAe=ye({id:122,name:"Fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io",apiUrl:"https://explorer.fuse.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),OAe=ye({id:123,name:"Fuse Sparknet",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io",apiUrl:"https://explorer.fusespark.io/api"}}}),PAe=ye({id:4689,name:"IoTeX",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.mainnet.iotex.io"],webSocket:["wss://babel-api.mainnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://iotexscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:22163670}}}),RAe=ye({id:4690,name:"IoTeX Testnet",nativeCurrency:{decimals:18,name:"IoTeX",symbol:"IOTX"},rpcUrls:{default:{http:["https://babel-api.testnet.iotex.io"],webSocket:["wss://babel-api.testnet.iotex.io"]}},blockExplorers:{default:{name:"IoTeXScan",url:"https://testnet.iotexscan.io"}},testnet:!0}),NAe=ye({id:8899,name:"JIBCHAIN L1",network:"jbc",nativeCurrency:{name:"JBC",symbol:"JBC",decimals:18},rpcUrls:{default:{http:["https://rpc-l1.jibchain.net"]},public:{http:["https://rpc-l1.jibchain.net"]}},blockExplorers:{default:{name:"Blockscout",url:"https://exp-l1.jibchain.net",apiUrl:"https://exp-l1.jibchain.net/api"}},contracts:{multicall3:{address:"0xc0C8C486D1466C57Efe13C2bf000d4c56F47CBdC",blockCreated:2299048}},testnet:!1}),$Ae=ye({id:686,name:"Karura",network:"karura",nativeCurrency:{name:"Karura",symbol:"KAR",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]},default:{http:["https://eth-rpc-karura.aca-api.network"],webSocket:["wss://eth-rpc-karura.aca-api.network"]}},blockExplorers:{default:{name:"Karura Blockscout",url:"https://blockscout.karura.network",apiUrl:"https://blockscout.karura.network/api"}},testnet:!1}),LAe=ye({id:1663,name:"Horizen Gobi Testnet",nativeCurrency:{decimals:18,name:"Test ZEN",symbol:"tZEN"},rpcUrls:{default:{http:["https://gobi-testnet.horizenlabs.io/ethv1"]}},blockExplorers:{default:{name:"Gobi Explorer",url:"https://gobi-explorer.horizen.io"}},contracts:{},testnet:!0}),FT=ye({id:5,name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io",apiUrl:"https://api-goerli.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xfc4AC75C46C914aF5892d6d3eFFcebD7917293F1",blockCreated:10339206},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6507670}},testnet:!0}),UAe=ye({id:100,name:"Gnosis",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.gnosischain.com"],webSocket:["wss://rpc.gnosischain.com/wss"]}},blockExplorers:{default:{name:"Gnosisscan",url:"https://gnosisscan.io",apiUrl:"https://api.gnosisscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:21022491}}}),jAe=ye({id:10200,name:"Gnosis Chiado",nativeCurrency:{decimals:18,name:"Gnosis",symbol:"xDAI"},rpcUrls:{default:{http:["https://rpc.chiadochain.net"],webSocket:["wss://rpc.chiadochain.net/wss"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.chiadochain.net",apiUrl:"https://blockscout.chiadochain.net/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4967313}},testnet:!0}),HAe=ye({id:31337,name:"Hardhat",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),zAe=ye({id:16666e5,name:"Harmony One",nativeCurrency:{name:"Harmony",symbol:"ONE",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/harmony"]}},blockExplorers:{default:{name:"Harmony Explorer",url:"https://explorer.harmony.one"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:24185753}}}),GAe=ye({id:11235,name:"HAQQ Mainnet",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLM"},rpcUrls:{default:{http:["https://rpc.eth.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.haqq.network",apiUrl:"https://explorer.haqq.network/api"}}}),VAe=ye({id:54211,name:"HAQQ Testedge 2",nativeCurrency:{decimals:18,name:"Islamic Coin",symbol:"ISLMT"},rpcUrls:{default:{http:["https://rpc.eth.testedge2.haqq.network"]}},blockExplorers:{default:{name:"HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",apiUrl:"https://explorer.testedge2.haqq.network/api"}}}),qAe=ye({id:295,name:"Hedera Mainnet",network:"hedera-mainnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://mainnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/mainnet"}},testnet:!1}),WAe=ye({id:296,name:"Hedera Testnet",network:"hedera-testnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://testnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/testnet"}},testnet:!0}),KAe=ye({id:297,name:"Hedera Previewnet",network:"hedera-previewnet",nativeCurrency:{symbol:"HBAR",name:"HBAR",decimals:18},rpcUrls:{default:{http:["https://previewnet.hashio.io/api"]}},blockExplorers:{default:{name:"Hashscan",url:"https://hashscan.io/previewnet"}},testnet:!0}),ZAe=ye({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",blockCreated:801613},ensUniversalResolver:{address:"0x2548a7E09deE955c4d97688dcB6C5b24085725f5",blockCreated:815385}},testnet:!0}),QAe=ye({id:107107114116,name:"Kakarot Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.kakarot.org"]}},blockExplorers:{default:{name:"Kakarot Scan",url:"https://sepolia.kakarotscan.org"}},testnet:!0}),JAe=ye({id:2222,name:"Kava EVM",network:"kava-mainnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Explorer",url:"https://kavascan.com",apiUrl:"https://kavascan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:3661165}},testnet:!1}),XAe=ye({id:2221,name:"Kava EVM Testnet",network:"kava-testnet",nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},rpcUrls:{default:{http:["https://evm.testnet.kava.io"]}},blockExplorers:{default:{name:"Kava EVM Testnet Explorer",url:"https://testnet.kavascan.com/",apiUrl:"https://testnet.kavascan.com/api"}},contracts:{multicall3:{address:"0xDf1D724A7166261eEB015418fe8c7679BBEa7fd6",blockCreated:7242179}},testnet:!0}),YAe=ye({id:321,name:"KCC Mainnet",network:"KCC Mainnet",nativeCurrency:{decimals:18,name:"KCS",symbol:"KCS"},rpcUrls:{default:{http:["https://kcc-rpc.com"]},public:{http:["https://kcc-rpc.com"]}},blockExplorers:{default:{name:"KCC Explorer",url:"https://explorer.kcc.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11760430}},testnet:!1}),eCe=ye({id:8217,name:"Klaytn",nativeCurrency:{decimals:18,name:"Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-cypress.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://scope.klaytn.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:96002415}}}),tCe=ye({id:1001,name:"Klaytn Baobab Testnet",network:"klaytn-baobab",nativeCurrency:{decimals:18,name:"Baobab Klaytn",symbol:"KLAY"},rpcUrls:{default:{http:["https://public-en-baobab.klaytn.net"]}},blockExplorers:{default:{name:"KlaytnScope",url:"https://baobab.klaytnscope.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:123390593}},testnet:!0}),nCe=ye({id:255,name:"Kroma",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.kroma.network"]}},blockExplorers:{default:{name:"Kroma Explorer",url:"https://blockscout.kroma.network",apiUrl:"https://blockscout.kroma.network/api"}},testnet:!1}),rCe=ye({id:2358,name:"Kroma Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://api.sepolia.kroma.network"]}},blockExplorers:{default:{name:"Kroma Sepolia Explorer",url:"https://blockscout.sepolia.kroma.network",apiUrl:"https://blockscout.sepolia.kroma.network/api"}},testnet:!0}),aCe=ye({id:1891,name:"LightLink Pegasus Testnet",network:"lightlink-pegasus",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.pegasus.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Pegasus Explorer",url:"https://pegasus.lightlink.io"}},testnet:!0}),iCe=ye({id:1890,name:"LightLink Phoenix Mainnet",network:"lightlink-phoenix",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://replicator.phoenix.lightlink.io/rpc/v1"]}},blockExplorers:{default:{name:"LightLink Phoenix Explorer",url:"https://phoenix.lightlink.io"}},testnet:!1}),sCe=ye({id:59144,name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42}},testnet:!1}),oCe=ye({id:59140,name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build",apiUrl:"https://goerli.lineascan.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:498623}},testnet:!0}),v3=11155111,cCe=ye({...gn,id:4202,network:"lisk-sepolia",name:"Lisk Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia-api.lisk.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.lisk.com",apiUrl:"https://sepolia-blockscout.lisk.com/api"}},contracts:{...gn.contracts,l2OutputOracle:{[v3]:{address:"0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{[v3]:{address:"0xe3d90F21490686Ec7eF37BE788E02dfC12787264"}},l1StandardBridge:{[v3]:{address:"0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5"}}},testnet:!0,sourceId:v3}),lCe=ye({id:1337,name:"Localhost",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"]}}}),uCe=ye({id:42,network:"lukso",name:"LUKSO",nativeCurrency:{name:"LUKSO",symbol:"LYX",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.lukso.network"],webSocket:["wss://ws-rpc.mainnet.lukso.network"]}},blockExplorers:{default:{name:"LUKSO Mainnet Explorer",url:"https://explorer.execution.mainnet.lukso.network",apiUrl:"https://api.explorer.execution.mainnet.lukso.network/api"}}}),DT=ye({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x8cab227b1162f03b8338331adaad7aadc83b895e",blockCreated:18958930},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),fCe=ye({id:595,name:"Mandala TC9",network:"mandala",nativeCurrency:{name:"Mandala",symbol:"mACA",decimals:18},rpcUrls:{public:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]},default:{http:["https://eth-rpc-tc9.aca-staging.network"],webSocket:["wss://eth-rpc-tc9.aca-staging.network"]}},blockExplorers:{default:{name:"Mandala Blockscout",url:"https://blockscout.mandala.aca-staging.network",apiUrl:"https://blockscout.mandala.aca-staging.network/api"}},testnet:!0}),dCe=ye({id:169,name:"Manta Pacific Mainnet",network:"manta",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://pacific-rpc.manta.network/http"]}},blockExplorers:{default:{name:"Manta Explorer",url:"https://pacific-explorer.manta.network",apiUrl:"https://pacific-explorer.manta.network/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:332890}}}),hCe=ye({id:3441005,name:"Manta Pacific Testnet",network:"manta-testnet",nativeCurrency:{decimals:18,name:"ETH",symbol:"ETH"},rpcUrls:{default:{http:["https://manta-testnet.calderachain.xyz/http"]}},blockExplorers:{default:{name:"Manta Testnet Explorer",url:"https://pacific-explorer.testnet.manta.network",apiUrl:"https://pacific-explorer.testnet.manta.network/api"}},contracts:{multicall3:{address:"0x211B1643b95Fe76f11eD8880EE810ABD9A4cf56C",blockCreated:419915}},testnet:!0}),pCe=ye({id:5e3,name:"Mantle",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",apiUrl:"https://explorer.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:304717}}}),yCe=ye({id:5001,name:"Mantle Testnet",nativeCurrency:{decimals:18,name:"MNT",symbol:"MNT"},rpcUrls:{default:{http:["https://rpc.testnet.mantle.xyz"]}},blockExplorers:{default:{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",apiUrl:"https://explorer.testnet.mantle.xyz/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:561333}},testnet:!0}),mCe=ye({id:571,name:"MetaChain Mainnet",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://rpc.metatime.com"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://explorer.metatime.com"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}}}),bCe=ye({id:1453,name:"MetaChain Istanbul",nativeCurrency:{name:"Metatime Coin",symbol:"MTC",decimals:18},rpcUrls:{default:{http:["https://istanbul-rpc.metachain.dev"]}},blockExplorers:{default:{name:"MetaExplorer",url:"https://istanbul-explorer.metachain.dev"}},contracts:{multicall3:{address:"0x0000000000000000000000000000000000003001",blockCreated:0}},testnet:!0}),gCe=ye({id:82,name:"Meter",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpc.meter.io"]}},blockExplorers:{default:{name:"MeterScan",url:"https://scan.meter.io"}}}),xCe=ye({id:83,name:"Meter Testnet",nativeCurrency:{decimals:18,name:"MTR",symbol:"MTR"},rpcUrls:{default:{http:["https://rpctest.meter.io"]}},blockExplorers:{default:{name:"MeterTestnetScan",url:"https://scan-warringstakes.meter.io"}}}),vCe=ye({id:1088,name:"Metis",nativeCurrency:{decimals:18,name:"Metis",symbol:"METIS"},rpcUrls:{default:{http:["https://andromeda.metis.io/?owner=1088"]}},blockExplorers:{default:{name:"Andromeda Explorer",url:"https://andromeda-explorer.metis.io",apiUrl:"https://andromeda-explorer.metis.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2338552}}}),wCe=ye({id:599,name:"Metis Goerli",nativeCurrency:{decimals:18,name:"Metis Goerli",symbol:"METIS"},rpcUrls:{default:{http:["https://goerli.gateway.metisdevops.link"]}},blockExplorers:{default:{name:"Metis Goerli Explorer",url:"https://goerli.explorer.metisdevops.link",apiUrl:"https://goerli.explorer.metisdevops.link/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1006207}}}),ECe=ye({id:7518,name:"MEVerse Chain Mainnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversemainnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://www.meversescan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:86881340}}}),_Ce=ye({id:4759,name:"MEVerse Chain Testnet",nativeCurrency:{decimals:18,name:"MEVerse",symbol:"MEV"},rpcUrls:{default:{http:["https://rpc.meversetestnet.io"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.meversescan.io/"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:64371115}},testnet:!0}),ACe=ye({id:34443,name:"Mode Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.mode.network"]}},blockExplorers:{default:{name:"Mode Explorer",url:"https://explorer.mode.network"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:2465882}}}),CCe=ye({id:919,name:"Mode Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.mode.network"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia.explorer.mode.network",apiUrl:"https://sepolia.explorer.mode.network/api"}},contracts:{multicall3:{address:"0xBAba8373113Fb7a68f195deF18732e01aF8eDfCF",blockCreated:3019007}},testnet:!0}),SCe=ye({id:1287,name:"Moonbase Alpha",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["https://rpc.api.moonbase.moonbeam.network"],webSocket:["wss://wss.api.moonbase.moonbeam.network"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonbase.moonscan.io",apiUrl:"https://moonbase.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1850686}},testnet:!0}),TCe=ye({id:1284,name:"Moonbeam",nativeCurrency:{decimals:18,name:"GLMR",symbol:"GLMR"},rpcUrls:{default:{http:["https://moonbeam.public.blastapi.io"],webSocket:["wss://moonbeam.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonscan.io",apiUrl:"https://api-moonbeam.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:609002}},testnet:!1}),BCe=ye({id:1281,name:"Moonbeam Development Node",nativeCurrency:{decimals:18,name:"DEV",symbol:"DEV"},rpcUrls:{default:{http:["http://127.0.0.1:9944"],webSocket:["wss://127.0.0.1:9944"]}}}),MCe=ye({id:1285,name:"Moonriver",nativeCurrency:{decimals:18,name:"MOVR",symbol:"MOVR"},rpcUrls:{default:{http:["https://moonriver.public.blastapi.io"],webSocket:["wss://moonriver.public.blastapi.io"]}},blockExplorers:{default:{name:"Moonscan",url:"https://moonriver.moonscan.io",apiUrl:"https://api-moonriver.moonscan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1597904}},testnet:!1}),FCe=ye({id:245022926,name:"Neon EVM DevNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://devnet.neonevm.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://devnet.neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:205206112}},testnet:!0}),DCe=ye({id:245022934,network:"neonMainnet",name:"Neon EVM MainNet",nativeCurrency:{name:"NEON",symbol:"NEON",decimals:18},rpcUrls:{default:{http:["https://neon-proxy-mainnet.solana.p2p.org"]}},blockExplorers:{default:{name:"Neonscan",url:"https://neonscan.org"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:206545524}},testnet:!1}),kCe=ye({id:4242,name:"Nexi",nativeCurrency:{name:"Nexi",symbol:"NEXI",decimals:18},rpcUrls:{default:{http:["https://rpc.chain.nexi.technology"]}},blockExplorers:{default:{name:"NexiScan",url:"https://www.nexiscan.com",apiUrl:"https://www.nexiscan.com/api"}},contracts:{multicall3:{address:"0x0277A46Cc69A57eE3A6C8c158bA874832F718B8E",blockCreated:25770160}}}),ICe=ye({id:240,name:"Nexilix Smart Chain",nativeCurrency:{decimals:18,name:"Nexilix",symbol:"NEXILIX"},rpcUrls:{default:{http:["https://rpcurl.pos.nexilix.com"]}},blockExplorers:{default:{name:"NexilixScan",url:"https://scan.nexilix.com"}},contracts:{multicall3:{address:"0x58381c8e2BF9d0C2C4259cA14BdA9Afe02831244",blockCreated:74448}}}),OCe=ye({id:248,name:"Oasys",nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.oasys.games"]}},blockExplorers:{default:{name:"OasysScan",url:"https://scan.oasys.games",apiUrl:"https://scan.oasys.games/api"}}}),PCe=ye({id:4090,network:"oasis-testnet",name:"Oasis Testnet",nativeCurrency:{name:"Fasttoken",symbol:"FTN",decimals:18},rpcUrls:{default:{http:["https://rpc1.oasis.bahamutchain.com"]},public:{http:["https://rpc1.oasis.bahamutchain.com"]}},blockExplorers:{default:{name:"Ftnscan",url:"https://oasis.ftnscan.com",apiUrl:"https://oasis.ftnscan.com/api"}},testnet:!0}),RCe=ye({id:66,name:"OKC",nativeCurrency:{decimals:18,name:"OKT",symbol:"OKT"},rpcUrls:{default:{http:["https://exchainrpc.okex.org"]}},blockExplorers:{default:{name:"oklink",url:"https://www.oklink.com/okc"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:10364792}}}),w3=1,Lm=ye({...gn,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io"}},contracts:{...gn.contracts,l2OutputOracle:{[w3]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[w3]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[w3]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:w3}),E3=5,NCe=ye({...gn,id:420,name:"Optimism Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io",apiUrl:"https://goerli-optimism.etherscan.io/api"}},contracts:{...gn.contracts,l2OutputOracle:{[E3]:{address:"0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461},portal:{[E3]:{address:"0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383"}},l1StandardBridge:{[E3]:{address:"0x636Af16bf2f682dD3109e60102b8E1A089FedAa8"}}},testnet:!0,sourceId:E3}),_3=11155111,k6=ye({...gn,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...gn.contracts,l2OutputOracle:{[_3]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[_3]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[_3]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:_3}),$Ce=ye({id:204,name:"opBNB",nativeCurrency:{name:"BNB",symbol:"BNB",decimals:18},rpcUrls:{default:{http:["https://opbnb-mainnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://mainnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:512881}}}),LCe=ye({id:5611,name:"opBNB Testnet",nativeCurrency:{decimals:18,name:"tBNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://opbnb-testnet-rpc.bnbchain.org"]}},blockExplorers:{default:{name:"opbnbscan",url:"https://testnet.opbnbscan.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3705108}},testnet:!0}),UCe=ye({id:9700,name:"OORT MainnetDev",nativeCurrency:{decimals:18,name:"OORT",symbol:"OORT"},rpcUrls:{default:{http:["https://dev-rpc.oortech.com"]}},blockExplorers:{oort:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"},default:{name:"OORT MainnetDev Explorer",url:"https://dev-scan.oortech.com"}}}),jCe=ye({id:11297108109,name:"Palm",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}}}),HCe=ye({id:11297108099,name:"Palm Testnet",nativeCurrency:{decimals:18,name:"PALM",symbol:"PALM"},rpcUrls:{default:{http:["https://palm-mainnet.public.blastapi.io"],webSocket:["wss://palm-mainnet.public.blastapi.io"]}},blockExplorers:{default:{name:"Chainlens",url:"https://palm.chainlens.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15429248}},testnet:!0}),A3=1,zCe=ye({id:424,network:"pgn",name:"PGN",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"},blocksout:{name:"PGN Explorer",url:"https://explorer.publicgoods.network",apiUrl:"https://explorer.publicgoods.network/api"}},contracts:{l2OutputOracle:{[A3]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3380209},portal:{[A3]:{address:"0xb26Fd985c5959bBB382BAFdD0b879E149e48116c"}},l1StandardBridge:{[A3]:{address:"0xD0204B9527C1bA7bD765Fa5CCD9355d38338272b"}}},formatters:MT,sourceId:A3}),C3=11155111,GCe=ye({id:58008,network:"pgn-testnet",name:"PGN ",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.publicgoods.network"]}},blockExplorers:{default:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"},blocksout:{name:"PGN Testnet Explorer",url:"https://explorer.sepolia.publicgoods.network",apiUrl:"https://explorer.sepolia.publicgoods.network/api"}},contracts:{l2OutputOracle:{[C3]:{address:"0xD5bAc3152ffC25318F848B3DD5dA6C85171BaEEe"}},portal:{[C3]:{address:"0xF04BdD5353Bb0EFF6CA60CfcC78594278eBfE179"}},l1StandardBridge:{[C3]:{address:"0xFaE6abCAF30D23e233AC7faF747F2fC3a5a6Bfa3"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3754925}},formatters:MT,sourceId:C3,testnet:!0}),VCe=ye({id:13381,name:"Phoenix Blockchain",nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},rpcUrls:{default:{http:["https://rpc.phoenixplorer.com"]}},blockExplorers:{default:{name:"Phoenixplorer",url:"https://phoenixplorer.com",apiUrl:"https://phoenixplorer.com/api"}},contracts:{multicall3:{address:"0x498cF757a575cFF2c2Ed9f532f56Efa797f86442",blockCreated:5620192}}}),qCe=ye({id:242,name:"Plinga",nativeCurrency:{name:"Plinga",symbol:"PLINGA",decimals:18},rpcUrls:{default:{http:["https://rpcurl.mainnet.plgchain.com"]}},blockExplorers:{default:{name:"Plgscan",url:"https://www.plgscan.com"}},contracts:{multicall3:{address:"0x0989576160f2e7092908BB9479631b901060b6e4",blockCreated:204489}}}),WCe=ye({id:137,name:"Polygon",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://polygon-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),KCe=ye({id:80002,name:"Polygon Amoy",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0}),ZCe=ye({id:80001,name:"Polygon Mumbai",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com",apiUrl:"https://mumbai.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),QCe=ye({id:1442,name:"Polygon zkEVM Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com",apiUrl:"https://testnet-zkevm.polygonscan.com/api"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),JCe=ye({id:1101,name:"Polygon zkEVM",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com",apiUrl:"https://api-zkevm.polygonscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),XCe=ye({id:369,name:"PulseChain",nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,rpcUrls:{default:{http:["https://rpc.pulsechain.com"],webSocket:["wss://ws.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.pulsechain.com",apiUrl:"https://api.scan.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),YCe=ye({id:943,name:"PulseChain V4",testnet:!0,nativeCurrency:{name:"V4 Pulse",symbol:"v4PLS",decimals:18},rpcUrls:{default:{http:["https://rpc.v4.testnet.pulsechain.com"],webSocket:["wss://ws.v4.testnet.pulsechain.com"]}},blockExplorers:{default:{name:"PulseScan",url:"https://scan.v4.testnet.pulsechain.com",apiUrl:"https://scan.v4.testnet.pulsechain.com/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),eSe=ye({id:35441,name:"Q Mainnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.q.org"]}},blockExplorers:{default:{name:"Q Mainnet Explorer",url:"https://explorer.q.org",apiUrl:"https://explorer.q.org/api"}}}),tSe=ye({id:35443,name:"Q Testnet",nativeCurrency:{decimals:18,name:"Q",symbol:"Q"},rpcUrls:{default:{http:["https://rpc.qtestnet.org"]}},blockExplorers:{default:{name:"Q Testnet Explorer",url:"https://explorer.qtestnet.org",apiUrl:"https://explorer.qtestnet.org/api"}},testnet:!0}),nSe=ye({id:570,name:"Rollux Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.rollux.com"],webSocket:["wss://rpc.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxExplorer",url:"https://explorer.rollux.com",apiUrl:"https://explorer.rollux.com/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:119222}}}),rSe=ye({id:57e3,name:"Rollux Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc-tanenbaum.rollux.com/"],webSocket:["wss://rpc-tanenbaum.rollux.com/wss"]}},blockExplorers:{default:{name:"RolluxTestnetExplorer",url:"https://rollux.tanenbaum.io",apiUrl:"https://rollux.tanenbaum.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1813675}}}),aSe=ye({id:2020,name:"Ronin",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://api.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Ronin Explorer",url:"https://app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:26023535}}}),iSe=ye({id:30,name:"Rootstock Mainnet",network:"rootstock",nativeCurrency:{decimals:18,name:"Rootstock Bitcoin",symbol:"RBTC"},rpcUrls:{default:{http:["https://public-node.rsk.co"]}},blockExplorers:{default:{name:"RSK Explorer",url:"https://explorer.rsk.co"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:4249540}}}),sSe=ye({id:2021,name:"Saigon Testnet",nativeCurrency:{name:"RON",symbol:"RON",decimals:18},rpcUrls:{default:{http:["https://saigon-testnet.roninchain.com/rpc"]}},blockExplorers:{default:{name:"Saigon Explorer",url:"https://saigon-app.roninchain.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:18736871}},testnet:!0}),oSe=ye({id:23294,name:"Oasis Sapphire",network:"sapphire",nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},rpcUrls:{default:{http:["https://sapphire.oasis.io"],webSocket:["wss://sapphire.oasis.io/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",apiUrl:"https://explorer.sapphire.oasis.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:734531}}}),cSe=ye({id:23295,name:"Oasis Sapphire Testnet",network:"sapphire-testnet",nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},rpcUrls:{default:{http:["https://testnet.sapphire.oasis.dev"],webSocket:["wss://testnet.sapphire.oasis.dev/ws"]}},blockExplorers:{default:{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",apiUrl:"https://testnet.explorer.sapphire.oasis.dev/api"}},testnet:!0}),lSe=ye({id:534352,name:"Scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),uSe=ye({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io",apiUrl:"https://sepolia-blockscout.scroll.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0}),fSe=ye({id:534353,name:"Scroll Testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://alpha-rpc.scroll.io/l2"],webSocket:["wss://alpha-rpc.scroll.io/l2/ws"]}},blockExplorers:{default:{name:"Blockscout",url:"https://blockscout.scroll.io",apiUrl:"https://blockscout.scroll.io/api"}},testnet:!0}),UE=ye({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xBaBC7678D7A63104f1658c11D6AE9A21cdA09725",blockCreated:5043334}},testnet:!0}),dSe=ye({id:148,name:"Shimmer",network:"shimmer",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.shimmer.network",apiUrl:"https://explorer.evm.shimmer.network/api"}}}),hSe=ye({id:1073,name:"Shimmer Testnet",network:"shimmer-testnet",nativeCurrency:{decimals:18,name:"Shimmer",symbol:"SMR"},rpcUrls:{default:{http:["https://json-rpc.evm.testnet.shimmer.network"]}},blockExplorers:{default:{name:"Shimmer Network Explorer",url:"https://explorer.evm.testnet.shimmer.network",apiUrl:"https://explorer.evm.testnet.shimmer.network/api"}},testnet:!0}),pSe=ye({id:391845894,name:"SKALE | Block Brawlers",nativeCurrency:{name:"BRAWL",symbol:"BRAWL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/frayed-decent-antares"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/frayed-decent-antares"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://frayed-decent-antares.explorer.mainnet.skalenodes.com"}},contracts:{}}),ySe=ye({id:1564830818,name:"SKALE | Calypso NFT Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/honorable-steel-rasalhague"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3107626}}}),mSe=ye({id:974399131,name:"SKALE Calypso Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/giant-half-dual-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/giant-half-dual-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:103220}},testnet:!0}),bSe=ye({id:1026062157,name:"SKALE | CryptoBlades",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/affectionate-immediate-pollux"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/affectionate-immediate-pollux"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://affectionate-immediate-pollux.explorer.mainnet.skalenodes.com"}},contracts:{}}),gSe=ye({id:2046399126,name:"SKALE | Crypto Colosseum",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/haunting-devoted-deneb"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/haunting-devoted-deneb"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://haunting-devoted-deneb.explorer.mainnet.skalenodes.com"}},contracts:{}}),xSe=ye({id:2046399126,name:"SKALE | Europa Liquidity Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/elated-tan-skat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/elated-tan-skat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:3113495}}}),vSe=ye({id:1444673419,name:"SKALE Europa Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/juicy-low-small-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/juicy-low-small-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:110858}},testnet:!0}),wSe=ye({id:2139927552,name:"SKALE | Exorde",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/light-vast-diphda"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/light-vast-diphda"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://light-vast-diphda.explorer.mainnet.skalenodes.com"}},contracts:{}}),ESe=ye({id:1273227453,name:"SKALE | Human Protocol",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/wan-red-ain"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/wan-red-ain"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com"}},contracts:{}}),_Se=ye({id:1482601649,name:"SKALE | Nebula Gaming Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/green-giddy-denebola"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/green-giddy-denebola"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2372986}}}),ASe=ye({id:37084624,name:"SKALE Nebula Testnet",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/lanky-ill-funny-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/lanky-ill-funny-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://lanky-ill-funny-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:105141}},testnet:!0}),CSe=ye({id:278611351,name:"SKALE | Razor Network",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/turbulent-unique-scheat"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/turbulent-unique-scheat"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://turbulent-unique-scheat.explorer.mainnet.skalenodes.com"}},contracts:{}}),SSe=ye({id:1350216234,name:"SKALE | Titan Community Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://mainnet.skalenodes.com/v1/parallel-stormy-spica"],webSocket:["wss://mainnet.skalenodes.com/v1/ws/parallel-stormy-spica"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://parallel-stormy-spica.explorer.mainnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2076458}}}),TSe=ye({id:1020352220,name:"SKALE Titan Hub",nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},rpcUrls:{default:{http:["https://testnet.skalenodes.com/v1/aware-fake-trim-testnet"],webSocket:["wss://testnet.skalenodes.com/v1/ws/aware-fake-trim-testnet"]}},blockExplorers:{default:{name:"SKALE Explorer",url:"https://aware-fake-trim-testnet.explorer.testnet.skalenodes.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:104072}},testnet:!0}),BSe=ye({id:19,name:"Songbird Mainnet",nativeCurrency:{decimals:18,name:"songbird",symbol:"SGB"},rpcUrls:{default:{http:["https://songbird-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Songbird Explorer",url:"https://songbird-explorer.flare.network",apiUrl:"https://songbird-explorer.flare.network/api"}}}),MSe=ye({id:16,name:"Coston",nativeCurrency:{decimals:18,name:"costonflare",symbol:"CFLR"},rpcUrls:{default:{http:["https://coston-api.flare.network/ext/C/rpc"]}},blockExplorers:{default:{name:"Coston Explorer",url:"https://coston-explorer.flare.network",apiUrl:"https://coston-explorer.flare.network/api"}},testnet:!0}),FSe=ye({id:88882,name:"Chiliz Spicy Testnet",network:"chiliz-spicy-Testnet",nativeCurrency:{decimals:18,name:"CHZ",symbol:"CHZ"},rpcUrls:{default:{http:["https://spicy-rpc.chiliz.com","https://chiliz-spicy.publicnode.com"],webSocket:["wss://spicy-rpc-ws.chiliz.com","wss://chiliz-spicy.publicnode.com"]}},blockExplorers:{default:{name:"Chiliz Explorer",url:"http://spicy-explorer.chiliz.com",apiUrl:"http://spicy-explorer.chiliz.com/api"}},testnet:!0}),DSe=ye({id:8082,name:"Shardeum Sphinx",nativeCurrency:{name:"SHARDEUM",symbol:"SHM",decimals:18},rpcUrls:{default:{http:["https://sphinx.shardeum.org"]}},blockExplorers:{default:{name:"Shardeum Explorer",url:"https://explorer-sphinx.shardeum.org"}},testnet:!0}),kSe=ye({id:109,name:"Shibarium",network:"shibarium",nativeCurrency:{name:"Bone",symbol:"BONE",decimals:18},rpcUrls:{default:{http:["https://rpc.shibrpc.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://shibariumscan.io"}},contracts:{multicall3:{address:"0x864Bf681ADD6052395188A89101A1B37d3B4C961",blockCreated:265900}}}),ISe=ye({id:57,name:"Syscoin Mainnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.syscoin.org"],webSocket:["wss://rpc.syscoin.org/wss"]}},blockExplorers:{default:{name:"SyscoinExplorer",url:"https://explorer.syscoin.org",apiUrl:"https://explorer.syscoin.org/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:287139}}}),OSe=ye({id:5700,name:"Syscoin Tanenbaum Testnet",nativeCurrency:{decimals:18,name:"Syscoin",symbol:"SYS"},rpcUrls:{default:{http:["https://rpc.tanenbaum.io"],webSocket:["wss://rpc.tanenbaum.io/wss"]}},blockExplorers:{default:{name:"SyscoinTestnetExplorer",url:"https://tanenbaum.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:271288}}}),PSe=ye({id:841,name:"Taraxa Mainnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.mainnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io"}}}),RSe=ye({id:167007,name:"Taiko Jolnir (Alpha-5 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.jolnir.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.jolnir.taiko.xyz"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:732706}},testnet:!0}),NSe=ye({id:167008,name:"Taiko Katla (Alpha-6 Testnet)",network:"tko-katla",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.katla.taiko.xyz"]},public:{http:["https://rpc.katla.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.katla.taiko.xyz"}}}),$Se=ye({id:167005,name:"Taiko (Alpha-3 Testnet)",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.test.taiko.xyz"]}},blockExplorers:{default:{name:"blockscout",url:"https://explorer.test.taiko.xyz"}}}),LSe=ye({id:842,name:"Taraxa Testnet",nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},rpcUrls:{default:{http:["https://rpc.testnet.taraxa.io"]}},blockExplorers:{default:{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io"}},testnet:!0}),USe=ye({id:40,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://mainnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan",url:"https://www.teloscan.io/"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:246530709}}}),jSe=ye({id:41,name:"Telos",nativeCurrency:{decimals:18,name:"Telos",symbol:"TLOS"},rpcUrls:{default:{http:["https://testnet.telos.net/evm"]}},blockExplorers:{default:{name:"Teloscan (testnet)",url:"https://testnet.teloscan.io/"}},testnet:!0}),HSe=ye({id:1559,name:"Tenet",network:"tenet-mainnet",nativeCurrency:{name:"TENET",symbol:"TENET",decimals:18},rpcUrls:{default:{http:["https://rpc.tenet.org"]}},blockExplorers:{default:{name:"TenetScan Mainnet",url:"https://tenetscan.io",apiUrl:"https://tenetscan.io/api"}},testnet:!1}),zSe=ye({id:997,name:"5ireChain Thunder Testnet",nativeCurrency:{name:"5ire Token",symbol:"5IRE",decimals:18},rpcUrls:{default:{http:["https://rpc-testnet.5ire.network"]}},blockExplorers:{default:{name:"5ireChain Explorer",url:"https://explorer.5ire.network"}},testnet:!0}),GSe=ye({id:100009,name:"Vechain",nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},rpcUrls:{default:{http:["https://mainnet.vechain.org"]}},blockExplorers:{default:{name:"Vechain Explorer",url:"https://explore.vechain.org"},vechainStats:{name:"Vechain Stats",url:"https://vechainstats.com"}}}),VSe=ye({id:888,name:"Wanchain",nativeCurrency:{name:"WANCHAIN",symbol:"WAN",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:56891","https://gwan2-ssl.wandevs.org"]}},blockExplorers:{default:{name:"WanScan",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0xcDF6A1566e78EB4594c86Fe73Fcdc82429e97fbB",blockCreated:25312390}}}),qSe=ye({id:999,name:"Wanchain Testnet",nativeCurrency:{name:"WANCHAIN",symbol:"WANt",decimals:18},rpcUrls:{default:{http:["https://gwan-ssl.wandevs.org:46891"]}},blockExplorers:{default:{name:"WanScanTest",url:"https://wanscan.org"}},contracts:{multicall3:{address:"0x11c89bF4496c39FB80535Ffb4c92715839CC5324",blockCreated:24743448}},testnet:!0}),WSe=ye({id:1111,name:"WEMIX",network:"wemix-mainnet",nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},rpcUrls:{default:{http:["https://api.wemix.com"]},public:{http:["https://api.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://explorer.wemix.com"}}}),KSe=ye({id:1112,name:"WEMIX Testnet",network:"wemix-testnet",nativeCurrency:{name:"WEMIX",symbol:"tWEMIX",decimals:18},rpcUrls:{default:{http:["https://api.test.wemix.com"]},public:{http:["https://api.test.wemix.com"]}},blockExplorers:{default:{name:"wemixExplorer",url:"https://testnet.wemixscan.com",apiUrl:"https://testnet.wemixscan.com/api"}},testnet:!0}),ZSe=ye({id:195,name:"X1 Testnet",nativeCurrency:{decimals:18,name:"OKB",symbol:"OKB"},rpcUrls:{default:{http:["https://x1testrpc.okx.com"]}},blockExplorers:{default:{name:"OKLink",url:"https://www.oklink.com/x1-test"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:624344}},testnet:!0}),QSe=ye({id:50,name:"XinFin Network",nativeCurrency:{decimals:18,name:"XDC",symbol:"XDC"},rpcUrls:{default:{http:["https://rpc.xinfin.network"]}},blockExplorers:{xinfin:{name:"XinFin",url:"https://explorer.xinfin.network"},default:{name:"Blocksscan",url:"https://xdc.blocksscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:71542788}}}),JSe=ye({id:51,name:"Apothem Network",nativeCurrency:{decimals:18,name:"TXDC",symbol:"TXDC"},rpcUrls:{default:{http:["https://erpc.apothem.network"]}},blockExplorers:{default:{name:"Blocksscan",url:"https://apothem.blocksscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:59765389}}}),XSe=ye({id:1337803,name:"Zhejiang",nativeCurrency:{name:"Zhejiang Ether",symbol:"ZhejETH",decimals:18},rpcUrls:{default:{http:["https://rpc.zhejiang.ethpandaops.io"]}},blockExplorers:{default:{name:"Beaconchain",url:"https://zhejiang.beaconcha.in"}},testnet:!0}),YSe=ye({id:42766,name:"ZKFair Mainnet",network:"zkfair-mainnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://rpc.zkfair.io"]},public:{http:["https://rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://scan.zkfair.io",apiUrl:"https://scan.zkfair.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:6090959}},testnet:!1}),eTe=ye({id:43851,name:"ZKFair Testnet",network:"zkfair-testnet",nativeCurrency:{decimals:18,name:"USD Coin",symbol:"USDC"},rpcUrls:{default:{http:["https://testnet-rpc.zkfair.io"]},public:{http:["https://testnet-rpc.zkfair.io"]}},blockExplorers:{default:{name:"zkFair Explorer",url:"https://testnet-scan.zkfair.io"}},testnet:!0}),lW={block:EA({format(t){var n;const e=(n=t.transactions)==null?void 0:n.map(r=>{var i;if(typeof r=="string")return r;const a=(i=lW.transaction)==null?void 0:i.format(r);return a.typeHex==="0x71"?a.type="eip712":a.typeHex==="0xff"&&(a.type="priority"),a});return{l1BatchNumber:t.l1BatchNumber?Vn(t.l1BatchNumber):null,l1BatchTimestamp:t.l1BatchTimestamp?Vn(t.l1BatchTimestamp):null,transactions:e}}}),transaction:wA({format(t){const e={};return t.type==="0x71"?e.type="eip712":t.type==="0xff"&&(e.type="priority"),{...e,l1BatchNumber:t.l1BatchNumber?Vn(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?Vn(t.l1BatchTxIndex):null}}}),transactionReceipt:tL({format(t){return{l1BatchNumber:t.l1BatchNumber?Vn(t.l1BatchNumber):null,l1BatchTxIndex:t.l1BatchTxIndex?Vn(t.l1BatchTxIndex):null,logs:t.logs.map(e=>({...X$(e),l1BatchNumber:e.l1BatchNumber?Vn(e.l1BatchNumber):null,transactionLogIndex:Qg(e.transactionLogIndex),logType:e.logType})),l2ToL1Logs:t.l2ToL1Logs.map(e=>({blockNumber:Vn(e.blockHash),blockHash:e.blockHash,l1BatchNumber:Vn(e.l1BatchNumber),transactionIndex:Vn(e.transactionIndex),shardId:Vn(e.shardId),isService:e.isService,sender:e.sender,key:e.key,value:e.value,transactionHash:e.transactionHash,logIndex:Vn(e.logIndex)}))}}}),transactionRequest:Q$({exclude:["customSignature","factoryDeps","gasPerPubdata","paymaster","paymasterInput"],format(t){return t.gasPerPubdata||t.paymaster&&t.paymasterInput||t.factoryDeps||t.customSignature?{eip712Meta:{...t.gasPerPubdata?{gasPerPubdata:ct(t.gasPerPubdata)}:{},...t.paymaster&&t.paymasterInput?{paymasterParams:{paymaster:t.paymaster,paymasterInput:Array.from(vm(t.paymasterInput))}}:{},...t.factoryDeps?{factoryDeps:t.factoryDeps}:{},...t.customSignature?{customSignature:Array.from(vm(t.customSignature))}:{}},type:"0x71"}:{}}})};class tTe extends Lt{constructor(){super(["Transaction is not an EIP712 transaction.","","Transaction must:",' - include `type: "eip712"`'," - include one of the following: `customSignature`, `paymaster`, `paymasterInput`, `gasPerPubdata`, `factoryDeps`"].join(` -`)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidEip712TransactionError"})}}function uW(t){return!!(t.type==="eip712"||"customSignature"in t&&t.customSignature||"paymaster"in t&&t.paymaster||"paymasterInput"in t&&t.paymasterInput||"gasPerPubdata"in t&&typeof t.gasPerPubdata=="bigint"||"factoryDeps"in t&&t.factoryDeps)}function fW(t){const{chainId:e,to:n,from:r,paymaster:a,paymasterInput:i}=t;if(!uW(t))throw new tTe;if(!e||e<=0)throw new Gp({chainId:e});if(n&&!Rr(n))throw new ji({address:n});if(r&&!Rr(r))throw new ji({address:r});if(a&&!Rr(a))throw new ji({address:a});if(a&&!i)throw new Lt("`paymasterInput` must be provided when `paymaster` is defined");if(!a&&i)throw new Lt("`paymaster` must be provided when `paymasterInput` is defined")}const nTe=(t,e)=>uW(t)?aTe(t):SA(t,e),rTe={transaction:nTe};function aTe(t){const{chainId:e,gas:n,nonce:r,to:a,from:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,customSignature:h,factoryDeps:b,paymaster:v,paymasterInput:E,gasPerPubdata:C,data:M}=t;fW(t);const T=[r?ct(r):"0x",c?ct(c):"0x",o?ct(o):"0x",n?ct(n):"0x",a??"0x",s?ct(s):"0x",M??"0x0",ct(e),ct(""),ct(""),ct(e),i??"0x",C?ct(C):"0x",b??[],h??"0x",v&&E?[v,E]:[]];return Hp(["0x71",bd(T)])}const iTe=t=>{fW(t);const e=sTe(t);return{domain:{name:"zkSync",version:"2",chainId:t.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:e}};function sTe(t){const{gas:e,nonce:n,to:r,from:a,value:i,maxFeePerGas:s,maxPriorityFeePerGas:o,factoryDeps:c,paymaster:h,paymasterInput:b,gasPerPubdata:v,data:E}=t;return{txType:113n,from:BigInt(a),to:r?BigInt(r):0n,gasLimit:e??0n,gasPerPubdataByteLimit:v??0n,maxFeePerGas:s??0n,maxPriorityFeePerGas:o??0n,paymaster:h?BigInt(h):0n,nonce:n?BigInt(n):0n,value:i??0n,data:E||"0x0",factoryDeps:c??[],paymasterInput:b||"0x0"}}const kT={formatters:lW,serializers:rTe,custom:{getEip712Domain:iTe}},oTe=ye({...kT,id:324,name:"zkSync Era",network:"zksync-era",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.era.zksync.io"],webSocket:["wss://mainnet.era.zksync.io/ws"]}},blockExplorers:{default:{name:"Etherscan",url:"https://era.zksync.network/",apiUrl:"https://api-era.zksync.network/api"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}}}),cTe=ye({...kT,id:280,name:"zkSync Era Testnet",network:"zksync-era-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://testnet.era.zksync.dev"],webSocket:["wss://testnet.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://goerli.explorer.zksync.io"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),lTe=ye({...kT,id:300,name:"zkSync Sepolia Testnet",network:"zksync-sepolia-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.era.zksync.dev"],webSocket:["wss://sepolia.era.zksync.dev/ws"]}},blockExplorers:{default:{name:"zkExplorer",url:"https://sepolia.explorer.zksync.io/"}},contracts:{multicall3:{address:"0xF9cda624FBC7e059355ce98a31693d299FACd963"}},testnet:!0}),uTe=ye({id:7e3,name:"ZetaChain",nativeCurrency:{decimals:18,name:"Zeta",symbol:"ZETA"},rpcUrls:{default:{http:["https://zetachain-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://explorer.zetachain.com"}},testnet:!1}),fTe=ye({id:7001,name:"ZetaChain Athens Testnet",nativeCurrency:{decimals:18,name:"Zeta",symbol:"aZETA"},rpcUrls:{default:{http:["https://zetachain-athens-evm.blockpi.network/v1/rpc/public"]}},blockExplorers:{default:{name:"ZetaScan",url:"https://athens3.explorer.zetachain.com"}},testnet:!0}),dTe=ye({id:32769,name:"Zilliqa",network:"zilliqa",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.zilliqa.com"}},testnet:!1}),hTe=ye({id:33101,name:"Zilliqa Testnet",network:"zilliqa-testnet",nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},rpcUrls:{default:{http:["https://dev-api.zilliqa.com"]}},blockExplorers:{default:{name:"Ethernal",url:"https://evmx.testnet.zilliqa.com"}},testnet:!0}),S3=1,Um=ye({...gn,id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy",apiUrl:"https://explorer.zora.energy/api"}},contracts:{...gn.contracts,l2OutputOracle:{[S3]:{address:"0x9E6204F750cD866b299594e2aC9eA824E2e5f95c"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:5882},portal:{[S3]:{address:"0x1a0ad011913A150f69f6A19DF447A0CfD9551054"}},l1StandardBridge:{[S3]:{address:"0x3e2Ea9B92B7E48A52296fD261dc26fd995284631"}}},sourceId:S3}),T3=11155111,I6=ye({...gn,id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/",apiUrl:"https://sepolia.explorer.zora.energy/api"}},contracts:{...gn.contracts,l2OutputOracle:{[T3]:{address:"0x2615B481Bd3E5A1C0C7Ca3Da1bdc663E8615Ade9"}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:83160},portal:{[T3]:{address:"0xeffE2C6cA9Ab797D418f0D91eA60807713f3536f"}},l1StandardBridge:{[T3]:{address:"0x5376f1D543dcbB5BD416c56C189e4cB7399fCcCB"}}},sourceId:T3,testnet:!0}),MO=5,jm=ye({...gn,id:999,name:"Zora Goerli Testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy",apiUrl:"https://testnet.explorer.zora.energy/api"}},contracts:{...gn.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:189123},portal:{[MO]:{address:"0xDb9F51790365e7dc196e7D072728df39Be958ACe"}}},sourceId:MO,testnet:!0}),pTe=Object.freeze(Object.defineProperty({__proto__:null,acala:p_e,anvil:y_e,apexTestnet:m_e,arbitrum:PE,arbitrumGoerli:RE,arbitrumNova:NE,arbitrumSepolia:$E,astar:b_e,astarZkatana:g_e,aurora:x_e,auroraTestnet:v_e,avalanche:w_e,avalancheFuji:E_e,bahamut:__e,base:F6,baseGoerli:rW,baseSepolia:LE,bearNetworkChainMainnet:F_e,bearNetworkChainTestnet:D_e,berachainTestnet:k_e,bitTorrent:I_e,bitTorrentTestnet:O_e,blastSepolia:D6,boba:R_e,bronos:N_e,bronosTestnet:$_e,bsc:L_e,bscGreenfield:j_e,bscTestnet:U_e,bxn:H_e,bxnTestnet:z_e,canto:G_e,celo:X_e,celoAlfajores:Y_e,chiliz:eAe,classic:tAe,confluxESpace:nAe,confluxESpaceTestnet:rAe,coreDao:aAe,cronos:iAe,cronosTestnet:sAe,crossbell:oAe,defichainEvm:cAe,defichainEvmTestnet:lAe,dfk:uAe,dogechain:fAe,edgeware:dAe,edgewareTestnet:hAe,ekta:xAe,ektaTestnet:vAe,eos:pAe,eosTestnet:yAe,etherlinkTestnet:mAe,evmos:bAe,evmosTestnet:gAe,fantom:wAe,fantomSonicTestnet:EAe,fantomTestnet:_Ae,fibo:AAe,filecoin:CAe,filecoinCalibration:SAe,filecoinHyperspace:TAe,flare:BAe,flareTestnet:MAe,foundry:FAe,fraxtal:DAe,fraxtalTestnet:kAe,fuse:IAe,fuseSparknet:OAe,gnosis:UAe,gnosisChiado:jAe,gobi:LAe,goerli:FT,haqqMainnet:GAe,haqqTestedge2:VAe,hardhat:HAe,harmonyOne:zAe,hedera:qAe,hederaPreviewnet:KAe,hederaTestnet:WAe,holesky:ZAe,iotex:PAe,iotexTestnet:RAe,jbc:NAe,kakarotSepolia:QAe,karura:$Ae,kava:JAe,kavaTestnet:XAe,kcc:YAe,klaytn:eCe,klaytnBaobab:tCe,kroma:nCe,kromaSepolia:rCe,lightlinkPegasus:aCe,lightlinkPhoenix:iCe,linea:sCe,lineaTestnet:oCe,liskSepolia:cCe,localhost:lCe,lukso:uCe,mainnet:DT,mandala:fCe,manta:dCe,mantaTestnet:hCe,mantle:pCe,mantleTestnet:yCe,metachain:mCe,metachainIstanbul:bCe,meter:gCe,meterTestnet:xCe,metis:vCe,metisGoerli:wCe,mev:ECe,mevTestnet:_Ce,mode:ACe,modeTestnet:CCe,moonbaseAlpha:SCe,moonbeam:TCe,moonbeamDev:BCe,moonriver:MCe,neonDevnet:FCe,neonMainnet:DCe,nexi:kCe,nexilix:ICe,oasisTestnet:PCe,oasys:OCe,okc:RCe,oortMainnetDev:UCe,opBNB:$Ce,opBNBTestnet:LCe,optimism:Lm,optimismGoerli:NCe,optimismSepolia:k6,palm:jCe,palmTestnet:HCe,pgn:zCe,pgnTestnet:GCe,phoenix:VCe,plinga:qCe,polygon:WCe,polygonAmoy:KCe,polygonMumbai:ZCe,polygonZkEvm:JCe,polygonZkEvmTestnet:QCe,pulsechain:XCe,pulsechainV4:YCe,qMainnet:eSe,qTestnet:tSe,rollux:nSe,rolluxTestnet:rSe,ronin:aSe,rootstock:iSe,saigon:sSe,sapphire:oSe,sapphireTestnet:cSe,scroll:lSe,scrollSepolia:uSe,scrollTestnet:fSe,sepolia:UE,shardeumSphinx:DSe,shibarium:kSe,shimmer:dSe,shimmerTestnet:hSe,skaleBlockBrawlers:pSe,skaleCalypso:ySe,skaleCalypsoTestnet:mSe,skaleCryptoBlades:bSe,skaleCryptoColosseum:gSe,skaleEuropa:xSe,skaleEuropaTestnet:vSe,skaleExorde:wSe,skaleHumanProtocol:ESe,skaleNebula:_Se,skaleNebulaTestnet:ASe,skaleRazor:CSe,skaleTitan:SSe,skaleTitanTestnet:TSe,songbird:BSe,songbirdTestnet:MSe,spicy:FSe,syscoin:ISe,syscoinTestnet:OSe,taikoJolnir:RSe,taikoKatla:NSe,taikoTestnetSepolia:$Se,taraxa:PSe,taraxaTestnet:LSe,telos:USe,telosTestnet:jSe,tenet:HSe,thunderTestnet:zSe,vechain:GSe,wanchain:VSe,wanchainTestnet:qSe,wemix:WSe,wemixTestnet:KSe,x1Testnet:ZSe,xdc:QSe,xdcTestnet:JSe,zetachain:uTe,zetachainAthensTestnet:fTe,zhejiang:XSe,zilliqa:dTe,zilliqaTestnet:hTe,zkFair:YSe,zkFairTestnet:eTe,zkSync:oTe,zkSyncSepoliaTestnet:lTe,zkSyncTestnet:cTe,zora:Um,zoraSepolia:I6,zoraTestnet:jm},Symbol.toStringTag,{value:"Module"})),B3={multiSendAddress:"0xA238CBeb142c10Ef7Ad8442C6D1f9E89e07e7761",safeMasterCopyAddress:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",safeProxyFactoryAddress:"0xa6B71E26C5e0845f74c812102Ca7114b6a896AB2",multiSendCallOnlyAddress:"0x40A2aCCbd92BCA938b02010E17A5b8929b49130D",fallbackHandlerAddress:"0x1AC114C2099aFAf5261731655Dc6c306bFcd4Dbd",createCallAddress:"0x7cbB62EaA69F79e6873cD1ecB2392971036cFAa4",signMessageLibAddress:"0xA65387F16B013cf2Af4605Ad8aA5ec25a2cbA3a2",safeSingletonAddress:"0x3E5c63644E683549055b9Be8653de26E0B4CD36E",simulateTxAccessorAddress:"0x59AD6735bCd8152B84860Cb256dD9e96b85F69Da"},jE={id:81457,name:"Blast",network:"blast",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:[]},public:{http:[]}},blockExplorers:{etherscan:{name:"Explorer",url:"https://blastscan.io"},default:{name:"Explorer",url:"https://blastscan.io"}}},O6={[`${I6.id}`]:B3,[`${D6.id}`]:B3,[`${k6.id}`]:B3,[`${jE.id}`]:B3},Hm={[Um.id]:Um,[jm.id]:jm,[I6.id]:I6,[RE.id]:RE,[$E.id]:$E,[NE.id]:NE,[PE.id]:PE,[F6.id]:F6,[LE.id]:LE,[UE.id]:UE,[Lm.id]:Lm,[k6.id]:k6,[D6.id]:D6,[jE.id]:jE};Object.keys(O6).map(t=>{if(Hm[+t])return;const e=Object.values(pTe).find(n=>n.id.toString()===t);e&&(Hm[+t]=e)});async function yTe(t,e){const n=new Ep.EthersAdapter({ethers:y6,signerOrProvider:e}),r=await h_e.create({ethAdapter:n,safeAddress:t,contractNetworks:O6}),a=await r.connect({ethAdapter:new Ep.EthersAdapter({ethers:y6,signerOrProvider:e}),safeAddress:t,contractNetworks:O6});return{safeSdk:r,safeSdk2:a,signer:e}}const mTe=({safeData:t})=>{const[e,n]=ve.useState();return ve.useEffect(()=>{if(!t)return;(async()=>{const{safeSdk:a,safeSdk2:i}=t,s=await a.getOwners(),o=await a.getThreshold(),c=Number(await a.getChainId()),h=await a.getNonce(),b=await a.getAddress();n({owners:s,threshold:o,chainId:c,nonce:h,address:b,safeSdk:a,safeSdk2:i})})()},[t,n]),e},bTe=()=>{const t=G_(),[e,n]=ve.useState(),{walletProvider:r}=ci(),a=ve.useCallback(async()=>{t.safeAddress&&r&&n(await yTe(t.safeAddress,await r.getSigner()))},[t.safeAddress,r]),i=ve.useCallback(()=>{t.networkId&&(r==null||r.send("wallet_switchEthereumChain",[{chainId:`0x${parseInt(t.networkId).toString(16)}`}]))},[t.networkId,r]);ve.useEffect(()=>{i()},[i]),ve.useEffect(()=>{a()},[a]);const s=mTe({safeData:e}),o=ve.useMemo(()=>{if(s)return{safeInformation:s}},[s]);return we.jsxs(rt,{paddingTop:8,paddingBottom:8,children:[we.jsx(Fn,{variant:"featured-2",children:"View Safe"}),we.jsx(rt,{paddingTop:4}),o?we.jsx(bN,{context:o}):we.jsx(Dn,{onClick:i,children:"Switch network"})]})},gTe=({currentNetwork:t})=>{const[e,n]=ve.useState(t),r=Rp(),a=ve.useCallback(i=>{const s=i.value;n(s),r(`/safe/${s}`)},[r]);return we.jsxs(rr,{children:[we.jsx(rr.Label,{children:"Network:"}),we.jsx(mee,{name:"network",value:e,onChange:a,options:Object.values(Hm).filter(i=>!!i).map(i=>({key:i.id.toString(),value:i.id.toString(),label:i.name}))})]})},xTe=()=>{const[t,e]=ve.useState(),n=G_().networkId,[r,a]=ve.useState(0),i=ve.useCallback(async()=>{const o=new gC(window.ethereum,"any");o.on("accountsChanged",async h=>{console.log({accounts:h});const b=await o.getNetwork();a(Number(b.chainId))}),o.on("disconnect",()=>{e(void 0),a(0)}),o.on("connect",async()=>{e(o);const h=await o.getNetwork();a(Number(h.chainId))}),await o.send("eth_requestAccounts",[]);const c=await o.getSigner();if(o&&c){const h=await o.getNetwork();a(Number(h.chainId)),e(o)}},[e,a]);ve.useEffect(()=>{i()},[i]);const s=ve.useMemo(()=>{if(t)return{walletProvider:t,currentNetwork:r}},[t,r]);return ve.useEffect(()=>{n&&r!==Number(n)&&(t==null||t.send("wallet_switchEthereumChain",[{chainId:`0x${parseInt(n).toString(16)}`}]),a(Number(n)))},[r,n,a,t]),s?we.jsxs(we.Fragment,{children:[we.jsx("br",{}),we.jsx("br",{}),we.jsx(gTe,{currentNetwork:n}),we.jsx(bN,{context:s})]}):we.jsx(rt,{padding:10,justify:"space-between",gap:6,direction:"column",children:we.jsx(Dn,{onClick:i,children:"Connect Web3"})})};function vTe(t){if(!Rr(t))return"Invalid address"}function wTe(t){const e={};return t.threshold<=0&&(e.threshold="Threshold needs to be at least 1"),t.threshold>t.addresses.length&&(e.threshold="Threshold cannot be more than the number of addresses"),e}function ETe(){var c;const{walletProvider:t}=ci(),{currentNetwork:e}=ci(),n=eA(),r=Rp(),[a,i]=ve.useState(void 0),s=ve.useCallback(async h=>{const b=await h.getSigner(),v=await b.getAddress();i({signer:b,address:v})},[i]);ve.useEffect(()=>{t&&s(t)},[t,s]);const o=ve.useCallback(async h=>{if(a)try{const b=new Ep.EthersAdapter({ethers:y6,signerOrProvider:a.signer}),C=await(await(await Ep.SafeFactory.create({ethAdapter:b,contractNetworks:O6})).deploySafe({safeAccountConfig:{owners:h.addresses,threshold:parseInt(h.threshold,10)}})).getAddress();n.show({title:"Created a new safe!",text:`Opening safe... The new safe address is ${C}`}),r(`/safe/${e}/${C}`)}catch(b){n.show({title:"Error creating safe",text:`Message: ${b.message}`})}},[r,e,a,n]);return we.jsxs(rt,{gap:4,paddingTop:10,children:[we.jsx(Fn,{variant:"title-3",children:"Create a new safe"}),we.jsxs(Fn,{variant:"body-1",children:["Network: ",((c=Hm[Number(e)])==null?void 0:c.name)||"unknown"]}),we.jsx(Ix,{onSubmit:o,initialValues:{threshold:1,addresses:[(a==null?void 0:a.address)||"0x"]},validate:wTe,children:({handleSubmit:h,handleChange:b,isSubmitting:v,values:E,errors:C})=>we.jsxs("form",{onSubmit:h,children:[we.jsx(B$,{name:"addresses",render:M=>we.jsxs(we.Fragment,{children:[E.addresses.map((T,P)=>we.jsx(rt,{gap:2,paddingTop:4,children:we.jsx(nu,{validate:vTe,name:`addresses.${P}`,children:({field:{name:D,value:F}})=>we.jsxs(rr,{hasError:!!(C.addresses&&C.addresses[P]),children:[we.jsxs(rr.Label,{children:["Signer address ",P+1,":"," "]}),we.jsx(mm,{name:D,value:F,onChange:({event:O})=>b(O),endSlot:we.jsx(Dn,{color:"critical",size:"small",onClick:()=>M.remove(P),children:"Remove"})}),C.addresses&&C.addresses[P]&&we.jsx(rr.Error,{children:C.addresses[P].toString()})]},P)})},`${T}-${P}`)),we.jsx(rt,{paddingTop:4,paddingBottom:4,children:we.jsx(rt,{children:we.jsx(Dn,{onClick:()=>M.push(""),children:"Add"})})})]})}),we.jsxs(rr,{hasError:!!C.threshold,children:[we.jsx(rr.Label,{children:"Threshold:"}),we.jsx(mm,{inputAttributes:{type:"number"},name:"threshold",value:E.threshold.toString(),onChange:({event:M})=>b(M)}),C.threshold&&we.jsx(rr.Error,{children:C.threshold}),we.jsx(rr.Helper,{children:"This number of signers needs to approve"})]}),we.jsx(rt,{paddingTop:4,children:we.jsx(Dn,{type:"submit",attributes:{title:Object.keys(C).length>0?"Please fix all form errors":"Create a new safe"},disabled:Object.keys(C).length>0||v,children:v?"Creating safe...":"Create Safe"})})]})})]})}var dW={exports:{}},_Te="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ATe=_Te,CTe=ATe;function hW(){}function pW(){}pW.resetWarningCache=hW;var STe=function(){function t(r,a,i,s,o,c){if(c!==CTe){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:pW,resetWarningCache:hW};return n.PropTypes=n,n};dW.exports=STe();var TTe=dW.exports;const M3=ud(TTe);function HE(){return HE=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function MTe(t,e){if(t==null)return{};var n={},r=Object.keys(t),a,i;for(i=0;i=0)&&(n[a]=t[a]);return n}var IT=ve.forwardRef(function(t,e){var n=t.color,r=n===void 0?"currentColor":n,a=t.size,i=a===void 0?24:a,s=BTe(t,["color","size"]);return te.createElement("svg",HE({ref:e,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),te.createElement("circle",{cx:"12",cy:"12",r:"10"}),te.createElement("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),te.createElement("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"}))});IT.propTypes={color:M3.string,size:M3.oneOfType([M3.string,M3.number])};IT.displayName="Info";const FTe=IT,DTe=({children:t})=>we.jsx(Hee,{text:t,children:e=>we.jsx(Fc,{size:4,attributes:e,svg:we.jsx(FTe,{})})}),kTe={[DT.id]:"https://etherscan.io/",[Um.id]:"https://explorer.zora.energy/",[FT.id]:"https://goerli.etherscan.io/",[jm.id]:"https://testnet.explorer.zora.energy/",[Lm.id]:"https://optimistic.etherscan.io/"},yW=({address:t,prettyName:e})=>{const n=ci().currentNetwork;return we.jsxs("span",{title:t,children:[e||t," ",we.jsx("a",{title:"View on etherscan",target:"_blank",className:"text-gray-600 hover:color-black transition-color",href:`${kTe[Number(n)]}/address/${t}`,children:"↗"})]})},ITe=(t,e,n)=>{if(!e)return;const r=Array.isArray(e)?e:e.match(/([^[.\]])+/g);if(!r)return;const a=r.reduce((i,s)=>i&&i[s],t);return a===void 0?n:a},jf=({label:t,fieldProps:e})=>({field:{name:n,value:r,onChange:a},form:{errors:i}})=>{const s=ITe(i,n);return we.jsx(rt,{paddingTop:1,paddingBottom:1,children:we.jsxs(rr,{hasError:!!s,children:[we.jsx(rr.Label,{children:t}),we.jsx(mm,{name:n,value:r,onChange:({event:o})=>a(o),...e}),s&&we.jsx(rr.Error,{children:s})]},n)})};function kd(t){this._maxSize=t,this.clear()}kd.prototype.clear=function(){this._size=0,this._values=Object.create(null)};kd.prototype.get=function(t){return this._values[t]};kd.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var OTe=/[^.^\]^[]+|(?=\[\]|\.\.)/g,mW=/^\d+$/,PTe=/^\d/,RTe=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,NTe=/^\s*(['"]?)(.*?)(\1)\s*$/,OT=512,FO=new kd(OT),DO=new kd(OT),kO=new kd(OT),Hf={Cache:kd,split:zE,normalizePath:O9,setter:function(t){var e=O9(t);return DO.get(t)||DO.set(t,function(r,a){for(var i=0,s=e.length,o=r;it.match(HTe)||[],Zv=t=>t[0].toUpperCase()+t.slice(1),RT=(t,e)=>Kv(t).join(e).toLowerCase(),bW=t=>Kv(t).reduce((e,n)=>`${e}${e?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),zTe=t=>Zv(bW(t)),GTe=t=>RT(t,"_"),VTe=t=>RT(t,"-"),qTe=t=>Zv(RT(t," ")),WTe=t=>Kv(t).map(Zv).join(" ");var P9={words:Kv,upperFirst:Zv,camelCase:bW,pascalCase:zTe,snakeCase:GTe,kebabCase:VTe,sentenceCase:qTe,titleCase:WTe},NT={exports:{}};NT.exports=function(t){return gW(KTe(t),t)};NT.exports.array=gW;function gW(t,e){var n=t.length,r=new Array(n),a={},i=n,s=ZTe(e),o=QTe(t);for(e.forEach(function(h){if(!o.has(h[0])||!o.has(h[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});i--;)a[i]||c(t[i],i,new Set);return r;function c(h,b,v){if(v.has(h)){var E;try{E=", node was:"+JSON.stringify(h)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!o.has(h))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(h));if(!a[b]){a[b]=!0;var C=s.get(h)||new Set;if(C=Array.from(C),b=C.length){v.add(h);do{var M=C[--b];c(M,o.get(M),v)}while(b);v.delete(h)}r[--n]=h}}}function KTe(t){for(var e=new Set,n=0,r=t.length;n"",rBe=/^Symbol\((.*)\)(.*)$/;function aBe(t){return t!=+t?"NaN":t===0&&1/t<0?"-0":""+t}function IO(t,e=!1){if(t==null||t===!0||t===!1)return""+t;const n=typeof t;if(n==="number")return aBe(t);if(n==="string")return e?`"${t}"`:t;if(n==="function")return"[Function "+(t.name||"anonymous")+"]";if(n==="symbol")return nBe.call(t).replace(rBe,"Symbol($1)");const r=YTe.call(t).slice(8,-1);return r==="Date"?isNaN(t.getTime())?""+t:t.toISOString(t):r==="Error"||t instanceof Error?"["+eBe.call(t)+"]":r==="RegExp"?tBe.call(t):null}function Cc(t,e){let n=IO(t,e);return n!==null?n:JSON.stringify(t,function(r,a){let i=IO(this[r],e);return i!==null?i:a},2)}function xW(t){return t==null?[]:[].concat(t)}let vW,iBe=/\$\{\s*(\w+)\s*\}/g;vW=Symbol.toStringTag;class Ma extends Error{static formatError(e,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof e=="string"?e.replace(iBe,(a,i)=>Cc(n[i])):typeof e=="function"?e(n):e}static isError(e){return e&&e.name==="ValidationError"}constructor(e,n,r,a,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this[vW]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=a,this.errors=[],this.inner=[],xW(e).forEach(s=>{if(Ma.isError(s)){this.errors.push(...s.errors);const o=s.inner.length?s.inner:[s];this.inner.push(...o)}else this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],!i&&Error.captureStackTrace&&Error.captureStackTrace(this,Ma)}}let Ys={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:t,type:e,value:n,originalValue:r})=>{const a=r!=null&&r!==n?` (cast from the value \`${Cc(r,!0)}\`).`:".";return e!=="mixed"?`${t} must be a \`${e}\` type, but the final value was: \`${Cc(n,!0)}\``+a:`${t} must match the configured type. The validated value was: \`${Cc(n,!0)}\``+a}},ss={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},hl={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},GE={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},sBe={isValue:"${path} field must be ${value}"},VE={noUnknown:"${path} field has unspecified keys: ${unknown}"},gg={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},oBe={notType:t=>{const{path:e,value:n,spec:r}=t,a=r.types.length;if(Array.isArray(n)){if(n.lengtha)return`${e} tuple value has too many items, expected a length of ${a} but got ${n.length} for value: \`${Cc(n,!0)}\``}return Ma.formatError(Ys.notType,t)}};Object.assign(Object.create(null),{mixed:Ys,string:ss,number:hl,date:GE,object:VE,array:gg,boolean:sBe,tuple:oBe});const Qv=t=>t&&t.__isYupSchema__;class P6{static fromOptions(e,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:a,otherwise:i}=n,s=typeof r=="function"?r:(...o)=>o.every(c=>c===r);return new P6(e,(o,c)=>{var h;let b=s(...o)?a:i;return(h=b==null?void 0:b(c))!=null?h:c})}constructor(e,n){this.fn=void 0,this.refs=e,this.refs=e,this.fn=n}resolve(e,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),a=this.fn(r,e,n);if(a===void 0||a===e)return e;if(!Qv(a))throw new TypeError("conditions must return a schema object");return a.resolve(n)}}const F3={context:"$",value:"."};class Id{constructor(e,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof e!="string")throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),e==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===F3.context,this.isValue=this.key[0]===F3.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?F3.context:this.isValue?F3.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Hf.getter(this.path,!0),this.map=n.map}getValue(e,n,r){let a=this.isContext?r:this.isValue?e:n;return this.getter&&(a=this.getter(a||{})),this.map&&(a=this.map(a)),a}cast(e,n){return this.getValue(e,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}Id.prototype.__isYupRef=!0;const vc=t=>t==null;function s0(t){function e({value:n,path:r="",options:a,originalValue:i,schema:s},o,c){const{name:h,test:b,params:v,message:E,skipAbsent:C}=t;let{parent:M,context:T,abortEarly:P=s.spec.abortEarly,disableStackTrace:D=s.spec.disableStackTrace}=a;function F(u){return Id.isRef(u)?u.getValue(n,M,T):u}function O(u={}){var d;const p=Object.assign({value:n,originalValue:i,label:s.spec.label,path:u.path||r,spec:s.spec},v,u.params);for(const y of Object.keys(p))p[y]=F(p[y]);const l=new Ma(Ma.formatError(u.message||E,p),n,p.path,u.type||h,(d=u.disableStackTrace)!=null?d:D);return l.params=p,l}const k=P?o:c;let U={path:r,parent:M,type:h,from:a.from,createError:O,resolve:F,options:a,originalValue:i,schema:s};const J=u=>{Ma.isError(u)?k(u):u?c(null):k(O())},Y=u=>{Ma.isError(u)?k(u):o(u)};if(C&&vc(n))return J(!0);let X;try{var B;if(X=b.call(U,n,U),typeof((B=X)==null?void 0:B.then)=="function"){if(a.sync)throw new Error(`Validation test of type: "${U.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(X).then(J,Y)}}catch(u){Y(u);return}J(X)}return e.OPTIONS=t,e}function cBe(t,e,n,r=n){let a,i,s;return e?(Hf.forEach(e,(o,c,h)=>{let b=c?o.slice(1,o.length-1):o;t=t.resolve({context:r,parent:a,value:n});let v=t.type==="tuple",E=h?parseInt(b,10):0;if(t.innerType||v){if(v&&!h)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&E>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${e}. because there is no value at that index. `);a=n,n=n&&n[E],t=v?t.spec.types[E]:t.innerType}if(!h){if(!t.fields||!t.fields[b])throw new Error(`The schema does not contain the path: ${e}. (failed at: ${s} which is a type: "${t.type}")`);a=n,n=n&&n[b],t=t.fields[b]}i=b,s=c?"["+o+"]":"."+o}),{schema:t,parent:a,parentPath:i}):{parent:a,parentPath:e,schema:t}}class R6 extends Set{describe(){const e=[];for(const n of this.values())e.push(Id.isRef(n)?n.describe():n);return e}resolveAll(e){let n=[];for(const r of this.values())n.push(e(r));return n}clone(){return new R6(this.values())}merge(e,n){const r=this.clone();return e.forEach(a=>r.add(a)),n.forEach(a=>r.delete(a)),r}}function P0(t,e=new Map){if(Qv(t)||!t||typeof t!="object")return t;if(e.has(t))return e.get(t);let n;if(t instanceof Date)n=new Date(t.getTime()),e.set(t,n);else if(t instanceof RegExp)n=new RegExp(t),e.set(t,n);else if(Array.isArray(t)){n=new Array(t.length),e.set(t,n);for(let r=0;r{this.typeError(Ys.notType)}),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},e==null?void 0:e.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=P0(Object.assign({},this.spec,e)),n}label(e){let n=this.clone();return n.spec.label=e,n}meta(...e){if(e.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},e[0]),n}withMutation(e){let n=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=n,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let n=this,r=e.clone();const a=Object.assign({},n.spec,r.spec);return r.spec=a,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=n._blacklist.merge(e._blacklist,e._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{e.tests.forEach(s=>{i.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(e){return e==null?!!(this.spec.nullable&&e===null||this.spec.optional&&e===void 0):this._typeCheck(e)}resolve(e){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((a,i)=>i.resolve(a,e),n),n=n.resolve(e)}return n}resolveOptions(e){var n,r,a,i;return Object.assign({},e,{from:e.from||[],strict:(n=e.strict)!=null?n:this.spec.strict,abortEarly:(r=e.abortEarly)!=null?r:this.spec.abortEarly,recursive:(a=e.recursive)!=null?a:this.spec.recursive,disableStackTrace:(i=e.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(e,n={}){let r=this.resolve(Object.assign({value:e},n)),a=n.assert==="ignore-optionality",i=r._cast(e,n);if(n.assert!==!1&&!r.isType(i)){if(a&&vc(i))return i;let s=Cc(e),o=Cc(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". - -attempted value: ${s} -`+(o!==s?`result of cast: ${o}`:""))}return i}_cast(e,n){let r=e===void 0?e:this.transforms.reduce((a,i)=>i.call(this,a,e,this),e);return r===void 0&&(r=this.getDefault(n)),r}_validate(e,n={},r,a){let{path:i,originalValue:s=e,strict:o=this.spec.strict}=n,c=e;o||(c=this._cast(c,Object.assign({assert:!1},n)));let h=[];for(let b of Object.values(this.internalTests))b&&h.push(b);this.runTests({path:i,value:c,originalValue:s,options:n,tests:h},r,b=>{if(b.length)return a(b,c);this.runTests({path:i,value:c,originalValue:s,options:n,tests:this.tests},r,a)})}runTests(e,n,r){let a=!1,{tests:i,value:s,originalValue:o,path:c,options:h}=e,b=T=>{a||(a=!0,n(T,s))},v=T=>{a||(a=!0,r(T,s))},E=i.length,C=[];if(!E)return v([]);let M={value:s,originalValue:o,path:c,options:h,schema:this};for(let T=0;Tthis.resolve(b)._validate(h,b,E,C)}validate(e,n){var r;let a=this.resolve(Object.assign({},n,{value:e})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:a.spec.disableStackTrace;return new Promise((s,o)=>a._validate(e,n,(c,h)=>{Ma.isError(c)&&(c.value=h),o(c)},(c,h)=>{c.length?o(new Ma(c,h,void 0,void 0,i)):s(h)}))}validateSync(e,n){var r;let a=this.resolve(Object.assign({},n,{value:e})),i,s=(r=n==null?void 0:n.disableStackTrace)!=null?r:a.spec.disableStackTrace;return a._validate(e,Object.assign({},n,{sync:!0}),(o,c)=>{throw Ma.isError(o)&&(o.value=c),o},(o,c)=>{if(o.length)throw new Ma(o,e,void 0,void 0,s);i=c}),i}isValid(e,n){return this.validate(e,n).then(()=>!0,r=>{if(Ma.isError(r))return!1;throw r})}isValidSync(e,n){try{return this.validateSync(e,n),!0}catch(r){if(Ma.isError(r))return!1;throw r}}_getDefault(e){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,e):P0(n)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){return arguments.length===0?this._getDefault():this.clone({default:e})}strict(e=!0){return this.clone({strict:e})}nullability(e,n){const r=this.clone({nullable:e});return r.internalTests.nullable=s0({message:n,name:"nullable",test(a){return a===null?this.schema.spec.nullable:!0}}),r}optionality(e,n){const r=this.clone({optional:e});return r.internalTests.optionality=s0({message:n,name:"optionality",test(a){return a===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(e=Ys.defined){return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(e=Ys.notNull){return this.nullability(!1,e)}required(e=Ys.required){return this.clone().withMutation(n=>n.nonNullable(e).defined(e))}notRequired(){return this.clone().withMutation(e=>e.nullable().optional())}transform(e){let n=this.clone();return n.transforms.push(e),n}test(...e){let n;if(e.length===1?typeof e[0]=="function"?n={test:e[0]}:n=e[0]:e.length===2?n={name:e[0],test:e[1]}:n={name:e[0],message:e[1],test:e[2]},n.message===void 0&&(n.message=Ys.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),a=s0(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(i||s.OPTIONS.test===a.OPTIONS.test))),r.tests.push(a),r}when(e,n){!Array.isArray(e)&&typeof e!="string"&&(n=e,e=".");let r=this.clone(),a=xW(e).map(i=>new Id(i));return a.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new P6(a,n):P6.fromOptions(a,n)),r}typeError(e){let n=this.clone();return n.internalTests.typeError=s0({message:e,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(e,n=Ys.oneOf){let r=this.clone();return e.forEach(a=>{r._whitelist.add(a),r._blacklist.delete(a)}),r.internalTests.whiteList=s0({message:n,name:"oneOf",skipAbsent:!0,test(a){let i=this.schema._whitelist,s=i.resolveAll(this.resolve);return s.includes(a)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:s}})}}),r}notOneOf(e,n=Ys.notOneOf){let r=this.clone();return e.forEach(a=>{r._blacklist.add(a),r._whitelist.delete(a)}),r.internalTests.blacklist=s0({message:n,name:"notOneOf",test(a){let i=this.schema._blacklist,s=i.resolveAll(this.resolve);return s.includes(a)?this.createError({params:{values:Array.from(i).join(", "),resolved:s}}):!0}}),r}strip(e=!0){let n=this.clone();return n.spec.strip=e,n}describe(e){const n=(e?this.resolve(e):this).clone(),{label:r,meta:a,optional:i,nullable:s}=n.spec;return{meta:a,label:r,optional:i,nullable:s,default:n.getDefault(e),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(c=>({name:c.OPTIONS.name,params:c.OPTIONS.params})).filter((c,h,b)=>b.findIndex(v=>v.name===c.name)===h)}}}Qi.prototype.__isYupSchema__=!0;for(const t of["validate","validateSync"])Qi.prototype[`${t}At`]=function(e,n,r={}){const{parent:a,parentPath:i,schema:s}=cBe(this,e,n,r.context);return s[t](a&&a[i],Object.assign({},r,{parent:a,path:e}))};for(const t of["equals","is"])Qi.prototype[t]=Qi.prototype.oneOf;for(const t of["not","nope"])Qi.prototype[t]=Qi.prototype.notOneOf;let lBe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,uBe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,fBe=/^(?:[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,dBe=t=>vc(t)||t===t.trim(),hBe={}.toString();function N6(){return new wW}class wW extends Qi{constructor(){super({type:"string",check(e){return e instanceof String&&(e=e.valueOf()),typeof e=="string"}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce||r.isType(e)||Array.isArray(e))return e;const a=e!=null&&e.toString?e.toString():e;return a===hBe?e:a})})}required(e){return super.required(e).withMutation(n=>n.test({message:e||Ys.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(e=>(e.tests=e.tests.filter(n=>n.OPTIONS.name!=="required"),e))}length(e,n=ss.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n=ss.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n=ss.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}matches(e,n){let r=!1,a,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:a,name:i}=n:a=n),this.test({name:i||"matches",message:a||ss.matches,params:{regex:e},skipAbsent:!0,test:s=>s===""&&r||s.search(e)!==-1})}email(e=ss.email){return this.matches(lBe,{name:"email",message:e,excludeEmptyString:!0})}url(e=ss.url){return this.matches(uBe,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=ss.uuid){return this.matches(fBe,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>e===null?"":e)}trim(e=ss.trim){return this.transform(n=>n!=null?n.trim():n).test({message:e,name:"trim",test:dBe})}lowercase(e=ss.lowercase){return this.transform(n=>vc(n)?n:n.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vc(n)||n===n.toLowerCase()})}uppercase(e=ss.uppercase){return this.transform(n=>vc(n)?n:n.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>vc(n)||n===n.toUpperCase()})}}N6.prototype=wW.prototype;let pBe=t=>t!=+t;function Jv(){return new EW}class EW extends Qi{constructor(){super({type:"number",check(e){return e instanceof Number&&(e=e.valueOf()),typeof e=="number"&&!pBe(e)}}),this.withMutation(()=>{this.transform((e,n,r)=>{if(!r.spec.coerce)return e;let a=e;if(typeof a=="string"){if(a=a.replace(/\s/g,""),a==="")return NaN;a=+a}return r.isType(a)||a===null?a:parseFloat(a)})})}min(e,n=hl.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r>=this.resolve(e)}})}max(e,n=hl.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r<=this.resolve(e)}})}lessThan(e,n=hl.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(r){return rthis.resolve(e)}})}positive(e=hl.positive){return this.moreThan(0,e)}negative(e=hl.negative){return this.lessThan(0,e)}integer(e=hl.integer){return this.test({name:"integer",message:e,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(e=>vc(e)?e:e|0)}round(e){var n;let r=["ceil","floor","round","trunc"];if(e=((n=e)==null?void 0:n.toLowerCase())||"round",e==="trunc")return this.truncate();if(r.indexOf(e.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(a=>vc(a)?a:Math[e](a))}}Jv.prototype=EW.prototype;const yBe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Uo(t,e=0){return Number(t)||e}function mBe(t){const e=yBe.exec(t);if(!e)return Date.parse?Date.parse(t):Number.NaN;const n={year:Uo(e[1]),month:Uo(e[2],1)-1,day:Uo(e[3],1),hour:Uo(e[4]),minute:Uo(e[5]),second:Uo(e[6]),millisecond:e[7]?Uo(e[7].substring(0,3)):0,z:e[8]||void 0,plusMinus:e[9]||void 0,hourOffset:Uo(e[10]),minuteOffset:Uo(e[11])};if(n.z===void 0&&n.plusMinus===void 0)return new Date(n.year,n.month,n.day,n.hour,n.minute,n.second,n.millisecond).valueOf();let r=0;return n.z!=="Z"&&n.plusMinus!==void 0&&(r=n.hourOffset*60+n.minuteOffset,n.plusMinus==="+"&&(r=0-r)),Date.UTC(n.year,n.month,n.day,n.hour,n.minute+r,n.second,n.millisecond)}let bBe=new Date(""),gBe=t=>Object.prototype.toString.call(t)==="[object Date]";class Xv extends Qi{constructor(){super({type:"date",check(e){return gBe(e)&&!isNaN(e.getTime())}}),this.withMutation(()=>{this.transform((e,n,r)=>!r.spec.coerce||r.isType(e)||e===null?e:(e=mBe(e),isNaN(e)?Xv.INVALID_DATE:new Date(e)))})}prepareParam(e,n){let r;if(Id.isRef(e))r=e;else{let a=this.cast(e);if(!this._typeCheck(a))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=a}return r}min(e,n=GE.min){let r=this.prepareParam(e,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(a){return a>=this.resolve(r)}})}max(e,n=GE.max){let r=this.prepareParam(e,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(a){return a<=this.resolve(r)}})}}Xv.INVALID_DATE=bBe;Xv.prototype;function xBe(t,e=[]){let n=[],r=new Set,a=new Set(e.map(([s,o])=>`${s}-${o}`));function i(s,o){let c=Hf.split(s)[0];r.add(c),a.has(`${o}-${c}`)||n.push([o,c])}for(const s of Object.keys(t)){let o=t[s];r.add(s),Id.isRef(o)&&o.isSibling?i(o.path,s):Qv(o)&&"deps"in o&&o.deps.forEach(c=>i(c,s))}return XTe.array(Array.from(r),n).reverse()}function OO(t,e){let n=1/0;return t.some((r,a)=>{var i;if((i=e.path)!=null&&i.includes(r))return n=a,!0}),n}function _W(t){return(e,n)=>OO(t,e)-OO(t,n)}const AW=(t,e,n)=>{if(typeof t!="string")return t;let r=t;try{r=JSON.parse(t)}catch{}return n.isType(r)?r:t};function xg(t){if("fields"in t){const e={};for(const[n,r]of Object.entries(t.fields))e[n]=xg(r);return t.setFields(e)}if(t.type==="array"){const e=t.optional();return e.innerType&&(e.innerType=xg(e.innerType)),e}return t.type==="tuple"?t.optional().clone({types:t.spec.types.map(xg)}):"optional"in t?t.optional():t}const vBe=(t,e)=>{const n=[...Hf.normalizePath(e)];if(n.length===1)return n[0]in t;let r=n.pop(),a=Hf.getter(Hf.join(n),!0)(t);return!!(a&&r in a)};let PO=t=>Object.prototype.toString.call(t)==="[object Object]";function wBe(t,e){let n=Object.keys(t.fields);return Object.keys(e).filter(r=>n.indexOf(r)===-1)}const EBe=_W([]);function zm(t){return new CW(t)}class CW extends Qi{constructor(e){super({type:"object",check(n){return PO(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=EBe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{e&&this.shape(e)})}_cast(e,n={}){var r;let a=super._cast(e,n);if(a===void 0)return this.getDefault(n);if(!this._typeCheck(a))return a;let i=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,o=[].concat(this._nodes,Object.keys(a).filter(v=>!this._nodes.includes(v))),c={},h=Object.assign({},n,{parent:c,__validating:n.__validating||!1}),b=!1;for(const v of o){let E=i[v],C=v in a;if(E){let M,T=a[v];h.path=(n.path?`${n.path}.`:"")+v,E=E.resolve({value:T,context:n.context,parent:c});let P=E instanceof Qi?E.spec:void 0,D=P==null?void 0:P.strict;if(P!=null&&P.strip){b=b||v in a;continue}M=!n.__validating||!D?E.cast(a[v],h):a[v],M!==void 0&&(c[v]=M)}else C&&!s&&(c[v]=a[v]);(C!==v in c||c[v]!==a[v])&&(b=!0)}return b?c:a}_validate(e,n={},r,a){let{from:i=[],originalValue:s=e,recursive:o=this.spec.recursive}=n;n.from=[{schema:this,value:s},...i],n.__validating=!0,n.originalValue=s,super._validate(e,n,r,(c,h)=>{if(!o||!PO(h)){a(c,h);return}s=s||h;let b=[];for(let v of this._nodes){let E=this.fields[v];!E||Id.isRef(E)||b.push(E.asNestedTest({options:n,key:v,parent:h,parentPath:n.path,originalParent:s}))}this.runTests({tests:b,value:h,originalValue:s,options:n},r,v=>{a(v.sort(this._sortErrors).concat(c),h)})})}clone(e){const n=super.clone(e);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(e){let n=super.concat(e),r=n.fields;for(let[a,i]of Object.entries(this.fields)){const s=r[a];r[a]=s===void 0?i:s}return n.withMutation(a=>a.setFields(r,[...this._excludedEdges,...e._excludedEdges]))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var a;const i=this.fields[r];let s=e;(a=s)!=null&&a.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(s):void 0}),n}setFields(e,n){let r=this.clone();return r.fields=e,r._nodes=xBe(e,n),r._sortErrors=_W(Object.keys(e)),n&&(r._excludedEdges=n),r}shape(e,n=[]){return this.clone().withMutation(r=>{let a=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),a=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,e),a)})}partial(){const e={};for(const[n,r]of Object.entries(this.fields))e[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(e)}deepPartial(){return xg(this)}pick(e){const n={};for(const r of e)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,a])=>e.includes(r)&&e.includes(a)))}omit(e){const n=[];for(const r of Object.keys(this.fields))e.includes(r)||n.push(r);return this.pick(n)}from(e,n,r){let a=Hf.getter(e,!0);return this.transform(i=>{if(!i)return i;let s=i;return vBe(i,e)&&(s=Object.assign({},i),r||delete s[e],s[n]=a(i)),s})}json(){return this.transform(AW)}noUnknown(e=!0,n=VE.noUnknown){typeof e!="boolean"&&(n=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(a){if(a==null)return!0;const i=wBe(this.schema,a);return!e||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,n=VE.noUnknown){return this.noUnknown(!e,n)}transformKeys(e){return this.transform(n=>{if(!n)return n;const r={};for(const a of Object.keys(n))r[e(a)]=n[a];return r})}camelCase(){return this.transformKeys(P9.camelCase)}snakeCase(){return this.transformKeys(P9.snakeCase)}constantCase(){return this.transformKeys(e=>P9.snakeCase(e).toUpperCase())}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);r.fields={};for(const[i,s]of Object.entries(n.fields)){var a;let o=e;(a=o)!=null&&a.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),r.fields[i]=s.describe(o)}return r}}zm.prototype=CW.prototype;function SW(t){return new TW(t)}class TW extends Qi{constructor(e){super({type:"array",spec:{types:e},check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=e}_cast(e,n){const r=super._cast(e,n);if(!this._typeCheck(r)||!this.innerType)return r;let a=!1;const i=r.map((s,o)=>{const c=this.innerType.cast(s,Object.assign({},n,{path:`${n.path||""}[${o}]`}));return c!==s&&(a=!0),c});return a?i:r}_validate(e,n={},r,a){var i;let s=this.innerType,o=(i=n.recursive)!=null?i:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(e,n,r,(c,h)=>{var b;if(!o||!s||!this._typeCheck(h)){a(c,h);return}let v=new Array(h.length);for(let C=0;Ca(C.concat(c),h))})}clone(e){const n=super.clone(e);return n.innerType=this.innerType,n}json(){return this.transform(AW)}concat(e){let n=super.concat(e);return n.innerType=this.innerType,e.innerType&&(n.innerType=n.innerType?n.innerType.concat(e.innerType):e.innerType),n}of(e){let n=this.clone();if(!Qv(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Cc(e));return n.innerType=e,n.spec=Object.assign({},n.spec,{types:e}),n}length(e,n=gg.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(r){return r.length===this.resolve(e)}})}min(e,n){return n=n||gg.min,this.test({message:n,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(r){return r.length>=this.resolve(e)}})}max(e,n){return n=n||gg.max,this.test({message:n,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(r){return r.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,n)=>this._typeCheck(e)?e:n==null?[]:[].concat(n))}compact(e){let n=e?(r,a,i)=>!e(r,a,i):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(e){const n=(e?this.resolve(e):this).clone(),r=super.describe(e);if(n.innerType){var a;let i=e;(a=i)!=null&&a.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),r.innerType=n.innerType.describe(i)}return r}}SW.prototype=TW.prototype;const _Be=t=>{if(!Rr(t))return"Invalid address"},ABe=t=>{try{aL(t)}catch{return"ETH Value is Invalid"}},BW=N6().matches(/^0x[a-fA-F0-9]{40}$/,"Needs to be a valid address").required(),MW=({onClick:t,actionDisabled:e,onClose:n})=>we.jsxs(rt,{paddingTop:4,direction:"row",justify:"space-between",children:[we.jsx(rt.Item,{children:we.jsx(Dn,{onClick:t,type:"submit",disabled:e,children:"Ok"})}),we.jsx(rt.Item,{children:we.jsx(Dn,{onClick:n,children:"Cancel"})})]}),CBe=({onClose:t})=>{const{safeInformation:e}=ci(),n=eA(),[,r]=yx();return we.jsx(Ix,{initialValues:{address:"0x",threshold:e==null?void 0:e.threshold},validationSchema:zm({address:BW,threshold:Jv()}),onSubmit:async({address:a,threshold:i})=>{if(e){try{const s=await e.safeSdk.createAddOwnerTx({ownerAddress:a,threshold:i});r({proposal:JSON.stringify({actions:[{data:s.data.data,value:0,to:e.address}]})})}catch(s){n.show({title:"Error Updating Safe",text:s.toString()})}t()}},children:we.jsxs(mA,{children:[we.jsx(Fn,{variant:"featured-2",children:"Add Owner"}),we.jsx(nu,{name:"address",children:jf({label:"New User Address"})}),we.jsx(Fn,{children:we.jsx(nu,{name:"threshold",children:jf({label:"Threshold",fieldProps:{type:"number"}})})}),we.jsx(MW,{onClose:t})]})})},SBe=({onClose:t,target:e})=>{const[n,r]=yx(),{safeInformation:a}=ci(),i=async({threshold:s})=>{const o=await(a==null?void 0:a.safeSdk.createRemoveOwnerTx({ownerAddress:a.address,threshold:s}));!o||!a||(r({proposal:JSON.stringify({actions:[{data:o.data,value:"0",to:a.address}]})}),t())};return we.jsx(Ix,{validationSchema:zm({threshold:Jv()}),initialValues:{threshold:a==null?void 0:a.threshold},onSubmit:i,children:we.jsxs(mA,{children:[we.jsx(Fn,{variant:"featured-2",children:"Remove Owner"}),we.jsxs(Fn,{children:["Owner: ",we.jsx(yW,{address:e})]}),we.jsx(Fn,{children:we.jsx(nu,{name:"threshold",children:jf({label:"Threshold",fieldProps:{type:"number"}})})}),we.jsx(MW,{onClose:t})]})})},TBe=({action:t,onClose:e})=>we.jsxs(Y_,{active:!!t,onClose:e,children:[(t==null?void 0:t.type)==="remove"&&we.jsx(SBe,{onClose:e,target:t.address}),(t==null?void 0:t.type)==="add"&&we.jsx(CBe,{onClose:e})]}),D3=({title:t,description:e,children:n})=>we.jsxs(we.Fragment,{children:[we.jsxs(rt,{direction:"row",align:"center",children:[we.jsxs(Fn,{variant:"body-2",children:[t,":"]})," ",we.jsx(DTe,{children:e})]}),n]}),FW=({children:t})=>{var a;const[e,n]=ve.useState(),{safeInformation:r}=ci();return we.jsxs("div",{children:[e&&we.jsx(TBe,{onClose:()=>{n(void 0)},action:e}),we.jsx(X_,{children:we.jsxs(rt,{divided:!0,gap:2,children:[we.jsx(rt.Item,{children:we.jsx(D3,{title:"Network",description:"Chain for the Safe",children:((a=Hm[r.chainId])==null?void 0:a.name)||r.chainId.toString()})}),we.jsx(rt.Item,{children:we.jsx(D3,{title:"Threshold",description:`Number of signers that need to approve a transaction before - execution`,children:r.threshold})}),we.jsx(rt.Item,{children:we.jsx(D3,{title:"Signers",description:"Signers are the list of addresses for the signers of the multisig",children:we.jsxs(rt,{paddingTop:1,children:[r.owners.map(i=>we.jsx(rt.Item,{children:we.jsxs(rt,{align:"center",direction:"row",children:[we.jsx(yW,{address:i}),we.jsxs(Dn,{onClick:()=>{n({type:"remove",address:i})},variant:"ghost",children:[" ","x"," "]})]})},i)),we.jsx(rt.Item,{children:we.jsx(rt,{justify:"end",direction:"row",children:we.jsx(rt,{children:we.jsx(Dn,{onClick:()=>{n({type:"add"})},children:"Add"})})})})]})})}),we.jsx(rt.Item,{children:we.jsx(D3,{title:"Nonce",description:"Nonce is the index of the current transaction of the safe",children:r.nonce})})]})}),t]})},BBe={[DT.id]:"mainnet",[Um.id]:"zora",[rW.id]:"base-goerli",[F6.id]:"base",[FT.id]:"goerli",[jm.id]:"zora-goerli",[Lm.id]:"optimism"},MBe=({to:t,data:e})=>{const n=ci().currentNetwork,[r,a]=ve.useState(),i=ve.useCallback(async()=>{let s;try{const o=await fetch(`https://${BBe[Number(n)]}.ether.actor/decode/${t}/${e}`);if(!o.ok)throw new Error;s=await o.json()}catch{s=await(await fetch(`https://ether.actor/decode/${e}`)).json()}a(s)},[t,e,a]);return ve.useEffect(()=>{i()},[t,e]),we.jsx("pre",{children:JSON.stringify(r,null,2)})},FBe=zm({nonce:Jv().nullable(),actions:SW(zm({to:BW,value:N6().default("0").matches(/^[0-9]+(\.[0-9]+)?$/,"Needs to be a ETH price (0, 1, or 0.23)").required(),data:N6().default("0x").matches(/^0x(?:[0-9A-Za-z][0-9A-Za-z])*$/,"Data is required to match hex format").required()}))}),DW={to:"0x",value:"0",data:"0x"},kW={nonce:null,actions:[DW]},X0={targets:"targets",calldatas:"calldatas",values:"values"},DBe=()=>{const[t,e]=ve.useState(),[n]=yx();return ve.useEffect(()=>{var s,o,c;const r=(s=n.get(X0.targets))==null?void 0:s.split("|"),a=(o=n.get(X0.calldatas))==null?void 0:o.split("|"),i=(c=n.get(X0.values))==null?void 0:c.split("|");if(r&&a){if(r.length!==a.length||i!=null&&i.length&&(i==null?void 0:i.length)!==r.length){console.log("invalid lengths");return}const h=r.map((b,v)=>({to:b,data:a[v],value:i&&i[v]||"0"}));e({actions:h})}},[n,e]),t},kBe=()=>{const[t,e]=yx();return ve.useCallback(n=>{var r;(r=n.actions)!=null&&r.length&&(console.log("setting params",n.actions),e({[X0.targets]:n.actions.map(a=>a.to).join("|"),[X0.calldatas]:n.actions.map(a=>a.data).join("|"),[X0.values]:n.actions.map(a=>a.value).join("|")}))},[e])};function IBe(t){var e;return{...t,actions:(e=t.actions)==null?void 0:e.map(n=>({...n,value:aL(n.value).toString()}))}}function OBe(t){var e;return{...t,actions:(e=t.actions)==null?void 0:e.map(n=>({...n,value:Z$(BigInt(n.value))}))}}const PBe=({name:t,indx:e,remove:n})=>we.jsxs(rt,{children:[we.jsxs(rt,{direction:"row",align:"center",justify:"space-between",children:[we.jsxs(Fn,{variant:"body-2",children:["Action #",e," "]}),we.jsx(Dn,{onClick:()=>n(e),variant:"ghost",children:"Remove"})]}),we.jsx(nu,{name:`${t}.to`,validate:_Be,children:jf({label:"Destination Contract"})}),we.jsx(nu,{name:`${t}.value`,validate:ABe,children:jf({label:"Value (in ETH)",fieldProps:{type:"number"}})}),we.jsx(nu,{name:`${t}.data`,children:jf({label:"Data"})})]}),$T=async({proposal:t,safe:e})=>{if(t.actions)return await e.createTransaction({transactions:t.actions,options:{nonce:t.nonce||void 0}})},RBe=async({proposal:t,safe:e})=>{var i;const n=await $T({proposal:t,safe:e});if(!n)throw new Error("No txn");const r=await e.getTransactionHash(n),a=await e.approveTransactionHash(r);return await((i=a.transactionResponse)==null?void 0:i.wait()),a},NBe=async({proposal:t,safe:e})=>{var a;const n=await $T({proposal:t,safe:e});if(!n)throw new Error("No txn");const r=await e.executeTransaction(n);return await((a=r.transactionResponse)==null?void 0:a.wait()),r},$Be=({proposal:t})=>{const{safeInformation:e}=ci(),n=e.safeSdk,r=e.safeSdk2,[a,i]=ve.useState([]),s=ve.useCallback(async()=>{if(!n||!r)return;const o=await $T({proposal:t,safe:n});if(!o)return;const c=await n.getTransactionHash(o),h=await r.getOwnersWhoApprovedTx(c);i(h)},[t,n,r]);return ve.useEffect(()=>{s()},[s]),{approvers:a,loadApprovers:s}},LBe=()=>{const{walletProvider:t}=ci(),[e,n]=ve.useState();return ve.useEffect(()=>{t&&(async()=>{const r=await t.getSigner();n(await r.getAddress())})()},[t]),e};function UBe({hasApproved:t,totalApprovers:e,threshold:n}){const r=n-e;return r===0||r===1&&!t}const jBe=({handleEditClicked:t,proposal:e})=>{var E;const{safeInformation:n}=ci(),r=n.safeSdk,a=eA(),{approvers:i,loadApprovers:s}=$Be({proposal:e}),o=LBe(),c=ve.useCallback(async()=>{if(r)try{const C=await RBe({proposal:e,safe:r});a.show({title:"Approved Txn Hash",text:`Approved with hash: ${C.hash}`}),s()}catch(C){a.show({title:"Error creating safe",text:`Message: ${C.message}`})}},[e,r,a,s]),h=ve.useCallback(async()=>{if(r)try{const C=await NBe({proposal:e,safe:r});a.show({title:"Executed Txn Hash",text:`Executed with hash: ${C.hash}`}),s()}catch(C){a.show({title:"Error creating safe",text:`Message: ${C.message}`})}},[e,r,a,s]),b=o?i.includes(o):!1,v=UBe({hasApproved:b,totalApprovers:i.length,threshold:(n==null?void 0:n.threshold)||0});return we.jsxs(we.Fragment,{children:[we.jsxs(rt,{children:[we.jsxs(rt.Item,{children:["Nonce: ",e.nonce]}),(E=e.actions)==null?void 0:E.map((C,M)=>we.jsxs(we.Fragment,{children:[we.jsxs(rt.Item,{children:["Proposal #",M]}),we.jsxs(rt.Item,{children:["To: ",C.to]}),we.jsxs(rt.Item,{children:["Value: ",Z$(BigInt(C.value))]}),C.data?we.jsxs(we.Fragment,{children:[we.jsxs(rt.Item,{children:["Data: ",C.data]}),we.jsxs(rt.Item,{children:["Data Actions:"," ",we.jsx("pre",{children:we.jsx(MBe,{data:C.data,to:C.to})})]})]}):we.jsx(rt.Item,{children:"No data"})]}))]}),we.jsxs(rt,{children:[we.jsxs(rt.Item,{children:["Approvers: (",i.length," out of ",n==null?void 0:n.threshold," ","signed)"]}),i.map(C=>we.jsxs(rt.Item,{children:[C," ",we.jsx("b",{children:C===o&&"(you)"})]},C))]}),we.jsxs(rt,{gap:4,direction:"row",children:[we.jsx(Dn,{onClick:t,children:"Edit"}),we.jsx(Dn,{onClick:c,disabled:b,children:"Sign"}),we.jsx(Dn,{onClick:h,disabled:!v,children:"Sign and Execute"})]})]})},HBe=({proposal:t})=>{const e=kBe(),n=ve.useCallback(a=>{const i=IBe(a);i&&e(i)},[e]),r=t||kW;return we.jsx(rt,{paddingTop:4,children:we.jsx(X_,{children:we.jsx(Ix,{validationSchema:FBe,initialValues:OBe(r),onSubmit:n,children:({handleSubmit:a,values:i,isValid:s})=>we.jsx("form",{onSubmit:a,children:we.jsxs(rt,{gap:4,children:[we.jsx(rt.Item,{children:we.jsx(Fn,{variant:"featured-2",children:"New Proposal Details"})}),we.jsx(rt.Item,{children:we.jsx(nu,{name:"nonce",children:jf({label:"Nonce (optional)",fieldProps:{type:"number"}})})}),we.jsx(B$,{name:"actions",children:o=>{var c;return we.jsxs(we.Fragment,{children:[(c=i.actions)==null?void 0:c.map((h,b)=>we.jsx(PBe,{remove:o.remove,indx:b,name:`actions.${b}`})),we.jsxs(rt,{direction:"row",justify:"space-between",children:[we.jsx(rt,{children:" "}),we.jsx(Dn,{onClick:o.handlePush(DW),children:"Add"})]})]})}}),we.jsx(rt.Item,{children:we.jsx(Dn,{disabled:!s,type:"submit",children:"Done"})})]})})})})})},zBe=()=>{const[t,e]=ve.useState(kW),[n,r]=ve.useState(!0),a=DBe();ve.useEffect(()=>{a&&(e(a),r(!1))},[a]);const i=ve.useCallback(s=>{r(!0),s.preventDefault()},[r]);return we.jsx(rt,{paddingTop:4,paddingBottom:8,gap:8,children:we.jsxs(FW,{children:[n&&we.jsx(HBe,{proposal:t,setProposal:e,setIsEditing:r}),!n&&t&&we.jsx(jBe,{proposal:t,handleEditClicked:i})]})})},GBe=()=>{const{networkId:t,safeAddress:e}=G_(),n=Rp(),r=()=>{n(`/safe/${t}/${e}/new`)};return we.jsxs(rt,{gap:4,children:[we.jsx(FW,{}),we.jsx(Dn,{onClick:r,children:"New Proposal"})]})},VBe=yJ([{path:"/",Component:xTe,children:[{path:"/safe/:networkId",index:!0,Component:cce},{path:"/safe/:networkId/create",Component:ETe},{path:"/safe/:networkId/:safeAddress",Component:bTe,children:[{path:"/safe/:networkId/:safeAddress",index:!0,Component:GBe},{path:"/safe/:networkId/:safeAddress/new",index:!0,Component:zBe}]}]}]),qBe=()=>we.jsx(uee,{theme:"reshaped",children:we.jsx(NY,{width:"624px",children:we.jsx(AJ,{router:VBe})})});globalThis.Buffer=Kc.Buffer;const WBe=document.getElementById("app"),KBe=XR(WBe);KBe.render(we.jsx(ve.StrictMode,{children:we.jsx(qBe,{})}))});export default QBe(); diff --git a/index.html b/index.html index b7b9146..ba6095f 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ Smol Safe - +