diff --git a/Web/index.js b/Web/index.js index b02e56f..a947857 100644 --- a/Web/index.js +++ b/Web/index.js @@ -1,4 +1,4 @@ -!function(e,t,r,n,a){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof i[n]&&i[n],o=s.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!o[t]){if(!e[t]){var a="function"==typeof i[n]&&i[n];if(!r&&a)return a(t,!0);if(s)return s(t,!0);if(c&&"string"==typeof t)return c(t);var d=Error("Cannot find module '"+t+"'");throw d.code="MODULE_NOT_FOUND",d}u.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},u.cache={};var l=o[t]=new f.Module(t);e[t][0].call(l.exports,u,l,l.exports,this)}return o[t].exports;function u(e){var t=u.resolve(e);return!1===t?{}:f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=o,f.parent=s,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return i[n]}}),i[n]=f;for(var d=0;d{let t=JSON.stringify(e);if(console.log(`callbackToGame: ${t}`),void 0!==window.ue){if(void 0===window.ue.jsconnector){let e="Unreal JSConnector not defined";throw console.error(e),Error(e)}window.ue.jsconnector.sendtogame(t)}else if("undefined"!=typeof blu_event)blu_event("sendtogame",t);else if("undefined"!=typeof UnityPostMessage)UnityPostMessage(t);else if(void 0!==window.Unity)window.Unity.call(t);else if(void 0!==window.uwb)window.uwb.ExecuteJsMethod("callback",t);else{let e="No available game callbacks to call from ImmutableSDK game-bridge";throw console.error(e),Error(e)}},w=()=>{if(null==n)throw Error("No Passport client");return n},x=e=>null!=e?(a=e,console.log("IMX provider set"),!0):(console.log("No IMX provider"),!1),E=()=>{if(null==a)throw Error("No IMX provider");return a},A=e=>null!=e?(i=e,console.log("zkEvm provider set"),!0):(console.log("No zkEvm provider"),!1),_=()=>{if(null==i)throw Error("No zkEvm provider");return i},T=e=>Date.now()-e;(0,l.track)(g,"loadedGameBridge",{sdkVersionTag:m}),window.callFunction=async e=>{console.log(`Call function ${e}`);let t=null,r=null,o=Date.now();try{let I=JSON.parse(e);t=I.fxName,r=I.requestId;let S=I.data;switch(t){case y.init:{let e=JSON.parse(S),a=e?.redirectUri,i=e?.isSilentLogout===!0?"silent":"redirect";if(!n){let t;console.log(`Connecting to ${e.environment} environment`);let r="production"===e.environment?f.Environment.PRODUCTION:f.Environment.SANDBOX,s=new f.ImmutableConfiguration({environment:r});t="dev"===e.environment||"development"===e.environment?{baseConfig:s,clientId:e.clientId,redirectUri:a??b,logoutRedirectUri:e?.logoutRedirectUri,audience:p,scope:h,crossSdkBridgeEnabled:!0,logoutMode:i,overrides:{authenticationDomain:"https://auth.dev.immutable.com",magicPublishableApiKey:"pk_live_4058236363130CA9",magicProviderId:"C9odf7hU4EQ5EufcfgYfcBaT5V6LhocXyiPRhIjw2EY=",passportDomain:"https://passport.dev.immutable.com",imxPublicApiDomain:"https://api.dev.immutable.com",immutableXClient:new d.IMXClient({baseConfig:s,overrides:{immutableXConfig:d.createConfig({basePath:"https://api.dev.x.immutable.com",chainID:5,coreContractAddress:"0xd05323731807A35599BF9798a1DE15e89d6D6eF1",registrationContractAddress:"0x7EB840223a3b1E0e8D54bF8A6cd83df5AFfC88B2"})}}),zkEvmRpcUrl:"https://rpc.dev.immutable.com",relayerUrl:"https://api.dev.immutable.com/relayer-mr",indexerMrBasePath:"https://api.dev.immutable.com",orderBookMrBasePath:"https://api.dev.immutable.com",passportMrBasePath:"https://api.dev.immutable.com"}}:{baseConfig:s,clientId:e.clientId,audience:p,scope:h,redirectUri:a??b,logoutRedirectUri:e?.logoutRedirectUri,crossSdkBridgeEnabled:!0,jsonRpcReferrer:"http://imtblgamesdk.local",logoutMode:i},n=new c.Passport(t),(0,l.trackDuration)(g,"initialisedPassport",T(o))}v({responseFor:t,requestId:r,success:!0,error:null});let{engineVersion:u}=e;s={gameBridgeTag:m,gameBridgeSha:"bc012376667a2643933978cdd407248f7fbebdd6",engine:u.engine,engineVersion:u.engineVersion,engineSdkVersion:u.engineSdkVersion??"",platform:u.platform,platformVersion:u.platformVersion,deviceModel:u.deviceModel??"N/A"},console.log(`Version check: ${JSON.stringify(s)}`),(0,l.trackDuration)(g,"completedInitGameBridge",T(o),{...s});break}case y.initDeviceFlow:{let e=await w().loginWithDeviceFlow();(0,l.trackDuration)(g,"performedInitDeviceFlow",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,code:e.code,deviceCode:e.deviceCode,url:e.url,interval:e.interval});break}case y.relogin:{let e=await w().login({useCachedSession:!0}),n=null!==e;if(!n)throw Error("Failed to re-login");(0,l.identify)({passportId:e?.sub}),(0,l.trackDuration)(g,"performedRelogin",T(o),{succeeded:n}),v({responseFor:t,requestId:r,success:null!==e,error:null});break}case y.reconnect:{let e=!1,n=await w().login({useCachedSession:!0});if(n){let t=await w().connectImx();e=x(t),(0,l.identify)({passportId:n?.sub})}if(!e)throw Error("Failed to reconnect");(0,l.trackDuration)(g,"performedReconnect",T(o),{succeeded:null!==n}),v({responseFor:t,requestId:r,success:e,error:null});break}case y.getPKCEAuthUrl:{let e=await w().loginWithPKCEFlow();(0,l.trackDuration)(g,"performedGetPkceAuthUrl",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.loginPKCE:{let e=JSON.parse(S),n=await w().loginWithPKCEFlowCallback(e.authorizationCode,e.state);(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedLoginPkce",T(o)),v({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectPKCE:{let e=JSON.parse(S),n=await w().loginWithPKCEFlowCallback(e.authorizationCode,e.state),a=await w().connectImx(),i=x(a);if(!i)throw Error("Failed to connect via PKCE");(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedConnectPkce",T(o),{succeeded:i}),v({responseFor:t,requestId:r,success:i,error:null});break}case y.loginConfirmCode:{let e=JSON.parse(S),n=await w().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null);(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedLoginConfirmCode",T(o)),v({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectConfirmCode:{let e=JSON.parse(S),n=await w().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null),a=await w().connectImx(),i=x(a);if(!i)throw Error("Failed to connect via confirm code");(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedConnectConfirmCode",T(o),{succeeded:i}),v({responseFor:t,requestId:r,success:i,error:null});break}case y.logout:{let e=await w().logoutDeviceFlow();a=null,i=null,(0,l.trackDuration)(g,"performedGetLogoutUrl",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.getAccessToken:{let e=await w().getAccessToken(),n=void 0!==e;if(!n)throw Error("No access token");(0,l.trackDuration)(g,"performedGetAccessToken",T(o)),v({responseFor:t,requestId:r,success:n,error:null,result:e});break}case y.getIdToken:{let e=await w().getIdToken(),n=void 0!==e;if(!n)throw Error("No ID token");(0,l.trackDuration)(g,"performedGetIdToken",T(o)),v({responseFor:t,requestId:r,success:n,error:null,result:e});break}case y.getEmail:{let e=await w().getUserInfo(),n=e?.email!==void 0;if(!n)throw Error("No email");(0,l.trackDuration)(g,"performedGetEmail",T(o)),v({responseFor:t,requestId:r,success:n,error:null,result:e?.email});break}case y.getPassportId:{let e=await w().getUserInfo(),n=e?.sub!==void 0;if(!n)throw Error("No Passport ID");(0,l.trackDuration)(g,"performedGetPassportId",T(o)),v({responseFor:t,requestId:r,success:n,error:null,result:e?.sub});break}case y.getLinkedAddresses:{let e=await w().getLinkedAddresses();(0,l.trackDuration)(g,"performedGetLinkedAddresses",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.getAddress:{let e=await E().getAddress();(0,l.trackDuration)(g,"performedImxGetAddress",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.isRegisteredOffchain:{let e=await E().isRegisteredOffchain();(0,l.trackDuration)(g,"performedImxIsRegisteredOffchain",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.registerOffchain:{let e=await E().registerOffchain();(0,l.trackDuration)(g,"performedImxRegisterOffchain",T(o)),v({responseFor:t,requestId:r,success:!0,error:null,...e});break}case y.imx.transfer:{let e=JSON.parse(S),n=await E().transfer(e);(0,l.trackDuration)(g,"performedImxTransfer",T(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(n)}),v({responseFor:t,requestId:r,success:!0,error:null,...n});break}case y.imx.batchNftTransfer:{let e=JSON.parse(S),n=await E().batchNftTransfer(e);(0,l.trackDuration)(g,"performedImxBatchNftTransfer",T(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(n)}),v({responseFor:t,requestId:r,success:!0,error:null,...n});break}case y.zkEvm.connectEvm:{let e=await w().connectEvm(),n=A(e);if(!n)throw Error("Failed to connect to EVM");(0,l.trackDuration)(g,"performedZkevmConnectEvm",T(o),{succeeded:n}),v({responseFor:t,requestId:r,success:n,error:null});break}case y.zkEvm.sendTransaction:{let e=JSON.parse(S),n=await _().request({method:"eth_sendTransaction",params:[e]}),a=null!=n;if(!a)throw Error("Failed to send transaction");(0,l.trackDuration)(g,"performedZkevmSendTransaction",T(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:n}),v({responseFor:t,requestId:r,success:a,error:null,result:n});break}case y.zkEvm.sendTransactionWithConfirmation:{let e=JSON.parse(S),n=_(),a=new u.BrowserProvider(n),i=await a.getSigner(),s=await i.sendTransaction(e),c=await s.wait();(0,l.trackDuration)(g,"performedZkevmSendTransactionWithConfirmation",T(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:JSON.stringify(c?.toJSON())}),v({responseFor:t,requestId:r,success:!0,error:null,...c?.toJSON()});break}case y.zkEvm.signTypedDataV4:{let e=JSON.parse(S),[n]=await _().request({method:"eth_requestAccounts"}),a=await _().request({method:"eth_signTypedData_v4",params:[n,e]}),i=null!=a;if(!i)throw Error("Failed to sign payload");(0,l.trackDuration)(g,"performedZkevmSignTypedDataV4",T(o),{requestId:r}),v({responseFor:t,requestId:r,success:i,error:null,result:a});break}case y.zkEvm.requestAccounts:{let e=await _().request({method:"eth_requestAccounts"}),n=null!=e;if(!n)throw Error("Failed to request accounts");(0,l.trackDuration)(g,"performedZkevmRequestAccounts",T(o)),v({responseFor:t,requestId:r,success:n,error:null,accounts:e});break}case y.zkEvm.getBalance:{let e=JSON.parse(S),n=await _().request({method:"eth_getBalance",params:[e.address,e.blockNumberOrTag]}),a=null!=n;if(!a)throw Error("Failed to get balance");(0,l.trackDuration)(g,"performedZkevmGetBalance",T(o)),v({responseFor:t,requestId:r,success:a,error:null,result:n});break}case y.zkEvm.getTransactionReceipt:{let e=JSON.parse(S),n=await _().request({method:"eth_getTransactionReceipt",params:[e.txHash]}),a=void 0!==n;if(!a)throw Error("Failed to get transaction receipt");(0,l.trackDuration)(g,"performedZkevmGetTransactionReceipt",T(o)),v({responseFor:t,requestId:r,success:a,error:null,...n});break}case"track":{let e=JSON.parse(S),n=e.properties?JSON.parse(e.properties):{};(0,l.track)(e.moduleName,e.eventName,n),v({responseFor:t,requestId:r,success:!0,error:null});break}default:{let e=JSON.parse(S),n=e.properties?JSON.parse(e.properties):{};n.fxName=t,(0,l.track)(g,"callFunctionDefaultCaseCalled",n),v({responseFor:t,requestId:r,success:!1,error:`Invalid game bridge function: ${t}`})}}}catch(a){let e;console.log(`Error in callFunction: ${a}`),e=a instanceof Error?a:Error(a);let n=a instanceof c.PassportError?a?.type:void 0;(0,l.trackError)(g,t,e,{fxName:t,requestId:r,errorType:n,...s}),(0,l.trackDuration)(g,"failedCallFunction",T(o),{fxName:t,requestId:r,error:e.message}),console.log("callFunction error",e),console.log("callFunction errorType",n),v({responseFor:t,requestId:r,success:!1,error:a?.message!==null&&a?.message!==void 0?a.message:"Error",errorType:a instanceof c.PassportError?a?.type:null})}},window.addEventListener("offline",()=>{console.log("gameBridge offline")}),window.addEventListener("online",()=>{console.log("gameBridge online")}),console.log("index.ts loaded"),o=function(){v({responseFor:"init",requestId:"1",success:!0,error:null})},"complete"===document.readyState?o():window.addEventListener("load",o)},{"@imtbl/passport":"i7Tp1","@imtbl/config":"ifUQV","@imtbl/x-client":"lqVsJ","@imtbl/metrics":"7Q1ml",ethers:"jZqA6"}],i7Tp1:[function(e,t,r){let n,a,i;var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(r),s.export(r,"JsonRpcError",()=>e4),s.export(r,"Passport",()=>tz),s.export(r,"PassportError",()=>V),s.export(r,"ProviderErrorCode",()=>e8),s.export(r,"ProviderEvent",()=>eV),s.export(r,"RpcErrorCode",()=>e3);var o=e("axios"),c=s.interopDefault(o),f=e("@imtbl/generated-clients"),d=e("@imtbl/x-client"),l=e("@imtbl/config"),u=e("@imtbl/metrics"),h=e("oidc-client-ts"),p=e("jwt-decode"),b=s.interopDefault(p),g=e("localforage"),m=s.interopDefault(g),y=e("magic-sdk"),v=e("@magic-ext/oidc"),w=e("ethers"),x=e("@imtbl/toolkit"),E=e("events"),A=e("@0xsequence/abi"),_=e("@0xsequence/core"),T=e("uuid");function I(e){throw Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}var S,C=[],k=!1,R=-1;function M(){k&&S&&(k=!1,S.length?C=S.concat(C):R=-1,C.length&&B())}function B(){if(!k){var e=setTimeout(M,0);k=!0;for(var t=C.length;t;){for(S=C,C=[];++Rtypeof performance?performance.now.bind(performance):void 0,timing:"u">typeof performance?performance.timing:void 0};function L(e){var t=Math.floor((Date.now()-U.now())*.001),r=.001*U.now(),n=Math.floor(r)+t,a=Math.floor(r%1*1e9);return e&&(n-=e[0],(a-=e[1])<0&&(n--,a+=1e9)),[n,a]}function D(){return F}void 0===U.now&&(e7=Date.now(),U.timing&&U.timing.navigationStart&&(e7=U.timing.navigationStart),U.now=()=>Date.now()-e7),L.bigint=function(e){var t=L(e);return typeof BigInt>"u"?1e9*t[0]+t[1]:BigInt(1e9*t[0])+BigInt(t[1])};var F={version:"v16.8.0",versions:{},arch:"x64",platform:"browser",release:{name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_rawDebug:j,moduleLoadList:[],binding:function(e){I("binding")},_linkedBinding:function(e){I("_linkedBinding")},_events:{},_eventsCount:0,_maxListeners:10,on:D,addListener:D,once:D,off:D,removeListener:D,removeAllListeners:D,emit:j,prependListener:D,prependOnceListener:D,listeners:function(e){return[]},domain:{},_exiting:!1,config:{},dlopen:function(e){I("dlopen")},uptime:function(){return U.now()/1e3},_getActiveRequests:function(){return[]},_getActiveHandles:function(){return[]},reallyExit:j,_kill:j,cpuUsage:N,resourceUsage:N,memoryUsage:N,kill:j,exit:j,openStdin:j,allowedNodeEnvironmentFlags:{},assert:function(e,t){if(!e)throw Error(t||"assertion error")},features:{inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_fatalExceptions:j,setUncaughtExceptionCaptureCallback:j,hasUncaughtExceptionCaptureCallback:function(){return!1},emitWarning:function(e,t){console.warn((t?t+": ":"")+e)},nextTick:function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r{try{return await e()}catch(e){throw e instanceof V&&"SERVICE_UNAVAILABLE_ERROR"===e.type?new V(e.message,e.type):new V((0,o.isAxiosError)(e)&&e.response?.data&&H(e.response.data)?e.response.data.message:e.message,t)}},z="pkce_state",G="pkce_verifier",K=class{areValid(e){if(e){let t=this.isTokenValid(e.access_token),r=this.isTokenValid(e.id_token);return t&&r}return!1}isTokenValid(e){try{let t=(0,b.default)(e).exp??0,r=Date.now()/1e3+3600;return t>r}catch{return!1}}savePKCEData(e){localStorage.setItem(z,e.state),localStorage.setItem(G,e.verifier)}getPKCEData(){let e=localStorage.getItem(z),t=localStorage.getItem(G);return e&&t?{state:e,verifier:t}:null}},W={warn:(...e)=>{typeof F>"u"||F?.env?.JEST_WORKER_ID!==void 0||console.warn(...e)}},$=e=>!!e.zkEvm,J=e=>!!e.imx,Q="passport-overlay",Z=`${Q}-close`,X=`${Q}-try-again`,Y=` +!function(e,t,r,n,a){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof i[n]&&i[n],o=s.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,r){if(!o[t]){if(!e[t]){var a="function"==typeof i[n]&&i[n];if(!r&&a)return a(t,!0);if(s)return s(t,!0);if(c&&"string"==typeof t)return c(t);var d=Error("Cannot find module '"+t+"'");throw d.code="MODULE_NOT_FOUND",d}u.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},u.cache={};var l=o[t]=new f.Module(t);e[t][0].call(l.exports,u,l,l.exports,this)}return o[t].exports;function u(e){var t=u.resolve(e);return!1===t?{}:f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=o,f.parent=s,f.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(f,"root",{get:function(){return i[n]}}),i[n]=f;for(var d=0;d{let t=JSON.stringify(e);if(console.log(`callbackToGame: ${t}`),void 0!==window.ue){if(void 0===window.ue.jsconnector){let e="Unreal JSConnector not defined";throw console.error(e),Error(e)}window.ue.jsconnector.sendtogame(t)}else if("undefined"!=typeof blu_event)blu_event("sendtogame",t);else if("undefined"!=typeof UnityPostMessage)UnityPostMessage(t);else if(void 0!==window.Unity)window.Unity.call(t);else if(void 0!==window.uwb)window.uwb.ExecuteJsMethod("callback",t);else{let e="No available game callbacks to call from ImmutableSDK game-bridge";throw console.error(e),Error(e)}},x=()=>{if(null==n)throw Error("No Passport client");return n},E=e=>null!=e?(a=e,console.log("IMX provider set"),!0):(console.log("No IMX provider"),!1),A=()=>{if(null==a)throw Error("No IMX provider");return a},_=e=>null!=e?(i=e,console.log("zkEvm provider set"),!0):(console.log("No zkEvm provider"),!1),T=()=>{if(null==i)throw Error("No zkEvm provider");return i},I=e=>Date.now()-e;(0,l.track)(g,"loadedGameBridge",{sdkVersionTag:m}),window.callFunction=async e=>{console.log(`Call function ${e}`);let t=null,r=null,o=Date.now();try{let S=JSON.parse(e);t=S.fxName,r=S.requestId;let C=S.data;switch(t){case y.init:{let e=JSON.parse(C),a=e?.redirectUri,i=e?.isSilentLogout===!0?"silent":"redirect";if(!n||v!==C){let t;v=C,console.log(`Connecting to ${e.environment} environment`);let r="production"===e.environment?f.Environment.PRODUCTION:f.Environment.SANDBOX,s=new f.ImmutableConfiguration({environment:r});t="dev"===e.environment||"development"===e.environment?{baseConfig:s,clientId:e.clientId,redirectUri:a??b,logoutRedirectUri:e?.logoutRedirectUri,audience:p,scope:h,crossSdkBridgeEnabled:!0,logoutMode:i,extraQueryParams:e.extraQueryParams,overrides:{authenticationDomain:"https://auth.dev.immutable.com",magicPublishableApiKey:"pk_live_4058236363130CA9",magicProviderId:"C9odf7hU4EQ5EufcfgYfcBaT5V6LhocXyiPRhIjw2EY=",passportDomain:"https://passport.dev.immutable.com",imxPublicApiDomain:"https://api.dev.immutable.com",immutableXClient:new d.IMXClient({baseConfig:s,overrides:{immutableXConfig:d.createConfig({basePath:"https://api.dev.x.immutable.com",chainID:5,coreContractAddress:"0xd05323731807A35599BF9798a1DE15e89d6D6eF1",registrationContractAddress:"0x7EB840223a3b1E0e8D54bF8A6cd83df5AFfC88B2"})}}),zkEvmRpcUrl:"https://rpc.dev.immutable.com",relayerUrl:"https://api.dev.immutable.com/relayer-mr",indexerMrBasePath:"https://api.dev.immutable.com",orderBookMrBasePath:"https://api.dev.immutable.com",passportMrBasePath:"https://api.dev.immutable.com"}}:{baseConfig:s,clientId:e.clientId,audience:p,scope:h,redirectUri:a??b,logoutRedirectUri:e?.logoutRedirectUri,crossSdkBridgeEnabled:!0,jsonRpcReferrer:"http://imtblgamesdk.local",logoutMode:i,extraQueryParams:e.extraQueryParams},n=new c.Passport(t),(0,l.trackDuration)(g,"initialisedPassport",I(o))}w({responseFor:t,requestId:r,success:!0,error:null});let{engineVersion:u}=e;s={gameBridgeTag:m,gameBridgeSha:"c0abbd63220a1bc915c05437cdd0a4975c73a47a",engine:u.engine,engineVersion:u.engineVersion,engineSdkVersion:u.engineSdkVersion??"",platform:u.platform,platformVersion:u.platformVersion,deviceModel:u.deviceModel??"N/A"},console.log(`Version check: ${JSON.stringify(s)}`),(0,l.trackDuration)(g,"completedInitGameBridge",I(o),{...s});break}case y.initDeviceFlow:{let e=await x().loginWithDeviceFlow();(0,l.trackDuration)(g,"performedInitDeviceFlow",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,code:e.code,deviceCode:e.deviceCode,url:e.url,interval:e.interval});break}case y.relogin:{let e=await x().login({useCachedSession:!0}),n=null!==e;if(!n)throw Error("Failed to re-login");(0,l.identify)({passportId:e?.sub}),(0,l.trackDuration)(g,"performedRelogin",I(o),{succeeded:n}),w({responseFor:t,requestId:r,success:null!==e,error:null});break}case y.reconnect:{let e=!1,n=await x().login({useCachedSession:!0});if(n){let t=await x().connectImx();e=E(t),(0,l.identify)({passportId:n?.sub})}if(!e)throw Error("Failed to reconnect");(0,l.trackDuration)(g,"performedReconnect",I(o),{succeeded:null!==n}),w({responseFor:t,requestId:r,success:e,error:null});break}case y.getPKCEAuthUrl:{let e=await x().loginWithPKCEFlow();(0,l.trackDuration)(g,"performedGetPkceAuthUrl",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.loginPKCE:{let e=JSON.parse(C),n=await x().loginWithPKCEFlowCallback(e.authorizationCode,e.state);(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedLoginPkce",I(o)),w({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectPKCE:{let e=JSON.parse(C),n=await x().loginWithPKCEFlowCallback(e.authorizationCode,e.state),a=await x().connectImx(),i=E(a);if(!i)throw Error("Failed to connect via PKCE");(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedConnectPkce",I(o),{succeeded:i}),w({responseFor:t,requestId:r,success:i,error:null});break}case y.loginConfirmCode:{let e=JSON.parse(C),n=await x().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null);(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedLoginConfirmCode",I(o)),w({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectConfirmCode:{let e=JSON.parse(C),n=await x().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null),a=await x().connectImx(),i=E(a);if(!i)throw Error("Failed to connect via confirm code");(0,l.identify)({passportId:n.sub}),(0,l.trackDuration)(g,"performedConnectConfirmCode",I(o),{succeeded:i}),w({responseFor:t,requestId:r,success:i,error:null});break}case y.logout:{let e=await x().logoutDeviceFlow();a=null,i=null,(0,l.trackDuration)(g,"performedGetLogoutUrl",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.getAccessToken:{let e=await x().getAccessToken(),n=void 0!==e;if(!n)throw Error("No access token");(0,l.trackDuration)(g,"performedGetAccessToken",I(o)),w({responseFor:t,requestId:r,success:n,error:null,result:e});break}case y.getIdToken:{let e=await x().getIdToken(),n=void 0!==e;if(!n)throw Error("No ID token");(0,l.trackDuration)(g,"performedGetIdToken",I(o)),w({responseFor:t,requestId:r,success:n,error:null,result:e});break}case y.getEmail:{let e=await x().getUserInfo(),n=e?.email!==void 0;if(!n)throw Error("No email");(0,l.trackDuration)(g,"performedGetEmail",I(o)),w({responseFor:t,requestId:r,success:n,error:null,result:e?.email});break}case y.getPassportId:{let e=await x().getUserInfo(),n=e?.sub!==void 0;if(!n)throw Error("No Passport ID");(0,l.trackDuration)(g,"performedGetPassportId",I(o)),w({responseFor:t,requestId:r,success:n,error:null,result:e?.sub});break}case y.getLinkedAddresses:{let e=await x().getLinkedAddresses();(0,l.trackDuration)(g,"performedGetLinkedAddresses",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.getAddress:{let e=await A().getAddress();(0,l.trackDuration)(g,"performedImxGetAddress",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.isRegisteredOffchain:{let e=await A().isRegisteredOffchain();(0,l.trackDuration)(g,"performedImxIsRegisteredOffchain",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.registerOffchain:{let e=await A().registerOffchain();(0,l.trackDuration)(g,"performedImxRegisterOffchain",I(o)),w({responseFor:t,requestId:r,success:!0,error:null,...e});break}case y.imx.transfer:{let e=JSON.parse(C),n=await A().transfer(e);(0,l.trackDuration)(g,"performedImxTransfer",I(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(n)}),w({responseFor:t,requestId:r,success:!0,error:null,...n});break}case y.imx.batchNftTransfer:{let e=JSON.parse(C),n=await A().batchNftTransfer(e);(0,l.trackDuration)(g,"performedImxBatchNftTransfer",I(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(n)}),w({responseFor:t,requestId:r,success:!0,error:null,...n});break}case y.zkEvm.connectEvm:{let e=await x().connectEvm(),n=_(e);if(!n)throw Error("Failed to connect to EVM");(0,l.trackDuration)(g,"performedZkevmConnectEvm",I(o),{succeeded:n}),w({responseFor:t,requestId:r,success:n,error:null});break}case y.zkEvm.sendTransaction:{let e=JSON.parse(C),n=await T().request({method:"eth_sendTransaction",params:[e]}),a=null!=n;if(!a)throw Error("Failed to send transaction");(0,l.trackDuration)(g,"performedZkevmSendTransaction",I(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:n}),w({responseFor:t,requestId:r,success:a,error:null,result:n});break}case y.zkEvm.sendTransactionWithConfirmation:{let e=JSON.parse(C),n=T(),a=new u.BrowserProvider(n),i=await a.getSigner(),s=await i.sendTransaction(e),c=await s.wait();(0,l.trackDuration)(g,"performedZkevmSendTransactionWithConfirmation",I(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:JSON.stringify(c?.toJSON())}),w({responseFor:t,requestId:r,success:!0,error:null,...c?.toJSON()});break}case y.zkEvm.signTypedDataV4:{let e=JSON.parse(C),[n]=await T().request({method:"eth_requestAccounts"}),a=await T().request({method:"eth_signTypedData_v4",params:[n,e]}),i=null!=a;if(!i)throw Error("Failed to sign payload");(0,l.trackDuration)(g,"performedZkevmSignTypedDataV4",I(o),{requestId:r}),w({responseFor:t,requestId:r,success:i,error:null,result:a});break}case y.zkEvm.requestAccounts:{let e=await T().request({method:"eth_requestAccounts"}),n=null!=e;if(!n)throw Error("Failed to request accounts");(0,l.trackDuration)(g,"performedZkevmRequestAccounts",I(o)),w({responseFor:t,requestId:r,success:n,error:null,accounts:e});break}case y.zkEvm.getBalance:{let e=JSON.parse(C),n=await T().request({method:"eth_getBalance",params:[e.address,e.blockNumberOrTag]}),a=null!=n;if(!a)throw Error("Failed to get balance");(0,l.trackDuration)(g,"performedZkevmGetBalance",I(o)),w({responseFor:t,requestId:r,success:a,error:null,result:n});break}case y.zkEvm.getTransactionReceipt:{let e=JSON.parse(C),n=await T().request({method:"eth_getTransactionReceipt",params:[e.txHash]}),a=void 0!==n;if(!a)throw Error("Failed to get transaction receipt");(0,l.trackDuration)(g,"performedZkevmGetTransactionReceipt",I(o)),w({responseFor:t,requestId:r,success:a,error:null,...n});break}case"track":{let e=JSON.parse(C),n=e.properties?JSON.parse(e.properties):{};(0,l.track)(e.moduleName,e.eventName,n),w({responseFor:t,requestId:r,success:!0,error:null});break}default:{let e=JSON.parse(C),n=e.properties?JSON.parse(e.properties):{};n.fxName=t,(0,l.track)(g,"callFunctionDefaultCaseCalled",n),w({responseFor:t,requestId:r,success:!1,error:`Invalid game bridge function: ${t}`})}}}catch(a){let e;console.log(`Error in callFunction: ${a}`),e=a instanceof Error?a:Error(a);let n=a instanceof c.PassportError?a?.type:void 0;(0,l.trackError)(g,t,e,{fxName:t,requestId:r,errorType:n,...s}),(0,l.trackDuration)(g,"failedCallFunction",I(o),{fxName:t,requestId:r,error:e.message}),console.log("callFunction error",e),console.log("callFunction errorType",n),w({responseFor:t,requestId:r,success:!1,error:a?.message!==null&&a?.message!==void 0?a.message:"Error",errorType:a instanceof c.PassportError?a?.type:null})}},window.addEventListener("offline",()=>{console.log("gameBridge offline")}),window.addEventListener("online",()=>{console.log("gameBridge online")}),console.log("index.ts loaded"),o=function(){w({responseFor:"init",requestId:"1",success:!0,error:null})},"complete"===document.readyState?o():window.addEventListener("load",o)},{"@imtbl/passport":"i7Tp1","@imtbl/config":"ifUQV","@imtbl/x-client":"lqVsJ","@imtbl/metrics":"7Q1ml",ethers:"jZqA6"}],i7Tp1:[function(e,t,r){let n,a,i;var s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(r),s.export(r,"JsonRpcError",()=>e4),s.export(r,"Passport",()=>tz),s.export(r,"PassportError",()=>V),s.export(r,"ProviderErrorCode",()=>e8),s.export(r,"ProviderEvent",()=>eV),s.export(r,"RpcErrorCode",()=>e3);var o=e("axios"),c=s.interopDefault(o),f=e("@imtbl/generated-clients"),d=e("@imtbl/x-client"),l=e("@imtbl/config"),u=e("@imtbl/metrics"),h=e("oidc-client-ts"),p=e("jwt-decode"),b=s.interopDefault(p),g=e("localforage"),m=s.interopDefault(g),y=e("magic-sdk"),v=e("@magic-ext/oidc"),w=e("ethers"),x=e("@imtbl/toolkit"),E=e("events"),A=e("@0xsequence/abi"),_=e("@0xsequence/core"),T=e("uuid");function I(e){throw Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}var S,C=[],k=!1,R=-1;function M(){k&&S&&(k=!1,S.length?C=S.concat(C):R=-1,C.length&&B())}function B(){if(!k){var e=setTimeout(M,0);k=!0;for(var t=C.length;t;){for(S=C,C=[];++Rtypeof performance?performance.now.bind(performance):void 0,timing:"u">typeof performance?performance.timing:void 0};function L(e){var t=Math.floor((Date.now()-U.now())*.001),r=.001*U.now(),n=Math.floor(r)+t,a=Math.floor(r%1*1e9);return e&&(n-=e[0],(a-=e[1])<0&&(n--,a+=1e9)),[n,a]}function D(){return F}void 0===U.now&&(e7=Date.now(),U.timing&&U.timing.navigationStart&&(e7=U.timing.navigationStart),U.now=()=>Date.now()-e7),L.bigint=function(e){var t=L(e);return typeof BigInt>"u"?1e9*t[0]+t[1]:BigInt(1e9*t[0])+BigInt(t[1])};var F={version:"v16.8.0",versions:{},arch:"x64",platform:"browser",release:{name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_rawDebug:j,moduleLoadList:[],binding:function(e){I("binding")},_linkedBinding:function(e){I("_linkedBinding")},_events:{},_eventsCount:0,_maxListeners:10,on:D,addListener:D,once:D,off:D,removeListener:D,removeAllListeners:D,emit:j,prependListener:D,prependOnceListener:D,listeners:function(e){return[]},domain:{},_exiting:!1,config:{},dlopen:function(e){I("dlopen")},uptime:function(){return U.now()/1e3},_getActiveRequests:function(){return[]},_getActiveHandles:function(){return[]},reallyExit:j,_kill:j,cpuUsage:N,resourceUsage:N,memoryUsage:N,kill:j,exit:j,openStdin:j,allowedNodeEnvironmentFlags:{},assert:function(e,t){if(!e)throw Error(t||"assertion error")},features:{inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_fatalExceptions:j,setUncaughtExceptionCaptureCallback:j,hasUncaughtExceptionCaptureCallback:function(){return!1},emitWarning:function(e,t){console.warn((t?t+": ":"")+e)},nextTick:function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r{try{return await e()}catch(e){throw e instanceof V&&"SERVICE_UNAVAILABLE_ERROR"===e.type?new V(e.message,e.type):new V((0,o.isAxiosError)(e)&&e.response?.data&&H(e.response.data)?e.response.data.message:e.message,t)}},z="pkce_state",G="pkce_verifier",K=class{areValid(e){if(e){let t=this.isTokenValid(e.access_token),r=this.isTokenValid(e.id_token);return t&&r}return!1}isTokenValid(e){try{let t=(0,b.default)(e).exp??0,r=Date.now()/1e3+3600;return t>r}catch{return!1}}savePKCEData(e){localStorage.setItem(z,e.state),localStorage.setItem(G,e.verifier)}getPKCEData(){let e=localStorage.getItem(z),t=localStorage.getItem(G);return e&&t?{state:e,verifier:t}:null}},W={warn:(...e)=>{typeof F>"u"||F?.env?.JEST_WORKER_ID!==void 0||console.warn(...e)}},$=e=>!!e.zkEvm,J=e=>!!e.imx,Q="passport-overlay",Z=`${Q}-close`,X=`${Q}-try-again`,Y=` - `;function eo({id:e,href:t,rel:r,crossOrigin:n}){let a=`${Q}-${e}`;if(!document.getElementById(a)){let e=document.createElement("link");e.id=a,e.href=t,r&&(e.rel=r),n&&(e.crossOrigin=n),document.head.appendChild(e)}}var ec=()=>es(en()),ef=()=>es(ea()),ed=class{disableGenericPopupOverlay;disableBlockedPopupOverlay;overlay;isBlockedOverlay;tryAgainListener;onCloseListener;constructor(e,t=!1){this.disableBlockedPopupOverlay=e.disableBlockedPopupOverlay||!1,this.disableGenericPopupOverlay=e.disableGenericPopupOverlay||!1,this.isBlockedOverlay=t}append(e,t){this.shouldAppendOverlay()&&(this.appendOverlay(),this.updateTryAgainButton(e),this.updateCloseButton(t))}update(e){this.updateTryAgainButton(e)}remove(){this.overlay&&this.overlay.remove()}shouldAppendOverlay(){return!(this.disableGenericPopupOverlay&&this.disableBlockedPopupOverlay||this.disableGenericPopupOverlay&&!this.isBlockedOverlay||this.disableBlockedPopupOverlay&&this.isBlockedOverlay)}appendOverlay(){if(!this.overlay){eo({id:"link-googleapis",href:"https://fonts.googleapis.com"}),eo({id:"link-gstatic",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),eo({id:"link-roboto",href:"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap",rel:"stylesheet"});let e=document.createElement("div");e.innerHTML=this.isBlockedOverlay?ec():ef(),document.body.insertAdjacentElement("beforeend",e),this.overlay=e}}updateTryAgainButton(e){let t=document.getElementById(X);t&&(this.tryAgainListener&&t.removeEventListener("click",this.tryAgainListener),this.tryAgainListener=e,t.addEventListener("click",e))}updateCloseButton(e){let t=document.getElementById(Z);t&&(this.onCloseListener&&t.removeEventListener("click",this.onCloseListener),this.onCloseListener=e,t.addEventListener("click",e))}},el=class{storage;constructor(e,t){this.storage=(0,m.default).createInstance({name:e,driver:t})}get length(){return this.storage.length()}clear(){return this.storage.clear()}getItem(e){return this.storage.getItem(e)}key(e){return this.storage.key(e)}async removeItem(e){await this.storage.removeItem(e)}async setItem(e,t){await this.storage.setItem(e,t)}},eu={headers:{"Content-Type":"application/x-www-form-urlencoded"}},eh="/v2/logout",ep=e=>{let{authenticationDomain:t,oidcConfiguration:r}=e,n;n=e.crossSdkBridgeEnabled?new el("ImmutableSDKPassport",m.default.INDEXEDDB):"u">typeof window?window.localStorage:new h.InMemoryWebStorage;let a=new h.WebStorageStateStore({store:n}),i=new URL(eh,t.replace(/^(?:https?:\/\/)?(.*)/,"https://$1"));return i.searchParams.set("client_id",r.clientId),r.logoutRedirectUri&&i.searchParams.set("returnTo",r.logoutRedirectUri),{authority:t,redirect_uri:r.redirectUri,popup_redirect_uri:r.popupRedirectUri||r.redirectUri,client_id:r.clientId,metadata:{authorization_endpoint:`${t}/authorize`,token_endpoint:`${t}/oauth/token`,userinfo_endpoint:`${t}/userinfo`,end_session_endpoint:i.toString()},mergeClaims:!0,automaticSilentRenew:!1,scope:r.scope,userStore:a,extraQueryParams:{...e.extraQueryParams,...r.audience?{audience:r.audience}:{}}}};function eb(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}async function eg(e){let t=new TextEncoder().encode(e);return await window.crypto.subtle.digest("SHA-256",t)}var em=class e{userManager;deviceCredentialsManager;config;logoutMode;refreshingPromise=null;constructor(e){this.config=e,this.userManager=new h.UserManager(ep(e)),this.deviceCredentialsManager=new K,this.logoutMode=e.oidcConfiguration.logoutMode||"redirect"}static mapOidcUserToDomainModel=e=>{let t;e.id_token&&(t=b.default(e.id_token)?.passport);let r={expired:e.expired,idToken:e.id_token,accessToken:e.access_token,refreshToken:e.refresh_token,profile:{sub:e.profile.sub,email:e.profile.email,nickname:e.profile.nickname}};return t?.imx_eth_address&&(r.imx={ethAddress:t.imx_eth_address,starkAddress:t.imx_stark_address,userAdminAddress:t.imx_user_admin_address}),t?.zkevm_eth_address&&(r.zkEvm={ethAddress:t?.zkevm_eth_address,userAdminAddress:t?.zkevm_user_admin_address}),r};static mapDeviceTokenResponseToOidcUser=e=>{let t=(0,b.default)(e.id_token);return new h.User({id_token:e.id_token,access_token:e.access_token,refresh_token:e.refresh_token,token_type:e.token_type,profile:{sub:t.sub,iss:t.iss,aud:t.aud,exp:t.exp,iat:t.iat,email:t.email,nickname:t.nickname,passport:t.passport}})};async loginWithRedirect(e){return await this.userManager.clearStaleState(),q(async()=>{await this.userManager.signinRedirect({extraQueryParams:{...this.userManager.settings?.extraQueryParams??{},rid:(0,u.getDetail)(u.Detail.RUNTIME_ID)||"",third_party_a_id:e||""}})},"AUTHENTICATION_ERROR")}async login(t){return q(async()=>{let r="passportLoginPrompt",n=async()=>this.userManager.signinPopup({extraQueryParams:{...this.userManager.settings?.extraQueryParams??{},rid:(0,u.getDetail)(u.Detail.RUNTIME_ID)||"",third_party_a_id:t||""},popupWindowFeatures:{width:410,height:450},popupWindowTarget:r});return new Promise((t,a)=>{n().then(r=>{t(e.mapOidcUserToDomainModel(r))}).catch(i=>{if(!(i instanceof Error)||"Attempted to navigate on a disposed window"!==i.message){a(i);return}let s=!1,o=new ed(this.config.popupOverlayOptions,!0);o.append(async()=>{try{if(s)window.open("",r);else{s=!0;let r=await n();o.remove(),t(e.mapOidcUserToDomainModel(r))}}catch(e){o.remove(),a(e)}},()=>{o.remove(),a(Error("Popup closed by user"))})})})},"AUTHENTICATION_ERROR")}async getUserOrLogin(){let e=null;try{e=await this.getUser()}catch(e){W.warn("Failed to retrieve a cached user session",e)}return e||this.login()}async loginCallback(){return q(async()=>{let t=await this.userManager.signinCallback();if(t)return e.mapOidcUserToDomainModel(t)},"AUTHENTICATION_ERROR")}async loginWithDeviceFlow(e){return q(async()=>{let t=await (0,c.default).post(`${this.config.authenticationDomain}/oauth/device/code`,{client_id:this.config.oidcConfiguration.clientId,scope:this.config.oidcConfiguration.scope,audience:this.config.oidcConfiguration.audience},eu),r=(0,u.getDetail)(u.Detail.RUNTIME_ID);return{code:t.data.user_code,deviceCode:t.data.device_code,url:`${t.data.verification_uri_complete}${r?`&rid=${r}`:""}${e?`&third_party_a_id=${e}`:""}`,interval:t.data.interval}},"AUTHENTICATION_ERROR")}async loginWithDeviceFlowCallback(t,r,n){return q(async()=>{let a=Date.now();for(;;){if(null!=n&&Date.now()-a>n)throw Error("Timed out");await function(e){return new Promise(t=>{setTimeout(t,e)})}(1e3*r);try{let r=await this.getDeviceFlowToken(t),n=e.mapDeviceTokenResponseToOidcUser(r),a=e.mapOidcUserToDomainModel(n);return await this.userManager.storeUser(n),a}catch(e){if((0,c.default).isAxiosError(e))switch(e.response?.data.error){case"authorization_pending":case"slow_down":break;case"expired_token":throw Error("Token expired, please log in again");case"access_denied":throw Error("User denied access");default:throw Error("Error getting token")}else throw e}}throw Error("Failed to get credentials")},"AUTHENTICATION_ERROR")}async getDeviceFlowToken(e){return(await (0,c.default).post(`${this.config.authenticationDomain}/oauth/token`,{client_id:this.config.oidcConfiguration.clientId,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:e},eu)).data}async getPKCEAuthorizationUrl(){let e=eb(window.crypto.getRandomValues(new Uint8Array(32))),t=eb(await eg(e)),r=eb(window.crypto.getRandomValues(new Uint8Array(32))),{redirectUri:n,scope:a,audience:i,clientId:s}=this.config.oidcConfiguration;this.deviceCredentialsManager.savePKCEData({state:r,verifier:e});let o=new URL("/authorize",this.config.authenticationDomain);return o.searchParams.set("response_type","code"),o.searchParams.set("code_challenge",t),o.searchParams.set("code_challenge_method","S256"),o.searchParams.set("client_id",s),o.searchParams.set("redirect_uri",n),o.searchParams.set("state",r),a&&o.searchParams.set("scope",a),i&&o.searchParams.set("audience",i),o.toString()}async loginWithPKCEFlowCallback(t,r){return q(async()=>{let n=this.deviceCredentialsManager.getPKCEData();if(!n)throw Error("No code verifier or state for PKCE");if(r!==n.state)throw Error("Provided state does not match stored state");let a=await this.getPKCEToken(t,n.verifier),i=e.mapDeviceTokenResponseToOidcUser(a),s=e.mapOidcUserToDomainModel(i);return await this.userManager.storeUser(i),s},"AUTHENTICATION_ERROR")}async getPKCEToken(e,t){return(await (0,c.default).post(`${this.config.authenticationDomain}/oauth/token`,{client_id:this.config.oidcConfiguration.clientId,grant_type:"authorization_code",code_verifier:t,code:e,redirect_uri:this.config.oidcConfiguration.redirectUri},eu)).data}async logout(){return q(async()=>"silent"===this.logoutMode?this.userManager.signoutSilent():this.userManager.signoutRedirect(),"LOGOUT_ERROR")}async logoutSilentCallback(e){return this.userManager.signoutSilentCallback(e)}async removeUser(){return this.userManager.removeUser()}async getDeviceFlowEndSessionEndpoint(){let{authenticationDomain:e,oidcConfiguration:t}=this.config,r=new URL(eh,e);return r.searchParams.set("client_id",t.clientId),t.logoutRedirectUri&&r.searchParams.set("returnTo",t.logoutRedirectUri),r.toString()}forceUserRefreshInBackground(){this.refreshTokenAndUpdatePromise().catch(e=>{W.warn("Failed to refresh user token",e)})}async forceUserRefresh(){return this.refreshTokenAndUpdatePromise().catch(e=>(W.warn("Failed to refresh user token",e),null))}async refreshTokenAndUpdatePromise(){return this.refreshingPromise||(this.refreshingPromise=new Promise(async(t,r)=>{try{let r=await this.userManager.signinSilent();if(r){t(e.mapOidcUserToDomainModel(r));return}t(null)}catch(a){let e="AUTHENTICATION_ERROR",t="Failed to refresh token",n=!0;if(a instanceof h.ErrorTimeout?(e="SILENT_LOGIN_ERROR",t=`${t}: ${a.message}`,n=!1):a instanceof h.ErrorResponse?(e="NOT_LOGGED_IN_ERROR",t=`${t}: ${a.message||a.error_description}`):a instanceof Error?t=`${t}: ${a.message}`:"string"==typeof a&&(t=`${t}: ${a}`),n)try{await this.userManager.removeUser()}catch(e){e instanceof Error&&(t=`${t}: Failed to remove user: ${e.message}`)}r(new V(t,e))}finally{this.refreshingPromise=null}})),this.refreshingPromise}async getUser(t=e=>!0){if(this.refreshingPromise){let e=await this.refreshingPromise;return e&&t(e)?e:null}let r=await this.userManager.getUser();if(!r)return null;if(!function(e){let{id_token:t,expired:r}=e;return!!r||function(e){if(!e)return!1;let t=(0,b.default)(e),r=Math.floor(Date.now()/1e3);return t.exp{let a=(0,u.trackFlow)("passport",t,r);try{return await e(a)}catch(e){throw e instanceof Error?(0,u.trackError)("passport",t,e,{flowId:a.details.flowId}):a.addEvent("errored"),e}finally{n&&a.addEvent("End")}},ev=class{config;magicProviderProxyFactory;magicClient;constructor(e,t){this.config=e,this.magicProviderProxyFactory=t,"u">typeof window&&(this.magicClient=new y.Magic(this.config.magicPublishableApiKey,{extensions:[new v.OpenIdExtension],network:"mainnet"}))}getMagicClient(){if(!this.magicClient)throw Error("Cannot perform this action outside of the browser");return this.magicClient}async login(e){return q(async()=>ey(async t=>{let r=performance.now(),n=this.getMagicClient();return t.addEvent("endMagicClientInit"),await n.openid.loginWithOIDC({jwt:e,providerId:this.config.magicProviderId}),t.addEvent("endLoginWithOIDC"),(0,u.trackDuration)("passport",t.details.flowName,Math.round(performance.now()-r)),this.magicProviderProxyFactory.createProxy(n)},"magicLogin"),"WALLET_CONNECTION_ERROR")}async logout(){let e=this.getMagicClient();e.user&&await e.user.logout()}},ew=async e=>q(async()=>{let t=await (0,d.generateLegacyStarkPrivateKey)(e);return(0,d.createStarkSigner)(t)},"WALLET_CONNECTION_ERROR");async function ex({user:e,starkSigner:t,request:r,exchangesApi:n}){return q(async()=>{let{ethAddress:a}=e.imx,i=r.amount,s=await n.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:a,token:(0,x.convertToSignableToken)(r),amount:i,receiver:r.receiver}}),o=await t.getAddress(),{payload_hash:c}=s.data,f=await t.signMessage(c),d={sender_stark_key:s.data.sender_stark_key||o,sender_vault_id:s.data.sender_vault_id,receiver_stark_key:s.data.receiver_stark_key,receiver_vault_id:s.data.receiver_vault_id,asset_id:s.data.asset_id,amount:s.data.amount,nonce:s.data.nonce,expiration_timestamp:s.data.expiration_timestamp,stark_signature:f},l={Authorization:`Bearer ${e.accessToken}`},u=await n.createExchangeTransfer({id:r.transactionID,createTransferRequest:d},{headers:l});return{sent_signature:u?.data.sent_signature,status:u?.data.status?.toString(),time:u?.data.time,transfer_id:u?.data.transfer_id}},"EXCHANGE_TRANSFER_ERROR")}var eE="ERC721";async function eA({starkSigner:e,user:t,request:r,ordersApi:n,guardianClient:a}){return q(async()=>{let{ethAddress:i}=t.imx,s=r.sell.type===eE?"1":r.sell.amount,o=r.buy.type===eE?"1":r.buy.amount,c={Authorization:`Bearer ${t.accessToken}`},f={user:i,amount_buy:o,token_buy:(0,x.convertToSignableToken)(r.buy),amount_sell:s,token_sell:(0,x.convertToSignableToken)(r.sell),fees:r.fees,split_fees:!0,expiration_timestamp:r.expiration_timestamp},d=await n.getSignableOrder({getSignableOrderRequestV3:f},{headers:c});await a.evaluateImxTransaction({payloadHash:d.data.payload_hash});let{payload_hash:l}=d.data,u=await e.signMessage(l),h=d.data,p={createOrderRequest:{include_fees:!0,fees:r.fees,stark_signature:u,amount_buy:h.amount_buy,amount_sell:h.amount_sell,asset_id_buy:h.asset_id_buy,asset_id_sell:h.asset_id_sell,expiration_timestamp:h.expiration_timestamp,nonce:h.nonce,stark_key:h.stark_key,vault_id_buy:h.vault_id_buy,vault_id_sell:h.vault_id_sell}};return{...(await n.createOrderV3(p,{headers:c})).data}},"CREATE_ORDER_ERROR")}async function e_({user:e,starkSigner:t,request:r,ordersApi:n,guardianClient:a}){return q(async()=>{let i={order_id:r.order_id},s={Authorization:`Bearer ${e.accessToken}`},o=await n.getSignableCancelOrderV3({getSignableCancelOrderRequest:i},{headers:s});await a.evaluateImxTransaction({payloadHash:o.data.payload_hash});let{payload_hash:c}=o.data,f=await t.signMessage(c),d=await n.cancelOrderV3({id:r.order_id.toString(),cancelOrderRequest:{order_id:r.order_id,stark_signature:f}},{headers:s});return{order_id:d.data.order_id,status:d.data.status}},"CANCEL_ORDER_ERROR")}async function eT({ethSigner:e,starkSigner:t,imxApiClients:r},n){return q(async()=>{let[a,i]=await Promise.all([e.getAddress(),t.getAddress()]),{signable_message:s,payload_hash:o}=(await r.usersApi.getSignableRegistrationOffchain({getSignableRegistrationRequest:{ether_key:a,stark_key:i}})).data,[c,f]=await Promise.all([(0,x.signRaw)(s,e),t.signMessage(o)]);return(await r.usersApi.registerPassportUserV2({authorization:`Bearer ${n}`,registerPassportUserRequest:{eth_signature:c,ether_key:a,stark_signature:f,stark_key:i}})).data},"USER_REGISTRATION_ERROR")}async function eI({request:e,tradesApi:t,user:r,starkSigner:n,guardianClient:a}){return q(async()=>{let{ethAddress:i}=r.imx,s={expiration_timestamp:e.expiration_timestamp,fees:e.fees,order_id:e.order_id,user:i},o={Authorization:`Bearer ${r.accessToken}`},c=await t.getSignableTrade({getSignableTradeRequest:s},{headers:o});await a.evaluateImxTransaction({payloadHash:c.data.payload_hash});let{payload_hash:f}=c.data,d=await n.signMessage(f),{data:l}=c,u={createTradeRequest:{include_fees:!0,fees:e?.fees,stark_signature:d,order_id:e?.order_id,fee_info:l.fee_info,amount_buy:l.amount_buy,amount_sell:l.amount_sell,asset_id_buy:l.asset_id_buy,asset_id_sell:l.asset_id_sell,expiration_timestamp:l.expiration_timestamp,nonce:l.nonce,stark_key:l.stark_key,vault_id_buy:l.vault_id_buy,vault_id_sell:l.vault_id_sell}},{data:h}=await t.createTradeV3(u,{headers:o});return h},"CREATE_TRADE_ERROR")}var eS="ERC721";async function eC({request:e,transfersApi:t,starkSigner:r,user:n,guardianClient:a}){return q(async()=>{let i=e.type===eS?"1":e.amount,s={sender:n.imx.ethAddress,token:(0,x.convertToSignableToken)(e),amount:i,receiver:e.receiver},o={Authorization:`Bearer ${n.accessToken}`},c=await t.getSignableTransferV1({getSignableTransferRequest:s},{headers:o});await a.evaluateImxTransaction({payloadHash:c.data.payload_hash});let f=c.data,{payload_hash:d}=f,l=await r.signMessage(d),u=await r.getAddress(),h={createTransferRequest:{sender_stark_key:f.sender_stark_key||u,sender_vault_id:f.sender_vault_id,receiver_stark_key:f.receiver_stark_key,receiver_vault_id:f.receiver_vault_id,asset_id:f.asset_id,amount:f.amount,nonce:f.nonce,expiration_timestamp:f.expiration_timestamp,stark_signature:l}},{data:p}=await t.createTransferV1(h,{headers:o});return{sent_signature:p.sent_signature,status:p.status?.toString(),time:p.time,transfer_id:p.transfer_id}},"TRANSFER_ERROR")}async function ek({user:e,starkSigner:t,request:r,transfersApi:n,guardianClient:a}){return q(async()=>{let{ethAddress:i}=e.imx,s=r.map(e=>({amount:"1",token:(0,x.convertToSignableToken)({type:eS,tokenId:e.tokenId,tokenAddress:e.tokenAddress}),receiver:e.receiver})),o={Authorization:`Bearer ${e.accessToken}`},c=await n.getSignableTransfer({getSignableTransferRequestV2:{sender_ether_key:i,signable_requests:s}},{headers:o});await a.evaluateImxTransaction({payloadHash:c.data.signable_responses[0]?.payload_hash});let f=await Promise.all(c.data.signable_responses.map(async e=>{let r=await t.signMessage(e.payload_hash);return{sender_vault_id:e.sender_vault_id,receiver_stark_key:e.receiver_stark_key,receiver_vault_id:e.receiver_vault_id,asset_id:e.asset_id,amount:e.amount,nonce:e.nonce,expiration_timestamp:e.expiration_timestamp,stark_signature:r}})),d={sender_stark_key:c.data.sender_stark_key,requests:f};return{transfer_ids:(await n.createTransfer({createTransferRequestV2:d},{headers:o}))?.data.transfer_ids}},"TRANSFER_ERROR")}var eR=e=>new Promise(t=>{setTimeout(()=>t(),e)}),eM=async(e,t)=>{let{retries:r=3,interval:n=1e3,finalErr:a=Error("Retry failed"),finallyFn:i=()=>{}}=t||{};try{return await e()}catch{return r<=0?Promise.reject(a):(await eR(n),eM(e,{retries:r-1,finalErr:a,finallyFn:i}))}finally{r<=0&&i()}};async function eB(e){await eM(async()=>{let t=await e.forceUserRefresh();return t?.imx?t:Promise.reject(Error("user wallet addresses not exist"))})}async function eP(e,t,r,n,a){return q(async()=>{try{let i=await eT({ethSigner:e,starkSigner:t,imxApiClients:a},r.accessToken);return await eB(n),i}catch(e){if((0,c.default).isAxiosError(e)&&e.response?.status===409)return await eB(n),{tx_hash:""};throw e}},"USER_REGISTRATION_ERROR")}var eO=class{authManager;immutableXClient;guardianClient;imxApiClients;magicAdapter;signers;signerInitialisationError;constructor({authManager:e,immutableXClient:t,passportEventEmitter:r,magicAdapter:n,imxApiClients:a,guardianClient:i}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=n,this.imxApiClients=a,this.guardianClient=i,this.#e(),r.on("loggedOut",this.handleLogout)}handleLogout=()=>{this.signers=void 0};#e(){let e=async()=>{let e=await this.authManager.getUser(),t=await this.magicAdapter.login(e.idToken),r=await new(0,w.BrowserProvider)(t).getSigner(),n=await ew(r);return{ethSigner:r,starkSigner:n}};this.signers=new Promise(async t=>{try{t(await e())}catch(e){this.signerInitialisationError=e,t(void 0)}})}async #t(){let e=await this.authManager.getUser();if(!e||!this.signers)throw new V("User has been logged out","NOT_LOGGED_IN_ERROR");return e}async #r(){let e=await this.signers;if(typeof e>"u")throw"u">typeof this.signerInitialisationError?this.signerInitialisationError:Error("Signers failed to initialise");return e}async #n(){let[e,t]=await Promise.all([this.#t(),this.#r()]);if(!J(e))throw new V("User has not been registered with StarkEx","USER_NOT_REGISTERED_ERROR");return{user:e,starkSigner:t.starkSigner,ethSigner:t.ethSigner}}async transfer(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return eC({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxTransfer")}async registerOffchain(){return ey(async()=>{let[e,t]=await Promise.all([this.#t(),this.#r()]);return await eP(t.ethSigner,t.starkSigner,e,this.authManager,this.imxApiClients)},"imxRegisterOffchain")}async isRegisteredOffchain(){return ey(async()=>!!(await this.#t()).imx,"imxIsRegisteredOffchain")}isRegisteredOnchain(){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}async createOrder(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return eA({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCreateOrder")}async cancelOrder(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return e_({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCancelOrder")}async createTrade(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return eI({request:e,user:t,starkSigner:r,tradesApi:this.immutableXClient.tradesApi,guardianClient:this.guardianClient})})(),"imxCreateTrade")}async batchNftTransfer(e){return ey(()=>this.guardianClient.withConfirmationScreenTask({width:480,height:784})(async()=>{let{user:t,starkSigner:r}=await this.#n();return ek({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxBatchNftTransfer")}async exchangeTransfer(e){return ey(async()=>{let{user:t,starkSigner:r}=await this.#n();return ex({request:e,user:t,starkSigner:r,exchangesApi:this.immutableXClient.exchangeApi})},"imxExchangeTransfer")}deposit(e){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}prepareWithdrawal(e){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}completeWithdrawal(e,t){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}async getAddress(){return ey(async()=>{let e=await this.#t();if(!J(e))throw new V("User has not been registered with StarkEx","USER_NOT_REGISTERED_ERROR");return Promise.resolve(e.imx.ethAddress)},"imxGetAddress")}},ej=class{authManager;immutableXClient;magicAdapter;passportEventEmitter;imxApiClients;guardianClient;constructor({authManager:e,immutableXClient:t,magicAdapter:r,passportEventEmitter:n,imxApiClients:a,guardianClient:i}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=r,this.passportEventEmitter=n,this.imxApiClients=a,this.guardianClient=i}async getProvider(){let e=await this.authManager.getUserOrLogin();return this.createProviderInstance(e)}async getProviderSilent(){let e=await this.authManager.getUser();return e?this.createProviderInstance(e):null}async createProviderInstance(e){if(!e.idToken)throw new V("Failed to initialise","WALLET_CONNECTION_ERROR");return new eO({authManager:this.authManager,immutableXClient:this.immutableXClient,passportEventEmitter:this.passportEventEmitter,magicAdapter:this.magicAdapter,imxApiClients:this.imxApiClients,guardianClient:this.guardianClient})}},eN=(e,t,r)=>{let n=t.map(t=>!e[t]&&t).filter(e=>e).join(", ");if(""!==n)throw new V(r?`${r} - ${n} cannot be null`:`${n} cannot be null`,"INVALID_CONFIGURATION")},eU=class{authenticationDomain;passportDomain;imxPublicApiDomain;magicPublishableApiKey;magicProviderId;oidcConfiguration;baseConfig;zkEvmRpcUrl;relayerUrl;multiRollupConfig;crossSdkBridgeEnabled;forceScwDeployBeforeMessageSignature;popupOverlayOptions;extraQueryParams;constructor({baseConfig:e,overrides:t,crossSdkBridgeEnabled:r,jsonRpcReferrer:n,forceScwDeployBeforeMessageSignature:a,popupOverlayOptions:i,extraQueryParams:s,...o}){if(eN(o,["clientId","redirectUri"]),this.oidcConfiguration=o,this.baseConfig=e,this.crossSdkBridgeEnabled=r||!1,this.forceScwDeployBeforeMessageSignature=a||!1,this.popupOverlayOptions=i||{disableGenericPopupOverlay:!1,disableBlockedPopupOverlay:!1},this.extraQueryParams=s||{},t)eN(t,["authenticationDomain","passportDomain","magicPublishableApiKey","magicProviderId","zkEvmRpcUrl","relayerUrl","imxPublicApiDomain","indexerMrBasePath","orderBookMrBasePath","passportMrBasePath"],"overrides"),this.authenticationDomain=t.authenticationDomain,this.passportDomain=t.passportDomain,this.imxPublicApiDomain=t.imxPublicApiDomain,this.magicPublishableApiKey=t.magicPublishableApiKey,this.magicProviderId=t.magicProviderId,this.zkEvmRpcUrl=t.zkEvmRpcUrl,this.relayerUrl=t.relayerUrl,this.multiRollupConfig={indexer:(0,f.createConfig)({basePath:t.indexerMrBasePath}),orderBook:(0,f.createConfig)({basePath:t.orderBookMrBasePath}),passport:(0,f.createConfig)({basePath:t.passportMrBasePath})};else switch(e.environment){case l.Environment.PRODUCTION:this.authenticationDomain="https://auth.immutable.com",this.magicPublishableApiKey="pk_live_10F423798A540ED7",this.magicProviderId="fSMzaRQ4O7p4fttl7pCyGVtJS_G70P8SNsLXtPPGHo0=",this.passportDomain="https://passport.immutable.com",this.imxPublicApiDomain="https://api.immutable.com",this.zkEvmRpcUrl="https://rpc.immutable.com",this.relayerUrl="https://api.immutable.com/relayer-mr",this.multiRollupConfig=(0,f.multiRollupConfig).getProduction();break;case l.Environment.SANDBOX:default:this.authenticationDomain="https://auth.immutable.com",this.magicPublishableApiKey="pk_live_10F423798A540ED7",this.magicProviderId="fSMzaRQ4O7p4fttl7pCyGVtJS_G70P8SNsLXtPPGHo0=",this.passportDomain="https://passport.sandbox.immutable.com",this.imxPublicApiDomain="https://api.sandbox.immutable.com",this.zkEvmRpcUrl="https://rpc.testnet.immutable.com",this.relayerUrl="https://api.sandbox.immutable.com/relayer-mr",this.multiRollupConfig=(0,f.multiRollupConfig).getSandbox()}}},eL="imx_passport_confirmation",eD=({url:e,title:t,width:r,height:n})=>{let a=Math.max(0,Math.round(window.screenX+(window.outerWidth-r)/2)),i=Math.max(0,Math.round(window.screenY+(window.outerHeight-n)/2)),s=window.open(e,t,` + `;function eo({id:e,href:t,rel:r,crossOrigin:n}){let a=`${Q}-${e}`;if(!document.getElementById(a)){let e=document.createElement("link");e.id=a,e.href=t,r&&(e.rel=r),n&&(e.crossOrigin=n),document.head.appendChild(e)}}var ec=()=>es(en()),ef=()=>es(ea()),ed=class{disableGenericPopupOverlay;disableBlockedPopupOverlay;overlay;isBlockedOverlay;tryAgainListener;onCloseListener;constructor(e,t=!1){this.disableBlockedPopupOverlay=e.disableBlockedPopupOverlay||!1,this.disableGenericPopupOverlay=e.disableGenericPopupOverlay||!1,this.isBlockedOverlay=t}append(e,t){this.shouldAppendOverlay()&&(this.appendOverlay(),this.updateTryAgainButton(e),this.updateCloseButton(t))}update(e){this.updateTryAgainButton(e)}remove(){this.overlay&&this.overlay.remove()}shouldAppendOverlay(){return!(this.disableGenericPopupOverlay&&this.disableBlockedPopupOverlay||this.disableGenericPopupOverlay&&!this.isBlockedOverlay||this.disableBlockedPopupOverlay&&this.isBlockedOverlay)}appendOverlay(){if(!this.overlay){eo({id:"link-googleapis",href:"https://fonts.googleapis.com"}),eo({id:"link-gstatic",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),eo({id:"link-roboto",href:"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap",rel:"stylesheet"});let e=document.createElement("div");e.innerHTML=this.isBlockedOverlay?ec():ef(),document.body.insertAdjacentElement("beforeend",e),this.overlay=e}}updateTryAgainButton(e){let t=document.getElementById(X);t&&(this.tryAgainListener&&t.removeEventListener("click",this.tryAgainListener),this.tryAgainListener=e,t.addEventListener("click",e))}updateCloseButton(e){let t=document.getElementById(Z);t&&(this.onCloseListener&&t.removeEventListener("click",this.onCloseListener),this.onCloseListener=e,t.addEventListener("click",e))}},el=class{storage;constructor(e,t){this.storage=(0,m.default).createInstance({name:e,driver:t})}get length(){return this.storage.length()}clear(){return this.storage.clear()}getItem(e){return this.storage.getItem(e)}key(e){return this.storage.key(e)}async removeItem(e){await this.storage.removeItem(e)}async setItem(e,t){await this.storage.setItem(e,t)}},eu={headers:{"Content-Type":"application/x-www-form-urlencoded"}},eh="/v2/logout",ep=e=>{let{authenticationDomain:t,oidcConfiguration:r}=e,n;n=e.crossSdkBridgeEnabled?new el("ImmutableSDKPassport",m.default.INDEXEDDB):"u">typeof window?window.localStorage:new h.InMemoryWebStorage;let a=new h.WebStorageStateStore({store:n}),i=new URL(eh,t.replace(/^(?:https?:\/\/)?(.*)/,"https://$1"));return i.searchParams.set("client_id",r.clientId),r.logoutRedirectUri&&i.searchParams.set("returnTo",r.logoutRedirectUri),{authority:t,redirect_uri:r.redirectUri,popup_redirect_uri:r.popupRedirectUri||r.redirectUri,client_id:r.clientId,metadata:{authorization_endpoint:`${t}/authorize`,token_endpoint:`${t}/oauth/token`,userinfo_endpoint:`${t}/userinfo`,end_session_endpoint:i.toString(),revocation_endpoint:`${t}/oauth/revoke`},mergeClaims:!0,automaticSilentRenew:!1,scope:r.scope,userStore:a,revokeTokenTypes:["refresh_token"],extraQueryParams:{...e.extraQueryParams,...r.audience?{audience:r.audience}:{}}}};function eb(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}async function eg(e){let t=new TextEncoder().encode(e);return await window.crypto.subtle.digest("SHA-256",t)}var em=class e{userManager;deviceCredentialsManager;config;logoutMode;refreshingPromise=null;constructor(e){this.config=e,this.userManager=new h.UserManager(ep(e)),this.deviceCredentialsManager=new K,this.logoutMode=e.oidcConfiguration.logoutMode||"redirect"}static mapOidcUserToDomainModel=e=>{let t;e.id_token&&(t=b.default(e.id_token)?.passport);let r={expired:e.expired,idToken:e.id_token,accessToken:e.access_token,refreshToken:e.refresh_token,profile:{sub:e.profile.sub,email:e.profile.email,nickname:e.profile.nickname}};return t?.imx_eth_address&&(r.imx={ethAddress:t.imx_eth_address,starkAddress:t.imx_stark_address,userAdminAddress:t.imx_user_admin_address}),t?.zkevm_eth_address&&(r.zkEvm={ethAddress:t?.zkevm_eth_address,userAdminAddress:t?.zkevm_user_admin_address}),r};static mapDeviceTokenResponseToOidcUser=e=>{let t=(0,b.default)(e.id_token);return new h.User({id_token:e.id_token,access_token:e.access_token,refresh_token:e.refresh_token,token_type:e.token_type,profile:{sub:t.sub,iss:t.iss,aud:t.aud,exp:t.exp,iat:t.iat,email:t.email,nickname:t.nickname,passport:t.passport}})};async loginWithRedirect(e){return await this.userManager.clearStaleState(),q(async()=>{await this.userManager.signinRedirect({extraQueryParams:{...this.userManager.settings?.extraQueryParams??{},rid:(0,u.getDetail)(u.Detail.RUNTIME_ID)||"",third_party_a_id:e||""}})},"AUTHENTICATION_ERROR")}async login(t){return q(async()=>{let r="passportLoginPrompt",n=async()=>this.userManager.signinPopup({extraQueryParams:{...this.userManager.settings?.extraQueryParams??{},rid:(0,u.getDetail)(u.Detail.RUNTIME_ID)||"",third_party_a_id:t||""},popupWindowFeatures:{width:410,height:450},popupWindowTarget:r});return new Promise((t,a)=>{n().then(r=>{t(e.mapOidcUserToDomainModel(r))}).catch(i=>{if(!(i instanceof Error)||"Attempted to navigate on a disposed window"!==i.message){a(i);return}let s=!1,o=new ed(this.config.popupOverlayOptions,!0);o.append(async()=>{try{if(s)window.open("",r);else{s=!0;let r=await n();o.remove(),t(e.mapOidcUserToDomainModel(r))}}catch(e){o.remove(),a(e)}},()=>{o.remove(),a(Error("Popup closed by user"))})})})},"AUTHENTICATION_ERROR")}async getUserOrLogin(){let e=null;try{e=await this.getUser()}catch(e){W.warn("Failed to retrieve a cached user session",e)}return e||this.login()}async loginCallback(){return q(async()=>{let t=await this.userManager.signinCallback();if(t)return e.mapOidcUserToDomainModel(t)},"AUTHENTICATION_ERROR")}async loginWithDeviceFlow(e){return q(async()=>{let t=await (0,c.default).post(`${this.config.authenticationDomain}/oauth/device/code`,{client_id:this.config.oidcConfiguration.clientId,scope:this.config.oidcConfiguration.scope,audience:this.config.oidcConfiguration.audience},eu),r=(0,u.getDetail)(u.Detail.RUNTIME_ID);return{code:t.data.user_code,deviceCode:t.data.device_code,url:`${t.data.verification_uri_complete}${r?`&rid=${r}`:""}${e?`&third_party_a_id=${e}`:""}`,interval:t.data.interval}},"AUTHENTICATION_ERROR")}async loginWithDeviceFlowCallback(t,r,n){return q(async()=>{let a=Date.now();for(;;){if(null!=n&&Date.now()-a>n)throw Error("Timed out");await function(e){return new Promise(t=>{setTimeout(t,e)})}(1e3*r);try{let r=await this.getDeviceFlowToken(t),n=e.mapDeviceTokenResponseToOidcUser(r),a=e.mapOidcUserToDomainModel(n);return await this.userManager.storeUser(n),a}catch(e){if((0,c.default).isAxiosError(e))switch(e.response?.data.error){case"authorization_pending":case"slow_down":break;case"expired_token":throw Error("Token expired, please log in again");case"access_denied":throw Error("User denied access");default:throw Error("Error getting token")}else throw e}}throw Error("Failed to get credentials")},"AUTHENTICATION_ERROR")}async getDeviceFlowToken(e){return(await (0,c.default).post(`${this.config.authenticationDomain}/oauth/token`,{client_id:this.config.oidcConfiguration.clientId,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:e},eu)).data}async getPKCEAuthorizationUrl(){let e=eb(window.crypto.getRandomValues(new Uint8Array(32))),t=eb(await eg(e)),r=eb(window.crypto.getRandomValues(new Uint8Array(32))),{redirectUri:n,scope:a,audience:i,clientId:s}=this.config.oidcConfiguration;this.deviceCredentialsManager.savePKCEData({state:r,verifier:e});let o=new URL("/authorize",this.config.authenticationDomain);return o.searchParams.set("response_type","code"),o.searchParams.set("code_challenge",t),o.searchParams.set("code_challenge_method","S256"),o.searchParams.set("client_id",s),o.searchParams.set("redirect_uri",n),o.searchParams.set("state",r),a&&o.searchParams.set("scope",a),i&&o.searchParams.set("audience",i),o.toString()}async loginWithPKCEFlowCallback(t,r){return q(async()=>{let n=this.deviceCredentialsManager.getPKCEData();if(!n)throw Error("No code verifier or state for PKCE");if(r!==n.state)throw Error("Provided state does not match stored state");let a=await this.getPKCEToken(t,n.verifier),i=e.mapDeviceTokenResponseToOidcUser(a),s=e.mapOidcUserToDomainModel(i);return await this.userManager.storeUser(i),s},"AUTHENTICATION_ERROR")}async getPKCEToken(e,t){return(await (0,c.default).post(`${this.config.authenticationDomain}/oauth/token`,{client_id:this.config.oidcConfiguration.clientId,grant_type:"authorization_code",code_verifier:t,code:e,redirect_uri:this.config.oidcConfiguration.redirectUri},eu)).data}async logout(){return q(async()=>{"silent"===this.logoutMode?await Promise.all([this.userManager.revokeTokens(["refresh_token"]),this.userManager.signoutSilent()]):(await this.userManager.revokeTokens(["refresh_token"]),await this.userManager.signoutRedirect())},"LOGOUT_ERROR")}async logoutSilentCallback(e){return this.userManager.signoutSilentCallback(e)}async removeUser(){return this.userManager.removeUser()}async getDeviceFlowEndSessionEndpoint(){let{authenticationDomain:e,oidcConfiguration:t}=this.config,r=new URL(eh,e);return r.searchParams.set("client_id",t.clientId),t.logoutRedirectUri&&r.searchParams.set("returnTo",t.logoutRedirectUri),r.toString()}forceUserRefreshInBackground(){this.refreshTokenAndUpdatePromise().catch(e=>{W.warn("Failed to refresh user token",e)})}async forceUserRefresh(){return this.refreshTokenAndUpdatePromise().catch(e=>(W.warn("Failed to refresh user token",e),null))}async refreshTokenAndUpdatePromise(){return this.refreshingPromise||(this.refreshingPromise=new Promise(async(t,r)=>{try{let r=await this.userManager.signinSilent();if(r){t(e.mapOidcUserToDomainModel(r));return}t(null)}catch(a){let e="AUTHENTICATION_ERROR",t="Failed to refresh token",n=!0;if(a instanceof h.ErrorTimeout?(e="SILENT_LOGIN_ERROR",t=`${t}: ${a.message}`,n=!1):a instanceof h.ErrorResponse?(e="NOT_LOGGED_IN_ERROR",t=`${t}: ${a.message||a.error_description}`):a instanceof Error?t=`${t}: ${a.message}`:"string"==typeof a&&(t=`${t}: ${a}`),n)try{await this.userManager.removeUser()}catch(e){e instanceof Error&&(t=`${t}: Failed to remove user: ${e.message}`)}r(new V(t,e))}finally{this.refreshingPromise=null}})),this.refreshingPromise}async getUser(t=e=>!0){if(this.refreshingPromise){let e=await this.refreshingPromise;return e&&t(e)?e:null}let r=await this.userManager.getUser();if(!r)return null;if(!function(e){let{id_token:t,expired:r}=e;return!!r||function(e){if(!e)return!1;let t=(0,b.default)(e),r=Math.floor(Date.now()/1e3);return t.exp{let a=(0,u.trackFlow)("passport",t,r);try{return await e(a)}catch(e){throw e instanceof Error?(0,u.trackError)("passport",t,e,{flowId:a.details.flowId}):a.addEvent("errored"),e}finally{n&&a.addEvent("End")}},ev=class{config;magicProviderProxyFactory;magicClient;constructor(e,t){this.config=e,this.magicProviderProxyFactory=t,"u">typeof window&&(this.magicClient=new y.Magic(this.config.magicPublishableApiKey,{extensions:[new v.OpenIdExtension],network:"mainnet"}))}getMagicClient(){if(!this.magicClient)throw Error("Cannot perform this action outside of the browser");return this.magicClient}async login(e){return q(async()=>ey(async t=>{let r=performance.now(),n=this.getMagicClient();return t.addEvent("endMagicClientInit"),await n.openid.loginWithOIDC({jwt:e,providerId:this.config.magicProviderId}),t.addEvent("endLoginWithOIDC"),(0,u.trackDuration)("passport",t.details.flowName,Math.round(performance.now()-r)),this.magicProviderProxyFactory.createProxy(n)},"magicLogin"),"WALLET_CONNECTION_ERROR")}async logout(){let e=this.getMagicClient();e.user&&await e.user.logout()}},ew=async e=>q(async()=>{let t=await (0,d.generateLegacyStarkPrivateKey)(e);return(0,d.createStarkSigner)(t)},"WALLET_CONNECTION_ERROR");async function ex({user:e,starkSigner:t,request:r,exchangesApi:n}){return q(async()=>{let{ethAddress:a}=e.imx,i=r.amount,s=await n.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:a,token:(0,x.convertToSignableToken)(r),amount:i,receiver:r.receiver}}),o=await t.getAddress(),{payload_hash:c}=s.data,f=await t.signMessage(c),d={sender_stark_key:s.data.sender_stark_key||o,sender_vault_id:s.data.sender_vault_id,receiver_stark_key:s.data.receiver_stark_key,receiver_vault_id:s.data.receiver_vault_id,asset_id:s.data.asset_id,amount:s.data.amount,nonce:s.data.nonce,expiration_timestamp:s.data.expiration_timestamp,stark_signature:f},l={Authorization:`Bearer ${e.accessToken}`},u=await n.createExchangeTransfer({id:r.transactionID,createTransferRequest:d},{headers:l});return{sent_signature:u?.data.sent_signature,status:u?.data.status?.toString(),time:u?.data.time,transfer_id:u?.data.transfer_id}},"EXCHANGE_TRANSFER_ERROR")}var eE="ERC721";async function eA({starkSigner:e,user:t,request:r,ordersApi:n,guardianClient:a}){return q(async()=>{let{ethAddress:i}=t.imx,s=r.sell.type===eE?"1":r.sell.amount,o=r.buy.type===eE?"1":r.buy.amount,c={Authorization:`Bearer ${t.accessToken}`},f={user:i,amount_buy:o,token_buy:(0,x.convertToSignableToken)(r.buy),amount_sell:s,token_sell:(0,x.convertToSignableToken)(r.sell),fees:r.fees,split_fees:!0,expiration_timestamp:r.expiration_timestamp},d=await n.getSignableOrder({getSignableOrderRequestV3:f},{headers:c});await a.evaluateImxTransaction({payloadHash:d.data.payload_hash});let{payload_hash:l}=d.data,u=await e.signMessage(l),h=d.data,p={createOrderRequest:{include_fees:!0,fees:r.fees,stark_signature:u,amount_buy:h.amount_buy,amount_sell:h.amount_sell,asset_id_buy:h.asset_id_buy,asset_id_sell:h.asset_id_sell,expiration_timestamp:h.expiration_timestamp,nonce:h.nonce,stark_key:h.stark_key,vault_id_buy:h.vault_id_buy,vault_id_sell:h.vault_id_sell}};return{...(await n.createOrderV3(p,{headers:c})).data}},"CREATE_ORDER_ERROR")}async function e_({user:e,starkSigner:t,request:r,ordersApi:n,guardianClient:a}){return q(async()=>{let i={order_id:r.order_id},s={Authorization:`Bearer ${e.accessToken}`},o=await n.getSignableCancelOrderV3({getSignableCancelOrderRequest:i},{headers:s});await a.evaluateImxTransaction({payloadHash:o.data.payload_hash});let{payload_hash:c}=o.data,f=await t.signMessage(c),d=await n.cancelOrderV3({id:r.order_id.toString(),cancelOrderRequest:{order_id:r.order_id,stark_signature:f}},{headers:s});return{order_id:d.data.order_id,status:d.data.status}},"CANCEL_ORDER_ERROR")}async function eT({ethSigner:e,starkSigner:t,imxApiClients:r},n){return q(async()=>{let[a,i]=await Promise.all([e.getAddress(),t.getAddress()]),{signable_message:s,payload_hash:o}=(await r.usersApi.getSignableRegistrationOffchain({getSignableRegistrationRequest:{ether_key:a,stark_key:i}})).data,[c,f]=await Promise.all([(0,x.signRaw)(s,e),t.signMessage(o)]);return(await r.usersApi.registerPassportUserV2({authorization:`Bearer ${n}`,registerPassportUserRequest:{eth_signature:c,ether_key:a,stark_signature:f,stark_key:i}})).data},"USER_REGISTRATION_ERROR")}async function eI({request:e,tradesApi:t,user:r,starkSigner:n,guardianClient:a}){return q(async()=>{let{ethAddress:i}=r.imx,s={expiration_timestamp:e.expiration_timestamp,fees:e.fees,order_id:e.order_id,user:i},o={Authorization:`Bearer ${r.accessToken}`},c=await t.getSignableTrade({getSignableTradeRequest:s},{headers:o});await a.evaluateImxTransaction({payloadHash:c.data.payload_hash});let{payload_hash:f}=c.data,d=await n.signMessage(f),{data:l}=c,u={createTradeRequest:{include_fees:!0,fees:e?.fees,stark_signature:d,order_id:e?.order_id,fee_info:l.fee_info,amount_buy:l.amount_buy,amount_sell:l.amount_sell,asset_id_buy:l.asset_id_buy,asset_id_sell:l.asset_id_sell,expiration_timestamp:l.expiration_timestamp,nonce:l.nonce,stark_key:l.stark_key,vault_id_buy:l.vault_id_buy,vault_id_sell:l.vault_id_sell}},{data:h}=await t.createTradeV3(u,{headers:o});return h},"CREATE_TRADE_ERROR")}var eS="ERC721";async function eC({request:e,transfersApi:t,starkSigner:r,user:n,guardianClient:a}){return q(async()=>{let i=e.type===eS?"1":e.amount,s={sender:n.imx.ethAddress,token:(0,x.convertToSignableToken)(e),amount:i,receiver:e.receiver},o={Authorization:`Bearer ${n.accessToken}`},c=await t.getSignableTransferV1({getSignableTransferRequest:s},{headers:o});await a.evaluateImxTransaction({payloadHash:c.data.payload_hash});let f=c.data,{payload_hash:d}=f,l=await r.signMessage(d),u=await r.getAddress(),h={createTransferRequest:{sender_stark_key:f.sender_stark_key||u,sender_vault_id:f.sender_vault_id,receiver_stark_key:f.receiver_stark_key,receiver_vault_id:f.receiver_vault_id,asset_id:f.asset_id,amount:f.amount,nonce:f.nonce,expiration_timestamp:f.expiration_timestamp,stark_signature:l}},{data:p}=await t.createTransferV1(h,{headers:o});return{sent_signature:p.sent_signature,status:p.status?.toString(),time:p.time,transfer_id:p.transfer_id}},"TRANSFER_ERROR")}async function ek({user:e,starkSigner:t,request:r,transfersApi:n,guardianClient:a}){return q(async()=>{let{ethAddress:i}=e.imx,s=r.map(e=>({amount:"1",token:(0,x.convertToSignableToken)({type:eS,tokenId:e.tokenId,tokenAddress:e.tokenAddress}),receiver:e.receiver})),o={Authorization:`Bearer ${e.accessToken}`},c=await n.getSignableTransfer({getSignableTransferRequestV2:{sender_ether_key:i,signable_requests:s}},{headers:o});await a.evaluateImxTransaction({payloadHash:c.data.signable_responses[0]?.payload_hash});let f=await Promise.all(c.data.signable_responses.map(async e=>{let r=await t.signMessage(e.payload_hash);return{sender_vault_id:e.sender_vault_id,receiver_stark_key:e.receiver_stark_key,receiver_vault_id:e.receiver_vault_id,asset_id:e.asset_id,amount:e.amount,nonce:e.nonce,expiration_timestamp:e.expiration_timestamp,stark_signature:r}})),d={sender_stark_key:c.data.sender_stark_key,requests:f};return{transfer_ids:(await n.createTransfer({createTransferRequestV2:d},{headers:o}))?.data.transfer_ids}},"TRANSFER_ERROR")}var eR=e=>new Promise(t=>{setTimeout(()=>t(),e)}),eM=async(e,t)=>{let{retries:r=3,interval:n=1e3,finalErr:a=Error("Retry failed"),finallyFn:i=()=>{}}=t||{};try{return await e()}catch{return r<=0?Promise.reject(a):(await eR(n),eM(e,{retries:r-1,finalErr:a,finallyFn:i}))}finally{r<=0&&i()}};async function eB(e){await eM(async()=>{let t=await e.forceUserRefresh();return t?.imx?t:Promise.reject(Error("user wallet addresses not exist"))})}async function eP(e,t,r,n,a){return q(async()=>{try{let i=await eT({ethSigner:e,starkSigner:t,imxApiClients:a},r.accessToken);return await eB(n),i}catch(e){if((0,c.default).isAxiosError(e)&&e.response?.status===409)return await eB(n),{tx_hash:""};throw e}},"USER_REGISTRATION_ERROR")}var eO=class{authManager;immutableXClient;guardianClient;imxApiClients;magicAdapter;signers;signerInitialisationError;constructor({authManager:e,immutableXClient:t,passportEventEmitter:r,magicAdapter:n,imxApiClients:a,guardianClient:i}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=n,this.imxApiClients=a,this.guardianClient=i,this.#e(),r.on("loggedOut",this.handleLogout)}handleLogout=()=>{this.signers=void 0};#e(){let e=async()=>{let e=await this.authManager.getUser(),t=await this.magicAdapter.login(e.idToken),r=await new(0,w.BrowserProvider)(t).getSigner(),n=await ew(r);return{ethSigner:r,starkSigner:n}};this.signers=new Promise(async t=>{try{t(await e())}catch(e){this.signerInitialisationError=e,t(void 0)}})}async #t(){let e=await this.authManager.getUser();if(!e||!this.signers)throw new V("User has been logged out","NOT_LOGGED_IN_ERROR");return e}async #r(){let e=await this.signers;if(typeof e>"u")throw"u">typeof this.signerInitialisationError?this.signerInitialisationError:Error("Signers failed to initialise");return e}async #n(){let[e,t]=await Promise.all([this.#t(),this.#r()]);if(!J(e))throw new V("User has not been registered with StarkEx","USER_NOT_REGISTERED_ERROR");return{user:e,starkSigner:t.starkSigner,ethSigner:t.ethSigner}}async transfer(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return eC({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxTransfer")}async registerOffchain(){return ey(async()=>{let[e,t]=await Promise.all([this.#t(),this.#r()]);return await eP(t.ethSigner,t.starkSigner,e,this.authManager,this.imxApiClients)},"imxRegisterOffchain")}async isRegisteredOffchain(){return ey(async()=>!!(await this.#t()).imx,"imxIsRegisteredOffchain")}isRegisteredOnchain(){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}async createOrder(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return eA({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCreateOrder")}async cancelOrder(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return e_({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCancelOrder")}async createTrade(e){return ey(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#n();return eI({request:e,user:t,starkSigner:r,tradesApi:this.immutableXClient.tradesApi,guardianClient:this.guardianClient})})(),"imxCreateTrade")}async batchNftTransfer(e){return ey(()=>this.guardianClient.withConfirmationScreenTask({width:480,height:784})(async()=>{let{user:t,starkSigner:r}=await this.#n();return ek({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxBatchNftTransfer")}async exchangeTransfer(e){return ey(async()=>{let{user:t,starkSigner:r}=await this.#n();return ex({request:e,user:t,starkSigner:r,exchangesApi:this.immutableXClient.exchangeApi})},"imxExchangeTransfer")}deposit(e){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}prepareWithdrawal(e){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}completeWithdrawal(e,t){throw new V("Operation not supported","OPERATION_NOT_SUPPORTED_ERROR")}async getAddress(){return ey(async()=>{let e=await this.#t();if(!J(e))throw new V("User has not been registered with StarkEx","USER_NOT_REGISTERED_ERROR");return Promise.resolve(e.imx.ethAddress)},"imxGetAddress")}},ej=class{authManager;immutableXClient;magicAdapter;passportEventEmitter;imxApiClients;guardianClient;constructor({authManager:e,immutableXClient:t,magicAdapter:r,passportEventEmitter:n,imxApiClients:a,guardianClient:i}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=r,this.passportEventEmitter=n,this.imxApiClients=a,this.guardianClient=i}async getProvider(){let e=await this.authManager.getUserOrLogin();return this.createProviderInstance(e)}async getProviderSilent(){let e=await this.authManager.getUser();return e?this.createProviderInstance(e):null}async createProviderInstance(e){if(!e.idToken)throw new V("Failed to initialise","WALLET_CONNECTION_ERROR");return new eO({authManager:this.authManager,immutableXClient:this.immutableXClient,passportEventEmitter:this.passportEventEmitter,magicAdapter:this.magicAdapter,imxApiClients:this.imxApiClients,guardianClient:this.guardianClient})}},eN=(e,t,r)=>{let n=t.map(t=>!e[t]&&t).filter(e=>e).join(", ");if(""!==n)throw new V(r?`${r} - ${n} cannot be null`:`${n} cannot be null`,"INVALID_CONFIGURATION")},eU=class{authenticationDomain;passportDomain;imxPublicApiDomain;magicPublishableApiKey;magicProviderId;oidcConfiguration;baseConfig;zkEvmRpcUrl;relayerUrl;multiRollupConfig;crossSdkBridgeEnabled;forceScwDeployBeforeMessageSignature;popupOverlayOptions;extraQueryParams;constructor({baseConfig:e,overrides:t,crossSdkBridgeEnabled:r,jsonRpcReferrer:n,forceScwDeployBeforeMessageSignature:a,popupOverlayOptions:i,extraQueryParams:s,...o}){if(eN(o,["clientId","redirectUri"]),this.oidcConfiguration=o,this.baseConfig=e,this.crossSdkBridgeEnabled=r||!1,this.forceScwDeployBeforeMessageSignature=a||!1,this.popupOverlayOptions=i||{disableGenericPopupOverlay:!1,disableBlockedPopupOverlay:!1},this.extraQueryParams=s||{},t)eN(t,["authenticationDomain","passportDomain","magicPublishableApiKey","magicProviderId","zkEvmRpcUrl","relayerUrl","imxPublicApiDomain","indexerMrBasePath","orderBookMrBasePath","passportMrBasePath"],"overrides"),this.authenticationDomain=t.authenticationDomain,this.passportDomain=t.passportDomain,this.imxPublicApiDomain=t.imxPublicApiDomain,this.magicPublishableApiKey=t.magicPublishableApiKey,this.magicProviderId=t.magicProviderId,this.zkEvmRpcUrl=t.zkEvmRpcUrl,this.relayerUrl=t.relayerUrl,this.multiRollupConfig={indexer:(0,f.createConfig)({basePath:t.indexerMrBasePath}),orderBook:(0,f.createConfig)({basePath:t.orderBookMrBasePath}),passport:(0,f.createConfig)({basePath:t.passportMrBasePath})};else switch(e.environment){case l.Environment.PRODUCTION:this.authenticationDomain="https://auth.immutable.com",this.magicPublishableApiKey="pk_live_10F423798A540ED7",this.magicProviderId="fSMzaRQ4O7p4fttl7pCyGVtJS_G70P8SNsLXtPPGHo0=",this.passportDomain="https://passport.immutable.com",this.imxPublicApiDomain="https://api.immutable.com",this.zkEvmRpcUrl="https://rpc.immutable.com",this.relayerUrl="https://api.immutable.com/relayer-mr",this.multiRollupConfig=(0,f.multiRollupConfig).getProduction();break;case l.Environment.SANDBOX:default:this.authenticationDomain="https://auth.immutable.com",this.magicPublishableApiKey="pk_live_10F423798A540ED7",this.magicProviderId="fSMzaRQ4O7p4fttl7pCyGVtJS_G70P8SNsLXtPPGHo0=",this.passportDomain="https://passport.sandbox.immutable.com",this.imxPublicApiDomain="https://api.sandbox.immutable.com",this.zkEvmRpcUrl="https://rpc.testnet.immutable.com",this.relayerUrl="https://api.sandbox.immutable.com/relayer-mr",this.multiRollupConfig=(0,f.multiRollupConfig).getSandbox()}}},eL="imx_passport_confirmation",eD=({url:e,title:t,width:r,height:n})=>{let a=Math.max(0,Math.round(window.screenX+(window.outerWidth-r)/2)),i=Math.max(0,Math.round(window.screenY+(window.outerHeight-n)/2)),s=window.open(e,t,` scrollbars=yes, width=${r}, height=${n}, @@ -328,7 +328,7 @@ address target, uint256 value, bytes data -)[]`,eG=e=>e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit??BigInt(0),target:e.to??w.ZeroAddress,value:e.value??BigInt(0),data:e.data??"0x"})),eK=(e,t)=>{let r=(0,w.AbiCoder).defaultAbiCoder().encode(["uint256",ez],[e,t]);return(0,w.keccak256)(r)},eW=e=>(0,w.AbiCoder).defaultAbiCoder().encode([ez],[e]),e$=e=>e||0n,eJ=(e,t)=>{let r=BigInt(e)*2n**96n;return BigInt(t)+r},eQ=async(e,t,r)=>{try{let n=new w.Contract(t,A.walletContracts.mainModule.abi,e),a=e$(r),i=await n.readNonce(a);if("bigint"==typeof i)return eJ(a,i);throw Error("Unexpected result from contract.nonce() call.")}catch(e){if((0,w.isError)(e,"BAD_DATA"))return BigInt(0);throw e}},eZ=(e,t,r)=>(0,w.solidityPacked)(["string","uint256","address","bytes32"],["\x19\x01",e,t,r]),eX=async(e,t,r,n,a)=>{let i=eG(e),s=eZ(r,n,eK(t,i)),o=(0,w.keccak256)(s),c=(0,w.getBytes)(o),f=performance.now(),d=await a.signMessage(c);(0,u.trackDuration)("passport","magicSignMessageGetSignedMetaTransactions",Math.round(performance.now()-f));let l=`${d}02`,h=(0,_.v1).signature.encodeSignature({version:1,threshold:1,signers:[{isDynamic:!1,unrecovered:!0,weight:1,signature:l}]}),p=new w.Interface(A.walletContracts.mainModule.abi);return p.encodeFunctionData(p.getFunction("execute")??"",[i,t,h])},eY=e=>{let t=`0x0000${e}`;return(0,_.v1).signature.decodeSignature(t)},e0=(e,t,r)=>{let n=`${e}02`,{signers:a}=eY(r),i=[...a,{isDynamic:!1,unrecovered:!0,weight:1,signature:n,address:t}].sort((e,t)=>{let r=BigInt(e.address??0),n=BigInt(t.address??0);return r<=n?-1:r===n?0:1});return(0,_.v1).signature.encodeSignature({version:1,threshold:2,signers:i})},e1=async(e,t,r,n,a)=>{let i={...e.types};delete i.EIP712Domain;let s=eZ(r,n,(0,w.TypedDataEncoder).hash(e.domain,i,e.message)),o=(0,w.keccak256)(s),c=(0,w.getBytes)(o),f=performance.now(),d=await a.signMessage(c);return(0,u.trackDuration)("passport","magicSignMessageTypedData",Math.round(performance.now()-f)),e0(d,await a.getAddress(),t)},e6=async(e,t,r,n)=>{let a=eZ(e,n,(0,w.hashMessage)(t)),i=(0,w.keccak256)(a),s=(0,w.getBytes)(i);return r.signMessage(s)},e2=e=>`eip155:${e}`,e5=class{config;rpcProvider;authManager;constructor({config:e,rpcProvider:t,authManager:r}){this.config=e,this.rpcProvider=t,this.authManager=r}async postToRelayer(e){let t={id:1,jsonrpc:"2.0",...e},r=await this.authManager.getUserZkEvm(),n=await (await fetch(`${this.config.relayerUrl}/v1/transactions`,{method:"POST",headers:{Authorization:`Bearer ${r.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)})).json();if(n.error)throw n.error;return n}async ethSendTransaction(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"eth_sendTransaction",params:[{to:e,data:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}async imGetTransactionByHash(e){let{result:t}=await this.postToRelayer({method:"im_getTransactionByHash",params:[e]});return t}async imGetFeeOptions(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"im_getFeeOptions",params:[{userAddress:e,data:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}async imSignTypedData(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"im_signTypedData",params:[{address:e,eip712Payload:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}async imSign(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"im_sign",params:[{address:e,message:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}},e8=((a=e8||{})[a.USER_REJECTED_REQUEST=4001]="USER_REJECTED_REQUEST",a[a.UNAUTHORIZED=4100]="UNAUTHORIZED",a[a.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",a[a.DISCONNECTED=4900]="DISCONNECTED",a),e3=((i=e3||{})[i.RPC_SERVER_ERROR=-32e3]="RPC_SERVER_ERROR",i[i.INVALID_REQUEST=-32600]="INVALID_REQUEST",i[i.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",i[i.INVALID_PARAMS=-32602]="INVALID_PARAMS",i[i.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",i[i.PARSE_ERROR=-32700]="PARSE_ERROR",i[i.TRANSACTION_REJECTED=-32003]="TRANSACTION_REJECTED",i),e4=class extends Error{message;code;constructor(e,t){super(t),this.message=t,this.code=e}};async function e9({authManager:e,ethSigner:t,multiRollupApiClients:r,accessToken:n,rpcProvider:a,flow:i}){let s=t.getAddress();s.then(()=>i.addEvent("endGetAddress"));let o=(0,x.signRaw)("Only sign this message from Immutable Passport",t);o.then(()=>i.addEvent("endSignRaw"));let c=a.getNetwork();c.then(()=>i.addEvent("endDetectNetwork"));let f=r.chainsApi.listChains();f.then(()=>i.addEvent("endListChains"));let[d,l,u,h]=await Promise.all([s,o,c,f]),p=e2(Number(u.chainId)),b=h.data?.result?.find(e=>e.id===p)?.name;if(!b)throw new e4(-32603,`Chain name does not exist on for chain id ${u.chainId}`);try{let t=await r.passportApi.createCounterfactualAddressV2({chainName:b,createCounterfactualAddressRequest:{ethereum_address:d,ethereum_signature:l}},{headers:{Authorization:`Bearer ${n}`}});return i.addEvent("endCreateCounterfactualAddress"),e.forceUserRefreshInBackground(),t.data.counterfactual_address}catch(e){throw new e4(-32603,`Failed to create counterfactual address: ${e}`)}}var e7,te,tt="Transaction requires confirmation but this functionality is not supported in this environment. Please contact Immutable support if you need to enable this feature.",tr=e=>BigInt(e).toString(),tn=e=>{try{return e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit?tr(e.gasLimit):"0",target:e.to??w.ZeroAddress,value:e.value?tr(e.value):"0",data:e.data?e.data.toString():"0x"}))}catch(t){let e=t instanceof Error?t.message:String(t);throw new e4(-32602,`Transaction failed to parsing: ${e}`)}},ta=class{guardianApi;confirmationScreen;crossSdkBridgeEnabled;authManager;constructor({confirmationScreen:e,config:t,authManager:r,guardianApi:n}){this.confirmationScreen=e,this.crossSdkBridgeEnabled=t.crossSdkBridgeEnabled,this.guardianApi=n,this.authManager=r}withConfirmationScreen(e){return t=>this.withConfirmationScreenTask(e)(t)()}withConfirmationScreenTask(e){return t=>async()=>{this.confirmationScreen.loading(e);try{return await t()}catch(e){throw e instanceof V&&"SERVICE_UNAVAILABLE_ERROR"===e.type?await this.confirmationScreen.showServiceUnavailable():this.confirmationScreen.closeWindow(),e}}}withDefaultConfirmationScreenTask(e){return this.withConfirmationScreenTask()(e)}async evaluateImxTransaction({payloadHash:e}){try{let t=await this.authManager.getUserImx(),r={Authorization:`Bearer ${t.accessToken}`};if(!(await eM(async()=>this.guardianApi.getTransactionByID({transactionID:e,chainType:"starkex"},{headers:r}),{finallyFn:()=>{this.confirmationScreen.closeWindow()}})).data.id)throw Error("Transaction doesn't exists");let{confirmationRequired:n}=(await this.guardianApi.evaluateTransaction({id:e,transactionEvaluationRequest:{chainType:"starkex"}},{headers:r})).data;if(n){if(this.crossSdkBridgeEnabled)throw Error(tt);if(!(await this.confirmationScreen.requestConfirmation(e,t.imx.ethAddress,f.mr.TransactionApprovalRequestChainTypeEnum.Starkex)).confirmed)throw Error("Transaction rejected by user")}else this.confirmationScreen.closeWindow()}catch(e){throw(0,c.default).isAxiosError(e)&&e.response?.status===403?new V("Service unavailable","SERVICE_UNAVAILABLE_ERROR"):e}}async evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let n=await this.authManager.getUserZkEvm(),a={Authorization:`Bearer ${n.accessToken}`},i=tn(r);try{return(await this.guardianApi.evaluateTransaction({id:"evm",transactionEvaluationRequest:{chainType:"evm",chainId:e,transactionData:{nonce:t,userAddress:n.zkEvm.ethAddress,metaTransactions:i}}},{headers:a})).data}catch(t){if((0,c.default).isAxiosError(t)&&t.response?.status===403)throw new V("Service unavailable","SERVICE_UNAVAILABLE_ERROR");let e=t instanceof Error?t.message:String(t);throw new e4(-32603,`Transaction failed to validate with error: ${e}`)}}async validateEVMTransaction({chainId:e,nonce:t,metaTransactions:r,isBackgroundTransaction:n}){let{confirmationRequired:a,transactionId:i}=await this.evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r});if(a&&this.crossSdkBridgeEnabled)throw new e4(-32003,tt);if(a&&i){let t=await this.authManager.getUserZkEvm();if(!(await this.confirmationScreen.requestConfirmation(i,t.zkEvm.ethAddress,f.mr.TransactionApprovalRequestChainTypeEnum.Evm,e)).confirmed)throw new e4(-32003,"Transaction rejected by user")}else n||this.confirmationScreen.closeWindow()}async handleEIP712MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e4(4100,"User not logged in. Please log in first.");return(await this.guardianApi.evaluateMessage({messageEvaluationRequest:{chainID:e,payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}})).data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e4(-32603,`Message failed to validate with error: ${e}`)}}async evaluateEIP712Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleEIP712MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e4(-32003,tt);if(n&&r){let e=await this.authManager.getUserZkEvm();if(!(await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"eip712")).confirmed)throw new e4(-32003,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}async handleERC191MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e4(4100,"User not logged in. Please log in first.");return(await this.guardianApi.evaluateErc191Message({eRC191MessageEvaluationRequest:{chainID:e2(Number(e)),payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}})).data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e4(-32603,`Message failed to validate with error: ${e}`)}}async evaluateERC191Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleERC191MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e4(-32003,tt);if(n&&r){let e=await this.authManager.getUserZkEvm();if(!(await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"erc191")).confirmed)throw new e4(-32003,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}},ti=async(e,t,r)=>{let n=eW(eG([e])),a=(await r.imGetFeeOptions(t,n)).find(e=>"IMX"===e.tokenSymbol);if(!a)throw Error("Failed to retrieve fees for IMX token");return a},ts=async(e,t,r,n,a)=>{if(!e.to)throw new e4(-32602,'eth_sendTransaction requires a "to" field');let i={to:e.to.toString(),data:e.data,nonce:BigInt(0),value:e.value,revertOnError:!0},[s,o]=await Promise.all([eQ(t,n,a),ti(i,n,r)]),c=[{...i,nonce:s}],f=BigInt(o.tokenPrice);return f!==BigInt(0)&&c.push({nonce:s,to:o.recipientAddress,value:f,revertOnError:!0}),c},to=async(e,t,r)=>{let n=await eM(async()=>{let r=await e.imGetTransactionByHash(t);if("PENDING"===r.status)throw Error();return r},{retries:30,interval:1e3,finalErr:new e4(-32e3,"transaction hash not generated in time")});if(r.addEvent("endRetrieveRelayerTransaction"),!["SUBMITTED","SUCCESSFUL"].includes(n.status)){let e=`Transaction failed to submit with status ${n.status}.`;throw n.statusMessage&&(e+=` Error message: ${n.statusMessage}`),new e4(-32e3,e)}return n},tc=async({transactionRequest:e,ethSigner:t,rpcProvider:r,guardianClient:n,relayerClient:a,zkEvmAddress:i,flow:s,nonceSpace:o,isBackgroundTransaction:c})=>{let{chainId:f}=await r.getNetwork(),d=BigInt(f);s.addEvent("endDetectNetwork");let l=await ts(e,r,a,i,o);s.addEvent("endBuildMetaTransactions");let{nonce:u}=l[0];if(typeof u>"u")throw Error("Failed to retrieve nonce from the smart wallet");let h=async()=>{await n.validateEVMTransaction({chainId:e2(Number(f)),nonce:tr(u),metaTransactions:l,isBackgroundTransaction:c}),s.addEvent("endValidateEVMTransaction")},p=async()=>{let e=await eX(l,u,d,i,t);return s.addEvent("endGetSignedMetaTransactions"),e},[,b]=await Promise.all([h(),p()]),g=await a.ethSendTransaction(i,b);return s.addEvent("endRelayerSendTransaction"),{signedTransactions:b,relayerId:g,nonce:u}},tf=async e=>{if(!e.to)throw new e4(-32602,'im_signEjectionTransaction requires a "to" field');if(typeof e.nonce>"u")throw new e4(-32602,'im_signEjectionTransaction requires a "nonce" field');if(!e.chainId)throw new e4(-32602,'im_signEjectionTransaction requires a "chainId" field');return[{to:e.to.toString(),data:e.data,nonce:e.nonce??void 0,value:e.value,revertOnError:!0}]},td=async({transactionRequest:e,ethSigner:t,zkEvmAddress:r,flow:n})=>{let a=await tf(e);n.addEvent("endBuildMetaTransactions");let i=await eX(a,e.nonce,BigInt(e.chainId??0),r,t);return n.addEvent("endGetSignedMetaTransactions"),{to:r,data:i,chainId:e2(Number(e.chainId??0))}},tl=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:n,guardianClient:a,zkEvmAddress:i,flow:s,nonceSpace:o,isBackgroundTransaction:c=!1})=>{let f=e[0],{relayerId:d}=await tc({transactionRequest:f,ethSigner:t,rpcProvider:r,guardianClient:a,relayerClient:n,zkEvmAddress:i,flow:s,nonceSpace:o,isBackgroundTransaction:c}),{hash:l}=await to(n,d,s);return l},tu=["types","domain","primaryType","message"],th=e=>tu.every(t=>t in e),tp=(e,t)=>{let r;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new e4(-32602,`Failed to parse typed data JSON: ${e}`)}else if("object"==typeof e)r=e;else throw new e4(-32602,`Invalid typed data argument: ${e}`);if(!th(r))throw new e4(-32602,`Invalid typed data argument. The following properties are required: ${tu.join(", ")}`);let n=r.domain?.chainId;if(n&&("string"==typeof n&&(n.startsWith("0x")?r.domain.chainId=parseInt(n,16).toString():r.domain.chainId=parseInt(n,10).toString()),BigInt(r.domain.chainId??0)!==t))throw new e4(-32602,`Invalid chainId, expected ${t}`);return r},tb=async({params:e,method:t,ethSigner:r,rpcProvider:n,relayerClient:a,guardianClient:i,flow:s})=>{let o=e[0],c=e[1];if(!o||!c)throw new e4(-32602,`${t} requires an address and a typed data JSON`);let{chainId:f}=await n.getNetwork(),d=tp(c,f);s.addEvent("endDetectNetwork"),await i.evaluateEIP712Message({chainID:String(f),payload:d}),s.addEvent("endValidateMessage");let l=await a.imSignTypedData(o,d);s.addEvent("endRelayerSignTypedData");let u=await e1(d,l,BigInt(f),o,r);return s.addEvent("getSignedTypedData"),u},tg=e=>{if(!e)return e;try{let t=(0,w.stripZerosLeft)((0,w.getBytes)(e));return(0,w.toUtf8String)(t)}catch{return e}},tm=async({params:e,ethSigner:t,zkEvmAddress:r,rpcProvider:n,guardianClient:a,relayerClient:i,flow:s})=>{let o=e[0],c=e[1];if(!c||!o)throw new e4(-32602,"personal_sign requires an address and a message");if(c.toLowerCase()!==r.toLowerCase())throw new e4(-32602,"personal_sign requires the signer to be the from address");let f=tg(o),{chainId:d}=await n.getNetwork();s.addEvent("endDetectNetwork");let l=e6(BigInt(d),f,t,c);l.then(()=>s.addEvent("endEOASignature")),await a.evaluateERC191Message({chainID:d,payload:f}),s.addEvent("endEvaluateERC191Message");let[u,h]=await Promise.all([l,i.imSign(c,f)]);s.addEvent("endRelayerSign");let p=await t.getAddress();return s.addEvent("endGetEOAAddress"),e0(u,p,h)},ty=e=>{switch(e){case l.Environment.SANDBOX:return"https://api.sandbox.immutable.com";case l.Environment.PRODUCTION:return"https://api.immutable.com";default:throw Error("Environment not supported")}},tv=e=>{te||(te=(0,c.default).create({baseURL:ty(e)}))};async function tw(e){if(!te)throw Error("Client not initialised");return te.get("/v1/sdk/session-activity/check",{params:e}).then(e=>e.data).catch(e=>{if(404!==e.response.status)throw e})}var{getItem:tx,setItem:tE}=u.utils.localStorage,tA="sessionActivitySendCount",t_="sessionActivityDate",tT={},tI={},tS={},tC=()=>{tI=tx(tA)||{};let e=tx(t_),t=new Date,r=t.getFullYear(),n=`${t.getMonth()+1}`.padStart(2,"0"),a=`${t.getDate()}`.padStart(2,"0"),i=`${r}-${n}-${a}`;e&&e===i||(tI={}),tE(t_,i),tE(tA,tI)};tC();var tk=e=>{tC(),tI[e]||(tI[e]=0),tI[e]++,tE(tA,tI),tT[e]=0},tR=async e=>new Promise(t=>{setTimeout(t,1e3*e)}),tM=async e=>{let t,r=e.flow||(0,u.trackFlow)("passport","sendSessionActivity"),n=e.passportClient;if(!n)throw r.addEvent("No Passport Client ID"),Error("No Passport Client ID provided");if(tS[n])return;tS[n]=!0;let{sendTransaction:a,environment:i}=e;if(!a)throw Error("No sendTransaction function provided");if(!i)throw Error("No environment provided");tv(i);let s=e.walletAddress;if(!s)throw r.addEvent("No Passport Wallet Address"),Error("No wallet address");try{if(t=await tw({clientId:n,wallet:s,checkCount:tT[n]||0,sendCount:tI[n]||0}),tT[n]++,!t)return}catch(e){throw r.addEvent("Failed to fetch details"),Error("Failed to get details",{cause:e})}if(t&&t.contractAddress&&t.functionName){let a=new(0,w.Interface)([`function ${t.functionName}()`]).encodeFunctionData(t.functionName),i=t.contractAddress;try{r.addEvent("Start Sending Transaction");let t=await e.sendTransaction([{to:i,from:s,data:a}],r);tk(n),r.addEvent("Transaction Sent",{tx:t})}catch(t){r.addEvent("Failed to send Transaction");let e=Error("Failed to send transaction",{cause:t});(0,u.trackError)("passport","sessionActivityError",e,{flowId:r.details.flowId})}}t&&t.delay&&t.delay>0&&(r.addEvent("Delaying Transaction",{delay:t.delay}),await tR(t.delay),setTimeout(()=>{r.addEvent("Retrying after Delay"),tS[n]=!1,tB({...e,flow:r})},0))},tB=e=>{var t;return((...e)=>{try{let t=tM(...e);return t instanceof Promise?t.catch(e=>void(e instanceof Error&&(0,u.trackError)("passport","sessionActivityError",e))):t}catch(e){return e instanceof Error&&(0,u.trackError)("passport","sessionActivityError",e),t}})(e).then(()=>{tS[e.passportClient]=!1})},tP=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:n,guardianClient:a,zkEvmAddress:i,flow:s})=>{let{relayerId:o}=await tc({transactionRequest:{to:i,value:0},ethSigner:t,rpcProvider:r,guardianClient:a,relayerClient:n,zkEvmAddress:i,flow:s});return a.withConfirmationScreen()(async()=>{let c=await tm({params:e,ethSigner:t,zkEvmAddress:i,rpcProvider:r,guardianClient:a,relayerClient:n,flow:s});return await to(n,o,s),c})},tO=async({params:e,ethSigner:t,zkEvmAddress:r,flow:n})=>{if(!e||1!==e.length)throw new e4(-32602,"im_signEjectionTransaction requires a singular param (hash)");let a=e[0];return await td({transactionRequest:a,ethSigner:t,zkEvmAddress:r,flow:n})},tj=e=>"zkEvm"in e,tN=class{#e;#t;#r;#n;#a;#i;#s;#o;#c;#f;#d;isPassport=!0;constructor({authManager:e,magicAdapter:t,config:r,multiRollupApiClients:n,passportEventEmitter:a,guardianClient:i}){this.#e=e,this.#s=t,this.#t=r,this.#a=i,this.#n=a,this.#i=new w.JsonRpcProvider(this.#t.zkEvmRpcUrl,void 0,{staticNetwork:!0}),this.#c=new e5({config:this.#t,rpcProvider:this.#i,authManager:this.#e}),this.#o=n,this.#r=new eq,this.#e.getUser().then(e=>{e&&(this.#l(e),tj(e)&&this.#u(e.zkEvm.ethAddress))}).catch(()=>{}),a.on("loggedIn",e=>{this.#l(e),tj(e)&&this.#u(e.zkEvm.ethAddress)}),a.on("loggedOut",this.#h),a.on("accountsRequested",tB)}#h=()=>{this.#f=void 0,this.#r.emit("accountsChanged",[])};#l(e){let t=async()=>{let t=await this.#s.login(e.idToken);return new(0,w.BrowserProvider)(t).getSigner()};this.#d=void 0,this.#f=new Promise(async e=>{try{e(await t())}catch(t){this.#d=t,e(void 0)}})}async #p(){let e=await this.#f;if(typeof e>"u")throw"u">typeof this.#d?this.#d:Error("Signer failed to initialise");return e}async #u(e,t){let r=BigInt(1),n=async(t,n)=>{let a=await this.#p();return await tl({params:t,ethSigner:a,guardianClient:this.#a,rpcProvider:this.#i,relayerClient:this.#c,zkEvmAddress:e,flow:n,nonceSpace:r,isBackgroundTransaction:!0})};this.#n.emit("accountsRequested",{environment:this.#t.baseConfig.environment,sendTransaction:n,walletAddress:e,passportClient:t||this.#t.oidcConfiguration.clientId})}async #b(){try{let e=await this.#e.getUser();return e&&tj(e)?e.zkEvm.ethAddress:void 0}catch{return}}async #g(e){switch(e.method){case"eth_requestAccounts":{let e=await this.#b();if(e)return[e];let t=(0,u.trackFlow)("passport","ethRequestAccounts");try{let e,r=await this.#e.getUserOrLogin();if(t.addEvent("endGetUserOrLogin"),this.#f||this.#l(r),tj(r))e=r.zkEvm.ethAddress;else{t.addEvent("startUserRegistration");let n=await this.#p();t.addEvent("ethSignerResolved"),e=await e9({ethSigner:n,authManager:this.#e,multiRollupApiClients:this.#o,accessToken:r.accessToken,rpcProvider:this.#i,flow:t}),t.addEvent("endUserRegistration")}return this.#r.emit("accountsChanged",[e]),(0,u.identify)({passportId:r.profile.sub}),this.#u(e),[e]}catch(e){throw e instanceof Error?(0,u.trackError)("passport","ethRequestAccounts",e,{flowId:t.details.flowId}):t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_sendTransaction":{let t=await this.#b();if(!t)throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let r=(0,u.trackFlow)("passport","ethSendTransaction");try{return await this.#a.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#p();return r.addEvent("endGetSigner"),await tl({params:e.params||[],ethSigner:n,guardianClient:this.#a,rpcProvider:this.#i,relayerClient:this.#c,zkEvmAddress:t,flow:r})})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","eth_sendTransaction",e,{flowId:r.details.flowId}):r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_accounts":{let e=await this.#b();return e?[e]:[]}case"personal_sign":{let t=await this.#b();if(!t)throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let r=(0,u.trackFlow)("passport","personalSign");try{return await this.#a.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#p();return r.addEvent("endGetSigner"),this.#t.forceScwDeployBeforeMessageSignature&&!(await eQ(this.#i,t)>BigInt(0))?await tP({params:e.params||[],ethSigner:n,zkEvmAddress:t,rpcProvider:this.#i,guardianClient:this.#a,relayerClient:this.#c,flow:r}):await tm({params:e.params||[],ethSigner:n,zkEvmAddress:t,rpcProvider:this.#i,guardianClient:this.#a,relayerClient:this.#c,flow:r})})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","personal_sign",e,{flowId:r.details.flowId}):r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_signTypedData":case"eth_signTypedData_v4":{if(!await this.#b())throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let t=(0,u.trackFlow)("passport","ethSignTypedDataV4");try{return await this.#a.withConfirmationScreen({width:480,height:720})(async()=>{let r=await this.#p();return t.addEvent("endGetSigner"),await tb({method:e.method,params:e.params||[],ethSigner:r,rpcProvider:this.#i,relayerClient:this.#c,guardianClient:this.#a,flow:t})})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","eth_signTypedData",e,{flowId:t.details.flowId}):t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_chainId":{let{chainId:e}=await this.#i.getNetwork();return(0,w.toBeHex)(e)}case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":{let[t,r]=e.params||[];return this.#i.send(e.method,[t,r||"latest"])}case"eth_getStorageAt":{let[t,r,n]=e.params||[];return this.#i.send(e.method,[t,r,n||"latest"])}case"eth_call":case"eth_estimateGas":{let[t,r]=e.params||[];return this.#i.send(e.method,[t,r||"latest"])}case"eth_gasPrice":case"eth_blockNumber":case"eth_getBlockByHash":case"eth_getBlockByNumber":case"eth_getTransactionByHash":case"eth_getTransactionReceipt":return this.#i.send(e.method,e.params||[]);case"im_signEjectionTransaction":{let t=await this.#b();if(!t)throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let r=(0,u.trackFlow)("passport","imSignEjectionTransaction");try{let n=await this.#p();return r.addEvent("endGetSigner"),await tO({params:e.params||[],ethSigner:n,zkEvmAddress:t,flow:r})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","imSignEjectionTransaction",e,{flowId:r.details.flowId}):r.addEvent("errored"),e}finally{r.addEvent("End")}}case"im_addSessionActivity":{let[t]=e.params||[],r=await this.#b();return r&&this.#u(r,t),null}default:throw new e4(4200,"Method not supported")}}async request(e){try{return this.#g(e)}catch(e){throw e instanceof e4?e:e instanceof Error?new e4(-32603,e.message):new e4(-32603,"Internal error")}}on(e,t){this.#r.on(e,t)}removeListener(e,t){this.#r.removeListener(e,t)}},tU={icon:'data:image/svg+xml,',name:"Immutable Passport",rdns:"com.immutable.passport",uuid:(0,T.v4)()},tL=e=>e?.length>0&&"object"==typeof e[0]&&"method"in e[0]&&"string"==typeof e[0].method&&["personal_sign","eth_accounts","eth_requestAccounts"].includes(e[0].method),tD=e=>e?.length>0&&"object"==typeof e[0]&&"method"in e[0]&&"string"==typeof e[0].method&&"eth_requestAccounts"===e[0].method,tF=class{authManager;config;constructor(e,t){this.authManager=e,this.config=t}createProxy(e){return new Proxy(e.rpcProvider,{get:(t,r,n)=>"request"===r?async(...r)=>{try{if(tL(r)){if(!await e.user.isLoggedIn()){let t=(await this.authManager.getUser())?.idToken;if(!t)throw Error("failed to obtain ID token");await e.openid.loginWithOIDC({jwt:t,providerId:this.config.magicProviderId})}if(tD(r))return t.request({method:"eth_accounts"})}return t.request(...r)}catch(e){throw e instanceof Error?Error(`ProviderProxy: ${e.message}`):Error(`ProviderProxy: ${e}`)}}:Reflect.get(t,r,n)})}},tH=e=>e.overrides?(0,f.createConfig)({basePath:e.overrides.imxPublicApiDomain}):e.baseConfig.environment===l.Environment.SANDBOX?(0,f.imxApiConfig).getSandbox():(0,f.imxApiConfig).getProduction(),tV=e=>{if(e.overrides?.imxApiClients)return e.overrides.imxApiClients;let t=tH(e);return new f.ImxApiClients(t)},tq=e=>{let t=new eU(e),r=new em(t),n=new tF(r,t),a=new ev(t,n),i=new eH(t),s=new f.MultiRollupApiClients(t.multiRollupConfig),o=new eq,c=e.overrides?e.overrides.immutableXClient:new d.IMXClient({baseConfig:e.baseConfig}),l=new ta({confirmationScreen:i,config:t,authManager:r,guardianApi:s.guardianApi}),u=new ej({authManager:r,immutableXClient:c,magicAdapter:a,passportEventEmitter:o,imxApiClients:tV(e),guardianClient:l});return{config:t,authManager:r,magicAdapter:a,confirmationScreen:i,immutableXClient:c,multiRollupApiClients:s,passportEventEmitter:o,passportImxProviderFactory:u,guardianClient:l}},tz=class{authManager;config;confirmationScreen;immutableXClient;magicAdapter;multiRollupApiClients;passportImxProviderFactory;passportEventEmitter;guardianClient;constructor(e){let t=tq(e);this.config=t.config,this.authManager=t.authManager,this.magicAdapter=t.magicAdapter,this.confirmationScreen=t.confirmationScreen,this.immutableXClient=t.immutableXClient,this.multiRollupApiClients=t.multiRollupApiClients,this.passportEventEmitter=t.passportEventEmitter,this.passportImxProviderFactory=t.passportImxProviderFactory,this.guardianClient=t.guardianClient,(0,u.setPassportClientId)(e.clientId),(0,u.track)("passport","initialise")}async connectImxSilent(){return ey(()=>this.passportImxProviderFactory.getProviderSilent(),"connectImxSilent",!1)}async connectImx(){return ey(()=>this.passportImxProviderFactory.getProvider(),"connectImx",!1)}connectEvm(e={announceProvider:!0}){return ey(async()=>{let t=new tN({passportEventEmitter:this.passportEventEmitter,authManager:this.authManager,magicAdapter:this.magicAdapter,config:this.config,multiRollupApiClients:this.multiRollupApiClients,guardianClient:this.guardianClient});return e?.announceProvider&&function(e){if(typeof window>"u")return;let t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t),window.addEventListener("eip6963:requestProvider",()=>window.dispatchEvent(t))}({info:tU,provider:t}),t},"connectEvm",!1)}async login(e){return ey(async()=>{let{useCachedSession:t=!1,useSilentLogin:r}=e||{},n=null;try{n=await this.authManager.getUser()}catch(e){if(e instanceof Error&&!e.message.includes("Unknown or invalid refresh token")&&(0,u.trackError)("passport","login",e),t)throw e;W.warn("Failed to retrieve a cached user session",e)}return!n&&r?n=await this.authManager.forceUserRefresh():n||t||(e?.useRedirectFlow?await this.authManager.loginWithRedirect(e?.anonymousId):n=await this.authManager.login(e?.anonymousId)),n&&((0,u.identify)({passportId:n.profile.sub}),this.passportEventEmitter.emit("loggedIn",n)),n?n.profile:null},"login")}async loginCallback(){await ey(()=>this.authManager.loginCallback(),"loginCallback").then(e=>{e&&((0,u.identify)({passportId:e.profile.sub}),this.passportEventEmitter.emit("loggedIn",e))})}async loginWithDeviceFlow(e){return ey(()=>this.authManager.loginWithDeviceFlow(e?.anonymousId),"loginWithDeviceFlow")}async loginWithDeviceFlowCallback(e,t,r){return ey(async()=>{let n=await this.authManager.loginWithDeviceFlowCallback(e,t,r);return this.passportEventEmitter.emit("loggedIn",n),n.profile},"loginWithDeviceFlowCallback")}loginWithPKCEFlow(){return ey(async()=>await this.authManager.getPKCEAuthorizationUrl(),"loginWithPKCEFlow")}async loginWithPKCEFlowCallback(e,t){return ey(async()=>{let r=await this.authManager.loginWithPKCEFlowCallback(e,t);return this.passportEventEmitter.emit("loggedIn",r),r.profile},"loginWithPKCEFlowCallback")}async logout(){return ey(async()=>{"silent"===this.config.oidcConfiguration.logoutMode?await Promise.allSettled([this.authManager.logout(),this.magicAdapter.logout()]):(await this.magicAdapter.logout(),await this.authManager.logout()),this.passportEventEmitter.emit("loggedOut")},"logout")}async logoutDeviceFlow(){return ey(async()=>(await this.authManager.removeUser(),await this.magicAdapter.logout(),this.passportEventEmitter.emit("loggedOut"),await this.authManager.getDeviceFlowEndSessionEndpoint()),"logoutDeviceFlow")}async logoutSilentCallback(e){return ey(()=>this.authManager.logoutSilentCallback(e),"logoutSilentCallback")}async getUserInfo(){return ey(async()=>(await this.authManager.getUser())?.profile,"getUserInfo",!1)}async getIdToken(){return ey(async()=>(await this.authManager.getUser())?.idToken,"getIdToken",!1)}async getAccessToken(){return ey(async()=>(await this.authManager.getUser())?.accessToken,"getAccessToken",!1,!1)}async getLinkedAddresses(){return ey(async()=>{let e=await this.authManager.getUser();if(!e?.profile.sub)return[];let t={Authorization:`Bearer ${e.accessToken}`};return(await this.multiRollupApiClients.passportProfileApi.getUserInfo({headers:t})).data.linked_addresses},"getLinkedAddresses",!1)}async linkExternalWallet(e){let t=(0,u.trackFlow)("passport","linkExternalWallet",!1),r=await this.authManager.getUser();if(!r)throw new V("User is not logged in","NOT_LOGGED_IN_ERROR");let n=J(r),a=$(r);if(!n&&!a)throw new V("User has not been registered","USER_NOT_REGISTERED_ERROR");let i={Authorization:`Bearer ${r.accessToken}`},s={type:e.type,wallet_address:e.walletAddress,signature:e.signature,nonce:e.nonce};try{return{...(await this.multiRollupApiClients.passportProfileApi.linkWalletV2({linkWalletV2Request:s},{headers:i})).data}}catch(r){if(r instanceof Error?(0,u.trackError)("passport","linkExternalWallet",r):t.addEvent("errored"),(0,o.isAxiosError)(r)&&r.response){if(r.response.data&&H(r.response.data)){let{code:e,message:t}=r.response.data;switch(e){case"ALREADY_LINKED":throw new V(t,"LINK_WALLET_ALREADY_LINKED_ERROR");case"MAX_WALLETS_LINKED":throw new V(t,"LINK_WALLET_MAX_WALLETS_LINKED_ERROR");case"DUPLICATE_NONCE":throw new V(t,"LINK_WALLET_DUPLICATE_NONCE_ERROR");case"VALIDATION_ERROR":throw new V(t,"LINK_WALLET_VALIDATION_ERROR");default:throw new V(t,"LINK_WALLET_GENERIC_ERROR")}}else if(r.response.status)throw new V(`Link wallet request failed with status code ${r.response.status}`,"LINK_WALLET_GENERIC_ERROR")}let e="Link wallet request failed";throw r instanceof Error&&(e+=`: ${r.message}`),new V(e,"LINK_WALLET_GENERIC_ERROR")}finally{t.addEvent("End")}}}},{axios:"fYIJi","@imtbl/generated-clients":"8BZnj","@imtbl/x-client":"lqVsJ","@imtbl/config":"ifUQV","@imtbl/metrics":"7Q1ml","oidc-client-ts":"8dhYm","jwt-decode":"cRC0q",localforage:"5I2fN","magic-sdk":"hmsUF","@magic-ext/oidc":"6Ulds",ethers:"jZqA6","@imtbl/toolkit":"7cpoh",events:"gLDS8","@0xsequence/abi":"3twA0","@0xsequence/core":"b4wKh",uuid:"gSiAd","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],fYIJi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i.default),n.export(r,"Axios",()=>s),n.export(r,"AxiosError",()=>o),n.export(r,"CanceledError",()=>c),n.export(r,"isCancel",()=>f),n.export(r,"CancelToken",()=>d),n.export(r,"VERSION",()=>l),n.export(r,"all",()=>u),n.export(r,"Cancel",()=>h),n.export(r,"isAxiosError",()=>p),n.export(r,"spread",()=>b),n.export(r,"toFormData",()=>g),n.export(r,"AxiosHeaders",()=>m),n.export(r,"HttpStatusCode",()=>y),n.export(r,"formToJSON",()=>v),n.export(r,"getAdapter",()=>w),n.export(r,"mergeConfig",()=>x);var a=e("./lib/axios.js"),i=n.interopDefault(a);let{Axios:s,AxiosError:o,CanceledError:c,isCancel:f,CancelToken:d,VERSION:l,all:u,Cancel:h,isAxiosError:p,spread:b,toFormData:g,AxiosHeaders:m,HttpStatusCode:y,formToJSON:v,getAdapter:w,mergeConfig:x}=i.default},{"./lib/axios.js":"ca3EQ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ca3EQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./utils.js"),i=n.interopDefault(a),s=e("./helpers/bind.js"),o=n.interopDefault(s),c=e("./core/Axios.js"),f=n.interopDefault(c),d=e("./core/mergeConfig.js"),l=n.interopDefault(d),u=e("./defaults/index.js"),h=n.interopDefault(u),p=e("./helpers/formDataToJSON.js"),b=n.interopDefault(p),g=e("./cancel/CanceledError.js"),m=n.interopDefault(g),y=e("./cancel/CancelToken.js"),v=n.interopDefault(y),w=e("./cancel/isCancel.js"),x=n.interopDefault(w),E=e("./env/data.js"),A=e("./helpers/toFormData.js"),_=n.interopDefault(A),T=e("./core/AxiosError.js"),I=n.interopDefault(T),S=e("./helpers/spread.js"),C=n.interopDefault(S),k=e("./helpers/isAxiosError.js"),R=n.interopDefault(k),M=e("./core/AxiosHeaders.js"),B=n.interopDefault(M),P=e("./adapters/adapters.js"),O=n.interopDefault(P),j=e("./helpers/HttpStatusCode.js"),N=n.interopDefault(j);let U=function e(t){let r=new f.default(t),n=(0,o.default)(f.default.prototype.request,r);return(0,i.default).extend(n,f.default.prototype,r,{allOwnKeys:!0}),(0,i.default).extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e((0,l.default)(t,r))},n}(h.default);U.Axios=f.default,U.CanceledError=m.default,U.CancelToken=v.default,U.isCancel=x.default,U.VERSION=E.VERSION,U.toFormData=_.default,U.AxiosError=I.default,U.Cancel=U.CanceledError,U.all=function(e){return Promise.all(e)},U.spread=C.default,U.isAxiosError=R.default,U.mergeConfig=l.default,U.AxiosHeaders=B.default,U.formToJSON=e=>(0,b.default)((0,i.default).isHTMLForm(e)?new FormData(e):e),U.getAdapter=O.default.getAdapter,U.HttpStatusCode=N.default,U.default=U,r.default=U},{"./utils.js":"egroV","./helpers/bind.js":"hOvsc","./core/Axios.js":"ZPixz","./core/mergeConfig.js":"lVwdc","./defaults/index.js":"6YDKw","./helpers/formDataToJSON.js":"j6Yuo","./cancel/CanceledError.js":"d3V9O","./cancel/CancelToken.js":"6xYC2","./cancel/isCancel.js":"jaDdU","./env/data.js":"bCFzK","./helpers/toFormData.js":"5NohJ","./core/AxiosError.js":"iHxkD","./helpers/spread.js":"34fku","./helpers/isAxiosError.js":"kOANF","./core/AxiosHeaders.js":"3wUwm","./adapters/adapters.js":"MML0W","./helpers/HttpStatusCode.js":"kddrU","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],egroV:[function(e,t,r){let n,a;var i,s,o,c,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r);var d=e("./helpers/bind.js"),l=f.interopDefault(d),u=arguments[3],h=e("4dc55b20fde67828");let{toString:p}=Object.prototype,{getPrototypeOf:b}=Object,g=(n=Object.create(null),e=>{let t=p.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),m=e=>(e=e.toLowerCase(),t=>g(t)===e),y=e=>t=>typeof t===e,{isArray:v}=Array,w=y("undefined"),x=m("ArrayBuffer"),E=y("string"),A=y("function"),_=y("number"),T=e=>null!==e&&"object"==typeof e,I=e=>{if("object"!==g(e))return!1;let t=b(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},S=m("Date"),C=m("File"),k=m("Blob"),R=m("FileList"),M=m("URLSearchParams"),[B,P,O,j]=["ReadableStream","Request","Response","Headers"].map(m);function N(e,t,{allOwnKeys:r=!1}={}){let n,a;if(null!=e){if("object"!=typeof e&&(e=[e]),v(e))for(n=0,a=e.length;n0;)if(t===(r=n[a]).toLowerCase())return r;return null}let L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:u,D=e=>!w(e)&&e!==L,F=(a="undefined"!=typeof Uint8Array&&b(Uint8Array),e=>a&&e instanceof a),H=m("HTMLFormElement"),V=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q=m("RegExp"),z=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};N(r,(r,a)=>{let i;!1!==(i=t(r,a,e))&&(n[a]=i||r)}),Object.defineProperties(e,n)},G="abcdefghijklmnopqrstuvwxyz",K="0123456789",W={DIGIT:K,ALPHA:G,ALPHA_DIGIT:G+G.toUpperCase()+K},$=m("AsyncFunction"),J=(i="function"==typeof setImmediate,s=A(L.postMessage),i?setImmediate:s?(o=`axios@${Math.random()}`,c=[],L.addEventListener("message",({source:e,data:t})=>{e===L&&t===o&&c.length&&c.shift()()},!1),e=>{c.push(e),L.postMessage(o,"*")}):e=>setTimeout(e)),Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):void 0!==h&&h.nextTick||J;r.default={isArray:v,isArrayBuffer:x,isBuffer:function(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||A(e.append)&&("formdata"===(t=g(e))||"object"===t&&A(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&x(e.buffer)},isString:E,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:T,isPlainObject:I,isReadableStream:B,isRequest:P,isResponse:O,isHeaders:j,isUndefined:w,isDate:S,isFile:C,isBlob:k,isRegExp:q,isFunction:A,isStream:e=>T(e)&&A(e.pipe),isURLSearchParams:M,isTypedArray:F,isFileList:R,forEach:N,merge:function e(){let{caseless:t}=D(this)&&this||{},r={},n=(n,a)=>{let i=t&&U(r,a)||a;I(r[i])&&I(n)?r[i]=e(r[i],n):I(n)?r[i]=e({},n):v(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e(N(t,(t,n)=>{r&&A(t)?e[n]=(0,l.default)(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let a,i,s;let o={};if(t=t||{},null==e)return t;do{for(i=(a=Object.getOwnPropertyNames(e)).length;i-- >0;)s=a[i],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&b(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:g,kindOfTest:m,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(v(e))return e;let t=e.length;if(!_(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:H,hasOwnProperty:V,hasOwnProp:V,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,r)=>{if(A(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(A(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(v(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:L,isContextDefined:D,ALPHABET:W,generateString:(e=16,t=W.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&A(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(T(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let a=v(e)?[]:{};return N(e,(e,t)=>{let i=r(e,n+1);w(i)||(a[t]=i)}),t[n]=void 0,a}}return e};return r(e,0)},isAsyncFn:$,isThenable:e=>e&&(T(e)||A(e))&&A(e.then)&&A(e.catch),setImmediate:J,asap:Q}},{"4dc55b20fde67828":"82Vhe","./helpers/bind.js":"hOvsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"82Vhe":[function(e,t,r){var n,a,i,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function f(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{a="function"==typeof clearTimeout?clearTimeout:c}catch(e){a=c}}();var d=[],l=!1,u=-1;function h(){l&&i&&(l=!1,i.length?d=i.concat(d):u=-1,d.length&&p())}function p(){if(!l){var e=f(h);l=!0;for(var t=d.length;t;){for(i=d,d=[];++u1)for(var r=1;ra)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6aMVc":[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],ZPixz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../helpers/buildURL.js"),o=n.interopDefault(s),c=e("./InterceptorManager.js"),f=n.interopDefault(c),d=e("./dispatchRequest.js"),l=n.interopDefault(d),u=e("./mergeConfig.js"),h=n.interopDefault(u),p=e("./buildFullPath.js"),b=n.interopDefault(p),g=e("../helpers/validator.js"),m=n.interopDefault(g),y=e("./AxiosHeaders.js"),v=n.interopDefault(y);let w=m.default.validators;class x{constructor(e){this.defaults=e,this.interceptors={request:new f.default,response:new f.default}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:a,paramsSerializer:s,headers:o}=t=(0,h.default)(this.defaults,t);void 0!==a&&(0,m.default).assertOptions(a,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)},!1),null!=s&&((0,i.default).isFunction(s)?t.paramsSerializer={serialize:s}:(0,m.default).assertOptions(s,{encode:w.function,serialize:w.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=o&&(0,i.default).merge(o.common,o[t.method]);o&&(0,i.default).forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=(0,v.default).concat(c,o);let f=[],d=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(d=d&&e.synchronous,f.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let p=0;if(!d){let e=[(0,l.default).bind(this),void 0];for(e.unshift.apply(e,f),e.push.apply(e,u),n=e.length,r=Promise.resolve(t);pf);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../helpers/AxiosURLSearchParams.js"),o=n.interopDefault(s);function c(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f(e,t,r){let n;if(!t)return e;let a=r&&r.encode||c,s=r&&r.serialize;if(n=s?s(t,r):(0,i.default).isURLSearchParams(t)?t.toString():new(0,o.default)(t,r).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},{"../utils.js":"egroV","../helpers/AxiosURLSearchParams.js":"dlaZM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dlaZM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./toFormData.js"),i=n.interopDefault(a);function s(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,i.default)(e,this,t)}let c=o.prototype;c.append=function(e,t){this._pairs.push([e,t])},c.toString=function(e){let t=e?function(t){return e.call(this,t,s)}:s;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},r.default=o},{"./toFormData.js":"5NohJ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5NohJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("../platform/node/classes/FormData.js"),f=n.interopDefault(c),d=e("780681ba5a0a0827").Buffer;function l(e){return(0,i.default).isPlainObject(e)||(0,i.default).isArray(e)}function u(e){return(0,i.default).endsWith(e,"[]")?e.slice(0,-2):e}function h(e,t,r){return e?e.concat(t).map(function(e,t){return e=u(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let p=(0,i.default).toFlatObject(i.default,{},null,function(e){return/^is[A-Z]/.test(e)});r.default=function(e,t,r){if(!(0,i.default).isObject(e))throw TypeError("target must be an object");t=t||new(f.default||FormData);let n=(r=(0,i.default).toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!(0,i.default).isUndefined(t[e])})).metaTokens,a=r.visitor||m,s=r.dots,c=r.indexes,b=(r.Blob||"undefined"!=typeof Blob&&Blob)&&(0,i.default).isSpecCompliantForm(t);if(!(0,i.default).isFunction(a))throw TypeError("visitor must be a function");function g(e){if(null===e)return"";if((0,i.default).isDate(e))return e.toISOString();if(!b&&(0,i.default).isBlob(e))throw new o.default("Blob is not supported. Use a Buffer instead.");return(0,i.default).isArrayBuffer(e)||(0,i.default).isTypedArray(e)?b&&"function"==typeof Blob?new Blob([e]):d.from(e):e}function m(e,r,a){let o=e;if(e&&!a&&"object"==typeof e){if((0,i.default).endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var f;if((0,i.default).isArray(e)&&(f=e,(0,i.default).isArray(f)&&!f.some(l))||((0,i.default).isFileList(e)||(0,i.default).endsWith(r,"[]"))&&(o=(0,i.default).toArray(e)))return r=u(r),o.forEach(function(e,n){(0,i.default).isUndefined(e)||null===e||t.append(!0===c?h([r],n,s):null===c?r:r+"[]",g(e))}),!1}}return!!l(e)||(t.append(h(a,r,s),g(e)),!1)}let y=[],v=Object.assign(p,{defaultVisitor:m,convertValue:g,isVisitable:l});if(!(0,i.default).isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!(0,i.default).isUndefined(r)){if(-1!==y.indexOf(r))throw Error("Circular reference detected in "+n.join("."));y.push(r),(0,i.default).forEach(r,function(r,s){!0===(!((0,i.default).isUndefined(r)||null===r)&&a.call(t,r,(0,i.default).isString(s)?s.trim():s,n,v))&&e(r,n?n.concat(s):[s])}),y.pop()}}(e),t}},{"780681ba5a0a0827":"2tbuV","../utils.js":"egroV","../core/AxiosError.js":"iHxkD","../platform/node/classes/FormData.js":"2Sl5N","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2tbuV":[function(e,t,r){let n=e("ce5249998143b152"),a=e("9f9d08cd85b04282"),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=s(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){let t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return u(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);let a=function(e){var t;if(o.isBuffer(e)){let t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return f(e),s(e<0?0:0|h(e))}function l(e){let t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(a)return n?-1:O(e).length;t=(""+t).toLowerCase(),a=!0}}function b(e,t,r){let a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r=+r)!=i&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return -1;r=e.length-1}else if(r<0){if(!a)return -1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,a);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,a);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,a){let i,s=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,c/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){let n=-1;for(i=r;io&&(r=o-c),i=r;i>=0;i--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(a+s<=r){let r,n,o,c;switch(s){case 1:t<128&&(i=t);break;case 2:(192&(r=e[a+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[a+1],n=e[a+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[a+1],n=e[a+2],o=e[a+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),a+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,a,i){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,a){R(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function A(e,t,r,n,a){R(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function _(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function T(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),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}}),o.poolSize=8192,o.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return d(e)},o.allocUnsafeSlow=function(e){return d(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let a=0,i=Math.min(r,n);an.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else if(o.isBuffer(t))t.copy(n,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=t.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,a){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;let i=a-n,s=r-t,c=Math.min(i,s),f=this.slice(n,a),d=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((void 0===r||r>u)&&(r=u),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let a;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let s=t.length;for(n>s/2&&(n=s/2),a=0;a>8,a.push(r%256),a.push(n);return a}(e,this.length-d),this,d,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&B(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(a)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&B(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],a=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],a=1,i=0;for(;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,a=1,i=this[e+--n];for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&B(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&B(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||w(e,4,this.length),a.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),a.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=D(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=D(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let a=r-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=D(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=D(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function R(e,t,r,n,a,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${(i+1)*8}${a}`:`>= -(2${a} ** ${(i+1)*8-1}${a}) and < 2 ** ${(i+1)*8-1}${a}`:`>= ${t}${a} and <= ${r}${a}`,new S.ERR_OUT_OF_RANGE("value",n,e)}M(a,"offset"),(void 0===n[a]||void 0===n[a+i])&&B(a,n.length-(i+1))}function M(e,t){if("number"!=typeof e)throw new S.ERR_INVALID_ARG_TYPE(t,"number",e)}function B(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new S.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new S.ERR_BUFFER_OUT_OF_BOUNDS;throw new S.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}C("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),C("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?a=k(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=k(a)),a+="n"),n+=` It must be ${t}. Received ${a}`},RangeError);let P=/[^+/0-9A-Za-z-_]/g;function O(e,t){let r;t=t||1/0;let n=e.length,a=null,i=[];for(let s=0;s55295&&r<57344){if(!a){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,r,n){let a;for(a=0;a=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let L=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function D(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},{ce5249998143b152:"6fQly","9f9d08cd85b04282":"5JSGn"}],"6fQly":[function(e,t,r){r.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=f(e),s=n[0],o=n[1],c=new i((s+o)*3/4-o),d=0,l=o>0?s-4:s;for(r=0;r>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===o&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===o&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],s=0,o=r-a;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return i.join("")}(e,s,s+16383>o?o:s+16383));return 1===a?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===a&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],"5JSGn":[function(e,t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */r.read=function(e,t,r,n,a){var i,s,o=8*a-n-1,c=(1<>1,d=-7,l=r?a-1:0,u=r?-1:1,h=e[t+l];for(l+=u,i=h&(1<<-d)-1,h>>=-d,d+=o;d>0;i=256*i+e[t+l],l+=u,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=n;d>0;s=256*s+e[t+l],l+=u,d-=8);if(0===i)i=1-f;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=f}return(h?-1:1)*s*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var s,o,c,f=8*i-a-1,d=(1<>1,u=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+l>=1?t+=u/c:t+=u*Math.pow(2,1-l),t*c>=2&&(s++,c/=2),s+l>=d?(o=0,s=d):s+l>=1?(o=(t*c-1)*Math.pow(2,a),s+=l):(o=t*Math.pow(2,l-1)*Math.pow(2,a),s=0));a>=8;e[r+h]=255&o,h+=p,o/=256,a-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,f-=8);e[r+h-p]|=128*b}},{}],iHxkD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a);function s(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}(0,i.default).inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:(0,i.default).toJSONObject(this.config),code:this.code,status:this.status}}});let o=s.prototype,c={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c[e]={value:e}}),Object.defineProperties(s,c),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=(e,t,r,n,a,c)=>{let f=Object.create(o);return(0,i.default).toFlatObject(e,f,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),s.call(f,e.message,t,r,n,a),f.cause=e,f.name=e.name,c&&Object.assign(f,c),f},r.default=s},{"../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2Sl5N":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7QqPk":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a);r.default=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){(0,i.default).forEach(this.handlers,function(t){null!==t&&e(t)})}}},{"./../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2w7yW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>m);var a=e("./transformData.js"),i=n.interopDefault(a),s=e("../cancel/isCancel.js"),o=n.interopDefault(s),c=e("../defaults/index.js"),f=n.interopDefault(c),d=e("../cancel/CanceledError.js"),l=n.interopDefault(d),u=e("../core/AxiosHeaders.js"),h=n.interopDefault(u),p=e("../adapters/adapters.js"),b=n.interopDefault(p);function g(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l.default(null,e)}function m(e){return g(e),e.headers=(0,h.default).from(e.headers),e.data=(0,i.default).call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(0,b.default).getAdapter(e.adapter||f.default.adapter)(e).then(function(t){return g(e),t.data=(0,i.default).call(e,e.transformResponse,t),t.headers=(0,h.default).from(t.headers),t},function(t){return!(0,o.default)(t)&&(g(e),t&&t.response&&(t.response.data=(0,i.default).call(e,e.transformResponse,t.response),t.response.headers=(0,h.default).from(t.response.headers))),Promise.reject(t)})}},{"./transformData.js":"bdA0F","../cancel/isCancel.js":"jaDdU","../defaults/index.js":"6YDKw","../cancel/CanceledError.js":"d3V9O","../core/AxiosHeaders.js":"3wUwm","../adapters/adapters.js":"MML0W","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bdA0F:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>d);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../defaults/index.js"),o=n.interopDefault(s),c=e("../core/AxiosHeaders.js"),f=n.interopDefault(c);function d(e,t){let r=this||o.default,n=t||r,a=(0,f.default).from(n.headers),s=n.data;return(0,i.default).forEach(e,function(e){s=e.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}},{"./../utils.js":"egroV","../defaults/index.js":"6YDKw","../core/AxiosHeaders.js":"3wUwm","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6YDKw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("./transitional.js"),f=n.interopDefault(c),d=e("../helpers/toFormData.js"),l=n.interopDefault(d),u=e("../helpers/toURLEncodedForm.js"),h=n.interopDefault(u),p=e("../platform/index.js"),b=n.interopDefault(p),g=e("../helpers/formDataToJSON.js"),m=n.interopDefault(g);let y={transitional:f.default,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",a=n.indexOf("application/json")>-1,s=(0,i.default).isObject(e);if(s&&(0,i.default).isHTMLForm(e)&&(e=new FormData(e)),(0,i.default).isFormData(e))return a?JSON.stringify((0,m.default)(e)):e;if((0,i.default).isArrayBuffer(e)||(0,i.default).isBuffer(e)||(0,i.default).isStream(e)||(0,i.default).isFile(e)||(0,i.default).isBlob(e)||(0,i.default).isReadableStream(e))return e;if((0,i.default).isArrayBufferView(e))return e.buffer;if((0,i.default).isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,h.default)(e,this.formSerializer).toString();if((r=(0,i.default).isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return(0,l.default)(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||a?(t.setContentType("application/json",!1),function(e,t,r){if((0,i.default).isString(e))try{return(0,JSON.parse)(e),(0,i.default).trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||y.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if((0,i.default).isResponse(e)||(0,i.default).isReadableStream(e))return e;if(e&&(0,i.default).isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw(0,o.default).from(e,o.default.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:b.default.classes.FormData,Blob:b.default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};(0,i.default).forEach(["delete","get","head","post","put","patch"],e=>{y.headers[e]={}}),r.default=y},{"../utils.js":"egroV","../core/AxiosError.js":"iHxkD","./transitional.js":"aqhWc","../helpers/toFormData.js":"5NohJ","../helpers/toURLEncodedForm.js":"fCWX4","../platform/index.js":"4BXM0","../helpers/formDataToJSON.js":"j6Yuo","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aqhWc:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],fCWX4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>d);var a=e("../utils.js"),i=n.interopDefault(a),s=e("./toFormData.js"),o=n.interopDefault(s),c=e("../platform/index.js"),f=n.interopDefault(c);function d(e,t){return(0,o.default)(e,new f.default.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return f.default.isNode&&(0,i.default).isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}},{"../utils.js":"egroV","./toFormData.js":"5NohJ","../platform/index.js":"4BXM0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4BXM0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./node/index.js"),i=n.interopDefault(a),s=e("./common/utils.js");r.default={...s,...i.default}},{"./node/index.js":"dyGwC","./common/utils.js":"hGjLd","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dyGwC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./classes/URLSearchParams.js"),i=n.interopDefault(a),s=e("./classes/FormData.js"),o=n.interopDefault(s),c=e("./classes/Blob.js"),f=n.interopDefault(c);r.default={isBrowser:!0,classes:{URLSearchParams:i.default,FormData:o.default,Blob:f.default},protocols:["http","https","file","blob","url","data"]}},{"./classes/URLSearchParams.js":"jXUXz","./classes/FormData.js":"kqdlS","./classes/Blob.js":"9iwYi","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jXUXz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../../../helpers/AxiosURLSearchParams.js"),i=n.interopDefault(a);r.default="undefined"!=typeof URLSearchParams?URLSearchParams:i.default},{"../../../helpers/AxiosURLSearchParams.js":"dlaZM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kqdlS:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="undefined"!=typeof FormData?FormData:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9iwYi":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="undefined"!=typeof Blob?Blob:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hGjLd:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"hasBrowserEnv",()=>a),n.export(r,"hasStandardBrowserWebWorkerEnv",()=>o),n.export(r,"hasStandardBrowserEnv",()=>s),n.export(r,"navigator",()=>i),n.export(r,"origin",()=>c);let a="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,s=a&&(!i||0>["ReactNative","NativeScript","NS"].indexOf(i.product)),o="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,c=a&&window.location.href||"http://localhost"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],j6Yuo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a);r.default=function(e){if((0,i.default).isFormData(e)&&(0,i.default).isFunction(e.entries)){let t={};return(0,i.default).forEachEntry(e,(e,r)=>{!function e(t,r,n,a){let s=t[a++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),c=a>=t.length;return(s=!s&&(0,i.default).isArray(n)?n.length:s,c)?(0,i.default).hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r:(n[s]&&(0,i.default).isObject(n[s])||(n[s]=[]),e(t,r,n[s],a)&&(0,i.default).isArray(n[s])&&(n[s]=function(e){let t,r;let n={},a=Object.keys(e),i=a.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}},{"../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3wUwm":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../helpers/parseHeaders.js"),o=n.interopDefault(s);let c=Symbol("internals");function f(e){return e&&String(e).trim().toLowerCase()}function d(e){return!1===e||null==e?e:(0,i.default).isArray(e)?e.map(d):String(e)}let l=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u(e,t,r,n,a){if((0,i.default).isFunction(n))return n.call(this,t,r);if(a&&(t=r),(0,i.default).isString(t)){if((0,i.default).isString(n))return -1!==t.indexOf(n);if((0,i.default).isRegExp(n))return n.test(t)}}class h{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function a(e,t,r){let a=f(t);if(!a)throw Error("header name must be a non-empty string");let s=(0,i.default).findKey(n,a);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=d(e))}let s=(e,t)=>(0,i.default).forEach(e,(e,r)=>a(e,r,t));if((0,i.default).isPlainObject(e)||e instanceof this.constructor)s(e,t);else if((0,i.default).isString(e)&&(e=e.trim())&&!l(e))s((0,o.default)(e),t);else if((0,i.default).isHeaders(e))for(let[t,n]of e.entries())a(n,t,r);else null!=e&&a(t,e,r);return this}get(e,t){if(e=f(e)){let r=(0,i.default).findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if((0,i.default).isFunction(t))return t.call(this,e,r);if((0,i.default).isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=f(e)){let r=(0,i.default).findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||u(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function a(e){if(e=f(e)){let a=(0,i.default).findKey(r,e);a&&(!t||u(r,r[a],a,t))&&(delete r[a],n=!0)}}return(0,i.default).isArray(e)?e.forEach(a):a(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let a=t[r];(!e||u(this,this[a],a,e,!0))&&(delete this[a],n=!0)}return n}normalize(e){let t=this,r={};return(0,i.default).forEach(this,(n,a)=>{let s=(0,i.default).findKey(r,a);if(s){t[s]=d(n),delete t[a];return}let o=e?a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(a).trim();o!==a&&delete t[a],t[o]=d(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return(0,i.default).forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&(0,i.default).isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[c]=this[c]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=f(e);t[n]||(!function(e,t){let r=(0,i.default).toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,a){return this[n].call(this,t,e,r,a)},configurable:!0})})}(r,e),t[n]=!0)}return(0,i.default).isArray(e)?e.forEach(n):n(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),(0,i.default).reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),(0,i.default).freezeMethods(h),r.default=h},{"../utils.js":"egroV","../helpers/parseHeaders.js":"6U1W0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6U1W0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js");let i=(0,n.interopDefault(a).default).toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);r.default=e=>{let t,r,n;let a={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||a[t]&&i[t]||("set-cookie"===t?a[t]?a[t].push(r):a[t]=[r]:a[t]=a[t]?a[t]+", "+r:r)}),a}},{"./../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jaDdU:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return!!(e&&e.__CANCEL__)}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],d3V9O:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../core/AxiosError.js"),i=n.interopDefault(a),s=e("../utils.js");function o(e,t,r){(0,i.default).call(this,null==e?"canceled":e,i.default.ERR_CANCELED,t,r),this.name="CanceledError"}(0,n.interopDefault(s).default).inherits(o,i.default,{__CANCEL__:!0}),r.default=o},{"../core/AxiosError.js":"iHxkD","../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],MML0W:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("./http.js"),o=n.interopDefault(s),c=e("./xhr.js"),f=n.interopDefault(c),d=e("./fetch.js"),l=n.interopDefault(d),u=e("../core/AxiosError.js"),h=n.interopDefault(u);let p={http:o.default,xhr:f.default,fetch:l.default};(0,i.default).forEach(p,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let b=e=>`- ${e}`,g=e=>(0,i.default).isFunction(e)||null===e||!1===e;r.default={getAdapter:e=>{let t,r;let{length:n}=e=(0,i.default).isArray(e)?e:[e],a={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(b).join("\n"):" "+b(e[0]):"as no adapter specified";throw new h.default("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:p}},{"../utils.js":"egroV","./http.js":"2Sl5N","./xhr.js":"jG9HX","./fetch.js":"7tMRi","../core/AxiosError.js":"iHxkD","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jG9HX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("./../core/settle.js"),o=n.interopDefault(s),c=e("../defaults/transitional.js"),f=n.interopDefault(c),d=e("../core/AxiosError.js"),l=n.interopDefault(d),u=e("../cancel/CanceledError.js"),h=n.interopDefault(u),p=e("../helpers/parseProtocol.js"),b=n.interopDefault(p),g=e("../platform/index.js"),m=n.interopDefault(g),y=e("../core/AxiosHeaders.js"),v=n.interopDefault(y),w=e("../helpers/progressEventReducer.js"),x=e("../helpers/resolveConfig.js"),E=n.interopDefault(x);let A="undefined"!=typeof XMLHttpRequest;r.default=A&&function(e){return new Promise(function(t,r){let n,a,s,c,d;let u=(0,E.default)(e),p=u.data,g=(0,v.default).from(u.headers).normalize(),{responseType:y,onUploadProgress:x,onDownloadProgress:A}=u;function _(){c&&c(),d&&d(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let T=new XMLHttpRequest;function I(){if(!T)return;let n=(0,v.default).from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),a={data:y&&"text"!==y&&"json"!==y?T.response:T.responseText,status:T.status,statusText:T.statusText,headers:n,config:e,request:T};(0,o.default)(function(e){t(e),_()},function(e){r(e),_()},a),T=null}T.open(u.method.toUpperCase(),u.url,!0),T.timeout=u.timeout,"onloadend"in T?T.onloadend=I:T.onreadystatechange=function(){T&&4===T.readyState&&(0!==T.status||T.responseURL&&0===T.responseURL.indexOf("file:"))&&setTimeout(I)},T.onabort=function(){T&&(r(new l.default("Request aborted",l.default.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new l.default("Network Error",l.default.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||f.default;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new l.default(t,n.clarifyTimeoutError?l.default.ETIMEDOUT:l.default.ECONNABORTED,e,T)),T=null},void 0===p&&g.setContentType(null),"setRequestHeader"in T&&(0,i.default).forEach(g.toJSON(),function(e,t){T.setRequestHeader(t,e)}),(0,i.default).isUndefined(u.withCredentials)||(T.withCredentials=!!u.withCredentials),y&&"json"!==y&&(T.responseType=u.responseType),A&&([s,d]=(0,w.progressEventReducer)(A,!0),T.addEventListener("progress",s)),x&&T.upload&&([a,c]=(0,w.progressEventReducer)(x),T.upload.addEventListener("progress",a),T.upload.addEventListener("loadend",c)),(u.cancelToken||u.signal)&&(n=t=>{T&&(r(!t||t.type?new h.default(null,e,T):t),T.abort(),T=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let S=(0,b.default)(u.url);if(S&&-1===(0,m.default).protocols.indexOf(S)){r(new l.default("Unsupported protocol "+S+":",l.default.ERR_BAD_REQUEST,e));return}T.send(p||null)})}},{"./../utils.js":"egroV","./../core/settle.js":"aXtGk","../defaults/transitional.js":"aqhWc","../core/AxiosError.js":"iHxkD","../cancel/CanceledError.js":"d3V9O","../helpers/parseProtocol.js":"iFNB4","../platform/index.js":"4BXM0","../core/AxiosHeaders.js":"3wUwm","../helpers/progressEventReducer.js":"ZGfaK","../helpers/resolveConfig.js":"bxX7U","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aXtGk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var a=e("./AxiosError.js"),i=n.interopDefault(a);function s(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new i.default("Request failed with status code "+r.status,[i.default.ERR_BAD_REQUEST,i.default.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},{"./AxiosError.js":"iHxkD","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],iFNB4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ZGfaK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"progressEventReducer",()=>d),n.export(r,"progressEventDecorator",()=>l),n.export(r,"asyncDecorator",()=>u);var a=e("./speedometer.js"),i=n.interopDefault(a),s=e("./throttle.js"),o=n.interopDefault(s),c=e("../utils.js"),f=n.interopDefault(c);let d=(e,t,r=3)=>{let n=0,a=(0,i.default)(50,250);return(0,o.default)(r=>{let i=r.loaded,s=r.lengthComputable?r.total:void 0,o=i-n,c=a(o);n=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},l=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},u=e=>(...t)=>(0,f.default).asap(()=>e(...t))},{"./speedometer.js":"29Z4p","./throttle.js":"i705Y","../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"29Z4p":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){let r;let n=Array(e=e||10),a=Array(e),i=0,s=0;return t=void 0!==t?t:1e3,function(o){let c=Date.now(),f=a[s];r||(r=c),n[i]=o,a[i]=c;let d=s,l=0;for(;d!==i;)l+=n[d++],d%=e;if((i=(i+1)%e)===s&&(s=(s+1)%e),c-r{a=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),o=t-a;o>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-o)))},()=>r&&s(r)]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bxX7U:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../platform/index.js"),i=n.interopDefault(a),s=e("../utils.js"),o=n.interopDefault(s),c=e("./isURLSameOrigin.js"),f=n.interopDefault(c),d=e("./cookies.js"),l=n.interopDefault(d),u=e("../core/buildFullPath.js"),h=n.interopDefault(u),p=e("../core/mergeConfig.js"),b=n.interopDefault(p),g=e("../core/AxiosHeaders.js"),m=n.interopDefault(g),y=e("./buildURL.js"),v=n.interopDefault(y);r.default=e=>{let t;let r=(0,b.default)({},e),{data:n,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:c,headers:d,auth:u}=r;if(r.headers=d=(0,m.default).from(d),r.url=(0,v.default)((0,h.default)(r.baseURL,r.url),e.params,e.paramsSerializer),u&&d.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),(0,o.default).isFormData(n)){if(i.default.hasStandardBrowserEnv||i.default.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(!1!==(t=d.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];d.setContentType([e||"multipart/form-data",...r].join("; "))}}if(i.default.hasStandardBrowserEnv&&(a&&(0,o.default).isFunction(a)&&(a=a(r)),a||!1!==a&&(0,f.default)(r.url))){let e=s&&c&&(0,l.default).read(c);e&&d.set(s,e)}return r}},{"../platform/index.js":"4BXM0","../utils.js":"egroV","./isURLSameOrigin.js":"jQ2dT","./cookies.js":"2PmmZ","../core/buildFullPath.js":"hvqyA","../core/mergeConfig.js":"lVwdc","../core/AxiosHeaders.js":"3wUwm","./buildURL.js":"77A4c","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jQ2dT:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?function(){let e;let t=o.default.navigator&&/(msie|trident)/i.test(o.default.navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=(0,i.default).isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},{"./../utils.js":"egroV","../platform/index.js":"4BXM0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2PmmZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?{write(e,t,r,n,a,s){let o=[e+"="+encodeURIComponent(t)];(0,i.default).isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),(0,i.default).isString(n)&&o.push("path="+n),(0,i.default).isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},{"./../utils.js":"egroV","../platform/index.js":"4BXM0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hvqyA:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var a=e("../helpers/isAbsoluteURL.js"),i=n.interopDefault(a),s=e("../helpers/combineURLs.js"),o=n.interopDefault(s);function c(e,t){return e&&!(0,i.default)(t)?(0,o.default)(e,t):t}},{"../helpers/isAbsoluteURL.js":"9eZQz","../helpers/combineURLs.js":"d6dHZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9eZQz":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],d6dHZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lVwdc:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>f);var a=e("../utils.js"),i=n.interopDefault(a),s=e("./AxiosHeaders.js"),o=n.interopDefault(s);let c=e=>e instanceof o.default?{...e}:e;function f(e,t){t=t||{};let r={};function n(e,t,r){return(0,i.default).isPlainObject(e)&&(0,i.default).isPlainObject(t)?(0,i.default).merge.call({caseless:r},e,t):(0,i.default).isPlainObject(t)?(0,i.default).merge({},t):(0,i.default).isArray(t)?t.slice():t}function a(e,t,r){return(0,i.default).isUndefined(t)?(0,i.default).isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!(0,i.default).isUndefined(t))return n(void 0,t)}function o(e,t){return(0,i.default).isUndefined(t)?(0,i.default).isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function f(r,a,i){return i in t?n(r,a):i in e?n(void 0,r):void 0}let d={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(e,t)=>a(c(e),c(t),!0)};return(0,i.default).forEach(Object.keys(Object.assign({},e,t)),function(n){let s=d[n]||a,o=s(e[n],t[n],n);(0,i.default).isUndefined(o)&&s!==f||(r[n]=o)}),r}},{"../utils.js":"egroV","./AxiosHeaders.js":"3wUwm","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7tMRi":[function(e,t,r){let n;var a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var s=e("../platform/index.js"),o=i.interopDefault(s),c=e("../utils.js"),f=i.interopDefault(c),d=e("../core/AxiosError.js"),l=i.interopDefault(d),u=e("../helpers/composeSignals.js"),h=i.interopDefault(u),p=e("../helpers/trackStream.js"),b=e("../core/AxiosHeaders.js"),g=i.interopDefault(b),m=e("../helpers/progressEventReducer.js"),y=e("../helpers/resolveConfig.js"),v=i.interopDefault(y),w=e("../core/settle.js"),x=i.interopDefault(w);let E="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,A=E&&"function"==typeof ReadableStream,_=E&&("function"==typeof TextEncoder?(n=new TextEncoder,e=>n.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),T=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},I=A&&T(()=>{let e=!1,t=new Request((0,o.default).origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),S=A&&T(()=>(0,f.default).isReadableStream(new Response("").body)),C={stream:S&&(e=>e.body)};E&&(a=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{C[e]||(C[e]=(0,f.default).isFunction(a[e])?t=>t[e]():(t,r)=>{throw new l.default(`Response type '${e}' is not supported`,l.default.ERR_NOT_SUPPORT,r)})}));let k=async e=>{if(null==e)return 0;if((0,f.default).isBlob(e))return e.size;if((0,f.default).isSpecCompliantForm(e)){let t=new Request(o.default.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return(0,f.default).isArrayBufferView(e)||(0,f.default).isArrayBuffer(e)?e.byteLength:((0,f.default).isURLSearchParams(e)&&(e+=""),(0,f.default).isString(e))?(await _(e)).byteLength:void 0},R=async(e,t)=>{let r=(0,f.default).toFiniteNumber(e.getContentLength());return null==r?k(t):r};r.default=E&&(async e=>{let t,r,{url:n,method:a,data:i,signal:s,cancelToken:o,timeout:c,onDownloadProgress:d,onUploadProgress:u,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:E}=(0,v.default)(e);b=b?(b+"").toLowerCase():"text";let A=(0,h.default)([s,o&&o.toAbortSignal()],c),_=A&&A.unsubscribe&&(()=>{A.unsubscribe()});try{if(u&&I&&"get"!==a&&"head"!==a&&0!==(r=await R(y,i))){let e,t=new Request(n,{method:"POST",body:i,duplex:"half"});if((0,f.default).isFormData(i)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){let[e,n]=(0,m.progressEventDecorator)(r,(0,m.progressEventReducer)((0,m.asyncDecorator)(u)));i=(0,p.trackStream)(t.body,65536,e,n)}}(0,f.default).isString(w)||(w=w?"include":"omit");let s="credentials"in Request.prototype;t=new Request(n,{...E,signal:A,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:i,duplex:"half",credentials:s?w:void 0});let o=await fetch(t),c=S&&("stream"===b||"response"===b);if(S&&(d||c&&_)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});let t=(0,f.default).toFiniteNumber(o.headers.get("content-length")),[r,n]=d&&(0,m.progressEventDecorator)(t,(0,m.progressEventReducer)((0,m.asyncDecorator)(d),!0))||[];o=new Response((0,p.trackStream)(o.body,65536,r,()=>{n&&n(),_&&_()}),e)}b=b||"text";let l=await C[(0,f.default).findKey(C,b)||"text"](o,e);return!c&&_&&_(),await new Promise((r,n)=>{(0,x.default)(r,n,{data:l,headers:(0,g.default).from(o.headers),status:o.status,statusText:o.statusText,config:e,request:t})})}catch(r){if(_&&_(),r&&"TypeError"===r.name&&/fetch/i.test(r.message))throw Object.assign(new l.default("Network Error",l.default.ERR_NETWORK,e,t),{cause:r.cause||r});throw(0,l.default).from(r,r&&r.code,e,t)}})},{"../platform/index.js":"4BXM0","../utils.js":"egroV","../core/AxiosError.js":"iHxkD","../helpers/composeSignals.js":"61ubG","../helpers/trackStream.js":"iPFno","../core/AxiosHeaders.js":"3wUwm","../helpers/progressEventReducer.js":"ZGfaK","../helpers/resolveConfig.js":"bxX7U","../core/settle.js":"aXtGk","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"61ubG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../cancel/CanceledError.js"),i=n.interopDefault(a),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("../utils.js"),f=n.interopDefault(c);r.default=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,a=function(e){if(!r){r=!0,c();let t=e instanceof Error?e:this.reason;n.abort(t instanceof o.default?t:new i.default(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>{s=null,a(new o.default(`timeout ${t} of ms exceeded`,o.default.ETIMEDOUT))},t),c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));let{signal:d}=n;return d.unsubscribe=()=>(0,f.default).asap(c),d}}},{"../cancel/CanceledError.js":"d3V9O","../core/AxiosError.js":"iHxkD","../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],iPFno:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"streamChunk",()=>a),n.export(r,"readBytes",()=>i),n.export(r,"trackStream",()=>o);let a=function*(e,t){let r,n=e.byteLength;if(!t||n{let a;let s=i(e,t),o=0,c=e=>{!a&&(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){c(),e.close();return}let a=n.byteLength;if(r){let e=o+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5oRQ6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../env/data.js"),i=e("../core/AxiosError.js"),s=n.interopDefault(i);let o={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let c={};o.transitional=function(e,t,r){function n(e,t){return"[Axios v"+a.VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,i)=>{if(!1===e)throw new s.default(n(a," has been removed"+(t?" in "+t:"")),s.default.ERR_DEPRECATED);return t&&!c[a]&&(c[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}},r.default={assertOptions:function(e,t,r){if("object"!=typeof e)throw new s.default("options must be an object",s.default.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),a=n.length;for(;a-- >0;){let i=n[a],o=t[i];if(o){let t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new s.default("option "+i+" must be "+r,s.default.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new s.default("Unknown option "+i,s.default.ERR_BAD_OPTION)}},validators:o}},{"../env/data.js":"bCFzK","../core/AxiosError.js":"iHxkD","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bCFzK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"VERSION",()=>a);let a="1.7.7"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6xYC2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./CanceledError.js"),i=n.interopDefault(a);class s{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,a){r.reason||(r.reason=new i.default(e,n,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new s(function(t){e=t}),cancel:e}}}r.default=s},{"./CanceledError.js":"d3V9O","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"34fku":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return function(t){return e.apply(null,t)}}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kOANF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var a=e("./../utils.js"),i=n.interopDefault(a);function s(e){return(0,i.default).isObject(e)&&!0===e.isAxiosError}},{"./../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kddrU:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(n).forEach(([e,t])=>{n[t]=e}),r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8BZnj":[function(e,t,r){let n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E;var A=e("@parcel/transformer-js/src/esmodule-helpers.js");A.defineInteropFlag(r),A.export(r,"BlockchainData",()=>nm),A.export(r,"ImxApiClients",()=>nL),A.export(r,"MultiRollupApiClients",()=>nD),A.export(r,"createConfig",()=>nH),A.export(r,"imx",()=>C),A.export(r,"imxApiConfig",()=>nV),A.export(r,"mr",()=>e4),A.export(r,"multiRollupConfig",()=>nq);var _=e("axios"),T=A.interopDefault(_),I=Object.defineProperty,S=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},C={};S(C,{AssetsApi:()=>H,AssetsApiAxiosParamCreator:()=>L,AssetsApiFactory:()=>F,AssetsApiFp:()=>D,BalancesApi:()=>G,BalancesApiAxiosParamCreator:()=>V,BalancesApiFactory:()=>z,BalancesApiFp:()=>q,CollectionsApi:()=>J,CollectionsApiAxiosParamCreator:()=>K,CollectionsApiFactory:()=>$,CollectionsApiFp:()=>W,Configuration:()=>eX,CreateExchangeAndURLAPIRequestProviderEnum:()=>eY,CreateExchangeAndURLAPIRequestTypeEnum:()=>e0,CreateProjectGroupRequestChainTypeEnum:()=>e1,DepositsApi:()=>Y,DepositsApiAxiosParamCreator:()=>Q,DepositsApiFactory:()=>X,DepositsApiFp:()=>Z,EncodeAssetRequestTokenTypeEnum:()=>e6,EncodingApi:()=>en,EncodingApiAxiosParamCreator:()=>ee,EncodingApiFactory:()=>er,EncodingApiFp:()=>et,ExchangesApi:()=>eo,ExchangesApiAxiosParamCreator:()=>ea,ExchangesApiFactory:()=>es,ExchangesApiFp:()=>ei,FeeTokenTypeEnum:()=>e2,GetMetadataRefreshResponseStatusEnum:()=>e5,MetadataApi:()=>el,MetadataApiAxiosParamCreator:()=>ec,MetadataApiFactory:()=>ed,MetadataApiFp:()=>ef,MetadataRefreshExcludingSummaryStatusEnum:()=>e8,MetadataRefreshesApi:()=>eb,MetadataRefreshesApiAxiosParamCreator:()=>eu,MetadataRefreshesApiFactory:()=>ep,MetadataRefreshesApiFp:()=>eh,MetadataSchemaRequestTypeEnum:()=>e3,MintsApi:()=>ev,MintsApiAxiosParamCreator:()=>eg,MintsApiFactory:()=>ey,MintsApiFp:()=>em,NftCheckoutPrimaryApi:()=>eA,NftCheckoutPrimaryApiAxiosParamCreator:()=>ew,NftCheckoutPrimaryApiFactory:()=>eE,NftCheckoutPrimaryApiFp:()=>ex,OrdersApi:()=>eS,OrdersApiAxiosParamCreator:()=>e_,OrdersApiFactory:()=>eI,OrdersApiFp:()=>eT,ProjectsApi:()=>eM,ProjectsApiAxiosParamCreator:()=>eC,ProjectsApiFactory:()=>eR,ProjectsApiFp:()=>ek,TokensApi:()=>ej,TokensApiAxiosParamCreator:()=>eB,TokensApiFactory:()=>eO,TokensApiFp:()=>eP,TradesApi:()=>eD,TradesApiAxiosParamCreator:()=>eN,TradesApiFactory:()=>eL,TradesApiFp:()=>eU,TransfersApi:()=>eq,TransfersApiAxiosParamCreator:()=>eF,TransfersApiFactory:()=>eV,TransfersApiFp:()=>eH,UsersApi:()=>eW,UsersApiAxiosParamCreator:()=>ez,UsersApiFactory:()=>eK,UsersApiFp:()=>eG,WithdrawalsApi:()=>eZ,WithdrawalsApiAxiosParamCreator:()=>e$,WithdrawalsApiFactory:()=>eQ,WithdrawalsApiFp:()=>eJ});var k="https://api.sandbox.x.immutable.com".replace(/\/+$/,""),R=class{constructor(e,t=k,r=T.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}configuration},M=class extends Error{constructor(e,t){super(t),this.field=e}name="RequiredError"},B="https://example.com",P=function(e,t,r){if(null==r)throw new M(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},O=function(e,...t){let r=new URLSearchParams(e.search);(function e(t,r,n=""){"object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(a=>e(t,r[a],`${n}${""!==n?".":""}${a}`)):t.has(n)?t.append(n,r):t.set(n,r)})(r,t),e.search=r.toString()},j=function(e,t,r){let n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(void 0!==e?e:{}):e||""},N=function(e){return e.pathname+e.search+e.hash},U=function(e,t,r,n){return(a=t,i=r)=>{let s={...e.options,url:(n?.basePath||i)+e.url};return a.request(s)}},L=function(e){return{getAsset:async(t,r,n,a={})=>{P("getAsset","tokenAddress",t),P("getAsset","tokenId",r);let i=new URL("/v1/assets/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),B),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};void 0!==n&&(c.include_fees=n),O(i,c);let f=s&&s.headers?s.headers:{};return o.headers={...f,...a.headers},{url:N(i),options:o}},listAssets:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m={})=>{let y=new URL("/v1/assets",B),v;e&&(v=e.baseOptions);let w={method:"GET",...v,...m},x={};void 0!==t&&(x.page_size=t),void 0!==r&&(x.cursor=r),void 0!==n&&(x.order_by=n),void 0!==a&&(x.direction=a),void 0!==i&&(x.user=i),void 0!==s&&(x.status=s),void 0!==o&&(x.name=o),void 0!==c&&(x.metadata=c),void 0!==f&&(x.sell_orders=f),void 0!==d&&(x.buy_orders=d),void 0!==l&&(x.include_fees=l),void 0!==u&&(x.collection=u),void 0!==h&&(x.updated_min_timestamp=h),void 0!==p&&(x.updated_max_timestamp=p),void 0!==b&&(x.auxiliary_fee_percentages=b),void 0!==g&&(x.auxiliary_fee_recipients=g),O(y,x);let E=v&&v.headers?v.headers:{};return w.headers={...E,...m.headers},{url:N(y),options:w}}}},D=function(e){let t=L(e);return{getAsset:async(r,n,a,i)=>U(await t.getAsset(r,n,a,i),T.default,k,e),listAssets:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y)=>U(await t.listAssets(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y),T.default,k,e)}},F=function(e,t,r){let n=D(e);return{getAsset:(e,a,i,s)=>n.getAsset(e,a,i,s).then(e=>e(r,t)),listAssets:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v)=>n.listAssets(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v).then(e=>e(r,t))}},H=class extends R{getAsset(e,t){return D(this.configuration).getAsset(e.tokenAddress,e.tokenId,e.includeFees,t).then(e=>e(this.axios,this.basePath))}listAssets(e={},t){return D(this.configuration).listAssets(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.name,e.metadata,e.sellOrders,e.buyOrders,e.includeFees,e.collection,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}},V=function(e){return{getBalance:async(t,r,n={})=>{P("getBalance","owner",t),P("getBalance","address",r);let a=new URL("/v2/balances/{owner}/{address}".replace("{owner}",encodeURIComponent(String(t))).replace("{address}",encodeURIComponent(String(r))),B),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:N(a),options:s}},listBalances:async(t,r,n,a,i,s={})=>{P("listBalances","owner",t);let o=new URL("/v2/balances/{owner}".replace("{owner}",encodeURIComponent(String(t))),B),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};void 0!==r&&(d.page_size=r),void 0!==n&&(d.cursor=n),void 0!==a&&(d.order_by=a),void 0!==i&&(d.direction=i),O(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:N(o),options:f}}}},q=function(e){let t=V(e);return{getBalance:async(r,n,a)=>U(await t.getBalance(r,n,a),T.default,k,e),listBalances:async(r,n,a,i,s,o)=>U(await t.listBalances(r,n,a,i,s,o),T.default,k,e)}},z=function(e,t,r){let n=q(e);return{getBalance:(e,a,i)=>n.getBalance(e,a,i).then(e=>e(r,t)),listBalances:(e,a,i,s,o,c)=>n.listBalances(e,a,i,s,o,c).then(e=>e(r,t))}},G=class extends R{getBalance(e,t){return q(this.configuration).getBalance(e.owner,e.address,t).then(e=>e(this.axios,this.basePath))}listBalances(e,t){return q(this.configuration).listBalances(e.owner,e.pageSize,e.cursor,e.orderBy,e.direction,t).then(e=>e(this.axios,this.basePath))}},K=function(e){return{createCollection:async(t,r,n,a,i={})=>{P("createCollection","iMXSignature",t),P("createCollection","iMXTimestamp",r),P("createCollection","createCollectionRequest",n);let s=new URL("/v1/collections",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=t&&(f["IMX-Signature"]=String(t)),null!=r&&(f["IMX-Timestamp"]=String(r)),null!=a&&(f["x-immutable-api-key"]=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(n,c,e),{url:N(s),options:c}},getCollection:async(t,r={})=>{P("getCollection","address",t);let n=new URL("/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listCollectionFilters:async(t,r,n,a={})=>{P("listCollectionFilters","address",t);let i=new URL("/v1/collections/{address}/filters".replace("{address}",encodeURIComponent(String(t))),B),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};void 0!==r&&(c.page_size=r),void 0!==n&&(c.next_page_token=n),O(i,c);let f=s&&s.headers?s.headers:{};return o.headers={...f,...a.headers},{url:N(i),options:o}},listCollections:async(t,r,n,a,i,s,o,c={})=>{let f=new URL("/v1/collections",B),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};void 0!==t&&(u.page_size=t),void 0!==r&&(u.cursor=r),void 0!==n&&(u.order_by=n),void 0!==a&&(u.direction=a),void 0!==i&&(u.blacklist=i),void 0!==s&&(u.whitelist=s),void 0!==o&&(u.keyword=o),O(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:N(f),options:l}},summarizeCollections:async(t,r={})=>{P("summarizeCollections","user",t);let n=new URL("/v1/collections-summary",B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};void 0!==t&&(s.user=t),O(n,s);let o=a&&a.headers?a.headers:{};return i.headers={...o,...r.headers},{url:N(n),options:i}},updateCollection:async(t,r,n,a,i={})=>{P("updateCollection","address",t),P("updateCollection","iMXSignature",r),P("updateCollection","iMXTimestamp",n),P("updateCollection","updateCollectionRequest",a);let s=new URL("/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"PATCH",...o,...i},f={};null!=r&&(f["IMX-Signature"]=String(r)),null!=n&&(f["IMX-Timestamp"]=String(n)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(a,c,e),{url:N(s),options:c}}}},W=function(e){let t=K(e);return{createCollection:async(r,n,a,i,s)=>U(await t.createCollection(r,n,a,i,s),T.default,k,e),getCollection:async(r,n)=>U(await t.getCollection(r,n),T.default,k,e),listCollectionFilters:async(r,n,a,i)=>U(await t.listCollectionFilters(r,n,a,i),T.default,k,e),listCollections:async(r,n,a,i,s,o,c,f)=>U(await t.listCollections(r,n,a,i,s,o,c,f),T.default,k,e),summarizeCollections:async(r,n)=>U(await t.summarizeCollections(r,n),T.default,k,e),updateCollection:async(r,n,a,i,s)=>U(await t.updateCollection(r,n,a,i,s),T.default,k,e)}},$=function(e,t,r){let n=W(e);return{createCollection:(e,a,i,s,o)=>n.createCollection(e,a,i,s,o).then(e=>e(r,t)),getCollection:(e,a)=>n.getCollection(e,a).then(e=>e(r,t)),listCollectionFilters:(e,a,i,s)=>n.listCollectionFilters(e,a,i,s).then(e=>e(r,t)),listCollections:(e,a,i,s,o,c,f,d)=>n.listCollections(e,a,i,s,o,c,f,d).then(e=>e(r,t)),summarizeCollections:(e,a)=>n.summarizeCollections(e,a).then(e=>e(r,t)),updateCollection:(e,a,i,s,o)=>n.updateCollection(e,a,i,s,o).then(e=>e(r,t))}},J=class extends R{createCollection(e,t){return W(this.configuration).createCollection(e.iMXSignature,e.iMXTimestamp,e.createCollectionRequest,e.xImmutableApiKey,t).then(e=>e(this.axios,this.basePath))}getCollection(e,t){return W(this.configuration).getCollection(e.address,t).then(e=>e(this.axios,this.basePath))}listCollectionFilters(e,t){return W(this.configuration).listCollectionFilters(e.address,e.pageSize,e.nextPageToken,t).then(e=>e(this.axios,this.basePath))}listCollections(e={},t){return W(this.configuration).listCollections(e.pageSize,e.cursor,e.orderBy,e.direction,e.blacklist,e.whitelist,e.keyword,t).then(e=>e(this.axios,this.basePath))}summarizeCollections(e,t){return W(this.configuration).summarizeCollections(e.user,t).then(e=>e(this.axios,this.basePath))}updateCollection(e,t){return W(this.configuration).updateCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.updateCollectionRequest,t).then(e=>e(this.axios,this.basePath))}},Q=function(e){return{getDeposit:async(t,r={})=>{P("getDeposit","id",t);let n=new URL("/v1/deposits/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getSignableDeposit:async(t,r={})=>{P("getSignableDeposit","getSignableDepositRequest",t);let n=new URL("/v1/signable-deposit-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},listDeposits:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m={})=>{let y=new URL("/v1/deposits",B),v;e&&(v=e.baseOptions);let w={method:"GET",...v,...m},x={};void 0!==t&&(x.page_size=t),void 0!==r&&(x.cursor=r),void 0!==n&&(x.order_by=n),void 0!==a&&(x.direction=a),void 0!==i&&(x.user=i),void 0!==s&&(x.status=s),void 0!==o&&(x.min_timestamp=o),void 0!==c&&(x.max_timestamp=c),void 0!==f&&(x.token_type=f),void 0!==d&&(x.token_id=d),void 0!==l&&(x.asset_id=l),void 0!==u&&(x.token_address=u),void 0!==h&&(x.token_name=h),void 0!==p&&(x.min_quantity=p),void 0!==b&&(x.max_quantity=b),void 0!==g&&(x.metadata=g),O(y,x);let E=v&&v.headers?v.headers:{};return w.headers={...E,...m.headers},{url:N(y),options:w}}}},Z=function(e){let t=Q(e);return{getDeposit:async(r,n)=>U(await t.getDeposit(r,n),T.default,k,e),getSignableDeposit:async(r,n)=>U(await t.getSignableDeposit(r,n),T.default,k,e),listDeposits:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y)=>U(await t.listDeposits(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y),T.default,k,e)}},X=function(e,t,r){let n=Z(e);return{getDeposit:(e,a)=>n.getDeposit(e,a).then(e=>e(r,t)),getSignableDeposit:(e,a)=>n.getSignableDeposit(e,a).then(e=>e(r,t)),listDeposits:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v)=>n.listDeposits(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v).then(e=>e(r,t))}},Y=class extends R{getDeposit(e,t){return Z(this.configuration).getDeposit(e.id,t).then(e=>e(this.axios,this.basePath))}getSignableDeposit(e,t){return Z(this.configuration).getSignableDeposit(e.getSignableDepositRequest,t).then(e=>e(this.axios,this.basePath))}listDeposits(e={},t){return Z(this.configuration).listDeposits(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}},ee=function(e){return{encodeAsset:async(t,r,n={})=>{P("encodeAsset","assetType",t),P("encodeAsset","encodeAssetRequest",r);let a=new URL("/v1/encode/{assetType}".replace("{assetType}",encodeURIComponent(String(t))),B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}}}},et=function(e){let t=ee(e);return{encodeAsset:async(r,n,a)=>U(await t.encodeAsset(r,n,a),T.default,k,e)}},er=function(e,t,r){let n=et(e);return{encodeAsset:(e,a,i)=>n.encodeAsset(e,a,i).then(e=>e(r,t))}},en=class extends R{encodeAsset(e,t){return et(this.configuration).encodeAsset(e.assetType,e.encodeAssetRequest,t).then(e=>e(this.axios,this.basePath))}},ea=function(e){return{createExchange:async(t,r={})=>{P("createExchange","createExchangeAPIRequest",t);let n=new URL("/v3/exchanges",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},createExchangeTransfer:async(t,r,n,a,i,s={})=>{P("createExchangeTransfer","id",t),P("createExchangeTransfer","createTransferRequest",r);let o=new URL("/v2/exchanges/{id}/transfers".replace("{id}",encodeURIComponent(String(t))),B),c;e&&(c=e.baseOptions);let f={method:"POST",...c,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=a&&(d["x-imx-eth-signature"]=String(a)),null!=i&&(d.Authorization=String(i)),d["Content-Type"]="application/json",O(o,{});let l=c&&c.headers?c.headers:{};return f.headers={...d,...l,...s.headers},f.data=j(r,f,e),{url:N(o),options:f}},getExchange:async(t,r={})=>{P("getExchange","id",t);let n=new URL("/v3/exchanges/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getExchangeSignableTransfer:async(t,r,n={})=>{P("getExchangeSignableTransfer","id",t),P("getExchangeSignableTransfer","getSignableTransferRequest",r);let a=new URL("/v2/exchanges/{id}/signable-transfer-details".replace("{id}",encodeURIComponent(String(t))),B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}},getExchanges:async(t,r,n,a,i,s,o,c,f,d={})=>{let l=new URL("/v3/exchanges",B),u;e&&(u=e.baseOptions);let h={method:"GET",...u,...d},p={};void 0!==t&&(p.page_size=t),void 0!==r&&(p.cursor=r),void 0!==n&&(p.order_by=n),void 0!==a&&(p.direction=a),void 0!==i&&(p.id=i),void 0!==s&&(p.wallet_address=s),void 0!==o&&(p.status=o),void 0!==c&&(p.provider=c),void 0!==f&&(p.transfer_id=f),O(l,p);let b=u&&u.headers?u.headers:{};return h.headers={...b,...d.headers},{url:N(l),options:h}}}},ei=function(e){let t=ea(e);return{createExchange:async(r,n)=>U(await t.createExchange(r,n),T.default,k,e),createExchangeTransfer:async(r,n,a,i,s,o)=>U(await t.createExchangeTransfer(r,n,a,i,s,o),T.default,k,e),getExchange:async(r,n)=>U(await t.getExchange(r,n),T.default,k,e),getExchangeSignableTransfer:async(r,n,a)=>U(await t.getExchangeSignableTransfer(r,n,a),T.default,k,e),getExchanges:async(r,n,a,i,s,o,c,f,d,l)=>U(await t.getExchanges(r,n,a,i,s,o,c,f,d,l),T.default,k,e)}},es=function(e,t,r){let n=ei(e);return{createExchange:(e,a)=>n.createExchange(e,a).then(e=>e(r,t)),createExchangeTransfer:(e,a,i,s,o,c)=>n.createExchangeTransfer(e,a,i,s,o,c).then(e=>e(r,t)),getExchange:(e,a)=>n.getExchange(e,a).then(e=>e(r,t)),getExchangeSignableTransfer:(e,a,i)=>n.getExchangeSignableTransfer(e,a,i).then(e=>e(r,t)),getExchanges:(e,a,i,s,o,c,f,d,l,u)=>n.getExchanges(e,a,i,s,o,c,f,d,l,u).then(e=>e(r,t))}},eo=class extends R{createExchange(e,t){return ei(this.configuration).createExchange(e.createExchangeAPIRequest,t).then(e=>e(this.axios,this.basePath))}createExchangeTransfer(e,t){return ei(this.configuration).createExchangeTransfer(e.id,e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getExchange(e,t){return ei(this.configuration).getExchange(e.id,t).then(e=>e(this.axios,this.basePath))}getExchangeSignableTransfer(e,t){return ei(this.configuration).getExchangeSignableTransfer(e.id,e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getExchanges(e={},t){return ei(this.configuration).getExchanges(e.pageSize,e.cursor,e.orderBy,e.direction,e.id,e.walletAddress,e.status,e.provider,e.transferId,t).then(e=>e(this.axios,this.basePath))}},ec=function(e){return{addMetadataSchemaToCollection:async(t,r,n,a,i={})=>{P("addMetadataSchemaToCollection","address",t),P("addMetadataSchemaToCollection","iMXSignature",r),P("addMetadataSchemaToCollection","iMXTimestamp",n),P("addMetadataSchemaToCollection","addMetadataSchemaToCollectionRequest",a);let s=new URL("/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["IMX-Signature"]=String(r)),null!=n&&(f["IMX-Timestamp"]=String(n)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(a,c,e),{url:N(s),options:c}},getMetadataSchema:async(t,r={})=>{P("getMetadataSchema","address",t);let n=new URL("/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},updateMetadataSchemaByName:async(t,r,n,a,i,s={})=>{P("updateMetadataSchemaByName","address",t),P("updateMetadataSchemaByName","name",r),P("updateMetadataSchemaByName","iMXSignature",n),P("updateMetadataSchemaByName","iMXTimestamp",a),P("updateMetadataSchemaByName","metadataSchemaRequest",i);let o=new URL("/v1/collections/{address}/metadata-schema/{name}".replace("{address}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),B),c;e&&(c=e.baseOptions);let f={method:"PATCH",...c,...s},d={};null!=n&&(d["IMX-Signature"]=String(n)),null!=a&&(d["IMX-Timestamp"]=String(a)),d["Content-Type"]="application/json",O(o,{});let l=c&&c.headers?c.headers:{};return f.headers={...d,...l,...s.headers},f.data=j(i,f,e),{url:N(o),options:f}}}},ef=function(e){let t=ec(e);return{addMetadataSchemaToCollection:async(r,n,a,i,s)=>U(await t.addMetadataSchemaToCollection(r,n,a,i,s),T.default,k,e),getMetadataSchema:async(r,n)=>U(await t.getMetadataSchema(r,n),T.default,k,e),updateMetadataSchemaByName:async(r,n,a,i,s,o)=>U(await t.updateMetadataSchemaByName(r,n,a,i,s,o),T.default,k,e)}},ed=function(e,t,r){let n=ef(e);return{addMetadataSchemaToCollection:(e,a,i,s,o)=>n.addMetadataSchemaToCollection(e,a,i,s,o).then(e=>e(r,t)),getMetadataSchema:(e,a)=>n.getMetadataSchema(e,a).then(e=>e(r,t)),updateMetadataSchemaByName:(e,a,i,s,o,c)=>n.updateMetadataSchemaByName(e,a,i,s,o,c).then(e=>e(r,t))}},el=class extends R{addMetadataSchemaToCollection(e,t){return ef(this.configuration).addMetadataSchemaToCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.addMetadataSchemaToCollectionRequest,t).then(e=>e(this.axios,this.basePath))}getMetadataSchema(e,t){return ef(this.configuration).getMetadataSchema(e.address,t).then(e=>e(this.axios,this.basePath))}updateMetadataSchemaByName(e,t){return ef(this.configuration).updateMetadataSchemaByName(e.address,e.name,e.iMXSignature,e.iMXTimestamp,e.metadataSchemaRequest,t).then(e=>e(this.axios,this.basePath))}},eu=function(e){return{getAListOfMetadataRefreshes:async(t,r,n,a,i,s,o={})=>{P("getAListOfMetadataRefreshes","xImxEthSignature",t),P("getAListOfMetadataRefreshes","xImxEthTimestamp",r),P("getAListOfMetadataRefreshes","xImxEthAddress",n);let c=new URL("/v1/metadata-refreshes",B),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={},u={};void 0!==a&&(u.page_size=a),void 0!==i&&(u.cursor=i),void 0!==s&&(u.collection_address=s),null!=t&&(l["x-imx-eth-signature"]=String(t)),null!=r&&(l["x-imx-eth-timestamp"]=String(r)),null!=n&&(l["x-imx-eth-address"]=String(n)),O(c,u);let h=f&&f.headers?f.headers:{};return d.headers={...l,...h,...o.headers},{url:N(c),options:d}},getMetadataRefreshErrors:async(t,r,n,a,i,s,o={})=>{P("getMetadataRefreshErrors","refreshId",t),P("getMetadataRefreshErrors","xImxEthSignature",r),P("getMetadataRefreshErrors","xImxEthTimestamp",n),P("getMetadataRefreshErrors","xImxEthAddress",a);let c=new URL("/v1/metadata-refreshes/{refresh_id}/errors".replace("{refresh_id}",encodeURIComponent(String(t))),B),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={},u={};void 0!==i&&(u.page_size=i),void 0!==s&&(u.cursor=s),null!=r&&(l["x-imx-eth-signature"]=String(r)),null!=n&&(l["x-imx-eth-timestamp"]=String(n)),null!=a&&(l["x-imx-eth-address"]=String(a)),O(c,u);let h=f&&f.headers?f.headers:{};return d.headers={...l,...h,...o.headers},{url:N(c),options:d}},getMetadataRefreshResults:async(t,r,n,a,i={})=>{P("getMetadataRefreshResults","refreshId",t),P("getMetadataRefreshResults","xImxEthSignature",r),P("getMetadataRefreshResults","xImxEthTimestamp",n),P("getMetadataRefreshResults","xImxEthAddress",a);let s=new URL("/v1/metadata-refreshes/{refresh_id}".replace("{refresh_id}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};null!=r&&(f["x-imx-eth-signature"]=String(r)),null!=n&&(f["x-imx-eth-timestamp"]=String(n)),null!=a&&(f["x-imx-eth-address"]=String(a)),O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},{url:N(s),options:c}},requestAMetadataRefresh:async(t,r,n,a,i={})=>{P("requestAMetadataRefresh","xImxEthSignature",t),P("requestAMetadataRefresh","xImxEthTimestamp",r),P("requestAMetadataRefresh","xImxEthAddress",n),P("requestAMetadataRefresh","createMetadataRefreshRequest",a);let s=new URL("/v1/metadata-refreshes",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=t&&(f["x-imx-eth-signature"]=String(t)),null!=r&&(f["x-imx-eth-timestamp"]=String(r)),null!=n&&(f["x-imx-eth-address"]=String(n)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(a,c,e),{url:N(s),options:c}}}},eh=function(e){let t=eu(e);return{getAListOfMetadataRefreshes:async(r,n,a,i,s,o,c)=>U(await t.getAListOfMetadataRefreshes(r,n,a,i,s,o,c),T.default,k,e),getMetadataRefreshErrors:async(r,n,a,i,s,o,c)=>U(await t.getMetadataRefreshErrors(r,n,a,i,s,o,c),T.default,k,e),getMetadataRefreshResults:async(r,n,a,i,s)=>U(await t.getMetadataRefreshResults(r,n,a,i,s),T.default,k,e),requestAMetadataRefresh:async(r,n,a,i,s)=>U(await t.requestAMetadataRefresh(r,n,a,i,s),T.default,k,e)}},ep=function(e,t,r){let n=eh(e);return{getAListOfMetadataRefreshes:(e,a,i,s,o,c,f)=>n.getAListOfMetadataRefreshes(e,a,i,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshErrors:(e,a,i,s,o,c,f)=>n.getMetadataRefreshErrors(e,a,i,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshResults:(e,a,i,s,o)=>n.getMetadataRefreshResults(e,a,i,s,o).then(e=>e(r,t)),requestAMetadataRefresh:(e,a,i,s,o)=>n.requestAMetadataRefresh(e,a,i,s,o).then(e=>e(r,t))}},eb=class extends R{getAListOfMetadataRefreshes(e,t){return eh(this.configuration).getAListOfMetadataRefreshes(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,e.collectionAddress,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshErrors(e,t){return eh(this.configuration).getMetadataRefreshErrors(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshResults(e,t){return eh(this.configuration).getMetadataRefreshResults(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,t).then(e=>e(this.axios,this.basePath))}requestAMetadataRefresh(e,t){return eh(this.configuration).requestAMetadataRefresh(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.createMetadataRefreshRequest,t).then(e=>e(this.axios,this.basePath))}},eg=function(e){return{getMint:async(t,r={})=>{P("getMint","id",t);let n=new URL("/v1/mints/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getMintableTokenDetailsByClientTokenId:async(t,r,n={})=>{P("getMintableTokenDetailsByClientTokenId","tokenAddress",t),P("getMintableTokenDetailsByClientTokenId","tokenId",r);let a=new URL("/v1/mintable-token/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),B),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:N(a),options:s}},listMints:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g={})=>{let m=new URL("/v1/mints",B),y;e&&(y=e.baseOptions);let v={method:"GET",...y,...g},w={};void 0!==t&&(w.page_size=t),void 0!==r&&(w.cursor=r),void 0!==n&&(w.order_by=n),void 0!==a&&(w.direction=a),void 0!==i&&(w.user=i),void 0!==s&&(w.status=s),void 0!==o&&(w.min_timestamp=o),void 0!==c&&(w.max_timestamp=c),void 0!==f&&(w.token_type=f),void 0!==d&&(w.token_id=d),void 0!==l&&(w.token_name=l),void 0!==u&&(w.token_address=u),void 0!==h&&(w.min_quantity=h),void 0!==p&&(w.max_quantity=p),void 0!==b&&(w.metadata=b),O(m,w);let x=y&&y.headers?y.headers:{};return v.headers={...x,...g.headers},{url:N(m),options:v}},mintTokens:async(t,r={})=>{P("mintTokens","mintTokensRequestV2",t);let n=new URL("/v2/mints",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}}}},em=function(e){let t=eg(e);return{getMint:async(r,n)=>U(await t.getMint(r,n),T.default,k,e),getMintableTokenDetailsByClientTokenId:async(r,n,a)=>U(await t.getMintableTokenDetailsByClientTokenId(r,n,a),T.default,k,e),listMints:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m)=>U(await t.listMints(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m),T.default,k,e),mintTokens:async(r,n)=>U(await t.mintTokens(r,n),T.default,k,e)}},ey=function(e,t,r){let n=em(e);return{getMint:(e,a)=>n.getMint(e,a).then(e=>e(r,t)),getMintableTokenDetailsByClientTokenId:(e,a,i)=>n.getMintableTokenDetailsByClientTokenId(e,a,i).then(e=>e(r,t)),listMints:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y)=>n.listMints(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y).then(e=>e(r,t)),mintTokens:(e,a)=>n.mintTokens(e,a).then(e=>e(r,t))}},ev=class extends R{getMint(e,t){return em(this.configuration).getMint(e.id,t).then(e=>e(this.axios,this.basePath))}getMintableTokenDetailsByClientTokenId(e,t){return em(this.configuration).getMintableTokenDetailsByClientTokenId(e.tokenAddress,e.tokenId,t).then(e=>e(this.axios,this.basePath))}listMints(e={},t){return em(this.configuration).listMints(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.tokenName,e.tokenAddress,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}mintTokens(e,t){return em(this.configuration).mintTokens(e.mintTokensRequestV2,t).then(e=>e(this.axios,this.basePath))}},ew=function(e){return{createNftPrimary:async(t,r={})=>{P("createNftPrimary","createAPIRequest",t);let n=new URL("/v2/nft/primary",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getCurrenciesNFTCheckoutPrimary:async(t,r,n={})=>{let a=new URL("/v2/nft/primary/currencies",B),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.provider=t),void 0!==r&&(o.include_limits=r),O(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:N(a),options:s}},getNftPrimaryTransaction:async(t,r={})=>{P("getNftPrimaryTransaction","transactionId",t);let n=new URL("/v2/nft/primary/{transaction_id}".replace("{transaction_id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getNftPrimaryTransactions:async(t,r,n,a,i,s,o,c,f,d,l,u={})=>{let h=new URL("/v2/nft/primary",B),p;e&&(p=e.baseOptions);let b={method:"GET",...p,...u},g={};void 0!==t&&(g.page_size=t),void 0!==r&&(g.cursor=r),void 0!==n&&(g.order_by=n),void 0!==a&&(g.direction=a),void 0!==i&&(g.transaction_id=i),void 0!==s&&(g.contract_address=s),void 0!==o&&(g.seller_wallet_address=o),void 0!==c&&(g.user_wallet_address=c),void 0!==f&&(g.status=f),void 0!==d&&(g.provider=d),void 0!==l&&(g.mint_id=l),O(h,g);let m=p&&p.headers?p.headers:{};return b.headers={...m,...u.headers},{url:N(h),options:b}},registerNftPrimarySalesContract:async(t,r={})=>{P("registerNftPrimarySalesContract","createAPIRequest",t);let n=new URL("/v2/nft/primary/register",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}}}},ex=function(e){let t=ew(e);return{createNftPrimary:async(r,n)=>U(await t.createNftPrimary(r,n),T.default,k,e),getCurrenciesNFTCheckoutPrimary:async(r,n,a)=>U(await t.getCurrenciesNFTCheckoutPrimary(r,n,a),T.default,k,e),getNftPrimaryTransaction:async(r,n)=>U(await t.getNftPrimaryTransaction(r,n),T.default,k,e),getNftPrimaryTransactions:async(r,n,a,i,s,o,c,f,d,l,u,h)=>U(await t.getNftPrimaryTransactions(r,n,a,i,s,o,c,f,d,l,u,h),T.default,k,e),registerNftPrimarySalesContract:async(r,n)=>U(await t.registerNftPrimarySalesContract(r,n),T.default,k,e)}},eE=function(e,t,r){let n=ex(e);return{createNftPrimary:(e,a)=>n.createNftPrimary(e,a).then(e=>e(r,t)),getCurrenciesNFTCheckoutPrimary:(e,a,i)=>n.getCurrenciesNFTCheckoutPrimary(e,a,i).then(e=>e(r,t)),getNftPrimaryTransaction:(e,a)=>n.getNftPrimaryTransaction(e,a).then(e=>e(r,t)),getNftPrimaryTransactions:(e,a,i,s,o,c,f,d,l,u,h,p)=>n.getNftPrimaryTransactions(e,a,i,s,o,c,f,d,l,u,h,p).then(e=>e(r,t)),registerNftPrimarySalesContract:(e,a)=>n.registerNftPrimarySalesContract(e,a).then(e=>e(r,t))}},eA=class extends R{createNftPrimary(e,t){return ex(this.configuration).createNftPrimary(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}getCurrenciesNFTCheckoutPrimary(e={},t){return ex(this.configuration).getCurrenciesNFTCheckoutPrimary(e.provider,e.includeLimits,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransaction(e,t){return ex(this.configuration).getNftPrimaryTransaction(e.transactionId,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransactions(e={},t){return ex(this.configuration).getNftPrimaryTransactions(e.pageSize,e.cursor,e.orderBy,e.direction,e.transactionId,e.contractAddress,e.sellerWalletAddress,e.userWalletAddress,e.status,e.provider,e.mintId,t).then(e=>e(this.axios,this.basePath))}registerNftPrimarySalesContract(e,t){return ex(this.configuration).registerNftPrimarySalesContract(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}},e_=function(e){return{cancelOrderV3:async(t,r,n,a,i,s={})=>{P("cancelOrderV3","id",t),P("cancelOrderV3","cancelOrderRequest",r);let o=new URL("/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),B),c;e&&(c=e.baseOptions);let f={method:"DELETE",...c,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=a&&(d["x-imx-eth-signature"]=String(a)),null!=i&&(d.Authorization=String(i)),d["Content-Type"]="application/json",O(o,{});let l=c&&c.headers?c.headers:{};return f.headers={...d,...l,...s.headers},f.data=j(r,f,e),{url:N(o),options:f}},createOrderV3:async(t,r,n,a,i={})=>{P("createOrderV3","createOrderRequest",t);let s=new URL("/v3/orders",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},getOrderV3:async(t,r,n,a,i={})=>{P("getOrderV3","id",t);let s=new URL("/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.include_fees=r),void 0!==n&&(f.auxiliary_fee_percentages=n),void 0!==a&&(f.auxiliary_fee_recipients=a),O(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:N(s),options:c}},getSignableCancelOrderV3:async(t,r={})=>{P("getSignableCancelOrderV3","getSignableCancelOrderRequest",t);let n=new URL("/v3/signable-cancel-order-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableOrder:async(t,r={})=>{P("getSignableOrder","getSignableOrderRequestV3",t);let n=new URL("/v3/signable-order-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},listOrdersV3:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,T,I,S,C,k,R={})=>{let M=new URL("/v3/orders",B),P;e&&(P=e.baseOptions);let j={method:"GET",...P,...R},U={};void 0!==t&&(U.page_size=t),void 0!==r&&(U.cursor=r),void 0!==n&&(U.order_by=n),void 0!==a&&(U.direction=a),void 0!==i&&(U.user=i),void 0!==s&&(U.status=s),void 0!==o&&(U.min_timestamp=o),void 0!==c&&(U.max_timestamp=c),void 0!==f&&(U.updated_min_timestamp=f),void 0!==d&&(U.updated_max_timestamp=d),void 0!==l&&(U.buy_token_type=l),void 0!==u&&(U.buy_token_id=u),void 0!==h&&(U.buy_asset_id=h),void 0!==p&&(U.buy_token_address=p),void 0!==b&&(U.buy_token_name=b),void 0!==g&&(U.buy_min_quantity=g),void 0!==m&&(U.buy_max_quantity=m),void 0!==y&&(U.buy_metadata=y),void 0!==v&&(U.sell_token_type=v),void 0!==w&&(U.sell_token_id=w),void 0!==x&&(U.sell_asset_id=x),void 0!==E&&(U.sell_token_address=E),void 0!==A&&(U.sell_token_name=A),void 0!==_&&(U.sell_min_quantity=_),void 0!==T&&(U.sell_max_quantity=T),void 0!==I&&(U.sell_metadata=I),void 0!==S&&(U.auxiliary_fee_percentages=S),void 0!==C&&(U.auxiliary_fee_recipients=C),void 0!==k&&(U.include_fees=k),O(M,U);let L=P&&P.headers?P.headers:{};return j.headers={...L,...R.headers},{url:N(M),options:j}}}},eT=function(e){let t=e_(e);return{cancelOrderV3:async(r,n,a,i,s,o)=>U(await t.cancelOrderV3(r,n,a,i,s,o),T.default,k,e),createOrderV3:async(r,n,a,i,s)=>U(await t.createOrderV3(r,n,a,i,s),T.default,k,e),getOrderV3:async(r,n,a,i,s)=>U(await t.getOrderV3(r,n,a,i,s),T.default,k,e),getSignableCancelOrderV3:async(r,n)=>U(await t.getSignableCancelOrderV3(r,n),T.default,k,e),getSignableOrder:async(r,n)=>U(await t.getSignableOrder(r,n),T.default,k,e),listOrdersV3:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,I,S,C,R,M,B,P)=>U(await t.listOrdersV3(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,I,S,C,R,M,B,P),T.default,k,e)}},eI=function(e,t,r){let n=eT(e);return{cancelOrderV3:(e,a,i,s,o,c)=>n.cancelOrderV3(e,a,i,s,o,c).then(e=>e(r,t)),createOrderV3:(e,a,i,s,o)=>n.createOrderV3(e,a,i,s,o).then(e=>e(r,t)),getOrderV3:(e,a,i,s,o)=>n.getOrderV3(e,a,i,s,o).then(e=>e(r,t)),getSignableCancelOrderV3:(e,a)=>n.getSignableCancelOrderV3(e,a).then(e=>e(r,t)),getSignableOrder:(e,a)=>n.getSignableOrder(e,a).then(e=>e(r,t)),listOrdersV3:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,T,I,S,C,k,R,M,B)=>n.listOrdersV3(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,T,I,S,C,k,R,M,B).then(e=>e(r,t))}},eS=class extends R{cancelOrderV3(e,t){return eT(this.configuration).cancelOrderV3(e.id,e.cancelOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createOrderV3(e,t){return eT(this.configuration).createOrderV3(e.createOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getOrderV3(e,t){return eT(this.configuration).getOrderV3(e.id,e.includeFees,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}getSignableCancelOrderV3(e,t){return eT(this.configuration).getSignableCancelOrderV3(e.getSignableCancelOrderRequest,t).then(e=>e(this.axios,this.basePath))}getSignableOrder(e,t){return eT(this.configuration).getSignableOrder(e.getSignableOrderRequestV3,t).then(e=>e(this.axios,this.basePath))}listOrdersV3(e={},t){return eT(this.configuration).listOrdersV3(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.buyTokenType,e.buyTokenId,e.buyAssetId,e.buyTokenAddress,e.buyTokenName,e.buyMinQuantity,e.buyMaxQuantity,e.buyMetadata,e.sellTokenType,e.sellTokenId,e.sellAssetId,e.sellTokenAddress,e.sellTokenName,e.sellMinQuantity,e.sellMaxQuantity,e.sellMetadata,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,e.includeFees,t).then(e=>e(this.axios,this.basePath))}},eC=function(e){return{getProject:async(t,r,n,a={})=>{P("getProject","id",t),P("getProject","iMXSignature",r),P("getProject","iMXTimestamp",n);let i=new URL("/v1/projects/{id}".replace("{id}",encodeURIComponent(String(t))),B),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};null!=r&&(c["IMX-Signature"]=String(r)),null!=n&&(c["IMX-Timestamp"]=String(n)),O(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},{url:N(i),options:o}}}},ek=function(e){let t=eC(e);return{getProject:async(r,n,a,i)=>U(await t.getProject(r,n,a,i),T.default,k,e)}},eR=function(e,t,r){let n=ek(e);return{getProject:(e,a,i,s)=>n.getProject(e,a,i,s).then(e=>e(r,t))}},eM=class extends R{getProject(e,t){return ek(this.configuration).getProject(e.id,e.iMXSignature,e.iMXTimestamp,t).then(e=>e(this.axios,this.basePath))}},eB=function(e){return{getToken:async(t,r={})=>{P("getToken","address",t);let n=new URL("/v1/tokens/{address}".replace("{address}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listTokens:async(t,r,n,a,i,s,o={})=>{let c=new URL("/v1/tokens",B),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};void 0!==t&&(l.page_size=t),void 0!==r&&(l.cursor=r),void 0!==n&&(l.order_by=n),void 0!==a&&(l.direction=a),void 0!==i&&(l.address=i),void 0!==s&&(l.symbols=s),O(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:N(c),options:d}}}},eP=function(e){let t=eB(e);return{getToken:async(r,n)=>U(await t.getToken(r,n),T.default,k,e),listTokens:async(r,n,a,i,s,o,c)=>U(await t.listTokens(r,n,a,i,s,o,c),T.default,k,e)}},eO=function(e,t,r){let n=eP(e);return{getToken:(e,a)=>n.getToken(e,a).then(e=>e(r,t)),listTokens:(e,a,i,s,o,c,f)=>n.listTokens(e,a,i,s,o,c,f).then(e=>e(r,t))}},ej=class extends R{getToken(e,t){return eP(this.configuration).getToken(e.address,t).then(e=>e(this.axios,this.basePath))}listTokens(e={},t){return eP(this.configuration).listTokens(e.pageSize,e.cursor,e.orderBy,e.direction,e.address,e.symbols,t).then(e=>e(this.axios,this.basePath))}},eN=function(e){return{createTradeV3:async(t,r,n,a,i={})=>{P("createTradeV3","createTradeRequest",t);let s=new URL("/v3/trades",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},getSignableTrade:async(t,r={})=>{P("getSignableTrade","getSignableTradeRequest",t);let n=new URL("/v3/signable-trade-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getTradeV3:async(t,r={})=>{P("getTradeV3","id",t);let n=new URL("/v3/trades/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listTradesV3:async(t,r,n,a,i,s,o,c,f,d,l,u={})=>{let h=new URL("/v3/trades",B),p;e&&(p=e.baseOptions);let b={method:"GET",...p,...u},g={};void 0!==t&&(g.party_a_token_type=t),void 0!==r&&(g.party_a_token_address=r),void 0!==n&&(g.party_b_token_type=n),void 0!==a&&(g.party_b_token_address=a),void 0!==i&&(g.party_b_token_id=i),void 0!==s&&(g.page_size=s),void 0!==o&&(g.cursor=o),void 0!==c&&(g.order_by=c),void 0!==f&&(g.direction=f),void 0!==d&&(g.min_timestamp=d),void 0!==l&&(g.max_timestamp=l),O(h,g);let m=p&&p.headers?p.headers:{};return b.headers={...m,...u.headers},{url:N(h),options:b}}}},eU=function(e){let t=eN(e);return{createTradeV3:async(r,n,a,i,s)=>U(await t.createTradeV3(r,n,a,i,s),T.default,k,e),getSignableTrade:async(r,n)=>U(await t.getSignableTrade(r,n),T.default,k,e),getTradeV3:async(r,n)=>U(await t.getTradeV3(r,n),T.default,k,e),listTradesV3:async(r,n,a,i,s,o,c,f,d,l,u,h)=>U(await t.listTradesV3(r,n,a,i,s,o,c,f,d,l,u,h),T.default,k,e)}},eL=function(e,t,r){let n=eU(e);return{createTradeV3:(e,a,i,s,o)=>n.createTradeV3(e,a,i,s,o).then(e=>e(r,t)),getSignableTrade:(e,a)=>n.getSignableTrade(e,a).then(e=>e(r,t)),getTradeV3:(e,a)=>n.getTradeV3(e,a).then(e=>e(r,t)),listTradesV3:(e,a,i,s,o,c,f,d,l,u,h,p)=>n.listTradesV3(e,a,i,s,o,c,f,d,l,u,h,p).then(e=>e(r,t))}},eD=class extends R{createTradeV3(e,t){return eU(this.configuration).createTradeV3(e.createTradeRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTrade(e,t){return eU(this.configuration).getSignableTrade(e.getSignableTradeRequest,t).then(e=>e(this.axios,this.basePath))}getTradeV3(e,t){return eU(this.configuration).getTradeV3(e.id,t).then(e=>e(this.axios,this.basePath))}listTradesV3(e={},t){return eU(this.configuration).listTradesV3(e.partyATokenType,e.partyATokenAddress,e.partyBTokenType,e.partyBTokenAddress,e.partyBTokenId,e.pageSize,e.cursor,e.orderBy,e.direction,e.minTimestamp,e.maxTimestamp,t).then(e=>e(this.axios,this.basePath))}},eF=function(e){return{createTransfer:async(t,r,n,a,i={})=>{P("createTransfer","createTransferRequestV2",t);let s=new URL("/v2/transfers",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},createTransferV1:async(t,r,n,a,i={})=>{P("createTransferV1","createTransferRequest",t);let s=new URL("/v1/transfers",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},getSignableTransfer:async(t,r={})=>{P("getSignableTransfer","getSignableTransferRequestV2",t);let n=new URL("/v2/signable-transfer-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableTransferV1:async(t,r={})=>{P("getSignableTransferV1","getSignableTransferRequest",t);let n=new URL("/v1/signable-transfer-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getTransfer:async(t,r={})=>{P("getTransfer","id",t);let n=new URL("/v1/transfers/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listTransfers:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y={})=>{let v=new URL("/v1/transfers",B),w;e&&(w=e.baseOptions);let x={method:"GET",...w,...y},E={};void 0!==t&&(E.page_size=t),void 0!==r&&(E.cursor=r),void 0!==n&&(E.order_by=n),void 0!==a&&(E.direction=a),void 0!==i&&(E.user=i),void 0!==s&&(E.receiver=s),void 0!==o&&(E.status=o),void 0!==c&&(E.min_timestamp=c),void 0!==f&&(E.max_timestamp=f),void 0!==d&&(E.token_type=d),void 0!==l&&(E.token_id=l),void 0!==u&&(E.asset_id=u),void 0!==h&&(E.token_address=h),void 0!==p&&(E.token_name=p),void 0!==b&&(E.min_quantity=b),void 0!==g&&(E.max_quantity=g),void 0!==m&&(E.metadata=m),O(v,E);let A=w&&w.headers?w.headers:{};return x.headers={...A,...y.headers},{url:N(v),options:x}}}},eH=function(e){let t=eF(e);return{createTransfer:async(r,n,a,i,s)=>U(await t.createTransfer(r,n,a,i,s),T.default,k,e),createTransferV1:async(r,n,a,i,s)=>U(await t.createTransferV1(r,n,a,i,s),T.default,k,e),getSignableTransfer:async(r,n)=>U(await t.getSignableTransfer(r,n),T.default,k,e),getSignableTransferV1:async(r,n)=>U(await t.getSignableTransferV1(r,n),T.default,k,e),getTransfer:async(r,n)=>U(await t.getTransfer(r,n),T.default,k,e),listTransfers:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v)=>U(await t.listTransfers(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v),T.default,k,e)}},eV=function(e,t,r){let n=eH(e);return{createTransfer:(e,a,i,s,o)=>n.createTransfer(e,a,i,s,o).then(e=>e(r,t)),createTransferV1:(e,a,i,s,o)=>n.createTransferV1(e,a,i,s,o).then(e=>e(r,t)),getSignableTransfer:(e,a)=>n.getSignableTransfer(e,a).then(e=>e(r,t)),getSignableTransferV1:(e,a)=>n.getSignableTransferV1(e,a).then(e=>e(r,t)),getTransfer:(e,a)=>n.getTransfer(e,a).then(e=>e(r,t)),listTransfers:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w)=>n.listTransfers(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w).then(e=>e(r,t))}},eq=class extends R{createTransfer(e,t){return eH(this.configuration).createTransfer(e.createTransferRequestV2,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createTransferV1(e,t){return eH(this.configuration).createTransferV1(e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTransfer(e,t){return eH(this.configuration).getSignableTransfer(e.getSignableTransferRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableTransferV1(e,t){return eH(this.configuration).getSignableTransferV1(e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getTransfer(e,t){return eH(this.configuration).getTransfer(e.id,t).then(e=>e(this.axios,this.basePath))}listTransfers(e={},t){return eH(this.configuration).listTransfers(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.receiver,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}},ez=function(e){return{getSignableRegistration:async(t,r={})=>{P("getSignableRegistration","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableRegistrationOffchain:async(t,r={})=>{P("getSignableRegistrationOffchain","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration-offchain",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getUsers:async(t,r={})=>{P("getUsers","user",t);let n=new URL("/v1/users/{user}".replace("{user}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},registerPassportUser:async(t,r,n={})=>{P("registerPassportUser","authorization",t),P("registerPassportUser","registerPassportUserRequest",r);let a=new URL("/v1/passport/users",B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}},registerPassportUserV2:async(t,r,n={})=>{P("registerPassportUserV2","authorization",t),P("registerPassportUserV2","registerPassportUserRequest",r);let a=new URL("/v2/passport/users",B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}},registerUser:async(t,r={})=>{P("registerUser","registerUserRequest",t);let n=new URL("/v1/users",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}}}},eG=function(e){let t=ez(e);return{getSignableRegistration:async(r,n)=>U(await t.getSignableRegistration(r,n),T.default,k,e),getSignableRegistrationOffchain:async(r,n)=>U(await t.getSignableRegistrationOffchain(r,n),T.default,k,e),getUsers:async(r,n)=>U(await t.getUsers(r,n),T.default,k,e),registerPassportUser:async(r,n,a)=>U(await t.registerPassportUser(r,n,a),T.default,k,e),registerPassportUserV2:async(r,n,a)=>U(await t.registerPassportUserV2(r,n,a),T.default,k,e),registerUser:async(r,n)=>U(await t.registerUser(r,n),T.default,k,e)}},eK=function(e,t,r){let n=eG(e);return{getSignableRegistration:(e,a)=>n.getSignableRegistration(e,a).then(e=>e(r,t)),getSignableRegistrationOffchain:(e,a)=>n.getSignableRegistrationOffchain(e,a).then(e=>e(r,t)),getUsers:(e,a)=>n.getUsers(e,a).then(e=>e(r,t)),registerPassportUser:(e,a,i)=>n.registerPassportUser(e,a,i).then(e=>e(r,t)),registerPassportUserV2:(e,a,i)=>n.registerPassportUserV2(e,a,i).then(e=>e(r,t)),registerUser:(e,a)=>n.registerUser(e,a).then(e=>e(r,t))}},eW=class extends R{getSignableRegistration(e,t){return eG(this.configuration).getSignableRegistration(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getSignableRegistrationOffchain(e,t){return eG(this.configuration).getSignableRegistrationOffchain(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getUsers(e,t){return eG(this.configuration).getUsers(e.user,t).then(e=>e(this.axios,this.basePath))}registerPassportUser(e,t){return eG(this.configuration).registerPassportUser(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerPassportUserV2(e,t){return eG(this.configuration).registerPassportUserV2(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerUser(e,t){return eG(this.configuration).registerUser(e.registerUserRequest,t).then(e=>e(this.axios,this.basePath))}},e$=function(e){return{createWithdrawal:async(t,r,n,a={})=>{P("createWithdrawal","xImxEthAddress",t),P("createWithdrawal","xImxEthSignature",r),P("createWithdrawal","createWithdrawalRequest",n);let i=new URL("/v1/withdrawals",B),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",O(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=j(n,o,e),{url:N(i),options:o}},createWithdrawalV2:async(t,r,n,a={})=>{P("createWithdrawalV2","xImxEthAddress",t),P("createWithdrawalV2","xImxEthSignature",r),P("createWithdrawalV2","createWithdrawalRequestV2",n);let i=new URL("/v2/withdrawals",B),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",O(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=j(n,o,e),{url:N(i),options:o}},getSignableWithdrawal:async(t,r={})=>{P("getSignableWithdrawal","getSignableWithdrawalRequest",t);let n=new URL("/v1/signable-withdrawal-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableWithdrawalV2:async(t,r={})=>{P("getSignableWithdrawalV2","getSignableWithdrawalRequest",t);let n=new URL("/v2/signable-withdrawal-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getWithdrawal:async(t,r={})=>{P("getWithdrawal","id",t);let n=new URL("/v1/withdrawals/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listWithdrawals:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v={})=>{let w=new URL("/v1/withdrawals",B),x;e&&(x=e.baseOptions);let E={method:"GET",...x,...v},A={};void 0!==t&&(A.withdrawn_to_wallet=t),void 0!==r&&(A.rollup_status=r),void 0!==n&&(A.page_size=n),void 0!==a&&(A.cursor=a),void 0!==i&&(A.order_by=i),void 0!==s&&(A.direction=s),void 0!==o&&(A.user=o),void 0!==c&&(A.status=c),void 0!==f&&(A.min_timestamp=f),void 0!==d&&(A.max_timestamp=d),void 0!==l&&(A.token_type=l),void 0!==u&&(A.token_id=u),void 0!==h&&(A.asset_id=h),void 0!==p&&(A.token_address=p),void 0!==b&&(A.token_name=b),void 0!==g&&(A.min_quantity=g),void 0!==m&&(A.max_quantity=m),void 0!==y&&(A.metadata=y),O(w,A);let _=x&&x.headers?x.headers:{};return E.headers={..._,...v.headers},{url:N(w),options:E}}}},eJ=function(e){let t=e$(e);return{createWithdrawal:async(r,n,a,i)=>U(await t.createWithdrawal(r,n,a,i),T.default,k,e),createWithdrawalV2:async(r,n,a,i)=>U(await t.createWithdrawalV2(r,n,a,i),T.default,k,e),getSignableWithdrawal:async(r,n)=>U(await t.getSignableWithdrawal(r,n),T.default,k,e),getSignableWithdrawalV2:async(r,n)=>U(await t.getSignableWithdrawalV2(r,n),T.default,k,e),getWithdrawal:async(r,n)=>U(await t.getWithdrawal(r,n),T.default,k,e),listWithdrawals:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w)=>U(await t.listWithdrawals(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w),T.default,k,e)}},eQ=function(e,t,r){let n=eJ(e);return{createWithdrawal:(e,a,i,s)=>n.createWithdrawal(e,a,i,s).then(e=>e(r,t)),createWithdrawalV2:(e,a,i,s)=>n.createWithdrawalV2(e,a,i,s).then(e=>e(r,t)),getSignableWithdrawal:(e,a)=>n.getSignableWithdrawal(e,a).then(e=>e(r,t)),getSignableWithdrawalV2:(e,a)=>n.getSignableWithdrawalV2(e,a).then(e=>e(r,t)),getWithdrawal:(e,a)=>n.getWithdrawal(e,a).then(e=>e(r,t)),listWithdrawals:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x)=>n.listWithdrawals(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x).then(e=>e(r,t))}},eZ=class extends R{createWithdrawal(e,t){return eJ(this.configuration).createWithdrawal(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}createWithdrawalV2(e,t){return eJ(this.configuration).createWithdrawalV2(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawal(e,t){return eJ(this.configuration).getSignableWithdrawal(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawalV2(e,t){return eJ(this.configuration).getSignableWithdrawalV2(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getWithdrawal(e,t){return eJ(this.configuration).getWithdrawal(e.id,t).then(e=>e(this.axios,this.basePath))}listWithdrawals(e={},t){return eJ(this.configuration).listWithdrawals(e.withdrawnToWallet,e.rollupStatus,e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}},eX=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}},eY={Moonpay:"moonpay",Layerswap:"layerswap"},e0={Onramp:"onramp",Offramp:"offramp"},e1={Starkex:"starkex",Zkevm:"zkevm"},e6={Eth:"ETH",Erc20:"ERC20",Erc721:"ERC721"},e2={Eth:"ETH",Erc20:"ERC20"},e5={Queued:"queued",InProgress:"in_progress",Completed:"completed"},e8={Queued:"queued",InProgress:"in_progress",Completed:"completed"},e3={Enum:"enum",Text:"text",Boolean:"boolean",Continuous:"continuous",Discrete:"discrete"},e4={};S(e4,{APIError400AllOfCodeEnum:()=>rh,APIError401AllOfCodeEnum:()=>rp,APIError403AllOfCodeEnum:()=>rb,APIError404AllOfCodeEnum:()=>rg,APIError409AllOfCodeEnum:()=>rm,APIError429AllOfCodeEnum:()=>ry,APIError500AllOfCodeEnum:()=>rv,APIError501AllOfCodeEnum:()=>rw,ActiveOrderStatusNameEnum:()=>rx,ActivitiesApi:()=>tu,ActivitiesApiAxiosParamCreator:()=>tf,ActivitiesApiFactory:()=>tl,ActivitiesApiFp:()=>td,ActivityType:()=>rE,AssetVerificationStatus:()=>rA,CancelledOrderStatusCancellationTypeEnum:()=>rT,CancelledOrderStatusNameEnum:()=>r_,ChainsApi:()=>tg,ChainsApiAxiosParamCreator:()=>th,ChainsApiFactory:()=>tb,ChainsApiFp:()=>tp,CollectionContractType:()=>rI,CollectionsApi:()=>tw,CollectionsApiAxiosParamCreator:()=>tm,CollectionsApiFactory:()=>tv,CollectionsApiFp:()=>ty,Configuration:()=>ru,CraftingApi:()=>t_,CraftingApiAxiosParamCreator:()=>tx,CraftingApiFactory:()=>tA,CraftingApiFp:()=>tE,ERC1155CollectionItemTypeEnum:()=>rS,ERC1155ItemTypeEnum:()=>rC,ERC20ApproveMetadataTransactionTypeEnum:()=>rk,ERC20ItemTypeEnum:()=>rR,ERC20TransferFromMetadataTransactionTypeEnum:()=>rM,ERC20TransferMetadataTransactionTypeEnum:()=>rB,ERC721ApproveMetadataTransactionTypeEnum:()=>rP,ERC721CollectionItemTypeEnum:()=>rO,ERC721ItemTypeEnum:()=>rj,ERC721SafeTransferFromBatchMetadataTransactionTypeEnum:()=>rN,ERC721TransferFromMetadataTransactionTypeEnum:()=>rU,ExpiredOrderStatusNameEnum:()=>rL,FailedOrderCancellationReasonCodeEnum:()=>rD,FeeTypeEnum:()=>rF,FilledOrderStatusNameEnum:()=>rH,GetTransactionByIDChainTypeEnum:()=>tk,GuardianApi:()=>tC,GuardianApiAxiosParamCreator:()=>tT,GuardianApiFactory:()=>tS,GuardianApiFp:()=>tI,ImmutableVerificationStatusEnum:()=>rV,InactiveOrderStatusNameEnum:()=>rq,ListBidsSortByEnum:()=>tZ,ListBidsSortDirectionEnum:()=>tX,ListCollectionBidsSortByEnum:()=>tY,ListCollectionBidsSortDirectionEnum:()=>t0,ListListingsBuyItemTypeEnum:()=>t1,ListListingsSortByEnum:()=>t6,ListListingsSortDirectionEnum:()=>t2,ListTradesSortByEnum:()=>t5,ListTradesSortDirectionEnum:()=>t8,MarketPriceERC20TokenTypeEnum:()=>rz,MarketPriceFeesTypeEnum:()=>rG,MarketPriceNativeTokenTypeEnum:()=>rK,MarketplaceContractType:()=>rW,MessageEvaluationResponseConfirmationMethodEnum:()=>r$,MetadataApi:()=>tP,MetadataApiAxiosParamCreator:()=>tR,MetadataApiFactory:()=>tB,MetadataApiFp:()=>tM,MetadataSearchApi:()=>tU,MetadataSearchApiAxiosParamCreator:()=>tO,MetadataSearchApiFactory:()=>tN,MetadataSearchApiFp:()=>tj,MintRequestStatus:()=>rJ,NFTContractType:()=>rQ,NFTMetadataAttributeDisplayTypeEnum:()=>rZ,NFTSetApprovalForAllMetadataTransactionTypeEnum:()=>rX,NativeItemTypeEnum:()=>rY,NftOwnersApi:()=>tV,NftOwnersApiAxiosParamCreator:()=>tD,NftOwnersApiFactory:()=>tH,NftOwnersApiFp:()=>tF,NftsApi:()=>tK,NftsApiAxiosParamCreator:()=>tq,NftsApiFactory:()=>tG,NftsApiFp:()=>tz,OperatorAllowlistStatus:()=>r0,OrderStatusName:()=>r6,OrderTypeEnum:()=>r1,OrdersApi:()=>tQ,OrdersApiAxiosParamCreator:()=>tW,OrdersApiFactory:()=>tJ,OrdersApiFp:()=>t$,OrganisationTier:()=>r2,PassportApi:()=>t7,PassportApiAxiosParamCreator:()=>t3,PassportApiFactory:()=>t9,PassportApiFp:()=>t4,PassportProfileApi:()=>rn,PassportProfileApiAxiosParamCreator:()=>re,PassportProfileApiFactory:()=>rr,PassportProfileApiFp:()=>rt,PendingOrderStatusNameEnum:()=>r5,PricingApi:()=>ro,PricingApiAxiosParamCreator:()=>ra,PricingApiFactory:()=>rs,PricingApiFp:()=>ri,ProtocolDataOrderTypeEnum:()=>r8,SaleFeeTypeEnum:()=>r3,SeaportCreateListingMetadataTypedDataTypeEnum:()=>r4,SeaportERC1155CollectionItemTypeEnum:()=>r9,SeaportERC1155ItemTypeEnum:()=>r7,SeaportERC20ItemTypeEnum:()=>ne,SeaportERC721CollectionItemTypeEnum:()=>nt,SeaportERC721ItemTypeEnum:()=>nr,SeaportFeeTypeEnum:()=>nn,SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum:()=>na,SeaportNativeItemTypeEnum:()=>ni,SearchStacksSortByEnum:()=>tL,Severity:()=>ns,StarkExTransactionEvaluationRequestChainTypeEnum:()=>no,TokenContractType:()=>nc,TokensApi:()=>rl,TokensApiAxiosParamCreator:()=>rc,TokensApiFactory:()=>rd,TokensApiFp:()=>rf,TransactionApprovalRequestChainTypeEnum:()=>nf,TransactionEvaluationResponseConfirmationMethodEnum:()=>nd,UnknownMetadataTransactionTypeEnum:()=>nl,UnknownTypedDataMetadataTypedDataTypeEnum:()=>nu,ValidationStatus:()=>nh,VerificationRequestContractType:()=>np,VerificationRequestStatus:()=>nb,ZkEvmTransactionEvaluationRequestChainTypeEnum:()=>ng});var e9="https://api.sandbox.immutable.com".replace(/\/+$/,""),e7=class{constructor(e,t=e9,r=T.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}configuration},te=class extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}},tt="https://example.com",tr=function(e,t,r){if(null==r)throw new te(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},tn=async function(e,t,r){if(r&&r.apiKey){let n="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=n}},ta=async function(e,t){if(t&&t.accessToken){let r="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}},ti=function(e,...t){let r=new URLSearchParams(e.search);(function e(t,r,n=""){null!=r&&("object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(a=>e(t,r[a],`${n}${""!==n?".":""}${a}`)):t.has(n)?t.append(n,r):t.set(n,r))})(r,t),e.search=r.toString()},ts=function(e,t,r){let n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(void 0!==e?e:{}):e||""},to=function(e){return e.pathname+e.search+e.hash},tc=function(e,t,r,n){return(a=t,i=r)=>{let s={...e.options,url:(n?.basePath||a.defaults.baseURL||i)+e.url};return a.request(s)}},tf=function(e){return{getActivity:async(t,r,n={})=>{tr("getActivity","chainName",t),tr("getActivity","activityId",r);let a=new URL("/v1/chains/{chain_name}/activities/{activity_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{activity_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listActivities:async(t,r,n,a,i,s,o,c,f={})=>{tr("listActivities","chainName",t);let d=new URL("/v1/chains/{chain_name}/activities".replace("{chain_name}",encodeURIComponent(String(t))),tt),l;e&&(l=e.baseOptions);let u={method:"GET",...l,...f},h={};void 0!==r&&(h.contract_address=r),void 0!==n&&(h.token_id=n),void 0!==a&&(h.account_address=a),void 0!==i&&(h.activity_type=i),void 0!==s&&(h.transaction_hash=s),void 0!==o&&(h.page_cursor=o),void 0!==c&&(h.page_size=c),ti(d,h);let p=l&&l.headers?l.headers:{};return u.headers={...p,...f.headers},{url:to(d),options:u}},listActivityHistory:async(t,r,n,a,i,s,o,c={})=>{tr("listActivityHistory","chainName",t),tr("listActivityHistory","fromUpdatedAt",r);let f=new URL("/v1/chains/{chain_name}/activity-history".replace("{chain_name}",encodeURIComponent(String(t))),tt),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.to_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(u.contract_address=a),void 0!==i&&(u.activity_type=i),void 0!==s&&(u.page_cursor=s),void 0!==o&&(u.page_size=o),ti(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:to(f),options:l}}}},td=function(e){let t=tf(e);return{getActivity:async(r,n,a)=>tc(await t.getActivity(r,n,a),T.default,e9,e),listActivities:async(r,n,a,i,s,o,c,f,d)=>tc(await t.listActivities(r,n,a,i,s,o,c,f,d),T.default,e9,e),listActivityHistory:async(r,n,a,i,s,o,c,f)=>tc(await t.listActivityHistory(r,n,a,i,s,o,c,f),T.default,e9,e)}},tl=function(e,t,r){let n=td(e);return{getActivity:(e,a)=>n.getActivity(e.chainName,e.activityId,a).then(e=>e(r,t)),listActivities:(e,a)=>n.listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listActivityHistory:(e,a)=>n.listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tu=class extends e7{getActivity(e,t){return td(this.configuration).getActivity(e.chainName,e.activityId,t).then(e=>e(this.axios,this.basePath))}listActivities(e,t){return td(this.configuration).listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listActivityHistory(e,t){return td(this.configuration).listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},th=function(e){return{listChains:async(t,r,n={})=>{let a=new URL("/v1/chains",tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.page_cursor=t),void 0!==r&&(o.page_size=r),ti(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:to(a),options:s}}}},tp=function(e){let t=th(e);return{listChains:async(r,n,a)=>tc(await t.listChains(r,n,a),T.default,e9,e)}},tb=function(e,t,r){let n=tp(e);return{listChains:(e={},a)=>n.listChains(e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tg=class extends e7{listChains(e={},t){return tp(this.configuration).listChains(e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},tm=function(e){return{getCollection:async(t,r,n={})=>{tr("getCollection","contractAddress",t),tr("getCollection","chainName",r);let a=new URL("/v1/chains/{chain_name}/collections/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listCollections:async(t,r,n,a,i,s,o={})=>{tr("listCollections","chainName",t);let c=new URL("/v1/chains/{chain_name}/collections".replace("{chain_name}",encodeURIComponent(String(t))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};r&&(l.contract_address=r),n&&(l.verification_status=n),void 0!==a&&(l.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}},listCollectionsByNFTOwner:async(t,r,n,a,i={})=>{tr("listCollectionsByNFTOwner","accountAddress",t),tr("listCollectionsByNFTOwner","chainName",r);let s=new URL("/v1/chains/{chain_name}/accounts/{account_address}/collections".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},refreshCollectionMetadata:async(t,r,n,a={})=>{tr("refreshCollectionMetadata","contractAddress",t),tr("refreshCollectionMetadata","chainName",r),tr("refreshCollectionMetadata","refreshCollectionMetadataRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await ta(c,e),await tn(c,"x-immutable-api-key",e),await ta(c,e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}}}},ty=function(e){let t=tm(e);return{getCollection:async(r,n,a)=>tc(await t.getCollection(r,n,a),T.default,e9,e),listCollections:async(r,n,a,i,s,o,c)=>tc(await t.listCollections(r,n,a,i,s,o,c),T.default,e9,e),listCollectionsByNFTOwner:async(r,n,a,i,s)=>tc(await t.listCollectionsByNFTOwner(r,n,a,i,s),T.default,e9,e),refreshCollectionMetadata:async(r,n,a,i)=>tc(await t.refreshCollectionMetadata(r,n,a,i),T.default,e9,e)}},tv=function(e,t,r){let n=ty(e);return{getCollection:(e,a)=>n.getCollection(e.contractAddress,e.chainName,a).then(e=>e(r,t)),listCollections:(e,a)=>n.listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listCollectionsByNFTOwner:(e,a)=>n.listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),refreshCollectionMetadata:(e,a)=>n.refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,a).then(e=>e(r,t))}},tw=class extends e7{getCollection(e,t){return ty(this.configuration).getCollection(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listCollections(e,t){return ty(this.configuration).listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listCollectionsByNFTOwner(e,t){return ty(this.configuration).listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshCollectionMetadata(e,t){return ty(this.configuration).refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}},tx=function(e){return{signCraftingPayload:async(t,r,n={})=>{tr("signCraftingPayload","chainName",t),tr("signCraftingPayload","signCraftingRequest",r);let a=new URL("/v1/chains/{chain_name}/crafting/sign".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await tn(o,"x-immutable-api-key",e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}}}},tE=function(e){let t=tx(e);return{signCraftingPayload:async(r,n,a)=>tc(await t.signCraftingPayload(r,n,a),T.default,e9,e)}},tA=function(e,t,r){let n=tE(e);return{signCraftingPayload:(e,a)=>n.signCraftingPayload(e.chainName,e.signCraftingRequest,a).then(e=>e(r,t))}},t_=class extends e7{signCraftingPayload(e,t){return tE(this.configuration).signCraftingPayload(e.chainName,e.signCraftingRequest,t).then(e=>e(this.axios,this.basePath))}},tT=function(e){return{approvePendingERC191Message:async(t,r={})=>{tr("approvePendingERC191Message","messageID",t);let n=new URL("/guardian/v1/erc191-messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},approvePendingMessage:async(t,r={})=>{tr("approvePendingMessage","messageID",t);let n=new URL("/guardian/v1/messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},approvePendingTransaction:async(t,r,n={})=>{tr("approvePendingTransaction","payloadHash",t),tr("approvePendingTransaction","transactionApprovalRequest",r);let a=new URL("/guardian/v1/transactions/{payloadHash}/approve".replace("{payloadHash}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},evaluateErc191Message:async(t,r={})=>{tr("evaluateErc191Message","eRC191MessageEvaluationRequest",t);let n=new URL("/guardian/v1/erc191-messages/evaluate",tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),s["Content-Type"]="application/json",ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=ts(t,i,e),{url:to(n),options:i}},evaluateMessage:async(t,r={})=>{tr("evaluateMessage","messageEvaluationRequest",t);let n=new URL("/guardian/v1/messages/evaluate",tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),s["Content-Type"]="application/json",ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=ts(t,i,e),{url:to(n),options:i}},evaluateTransaction:async(t,r,n={})=>{tr("evaluateTransaction","id",t),tr("evaluateTransaction","transactionEvaluationRequest",r);let a=new URL("/guardian/v1/transactions/{id}/evaluate".replace("{id}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getErc191MessageByID:async(t,r={})=>{tr("getErc191MessageByID","messageID",t);let n=new URL("/guardian/v1/erc191-messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},getMessageByID:async(t,r,n={})=>{tr("getMessageByID","messageID",t);let a=new URL("/guardian/v1/messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={},c={};await ta(o,e),void 0!==r&&(c.includeSimulation=r),ti(a,c);let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...n.headers},{url:to(a),options:s}},getTransactionByID:async(t,r,n,a,i={})=>{tr("getTransactionByID","transactionID",t),tr("getTransactionByID","chainType",r);let s=new URL("/guardian/v1/transactions/{transactionID}".replace("{transactionID}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={},d={};await ta(f,e),void 0!==r&&(d.chainType=r),void 0!==n&&(d.chainID=n),void 0!==a&&(d.includeSimulation=a),ti(s,d);let l=o&&o.headers?o.headers:{};return c.headers={...f,...l,...i.headers},{url:to(s),options:c}}}},tI=function(e){let t=tT(e);return{approvePendingERC191Message:async(r,n)=>tc(await t.approvePendingERC191Message(r,n),T.default,e9,e),approvePendingMessage:async(r,n)=>tc(await t.approvePendingMessage(r,n),T.default,e9,e),approvePendingTransaction:async(r,n,a)=>tc(await t.approvePendingTransaction(r,n,a),T.default,e9,e),evaluateErc191Message:async(r,n)=>tc(await t.evaluateErc191Message(r,n),T.default,e9,e),evaluateMessage:async(r,n)=>tc(await t.evaluateMessage(r,n),T.default,e9,e),evaluateTransaction:async(r,n,a)=>tc(await t.evaluateTransaction(r,n,a),T.default,e9,e),getErc191MessageByID:async(r,n)=>tc(await t.getErc191MessageByID(r,n),T.default,e9,e),getMessageByID:async(r,n,a)=>tc(await t.getMessageByID(r,n,a),T.default,e9,e),getTransactionByID:async(r,n,a,i,s)=>tc(await t.getTransactionByID(r,n,a,i,s),T.default,e9,e)}},tS=function(e,t,r){let n=tI(e);return{approvePendingERC191Message:(e,a)=>n.approvePendingERC191Message(e.messageID,a).then(e=>e(r,t)),approvePendingMessage:(e,a)=>n.approvePendingMessage(e.messageID,a).then(e=>e(r,t)),approvePendingTransaction:(e,a)=>n.approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,a).then(e=>e(r,t)),evaluateErc191Message:(e,a)=>n.evaluateErc191Message(e.eRC191MessageEvaluationRequest,a).then(e=>e(r,t)),evaluateMessage:(e,a)=>n.evaluateMessage(e.messageEvaluationRequest,a).then(e=>e(r,t)),evaluateTransaction:(e,a)=>n.evaluateTransaction(e.id,e.transactionEvaluationRequest,a).then(e=>e(r,t)),getErc191MessageByID:(e,a)=>n.getErc191MessageByID(e.messageID,a).then(e=>e(r,t)),getMessageByID:(e,a)=>n.getMessageByID(e.messageID,e.includeSimulation,a).then(e=>e(r,t)),getTransactionByID:(e,a)=>n.getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,a).then(e=>e(r,t))}},tC=class extends e7{approvePendingERC191Message(e,t){return tI(this.configuration).approvePendingERC191Message(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingMessage(e,t){return tI(this.configuration).approvePendingMessage(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingTransaction(e,t){return tI(this.configuration).approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,t).then(e=>e(this.axios,this.basePath))}evaluateErc191Message(e,t){return tI(this.configuration).evaluateErc191Message(e.eRC191MessageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateMessage(e,t){return tI(this.configuration).evaluateMessage(e.messageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateTransaction(e,t){return tI(this.configuration).evaluateTransaction(e.id,e.transactionEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}getErc191MessageByID(e,t){return tI(this.configuration).getErc191MessageByID(e.messageID,t).then(e=>e(this.axios,this.basePath))}getMessageByID(e,t){return tI(this.configuration).getMessageByID(e.messageID,e.includeSimulation,t).then(e=>e(this.axios,this.basePath))}getTransactionByID(e,t){return tI(this.configuration).getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,t).then(e=>e(this.axios,this.basePath))}},tk={Starkex:"starkex",Evm:"evm"},tR=function(e){return{getMetadata:async(t,r,n,a={})=>{tr("getMetadata","chainName",t),tr("getMetadata","contractAddress",r),tr("getMetadata","metadataId",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))).replace("{metadata_id}",encodeURIComponent(String(n))),tt),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a};ti(i,{});let c=s&&s.headers?s.headers:{};return o.headers={...c,...a.headers},{url:to(i),options:o}},listMetadata:async(t,r,n,a,i,s={})=>{tr("listMetadata","chainName",t),tr("listMetadata","contractAddress",r);let o=new URL("/v1/chains/{chain_name}/collections/{contract_address}/metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};void 0!==n&&(d.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(d.page_cursor=a),void 0!==i&&(d.page_size=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}},listMetadataForChain:async(t,r,n,a,i={})=>{tr("listMetadataForChain","chainName",t);let s=new URL("/v1/chains/{chain_name}/metadata".replace("{chain_name}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},listStacks:async(t,r,n={})=>{tr("listStacks","chainName",t),tr("listStacks","stackId",r);let a=new URL("/v1/chains/{chain_name}/stacks".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};r&&(o.stack_id=r),ti(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:to(a),options:s}},refreshMetadataByID:async(t,r,n,a={})=>{tr("refreshMetadataByID","chainName",t),tr("refreshMetadataByID","contractAddress",r),tr("refreshMetadataByID","refreshMetadataByIDRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await tn(c,"x-immutable-api-key",e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}},refreshNFTMetadataByTokenID:async(t,r,n,a={})=>{tr("refreshNFTMetadataByTokenID","contractAddress",t),tr("refreshNFTMetadataByTokenID","chainName",r),tr("refreshNFTMetadataByTokenID","refreshNFTMetadataByTokenIDRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await tn(c,"x-immutable-api-key",e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}}}},tM=function(e){let t=tR(e);return{getMetadata:async(r,n,a,i)=>tc(await t.getMetadata(r,n,a,i),T.default,e9,e),listMetadata:async(r,n,a,i,s,o)=>tc(await t.listMetadata(r,n,a,i,s,o),T.default,e9,e),listMetadataForChain:async(r,n,a,i,s)=>tc(await t.listMetadataForChain(r,n,a,i,s),T.default,e9,e),listStacks:async(r,n,a)=>tc(await t.listStacks(r,n,a),T.default,e9,e),refreshMetadataByID:async(r,n,a,i)=>tc(await t.refreshMetadataByID(r,n,a,i),T.default,e9,e),refreshNFTMetadataByTokenID:async(r,n,a,i)=>tc(await t.refreshNFTMetadataByTokenID(r,n,a,i),T.default,e9,e)}},tB=function(e,t,r){let n=tM(e);return{getMetadata:(e,a)=>n.getMetadata(e.chainName,e.contractAddress,e.metadataId,a).then(e=>e(r,t)),listMetadata:(e,a)=>n.listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listMetadataForChain:(e,a)=>n.listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listStacks:(e,a)=>n.listStacks(e.chainName,e.stackId,a).then(e=>e(r,t)),refreshMetadataByID:(e,a)=>n.refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,a).then(e=>e(r,t)),refreshNFTMetadataByTokenID:(e,a)=>n.refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,a).then(e=>e(r,t))}},tP=class extends e7{getMetadata(e,t){return tM(this.configuration).getMetadata(e.chainName,e.contractAddress,e.metadataId,t).then(e=>e(this.axios,this.basePath))}listMetadata(e,t){return tM(this.configuration).listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMetadataForChain(e,t){return tM(this.configuration).listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listStacks(e,t){return tM(this.configuration).listStacks(e.chainName,e.stackId,t).then(e=>e(this.axios,this.basePath))}refreshMetadataByID(e,t){return tM(this.configuration).refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,t).then(e=>e(this.axios,this.basePath))}refreshNFTMetadataByTokenID(e,t){return tM(this.configuration).refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,t).then(e=>e(this.axios,this.basePath))}},tO=function(e){return{listFilters:async(t,r,n={})=>{tr("listFilters","chainName",t),tr("listFilters","contractAddress",r);let a=new URL("/v1/chains/{chain_name}/search/filters/{contract_address}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},searchNFTs:async(t,r,n,a,i,s,o,c={})=>{tr("searchNFTs","chainName",t),tr("searchNFTs","contractAddress",r);let f=new URL("/v1/chains/{chain_name}/search/nfts".replace("{chain_name}",encodeURIComponent(String(t))),tt),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};r&&(u.contract_address=r),void 0!==n&&(u.account_address=n),a&&(u.stack_id=a),void 0!==i&&(u.only_include_owner_listings=i),void 0!==s&&(u.page_size=s),void 0!==o&&(u.page_cursor=o),ti(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:to(f),options:l}},searchStacks:async(t,r,n,a,i,s,o,c,f,d,l,u={})=>{tr("searchStacks","chainName",t),tr("searchStacks","contractAddress",r);let h=new URL("/v1/chains/{chain_name}/search/stacks".replace("{chain_name}",encodeURIComponent(String(t))),tt),p;e&&(p=e.baseOptions);let b={method:"GET",...p,...u},g={};r&&(g.contract_address=r),void 0!==n&&(g.account_address=n),void 0!==a&&(g.only_include_owner_listings=a),void 0!==i&&(g.only_if_has_active_listings=i),void 0!==s&&(g.traits=s),void 0!==o&&(g.keyword=o),void 0!==c&&(g.payment_token=c),void 0!==f&&(g.sort_by=f),void 0!==d&&(g.page_size=d),void 0!==l&&(g.page_cursor=l),ti(h,g);let m=p&&p.headers?p.headers:{};return b.headers={...m,...u.headers},{url:to(h),options:b}}}},tj=function(e){let t=tO(e);return{listFilters:async(r,n,a)=>tc(await t.listFilters(r,n,a),T.default,e9,e),searchNFTs:async(r,n,a,i,s,o,c,f)=>tc(await t.searchNFTs(r,n,a,i,s,o,c,f),T.default,e9,e),searchStacks:async(r,n,a,i,s,o,c,f,d,l,u,h)=>tc(await t.searchStacks(r,n,a,i,s,o,c,f,d,l,u,h),T.default,e9,e)}},tN=function(e,t,r){let n=tj(e);return{listFilters:(e,a)=>n.listFilters(e.chainName,e.contractAddress,a).then(e=>e(r,t)),searchNFTs:(e,a)=>n.searchNFTs(e.chainName,e.contractAddress,e.accountAddress,e.stackId,e.onlyIncludeOwnerListings,e.pageSize,e.pageCursor,a).then(e=>e(r,t)),searchStacks:(e,a)=>n.searchStacks(e.chainName,e.contractAddress,e.accountAddress,e.onlyIncludeOwnerListings,e.onlyIfHasActiveListings,e.traits,e.keyword,e.paymentToken,e.sortBy,e.pageSize,e.pageCursor,a).then(e=>e(r,t))}},tU=class extends e7{listFilters(e,t){return tj(this.configuration).listFilters(e.chainName,e.contractAddress,t).then(e=>e(this.axios,this.basePath))}searchNFTs(e,t){return tj(this.configuration).searchNFTs(e.chainName,e.contractAddress,e.accountAddress,e.stackId,e.onlyIncludeOwnerListings,e.pageSize,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}searchStacks(e,t){return tj(this.configuration).searchStacks(e.chainName,e.contractAddress,e.accountAddress,e.onlyIncludeOwnerListings,e.onlyIfHasActiveListings,e.traits,e.keyword,e.paymentToken,e.sortBy,e.pageSize,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}},tL={CheapestFirst:"cheapest_first"},tD=function(e){return{listAllNFTOwners:async(t,r,n,a,i={})=>{tr("listAllNFTOwners","chainName",t);let s=new URL("/v1/chains/{chain_name}/nft-owners".replace("{chain_name}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},listNFTOwners:async(t,r,n,a,i,s={})=>{tr("listNFTOwners","contractAddress",t),tr("listNFTOwners","tokenId",r),tr("listNFTOwners","chainName",n);let o=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};void 0!==a&&(d.page_cursor=a),void 0!==i&&(d.page_size=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}},listOwnersByContractAddress:async(t,r,n,a,i,s,o={})=>{tr("listOwnersByContractAddress","contractAddress",t),tr("listOwnersByContractAddress","chainName",r);let c=new URL("/v1/chains/{chain_name}/collections/{contract_address}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};n&&(l.account_address=n),void 0!==a&&(l.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}}}},tF=function(e){let t=tD(e);return{listAllNFTOwners:async(r,n,a,i,s)=>tc(await t.listAllNFTOwners(r,n,a,i,s),T.default,e9,e),listNFTOwners:async(r,n,a,i,s,o)=>tc(await t.listNFTOwners(r,n,a,i,s,o),T.default,e9,e),listOwnersByContractAddress:async(r,n,a,i,s,o,c)=>tc(await t.listOwnersByContractAddress(r,n,a,i,s,o,c),T.default,e9,e)}},tH=function(e,t,r){let n=tF(e);return{listAllNFTOwners:(e,a)=>n.listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listNFTOwners:(e,a)=>n.listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listOwnersByContractAddress:(e,a)=>n.listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tV=class extends e7{listAllNFTOwners(e,t){return tF(this.configuration).listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTOwners(e,t){return tF(this.configuration).listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listOwnersByContractAddress(e,t){return tF(this.configuration).listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},tq=function(e){return{createMintRequest:async(t,r,n,a={})=>{tr("createMintRequest","contractAddress",t),tr("createMintRequest","chainName",r),tr("createMintRequest","createMintRequestRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await tn(c,"x-immutable-api-key",e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}},getMintRequest:async(t,r,n,a={})=>{tr("getMintRequest","contractAddress",t),tr("getMintRequest","chainName",r),tr("getMintRequest","referenceId",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))).replace("{reference_id}",encodeURIComponent(String(n))),tt),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};await tn(c,"x-immutable-api-key",e),ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},{url:to(i),options:o}},getNFT:async(t,r,n,a={})=>{tr("getNFT","contractAddress",t),tr("getNFT","tokenId",r),tr("getNFT","chainName",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),tt),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a};ti(i,{});let c=s&&s.headers?s.headers:{};return o.headers={...c,...a.headers},{url:to(i),options:o}},listAllNFTs:async(t,r,n,a,i={})=>{tr("listAllNFTs","chainName",t);let s=new URL("/v1/chains/{chain_name}/nfts".replace("{chain_name}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},listMintRequests:async(t,r,n,a,i,s={})=>{tr("listMintRequests","contractAddress",t),tr("listMintRequests","chainName",r);let o=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={},l={};await tn(d,"x-immutable-api-key",e),void 0!==n&&(l.page_cursor=n),void 0!==a&&(l.page_size=a),void 0!==i&&(l.status=i),ti(o,l);let u=c&&c.headers?c.headers:{};return f.headers={...d,...u,...s.headers},{url:to(o),options:f}},listNFTs:async(t,r,n,a,i,s,o={})=>{tr("listNFTs","contractAddress",t),tr("listNFTs","chainName",r);let c=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};n&&(l.token_id=n),void 0!==a&&(l.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}},listNFTsByAccountAddress:async(t,r,n,a,i,s,o,c={})=>{tr("listNFTsByAccountAddress","accountAddress",t),tr("listNFTsByAccountAddress","chainName",r);let f=new URL("/v1/chains/{chain_name}/accounts/{account_address}/nfts".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};void 0!==n&&(u.contract_address=n),a&&(u.token_id=a),void 0!==i&&(u.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==s&&(u.page_cursor=s),void 0!==o&&(u.page_size=o),ti(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:to(f),options:l}}}},tz=function(e){let t=tq(e);return{createMintRequest:async(r,n,a,i)=>tc(await t.createMintRequest(r,n,a,i),T.default,e9,e),getMintRequest:async(r,n,a,i)=>tc(await t.getMintRequest(r,n,a,i),T.default,e9,e),getNFT:async(r,n,a,i)=>tc(await t.getNFT(r,n,a,i),T.default,e9,e),listAllNFTs:async(r,n,a,i,s)=>tc(await t.listAllNFTs(r,n,a,i,s),T.default,e9,e),listMintRequests:async(r,n,a,i,s,o)=>tc(await t.listMintRequests(r,n,a,i,s,o),T.default,e9,e),listNFTs:async(r,n,a,i,s,o,c)=>tc(await t.listNFTs(r,n,a,i,s,o,c),T.default,e9,e),listNFTsByAccountAddress:async(r,n,a,i,s,o,c,f)=>tc(await t.listNFTsByAccountAddress(r,n,a,i,s,o,c,f),T.default,e9,e)}},tG=function(e,t,r){let n=tz(e);return{createMintRequest:(e,a)=>n.createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,a).then(e=>e(r,t)),getMintRequest:(e,a)=>n.getMintRequest(e.contractAddress,e.chainName,e.referenceId,a).then(e=>e(r,t)),getNFT:(e,a)=>n.getNFT(e.contractAddress,e.tokenId,e.chainName,a).then(e=>e(r,t)),listAllNFTs:(e,a)=>n.listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listMintRequests:(e,a)=>n.listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,a).then(e=>e(r,t)),listNFTs:(e,a)=>n.listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listNFTsByAccountAddress:(e,a)=>n.listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tK=class extends e7{createMintRequest(e,t){return tz(this.configuration).createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,t).then(e=>e(this.axios,this.basePath))}getMintRequest(e,t){return tz(this.configuration).getMintRequest(e.contractAddress,e.chainName,e.referenceId,t).then(e=>e(this.axios,this.basePath))}getNFT(e,t){return tz(this.configuration).getNFT(e.contractAddress,e.tokenId,e.chainName,t).then(e=>e(this.axios,this.basePath))}listAllNFTs(e,t){return tz(this.configuration).listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMintRequests(e,t){return tz(this.configuration).listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,t).then(e=>e(this.axios,this.basePath))}listNFTs(e,t){return tz(this.configuration).listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTsByAccountAddress(e,t){return tz(this.configuration).listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},tW=function(e){return{cancelOrders:async(t,r,n={})=>{tr("cancelOrders","chainName",t),tr("cancelOrders","cancelOrdersRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/cancel".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},createBid:async(t,r,n={})=>{tr("createBid","chainName",t),tr("createBid","createBidRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},createCollectionBid:async(t,r,n={})=>{tr("createCollectionBid","chainName",t),tr("createCollectionBid","createCollectionBidRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},createListing:async(t,r,n={})=>{tr("createListing","chainName",t),tr("createListing","createListingRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},fulfillmentData:async(t,r,n={})=>{tr("fulfillmentData","chainName",t),tr("fulfillmentData","fulfillmentDataRequest",r);let a=new URL("/v1/chains/{chain_name}/orders/fulfillment-data".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getBid:async(t,r,n={})=>{tr("getBid","chainName",t),tr("getBid","bidId",r);let a=new URL("/v1/chains/{chain_name}/orders/bids/{bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{bid_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},getCollectionBid:async(t,r,n={})=>{tr("getCollectionBid","chainName",t),tr("getCollectionBid","collectionBidId",r);let a=new URL("/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{collection_bid_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},getListing:async(t,r,n={})=>{tr("getListing","chainName",t),tr("getListing","listingId",r);let a=new URL("/v1/chains/{chain_name}/orders/listings/{listing_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{listing_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},getTrade:async(t,r,n={})=>{tr("getTrade","chainName",t),tr("getTrade","tradeId",r);let a=new URL("/v1/chains/{chain_name}/trades/{trade_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{trade_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listBids:async(t,r,n,a,i,s,o,c,f,d,l,u,h={})=>{tr("listBids","chainName",t);let p=new URL("/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),b;e&&(b=e.baseOptions);let g={method:"GET",...b,...h},m={};void 0!==r&&(m.status=r),void 0!==n&&(m.buy_item_contract_address=n),void 0!==a&&(m.sell_item_contract_address=a),void 0!==i&&(m.account_address=i),void 0!==s&&(m.buy_item_metadata_id=s),void 0!==o&&(m.buy_item_token_id=o),void 0!==c&&(m.from_updated_at=c instanceof Date?c.toISOString():c),void 0!==f&&(m.page_size=f),void 0!==d&&(m.sort_by=d),void 0!==l&&(m.sort_direction=l),void 0!==u&&(m.page_cursor=u),ti(p,m);let y=b&&b.headers?b.headers:{};return g.headers={...y,...h.headers},{url:to(p),options:g}},listCollectionBids:async(t,r,n,a,i,s,o,c,f,d,l={})=>{tr("listCollectionBids","chainName",t);let u=new URL("/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),h;e&&(h=e.baseOptions);let p={method:"GET",...h,...l},b={};void 0!==r&&(b.status=r),void 0!==n&&(b.buy_item_contract_address=n),void 0!==a&&(b.sell_item_contract_address=a),void 0!==i&&(b.account_address=i),void 0!==s&&(b.from_updated_at=s instanceof Date?s.toISOString():s),void 0!==o&&(b.page_size=o),void 0!==c&&(b.sort_by=c),void 0!==f&&(b.sort_direction=f),void 0!==d&&(b.page_cursor=d),ti(u,b);let g=h&&h.headers?h.headers:{};return p.headers={...g,...l.headers},{url:to(u),options:p}},listListings:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p={})=>{tr("listListings","chainName",t);let b=new URL("/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),tt),g;e&&(g=e.baseOptions);let m={method:"GET",...g,...p},y={};void 0!==r&&(y.status=r),void 0!==n&&(y.sell_item_contract_address=n),void 0!==a&&(y.buy_item_type=a),void 0!==i&&(y.buy_item_contract_address=i),void 0!==s&&(y.account_address=s),void 0!==o&&(y.sell_item_metadata_id=o),void 0!==c&&(y.sell_item_token_id=c),void 0!==f&&(y.from_updated_at=f instanceof Date?f.toISOString():f),void 0!==d&&(y.page_size=d),void 0!==l&&(y.sort_by=l),void 0!==u&&(y.sort_direction=u),void 0!==h&&(y.page_cursor=h),ti(b,y);let v=g&&g.headers?g.headers:{};return m.headers={...v,...p.headers},{url:to(b),options:m}},listTrades:async(t,r,n,a,i,s,o,c,f={})=>{tr("listTrades","chainName",t);let d=new URL("/v1/chains/{chain_name}/trades".replace("{chain_name}",encodeURIComponent(String(t))),tt),l;e&&(l=e.baseOptions);let u={method:"GET",...l,...f},h={};void 0!==r&&(h.account_address=r),void 0!==n&&(h.sell_item_contract_address=n),void 0!==a&&(h.from_indexed_at=a instanceof Date?a.toISOString():a),void 0!==i&&(h.page_size=i),void 0!==s&&(h.sort_by=s),void 0!==o&&(h.sort_direction=o),void 0!==c&&(h.page_cursor=c),ti(d,h);let p=l&&l.headers?l.headers:{};return u.headers={...p,...f.headers},{url:to(d),options:u}}}},t$=function(e){let t=tW(e);return{cancelOrders:async(r,n,a)=>tc(await t.cancelOrders(r,n,a),T.default,e9,e),createBid:async(r,n,a)=>tc(await t.createBid(r,n,a),T.default,e9,e),createCollectionBid:async(r,n,a)=>tc(await t.createCollectionBid(r,n,a),T.default,e9,e),createListing:async(r,n,a)=>tc(await t.createListing(r,n,a),T.default,e9,e),fulfillmentData:async(r,n,a)=>tc(await t.fulfillmentData(r,n,a),T.default,e9,e),getBid:async(r,n,a)=>tc(await t.getBid(r,n,a),T.default,e9,e),getCollectionBid:async(r,n,a)=>tc(await t.getCollectionBid(r,n,a),T.default,e9,e),getListing:async(r,n,a)=>tc(await t.getListing(r,n,a),T.default,e9,e),getTrade:async(r,n,a)=>tc(await t.getTrade(r,n,a),T.default,e9,e),listBids:async(r,n,a,i,s,o,c,f,d,l,u,h,p)=>tc(await t.listBids(r,n,a,i,s,o,c,f,d,l,u,h,p),T.default,e9,e),listCollectionBids:async(r,n,a,i,s,o,c,f,d,l,u)=>tc(await t.listCollectionBids(r,n,a,i,s,o,c,f,d,l,u),T.default,e9,e),listListings:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b)=>tc(await t.listListings(r,n,a,i,s,o,c,f,d,l,u,h,p,b),T.default,e9,e),listTrades:async(r,n,a,i,s,o,c,f,d)=>tc(await t.listTrades(r,n,a,i,s,o,c,f,d),T.default,e9,e)}},tJ=function(e,t,r){let n=t$(e);return{cancelOrders:(e,a)=>n.cancelOrders(e.chainName,e.cancelOrdersRequestBody,a).then(e=>e(r,t)),createBid:(e,a)=>n.createBid(e.chainName,e.createBidRequestBody,a).then(e=>e(r,t)),createCollectionBid:(e,a)=>n.createCollectionBid(e.chainName,e.createCollectionBidRequestBody,a).then(e=>e(r,t)),createListing:(e,a)=>n.createListing(e.chainName,e.createListingRequestBody,a).then(e=>e(r,t)),fulfillmentData:(e,a)=>n.fulfillmentData(e.chainName,e.fulfillmentDataRequest,a).then(e=>e(r,t)),getBid:(e,a)=>n.getBid(e.chainName,e.bidId,a).then(e=>e(r,t)),getCollectionBid:(e,a)=>n.getCollectionBid(e.chainName,e.collectionBidId,a).then(e=>e(r,t)),getListing:(e,a)=>n.getListing(e.chainName,e.listingId,a).then(e=>e(r,t)),getTrade:(e,a)=>n.getTrade(e.chainName,e.tradeId,a).then(e=>e(r,t)),listBids:(e,a)=>n.listBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.buyItemMetadataId,e.buyItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t)),listCollectionBids:(e,a)=>n.listCollectionBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t)),listListings:(e,a)=>n.listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t)),listTrades:(e,a)=>n.listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t))}},tQ=class extends e7{cancelOrders(e,t){return t$(this.configuration).cancelOrders(e.chainName,e.cancelOrdersRequestBody,t).then(e=>e(this.axios,this.basePath))}createBid(e,t){return t$(this.configuration).createBid(e.chainName,e.createBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createCollectionBid(e,t){return t$(this.configuration).createCollectionBid(e.chainName,e.createCollectionBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createListing(e,t){return t$(this.configuration).createListing(e.chainName,e.createListingRequestBody,t).then(e=>e(this.axios,this.basePath))}fulfillmentData(e,t){return t$(this.configuration).fulfillmentData(e.chainName,e.fulfillmentDataRequest,t).then(e=>e(this.axios,this.basePath))}getBid(e,t){return t$(this.configuration).getBid(e.chainName,e.bidId,t).then(e=>e(this.axios,this.basePath))}getCollectionBid(e,t){return t$(this.configuration).getCollectionBid(e.chainName,e.collectionBidId,t).then(e=>e(this.axios,this.basePath))}getListing(e,t){return t$(this.configuration).getListing(e.chainName,e.listingId,t).then(e=>e(this.axios,this.basePath))}getTrade(e,t){return t$(this.configuration).getTrade(e.chainName,e.tradeId,t).then(e=>e(this.axios,this.basePath))}listBids(e,t){return t$(this.configuration).listBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.buyItemMetadataId,e.buyItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listCollectionBids(e,t){return t$(this.configuration).listCollectionBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listListings(e,t){return t$(this.configuration).listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listTrades(e,t){return t$(this.configuration).listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}},tZ={CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},tX={Asc:"asc",Desc:"desc"},tY={CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},t0={Asc:"asc",Desc:"desc"},t1={Native:"NATIVE",Erc20:"ERC20"},t6={CreatedAt:"created_at",UpdatedAt:"updated_at",BuyItemAmount:"buy_item_amount"},t2={Asc:"asc",Desc:"desc"},t5={IndexedAt:"indexed_at"},t8={Asc:"asc",Desc:"desc"},t3=function(e){return{createCounterfactualAddressV2:async(t,r,n={})=>{tr("createCounterfactualAddressV2","chainName",t),tr("createCounterfactualAddressV2","createCounterfactualAddressRequest",r);let a=new URL("/v2/chains/{chain_name}/passport/counterfactual-address".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getLinkedAddresses:async(t,r,n={})=>{tr("getLinkedAddresses","userId",t),tr("getLinkedAddresses","chainName",r);let a=new URL("/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses".replace("{user_id}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};await ta(o,e),ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},{url:to(a),options:s}},getLinkedAddressesDeprecated:async(t,r={})=>{tr("getLinkedAddressesDeprecated","userId",t);let n=new URL("/passport-mr/v1/users/{userId}/linked-addresses".replace("{userId}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},getTransactionMetadata:async(t,r,n={})=>{tr("getTransactionMetadata","chainName",t),tr("getTransactionMetadata","getTransactionMetadataRequest",r);let a=new URL("/v1/chains/{chain_name}/passport/transaction-metadata".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getTypedDataMetadata:async(t,r,n={})=>{tr("getTypedDataMetadata","chainName",t),tr("getTypedDataMetadata","getTypedDataMetadataRequest",r);let a=new URL("/v1/chains/{chain_name}/passport/typeddata-metadata".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getUserMetadata:async(t,r={})=>{tr("getUserMetadata","userId",t);let n=new URL("/passport-mr/v1/users/{user_id}/metadata".replace("{user_id}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};await tn(s,"x-immutable-api-key",e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}}}},t4=function(e){let t=t3(e);return{createCounterfactualAddressV2:async(r,n,a)=>tc(await t.createCounterfactualAddressV2(r,n,a),T.default,e9,e),getLinkedAddresses:async(r,n,a)=>tc(await t.getLinkedAddresses(r,n,a),T.default,e9,e),getLinkedAddressesDeprecated:async(r,n)=>tc(await t.getLinkedAddressesDeprecated(r,n),T.default,e9,e),getTransactionMetadata:async(r,n,a)=>tc(await t.getTransactionMetadata(r,n,a),T.default,e9,e),getTypedDataMetadata:async(r,n,a)=>tc(await t.getTypedDataMetadata(r,n,a),T.default,e9,e),getUserMetadata:async(r,n)=>tc(await t.getUserMetadata(r,n),T.default,e9,e)}},t9=function(e,t,r){let n=t4(e);return{createCounterfactualAddressV2:(e,a)=>n.createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,a).then(e=>e(r,t)),getLinkedAddresses:(e,a)=>n.getLinkedAddresses(e.userId,e.chainName,a).then(e=>e(r,t)),getLinkedAddressesDeprecated:(e,a)=>n.getLinkedAddressesDeprecated(e.userId,a).then(e=>e(r,t)),getTransactionMetadata:(e,a)=>n.getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,a).then(e=>e(r,t)),getTypedDataMetadata:(e,a)=>n.getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,a).then(e=>e(r,t)),getUserMetadata:(e,a)=>n.getUserMetadata(e.userId,a).then(e=>e(r,t))}},t7=class extends e7{createCounterfactualAddressV2(e,t){return t4(this.configuration).createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,t).then(e=>e(this.axios,this.basePath))}getLinkedAddresses(e,t){return t4(this.configuration).getLinkedAddresses(e.userId,e.chainName,t).then(e=>e(this.axios,this.basePath))}getLinkedAddressesDeprecated(e,t){return t4(this.configuration).getLinkedAddressesDeprecated(e.userId,t).then(e=>e(this.axios,this.basePath))}getTransactionMetadata(e,t){return t4(this.configuration).getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getTypedDataMetadata(e,t){return t4(this.configuration).getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getUserMetadata(e,t){return t4(this.configuration).getUserMetadata(e.userId,t).then(e=>e(this.axios,this.basePath))}},re=function(e){return{getUserInfo:async(t={})=>{let r=new URL("/passport-profile/v1/user/info",tt),n;e&&(n=e.baseOptions);let a={method:"GET",...n,...t},i={};await ta(i,e),ti(r,{});let s=n&&n.headers?n.headers:{};return a.headers={...i,...s,...t.headers},{url:to(r),options:a}},linkWalletV2:async(t,r={})=>{let n=new URL("/passport-profile/v2/linked-wallets",tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),s["Content-Type"]="application/json",ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=ts(t,i,e),{url:to(n),options:i}}}},rt=function(e){let t=re(e);return{getUserInfo:async r=>tc(await t.getUserInfo(r),T.default,e9,e),linkWalletV2:async(r,n)=>tc(await t.linkWalletV2(r,n),T.default,e9,e)}},rr=function(e,t,r){let n=rt(e);return{getUserInfo:e=>n.getUserInfo(e).then(e=>e(r,t)),linkWalletV2:(e={},a)=>n.linkWalletV2(e.linkWalletV2Request,a).then(e=>e(r,t))}},rn=class extends e7{getUserInfo(e){return rt(this.configuration).getUserInfo(e).then(e=>e(this.axios,this.basePath))}linkWalletV2(e={},t){return rt(this.configuration).linkWalletV2(e.linkWalletV2Request,t).then(e=>e(this.axios,this.basePath))}},ra=function(e){return{quotesForNFTs:async(t,r,n,a,i,s={})=>{tr("quotesForNFTs","chainName",t),tr("quotesForNFTs","contractAddress",r),tr("quotesForNFTs","tokenId",n);let o=new URL("/v1/chains/{chain_name}/quotes/{contract_address}/nfts".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};n&&(d.token_id=n),void 0!==a&&(d.payment_token=a),void 0!==i&&(d.page_cursor=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}},quotesForStacks:async(t,r,n,a,i,s={})=>{tr("quotesForStacks","chainName",t),tr("quotesForStacks","contractAddress",r),tr("quotesForStacks","stackId",n);let o=new URL("/v1/chains/{chain_name}/quotes/{contract_address}/stacks".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};n&&(d.stack_id=n),void 0!==a&&(d.payment_token=a),void 0!==i&&(d.page_cursor=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}}}},ri=function(e){let t=ra(e);return{quotesForNFTs:async(r,n,a,i,s,o)=>tc(await t.quotesForNFTs(r,n,a,i,s,o),T.default,e9,e),quotesForStacks:async(r,n,a,i,s,o)=>tc(await t.quotesForStacks(r,n,a,i,s,o),T.default,e9,e)}},rs=function(e,t,r){let n=ri(e);return{quotesForNFTs:(e,a)=>n.quotesForNFTs(e.chainName,e.contractAddress,e.tokenId,e.paymentToken,e.pageCursor,a).then(e=>e(r,t)),quotesForStacks:(e,a)=>n.quotesForStacks(e.chainName,e.contractAddress,e.stackId,e.paymentToken,e.pageCursor,a).then(e=>e(r,t))}},ro=class extends e7{quotesForNFTs(e,t){return ri(this.configuration).quotesForNFTs(e.chainName,e.contractAddress,e.tokenId,e.paymentToken,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}quotesForStacks(e,t){return ri(this.configuration).quotesForStacks(e.chainName,e.contractAddress,e.stackId,e.paymentToken,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}},rc=function(e){return{getERC20Token:async(t,r,n={})=>{tr("getERC20Token","contractAddress",t),tr("getERC20Token","chainName",r);let a=new URL("/v1/chains/{chain_name}/tokens/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listERC20Tokens:async(t,r,n,a,i,s,o={})=>{tr("listERC20Tokens","chainName",t);let c=new URL("/v1/chains/{chain_name}/tokens".replace("{chain_name}",encodeURIComponent(String(t))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};void 0!==r&&(l.from_updated_at=r instanceof Date?r.toISOString():r),n&&(l.verification_status=n),void 0!==a&&(l.is_canonical=a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}}}},rf=function(e){let t=rc(e);return{getERC20Token:async(r,n,a)=>tc(await t.getERC20Token(r,n,a),T.default,e9,e),listERC20Tokens:async(r,n,a,i,s,o,c)=>tc(await t.listERC20Tokens(r,n,a,i,s,o,c),T.default,e9,e)}},rd=function(e,t,r){let n=rf(e);return{getERC20Token:(e,a)=>n.getERC20Token(e.contractAddress,e.chainName,a).then(e=>e(r,t)),listERC20Tokens:(e,a)=>n.listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},rl=class extends e7{getERC20Token(e,t){return rf(this.configuration).getERC20Token(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listERC20Tokens(e,t){return rf(this.configuration).listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},ru=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}},rh={ValidationError:"VALIDATION_ERROR"},rp={UnauthorisedRequest:"UNAUTHORISED_REQUEST"},rb={AuthenticationError:"AUTHENTICATION_ERROR"},rg={ResourceNotFound:"RESOURCE_NOT_FOUND"},rm={ConflictError:"CONFLICT_ERROR"},ry={TooManyRequestsError:"TOO_MANY_REQUESTS_ERROR"},rv={InternalServerError:"INTERNAL_SERVER_ERROR"},rw={NotImplementedError:"NOT_IMPLEMENTED_ERROR"},rx={Active:"ACTIVE"},rE={Mint:"mint",Burn:"burn",Transfer:"transfer",Sale:"sale",Deposit:"deposit",Withdrawal:"withdrawal"},rA={Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},r_={Cancelled:"CANCELLED"},rT={OnChain:"ON_CHAIN",OffChain:"OFF_CHAIN",Underfunded:"UNDERFUNDED"},rI={Erc721:"ERC721",Erc1155:"ERC1155"},rS={Erc1155Collection:"ERC1155_COLLECTION"},rC={Erc1155:"ERC1155"},rk={Erc20Approve:"ERC20_APPROVE"},rR={Erc20:"ERC20"},rM={Erc20TransferFrom:"ERC20_TRANSFER_FROM"},rB={Erc20Transfer:"ERC20_TRANSFER"},rP={Erc721Approve:"ERC721_APPROVE"},rO={Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},rj={Erc721:"ERC721"},rN={Erc721SafeTransferFromBatch:"ERC721_SAFE_TRANSFER_FROM_BATCH"},rU={Erc721TransferFrom:"ERC721_TRANSFER_FROM"},rL={Expired:"EXPIRED"},rD={Filled:"FILLED"},rF={Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},rH={Filled:"FILLED"},rV={Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},rq={Inactive:"INACTIVE"},rz={Erc20:"ERC20"},rG={Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},rK={Native:"NATIVE"},rW={Erc721:"ERC721",Erc1155:"ERC1155"},r$={Otp:"otp",Web:"web"},rJ={Pending:"pending",Succeeded:"succeeded",Failed:"failed"},rQ={Erc721:"ERC721",Erc1155:"ERC1155"},rZ={Number:"number",BoostPercentage:"boost_percentage",BoostNumber:"boost_number",Date:"date"},rX={Erc721SetApprovalForAll:"ERC721_SET_APPROVAL_FOR_ALL",Erc1155SetApprovalForAll:"ERC1155_SET_APPROVAL_FOR_ALL"},rY={Native:"NATIVE",Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155",Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},r0={Requested:"requested",Approved:"approved",Rejected:"rejected",Removed:"removed",Added:"added"},r1={Listing:"LISTING",Bid:"BID",CollectionBid:"COLLECTION_BID"},r6={Pending:"PENDING",Active:"ACTIVE",Inactive:"INACTIVE",Filled:"FILLED",Expired:"EXPIRED",Cancelled:"CANCELLED"},r2={Common:"common",Uncommon:"uncommon",Rare:"rare",Epic:"epic",Legendary:"legendary"},r5={Pending:"PENDING"},r8={FullRestricted:"FULL_RESTRICTED",PartialRestricted:"PARTIAL_RESTRICTED"},r3={Royalty:"ROYALTY"},r4={SeaportCreateListingMetadata:"SEAPORT_CREATE_LISTING_METADATA"},r9={Erc1155Collection:"ERC1155Collection"},r7={Erc1155:"ERC1155"},ne={Erc20:"ERC20"},nt={Erc721Collection:"ERC721Collection"},nr={Erc721:"ERC721"},nn={Erc20:"ERC20",Native:"NATIVE"},na={SeaportFulfillAvailableAdvancedOrders:"SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS"},ni={Native:"NATIVE"},ns={Malicious:"malicious",Benign:"benign",Warning:"warning",Unknown:"unknown",Info:"info"},no={Starkex:"starkex"},nc={Erc20:"ERC20"},nf={Starkex:"starkex",Evm:"evm"},nd={Otp:"otp",Web:"web"},nl={Unknown:"UNKNOWN"},nu={Unknown:"UNKNOWN"},nh={Success:"success",Error:"error",SimulationFailed:"simulation_failed"},np={Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},nb={Completed:"completed",Pending:"pending"},ng={Evm:"evm"},nm={};S(nm,{APIError400AllOfCodeEnum:()=>nv,APIError401AllOfCodeEnum:()=>nw,APIError403AllOfCodeEnum:()=>nx,APIError404AllOfCodeEnum:()=>nE,APIError409AllOfCodeEnum:()=>nA,APIError429AllOfCodeEnum:()=>n_,APIError500AllOfCodeEnum:()=>nT,ActivityType:()=>nI,AssetVerificationStatus:()=>nS,CollectionContractType:()=>nC,MarketPriceERC20TokenTypeEnum:()=>nk,MarketPriceFeesTypeEnum:()=>nR,MarketPriceNativeTokenTypeEnum:()=>nM,MarketplaceContractType:()=>nB,MintRequestStatus:()=>nP,NFTContractType:()=>nO,NFTMetadataAttributeDisplayTypeEnum:()=>nj,SaleFeeTypeEnum:()=>nN,SearchStacksSortByEnum:()=>ny,TokenContractType:()=>nU});var ny=((n=ny||{}).CheapestFirst="cheapest_first",n),nv=((a=nv||{}).ValidationError="VALIDATION_ERROR",a),nw=((i=nw||{}).UnauthorisedRequest="UNAUTHORISED_REQUEST",i),nx=((s=nx||{}).AuthenticationError="AUTHENTICATION_ERROR",s),nE=((o=nE||{}).ResourceNotFound="RESOURCE_NOT_FOUND",o),nA=((c=nA||{}).ConflictError="CONFLICT_ERROR",c),n_=((f=n_||{}).TooManyRequestsError="TOO_MANY_REQUESTS_ERROR",f),nT=((d=nT||{}).InternalServerError="INTERNAL_SERVER_ERROR",d),nI=((l=nI||{}).Mint="mint",l.Burn="burn",l.Transfer="transfer",l.Sale="sale",l.Deposit="deposit",l.Withdrawal="withdrawal",l),nS=((u=nS||{}).Verified="verified",u.Unverified="unverified",u.Spam="spam",u.Inactive="inactive",u),nC=((h=nC||{}).Erc721="ERC721",h.Erc1155="ERC1155",h),nk=((p=nk||{}).Erc20="ERC20",p),nR=((b=nR||{}).Royalty="ROYALTY",b.MakerEcosystem="MAKER_ECOSYSTEM",b.TakerEcosystem="TAKER_ECOSYSTEM",b.Protocol="PROTOCOL",b),nM=((g=nM||{}).Native="NATIVE",g),nB=((m=nB||{}).Erc721="ERC721",m.Erc1155="ERC1155",m),nP=((y=nP||{}).Pending="pending",y.Succeeded="succeeded",y.Failed="failed",y),nO=((v=nO||{}).Erc721="ERC721",v.Erc1155="ERC1155",v),nj=((w=nj||{}).Number="number",w.BoostPercentage="boost_percentage",w.BoostNumber="boost_number",w.Date="date",w),nN=((x=nN||{}).Royalty="ROYALTY",x),nU=((E=nU||{}).Erc20="ERC20",E),nL=class{config;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;constructor(e){this.config=e,this.assetApi=new H(e),this.balanceApi=new G(e),this.collectionApi=new J(e),this.depositsApi=new Y(e),this.encodingApi=new en(e),this.exchangeApi=new eo(e),this.metadataApi=new el(e),this.metadataRefreshesApi=new eb(e),this.mintsApi=new ev(e),this.nftCheckoutPrimaryApi=new eA(e),this.ordersApi=new eS(e),this.projectsApi=new eM(e),this.tokensApi=new ej(e),this.tradesApi=new eD(e),this.transfersApi=new eq(e),this.usersApi=new eW(e),this.withdrawalsApi=new eZ(e)}},nD=class{config;activitiesApi;chainsApi;collectionApi;nftOwnersApi;nftsApi;ordersApi;passportApi;passportProfileApi;guardianApi;constructor(e){this.config=e,this.activitiesApi=new tu(e.indexer),this.chainsApi=new tg(e.indexer),this.collectionApi=new tw(e.indexer),this.nftOwnersApi=new tV(e.indexer),this.nftsApi=new tK(e.indexer),this.ordersApi=new tQ(e.orderBook),this.passportApi=new t7(e.passport),this.passportProfileApi=new rn(e.passport),this.guardianApi=new tC(e.passport)}},nF={"x-sdk-version":"ts-immutable-sdk-2.2.0"},nH=({basePath:e,headers:t})=>{if(!e.trim())throw Error("basePath can not be empty");return new eX({basePath:e,baseOptions:{headers:{...nF,...t||{}}}})},nV={getProduction:()=>nH({basePath:"https://api.x.immutable.com"}),getSandbox:()=>nH({basePath:"https://api.sandbox.x.immutable.com"})},nq={getProduction:()=>({indexer:nH({basePath:"https://api.immutable.com"}),orderBook:nH({basePath:"https://api.immutable.com"}),passport:nH({basePath:"https://api.immutable.com"})}),getSandbox:()=>({indexer:nH({basePath:"https://api.sandbox.immutable.com"}),orderBook:nH({basePath:"https://api.sandbox.immutable.com"}),passport:nH({basePath:"https://api.sandbox.immutable.com"})})}},{axios:"fYIJi","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lqVsJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Environment",()=>i.Environment),n.export(r,"ImmutableConfiguration",()=>i.ImmutableConfiguration),n.export(r,"ApiConfiguration",()=>y),n.export(r,"AssetsApi",()=>ex),n.export(r,"BalancesApi",()=>eE),n.export(r,"CollectionsApi",()=>eA),n.export(r,"Contracts",()=>ea),n.export(r,"DepositsApi",()=>e_),n.export(r,"EncodingApi",()=>eT),n.export(r,"ExchangesApi",()=>eI),n.export(r,"IMXClient",()=>er),n.export(r,"IMXError",()=>I),n.export(r,"ImmutableX",()=>en),n.export(r,"ImxConfiguration",()=>_),n.export(r,"MetadataApi",()=>eC),n.export(r,"MetadataRefreshesApi",()=>ek),n.export(r,"MetadataSchemaRequestTypeEnum",()=>eL),n.export(r,"MintsApi",()=>eS),n.export(r,"NftCheckoutPrimaryApi",()=>eR),n.export(r,"OrdersApi",()=>eM),n.export(r,"ProjectsApi",()=>eB),n.export(r,"TokensApi",()=>eP),n.export(r,"TradesApi",()=>eO),n.export(r,"TransfersApi",()=>ej),n.export(r,"UsersApi",()=>eN),n.export(r,"WithdrawalsApi",()=>eU),n.export(r,"createConfig",()=>w),n.export(r,"createImmutableXConfiguration",()=>x),n.export(r,"createStarkSigner",()=>L),n.export(r,"generateLegacyStarkPrivateKey",()=>W),n.export(r,"generateStarkPrivateKey",()=>K),n.export(r,"imxClientConfig",()=>T),n.export(r,"imxClientCreateStarkSigner",()=>L),n.export(r,"imxClientGenerateLegacyStarkPrivateKey",()=>W),n.export(r,"production",()=>E),n.export(r,"sandbox",()=>A),n.export(r,"serializePackedSignature",()=>Z),n.export(r,"signRegisterEthAddress",()=>X),n.export(r,"starkEcOrder",()=>V);var a=e("@imtbl/generated-clients"),i=e("@imtbl/config"),s=e("axios"),o=n.interopDefault(s),c=e("ethers"),f=e("bn.js"),d=n.interopDefault(f),l=e("enc-utils"),u=e("hash.js"),h=n.interopDefault(u),p=e("elliptic"),b=n.interopDefault(p),g=e("@ethereumjs/wallet"),m=Object.defineProperty,y=class extends a.imx.Configuration{},v={"x-sdk-version":"ts-immutable-sdk-2.2.0"},w=({coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n,basePath:a,headers:s,sdkVersion:o,baseConfig:c})=>{if(!a.trim())throw Error("basePath can not be empty");return o&&(v["x-sdk-version"]=o),{apiConfiguration:new y({basePath:a,baseOptions:{headers:s={...s||{},...i.addKeysToHeadersOverride(c,{headers:s})?.headers||{},...v}}}),ethConfiguration:{coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n}}},x=({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:a,baseConfig:i})=>w({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:a,sdkVersion:"ts-immutable-sdk-2.2.0",baseConfig:i}),E=({baseConfig:e})=>x({basePath:"https://api.x.immutable.com",chainID:1,coreContractAddress:"0x5FDCCA53617f4d2b9134B29090C87D01058e27e9",registrationContractAddress:"0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c",registrationV4ContractAddress:"0xac88a57943b5BBa1ecd931F8494cAd0B7F717590",baseConfig:e}),A=({baseConfig:e})=>x({basePath:"https://api.sandbox.x.immutable.com",chainID:0xaa36a7,coreContractAddress:"0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98",registrationContractAddress:"0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97",registrationV4ContractAddress:"0xd1527c65c6287ec5ab816d328eb83bb4cb690e92",baseConfig:e}),_=class{immutableXConfig;baseConfig;constructor({baseConfig:e,overrides:t}){if(this.baseConfig=e,t)this.immutableXConfig=t.immutableXConfig;else switch(e.environment){case i.Environment.SANDBOX:this.immutableXConfig=A({baseConfig:e});break;case i.Environment.PRODUCTION:this.immutableXConfig=E({baseConfig:e});break;default:this.immutableXConfig=A({baseConfig:e})}}},T=e=>{if(!e)throw Error("configOptions is required");if(-1===Object.values(i.Environment).indexOf(e.environment))throw Error(`Invalid environment: ${e.environment}`);return{baseConfig:new i.ImmutableConfiguration(e)}},I=class extends Error{code;details;constructor({code:e,details:t,message:r}){super(r),this.code=e,this.details=t}};function S(e){if((0,o.default).isAxiosError(e)&&e.response){let t=e.response.data;return new I(t.code&&t.message?{code:t.code,details:t.details,message:t.message}:{code:e.code??e.response?.status.toString()??"unknown_error_code",message:String(e)})}return new I({code:"unknown_error_code",message:String(e)})}var C=[["49ee3eba8c1600700ee1b87eb599f16716b0b1022947733551fde4050ca6804","3ca0cfe4b3bc6ddf346d49d06ea0ed34e621062c0e056c1d0405d266e10268a"],["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"],["234287dcbaffe7f969c748655fca9e58fa8120b6d56eb0c1080d17957ebe47b","3b056f100f96fb21e889527d41f4e39940135dd7a6c94cc6ed0268ee89e5615"],["3909690e1123c80678a7ba0fde0e8447f6f02b3f6b960034d1e93524f8b476","7122e9063d239d89d4e336753845b76f2b33ca0d7f0c1acd4b9fe974994cc19"],["40fd002e38ea01a01b2702eb7c643e9decc2894cbf31765922e281939ab542c","109f720a79e2a41471f054ca885efd90c8cfbbec37991d1b6343991e0a3e740"],["2f52066635c139fc2f64eb0bd5e3fd7a705f576854ec4f00aa60361fddb981b","6d78a24d8a5f97fc600318ce16b3c840315979c3273078ec1a285f217ee6a26"],["6a0767a1fd60d5b9027a35af1b68e57a1c366ebcde2006cdd07af27043ef674","606b72c0ca0498b8c1817ed7922d550894c324f5efdfc85a19a1ae382411ca2"],["7fa463ee2a2d6a585d5c3358918270f6c28c66df1f86803374d1edf3819cc62","a996edf01598832e644e1cae9a37288865ad80e2787f9bf958aceccc99afae"],["3d4da70d1540da597dbae1651d28487604a4e66a4a1823b97e8e9639393dbec","45cdef70c35d3b6f0a2273a9886ccb6306d813e8204bdfd30b4efee63c8a3f9"],["1e448fdbcd9896c6fbf5f36cb7e7fcb77a751ff2d942593cae023363cc7750e","30c81da0f3a8cb64468eaa491c7ae7b4842b62cb4148820da211afc4caffb3a"],["6531acf1a7cb90a4eb27de0b7f915e387a3b0fd063ba6e1289b91f48411be26","31330f5daa091889981a3ea782ae997f5f171336ed0487a03f051551a2cafa2"],["54be016394d5662d67d7e82f5e889ed2f97ccf95d911f57dd2362c4040ed4f4","c6cb184053f054d6a59c1bf0986d17090d25089b3fdcdaf185edc87ef113e5"],["35b9ecd0499ca1d5d42dcbb0c6b4042b3733c64b607ca711e706e786ef2afc6","5624b476a5b21c3a544f0712d4817b06ad380a5a6529d323bf64da8ef862d8d"],["4ce0378e3ee8f77ed58f2ddbd8bb7676c8a38bfb1d3694c275254bd8ca38e23","5a16fcbff0769c9cf2b02c31621878ec819fff4b8231bff82c6183db2746820"],["648d5c6f98680a1b926bfeb01c00224c56fdcf751b251c4449c8a94f425cfcf","72c05ac793cd1620a833fbe2214d36900ebe446e095c62fcb740937f98cca8c"],["bd09be3e4e1af8a14189977e334f097c18e4a8bf42577ef5aafa0f807bd89b","6e0e72ed7eb65c86cee29c411fb4761122558ee81013344ba8509c49de9f9b6"],["35ea4e339b44ae7724419bdfbe07022253137a4afb7cbaffad341ea61249357","3665d676a026a174f367bb4417780e53a7803cb02d0db32eb4545c267c42f14"],["36457bc744f42e697b825c2d1afd8f4029d696a4514710f81da52d88e178643","7c93715896735492a68c7969a024b3a8fd538bffc1521538107de1a5f13ce9c"],["5b3a08ebcf9c109cc9082f70d9df2b9c11b5428ee23917b4e790c4c10f6e661","9d7b42ab0c20f5510df7ea5e196eec99342739077e9a168198c89da859753"],["21883ef8580fc06e59481955d52ece3aca6e82c8c9fc58e216dcf46f96990c6","51a6423543e6e8a43e71da34cd90f5b520b8d33b67c4bf857573ab9e301aa4c"],["19e86b77f9b581e81092b305c852faf53940a8f15f0a6990c414f04c0fa7ef9","515630e35d4398c9c79fc4ee08e1023fa47d8e03c6e7819c6d2ccef45398fa"],["888ab8eb4c31bb2ac5b54aa320dbe1a69c96b864e8a5f54d89c1d1a6b86c24","730e148467f6a55ce22c5296f5380df88f38de76ef0b2de844cd3094aaaf3ea"],["75e79ff13a894e7120dac17b7429c0c32ce7828f726c9973728c0977a5f5977","4960526e59c1c736561a201bc56f7d762641b39f609d273cc996f5d9197cfb8"],["640fe009249115d7254f72ecafb3006139e4bed7e9041af51458c737282d1d5","3cc6c978a575246e2ce4f7ef1fcc7f63085db9ff98a1b1f3fe374087c0332c"],["6d6fd09ccab7c26de9b3906191235deb5c34685580c488275356a05e209ca96","7157f81a34213dd8f91dea4f6df1bcfabc4ee091a3049eeeb3b7923d39b8645"],["5531ca1d00f151d71da820918f74caf2985b24dca20e124721fff507b5a5876","518529643d3f25e47f72c322223ba60a63d6bfe78cf3f612215d9c19bf29200"],["6192d454e4f8fe212bdfccd5b15dd5056d7622ffe456c6c67e5a7265aea49c4","2377a45dc630017ae863cb968ddb38333a70c7946d8684e6d7a6213f634b7bc"],["542fb44b4ef3640a64fdb22a2560fb26668065c069cf31d1df424819a39ff18","5dbae9b0948e0361aea443503840341c322aa1a1366ce5390e71bf161f78f8c"],["299ff3e3412a7eb4cb4a3051b07b1be2e7b1c4b789f39ffb52cba3d048b71de","1951d3175c02761b291d86b6c0a08387ad5e2a2130ccc33c852530572cb3958"],["628ce3f5367dadc1411133e55eb25e2e3c2880d6e28754a5cb1c5d109627e73","ae3e9b7d50964e28bd15380400b7659b87affdef5d2586cbefcd9be7d67c0d"],["6ea54aff064895eccf9db2283225d62044ae67621192b3346338948382f5933","6431507e51aadacfaf39f102a8ff387756e9b5e1bc8323d44acae55130d93db"],["28097d50d175a6235320fe8cfe138dd9e46895d189582e472c38ad7a67d923a","7f9eab4133d7d09a7ff63368d6135c26262b62336eca1b5ca33f2096ce388ba"],["619fd09cdd6ff4323973f256c2cbdcb224f7f25b8aef623af2d4a0105e62e02","2c95f0ae11d47eeae1bc7f1350f75f9185c5bc840382ceb38a797cae9c40308"],["641c18982ced304512a3f2395942a38add0d6a7156229c2a7c8b8dfbe9beb96","6f6288c9c659b6af5ac975f4180deffe53d516399b2cc62f31732e9d4ba9837"],["58ab546e51fe49fc5a382e4064a2bd6cfc268904412f86c26de14f28a71d0f2","124b7217943e7e328408e8afdfa7da00dcbc94a2bb85fd8e01fb162d2c2c0a9"],["a82c2fdedbb26c3c762a12f7e86b0e01e65320e0a25a8399d665f6e266bf74","1a1de28e253f3e10f44d0111e8074f882d7f42e5900780ccbdc31da372d3fd8"],["744c725a7455a992e3cf5bd007bc234dd4668dba285f553f38350ad94c1615b","7f721a87f48798bdc4a9c0eb88559e2ad7a74112fd901e70ea159e67a9c33f"],["434df142ddaa60f7881b6348d91687de40457de7ccfb07f0304b9e820705d0c","7fae425e3b53f97dd1f5b20e49ed9fe24ff1efc341ba5e017ac89cf8df0cc39"],["7a1e2b809dff46277021cbc376f79c37e1b683bbd6bca5317014f0dc0e1ae73","56790278a231912c334eff05281e08af1558e85516b4411ef64647c13bea431"],["4931b7990348d41cf8907be79f45bb7991fd18f8a57868351c92fa7a34cbcd7","ca35091815cdf0837d396e25aad6052ad32d497a33b123256cffdc008bc50e"],["250b815d352fd89f8210b624b147ea7d0a4f47bcac49f3ac9b777840da93ebe","1173f10e9691948b7da7632f328520455aadcba46e017f891e0a1d7da2bef04"],["2223b85032fa67292f6e1f822628e6756e5c3cc08fc252ab88d63d624e4dfb2","55619ba96a7dcec77832fcb22cd5c21c7dcebc0280d730cba0002b67e0a8c63"],["249b131e04de73af9820d3e22492d9ec51bdc0c4c4f34d95352fa44dd61f245","7576d3b5d136368ff01170a77d8286d0d1c7c40688862fb40813b4af3c6065e"],["6777915d9b4769027eb7e04733f8a2d669c84fe06080f55e8a55674dfbf9efb","640d0ff384c9635e1af364760f104e058e3c86209fa9d2320aeac887b2e02d8"],["2abe3f237681052f002414399111cf07f8421535af41251edc427a36b5b19c9","636ce4deaf468a503ab20ccb2f7e5bdc98551656ebf53e9c7786b11dd9090be"],["4d5cc5414758ea1be55be779bd7da296c7e11f1564d9e8797ceea347c16f8ea","1a680c4c410cf5ddc74e95ff2897c193edaaecce5b2cde4e96bbae5c0054eff"],["46c375c684b30adf4d51de81e92afee52b1a3847e177403372c82109373edca","1eaadc5783c90a0261306423d52009e991126b3f620e9cb6cffca41ca096f4f"],["2ddfb71f51205888118cbabba8fd07d460a810289bfdeeb7118707e310cb152","1fd905d07b3933be886f2518246bdafa6f33259a174668808223cd7c28183c7"],["386f3879960713d41fdb3b1e41bbebf26b1c0e27a9a75bb1adcc1a0d3e8547b","2b21498c0f34ec6f17c720334dc0f36021c2f87afbbbc8847d0bd536eb265e5"],["407eae62c6c4de3b942195afec3f45efec71ddb5e6edee3d427631bcdbf9b90","436e7f2d78268ef62c4172d2ff1469028bad1f1d0f97ab007064418e61caa8f"],["1b881175e21201d17e095e9b3966b354f47de8c1acee5177f5909e0fd72328f","69954b1a9b8bfccf8ec384d32924518a935758f3d3662ef754bcc88f1f6f3ec"],["7d545a82bff003b8115be32a0c437f7c0a98f776bcf7fddb0392822844f3c5e","34b6e53a9565a7daa010711f5bf72254a4e61da3e6a562210a9abc9e8b66d69"],["299b9fcd4fadfc4b6141457a3036aaa68501c23df579de26df69d4def89b913","b95bf2c2bb303c38bb396382edc798ca6a4847e573ce19b7b08533d1912675"],["551f5a4dae4a341a3e20336a7d2f365ddd45849351ec6dd4fcbedfe4806d5d5","5865c977a0ecf13ce85ae14c5c316872080bd36f0f614f56b6dfc7ece83792e"],["7a1d69c08e68c80ad8b310736e6247a53bcba0183b9b8798833bc696a0fb6e2","3ce803a20ebb3b120d5eaf0ad64bed0522fad1a0f2ce39a5c5cbae98c4438f6"],["28acacc0bc41d84e83663f02b36981a2c8272ecd72d3901164be2affb09c504","7a5aee0b160eaff5b5968ab1a0304ce58c3d5ae0148d9191c39e87668229e5b"],["1f78cfdbcc767b68e69a224a077468cdfcb0afd6952b85bccbdb96d1fb8500b","4772ba173c6b583284eb001cfc2a124104833f464ff9df096443e10ef3e9dd4"],["2774108962ca9897e7f22c064d2ccedac4fef5fc9569331c27cdc336c95774b","9e13d79b68e8dc8091c019618f5b07283a710ddf1733dc674a99fc32c12911"],["770d116415cd2c4ace0d8b721dd77e4a2ef766591f9ec9fa0b61304548994ed","42165d93c82f687635aa2b68492b3adffd516beb4baa94520efa11467a209fd"],["5e6e4ece6621e2275415e1fda1e7c4f496de498b77c0b913073c6a6099394b9","3d92ce044fc77fa227adc31f6fc17ef8b4ec1c5aafc44630c0d9195075bf56d"],["6e69c717b5d98807ff1e404a5187a9ceaf0110b83aa15a84f930928b1171825","1ee7cfc3a9744d7fa380ba28604af9df33ac077724374c04588bd71fa16b177"],["404318f2d2ceb44f549c80f9d7de9879d8f7da4b81e7350c00e974ebf2daef1","3934831b5af70d17a3f1da9d2931bd757e6acf2893236264fc7e0d92ff1a1cb"],["20dcb6f394fea6d549b2e75748f61b7ec03b6e52319cb14163373a9c22bb9dc","106a8c96cfb95a331618b7416d1498554730499e194a58fbf63019890480fc7"],["119000f277ccee013e6bb121194ec1ab5460fb6a96eb702a14079865f4170aa","1737a32f5415e8720a5606ec1dd4756f02e7c6817e3723b453d091f2d192773"],["45d0fb5cd95db76d05dec3faa12e467a308eabaad363a062353db3cd2d9b749","ae08691b5b0cdd19ec499132421638f470f493320e4003d123ab1da761b965"],["1257b3e65cdfb6367c6d0942327e799bc66eb221e70c6573a9862889eb51c38","593309fd45755dd2cc4afd2b9316bc4638b0c5ddb3009694fcb7b250d0c8a2f"],["186dcf9950f72e868014a8accf14aa36e82a7a2a29f86ba37f6632da4189db3","55684c9f7a043fc523ed78f756f834b4db823d5e4161bd79602c17d55a5cd8c"],["58791d5569f282f5c3b01ecdc9388df7ba3ca223a2dc1eed5edaf2a1d302fb9","6298d7dd51561a045bb4089deda9f40b2865589ed433e56d54554f8b45e79f0"],["13fd87144aa5aa4b24d5a7bf907d8280d15937fed262d41084898cb688fc28b","3fa54367770cc4479a857411ddcabe86627b405ce1cd14ad3b2863bde13abe4"],["48118139445415f0c1879224e2dee744ed35280ff00537260402a1741ec3676","4dfa39dadaabecfc54ecb7a25319444f8e952782d863790e42a9887064fc0c1"],["4ad031bb9eda84f2fe5d354c7948d41558ca657a04508654721810ee72ef158","620ebd5d0086b92c6009a42777b946a351c2c7ba852b57d3c9905fc337459ef"],["4a34abb016ad8cb4575ea5bd28385d2348e5bcc0cbba90059f90f9c71f86e8b","4f781829ad83f9ed1e1b6de0e5f4ac60dfdfe7f23cb4411e815817e705e52c8"],["7fc632d7512aab5356b7915dca854c8b12b369ab54f524fbce352f00eb9b9f9","2ce80b944fc9158005f630b34385d50c3ad84450a9e1e529925b3211dd2a1de"],["65ed10347503cbc0216ca03f7536cca16b6abd18d332a9258685907f2e5c23f","3be1a18c6bfa6f2f4898ebefad5a8e844c74626d5baa04a820d407fe28bbca6"],["1a8abba1be2e276cdd1f28c912280833a5ede1ec121738fcca47dc070dcc71d","21b724378bc029a5199799df005922590d4e59cae52976f8e437bf6693eec4a"],["3a99c22dafcfe9004ebb674805736a26aeed7ed5d465ae37226dcbe270a972b","5bf67552af08e1e6e2a24bf562c23225e89869cab9bef8becb3669175a3c94f"],["4a6a5e4b3501f2b7bbdd8da73ea81ffca347170bdfb6776a037cdd74c560fb4","5af167ebb259c2da88740ec559ee04052bb66480b836cadd0e2590c32d7111b"],["6890d95308525f0bac9dc25cc1189eb92d29d4b3fe61bc8aee1c716ac17b1e8","e6f23f78e882026b53ea4fac6950e56e3da461e52339eb43d2fdb2dade7ca9"],["748f4cf4f027efdeaed7c7f91ef3730ff2f2bb0bfc2db8f27aadde947f7d4d5","3a1cbc550699411052c76293b8c41a3a8a1ecf12cbbc029a1b2b6ea986fca93"],["7321f3f581690922cd0dec40c9c352aae412ec2ccdf718f137f7786ab452cd3","5be5130c9277cdb76d7409452438ec15d246b211dd1e276ee58e82a81c98fd4"],["6c4d6cb7e7ae70955224b8a912ff57ca218635a2436b36cee25dce8a5cdf51f","32f8c03c6db3246946e432e4148e69f5628b200c6d7d72449df6eeac0998039"],["1dad5f2e795ea6fa5177f110989516eacf8fb37bd6a091c7c93f1d73a2fe309","56b2298c538180e99dea3e171dbb5c6fba0bd0a9ed40537277c0c2373a8e2c4"],["1610605baacc9bc62c4cc923dc943347cfece7ae241e746fbe6c2c878221dbd","431a82d657e0d109d00dea88cf3fa9b999845221b7b5590a20c40fc71368c1c"],["6a4f5c787fb09a5be2b04d2eafa1e6f3d3c863ee22960eb0b64f6eaf6659162","14dbc3eaea6146ee7eaace5a91ed9430dad3a47e9ca2f68b455171f8fe6a7b3"],["738415b73e55412b0e582e45ff0d7bf4b1bf2922db581783fdcc75559f40e","33825aeb3fd8459999eb418d15102ba5864b069c6ea517f0c6e9eab8d9aca47"],["2603e72ce53985c70782774057a17944f7b4ce224a809be4e2b5af3606aa1d8","92822921809c42318f42dac4d773325f41c43069e990adac7818a45e2554dc"],["181cd967ab4615357cc96c82eae9152ce7598c1a1dfdd91a458bddb016ae9fe","5d562fdaeb0e12647e230e50eaf216bed52fa73c6b7378821a3bfc4cd66d4ff"],["1121726069b9ef5954ba6490100b226e0be53fef3e071b7c58a1286174b789a","4b25594cf4e9eb2d14b3f52f2661a9992234fc222c0a0d44517cb77deb9c16f"],["e543663969b915337f105f80995a77b356f1a51d8b4a4fb12d44364130e873","34b2e3c009fdab4cb7349a580df2e64c0098a123280078e5da6623a9ec6b44f"],["4e2f8909bb62de5ef65600e61bbf969293815296b6e23702875e049b3ce5c45","3cb81f2c21f22a7add26fa38a9ce5d9cce1bb251bd2698f90c34ff0a84f7af"],["37b546e403a1ba970c17b67c2f1361ab9c803f8d2b5cd93803014faa08861ed","37079184ea46272f5809b523d060686633f7995167897a153be1772fd6566f6"],["27bddca77f7bd7f66b3693567a4238f2e6751d95b0bcb409f6b24d08f84798c","6417a85cbfd6fc02df560d3963a241a986baacdfa423f65d7227ce49a96c57d"],["2de71a39aa043057d1bc66e45f804542acddf18f7a6d88c0d7fb0ca240debdf","306c1ce39ab46300f7cca0f3a2fbfa77296a27e24bc66b0b8044968ec0ee413"],["307c877154364c0c03534e7327d5a88e1380ceef6481567ade37a14ee7c1a72","3404bc7dbfb33b95d922d0693aaf9358f77888d7d95e773c38d83dbe2e5f995"],["79f09ff7c60850e5f5ea020722659a1ed27db4c95dca131f99552f785c8afbc","40429528c099349b426ddbf129497176951a64a53db5f9d8bd2be0252cb22b2"],["4027dc6b56d446e5972f35464eeac85c5254ef377c902d9fe37aea841bb5292","7c3ea37689ef679fa2f5c7e031a78e23d484a8317990fd34d44d95cc1db3717"],["645dbf78a3c228c4b7151450b5e65edb58e71f37e1e4bc5f471e0f1abd6d9c2","15cfe7850f327b256e23b00627451560c5c6ab60db78d45b7ab286afb6f13ab"],["1503ca373757677ad1d911a2b599d01c46eb879d1ce21ae171c7e439846a85f","583eb269b7030da6a0c324026919de3f9489d2ff6ae0e6320c36f05469ad66c"],["66e1819ba3ec4ad4ae9f7d7588d23baa004e29d3aad2393d52af204a81626ca","505249980cbe6273b82ad5038fe04a981896f4117345ac1abcc67e2525c0ee4"],["5ec20dbb290254545f9292c0a8e4fbbfb80ad9aab0a0e0e9e9923f784d70ed1","bdb1ca3a859227cf5d00eaae1f22584e826ed83b7ccdb65483ed5213dc4323"],["a5c1a5011f4b81c5c01ef0b07c0fbf0a166de77280f0ae241f2db6cba15194","4444521fb9b33d7dfeb1247d0ee1a2b854ad166cb663d9dd2e686909362a689"],["1f35335de40e00c62642dac2fda8b30f071986ce4f11db849df11bc45ad4e0c","7801a2c761b90fd4477ba0be9a775003d5dfcd959b1ed198b4681f15e7acbf"],["48db4798cf6821c1ffb8178b1d3bb6020e04186c96aaf4670972d367f4ed5f","781019494df95b888f1578f1b4a3f8e125ea60eca47ef9207a10630671217a3"],["17f653d904210148a8e74d8e719a3061683c164aa6d79c902a19f185ab437bd","6780e97985932c3860d810af1e065d454b1cb4be0e7ffe2d8cea7d52526e223"],["5c4d0c7432f9b0070436240f9855adae1467cdc9826952ae01b68cd52a3ad89","1c5747f968ed91261b7ae9bf1023c999da9816e37de602d6a1a50d397752bff"],["6fedd7639fdaa2f7bad4ca0b391710f6f8a7e890250ae8ae4252bb8b39a1e58","436a215f655a3fd3778b2335ffdc9aca6b98474e43d764c1f8362830b084f0e"],["7fbd45a889c5e9d127bb4f8474d6be7cb9796bbfff923b75e42a1ad4cae37d6","484bd12622a6ba81cd53049c550d9ed682a8e765b656b1cbff9bbea637bd1f4"],["17d984d47937263f7966a3e7b1eea04071e678494bd749c9e02b48b3234f06d","7b341ff08722c4e161005d0037204a7a2001fdda7af2cc1a0b04a027f115a0f"],["7f1822045db45ea07e1519c3ee1f7705915f35fe4dd8db1e8921b5d1c740edf","33d41e06b93320ad1b3d9580380ec797a05dac3f1cc8008899110ebefde2f78"],["7b19453ecb74b7d0e2a66b9890ff73bfbbcd61a266abd6d82dbe665bf32f34d","6dba2355420dac582b1f349609ea1c89b89bba2d1a68a0642f1dd12d86e73cb"],["273e82a15f395ddf2489a95685bec8bac62c4b459d1b28987d3cb27e4bc9128","653375b48a4cf5d5b101c9ef533039bedce5dbeef3f59e8f168bdc99b06ca5f"],["3006c9e7fc6a553d8eb4e8a47ce9f10d1a39576ac255ae9e0a4ce3869e76212","65fe9e2ef2aae608be309332d464f57e28f1df5de1a6a519751b056971f932e"],["5e8f384c8a4607fbe9789fcc52d54249d304d698562597d114c1d81452d3dee","3c8bc78066b5d947dc1e405e326ee55ea606c7988f666748d259850fa259a22"],["7841b2102e9aa103fb53a642b3e167b21113ea44751ab38e0b5ef8312654db9","71bf5c8308fcf9c4a7847494cd9bdd946fddf7d3a37e8bb0b201ff2343deb8e"],["40f68027420c11e3ade9aae041978dc18081c4f94943463aac92d887f922a62","499c6062594a6c7e21a3cb91ea451813393bff365a27a08f1a515439b83cf42"],["6ce77a50d038b222634e87948df0590b79d66087b01e42b9b6d8fa30ebb1465","35f5c46bb1be8555a93f155a174d54ec048c2ac8676e7c743054ddc52709d37"],["604f8b9f2dacb13d569262864063c2d4bb2b2cd716db6eeb2b1eeabc57746f6","68c6799e24f3b44eec3049973445174727a66970f1614a782efa2b91ab1e457"],["73d620f3bfe77f672943d448d7dc05327adf64b8e7af50039c469d7f7c994c4","4859deb36eaf0c802f0d1514602368143a33ec6ce8fd55248b59025debc6afb"],["3fd2bcd1c89d706a3647fbd354097f09c76636e93ae504973f944d8fc3bcc1","677ef842cf5eb2444941f527abec567725e469469192354ad509a26ebb3d0e0"],["39222ea924ac17b533c72ffb2c47ffdc11d6a7f7c70fbde3a10fb0b8f35eb2f","20dc4bd1089019bc1d7379b4feb3eae6eb5af59e9f253845da9fd633057e952"],["326f58994e1347f62e4102183215b5db956378d2f61f14aba4dec94577f53c","7a03284c296003bbe05178a1d82efdb7b8125511d63e20e50aed789c2e52e1"],["53aa8939c74d4ee58f03bc88bace5a45c7bfcf27466201da05dc6723a5f5632","2e32535ca7732904a048183247b04b426ecf9b39fc393a9cebe92fb1dc7a7f1"],["6cee1a03145e93b3e826e6067005f09c06099c98198c91c222407ba5c8c132e","beaecad1274e7c6e5476a100c271aa1a6f86ee5a9fa5c2f26124d5886fa63"],["3ec659b8175e1be1bd5a252108714776b813e330393f587814f5f1f32a73332","529a5cf9f8c237ae69a94217d173c8d19c156952041f5c980da557990863fa7"],["3d66ec5963d0c534d4139c8cef2e1ac48b3e7965fafabf58be26f903318af4e","3d3f2de7a95f59b683725ee6283cbaf31f97c4b600df9a4621413223a468740"],["7fb38ace8e0932fac2ea0d3eb676db8d684db1817e2e4d59da7996ce398b4a","68f92bd5768cdd4710249f9d49ef1d5654e497b9a4ba10bd2971366d83fb400"],["1c4a49314d6b4969cdd142c76ceb7682bfb868ace7f7568b0fc8635bda5a9fb","5fc0519f1f4cc10b5771312458748c036313b87707ed0540026ac64a5955aa9"],["3073c95d08d3b97caea5f0be16b2789bee766f76b7e5499f8ce8f96abb0f344","52a8974b4eb9a1f6a0ae2c83cb4715bf18d73f057255fcb3f63b74f7e78f590"],["44485b16d597a5de3604df6f7ed7e00b8aeef9e7e8dea8688255153b8bb16aa","6cccb0ba170123266f24b5d93a744397dc2c44820edc4f8f5b9a0f5c9b3b940"],["7618f77b7b32d512688dd62e0b48231d9574c6361e8be353a7dc04f7c3a115e","78ffcd16d80636381ca231aae70d99c9e20298b4f5388fd823ea9fa2b8ddfd9"],["7dc82fee1ef95cf5b3720fcc07f63246654bfe39762627839da40e51c75654d","4c0ccdd70955da74558de20c88352df8a02aa97e4d5971c500e884740a8cb62"],["7fa5d460dc10cbb418b444d9bde97e92c70a99a222b99f244dccee7e62cc04c","636163901baa5b7576c38c43407af578b8c4607e01e86011ae2dde587a89f84"],["758930d46006623a756c89bd0cc378f6a3c1f43c9a0edbb42274c35e75c16d2","1d74dd9f81c2fec811b8cbd6168a745b0a111932b2a345265ef2853b50b6245"],["7332ee0626b044d664ef228f8cb84df7c643e52f6a2591ae1c9007ad61ec16e","229bd8e630572cbdee54283234cf3e9f060e6382f99943bf234119d47b54470"],["78a16ef803aa20a075bb2f66c61bb2dae5698bebb94a0995fa74c3d53de1614","246d588b68edb6fed96c128349908c42dcd64c46341b205e79f4aed9b5d3675"],["6e1933939bd03b67bba753cc0cbe7d2f25bad68c993887ef8c9e2fcd59b0647","599413f7c204a11a5ce315eab11299ab7326603412bb00bc1c59ff75a37d6b4"],["4a79957a5a1888ad063b51c69565a2b48e8eb917183e220a1c8d3374526d30e","1f092de0e069bba7fc5386e2e9a114c1618f88c4b95e220cd35ffe96f99fcad"],["3148aa3df9ece39aca84f59489f2710522216f14be6055ee0027529d1d55e2d","617e9a52a92975db0ba1977f71116f7058a0d31b869ac7f3ee2fd80b0c5100c"],["5c1188e72384160ae39d07328346cda4f6c12d227448e6236f04dc971625287","1643006eb3a3bc6aafd5f685cf054f2a572e6ca58c0118bcec0b833741f116d"],["3f72efc93c9b71adc4c51d8fc69d3940b20d08733af2b7d05140fdb1d1c1004","7399259987c8f4ebfab46e522380707e58427d3962ee0c2a91760813f76d232"],["3129b34c03c51aa8f611e91d5cfcc9bd3ef108ee66e6d3ee35a0e0e50055bb","563b18b5650085efb4cf179a029e6afff27b1d3091cd28eaa68d24fa1f801c6"],["16eac0f9fb4c67cf89a7fa4ee615bbe731d8edcb709a1b9b50c7d873a530f52","7ff8288b6e199ca8f316192881424a37fb080c29daa76b1f0edaccaf580a80e"],["75f6b6028c43ce832f65d7e8e620d43b16cba215b4b94df5b60fc24e9655ee4","35e9ccfaed2293a8b94b28de03bcb13eb64a26c831e26cc61a39b97969a2ff0"],["3c6152fe093bd6316897917ec56a218640ec1b2148f21db9b14fc7a5ff362e8","6eef2df27ae7d63a28856b07b73e7aad7ca94f317201a1e675ffc6f9a1710dd"],["54e01b5fe4fd96052aad55b3f26b1d254dfc7e2525fffb9ae0a77eb8cc5579","7c3d39232ab333675b219abc766ed9b4782c840e6b046614dedb8a619696eb0"],["d1e63f8ea8a76429cf254a6d3b668761f0dc572d4bfac4fd56d9eaf58fb6c0","2bd0a84d3908a63085824c9329a0983913006ba155b56a58eb3f9becab29c45"],["2d6122f2a702edd4da7385b1580796a71d13bd72be94cfb3fec01149c006c2d","70eb282fae992efa6f5915e578b640653549f23385ef3a29ab29b1b9b8ad63b"],["752fec14beaadb5ddbba6b3a17fcb86579fa588ef407fad0ea07dbb22a640d3","3feb6728eca21a1e84e8f9f23010387a53a96a1cb62d86fb37996150a1299ef"],["63f94a92f27acde8f5ed949b459506f51d70c85bcc61a34d647264ecc53c65e","37e5dce0646ee66f4fdb93b82d54d83a054948fa7d7fa74ab6b36246fc7383e"],["d6aa909287a2f05b9528690c741702c4c5f4d486c19a46c38215f52ef79c7b","5ebe1128dd81093df4aca0df365d58adab848d1be1a94b95eeb649afd66a018"],["12866812b3053e2f7a9572bdaf5ef2b48c6fb62a0eed9ff0356df50e7d05557","6785f7eb2cd1c120e4c7167b46861d10117040a2e9f2ca86a71e9d67df90613"],["46a730d05330b1b13673cb8a1b8f45460035e4a9f1a1751cfba099c4355c1c","76fb0ec6cd16a8141cdcd875c8b2de9fce42d296072643d148ac7e7fa7472df"],["4bd4380a22900bd34835e0a908eacf4b6edb61eda0cf483f9212453b37e7516","5e9551cd20d8d7ddbf4366880b7d5267385afa1966ff30da4baaf273b009d29"],["71f1994ad40baa2922424ae222663a64f93d8b67929e9a10f9e4c1ab19f3833","85320fe68ec0d37cc19fdfd03589d66906ffa4046c80e1b094a85f27676346"],["5a63b1bf5232f28f808765c6be7ce1f81c52145b39f01c879fae0f4303bee61","3bc5d6df68bb6d0577bf9ae2ae59ec0e9b2dc7dd56ea179fb38a41e853db950"],["161ded55ff1087032381e6c1449704f63ad2d88df82dfc44a71890fa09b3941","78a52e0013842037274ea75daaf8eb4afc04ccc4b07bfaf3f5ee47d165e01b"],["1bfce5229c5fbff5c0f452a22317fcfcd9262f23df41840f84fe7d44cfba1a1","66b387872c00e63c73006a955d42cf49c46c5708fc9d1579b9ae38341b24a3d"],["56d47dadc9cbd1dcb2ee3efcd5d4af5e6aea71df10815c68b54a14e81d11b44","47e966ba54df48e9b612a903685e0060a67e4725402e8cb4cf654e54e813a3e"],["4b1c44438afd4ddf20a2cf612df2ee494ce84c7274c5529e857693e73018491","430403bd31d8f0677e06abff7159384560f27b9622943fea1a3192f14bf40d4"],["7f7281728fc2214aa1dbf13176a4624b53814734abd570eb6ef7c7e32379606","312da47be347fb3fa2c9089b38df372560dcace2effeeacab4d96ab11567295"],["16a28884a1be8183e0d3fc0db84a9afbf47126fd3be548c2a584aaafbfa7dfe","7c3f57b3b895564ba562c1cd80b71fda6d2e611665c6ab87744f5390858fe24"],["323339f37b327a731232a9580e79952063c7c232bd1380146d8a83c285f4b8b","4f16be1d983c7232f92cce6b9690695978d42cecc8eeb8c206e125d1098a265"],["624d26cbaa197e104eb83cebf2adeed09a5cdad359993fe5e3529d4d0def21d","261b7da3cfb55c788977e0d8d640e3e93ae5a325d962ce85c816d7d32cfc430"],["f24ecb7ee83a3e28dab54a330dc93d0429a7aea36412e922dce8fbff40d60d","b043e36a258d1df1d21b0cc7be9c4dcae1bd4ed326c110e668ac23d86805a6"],["686cea46b710bde1231483bfdbc700cfa3da6ecd5841c0e0c782f9ea24328ec","7eb7407aa58edd6911c7c7e8d1e03bb52ead4a2415a0c33325872ff3a521dd6"],["3866ee1186264549df3dfcdf8705c0380c9372eef6d4081c2454d3aded1720e","634c6d3e8eb8af652a4be73e3b613452c2213104ca875b66b4b15ee5b1716af"],["484c687cd2969a1d20a58cdfb9a60f280a473284503b1ecff5de514aaf8206b","34d44d26b7427e51a646d1b924084762f5b461685450f21d6a472de565bebd8"],["203561333771fa0fe22c4033349f7b877d15b0542a5598e81e067968768247a","2b6a533aff6e2163a36a2a89cb7415848bef48db40f952ffd380f47676707c2"],["2ffa6cca6233695760251206fc5e34c8d3692498589478cdd3d5b09f0b7c05d","6c57d605478fa9626c4ed769554d075daa53e1a1d0bd4d94174d3bfeeb11ad6"],["5dccf0fa46a5571f204d0b033b45f299cbb3d9f80fded57253ea4f1c64faaef","30a38e131ee8756ee5ea2a3e16618a5dbc28b5b9311308bf037ecc2039dfc7d"],["57b0a2eaebeafd950221facdd24790d7d1ab8883e5c5d55635f0d14a1ee4741","7b41cc478fa6be38417271db8ed12efc0da6982552c1496025d2df0576bf4ad"],["611b5725101f611c387ccaa13889ecf3bb5595071a179ce350029bfca4ad7f1","3129755977abc8995fec7eec1123a1561e429fde37ff36af002d3211831ecf4"],["1c06bbd0c52fdab9fcaf680c7a93fb821e538a2ed79f00f3c34d5afb9ea6b31","3873d3bdfe0be0157bbc141198dc95497823cc222986d24c594b87bd48dc527"],["275cdbabc989c615130d36dabfa55ca9d539ed5f67c187444b0a9a12e5b7234","2b7f723e68e579e551115d56f0ae71a3b787b843cc04a35b9f11084b006521"],["6cc702eb20f8b5940c7da71f8b1801f55c8c2d8e2e4a3c6c983f00bc1ffdd95","5d15b3727bc66f3aba6d589acdd139fae115232eb845abe61fbdfc51341352e"],["44defb418700cee8c9bd696b872adb005490512d8bba081f8f99a9f15cc981c","3b2072cdb1d919b2b65b5cb3557f0a3381d7ca293c267ca4a38f83e77bcc96e"],["fd83ce77b1578b3a9b8c3cbeaddb1504d2fd4a19c901c21ac65961224e4966","110cbe64fc10c6b9c66f15ca406a35f50b723b35d83c5eb9797a57f8395f4f9"],["9dc6ff90e341875e113bbfb507724dc7095a280d2f32cb6ba61a1e0c2d2aef","4aeb622896c852c2747454e8f172c9482955a42ecbe522d6ce07ecde79d0a51"],["71c58b0e47b9dd9107ebd8a8c8fa9f0534e78231bac612c1ddc7a94edf33eb7","7f90edaf4792bf8334adbaa0f4ee7c654312725af188682d75f34874c4eccb9"],["1f6de1f14988778ceb2dfe844f92394f1f1e72fd1581ceb3bf336c95ce50345","4f6007ed4e022d2ee9fe4ca8207c5f6c766c4f3b85260e941fb24ad0dcbf0bc"],["3ddc3ac25ede4a67a97547ed27dc920239b585fb3624177e2e8d59eba678115","a9afd8f8bb759cbd1dff2addc63f47da4ba1291ea34229c09c0637dc5c8d24"],["c56b0269d8431556e471cab9d70edda3a37b391696f107b2dc370631de51d","729c52f6b134f733eb750c14bd9f95c077f0f6f6ff4005701e5bedc6544599d"],["44d32ce19ac6807cb22e4f25fe1486a36a13926f147fbfa054b63ff0446177d","212a21e8c124c9cd37c80d2dd66913ceaa6b6f666522f115c39382b2d5925e8"],["35dfc16f3ae6ccc06a267bf6d931601e52f3e45359ffc513570b65b96adc4f","74311d10f4bece01b5ae65a6affe5c931463aa1b73a3320eeb41bbb7bb1ff62"],["e0acd9d2d907031b319b80121dc90699d003d220ea785d50e5033cdb3b1a03","3911ba78d6e507485d6374b0f7d2e6198f6462a7d6d3cf046404a07af690357"],["3c57918ca254c0cb7dac251ef4e10c7d82327969552eae15d26c4c52660922a","5fd5f5ff3f14e671548074114c72c48409df8a2e71fc8aa3c8acb506e2a88df"],["222ad8b61e219ba2b581f606b7c996516850a46a3db72fe1f72b5a9be6c324c","72015a5e2db648112abd284fd867b59fc5606645177d26cf6e9a655c9912d42"],["3c86d5d774bc614469768ad38f7be9a53e9a233942c5c553b82e49aae684764","480febea8229e130dedffff89c11f3c43e11724e6bd89d5566d78752859d41c"],["adb73bb8352d0c10175df371f7868ef2c9e0c79ac788430c480c0f7d85c187","60b564785248111502e6f39c4994d6293fac22bc25f4d764b2fb1957d3c9bd8"],["3836ab8b46cf4f453a22532c886940b982029b29c42adca90ded5bf77e6bcb9","7b15e91d6355f147b171a90b064a9d8b2d7bf3699bbf4987664c61c950d8996"],["12ed96af1a97c45ec31f1531e96f6fb28a03ba52ab8484545fbe0dddc97bb32","6d1f522b6c6cad0940cff8e23decc72bb8d4164696af031415508b025aa8be1"],["27382994ae5878223ef802e9b4882f481a1b4008f1eec8484483471f7aa742b","c31750d242b3975b0026a0e86ccdd17d0f680a8c6f53f197fc25eb1f777917"],["431677eba3715455bc235557518a74f3b111a88844ef13e159ad44bc16de3e6","30000e1eb6a17d9df776981e65c6e500fded1ac12003adc9446b269812c9197"],["4b563e6f42589671579eabfa2cda5502b361c46a5ac8d45c8ed44741a925b33","627bdb41678443fdd1aa607709e9699b652308615f4bea760a3b79ee0d9ab5c"],["2932fd3f81fc973ca9def6b7f1bb50f980fe589187cfe9e9f52ba4d356cf2c8","1e6bfd00fa976c4770263a227048214c38850fe0f059e7b3d2c7871ef07d68f"],["e44e4f3d96d9dec775b996be57e57fdc28e7c68023109b221c414a244a0dbc","58b1e52fa274812e5184e00e9ad812bec2463140adfb4bea3b2d665867dcc9"],["7fcb89be1f4bec745887bb891e53fefd665c53d00a9e74de16b8a7e1f7adfb5","74af0b06633f779897e199609c71cc5649bbb65bc2c0abd4c678f0480c198d1"],["62a381ffb904ea3ff4d451d4c8459457cdbc3dc2fd2da646a95d8c1e90c0b7b","1ba058658e09db9e319fa73de8ab4a992b71e4efc22c273725bdcab84e2a315"],["1b0fbb7a84c67e668450a54449c7a46261a2d355589f8b84ebfbaf9a77ee938","44f8fffa33dd33a6146c35d196595e22cc4a215f61ee9197cd751400970a1b"],["78fe920bd96a356d4d95ee34adafe8fecf071d3107c36f047b4024ddc4b3eea","6162f29607fdbec10181fbac6e57d5cb41b922c5791fb24bd28bcdd75d16c41"],["5629b849e026e65d119ac11821d7ab7efd9c52226f75c7427505d6818bb0c8d","1539c0f90970ee8b490e45bbe5568170e5708521a0e59f976be680595906feb"],["62bc853f349bac8c6e5921d27ba85dbd9ba20a375d70a7bc008928f3e123b04","6acfeb1de05ba43c3ef1a9110a983a320e77b3ca294abbc04aeca19b194f26f"],["4cf4bed663464418285cbae359b5d84ec76b5997d24f3640984c7663421190f","941f818e3e3e8fb1568da85217d17f9250ebc948379014d900a7b1a848494"],["52ff3d9ffe9a302f6dfaaf74bab57c08027d5cb699a69b30830540c0a2d47a1","987dd8876873778d933fbfed37aab2f7d6f669c37024f926b1edcb2ca55782"],["1109ee32f0bc53de6bfa457060b366e909d7c18061ec9845f46ac715496897f","38f36f172bdfd454b9285f86e6bdece8fdffc95182c7d801b03c671cc55139b"],["4b4482f1d84efe23dadf3bb10df3dcaa251312dcdd604f616f1eb540e1f3232","7c9c149dcae9135f940fb54482f9c3cd8193721643a6e23157b8020410d439c"],["69cb459b9e415b7581ca163611c470d875971d5d7949de732d1f0f200544a73","a7136fa9dd00c0469863b7def3f83a5611ed628810d7e807e7a873da5a9897"],["b66a4e32ac9a4baa8f64780acd94ed3628b2b0ea874ba4dece629af65f9e62","24328ba9996a24389658e3467b8b90dc3927ef8419fe28b3f55b1c1aaa51915"],["5ecc3080062dd451236de0e4eb91c5c75100733364bc5469f5fa76f79021ecb","6da4abb9031a27b5be94529324fad8026e7d871570780081b0f424d4fe543c9"],["1e3146f00880bb22486d5bc73e54367d54251f4002bcf342d0393b05a4b9ce0","23b6fb8e945d3205f633ba724202db5a99305f807137edf942cd60eef867699"],["2e1da8013285598b899f026c6974185db12c97b4c63509769d3d4ad1d18a4e5","1e7e7b668674d1593c39d58bc7bccbf568208732b3519bc2cdf93db34366862"],["d26c3f389d81709506f184b53871497c8d36c5c9eee8e3737358204c1acba3","34649c3d39f3b825947fedbca215ae30c5a5995e93b1c8efca4944cf85a082a"],["91300478a83595d548f32f259033291fc7d083953b0b8bde88c7559660c563","e5d2bff57fc6551e9b80c06ac7314a71907cdcc66ce82f2cce721a670df10a"],["1f7abcb9d462c63ffe92aa56619ae8590089cca4d93ee3e5f34a63882452cc7","7e9f85c7b7ca6e9a4f3a026d1048adbeef69ea9d876c6f647c257b879a81bdd"],["4d2caa1323012e4c83b0ad387308b8aef5637bc35ddd882e7f5e41cf2ca410f","47150e808c81a540b6f8864e9d6636589cacaa516f82caaa96506edfbd6f0e"],["3c10a6083c38351deb3e6d1b386827d0acf48979b66b95249eb8700ec26b069","47e34bfe561d903cffdd1d849b85aa3cbd31cb4a9bbd8cc2e5fd2f95016cabc"],["758bd54868eec045d0b4d3d2bc415d24bce13fee47cefdfda46425c109b657","3392a7c66ea3bd7b044680bbe9f78ae86752097404c067e9d2572f55330df83"],["19e718e0ca1d2d6fadbc6006ee7dda7a385430e29f5e239cdd4bb7c3fdcb2f8","5c68249b7fe03ea2e13481a63b6cd4bf74ce42009a89fee0b3f8f968b3ec709"],["28077f57ea62401806367e6d54fe45d02de5b072db787ffdcc3854e12a3e855","14f3762689072f5fb41d03e94b01808c739f6d42b7b785b0e464100b150efd2"],["3b8a8cefd017363ce867265af3293cec081fa589fe561830f0078778cbd338f","69ccf2383cb7b4f9c806d72535812483e7c5e9a1a5928529d64ca7e085e758d"],["77878f388d22161a2953e5aca6bac1ea480e102f329574b4b201640d44a296b","7eb35706a90a03aff7c2fecca72659136547cee98038746db5aba16fd7178df"],["97332e6da70961f2ef31b7b628f1018d21db8db015922a301fca7d6fc6a8e6","2e37b06f639fc7a82601b744570a2619e543cbfaf60e474107fcaf4686d3223"],["a81518d452d3aac48bf0386c3ff170ef4e684a4def242c964e129c64f4d647","37506e44c85908ec7b7adda9547fbdcc2e3605151fefa77fbf127ce3bc938f2"],["e80336b2220b1d666074f6b0dac85353d0e4c2e8bd0f37055a2236a6a9fadc","1cae76d73eda7a5964c5d9d3ad6748aff51f5543c56441d2fdb7b444a39846a"],["2c01fd8430ecb44e066f352c4f697fc9fda177dbe162f82862d7b9ea8c918de","6e1dfa99640fdf5b30603d34c7c97c1aa6e6b7f3a2c52a21fc64b0fcac7d591"],["744e37b511cd0ddcfe15f3581947014c159de81ed055d15a13c7a2d1fa39f0f","685caa8ff6979a6c63640ac638a3f9c75737f2031bd55322a47384357af164d"],["40e627ff84e1a7a9068b4368770f5956128a4d9e9e33e9cf5e24d9a242149fd","2465bd6cb20bbdf810e2bc5c3c458cecf4f3aa163a7ac99c2579e5f33417f2e"],["5f635af7f554a17bceb6ccb6e637abf89ab6dadd399189b0a0390e87b1896bc","2aa6238a69f89665646c0e3ca2ba5f709cc6e14351cf71e1b00ec45201417a2"],["5edad3063c9fa8305978d7e6a4e037c9fa519b8023c7608dfc3b66e5c1e8985","49f405d07d7d01919da51159ecdad1031a5ac208c026fdfc14d38f633d92183"],["2fdf2e8a45858c12926a1f25a62255fb2d02d0149a15ef669f859806683e649","61cfb686bb31e2524470d4ad2ae09e3cc91b16305a21d748098feb1d8ce3b3d"],["ecdbd7c37f1dffa3943977278da3bb429afdf948b4ea6cdebace3d3be82381","190b67fb34f7f3ad6afd3d6b6427aa327547d8ac0fb4deeb0feeba1f63d6c60"],["233021b483f578dfa5222f8cccba5766ceee0ac65f6d4a3b1673b302a21fb3c","7d4b6d44d175d4b593f06f5a6dcba2cdbc4eaa2097abaf613123546866cf4ef"],["42db4e953c2a7a743de9fe20c5798f2247f51db4eabc6f40e86c13909a310ce","12c1a0764a0b9f3666e431923ce15e7fcd0ded5ab153f0b48d362cca1604e65"],["30d539e2b545fb957e40e2255f6463b52d227c9808472cee6a3d521aa283a44","5f9eccf747fe6313570f99e845db32b40070acee9ce9e34da7f3c29ca53a07a"],["4bd64e5ade3e2733580a6116b4af328751198e7128f9acfe3a3496b545efb5a","4d584768900dabfc0dbaa086632b8051bb3905ef79b84d96c01514441d0cc93"],["62d6e771f02e591557197d13c3e77dfa2d1794ac1808407bd8227c4be31b466","5c6f5607c1808e899ba36a425911fa8566b7ea9cc80de8a80538c0fceb837c0"],["5ce406218cb2852b1d2fe1836b19462f664631785216e87ffbce26030e2101f","5225f107743c255ab50e7be4a090fe39478d1ef4ff558468559d8cfa87bb94"],["670286486e8dda3dc66b0ed3149be7697d3e06c8279844079daa7e42d5af728","26becabe7430380c56e320f5ae3329569cae7b0af06fd5327ee23979d200eb0"],["3ef448df33a4394c43e93e5850cd0c5a6dcb18ae1cd865d00fe8ede9336a9f5","56711f6ab7e0e4f7365ac34e284ac2879f40208c46f6febcc1dcf7146ecf015"],["4b63fc130288e92f2d6ba238caa7a6364804e29829ac037c57df32fbf762bc3","1eb8c80af55278b4113286c038fff2bfad2da62763bb03426506b869139da0e"],["4e7e998557b29a95f805a6e2e26efc1e970108272d4755738c04f28572295c0","97cfcc2f447bde61bde71049d8200a74a3028b21703bc139143d81a3623f09"],["574b67898f02964c408f68e9470e7b615be037e40b824e6617f89cb56c21219","49392d5f8e6740a1b0b7444f56d7a17363f8656c6e4c628678c86223f2e46c8"],["7e8cb50ea5d5c1b09e219e7305bcb601d99b6d7185b1c388aa8e36fe1e56554","47fefa308645455c12ccb5817da338f0c4f423b341aff4a9d158891a4fd69ba"],["67266dea9e71b4ed2bf24a597a823dd048cf31e725db511edceac72998c9ef6","39babd65850befde1f7c28e41dbdbb4caf82bbcf3bcb5b33161f1c2960b2d8"],["63e99c2cb9c74eb9227d48065e27abb8f606df8fc83b2c44e4ea38b046bad2b","60494a53dd13ecf34e08079d343c88fb655d6d810785af81f08d5aa9bcdcf9"],["3cf0600b0f5a2a4eb78c487cd385350e8c7848e3f6983231881d7f1bbe28543","56dee4288528de609976ef6b903b652127c37b0590e91a2fdbebc3f11df2628"],["758f09245fa4b8b23d290ee2b3bfcede199b4fdb11f3cf2502a8ceedd61b129","622d9baadfde781e985d9722e0a04715666769a4cc7a9bea0b96d6386be1746"],["38e1a45b81492aa95d7abea2b08b8c14dc0b8a41108b036871fb737910ae18c","145c611262656385e5ed6243568cd3f9f59dbfed7a01ba11e22bb8bb272e08e"],["206e54ca53a2f155bd4fc45bf2edb77798ae6623defd4cf22f2dd4a7d119dad","6c94e7f0825ad81680e4cdbcaaaf4df806d57a0d1fb2331926c3fe2b79d22e8"],["56e98d2862893caebf66180e84badf19ffc8b53041eaaa313ae7286a8fac3d","526306f9c01afd6e0c1198ea5de17630f5a39c4ecd02d8e6f0d613c355995c6"],["4fa56f376c83db33f9dab2656558f3399099ec1de5e3018b7a6932dba8aa378","3fa0984c931c9e38113e0c0e47e4401562761f92a7a23b45168f4e80ff5b54d"],["450cfaadfecdb8a2fbd4b95c44cb1db723ee5ac9677c9c188b3d7c8eff4ca58","1a552bdfc0c81be734f1f6ca9a6dd3ab4daa61c11fb53ebb7046eee25d617c7"],["6fe20e5c8a8004e33eafc84d16ef770f2f0b7bace19adaaa150f987d295a34d","28a35040a2ebe9a14a162d3208d5eabc6e2f3a8310f926bd80be65aa71775e2"],["1bd65f45a35bf62ae8f9ffcbd7de2976b90518b6820c219f039c50043bb1edf","fb5f0f8659f9b6ed7cb0ddd7999506d0c20b26bbe69d1915a31842cfac41eb"],["4ba4cc166be8dec764910f75b45f74b40c690c74709e90f3aa372f0bd2d6997","40301cf5c1751f4b971e46c4ede85fcac5c59a5ce5ae7c48151f27b24b219c"],["21cfbc678f5a279ebb6ed124273c8df37eaf12a2d04180403ae6b5ec0b1e1ef","4478ed6a346d899ad7b0b10350270aad39ddd5b68529297e4c91a54357f0a7f"],["350bfefbe3d864eaadac9cc1195c14159bb736be743aed7380d2384cadd2046","5e2a4b3ad0e1d7b9b8ef72b10d68a80e5ee691d7db591fcfbaad6240d41da8b"],["529acd569127f73c8d34345f87e96cebfb48ee12a00a3861cda209337ed94e6","3120671a89b705e5bfd99b0e7fd2118b4914a3ac309b3d74527cacb5ad7491"],["55d3d7956a97d10e65a4d8ffeba40deaf0db0b57f8e022cdb3df6df613f5c6d","159e59a6f92f48fcf85aa96c1a03749a4c4e2cf9e2bc94dd36796daebd9b8b9"],["405f019ee8f2e972a005c549b0884b5051f63d1e78480b73208dc07d8c65a1f","4301a3d0c285ad309ff24a12c100ead7f48ba1368143712f32ac141ab4d9e8d"],["376d59b298d982f02dccad0edd5bbd4e5e8fad7898750675ed0856850a7babe","5233b12bbc50564eb61cc098a17d3d97f06ec7a230380e4c5d3b725cc318eba"],["2f55624af6109ef04b2ed035a44a904ace8627f55889f011f768aabf4de9a38","7f64209ce7dfb63337ccf3d8c14f4093295f86996cabfee23b1655549aca089"],["3b8965e942bed2714bc2e685fb103496e1e3595ac6a343d6df45fb5ef6979ed","5b7cac7a165cb69ae103dd9052fb39c00ed0aad47989005aee53972d82d45b5"],["7abfe3accdec1eae1a50049efdd9a8eb7c2921a08e8bf1fe606e9d5a4039ec4","3af178e7e831f8148244d2d2b284a32991852db6212ad0a9d77540ef648a5fe"],["4983196df6ad7d6f0a8d76f86af3863ad8611374a03fc0fd00793181dbde9d","204c1f91b70f975a21d24a8face664e496f00f602daaafa69a3b56098a4cf89"],["79e2b91c1531a3b16dbd53e72d94e16bf265cbec261658151acfaea3718ea72","3d9bdb47e8b148c1c5e9e694ffbc2cf71aac74ae1a85e8d8c3f77e580f962eb"],["297efceec61b3be17565843cae465c52524b4ecd9331a4170f54f7de8c4556c","6ccef1733624cc8b973ac63dd54e7a53604929affe81c3439525ae5ed6af993"],["44f04b1966264a23ccdc870c8563ad2efcd4c8087b5469b90e792287a5581c7","1c417f0e9829fa3d3cbb7c3cf4dc7aac04c5bf66ff3f86b833a42c533aed1fc"],["6ff83f5d8b51db3be0bda80eed2e2adb7037f2f58f705e88f0f98197431ac26","64f59b8428894c2b7afd740866065ded42e716c7d48accd3f117f22768ed9fd"],["14aa8187c9559f77cd1cf96b2dfc949182529936f2b0b4050ea56e134073b24","5f36508c68b1dc586f3fd3f4e2bd29c6d8258491b8a6aa19ede811ce0d3d0a1"],["95e8882a68c5000d1c2be7c0b43e7f2a6f8de906485241f0285a5c73a27a83","1e4cb67207ab73bc1e5d19fa2146fde6d03021393b77a55df4ddda1fd28f5b1"],["2ae0704dacb3da47d564514b4c3543505b403ba09a248c6e74593cba1867ff5","5a4b5818088dc9ef4066b90a8893ae80fc89584f987ec1928ef9d72cea2bd67"],["61a10898a76fb99989e51c0e823cb60b95ec7ccccb917c42b2b28014f5fd94d","23d8ec1de45366d3b86c64c2da05a2ce3d171adf52ca5522e652ffd0eeee795"],["79884133c879cf07734976fd64de220c5a972e04c2a3afb74c362d6c3beecbf","2aaa0e6d4891b792b5643fdf09873343cd0e3fbba3cbd0601b481a4083f32b6"],["45f73d2fa82be6c5ccd0f62d2237efe8727c479967d27cce28e42b9a44bad5b","2fa4932215f72d56d8be5205c5851c9b3e5f2a14468e4a7acace5437c6b27dd"],["37f53f771850f52f9c8f87b53c6bf0c93c2bed76f5fd1d5697356d0b2325007","50f1a052b79b446fbc7b93ffa1a4515f6c3be3a76a2b0bc5eb8ff327549960c"],["71bd6d23e0d2f312d47582efa609101f15b9ccc571fca8ac4fe3457c67fbc9b","3b3fdf86bd4c7fc26d60540a6439b4d179dcbf7b91efb0ddc60dfbff9a148c6"],["78219ba049438385b829c13a4993874a4a326c4143de0dd581c7b9956f99b06","5505f1268dcdd4ee01b77abac3bfdcbf3f0513ab097c69ff777b4a631aaf256"],["b81e924a86536dcf68bc5a2ca2065a61103ba6c9eb0ae4cf8cce9dbe286f15","653a6dfb51acfe8a844fb8362795e5549d424aed88d3a090366a44f840b5b83"],["441c0d7b7aa705046dc0e07ba5f33a7d9df23f694a05192ff8c2d7be2aa3fdc","4c06568c0902bb99d428bfa0a946ed0f0ca0a51fbf07cad88e06e9c78e38a59"],["2569c8c78b6d6b92533f29f767c95720d377fa63ad5a3b9827ee0a74b0488aa","4b59c81d3cfe08834f946d9d57614f5366e0bcd9349475aaaebe01341196fe0"],["3f2fa285a0471647b214eac652bbad9d58a9f2dd2e812aff0210d0d8a6eb32f","4cdb18e1c2848c2b52c1a6557165bd1a8f55c2f7562f5cc0b326f73c25b696c"],["5bb5141ab4fcc5290ae9151b8045a2cd8391547ce7b3b33cbbb10f8fb538092","5a36bfd52acc6a83a9913b937ec086cc27fed030b5fa70dbc5d3c12c9515f56"],["3f3fed272edf91aa7f8ca5d70005d390fbc67830ffc69c5fa3ae17582d2771","459057e0883c44d8776fa217405f443e5954f08c4a5db68e437becaa664a999"],["5237ca6656237a717a739a4509f70db1b9dedbb6cd232f60c9bd8c4563a6b1f","56c7799dd02896dbe7d69dd8bb9718270549592099569d107b7b49c34bf5a49"],["1cf6b8499ac881e0b2fc7def9bc1a28937033b2fc52de99e75909a620c7a281","5769cf4f735366fa386b6858043dc99a100f86fbc77b16d57d77766197ba27a"],["1b74b8a6b86dbf9638cdb0601e1a332b8d880753423d38c3394902c57f15e40","6bb2dc10d2ecbb913219d0ebdc8d3337d644ed8b6c4e70637ef4c7e50887488"],["61e4da415661bba52a4737e2bcde1a837787c4796b2e1854778534f1582c29b","27c43e632cb7652e8508c9c38e3b4ad0d3dd6ba748d42dc84ec2685e64b9aad"],["7c460a204d23f20ce86596dae6ac9b36734e4a9f7c5b43262c97a36c6a41c6e","481a11f9300ab4c4bf6924c5ca884728cc361247377065920966785d043fbbf"],["124ff5e55e4effa40daa5b9618d75c49c8b6fad95cbe8c0bfdd83cb9bed8316","33a2ea15d0f71f58a00de71acd7f22ccf9002115e49dd1f7631faa0d32f9987"],["61c9f8fc86715e95ff43583a865c5a6515f93381839d557ef884a68637eaf4c","5877daaa42bbab9083b571e12648a9d62ced4470d71653092b6546f4a5acceb"],["70a6b9a9e5d1fcc07dd9ebef6d8f5fcf04c6cb34932d0fe2335330ac6dc8d3d","3f0cbd332ac56922e886656bee74f6e9bb4bb88f7af7bba9098678af1f38fc"],["41db8a0f1ea78443a39e08a54323743c8897eed1ddc28f41aec6f2655040d9f","7d4bf32f8f4719c2e4af8b7889f3b65cfdd033dc2f971798a12170f2b26efce"],["62f035e01acdfe841104942d6c8c07f0fbd618cb85998ea24bcc24cfac1f8","1caa886104b7d753fda93645a746989794cd825c62473b526ea34b3d51b5771"],["441c6f016d270e86c19843727b83b864cec060cafc813b23d7e41e5abb1a60a","29fece4e40400f3acae0586f4fc8ed535e805e472123ec38d662d8a0b01c086"],["2c791ba0fb0b66177815c98191fa6188dba9c795e34a7c3c8a19086215e3cee","11123151389d4b330db6a665a560407e7cd8c3807c749e2b0cffd9c3074ba77"],["5292da4ca71ae75ed0554c267747e39c7a129b3b863e1af3ebb3e368439c4ea","63af6a5016deea8cc674c44f16c63c1db31f09af4fb4d2ea7917c28116661fc"],["3367388d5d1b7758dc3d92e244f227bb8a54e3d9909e7b7dd62ab5965e3efc7","7ffb4833071e4b03ea755ccb9938487a478248fe9b1158a08f1ac298801c092"],["95c863314b7f18090f8eee602403be823a367a1b416d54c32e5f914e67d922","159c2824f899171deee23e0ed520d4825bd667983df0a8d45d3a1f7156d91f9"],["621c6e08b3c57404644ad49ac7629832c141273fa1f323781b3395393fe985c","65d1eb0140652958c4371ebec791e03317d6b2e689d90e304666f1b610783dd"],["54313129bf13993952cd2b31ed06013aba85e74c1b8a00e062031f32188a84e","680129efc9eb8ec07fc180e8f6877e5f0f9f44e3000a2c586ed4ce49d12a313"],["21ea57a1c8286bb45872e78617853c47b89091670ba51c124afa3362e7260d","7087e5c1536df233ec9bfe2f983e8d7622892b9bf64c450c9823898e2cc2fc8"],["3793b05b99e7a57d88db4ed0dbc3b771285abcd9052da50f88595354409f3f3","12164105041c056f127e737c7cd63981e05f246bd2b6b65d1f427019c7c3801"],["befd345cef5fcae22ac37dacd6b9128cc58cbba3e3fd774e11b421c2ba392","6209d25f24f88f7876ca604db23d05f78e6b3b67fb033f2f1bee221f352b8c8"],["15fa536045fda4c65ff74f10b4e669ce88b9996c6772288289d3ad725987fa6","30e0c2124a35e265e931ccc66ce5ac3697d982814beb407144ff6762cb691df"],["38b795bd77ac573576dc204857a488cac2cce19809882631ca2069598c577c8","786ba555d55ebef688b068bb9186a34a08cb00bdfef51619bbf911890ae9a13"],["6c66853592196c3eb8d9526dc155205e2c64097adf8684bb0e15eb460ce1c72","1bb4ebf654f4250c8dd1061a4e1b464b31a8a9999ac9960446ef8108a66871a"],["5b08dfbc87ad9c00b88e78816973ad2f9c10c70f2156908892cc7b7a2a1fd30","1151f407a77e2556073173d8f5c9ff561d8a23742121ca15f7d0ac391af50ea"],["309190eba106aa6ead54b5ca5817969aa68b4b4c627700799a49fc6bdd32ba1","505b6a2bc7b0d78ca6ce2abe7dfb7312369918a4599cccf8a615f6701cfd851"],["89cc205966af08acc8910d563af7443d5dfbb5d88dae79c013c678c65dcecc","1f8cf955694b246a423ac725791231257b88936e00347ecaa1e17045c0ab540"],["480086b61a80c36cf1e1a350baf554e58ee8d9333186b70c9c512fb9e9d5a84","511edfe58f8d36a6170df743731da1ff525cfd5108be20e30ac4183d1281570"],["3caf14fb1d2e90a13ad4eb091250fe37133aabf6029633e905e5a93ead41dbb","49122aff6059dfda19e4b973aba5ebe3804c91728936c6381c1ed1ea9380920"],["66d1b8fb2cabc46cd79741ce1cb7326077ad8ea3227a6427244bdd3806bdadd","4a52eb74f4d5371ba3265dffd61c844f9e68d4ff0b44dc4936182f9280bb66b"],["373330c5afd53c31257fcc9050fef873e15ea9f81d9810f30744309b04e02b3","5889806607b3dc97a9c5b0c8a2f16d1792099a22866b879ca480cb89a11ef5c"],["26840d0ec69a22c6818ff64b8b14633b531508c866e21d1dc9239778ae9e8c7","157971f9a6e3a24d3b307be0e7c8cd352e2eb5cad33cf276270c0f309ee63fc"],["ebb84848f1c38c19a754d1b5d9460e39624dadbb30800987c9419c0f933b9f","517b297cf32f4064e6d6c8e761ba8db89809604a701c7b3aa1a9c6beb370ea7"],["25780380bc0795ed0dca727c55240f1d63593e552d224adb40df2d3721c0f66","10215fb5a893e0275e9f1f66b217dde35addee91ed0e8f7d79531a2ff57b8c8"],["243e1581cd1abfbf18c31c19a4c3d1cedfe69a40bb57b607c9af2717eefc742","1296c27929f14535718c3a4ebe045f00afdc60afc74c7d398d8ce1b6609dc0f"],["48babb8649e054bc8e0b902c89e6940c265f48464520649502ef1064eb94562","3235be7852b0526d1a16f6969ec0e5b0e09cedaadc65863dea4e47f4f398264"],["592db7c27e63489ef4bcef2eafce89f40067cd9a1ba48bc3dc76b5fc62ad9ca","48b7711b570cd9ac65910e75e752f4b751fdbfb4091a28f59b8c046d3d9f8bc"],["31d133456222586ae42a9ec7ce8539ee04afbe0b2ed00a2564dab0798d9b55d","a77c52fa1fd718db5c83e7fda6d7d4d9aafef9ad95cad621470f2b753729e5"],["4651668379883521e7983aafcb93811b4a72ef2975b3277773746708ef3e3fc","512507f3f544d80ba5d47f73b571881e8d70d7b1d305b9704bdad036b7abc47"],["26069e359b2e847affaef604f772f36224608b7642245d0e643889ed231bddc","75ae1ec379f074ebc91270077c74b4d34347ce183b676b4dbe100bfff143b9e"],["3196d01d1fa11dc3803b4813c4bbc6326869f61410f2bd14bc0f570d875aebe","20313217cac79875bd2a503db1e86d1e5559911667a02524759344468d9561d"],["483256607f75f06fb126addc60cadddd602154cc4782bcc08351a48745d0b97","2950a7e500ebbe9775f08be37cc2e62ccf9030de18948d1bab07a4a9173f75d"],["65f07b6050a2fc6eebe2c29ffa62f764060f7f9d3c82d2cb5e4e368aaa442c9","562c9654b646cb84a213b41de203c871b3eae0a05c9c105a66a53c319c06373"],["284870f6181c43f3b01d94baa9c5b6ada0deb861145523ad9169580eb7bed35","5e03e6c40c1cfa3cafb01fd0622349871832a9d35499d06408a83edc1b76d02"],["32229810a52137f0e6c3d37595c46f6132822d4b05f42674b48d7a7ac3ad85","7babde959a0cf2c53ee59fc52c77c3adf899453f077f441965629f9aead30cd"],["1ea8b98a6b85e74e0a2fbc18b206e290f3ed94ce99ca665e8e2351dfade990a","478e93c4724115fb1648c8d5347422adbc1a0bbf962b2312e14aec80e1be742"],["270cbaa08c79140c85b864475a0bf569cc03ac785e57f543dc444f37ce746cf","3a9b8d894016680ae9d1bf3deb931d8987d4d8d8bfed45b81ccc595ec79046b"],["6943922708b8ae5b40dd7031ef2e487abc4ac39a3591368285e83d6c9c51f4d","5f157c37d09634e8cbfbef90ea50af59815d011e419a691c67ca3402b5efc33"],["48ac6a80979fab4912cf0cb557d917a0bd68825d8658ec100496eaae6ff62e1","2b6931350ab183402e39476340eb1177b7006f7a552915581e29a79bd7203a0"],["e3adf9517d92ef22d1e2a787740a292ba32d5ca69faa9e8675f63ed816dce5","36bccf69bb12dadd610145a3399213248d193660d8dc90a2e206f23bf2c7997"],["5e6c8ae5afb2fa470f767581f3d578cf6a49547e4b78665edfd45776948bef8","6cbfc11953dd7e195d2ce74e52a60df524767b44c4608bdd755be4bc85eb74c"],["15a576a1242d39300f0db3ad770983825988da0457718ecd596c63a0a0eb4a6","69a42e5f6f5a63349b57683a4609bba90f556a1680fa1ec3b02ee7d3211f903"],["274cd14e4fbf2ed07402e8ad8075b320c5f76b7ea45ea36af523e95ed63ab50","6ca640f9557c5f2d8b27f6ce95b108880ff4e4816b26b70b6506114389ce656"],["4d8284e132e2fe81c5f71be1e3c79ab51b229e2c56c323e207cda179999d123","116cfc00e9fbee1cf16af6282123cdf20eed13021c2037ef4c86f94eb6e6cba"],["4056194fb5643e97991942ef5b63cadd89080bf57a01489c4398aca03f0980a","2e2cddb434fa6f6da7859c3d518f0ced8795eea043a6c9613fb3e020103339f"],["5d119d5c5ce532afc0875e0ee9b026d878c8773d34237f90a0d0670da6f01b3","4a79fc025ce076b6a4742fbcc8cad313d0a8220c58024a41a5a674c0947e64b"],["11800ce4061d99b9d53fd4138802335258f7798c5a935c9979f5a949ce1d483","36745a4741a5c7290eaa8f2a3f9ec955ccb7ca323272e5d35d35c2a724ffac8"],["4302525bceb97fa642fd5560a4a39fba3d2c06f68e6aff3332ff1854439ebb3","e31edfd081ce82f8177b2d7d96e69851d09e908c2517114ffb37ee12c0ac64"],["2f5fcbb96f0a66fd3bdfbcc78bda361cb812570f50e7c476533d56eee01c0e3","527428a34855b5695c479d8fb7e831a299f7897f36682a74169cc60d160df2d"],["52167df045ad0dc999b98de3d035aced9da4434211149b8cf4bf20e774580cf","19051d2a1ad3fab190c5dfaf45188b49b4e90cca22aae54f0a785562d3d3f41"],["541b5332491dbdb2b6f6bccceb7634970c046963891fae936dd950f4432b961","78fa54da996a51e3a9c06091d58c2405a806649da2bb1f323807c4eec50eda2"],["5f11e973da659b7738f87ca5bd4f3bd02207dd3c8d978f0d3e83fe81030febd","137aba7027069f62d25caed416e13537687bb1428e71e5f0a0c52d52f2e65bc"],["15ec941ee6c2110b819b5541be52981c09d83484c9dc735c43f39f5778718b4","4561826142dc5b56acfcf605a78a4090472bb61235bcd605a765e05d0a7e549"],["68ba398736d659522f484406110b43c68158bf4992094acf797a38979c587a4","7c1d9e1702e28afddf22fed7a7a79df4315c174d0c6c4f4c75bc77d9b56777f"],["67889cea31c81a429fbae643a4fce0ecd690a5c32b99397e39ed6d7a08702df","7ea277c80b671146c9e455b98f42f45b941ac95ca2d15c8fa9ea82ee9b45e01"],["596f2c68390ac26505d3c2eca5c77d46f8f3acbed192a2649d8c525a58d2334","49f3bd8c62c610d5c19c52d970bde24b270c4ff7ae900453b909e72483974a0"],["567779fb8b0afe592cea284629e3621ccfae3c4d7d3dc559c9fed750591a395","6010bdc33f1cdb374facefff537e7910b72a1120502f312a7ce41df0d552ddd"],["cebed0233e810aa6a29a8b0829d28f1c92f303d14dd73d6b12da98117dfc7","4bdd51e1192a00df23aa8d0673e4915877ca41ddb8c9eaf21d39dd167fde7b7"],["4c7085f066adeb6781596771972b188177e63f2e2b3788d03e033cdd5af1f06","2929ee89f525862b0cedb3ab9b5166e1680cb77fb4668f10a6a3d76b5434566"],["760e341bd836899c226176f47685f69438270c150c6fe7744cd723cd1e72359","1bf09f2f1aac1a10ce8bdf20d5d178db747f01a4aa0aa8a5e4bfeef562cd94e"],["6016b94c00b54920027ef64902c61478244b1936337d2ad41d9a8d43dd6a4b2","3bf3dd9bce7f6d6f120de87fcbce6219340b59c2c1d75ee0d45105d33aab1cd"],["4929e44ff692eb944d1045bee96e750219cda3bda0500029f0df49a1db30b5b","2e138dcbd092242699004b4ce98764ffe4e892841f56830af298581cd1e523f"],["5972d0e526311bacb70a04e88969b6c63c7399b578f0dc28bbd00d65ef01da7","76b22bca9ac12d26530e7b0757e646beb3bbc5680d0f3f82fb8ee57ed4b5e39"],["2ca0a42a26e26934ca2d48db960b4719113d87c5e57fb437d557c5eb4e03ac7","62778c02561d4ec5d83a132afd7763a8349207c6b5d01fba70b56ba660cba2e"],["5137ee53f076e21a2c23da09f63c0d275408c31e4634a6b6373be5cf13e6c00","14fb446c077beb78e04de3282a63bfde12f9af85caaca4ddfab506cee31c0c1"],["7d944853d1627b63f560aeda33acf640d35a4ee4d23a744957a2dae9d5b7c6c","bcb411a210710acbcb9ea12680d89e3e4e652228b6786d3886e95f4d9e6970"],["37d412c2ffb173a728477446b60b2b702d07a5243cb5fc8963e623a5ee75843","672c79968908f92cd0cb0b4c65ba86e8f359b015623a89441e1bf859bba84cb"],["5b37f472aa80398bff12cc74c8ee784c4fc89757292580d3a498bff17e9f114","7d79da1aab9cfef58a5f3d1c9ec466956a45f8d2af0c1da6dd4c93f720fae6e"],["25c09b3f1188c562571536202eb0f5fc4b9a7590417b8ea58b4343685d88a63","3d5b817c73b37e9a1d24ca923351359b42ced2f3cafbcac8c2d6322dc767bb"],["32e60904e73f9756f71e0a918d302aeca17cad4acacc81bab15702ab5ff78f0","bcf4c0204f8275072f98a65b09ac58b87cdc9c70c4edfe99fe18870a3a5459"],["49c35575996c1517d2daed90d2fe4a58e674d6b4aaa7288d0642c8bf59e562f","57eeee00adea4ca80eeabab57852cbf03f1a57e21872cd44221e0550b9193b8"],["10e1776b4c2a867bf1b028c6edec224cc6616c747e272f49e69b67b02a893dd","8d45d62ec8e627b56950f2f7622a0438647f9e9f28e723e4a37cebc039a1b0"],["79a93a75ecbe943acc964fd39ecfc971dc6555b2bc335e7b53f52f4eb16cd36","146132a68ce2ca8b48363612226771ac547eb3cf52b6eb7981718faac08aa3c"],["6b22d32e0590e169504e7f19864fd646d0994e7ed3e578a5b88f6e095913439","68c3b22d859fb85e5c8fa0a8aea932285945b230957e603394333e9ad5acd82"],["71ce5ec8286eb8c93b8481c6d19cf0a288ef4da4397e9c80f65023e516bc097","54470babc742780cd8a05499026e738ccbf81d4170d1731734de68a8e5b402c"],["27beb13a43bc6a1f6ce046da438b0beac5899ff4d57962dcfb6476b563f74b","14074e9e93ee45394dfbe833998b9d1691961f8ba3166224b36404448c61bb3"],["6b1de6c8f161aa6509a1dcacf2c0aa1bcf6ee9d9b40e032a9d72f77a6fa298c","5e9312eb5b59d6cbadd7d3dcbc39f1b5bd9a8346fdcfdf1107bada6f9cc048"],["32670fc3fa43bf39974ba72ea51f0d045d92d084a81fe5282dfc8309aa900b9","518fee521bf1af62356aac3b7e53fdbf57121e030c6e9572b3de69912ca4eb4"],["4b9ca363eabed9c66091a347375f7065cd28f49f914447de7cc1461f1375f1e","3a1a3a2e5e7e72476befe2571ece708052d740d02cbe6fed58740968ae609c4"],["4cc6da42863a3deca62fa218b7a3b50e034eb4bafd393eccba3f4cbe192ef10","20bfa683c884f203713953b26d2821287ecd305fa2cb70570474533fc07f918"],["87705353c44a5ccec8de65cf5433be6b3d9bd21eea49b60e6c907cf1a67a6a","112804b13eee56e3b01aff75fa08fa8374c44fc461aed8a30ad54acd09c24eb"],["6cf6eeeb9d339c0a05f72fd5af73fc7588e6d957100ee8999109437bc126cae","54fa257cea22032eac272fcd034dadf2e00d602ef9e519cf7072023c130aad1"],["19b32925048c5519d929650c833661b452ef7be7963fab0b6b328ab7dd7a28a","1bd0c14a10bf9b88ea61011c0b2e64d07da151c6203800d5a5d12063838a510"],["12a5fc5559428bc3b4eff97b21b63668b866e0722807f1db1f19696bacd9b0d","4c2eb07f0c24047a3d73b560144f3fd32c99d6dbd9fc7cd2fd2a72a6e4b24c7"],["13662b7a7d390aa76eb86a7c3bff6d9913eb28db6bd1a7c42de5cdad2e35ce2","40626aded7f56f82cc431ae30527b096f57fbfbc04d3e12a5abae3edf301cf1"],["255825bd49b8a2cce114360bd9c8fe8c641af64c8e7710107213cfcb006f43d","3619cce4482335232f9e76a1460be9d296f2d468d26e4f95a78c71524fe59cc"],["7f83009eeed4f12f54d341bbf06066480cfcdf51dda103ac54d4bcecf6b3b31","4269519d28faafd7fd68bebfd8404d71ba05d62c4bb6d65d24aa6802fb84ab6"],["2f325650eb316646b4eec903fe44828fcb11054f1bd42ca3a77f7e734110b35","44f976082271016f9048e22c507d97d628722bb431f8d5cc1890524e6c386bf"],["750b166bb6edc0ee80fae39c7c106879036738df2d79fb2294e1c21e9a24d6b","54f8aa297a1afafe2a17a3254f45861167414327e918d17003c6aad01d0b24c"],["3aedb10db9cf3285cdeee375879396fac1fb50dd259e1716f8c01e66f67ca72","7feb9400f621f58c21601f23b7ec7c94a9b6b193c1cd74a8a60846aedadd359"],["4ab7151702de76faa493e7a0b1ac20ee4d10c33b83fec9477547cb1236973eb","63f1f122e3ef3acc46b0915ac69c3f5772879799cad889a817f55f5853d1235"],["1675ead0d20e5bc3a7a7331999a87ac4c916ae29669e54197bb02aa6364520f","4d1122da90d49e491922d9b533a6a668e2f65a2737ebb391ebb29fb7c1f8a9d"],["2f7148111ef53c613157aeec12e16a20f13481da4390b6ce18a85d1d8547087","2eeda779ab395597651d2a0b833ccf53b10280750139916ae2baf4ec57c633d"],["4439c7810e7b2ba772b701ec3acdca0b80c9df23047710b87f7dc3f13b337d3","5029cfe704c602a8a4662af0a5860ec03fb88f046d0e3400f2ce7638014c621"],["2248eec40b5732a6a488b681f093643af7937071bc73118acae295a32b51b05","1577e4aec30a97b648de4d0b19cf8891151b4eb11f8de9c6d7312f091552e19"],["4738424e558d4e0d87a3124ca02ea24f0adc6b7a9768b0d3945ed2a6104857c","33576f92aca3f0c8ae689c3c274c2de6b918940d86a6852e02fc99e35d1614"],["7829edd8b866ebf7baaf604ed13d19a9797578f44bbc51b1cd67ca53803e96b","5559040a6083f2af1f9133ccaf5bc2ce06e56ddfc7dd410e9635c0116b62722"],["7f927b881f2cdc05e1a69e40bb714af47b630d1425f08ab5d574ee698f33d51","26a465288e96572de303203bd38f4a03031e8158da0591cb037c0a5111d1056"],["36a65598552f8753580d1655417d645a140966e10a1e1663015f9fdfae44881","33d5bbfaebf59eae72b89b1aea12ab2ba3c9617f8c3baed1ec16bdf668381b5"],["403becfa545c826782026ff409cc16c9d4fe428f1b5b6e630c92439d2fa5fd","47bd6f2bf5d74f710ecb479c79b01fb774fbdad590e683a415cdedf33f71dc5"],["3a747826d241b877d3d56b16e0b810cf088eda4fd6048da174c9991a942a5eb","2c7ba19b0a3486a2cdb84d4a388d34beb077a0e467ba44590166f93f6a09d2e"],["3d60cd375842714b37bda89dd1f13a7e0f3ff133b522209617d031bce05a537","f77f216451ab01ad5226844d2162a7f32744688bcb4325445539e2ce5cec4"],["235bf66f67c9100e7f0e22bb299cdfaa603644b240e0770aec7e7fd163e2a65","37110b3fa83ece3990afca2bea8d5ebb3c7aace60a0147f8e6ab733e2f2b4d5"],["3b796d4eb69a55471fa86108f787b3604874e92b6887a7667a6c2bfbbd9a42b","4912d6dc0419732ef82cb3278415851d4e2d7ca89e0f4d7128cc9de51b810fe"],["48d53516dd51e49faa7ab46c8c10db1befd10f23c6a9d9bc3640a2f0da44518","73a2fb3d064adadf21aa1362c04affc660598f38a9e069b3afb74d0a99ae9ee"],["48c32cff161ed145da0d5b73084897647abb777adf65738559ceab6939cf3e0","3d99308978e828f857c382df32b472bda81e8ec8e30c8844077ba6d6d2ba903"],["2947ff091a8ec9684affbc9a62e09e598841c4a6dc638088492aa47dea57097","19a2cc97975e547f97a4d02e42f89e6ced6f5a953cfccdec347867d26926541"],["1960d85f30475615f82484eba0bdafb7ea7cac3809f0518a757d66f02b01676","36c8f77baabf0cc8805d993bbe62041fcf4e3239cf9d53278a4fbd91e75eeb7"],["2765f28074d21d5a055340b6d40092d2bbef807e02009fabfa08ec0b9bdf38b","7fb189e0553d5df52b6843661814824b3f3cbebbd54988f042fb256c6bf30b"],["348836cb2aaa00212f4b1a4e2d7fc5417f246bf2fe5c9a16ebabda449e2e08a","3f7276fd7d69e0d55ce5ee1d2d830534a27227fe0b6d8a36c93f9a78b872969"],["7afb9d34b6a42ea8c6d870e4b8191c274201dc1f93a1a2219a2392b7e345a31","42bbc20dc7115e0758b364a110227b16b64ec58fc535ce5ff1a9ad8b8a09fdd"],["2cae0c2afee1767fd4c66f52e1f176d217e92e89cc19eb36d5a6c1715f641a","5335efe2d9bc3667d25ea88bf76438a4d6ab9ba5c512f9da7d0529b79b62d83"],["1cc5fde334707723c3a06f00c106db88664284a2df47bb6b144d9f960aea3e2","dbbf610d100316938bcd8bcd078513512ecb50d4579690dbefaa419c05980d"],["54e90cb8f3a2998d2675c5780679e06c0556b1e618f8fdf07f9a4b2466fbf1e","16248676b6f06ec5e34994bc3115f85c8147b54f34d8500928f2fdc051e2089"],["525c70a2ba0dbdd68d75640f47f13d0d415ea595f7030f533f4625c2a46523b","58292c8675e5e1a438f49e0c05648d9a7aa997f2f1fd77d5de1944afe5d7eea"],["54726d78d099007393348787a03107ab492e59690a46c87fb02ec554f2353bd","53b54b77184ba75a3391e0ebfa6d6974db028f3f8e34bbd5460759a5848dd76"],["4ac81a66903537769d3aac6c483ccc08535cb767b6b5e1ec8017a7393ab70ae","2cb22b77a8a05d26f11a4dec80eff292633aa05553a889c5ab16b6ac6e2ab17"],["21d0175349e21114988a2930b9a607d43245783cb4a0c984ce27f4c4206708","59f1f49342cc5496213d3329bf4ca7fb0044337449c579bf53147a1dac9e67c"],["167f821b381f4c8adcc39789475fb55ba639e5124fe75f26dd61be396dd5e66","22002c87d4cafb47ac9d27286d5cf5ff7a6715d69814118269b0729be9e4b3a"],["31010666c6db83a9f9e4db4c48173afd405783ac53852a6e38a8ff925528843","1f466dc9b5d9094107c741dbf380f9fd98d8549cd50f67169901516f8cce74c"],["1ad3875769a5053388a86edc85dd80fdffbbda6a456aea497ff81a0f1f6707b","2de7cdec5e2bad56a71bd2f33a4ae4c874e1ad4210a6ac32b443cfa34e85b1b"],["c489650fb7f459ce09cd05a456fc5a46b849b38a671298ed645bcdaab168b0","45610d092b8af1c43ceed474cd17f7bbee65120aa6fa4d37f949e7e41f25327"],["394256a5ef4d7af5459587a0bd2edb8acaf5ecfef2563c9a04daf34a4abe4c6","1ebee390dae1403c0c53994e1d064fa64e20fcb45392e209b2b99486a559ffd"],["410a1511fead6151e9bedb089b9832d0fe01fab76d3f8459929f767525aeb27","361f0a5ffe09fcc3ad4eff3f5e89508ac247af80267100b69de3c59df561cfa"],["38cd437c9f659e110a869605c182ee9fdc26de36baf559d9229e258267bb734","624b1128ea7739bf1cbd0e423af92a4884323c868d2ba0ee9d362946edee2d1"],["78b126e50b7042d2a019f95cb87a3213c664ca1bafe345999b1e9e2dac1e608","19e398196b22f4488cbe854c614ad8c353839abc5ab3a4f3f5c03c16ba8a198"],["6d3a5ce91132f385a91823c5c8046c4b638f5fe63357424410d901457cdb867","7b80bae16d2d487e122495174f7a70992bc5dafbed72bf84127ead7c57302bb"],["32d053a904dc4d88fbe7d0b96e0cbeca22a00aa5c79c753d52b0b60abf31602","3af6a02e5cae6d6490354ae51185149e3fdb6d0d9caab90e95ff58aa0c40377"],["49b1fbff5bdb0aa6938b066dde0ed772c0d81f9eff52e7fe038b0ccbd78adb5","1c6e57834eb14d507eed8b36c81ddf92fa91c242467061927a742fafa82b43d"],["2f28b8994ca6f234d9293d26196b43b9d1d5306844348c4a638102c05de85f5","759cfb172eab065d477248b3569f4ff5791055f01e95fe71b94b8e615d73c96"],["3c2ee954ff534f856f59188fa0f29ed8a022aee0cac52d634f6dc58cd514d70","22bd162e74925f0a876bd8a206b8767dfdd7c898576a73a490f138d9a7f99c6"],["5763a7cab001e1aaeabf9ab5b9b2fffe6cc2b299ab04ec4933da74d960e1ab","715ee4f8ee93ab5a1dba00f0a6abc4eec47d49b61254cc27fc36a031e32f0f8"],["19976ad8d7b7f47c785408243a227401996b36e47c7a78a7bc7d4256233ba9a","896b713c5d7777b0703821a73c1d9a4c3755501042120534ff13990975e1f5"],["61674b992c29827186cab5ff454758dbbed8e89bc23d0bd33193afccc3a04bc","38e1020744c13903809ea30a0662fdb5226ae760cdcf10800faabec452e00f8"],["2ea2d48bcb83c0c9cda4efe11f07165cfcbc9ccd26526e5fb12556316d4b1df","1d2d68b74ad384c5c4a9c85453104216357bfcdf635680b40215f0f800974cb"],["7881212050264c40c336ed3a15dd2cd868ec9a558f5b728869eab66e8b8ed54","21aaefcc8ad8a161b8971d6880321781dbd939570c540da4c330922b8c81e9b"],["b6be88ce0461d20f59c5199573cda0170b61decf6e8e69a6d32f1695adc4ed","5536e4808370716f2bb3423a9a49a38ddbfe91faf3b7a35eb53d3519238b6cf"],["e5972af1655eb6dde2e8c77cc58044299922441b5ee41ceaf5cafedc765bcc","550282f37a4783dd60801c237045992d6fbe82a5902e7d837ea25f6f98c7b3a"],["7efc1aad1f580d8f50274f1c114c40056be19a8c96fa8c4cb5bf85e1e7f3e4","2689f1c3898b114d668be6413643ee9f879913d40c262541fd0316264c60a4f"],["7939db98037f59b0113e9d60051f75ac9c3cfd1a3eb535c73e2d945068c6c5c","410914ca8bbf3c65cdf3e9772ca790c19131c50068d34b7346c10260a578a8e"],["225b77ad00a2b83d26690190b74867326eca4f55bfbc3a13be036225ca3b1b5","411faafef89042ce6beb64309fdaff70fa53e9d32d79a21e7f82f80e79ff05e"],["1501e64c99c8b6658b0479f2c05c9142d246eaabfccf2fcec8dc4399539d8e1","3bab1e3339e42c9ee66c65b0b20236fdd9362d3ce786ad3a9779ab578af50a8"],["59b907b941f24fb8ea2458153e55f07534b388e835af7b69f3c9f54392a335","1d5438c4f2f68a417f3d56f916d899a6ffe910f5f2989ca31687f1b10f60db8"],["2887d08a26f484546f360e33abbf7a998b7170a5b30070938b84f072c676bf3","62a78e8d00e5d3a59e2fc424ffa08961567ba1ef24c8531cd7bceee6074a535"],["6e3cc8076b3d45377929033af35aab0c6d19ae4fd47c0daf844079ca04c46eb","7b90f338e4d848aa8f19d0b5c3bca916a2a9024acbf14bddb278bca2aa39e5f"],["34844dacdd3ec54a3af328bb9d67715ab33425e194ac9977ca02ef22e8f7a88","3c1affc6372f32a1634748124f9e1a03c4f0c993971da0dc28888b0801279d"],["436b192e03a49796cf9bc5e93c88268b71c9c24f9c3a85322bba634ebea309d","67a8091ef69d62abcb28ce5df4dc7d53f8dc2b9690344f75ecd03a6d9386044"],["592d25b68baff87a6d7fd41ff0dadbddc1bd1316683de3b2d677501c0eb14e4","27ad1e1099683f54589010faeefb19e38569ace43653be8787a42b0591e7bc5"],["89a5111ae911512ba62e87b97f643c0219702f235c70f62c6678a129302009","557fa3d98e9ce7b83b47545013a4498f3de43787fb66b1a54521222242f7c1b"],["1c9b5e53377e72da5066cb08566bbf9ec31ec1877f455d932cd9b1aa375d34e","72f79555a8bc207863f32d482fca54692825449fd8963fcea3de3a8183a739a"],["574a6e05eb14591729515be239ea8c1fa9e12d4049d42876f76c8ff37bca03","5f99b3af43ca68c1c73e8190d5f73c8de162ba643d7d5f0cd73cfa8135db6d3"],["513fc5c2e16505b2b25a2f284e167d5401194bcac0dc3ecf8b7c9acb560daa1","687ee7a1a8954d08d3856e1a16ded808e419e789736d3f55f79f7693bad69f5"],["53d48bd1205274b1c2b0a0ceb3d21c5fcd7c8892a784931603240b288a598b9","35387abd7ea59c9b956de44d36533cad1f6668c438d666651695ff3862159be"],["213eb1ea99e08825110dd61094eb6e8145119dc1c507636f068730b1e086d44","744f6853f4f02f4f042468d0739e0c9f64df720b87ed77d1979547084ef7a89"],["735ef017d091ca23264ad0aa7bb9b2be3309b4539605e79ed4a652ccb2fbe3c","7f0ccc7a5747c4e921fff97d431169f690763427e2cfd1ad74d7a0308d7faa9"],["3f36babc5a30070b610ed97db44997e6d9115c9c0579ad8f75d295a17130001","79047908a2474e32d5c712a07bf5c4ad522590bb5d6cefda410d30528e12ca8"],["51c04907ae88a5926b242fb2862cb1f2c651a94e6caad5bff8601c079fded74","10a585a269f460aed43f54c7de13cdf623fc8de5957526997278be939ef32ad"],["c1e1bd626a735aa2c065831317217ecce68e377eb1f67e54ce2e97bc2ef2dc","53c5af23a9b482f420be6dfd37b6886154cfd130794098e1f51c1885ac2556a"],["5aff3b30775ae4758e604a4a6262803a545f5ef4e7855fa245ac6a6431a9ece","39a4799e5519047f29333bee9c86c99bfa8056d4aa381c396c4a44331fe795f"],["3d753e9723701a8e9d99b91bb93dee2eda7ffa5072fb2cd5c5fd99aebcdb299","15798bf5c17d6d5880fed1553af32dd8d8baf2888c715a886575448a24c7975"],["6593e5078466b07a4222d2e544da826d2c583c9cc5f2eaea148b129b00d4aa0","11b352b08a0a61d3cd67d1dc08069dec3bde907b3da0f56de5011b956bf8744"],["7a6eb353c5be9ff03fe4a06c01fb71aad2b38144179a291ebcbb2c2417cca65","3de3ecb12f2fa699b46a9d399abf77ca17bebc3e491bfb2542dd0fba991e2bb"],["2c7ead583d6c32162091034a9eddfa775b4e84b8bdbea939edb2a80dcf64f6","461790ce40d9c276d962b2a1e9a74d66e9d7335962e234e8a2fc6963d31722d"],["34285af023d9b4c2c2b88e8704bf2c05a9b553b00b2e70ff05f8c2970cb134f","33fe678e7671760a83836107428dbade68c3593fbe568f3f8f1b2c568099c44"],["6222f720a24466263db6a11842f117fc4bb78da6705f140e48869db3e087441","6eff5b9bf3aeedc962bc5a24b66e7bdad2153450ed53a058bf2c8dbf2907693"],["17c6ec5ea206eb97cbf53851e37ce391080e0d2bf1e5395610f79ab0503f7ce","3adb71ca3523d88ceb1e365f12dfb24895453c14daf0046b2626cddadfdf5f7"],["70859f9771a713e54974ce11cdaf44b0dcc3e9befa0c0834908d877eeaafd27","d18f794bf0cc0623b711e7450030424e52326c45ba9b03341883ae4828a5f8"],["2a820cfd0fd4ab0871e7b303cd545a3086caf8fa818c087a4017197da74efbf","5f992683ff37f6c041b84bfc01503d333ac9763505cc8f69473da01812969d1"],["5b0526de2c07fe7cd73e3884f642d57a0ac5e13c68590ed03a14e530616e8c1","eec69d0cbd92c9fca31ec967dba848bec368e792d6678797946a5e34fe3487"],["6cf6b3efee707210cb3a72f1e885c3d0953aefb43e5e148c740aa1641725c61","911cb630b898e2c1a9115f9e45bafe3b819edfb1eab6e15612d14289939984"],["74e913de55f1e46143cb2ecfc580f8d3d3908f200281322b84e21c989cda293","761d2736c9ac7670ba905bc2629c6c0dbe988820a4454ff415ba68710f7df92"],["44084305e0c911a40b7cbefe5f13cffe9a99375d1a584c4a2200958050af7a9","249c83877371564708ea525b64b1e7e12785460d83364446531c9adcacba5f0"],["2bf71ad4d1bee1a67fb300477029f54bdb0e09f78bf2ac2e8afc7465a7adbcc","6244dd6cad282539049be57487bfd9900bb0d5da805d02b535096368fcb4cd5"],["3a62d8f763b62def36e4089458046a49c5ecb91b861549530773e0548ff2bb","6a10a03ba61e6ac657270465c09aa9526cf1ebe96bdecdf0e7000476a47b9eb"],["284eed3a17c51e0677d4fe897f056abe9def8af07a4630e6ca5723e2aa6677","516a06ac1d5626ed03d2eee9de6f60f0311eca703a99b0fb31b9c66b01c27c7"],["2a2c63b16cccd685f731d06fe93ce2cffb358d34d03dda9a7368185c1eb0c32","7180baca0ba81284809f92eca1654cd76b925a9242e5d5e0f18d0a55d13c6ec"],["5f9466017ec09769611389ea5370ad68dda936d3f5816c9e928ff9574abf9a7","6619b5b145bb5f4f29deb7a4cd68ef4da3995312fa6537f0d01684da4267ece"],["74f229babe01b4962b3307589c1a13019134b1db6822698388bebb55d21c30f","156ae857ab3279f754facba0db36398dffec8c31e5e160473198f2f891b7531"],["334b9fe3a5fd99bc966ddd1309698fd32afd1f235062f2c275b6616a185de45","221a60053583cc0607f6f2e6966b62fc9dac00538bb7eb1148e007a92116d2"],["7ad710ba002a67c731efbaba2149d16fec5d2f7aa3d126fd9886172e9f4ea30","3a10f8e902a7a13aec94d66415347e1314f9bac83a7db176096b809b25ffb86"],["4306dd0a184a3283c3097ff8f7434cec80912e9dc04b7df21ba73fda9f8e6d8","6d42bd3d1a8dbddafd09e872e2aa3891ae79ec939dc1b382196bc21c4ab749"],["1c3f2124e1135c32a426d1d14e471edd9e0f2c7bd703ee123cbbd608e8c4be7","3cc607a3c3f1ab68dd5fa56c65996002721b8ad8ad4b0dd9e5b1467d316583"],["294af33272ffcee0b56a436de1b73759cbddebef4c07888b42c2f92b0b68e1","d837164311d5dca8d37b99ef9eb22708643c83d1cbdfe852f63ea07b06fbad"],["753bdb5439a19bbffdfa02b1dc24e8368f22d0a8276b109c11e6feb26f56f39","6ed396231af93647633eab467f1a034f38e76823eb85baf97cae56e2dcd9f75"],["5674f0cb892b733fc0b50e121d8679afed0a925c32594cc65ffe83bebe7748e","7fbf0325dd38dd94905adab2c52758552292a6a103d9edfcb11938828e828c8"],["4a8f053573a0a74251059d0229d89b6660407ba0b491779fd10f87a5117c81f","21b70112485398bf67ec9d733df24a1df30dea718a93b786f41ed04e3ae3c5e"],["726c01ec4a08df8fc8de173311f50d4f3b97c5a9cf68c1536146f827db95ae8","15013cafadefa7f1c4e4dfdd70bd4d3979dd18bd7f0332572ce2a3fd8773d12"],["38ac0fbfa98937257460db7e6645d7e5112b6fce7234813fc8a704e8ade8da2","73c0109f86048aad08c443f781ae60ad13b99f7b9cfdf3128fe6d6eeb799a7b"],["6f6d3a38621582ace092eb50ecfe9eff265df141ebdcab8653299116fcea291","4a1bf3f39bc919c8f1b720a0b1ce952cad17f2ba98308ee6b76dd9b6f3d7b75"],["6a307fc28e1df8d9ad01766419e097797d65cb674436fa1c8f012d3de2c2a1f","26911a635ba824db004875d79dd84834a97ac12643e42829015bf88c1fd6f05"],["2a74860e3336d6db916555894cc8028f41508812925db1925457afe40257155","5f8da573f4c39816ce2dba8a20224223a7cfec53117ec78973930c0e9b60244"],["4d2b49e1ed0799f719b8269f092cb489a466a645bc0ccabafdc678864c176d7","5410083df7d256f18cbf5697ae5e52c31e075d8a3b27e21d6f5177ca882f6c1"],["110ecb9fbf6c333d168cee473cc5ad98809b6cb9eb5d1f6cd28ab5fab504fd3","7e3c54d7533d9f8c3310f219dab0cc3ea4d39b418a748eeffd6bae2b8637a43"],["5be4d711b80da70e6d3ac493250bbfd16f20b25f31919b3a91cf14ffbac1096","7f55a0919f082e8885f1515e83c5b39b6022404503507498e1b4422d79c43e2"],["2605125b95ca4ba93a21cbbba5762898a7cf9e988f07ab9e64cb3868e3b139d","62f0ccf55b9fc0eaf9736fc8ee484e2acdbe259813af9803cf815829a5e9d3b"],["1092bbbf206f2a3068167c3dd99a72de31e206f6c504c071c8214d105ff814d","309f489f68a62089f53b96df5d4fbc3ecc5a1a42eb7ece0e49bad17ad490ff4"],["2abdee9409d9c92559ca3f4e6bddd649c31aa09b90bfcb4a612af491241e18d","3ffa8eac180a29de3f8a69efca84bac046f921f5725e96a6ff0530be1436aaf"],["376313f27d00bb1aae7ec991745efe6ee28c6b50de0c6cd9845cc4bb4f83543","6a8e0a9389ba528b156fa94ac090a895d7b795818d4941c29415d9e2984c547"],["a80380c71bd466a696b3f0fbf02817c9459d9798f4f3899cf32edf647fe066","6a09805e814e7cdfc76eba4b79f1df5ae559e0f0aba9f728d3cba4ea5c57471"],["223694b921d247d989a79b9b2b2f07496036c40cb043eab074a9d6a2cd2ffed","c247217f1b1df35e30d9e15fdaadf42d6fb0edd3a5a7e265d4cdc426c120aa"],["102333620df278c6714bbc880fc087db58c1b9b4d77ed4d61b32a74bfc7c3e2","6a77d37727ccf71c2caeb151faf4404d4b94e9047f9f0a7c3966367f3b53c65"],["891626f466536929ee7eadcd18b41925706dedab7528ed5f0f7abf039eb9d2","5f73d11c141c933a35b2d0d06e5cbae614a20d17dc3b439f8bcdc3413c5ea37"],["215c23fd3f073f870e5e80303967391bf173f8adcdbeec72d131c557babc203","10634332e9d9439a321597dc5b0fac9ff478834c3d6e281735f21a4a5e13266"],["21ea0bdc1332bc36e6aeb43be9071651c27e4ea2eadec636c8d818d4af72a36","3a523d9643dccc6bb9c7c58413312caa3e60ba9c7c7f0177e0f3f469a3241e3"],["60deaed1bffb6190beed40caaf2bfab5e43d3707aff7ad3f278d571aa247eae","e41f71ff254c1418e6a66992af307789fe04d6606fb2670900bb1a089fd879"],["1e1fac4a1646253fb1332fadc21fbdd3e3a24a840d129400f520ae4116a4cf5","69c406f9f46576afad68808de0ab7e8922b6226af748e721d9097e21f1800f3"],["5db0ddcdf79ffe74d6454c12d2bc60b06776db03c75dc413f5be42ea9a91b5e","134c3d6c699841f17306835bb193785228ffe7ab212a01a861c56b086a18cec"],["626814e320fb5bea505b248fd1c1389ad586c1cfe04923fe2f83173e915f4f8","7ae407a926e887206a8b85cf485f1f327c9bb8ccbb6897024e2d122877d8ee0"],["23186237dc7d3b570cea645282ad4c359731bbfa54e7f036426bf6493812cd","7d1fbab7e61a22d3b00993290d9f4cd5d820061573e787f66c2cff9a18e1eaf"],["54302dcb0e6cc1c6e44cca8f61a63bb2ca65048d53fb325d36ff12c49a58202","1b77b3e37d13504b348046268d8ae25ce98ad783c25561a879dcc77e99c2426"],["13961b56b9fc0e412e468c385c22bd0680a25624ec211ffbb6bc877b2a6926c","62f7f7792c77cd981fad13cb6863fe099c4d971c1374109185eae99943f16e9"],["47abd7308c70659af3f00fafe6837298af3cb530b6c2ba710ffd07a6bc1ae98","75d0c8a7377aa9f0663d0c124a5659750847afabc29e39893fd27534a4a03cb"],["2c6276b764fb398fa555857dbe0ce0ec18fab7a233bf23851295739801f0585","5d8f4897ce44007ec5bfcb9aeb78b8f6e1d40a514f72d213c9300d2770d2b8c"]],k=new d.default("800000000000011000000000000000000000000000000000000000000000001",16),R=new d.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),M=new b.default.ec(new b.default.curves.PresetCurve({type:"short",prime:null,p:k,a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:R,hash:h.default.sha256,gRed:!1,g:C[1]}));C.map(e=>M.curve.point(new d.default(e[0],16),new d.default(e[1],16)))[0],new d.default("0"),new d.default("1"),new d.default("3"),new d.default("4"),new d.default("1000"),new d.default("1001"),new d.default("1002"),new d.default("1003"),new d.default("0"),new d.default("1"),new d.default("400000",16),new d.default("80000000",16),new d.default("8000000000000000",16),new d.default("800000000000011000000000000000000000000000000000000000000000001",16),new d.default("800000000000000000000000000000000000000000000000000000000000000",16);var B=new d.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),P=new d.default("FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141",16);function O(e,t,r){let n=l.hexToBinary(e).slice(t,r);return l.binaryToNumber(n)}function j(e,t){return new d.default((0,h.default).sha256().update(l.hexToBuffer(l.removeHexPrefix(e)+l.sanitizeBytes(l.numberToHex(t),2))).digest("hex"),16)}function N(e){let t=0,r=j(e,0);for(;!r.lt(P.sub(P.mod(B)));)r=j(r.toString(16),t),t=t++;return r.mod(B).toString("hex")}var U=class{constructor(e){this.privateKey=e,this.keyPair=M.keyFromPrivate(e,"hex")}keyPair;getAddress(){let e=this.keyPair.getPublic().getX().toString("hex");return l.sanitizeHex(e)}async signMessage(e){return this.serialize(this.keyPair.sign(this.fixMsgHashLen(e)))}serialize(e){return l.addHexPrefix(l.padLeft(e.r.toString("hex"),64)+l.padLeft(e.s.toString("hex"),64))}getYCoordinate(){return Promise.resolve(l.sanitizeBytes(this.keyPair.getPublic().getY().toString(16),2))}fixMsgHashLen(e){if(e=l.removeHexPrefix(e),(e=new(0,d.default)(e,"hex").toString("hex")).length<=62)return e;if(63!==e.length)throw Error("invalid message length");return`${e}0`}};function L(e){return new U(e)}async function D(e){try{if(e){let t=(await (0,o.default).get(`https://api.x.immutable.com/v1/users/${e}`)).data;if(t?.accounts&&t.accounts.length>0)return{starkPublicKey:t.accounts[0],accountNotFound:!1}}}catch(e){if((0,o.default).isAxiosError(e)&&e.response?.data.code==="account_not_found")return{starkPublicKey:"",accountNotFound:!0}}}var{curves:F,ec:H}=b.default,V=new d.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16);new H(new F.PresetCurve({type:"short",prime:null,p:"08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001",a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:V.toString("hex"),hash:h.default.sha256,gRed:!1,g:["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"]}));var q=()=>{let e=new d.default("1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000",16);return e.sub(e.mod(V))};function z(e,t){return new d.default((0,h.default).sha256().update(l.hexToBuffer(l.removeHexPrefix(e)+l.sanitizeBytes(l.numberToHex(t),2))).digest("hex"),16)}async function G(e,t,r){let n,a=function(e,t){let r=e.slice(2).match(/.{1,2}/g)?.map(e=>parseInt(e,16));if(!r)throw Error("Seed is not a valid hex string");let n=Uint8Array.from(r),a=(0,g.hdkey).EthereumHDKey.fromMasterSeed(n).derivePath(t).getWallet().getPrivateKey();return new d.default(a)}(e,t),i=function(e){let t=q(),r=z(e.toString("hex",64),0);for(let e=1;r.gte(t);e++)r=z(r.toString("hex"),e);return r.umod(V).toString("hex")}(a);if(n=q(),!z(a.toString("hex",64),0).gte(n))return i;let s=await D(r);if(void 0===s)throw Error("Error fetching stark public key from IMX");if(s.accountNotFound)return i;let o=new d.default(l.removeHexPrefix(s.starkPublicKey),16),c=await L(i).getAddress();if(o.eq(new d.default(l.removeHexPrefix(c),16)))return i;let f=function(e){let t=q(),r=z(e.toString("hex",64),0);for(let e=0;r.gte(t);e++)r=z(r.toString("hex"),e);return r.umod(V).toString("hex")}(a);if(c=await L(f).getAddress(),o.eq(new d.default(l.removeHexPrefix(c),16)))return f;let u=N(function(e,t){let r=e.slice(2).match(/.{1,2}/g)?.map(e=>parseInt(e,16));if(!r)throw Error("Seed is not a valid hex string");let n=Uint8Array.from(r);return(0,g.hdkey).EthereumHDKey.fromMasterSeed(n).derivePath(t).getWallet().getPrivateKeyString()}(e,t));if(c=await L(u).getAddress(),o.eq(new d.default(l.removeHexPrefix(c),16)))return u;throw Error("Can not deterministically generate stark private key - please contact support")}function K(){return N(M.genKeyPair().getPrivate("hex"))}async function W(e){var t,r;let n,a,i,s,o,f;let d=(await e.getAddress()).toLowerCase(),l=await e.signMessage((0,c.toUtf8Bytes)("Only sign this request if you’ve initiated an action with Immutable X.")),u=(0,c.Signature).from(l).s,p=(t="starkex",r="immutablex",n=(0,h.default).sha256().update(t).digest("hex"),a=(0,h.default).sha256().update(r).digest("hex"),i=O(n,-31),s=O(a,-31),o=O(d,-31),f=O(d,-62,-31),`m/2645'/${i}'/${s}'/${o}'/${f}'/1`);return(await G(u,p,d)).padStart(64,"0")}function $(e,t=64){var r;return e=l.removeHexPrefix(e),{r:new d.default(e.substring(0,t),"hex"),s:new d.default(e.substring(t,2*t),"hex"),recoveryParam:(r=e.substring(2*t,2*t+2)).trim()?-1!==new(0,d.default)(r,16).cmp(new d.default(27))?new(0,d.default)(r,16).sub(new d.default(27)).toNumber():new(0,d.default)(r,16).toNumber():void 0}}async function J(e,t){var r;return r=$(await t.signMessage(e)),l.addHexPrefix(l.padLeft(r.r.toString(16),64)+l.padLeft(r.s.toString(16),64)+l.padLeft(r.recoveryParam?.toString(16)||"",2))}async function Q(e){let t=Math.floor(Date.now()/1e3).toString(),r=await J(t,e);return{timestamp:t,signature:r}}function Z(e,t){return l.sanitizeHex(l.padLeft(e.r.toString(16),64)+l.padLeft(e.s.toString(16),64,"0")+l.padLeft(new(0,d.default)(l.removeHexPrefix(t),"hex").toString(16),64,"0"))}async function X(e,t,r){let n=(0,c.solidityPackedKeccak256)(["string","address","uint256"],["UserRegistration:",t,r]),a=new(0,d.default)(l.removeHexPrefix(n),16).mod(V);return Z($(await e.signMessage(a.toString(16))),l.sanitizeHex(await e.getYCoordinate()))}async function Y(e,t,r){let n=t.users.map(e=>({ether_key:e.user,tokens:e.tokens.map(e=>({id:e.id,blueprint:e.blueprint,...e.royalties&&e.royalties.length>0&&{royalties:e.royalties.map(e=>({recipient:e.recipient,percentage:e.percentage}))}}))})),{royalties:a}=t,i={contract_address:t.contract_address,...a&&a.length>0&&{royalties:a.map(e=>({recipient:e.recipient,percentage:e.percentage}))},users:n,auth_signature:""},s=(0,c.keccak256)((0,c.toUtf8Bytes)(JSON.stringify(i))),o=await J(s,e),f={mintTokensRequestV2:[{users:i.users.map(e=>({user:e.ether_key,tokens:e.tokens})),...a&&a.length>0&&{royalties:a},contract_address:t.contract_address,auth_signature:o}]};return(await r.mintTokens(f)).data}async function ee({ethSigner:e,starkSigner:t,request:r,exchangesApi:n}){let a=await e.getAddress(),i=r.amount,s=await n.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:a,token:function(e){switch(e.type){case"ERC721":return{type:"ERC721",data:{token_id:e.tokenId,token_address:e.tokenAddress}};case"ERC20":return{type:"ERC20",data:{token_address:e.tokenAddress}};default:return{type:"ETH",data:{decimals:18}}}}(r),amount:i,receiver:r.receiver}}),{signable_message:o,payload_hash:c}=s.data,f=await J(o,e),d=await t.signMessage(c),l={sender_stark_key:s.data.sender_stark_key,sender_vault_id:s.data.sender_vault_id,receiver_stark_key:s.data.receiver_stark_key,receiver_vault_id:s.data.receiver_vault_id,asset_id:s.data.asset_id,amount:s.data.amount,nonce:s.data.nonce,expiration_timestamp:s.data.expiration_timestamp,stark_signature:d},u=await n.createExchangeTransfer({id:r.transactionID,createTransferRequest:l,xImxEthAddress:a,xImxEthSignature:f});return{sent_signature:u?.data.sent_signature,status:u?.data.status?.toString(),time:u?.data.time,transfer_id:u?.data.transfer_id}}var et=class{constructor(e,t,r,n,a,i,s){this.config=e,this.config=e,this.collectionsApi=t,this.exchangesApi=r,this.metadataApi=n,this.metadataRefreshesApi=a,this.mintsApi=i,this.projectsApi=s}mintsApi;projectsApi;collectionsApi;metadataApi;metadataRefreshesApi;exchangesApi;isChainValid(e){return e===this.config.ethConfiguration.chainID}async validateChain(e){let t=(await e.provider?.getNetwork())?.chainId;if(!this.isChainValid(Number(t)))throw Error("The wallet used for this operation is not from the correct network.")}async getStarkExContractVersion(){let e={baseURL:`${this.config.apiConfiguration.basePath}/v1`};return(0,o.default).get("/starkex-contract-version",e)}async mint(e,t){return await this.validateChain(e),Y(e,t,this.mintsApi)}async exchangeTransfer(e,t){return await this.validateChain(e.ethSigner),ee({...e,request:t,exchangesApi:this.exchangesApi})}async getProject(e,t){let r=await Q(e);return this.projectsApi.getProject({id:t,iMXSignature:r.signature,iMXTimestamp:r.timestamp})}async createCollection(e,t){let r=await Q(e);return this.collectionsApi.createCollection({iMXSignature:r.signature,iMXTimestamp:r.timestamp,createCollectionRequest:t})}async updateCollection(e,t,r){let n=await Q(e);return this.collectionsApi.updateCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,address:t,updateCollectionRequest:r})}async addMetadataSchemaToCollection(e,t,r){let n=await Q(e);return this.metadataApi.addMetadataSchemaToCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,addMetadataSchemaToCollectionRequest:r,address:t})}async updateMetadataSchemaByName(e,t,r,n){let a=await Q(e);return this.metadataApi.updateMetadataSchemaByName({iMXSignature:a.signature,iMXTimestamp:a.timestamp,address:t,name:r,metadataSchemaRequest:n})}async listMetadataRefreshes(e,t,r,n){let a=await Q(e),i=await e.getAddress();return this.metadataRefreshesApi.getAListOfMetadataRefreshes({xImxEthSignature:a.signature,xImxEthTimestamp:a.timestamp,xImxEthAddress:i,collectionAddress:t,pageSize:r,cursor:n})}async getMetadataRefreshErrors(e,t,r,n){let a=await Q(e),i=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshErrors({xImxEthSignature:a.signature,xImxEthTimestamp:a.timestamp,xImxEthAddress:i,refreshId:t,pageSize:r,cursor:n})}async getMetadataRefreshResults(e,t){let r=await Q(e),n=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshResults({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,refreshId:t})}async createMetadataRefresh(e,t){let r=await Q(e),n=await e.getAddress();return this.metadataRefreshesApi.requestAMetadataRefresh({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,createMetadataRefreshRequest:t})}},er=class{immutableX;imxConfig;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;workflows;constructor(e){this.imxConfig=new _(e),this.immutableX=new a.ImxApiClients(this.imxConfig.immutableXConfig.apiConfiguration),this.assetApi=this.immutableX.assetApi,this.balanceApi=this.immutableX.balanceApi,this.collectionApi=this.immutableX.collectionApi,this.depositsApi=this.immutableX.depositsApi,this.encodingApi=this.immutableX.encodingApi,this.exchangeApi=this.immutableX.exchangeApi,this.metadataApi=this.immutableX.metadataApi,this.metadataRefreshesApi=this.immutableX.metadataRefreshesApi,this.mintsApi=this.immutableX.mintsApi,this.nftCheckoutPrimaryApi=this.immutableX.nftCheckoutPrimaryApi,this.ordersApi=this.immutableX.ordersApi,this.projectsApi=this.immutableX.projectsApi,this.tokensApi=this.immutableX.tokensApi,this.tradesApi=this.immutableX.tradesApi,this.transfersApi=this.immutableX.transfersApi,this.usersApi=this.immutableX.usersApi,this.withdrawalsApi=this.immutableX.withdrawalsApi,this.workflows=new et(this.imxConfig.immutableXConfig,this.immutableX.collectionApi,this.immutableX.exchangeApi,this.immutableX.metadataApi,this.immutableX.metadataRefreshesApi,this.immutableX.mintsApi,this.immutableX.projectsApi)}getDeposit(e){return this.depositsApi.getDeposit(e).then(e=>e.data).catch(e=>{throw S(e)})}listDeposits(e){return this.depositsApi.listDeposits(e).then(e=>e.data).catch(e=>{throw S(e)})}getUser(e){return this.usersApi.getUsers({user:e}).then(e=>e.data).catch(e=>{throw S(e)})}getAsset(e){return this.assetApi.getAsset(e).then(e=>e.data).catch(e=>{throw S(e)})}listAssets(e){return this.assetApi.listAssets(e).then(e=>e.data).catch(e=>{throw S(e)})}createCollection(e,t){return this.workflows.createCollection(e,t).then(e=>e.data).catch(e=>{throw S(e)})}getCollection(e){return this.collectionApi.getCollection(e).then(e=>e.data).catch(e=>{throw S(e)})}listCollectionFilters(e){return this.collectionApi.listCollectionFilters(e).then(e=>e.data).catch(e=>{throw S(e)})}listCollections(e){return this.collectionApi.listCollections(e).then(e=>e.data).catch(e=>{throw S(e)})}updateCollection(e,t,r){return this.workflows.updateCollection(e,t,r).then(e=>e.data).catch(e=>{throw S(e)})}addMetadataSchemaToCollection(e,t,r){return this.workflows.addMetadataSchemaToCollection(e,t,r).then(e=>e.data).catch(e=>{throw S(e)})}getMetadataSchema(e){return this.metadataApi.getMetadataSchema(e).then(e=>e.data).catch(e=>{throw S(e)})}updateMetadataSchemaByName(e,t,r,n){return this.workflows.updateMetadataSchemaByName(e,t,r,n).then(e=>e.data).catch(e=>{throw S(e)})}listMetadataRefreshes(e,t,r,n){return this.workflows.listMetadataRefreshes(e,t,r,n).then(e=>e.data).catch(e=>{throw S(e)})}getMetadataRefreshErrors(e,t,r,n){return this.workflows.getMetadataRefreshErrors(e,t,r,n).then(e=>e.data).catch(e=>{throw S(e)})}getMetadataRefreshResults(e,t){return this.workflows.getMetadataRefreshResults(e,t).then(e=>e.data).catch(e=>{throw S(e)})}createMetadataRefresh(e,t){return this.workflows.createMetadataRefresh(e,t).then(e=>e.data).catch(e=>{throw S(e)})}async getProject(e,t){return this.workflows.getProject(e,t).then(e=>e.data).catch(e=>{throw S(e)})}getBalance(e){return this.balanceApi.getBalance(e).then(e=>e.data).catch(e=>{throw S(e)})}listBalances(e){return this.balanceApi.listBalances(e).then(e=>e.data).catch(e=>{throw S(e)})}getMint(e){return this.mintsApi.getMint(e).then(e=>e.data).catch(e=>{throw S(e)})}listMints(e){return this.mintsApi.listMints(e).then(e=>e.data).catch(e=>{throw S(e)})}mint(e,t){return this.workflows.mint(e,t)}listWithdrawals(e){return this.withdrawalsApi.listWithdrawals(e).then(e=>e.data).catch(e=>{throw S(e)})}getWithdrawal(e){return this.withdrawalsApi.getWithdrawal(e).then(e=>e.data).catch(e=>{throw S(e)})}getOrder(e){return this.ordersApi.getOrderV3(e).then(e=>e.data).catch(e=>{throw S(e)})}listOrders(e){return this.ordersApi.listOrdersV3(e).then(e=>e.data).catch(e=>{throw S(e)})}getTrade(e){return this.tradesApi.getTradeV3(e).then(e=>e.data).catch(e=>{throw S(e)})}listTrades(e){return this.tradesApi.listTradesV3(e).then(e=>e.data).catch(e=>{throw S(e)})}getToken(e){return this.tokensApi.getToken(e).then(e=>e.data).catch(e=>{throw S(e)})}listTokens(e){return this.tokensApi.listTokens(e).then(e=>e.data).catch(e=>{throw S(e)})}getTransfer(e){return this.transfersApi.getTransfer(e).then(e=>e.data).catch(e=>{throw S(e)})}listTransfers(e){return this.transfersApi.listTransfers(e).then(e=>e.data).catch(e=>{throw S(e)})}createExchange(e){return this.exchangeApi.createExchange(e).then(e=>e.data).catch(e=>{throw S(e)})}getExchange(e){return this.exchangeApi.getExchange(e).then(e=>e.data).catch(e=>{throw S(e)})}getExchanges(e){return this.exchangeApi.getExchanges(e).then(e=>e.data).catch(e=>{throw S(e)})}exchangeTransfer(e,t){return this.workflows.exchangeTransfer(e,t)}createNftPrimary(e){return this.nftCheckoutPrimaryApi.createNftPrimary(e).then(e=>e.data).catch(e=>{throw S(e)})}getCurrenciesNFTCheckoutPrimary(e){return this.nftCheckoutPrimaryApi.getCurrenciesNFTCheckoutPrimary(e).then(e=>e.data).catch(e=>{throw S(e)})}getNftPrimaryTransaction(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransaction(e).then(e=>e.data).catch(e=>{throw S(e)})}getNftPrimaryTransactions(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransactions(e).then(e=>e.data).catch(e=>{throw S(e)})}},en=class extends er{},ea={};((e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})})(ea,{Core:()=>ed,CoreV4:()=>eg,IERC20:()=>es,IERC721:()=>ec,Registration:()=>ep,RegistrationV4:()=>ew});var ei=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],es=class{static abi=ei;static createInterface(){return new c.Interface(ei)}static connect(e,t){return new c.Contract(e,ei,t)}},eo=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],ec=class{static abi=eo;static createInterface(){return new c.Interface(eo)}static connect(e,t){return new c.Contract(e,eo,t)}},ef=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"ethKey",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isFrozen",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainIsGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerUser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],ed=class{static abi=ef;static createInterface(){return new c.Interface(ef)}static connect(e,t){return new c.Contract(e,ef,t)}},el=[{inputs:[{internalType:"contract Core",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"imx",outputs:[{internalType:"contract Core",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndDepositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"regsiterAndWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"}],eu="0x60806040523480156200001157600080fd5b5060405162001313380380620013138339818101604052810190620000379190620000fc565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200012e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000b08262000083565b9050919050565b6000620000c482620000a3565b9050919050565b620000d681620000b7565b8114620000e257600080fd5b50565b600081519050620000f681620000cb565b92915050565b6000602082840312156200011557620001146200007e565b5b60006200012584828501620000e5565b91505092915050565b6111d5806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634280d50a1161005b5780634280d50a146100ff5780634627d5981461011b578063579a698814610137578063ea864adf1461016757610088565b80630a9c3beb1461008d5780630f08025f146100a95780631259cc6c146100c7578063352eb84c146100e3575b600080fd5b6100a760048036038101906100a29190610a72565b610183565b005b6100b16102ae565b6040516100be9190610b8d565b60405180910390f35b6100e160048036038101906100dc9190610ba8565b6102d2565b005b6100fd60048036038101906100f89190610c57565b6103fd565b005b61011960048036038101906101149190610cf1565b610525565b005b61013560048036038101906101309190610da0565b610650565b005b610151600480360381019061014c9190610e3a565b610778565b60405161015e9190610e82565b60405180910390f35b610181600480360381019061017c9190610e9d565b61084a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016101e29493929190610fa1565b600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016102739493929190610fe1565b600060405180830381600087803b15801561028d57600080fd5b505af11580156102a1573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016103319493929190610fa1565b600060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebef0fd0878585856040518563ffffffff1660e01b81526004016103c29493929190611021565b600060405180830381600087803b1580156103dc57600080fd5b505af11580156103f0573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b815260040161045c9493929190610fa1565b600060405180830381600087803b15801561047657600080fd5b505af115801561048a573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016104eb93929190611066565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b50505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016105849493929190610fa1565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae1cdde6878585856040518563ffffffff1660e01b8152600401610615949392919061109d565b600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b81526004016106af9493929190610fa1565b600060405180830381600087803b1580156106c957600080fd5b505af11580156106dd573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314cd70e48684846040518463ffffffff1660e01b815260040161073e939291906110e2565b600060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b50505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016107ea9190611119565b602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611149565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4868686866040518563ffffffff1660e01b81526004016108a99493929190610fa1565b600060405180830381600087803b1580156108c357600080fd5b505af11580156108d7573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663441a3e7085836040518363ffffffff1660e01b8152600401610936929190611176565b600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b505050505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109a482610979565b9050919050565b6109b481610999565b81146109bf57600080fd5b50565b6000813590506109d1816109ab565b92915050565b6000819050919050565b6109ea816109d7565b81146109f557600080fd5b50565b600081359050610a07816109e1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3257610a31610a0d565b5b8235905067ffffffffffffffff811115610a4f57610a4e610a12565b5b602083019150836001820283011115610a6b57610a6a610a17565b5b9250929050565b600080600080600080600060a0888a031215610a9157610a9061096f565b5b6000610a9f8a828b016109c2565b9750506020610ab08a828b016109f8565b965050604088013567ffffffffffffffff811115610ad157610ad0610974565b5b610add8a828b01610a1c565b95509550506060610af08a828b016109f8565b935050608088013567ffffffffffffffff811115610b1157610b10610974565b5b610b1d8a828b01610a1c565b925092505092959891949750929550565b6000819050919050565b6000610b53610b4e610b4984610979565b610b2e565b610979565b9050919050565b6000610b6582610b38565b9050919050565b6000610b7782610b5a565b9050919050565b610b8781610b6c565b82525050565b6000602082019050610ba26000830184610b7e565b92915050565b600080600080600080600060c0888a031215610bc757610bc661096f565b5b6000610bd58a828b016109c2565b9750506020610be68a828b016109f8565b965050604088013567ffffffffffffffff811115610c0757610c06610974565b5b610c138a828b01610a1c565b95509550506060610c268a828b016109f8565b9350506080610c378a828b016109f8565b92505060a0610c488a828b016109c2565b91505092959891949750929550565b60008060008060008060a08789031215610c7457610c7361096f565b5b6000610c8289828a016109c2565b9650506020610c9389828a016109f8565b955050604087013567ffffffffffffffff811115610cb457610cb3610974565b5b610cc089828a01610a1c565b94509450506060610cd389828a016109f8565b9250506080610ce489828a016109f8565b9150509295509295509295565b600080600080600080600060c0888a031215610d1057610d0f61096f565b5b6000610d1e8a828b016109c2565b9750506020610d2f8a828b016109f8565b965050604088013567ffffffffffffffff811115610d5057610d4f610974565b5b610d5c8a828b01610a1c565b95509550506060610d6f8a828b016109f8565b9350506080610d808a828b016109f8565b92505060a0610d918a828b016109f8565b91505092959891949750929550565b60008060008060008060a08789031215610dbd57610dbc61096f565b5b6000610dcb89828a016109c2565b9650506020610ddc89828a016109f8565b955050604087013567ffffffffffffffff811115610dfd57610dfc610974565b5b610e0989828a01610a1c565b94509450506060610e1c89828a016109f8565b9250506080610e2d89828a016109c2565b9150509295509295509295565b600060208284031215610e5057610e4f61096f565b5b6000610e5e848285016109f8565b91505092915050565b60008115159050919050565b610e7c81610e67565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600080600080600060808688031215610eb957610eb861096f565b5b6000610ec7888289016109c2565b9550506020610ed8888289016109f8565b945050604086013567ffffffffffffffff811115610ef957610ef8610974565b5b610f0588828901610a1c565b93509350506060610f18888289016109f8565b9150509295509295909350565b610f2e81610999565b82525050565b610f3d816109d7565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610f808385610f43565b9350610f8d838584610f54565b610f9683610f63565b840190509392505050565b6000606082019050610fb66000830187610f25565b610fc36020830186610f34565b8181036040830152610fd6818486610f74565b905095945050505050565b6000606082019050610ff66000830187610f34565b6110036020830186610f34565b8181036040830152611016818486610f74565b905095945050505050565b60006080820190506110366000830187610f34565b6110436020830186610f34565b6110506040830185610f34565b61105d6060830184610f25565b95945050505050565b600060608201905061107b6000830186610f34565b6110886020830185610f34565b6110956040830184610f34565b949350505050565b60006080820190506110b26000830187610f34565b6110bf6020830186610f34565b6110cc6040830185610f34565b6110d96060830184610f34565b95945050505050565b60006060820190506110f76000830186610f34565b6111046020830185610f34565b6111116040830184610f25565b949350505050565b600060208201905061112e6000830184610f34565b92915050565b600081519050611143816109ab565b92915050565b60006020828403121561115f5761115e61096f565b5b600061116d84828501611134565b91505092915050565b600060408201905061118b6000830185610f34565b6111986020830184610f34565b939250505056fea2646970667358221220ec3495278afe78566e74b538d48e94b094c110ca38b03493e90e5e382cc99d0264736f6c63430008130033",eh=e=>e.length>1,ep=class extends c.ContractFactory{constructor(...e){eh(e)?super(...e):super(el,eu,e[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=eu;static abi=el;static createInterface(){return new c.Interface(el)}static connect(e,t){return new c.Contract(e,el,t)}},eb=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedActivationTime",type:"uint256"}],name:"ImplementationActivationRescheduled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newDefaultLockTime",type:"uint256"}],name:"LogDefaultVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositToVault",type:"event"},{anonymous:!1,inputs:[],name:"LogFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"acceptedGovernor",type:"address"}],name:"LogNewGovernorAccepted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"nominatedGovernor",type:"address"}],name:"LogNominatedGovernor",type:"event"},{anonymous:!1,inputs:[],name:"LogNominationCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemovalIntent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"removedGovernor",type:"address"}],name:"LogRemovedGovernor",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"bytes",name:"assetInfo",type:"bytes"},{indexed:!1,internalType:"uint256",name:"quantum",type:"uint256"}],name:"LogTokenRegistered",type:"event"},{anonymous:!1,inputs:[],name:"LogUnFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"LogUserRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timeRelease",type:"uint256"}],name:"LogVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalFromVault",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEPOSIT_CANCEL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"FREEZE_GRACE_PERIOD",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAIN_GOVERNANCE_INFO_TAG",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_FORCED_ACTIONS_REQS_PER_BLOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_VERIFIER_COUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"STARKEX_MAX_DEFAULT_VAULT_LOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNFREEZE_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERIFIER_REMOVAL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"defaultVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20ToVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEthToVault",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActionCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"actionIndex",type:"uint256"}],name:"getActionHashByIndex",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"isAssetRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isAvailabilityVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isFrozen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedOperator",type:"address"}],name:"isOperator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isStrictVaultBalancePolicy",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedAdmin",type:"address"}],name:"isTokenAdmin",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"isVaultLocked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"lockTime",type:"uint256"}],name:"lockVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"testGovernor",type:"address"}],name:"mainIsGovernor",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newGovernor",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"governorForRemoval",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"orderRegistryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerEthAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOperator",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"},{internalType:"uint256",name:"quantum",type:"uint256"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newDefaultTime",type:"uint256"}],name:"setDefaultVaultWithdrawalLock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"removedOperator",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"oldAdmin",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"implementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bool",name:"finalize",type:"bool"}],name:"updateImplementationActivationTime",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"withdrawFromVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],eg=class{static abi=eb;static createInterface(){return new c.Interface(eb)}static connect(e,t){return new c.Contract(e,eb,t)}},em=[{inputs:[{internalType:"address payable",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"NoFundsToWithdraw",type:"error"},{inputs:[],name:"getVersion",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"imx",outputs:[{internalType:"contract CoreV4",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"registerWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"}],ey="0x60a06040523480156200001157600080fd5b50604051620012bc380380620012bc8339818101604052810190620000379190620000dc565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000a48262000077565b9050919050565b620000b68162000097565b8114620000c257600080fd5b50565b600081519050620000d681620000ab565b92915050565b600060208284031215620000f557620000f462000072565b5b60006200010584828501620000c5565b91505092915050565b608051611145620001776000396000818161016d01528181610229015281816102c2015281816102f30152818161038501528181610429015281816104bb0152818161056e01528181610629015281816106c9015281816107c4015261085b01526111456000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063352eb84c1161005b578063352eb84c146100da57806343fa186d146100f6578063579a698814610112578063d2fc99b5146101425761007d565b8063022cabbc146100825780630d8e6e2c1461009e5780630f08025f146100bc575b600080fd5b61009c600480360381019061009791906109fb565b61015e565b005b6100a6610225565b6040516100b39190610b13565b60405180910390f35b6100c46102c0565b6040516100d19190610b94565b60405180910390f35b6100f460048036038101906100ef9190610baf565b6102e4565b005b610110600480360381019061010b9190610c49565b61041a565b005b61012c60048036038101906101279190610d05565b610553565b6040516101399190610d4d565b60405180910390f35b61015c60048036038101906101579190610d68565b610625565b005b61016784610553565b6101fd577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187868686866040518563ffffffff1660e01b81526004016101ca9493929190610e26565b600060405180830381600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050505b61021e8573ffffffffffffffffffffffffffffffffffffffff168583610625565b5050505050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610292573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906102bb9190610f87565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102ed85610553565b610383577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187878787876040518563ffffffff1660e01b81526004016103509493929190610e26565b600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016103e093929190610fd0565b600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b50505050505050505050565b61042386610553565b6104b9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187888888886040518563ffffffff1660e01b81526004016104869493929190610e26565b600060405180830381600087803b1580156104a057600080fd5b505af11580156104b4573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016105189493929190611007565b600060405180830381600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b5050505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016105c59190611047565b602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106069190611077565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085846040518363ffffffff1660e01b81526004016106829291906110a4565b602060405180830381865afa15801561069f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c391906110e2565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085856040518363ffffffff1660e01b81526004016107229291906110a4565b602060405180830381865afa15801561073f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906110e2565b90506000821480156107755750600081145b156107b95784846040517f1362cdf20000000000000000000000000000000000000000000000000000000081526004016107b09291906110a4565b60405180910390fd5b6000821115610850577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7086856040518363ffffffff1660e01b815260040161081d9291906110a4565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b505050505b60008111156108e7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7085856040518363ffffffff1660e01b81526004016108b49291906110a4565b600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061092d82610902565b9050919050565b61093d81610922565b811461094857600080fd5b50565b60008135905061095a81610934565b92915050565b6000819050919050565b61097381610960565b811461097e57600080fd5b50565b6000813590506109908161096a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126109bb576109ba610996565b5b8235905067ffffffffffffffff8111156109d8576109d761099b565b5b6020830191508360018202830111156109f4576109f36109a0565b5b9250929050565b600080600080600060808688031215610a1757610a166108f8565b5b6000610a258882890161094b565b9550506020610a3688828901610981565b945050604086013567ffffffffffffffff811115610a5757610a566108fd565b5b610a63888289016109a5565b93509350506060610a7688828901610981565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b83811015610abd578082015181840152602081019050610aa2565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ae582610a83565b610aef8185610a8e565b9350610aff818560208601610a9f565b610b0881610ac9565b840191505092915050565b60006020820190508181036000830152610b2d8184610ada565b905092915050565b6000819050919050565b6000610b5a610b55610b5084610902565b610b35565b610902565b9050919050565b6000610b6c82610b3f565b9050919050565b6000610b7e82610b61565b9050919050565b610b8e81610b73565b82525050565b6000602082019050610ba96000830184610b85565b92915050565b60008060008060008060a08789031215610bcc57610bcb6108f8565b5b6000610bda89828a0161094b565b9650506020610beb89828a01610981565b955050604087013567ffffffffffffffff811115610c0c57610c0b6108fd565b5b610c1889828a016109a5565b94509450506060610c2b89828a01610981565b9250506080610c3c89828a01610981565b9150509295509295509295565b600080600080600080600060a0888a031215610c6857610c676108f8565b5b6000610c768a828b0161094b565b9750506020610c878a828b01610981565b965050604088013567ffffffffffffffff811115610ca857610ca76108fd565b5b610cb48a828b016109a5565b95509550506060610cc78a828b01610981565b935050608088013567ffffffffffffffff811115610ce857610ce76108fd565b5b610cf48a828b016109a5565b925092505092959891949750929550565b600060208284031215610d1b57610d1a6108f8565b5b6000610d2984828501610981565b91505092915050565b60008115159050919050565b610d4781610d32565b82525050565b6000602082019050610d626000830184610d3e565b92915050565b600080600060608486031215610d8157610d806108f8565b5b6000610d8f86828701610981565b9350506020610da086828701610981565b9250506040610db186828701610981565b9150509250925092565b610dc481610922565b82525050565b610dd381610960565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000610e058385610dd9565b9350610e12838584610dea565b610e1b83610ac9565b840190509392505050565b6000606082019050610e3b6000830187610dbb565b610e486020830186610dca565b8181036040830152610e5b818486610df9565b905095945050505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610ea382610ac9565b810181811067ffffffffffffffff82111715610ec257610ec1610e6b565b5b80604052505050565b6000610ed56108ee565b9050610ee18282610e9a565b919050565b600067ffffffffffffffff821115610f0157610f00610e6b565b5b610f0a82610ac9565b9050602081019050919050565b6000610f2a610f2584610ee6565b610ecb565b905082815260208101848484011115610f4657610f45610e66565b5b610f51848285610a9f565b509392505050565b600082601f830112610f6e57610f6d610996565b5b8151610f7e848260208601610f17565b91505092915050565b600060208284031215610f9d57610f9c6108f8565b5b600082015167ffffffffffffffff811115610fbb57610fba6108fd565b5b610fc784828501610f59565b91505092915050565b6000606082019050610fe56000830186610dca565b610ff26020830185610dca565b610fff6040830184610dca565b949350505050565b600060608201905061101c6000830187610dca565b6110296020830186610dca565b818103604083015261103c818486610df9565b905095945050505050565b600060208201905061105c6000830184610dca565b92915050565b60008151905061107181610934565b92915050565b60006020828403121561108d5761108c6108f8565b5b600061109b84828501611062565b91505092915050565b60006040820190506110b96000830185610dca565b6110c66020830184610dca565b9392505050565b6000815190506110dc8161096a565b92915050565b6000602082840312156110f8576110f76108f8565b5b6000611106848285016110cd565b9150509291505056fea2646970667358221220c33e1830b470bf1e012ac831ec80242d6268e5e6e990b7e1574a230f71533ebd64736f6c63430008130033",ev=e=>e.length>1,ew=class extends c.ContractFactory{constructor(...e){ev(e)?super(...e):super(em,ey,e[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=ey;static abi=em;static createInterface(){return new c.Interface(em)}static connect(e,t){return new c.Contract(e,em,t)}},ex=class extends a.imx.AssetsApi{},eE=class extends a.imx.BalancesApi{},eA=class extends a.imx.CollectionsApi{},e_=class extends a.imx.DepositsApi{},eT=class extends a.imx.EncodingApi{},eI=class extends a.imx.ExchangesApi{},eS=class extends a.imx.MintsApi{},eC=class extends a.imx.MetadataApi{},ek=class extends a.imx.MetadataRefreshesApi{},eR=class extends a.imx.NftCheckoutPrimaryApi{},eM=class extends a.imx.OrdersApi{},eB=class extends a.imx.ProjectsApi{},eP=class extends a.imx.TokensApi{},eO=class extends a.imx.TradesApi{},ej=class extends a.imx.TransfersApi{},eN=class extends a.imx.UsersApi{},eU=class extends a.imx.WithdrawalsApi{},eL=a.imx.MetadataSchemaRequestTypeEnum},{"@imtbl/generated-clients":"8BZnj","@imtbl/config":"ifUQV",axios:"fYIJi",ethers:"jZqA6","bn.js":"6pNUR","enc-utils":"6ILTN","hash.js":"5JqHI",elliptic:"e7lRE","@ethereumjs/wallet":"ftYyV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ifUQV:[function(e,t,r){let n,a;var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Environment",()=>o),i.export(r,"ImmutableConfiguration",()=>f),i.export(r,"KeyHeaders",()=>c),i.export(r,"addKeysToHeadersOverride",()=>d);var s=e("@imtbl/metrics"),o=((n=o||{}).PRODUCTION="production",n.SANDBOX="sandbox",n),c=((a=c||{}).API_KEY="x-immutable-api-key",a.PUBLISHABLE_KEY="x-immutable-publishable-key",a.RATE_LIMITING_KEY="x-api-key",a),f=class{environment;rateLimitingKey;apiKey;publishableKey;constructor(e){this.environment=e.environment,this.publishableKey=e.publishableKey,this.apiKey=e.apiKey,this.rateLimitingKey=e.rateLimitingKey,(0,s.setEnvironment)(e.environment),(0,s.track)("config","created_imtbl_config")}},d=(e,t)=>{if(!e||!e.apiKey&&!e.publishableKey&&!e.rateLimitingKey)return t;let r={};return e.apiKey&&(r["x-immutable-api-key"]=e.apiKey),e.publishableKey&&(r["x-immutable-publishable-key"]=e.publishableKey,(0,s.setPublishableApiKey)(e.publishableKey)),e.rateLimitingKey&&(r["x-api-key"]=e.rateLimitingKey),t&&t.headers?{...t,headers:{...r,...t.headers}}:{...t,headers:r}}},{"@imtbl/metrics":"7Q1ml","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7Q1ml":[function(e,t,r){let n,a;var i,s,o,c,f,d=e("@parcel/transformer-js/src/esmodule-helpers.js");d.defineInteropFlag(r),d.export(r,"Detail",()=>X),d.export(r,"getDetail",()=>eO),d.export(r,"identify",()=>eR),d.export(r,"setEnvironment",()=>eM),d.export(r,"setPassportClientId",()=>eB),d.export(r,"setPublishableApiKey",()=>eP),d.export(r,"track",()=>ey),d.export(r,"trackDuration",()=>eE),d.export(r,"trackError",()=>eC),d.export(r,"trackFlow",()=>eS),d.export(r,"utils",()=>ej);var l=e("axios"),u=d.interopDefault(l),h=e("lru-memorise"),p=e("global-const"),b=Object.defineProperty;function g(e){throw Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}var m,y=[],v=!1,w=-1;function x(){v&&m&&(v=!1,m.length?y=m.concat(y):w=-1,y.length&&E())}function E(){if(!v){var e=setTimeout(x,0);v=!0;for(var t=y.length;t;){for(m=y,y=[];++wtypeof performance?performance.now.bind(performance):void 0,timing:"u">typeof performance?performance.timing:void 0};function C(e){var t=Math.floor((Date.now()-S.now())*.001),r=.001*S.now(),n=Math.floor(r)+t,a=Math.floor(r%1*1e9);return e&&(n-=e[0],(a-=e[1])<0&&(n--,a+=1e9)),[n,a]}function k(){return R}void 0===S.now&&(i=Date.now(),S.timing&&S.timing.navigationStart&&(i=S.timing.navigationStart),S.now=()=>Date.now()-i),C.bigint=function(e){var t=C(e);return typeof BigInt>"u"?1e9*t[0]+t[1]:BigInt(1e9*t[0])+BigInt(t[1])};var R={version:"v16.8.0",versions:{},arch:"x64",platform:"browser",release:{name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_rawDebug:T,moduleLoadList:[],binding:function(e){g("binding")},_linkedBinding:function(e){g("_linkedBinding")},_events:{},_eventsCount:0,_maxListeners:10,on:k,addListener:k,once:k,off:k,removeListener:k,removeAllListeners:k,emit:T,prependListener:k,prependOnceListener:k,listeners:function(e){return[]},domain:{},_exiting:!1,config:{},dlopen:function(e){g("dlopen")},uptime:function(){return S.now()/1e3},_getActiveRequests:function(){return[]},_getActiveHandles:function(){return[]},reallyExit:T,_kill:T,cpuUsage:I,resourceUsage:I,memoryUsage:I,kill:T,exit:T,openStdin:T,allowedNodeEnvironmentFlags:{},assert:function(e,t){if(!e)throw Error(t||"assertion error")},features:{inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_fatalExceptions:T,setUncaughtExceptionCaptureCallback:T,hasUncaughtExceptionCaptureCallback:function(){return!1},emitWarning:function(e,t){console.warn((t?t+": ":"")+e)},nextTick:function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r0?o-4:o;for(a=0;a>16&255,f[d++]=n>>8&255,f[d++]=255&n;return 2===c&&(n=t[e.charCodeAt(a)]<<2|t[e.charCodeAt(a+1)]>>4,f[d++]=255&n),1===c&&(n=t[e.charCodeAt(a)]<<10|t[e.charCodeAt(a+1)]<<4|t[e.charCodeAt(a+2)]>>2,f[d++]=n>>8&255,f[d++]=255&n),f},M.fromByteArray=function(t){for(var r,n=t.length,a=n%3,i=[],s=0,o=n-a;s>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]);return i.join("")}(t,s,s+16383>o?o:s+16383));return 1===a?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===a&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],t=[],r="u">typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=n.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}return t[45]=62,t[95]=63,M}(),t=(O||(O=!0,P.read=function(e,t,r,n,a){var i,s,o=8*a-n-1,c=(1<>1,d=-7,l=r?a-1:0,u=r?-1:1,h=e[t+l];for(l+=u,i=h&(1<<-d)-1,h>>=-d,d+=o;d>0;i=256*i+e[t+l],l+=u,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=n;d>0;s=256*s+e[t+l],l+=u,d-=8);if(0===i)i=1-f;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=f}return(h?-1:1)*s*Math.pow(2,i-n)},P.write=function(e,t,r,n,a,i){var s,o,c,f=8*i-a-1,d=(1<>1,u=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+l>=1?t+=u/c:t+=u*Math.pow(2,1-l),t*c>=2&&(s++,c/=2),s+l>=d?(o=0,s=d):s+l>=1?(o=(t*c-1)*Math.pow(2,a),s+=l):(o=t*Math.pow(2,l-1)*Math.pow(2,a),s=0));a>=8;e[r+h]=255&o,h+=p,o/=256,a-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,f-=8);e[r+h-p]|=128*b}),P),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function n(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return o(e)}return i(e,t,r)}function i(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|l(e,t),i=n(r),s=i.write(e,t);return s!==r&&(i=i.slice(0,s)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(F(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return a.from(i,t,r);let s=function(e){var t;if(a.isBuffer(e)){let t=0|d(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?n(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(s)return s;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function o(e){return s(e),n(e<0?0:0|d(e))}function c(e){let t=e.length<0?0:0|d(e.length),r=n(t);for(let n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function l(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:U(e).length;t=(""+t).toLowerCase(),i=!0}}function u(t,r,n){let a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r=+r)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,a){let i,s=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,c/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){let n=-1;for(i=r;io&&(r=o-c),i=r;i>=0;i--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(a+s<=r){let r,n,o,c;switch(s){case 1:t<128&&(i=t);break;case 2:(192&(r=e[a+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[a+1],n=e[a+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[a+1],n=e[a+2],o=e[a+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),a+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function y(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function v(e,t,r,n,a){S(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function w(e,t,r,n,a){S(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function x(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,r,n,a,i){return r=+r,n>>>=0,i||x(e,r,n,4),t.write(e,r,n,a,23,4),n+4}function A(e,r,n,a,i){return r=+r,n>>>=0,i||x(e,r,n,8),t.write(e,r,n,a,52,8),n+8}j.Buffer=a,j.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},j.INSPECT_MAX_BYTES=50,j.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch{return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return i(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return s(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)},a.allocUnsafe=function(e){return o(e)},a.allocUnsafeSlow=function(e){return o(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let a=0,i=Math.min(r,n);an.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=l,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,c=Math.min(s,o),f=this.slice(n,i),d=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((void 0===r||r>u)&&(r=u),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let a;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let s=t.length;for(n>s/2&&(n=s/2),a=0;a>8,a.push(r%256),a.push(n);return a}(e,this.length-d),this,d,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||m(e,t,this.length);let n=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,r||m(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||m(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=V(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&k(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(a)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&k(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],a=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||m(e,t,this.length);let n=this[e],a=1,i=0;for(;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);let n=t,a=1,i=this[e+--n];for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return e>>>=0,t||m(e,1,this.length),128&this[e]?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||m(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||m(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=V(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&k(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&k(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,r||m(e,4,this.length),t.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,r){return e>>>=0,r||m(e,4,this.length),t.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,r){return e>>>=0,r||m(e,8,this.length),t.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,r){return e>>>=0,r||m(e,8,this.length),t.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;y(this,e,t,r,n,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;y(this,e,t,r,n,0)}let a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=V(function(e,t=0){return v(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=V(function(e,t=0){return w(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);y(this,e,t,r,n-1,-n)}let a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);y(this,e,t,r,n-1,-n)}let a=r-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=V(function(e,t=0){return v(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=V(function(e,t=0){return w(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function S(e,t,r,n,a,i){if(e>r||e= 0${r} and < 2${r} ** ${(i+1)*8}${r}`:`>= -(2${r} ** ${(i+1)*8-1}${r}) and < 2 ** ${(i+1)*8-1}${r}`,new _.ERR_OUT_OF_RANGE("value",n,e)}C(a,"offset"),(void 0===n[a]||void 0===n[a+i])&&k(a,n.length-(i+1))}function C(e,t){if("number"!=typeof e)throw new _.ERR_INVALID_ARG_TYPE(t,"number",e)}function k(e,t,r){throw Math.floor(e)!==e?(C(e,r),new _.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?a=I(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=I(a)),a+="n"),n+=` It must be ${t}. Received ${a}`},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function U(e,t){t=t||1/0;let r,n=e.length,a=null,i=[];for(let s=0;s55295&&r<57344){if(!a){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function L(t){return e.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function D(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let H=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function V(e){return typeof BigInt>"u"?q:e}function q(){throw Error("BigInt not supported")}return j}();U.Buffer,U.SlowBuffer,U.INSPECT_MAX_BYTES,U.kMaxLength;var L=U.Buffer;U.INSPECT_MAX_BYTES,U.kMaxLength;var D={};((e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})})(D,{deleteItem:()=>$,getItem:()=>K,setItem:()=>W});var F=()=>typeof window>"u",H=()=>!F(),V=()=>H()&&window.localStorage,q=e=>{if(null!==e)try{return JSON.parse(e)}catch{return e}},z=e=>"string"==typeof e?e:JSON.stringify(e),G=e=>`__IMX-${e}`;function K(e){if(V())return q(window.localStorage.getItem(G(e)))}var W=(e,t)=>!!V()&&(window.localStorage.setItem(G(e),z(t)),!0),$=e=>!!V()&&(window.localStorage.removeItem(G(e)),!0),J=0,Q=e=>{let t=new Date(1e3*parseInt(e,10)),r=new Date;return J=t.getTime()-r.getTime()},Z=()=>new Date(new Date().getTime()+J).toISOString(),X=((n=X||{}).RUNTIME_ID="rid",n.PASSPORT_CLIENT_ID="passportClientId",n.ENVIRONMENT="env",n.PUBLISHABLE_API_KEY="pak",n.IDENTITY="uid",n.DOMAIN="domain",n.SDK_VERSION="sdkVersion",n);async function Y(e,t){let r=(0,u.default).create({baseURL:"https://api.immutable.com"}),n=JSON.stringify(t),a={payload:L.from(n).toString("base64")};return(await r.post(e,a)).data}s=K("metrics-events")||[],o=K("metrics-runtime")||{};var ee=(e,t)=>{W("metrics-runtime",o={...o,[e]:t})},et=e=>{if(void 0!==o[e])return o[e]},er=()=>o,en=()=>s,ea=e=>{s.push(e),W("metrics-events",s)},ei=e=>{W("metrics-events",s=s.slice(e))},es=e=>{let t=[];return Object.entries(e).forEach(([e,r])=>{("string"==typeof e||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)&&t.push([e,r.toString()])}),t},eo="2.2.0",ec=()=>F()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ef=()=>{let e;if(F())return"";try{window.self!==window.top&&(e=ec())}catch{}return e||(e=window.location.hostname),e},ed=()=>{if(ee("sdkVersion",eo),F())return{browser:"nodejs",sdkVersion:eo};let e=ef();return e&&ee("domain",e),{sdkVersion:eo,browser:window.navigator.userAgent,domain:e,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},el=!1,eu=()=>el,eh=async()=>{el=!0;try{let e=es(ed()),t=et("rid"),r=et("uid"),{runtimeId:n,sTime:a}=await Y("/v1/sdk/initialise",{version:1,data:{runtimeDetails:e,runtimeId:t,uId:r}});ee("rid",n),Q(a)}catch{el=!1}};function ep(e,t){return(...r)=>{try{let n=e(...r);return n instanceof Promise?n.catch(()=>t):n}catch{return t}}}var eb=ep(function(){return!H()&&!(typeof R>"u")&&void 0!==R.env.JEST_WORKER_ID},!1),eg="imtbl__metrics",em=(e,t)=>(0,p.getGlobalisedValue)(eg,e,t),ey=ep((c="track",f=(e,t,r)=>{ea({event:`${e}.${t}`,time:Z(),...r&&{properties:es(r)}})},a=(0,h.memorise)(f,{lruOptions:{ttl:5e3,max:1e3}}),(0,p.getGlobalisedValue)(eg,c,a))),ev=ep(async()=>{if(!1===eu()){await eh();return}let e=en();if(0===e.length)return;let t=e.length,r=er();await Y("/v1/sdk/metrics",{version:1,data:{events:e,details:r}}) instanceof Error||ei(t)}),ew=async()=>{await ev(),setTimeout(ew,5e3)},ex=!1;eb()||ep(em("startFlushing",()=>{ex||(ex=!0,ew())}))();var eE=(e,t,r,n)=>ey(e,t,{...n||{},duration:Math.round(r)}),eA=()=>{let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`},e_=(...e)=>{if(!e.some(e=>!!e))return{};let t={};return e.forEach(e=>{e&&(t={...t,...e})}),t},eT=e=>e.replace(/[^a-zA-Z0-9\s\-_]/g,""),eI=(e,t)=>`${e}_${eT(t)}`,eS=ep((e,t,r=!0,n)=>{let a=eA(),i=Date.now(),s=0,o=0,c={},f=(...e)=>e_(c,...e,{flowId:a,flowName:t});c=f(n);let d=(r,n)=>{let a=eI(t,r),i=0,c=performance.now();s>0&&(i=c-o),eE(e,a,i,f(n,{flowEventName:r,flowStep:s})),s++,o=c};return r&&d("Start"),{details:{moduleName:e,flowName:t,flowId:a,flowStartTime:i},addEvent:ep(d),addFlowProperties:ep(e=>{e&&(c=f(e))})}}),eC=ep((e,t,r,n)=>{let{message:a}=r,i=r.stack||"",{cause:s}=r;s instanceof Error&&(i=`${i} +)[]`,eG=e=>e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit??BigInt(0),target:e.to??w.ZeroAddress,value:e.value??BigInt(0),data:e.data??"0x"})),eK=(e,t)=>{let r=(0,w.AbiCoder).defaultAbiCoder().encode(["uint256",ez],[e,t]);return(0,w.keccak256)(r)},eW=e=>(0,w.AbiCoder).defaultAbiCoder().encode([ez],[e]),e$=e=>e||0n,eJ=(e,t)=>{let r=BigInt(e)*2n**96n;return BigInt(t)+r},eQ=async(e,t,r)=>{try{let n=new w.Contract(t,A.walletContracts.mainModule.abi,e),a=e$(r),i=await n.readNonce(a);if("bigint"==typeof i)return eJ(a,i);throw Error("Unexpected result from contract.nonce() call.")}catch(e){if((0,w.isError)(e,"BAD_DATA"))return BigInt(0);throw e}},eZ=(e,t,r)=>(0,w.solidityPacked)(["string","uint256","address","bytes32"],["\x19\x01",e,t,r]),eX=async(e,t,r,n,a)=>{let i=eG(e),s=eZ(r,n,eK(t,i)),o=(0,w.keccak256)(s),c=(0,w.getBytes)(o),f=performance.now(),d=await a.signMessage(c);(0,u.trackDuration)("passport","magicSignMessageGetSignedMetaTransactions",Math.round(performance.now()-f));let l=`${d}02`,h=(0,_.v1).signature.encodeSignature({version:1,threshold:1,signers:[{isDynamic:!1,unrecovered:!0,weight:1,signature:l}]}),p=new w.Interface(A.walletContracts.mainModule.abi);return p.encodeFunctionData(p.getFunction("execute")??"",[i,t,h])},eY=e=>{let t=`0x0000${e}`;return(0,_.v1).signature.decodeSignature(t)},e0=(e,t,r)=>{let n=`${e}02`,{signers:a}=eY(r),i=[...a,{isDynamic:!1,unrecovered:!0,weight:1,signature:n,address:t}].sort((e,t)=>{let r=BigInt(e.address??0),n=BigInt(t.address??0);return r<=n?-1:r===n?0:1});return(0,_.v1).signature.encodeSignature({version:1,threshold:2,signers:i})},e1=async(e,t,r,n,a)=>{let i={...e.types};delete i.EIP712Domain;let s=eZ(r,n,(0,w.TypedDataEncoder).hash(e.domain,i,e.message)),o=(0,w.keccak256)(s),c=(0,w.getBytes)(o),f=performance.now(),d=await a.signMessage(c);return(0,u.trackDuration)("passport","magicSignMessageTypedData",Math.round(performance.now()-f)),e0(d,await a.getAddress(),t)},e6=async(e,t,r,n)=>{let a=eZ(e,n,(0,w.hashMessage)(t)),i=(0,w.keccak256)(a),s=(0,w.getBytes)(i);return r.signMessage(s)},e2=e=>`eip155:${e}`,e5=class{config;rpcProvider;authManager;constructor({config:e,rpcProvider:t,authManager:r}){this.config=e,this.rpcProvider=t,this.authManager=r}async postToRelayer(e){let t={id:1,jsonrpc:"2.0",...e},r=await this.authManager.getUserZkEvm(),n=await (await fetch(`${this.config.relayerUrl}/v1/transactions`,{method:"POST",headers:{Authorization:`Bearer ${r.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)})).json();if(n.error)throw n.error;return n}async ethSendTransaction(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"eth_sendTransaction",params:[{to:e,data:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}async imGetTransactionByHash(e){let{result:t}=await this.postToRelayer({method:"im_getTransactionByHash",params:[e]});return t}async imGetFeeOptions(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"im_getFeeOptions",params:[{userAddress:e,data:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}async imSignTypedData(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"im_signTypedData",params:[{address:e,eip712Payload:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}async imSign(e,t){let{chainId:r}=await this.rpcProvider.getNetwork(),n={method:"im_sign",params:[{address:e,message:t,chainId:e2(Number(r))}]},{result:a}=await this.postToRelayer(n);return a}},e8=((a=e8||{})[a.USER_REJECTED_REQUEST=4001]="USER_REJECTED_REQUEST",a[a.UNAUTHORIZED=4100]="UNAUTHORIZED",a[a.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",a[a.DISCONNECTED=4900]="DISCONNECTED",a),e3=((i=e3||{})[i.RPC_SERVER_ERROR=-32e3]="RPC_SERVER_ERROR",i[i.INVALID_REQUEST=-32600]="INVALID_REQUEST",i[i.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",i[i.INVALID_PARAMS=-32602]="INVALID_PARAMS",i[i.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",i[i.PARSE_ERROR=-32700]="PARSE_ERROR",i[i.TRANSACTION_REJECTED=-32003]="TRANSACTION_REJECTED",i),e4=class extends Error{message;code;constructor(e,t){super(t),this.message=t,this.code=e}};async function e9({authManager:e,ethSigner:t,multiRollupApiClients:r,accessToken:n,rpcProvider:a,flow:i}){let s=t.getAddress();s.then(()=>i.addEvent("endGetAddress"));let o=(0,x.signRaw)("Only sign this message from Immutable Passport",t);o.then(()=>i.addEvent("endSignRaw"));let c=a.getNetwork();c.then(()=>i.addEvent("endDetectNetwork"));let f=r.chainsApi.listChains();f.then(()=>i.addEvent("endListChains"));let[d,l,u,h]=await Promise.all([s,o,c,f]),p=e2(Number(u.chainId)),b=h.data?.result?.find(e=>e.id===p)?.name;if(!b)throw new e4(-32603,`Chain name does not exist on for chain id ${u.chainId}`);try{let t=await r.passportApi.createCounterfactualAddressV2({chainName:b,createCounterfactualAddressRequest:{ethereum_address:d,ethereum_signature:l}},{headers:{Authorization:`Bearer ${n}`}});return i.addEvent("endCreateCounterfactualAddress"),e.forceUserRefreshInBackground(),t.data.counterfactual_address}catch(e){throw new e4(-32603,`Failed to create counterfactual address: ${e}`)}}var e7,te,tt="Transaction requires confirmation but this functionality is not supported in this environment. Please contact Immutable support if you need to enable this feature.",tr=e=>BigInt(e).toString(),tn=e=>{try{return e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit?tr(e.gasLimit):"0",target:e.to??w.ZeroAddress,value:e.value?tr(e.value):"0",data:e.data?e.data.toString():"0x"}))}catch(t){let e=t instanceof Error?t.message:String(t);throw new e4(-32602,`Transaction failed to parsing: ${e}`)}},ta=class{guardianApi;confirmationScreen;crossSdkBridgeEnabled;authManager;constructor({confirmationScreen:e,config:t,authManager:r,guardianApi:n}){this.confirmationScreen=e,this.crossSdkBridgeEnabled=t.crossSdkBridgeEnabled,this.guardianApi=n,this.authManager=r}withConfirmationScreen(e){return t=>this.withConfirmationScreenTask(e)(t)()}withConfirmationScreenTask(e){return t=>async()=>{this.confirmationScreen.loading(e);try{return await t()}catch(e){throw e instanceof V&&"SERVICE_UNAVAILABLE_ERROR"===e.type?await this.confirmationScreen.showServiceUnavailable():this.confirmationScreen.closeWindow(),e}}}withDefaultConfirmationScreenTask(e){return this.withConfirmationScreenTask()(e)}async evaluateImxTransaction({payloadHash:e}){try{let t=await this.authManager.getUserImx(),r={Authorization:`Bearer ${t.accessToken}`};if(!(await eM(async()=>this.guardianApi.getTransactionByID({transactionID:e,chainType:"starkex"},{headers:r}),{finallyFn:()=>{this.confirmationScreen.closeWindow()}})).data.id)throw Error("Transaction doesn't exists");let{confirmationRequired:n}=(await this.guardianApi.evaluateTransaction({id:e,transactionEvaluationRequest:{chainType:"starkex"}},{headers:r})).data;if(n){if(this.crossSdkBridgeEnabled)throw Error(tt);if(!(await this.confirmationScreen.requestConfirmation(e,t.imx.ethAddress,f.mr.TransactionApprovalRequestChainTypeEnum.Starkex)).confirmed)throw Error("Transaction rejected by user")}else this.confirmationScreen.closeWindow()}catch(e){throw(0,c.default).isAxiosError(e)&&e.response?.status===403?new V("Service unavailable","SERVICE_UNAVAILABLE_ERROR"):e}}async evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let n=await this.authManager.getUserZkEvm(),a={Authorization:`Bearer ${n.accessToken}`},i=tn(r);try{return(await this.guardianApi.evaluateTransaction({id:"evm",transactionEvaluationRequest:{chainType:"evm",chainId:e,transactionData:{nonce:t,userAddress:n.zkEvm.ethAddress,metaTransactions:i}}},{headers:a})).data}catch(t){if((0,c.default).isAxiosError(t)&&t.response?.status===403)throw new V("Service unavailable","SERVICE_UNAVAILABLE_ERROR");let e=t instanceof Error?t.message:String(t);throw new e4(-32603,`Transaction failed to validate with error: ${e}`)}}async validateEVMTransaction({chainId:e,nonce:t,metaTransactions:r,isBackgroundTransaction:n}){let{confirmationRequired:a,transactionId:i}=await this.evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r});if(a&&this.crossSdkBridgeEnabled)throw new e4(-32003,tt);if(a&&i){let t=await this.authManager.getUserZkEvm();if(!(await this.confirmationScreen.requestConfirmation(i,t.zkEvm.ethAddress,f.mr.TransactionApprovalRequestChainTypeEnum.Evm,e)).confirmed)throw new e4(-32003,"Transaction rejected by user")}else n||this.confirmationScreen.closeWindow()}async handleEIP712MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e4(4100,"User not logged in. Please log in first.");return(await this.guardianApi.evaluateMessage({messageEvaluationRequest:{chainID:e,payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}})).data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e4(-32603,`Message failed to validate with error: ${e}`)}}async evaluateEIP712Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleEIP712MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e4(-32003,tt);if(n&&r){let e=await this.authManager.getUserZkEvm();if(!(await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"eip712")).confirmed)throw new e4(-32003,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}async handleERC191MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e4(4100,"User not logged in. Please log in first.");return(await this.guardianApi.evaluateErc191Message({eRC191MessageEvaluationRequest:{chainID:e2(Number(e)),payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}})).data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e4(-32603,`Message failed to validate with error: ${e}`)}}async evaluateERC191Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:n}=await this.handleERC191MessageEvaluation({chainID:e,payload:t});if(n&&this.crossSdkBridgeEnabled)throw new e4(-32003,tt);if(n&&r){let e=await this.authManager.getUserZkEvm();if(!(await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"erc191")).confirmed)throw new e4(-32003,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}},ti=async(e,t,r)=>{let n=eW(eG([e])),a=(await r.imGetFeeOptions(t,n)).find(e=>"IMX"===e.tokenSymbol);if(!a)throw Error("Failed to retrieve fees for IMX token");return a},ts=async(e,t,r,n,a)=>{if(!e.to)throw new e4(-32602,'eth_sendTransaction requires a "to" field');let i={to:e.to.toString(),data:e.data,nonce:BigInt(0),value:e.value,revertOnError:!0},[s,o]=await Promise.all([eQ(t,n,a),ti(i,n,r)]),c=[{...i,nonce:s}],f=BigInt(o.tokenPrice);return f!==BigInt(0)&&c.push({nonce:s,to:o.recipientAddress,value:f,revertOnError:!0}),c},to=async(e,t,r)=>{let n=await eM(async()=>{let r=await e.imGetTransactionByHash(t);if("PENDING"===r.status)throw Error();return r},{retries:30,interval:1e3,finalErr:new e4(-32e3,"transaction hash not generated in time")});if(r.addEvent("endRetrieveRelayerTransaction"),!["SUBMITTED","SUCCESSFUL"].includes(n.status)){let e=`Transaction failed to submit with status ${n.status}.`;throw n.statusMessage&&(e+=` Error message: ${n.statusMessage}`),new e4(-32e3,e)}return n},tc=async({transactionRequest:e,ethSigner:t,rpcProvider:r,guardianClient:n,relayerClient:a,zkEvmAddress:i,flow:s,nonceSpace:o,isBackgroundTransaction:c})=>{let{chainId:f}=await r.getNetwork(),d=BigInt(f);s.addEvent("endDetectNetwork");let l=await ts(e,r,a,i,o);s.addEvent("endBuildMetaTransactions");let{nonce:u}=l[0];if(typeof u>"u")throw Error("Failed to retrieve nonce from the smart wallet");let h=async()=>{await n.validateEVMTransaction({chainId:e2(Number(f)),nonce:tr(u),metaTransactions:l,isBackgroundTransaction:c}),s.addEvent("endValidateEVMTransaction")},p=async()=>{let e=await eX(l,u,d,i,t);return s.addEvent("endGetSignedMetaTransactions"),e},[,b]=await Promise.all([h(),p()]),g=await a.ethSendTransaction(i,b);return s.addEvent("endRelayerSendTransaction"),{signedTransactions:b,relayerId:g,nonce:u}},tf=async e=>{if(!e.to)throw new e4(-32602,'im_signEjectionTransaction requires a "to" field');if(typeof e.nonce>"u")throw new e4(-32602,'im_signEjectionTransaction requires a "nonce" field');if(!e.chainId)throw new e4(-32602,'im_signEjectionTransaction requires a "chainId" field');return[{to:e.to.toString(),data:e.data,nonce:e.nonce??void 0,value:e.value,revertOnError:!0}]},td=async({transactionRequest:e,ethSigner:t,zkEvmAddress:r,flow:n})=>{let a=await tf(e);n.addEvent("endBuildMetaTransactions");let i=await eX(a,e.nonce,BigInt(e.chainId??0),r,t);return n.addEvent("endGetSignedMetaTransactions"),{to:r,data:i,chainId:e2(Number(e.chainId??0))}},tl=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:n,guardianClient:a,zkEvmAddress:i,flow:s,nonceSpace:o,isBackgroundTransaction:c=!1})=>{let f=e[0],{relayerId:d}=await tc({transactionRequest:f,ethSigner:t,rpcProvider:r,guardianClient:a,relayerClient:n,zkEvmAddress:i,flow:s,nonceSpace:o,isBackgroundTransaction:c}),{hash:l}=await to(n,d,s);return l},tu=["types","domain","primaryType","message"],th=e=>tu.every(t=>t in e),tp=(e,t)=>{let r;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new e4(-32602,`Failed to parse typed data JSON: ${e}`)}else if("object"==typeof e)r=e;else throw new e4(-32602,`Invalid typed data argument: ${e}`);if(!th(r))throw new e4(-32602,`Invalid typed data argument. The following properties are required: ${tu.join(", ")}`);let n=r.domain?.chainId;if(n&&("string"==typeof n&&(n.startsWith("0x")?r.domain.chainId=parseInt(n,16).toString():r.domain.chainId=parseInt(n,10).toString()),BigInt(r.domain.chainId??0)!==t))throw new e4(-32602,`Invalid chainId, expected ${t}`);return r},tb=async({params:e,method:t,ethSigner:r,rpcProvider:n,relayerClient:a,guardianClient:i,flow:s})=>{let o=e[0],c=e[1];if(!o||!c)throw new e4(-32602,`${t} requires an address and a typed data JSON`);let{chainId:f}=await n.getNetwork(),d=tp(c,f);s.addEvent("endDetectNetwork"),await i.evaluateEIP712Message({chainID:String(f),payload:d}),s.addEvent("endValidateMessage");let l=await a.imSignTypedData(o,d);s.addEvent("endRelayerSignTypedData");let u=await e1(d,l,BigInt(f),o,r);return s.addEvent("getSignedTypedData"),u},tg=e=>{if(!e)return e;try{let t=(0,w.stripZerosLeft)((0,w.getBytes)(e));return(0,w.toUtf8String)(t)}catch{return e}},tm=async({params:e,ethSigner:t,zkEvmAddress:r,rpcProvider:n,guardianClient:a,relayerClient:i,flow:s})=>{let o=e[0],c=e[1];if(!c||!o)throw new e4(-32602,"personal_sign requires an address and a message");if(c.toLowerCase()!==r.toLowerCase())throw new e4(-32602,"personal_sign requires the signer to be the from address");let f=tg(o),{chainId:d}=await n.getNetwork();s.addEvent("endDetectNetwork");let l=e6(BigInt(d),f,t,c);l.then(()=>s.addEvent("endEOASignature")),await a.evaluateERC191Message({chainID:d,payload:f}),s.addEvent("endEvaluateERC191Message");let[u,h]=await Promise.all([l,i.imSign(c,f)]);s.addEvent("endRelayerSign");let p=await t.getAddress();return s.addEvent("endGetEOAAddress"),e0(u,p,h)},ty=e=>{switch(e){case l.Environment.SANDBOX:return"https://api.sandbox.immutable.com";case l.Environment.PRODUCTION:return"https://api.immutable.com";default:throw Error("Environment not supported")}},tv=e=>{te||(te=(0,c.default).create({baseURL:ty(e)}))};async function tw(e){if(!te)throw Error("Client not initialised");return te.get("/v1/sdk/session-activity/check",{params:e}).then(e=>e.data).catch(e=>{if(404!==e.response.status)throw e})}var{getItem:tx,setItem:tE}=u.utils.localStorage,tA="sessionActivitySendCount",t_="sessionActivityDate",tT={},tI={},tS={},tC=()=>{tI=tx(tA)||{};let e=tx(t_),t=new Date,r=t.getFullYear(),n=`${t.getMonth()+1}`.padStart(2,"0"),a=`${t.getDate()}`.padStart(2,"0"),i=`${r}-${n}-${a}`;e&&e===i||(tI={}),tE(t_,i),tE(tA,tI)};tC();var tk=e=>{tC(),tI[e]||(tI[e]=0),tI[e]++,tE(tA,tI),tT[e]=0},tR=async e=>new Promise(t=>{setTimeout(t,1e3*e)}),tM=async e=>{let t,r=e.flow||(0,u.trackFlow)("passport","sendSessionActivity"),n=e.passportClient;if(!n)throw r.addEvent("No Passport Client ID"),Error("No Passport Client ID provided");if(tS[n])return;tS[n]=!0;let{sendTransaction:a,environment:i}=e;if(!a)throw Error("No sendTransaction function provided");if(!i)throw Error("No environment provided");tv(i);let s=e.walletAddress;if(!s)throw r.addEvent("No Passport Wallet Address"),Error("No wallet address");try{if(t=await tw({clientId:n,wallet:s,checkCount:tT[n]||0,sendCount:tI[n]||0}),tT[n]++,!t)return}catch(e){throw r.addEvent("Failed to fetch details"),Error("Failed to get details",{cause:e})}if(t&&t.contractAddress&&t.functionName){let a=new(0,w.Interface)([`function ${t.functionName}()`]).encodeFunctionData(t.functionName),i=t.contractAddress;try{r.addEvent("Start Sending Transaction");let t=await e.sendTransaction([{to:i,from:s,data:a}],r);tk(n),r.addEvent("Transaction Sent",{tx:t})}catch(t){r.addEvent("Failed to send Transaction");let e=Error("Failed to send transaction",{cause:t});(0,u.trackError)("passport","sessionActivityError",e,{flowId:r.details.flowId})}}t&&t.delay&&t.delay>0&&(r.addEvent("Delaying Transaction",{delay:t.delay}),await tR(t.delay),setTimeout(()=>{r.addEvent("Retrying after Delay"),tS[n]=!1,tB({...e,flow:r})},0))},tB=e=>{var t;return((...e)=>{try{let t=tM(...e);return t instanceof Promise?t.catch(e=>void(e instanceof Error&&(0,u.trackError)("passport","sessionActivityError",e))):t}catch(e){return e instanceof Error&&(0,u.trackError)("passport","sessionActivityError",e),t}})(e).then(()=>{tS[e.passportClient]=!1})},tP=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:n,guardianClient:a,zkEvmAddress:i,flow:s})=>{let{relayerId:o}=await tc({transactionRequest:{to:i,value:0},ethSigner:t,rpcProvider:r,guardianClient:a,relayerClient:n,zkEvmAddress:i,flow:s});return a.withConfirmationScreen()(async()=>{let c=await tm({params:e,ethSigner:t,zkEvmAddress:i,rpcProvider:r,guardianClient:a,relayerClient:n,flow:s});return await to(n,o,s),c})},tO=async({params:e,ethSigner:t,zkEvmAddress:r,flow:n})=>{if(!e||1!==e.length)throw new e4(-32602,"im_signEjectionTransaction requires a singular param (hash)");let a=e[0];return await td({transactionRequest:a,ethSigner:t,zkEvmAddress:r,flow:n})},tj=e=>"zkEvm"in e,tN=class{#e;#t;#r;#n;#a;#i;#s;#o;#c;#f;#d;isPassport=!0;constructor({authManager:e,magicAdapter:t,config:r,multiRollupApiClients:n,passportEventEmitter:a,guardianClient:i}){this.#e=e,this.#s=t,this.#t=r,this.#a=i,this.#n=a,this.#i=new w.JsonRpcProvider(this.#t.zkEvmRpcUrl,void 0,{staticNetwork:!0}),this.#c=new e5({config:this.#t,rpcProvider:this.#i,authManager:this.#e}),this.#o=n,this.#r=new eq,this.#e.getUser().then(e=>{e&&(this.#l(e),tj(e)&&this.#u(e.zkEvm.ethAddress))}).catch(()=>{}),a.on("loggedIn",e=>{this.#l(e),tj(e)&&this.#u(e.zkEvm.ethAddress)}),a.on("loggedOut",this.#h),a.on("accountsRequested",tB)}#h=()=>{this.#f=void 0,this.#r.emit("accountsChanged",[])};#l(e){let t=async()=>{let t=await this.#s.login(e.idToken);return new(0,w.BrowserProvider)(t).getSigner()};this.#d=void 0,this.#f=new Promise(async e=>{try{e(await t())}catch(t){this.#d=t,e(void 0)}})}async #p(){let e=await this.#f;if(typeof e>"u")throw"u">typeof this.#d?this.#d:Error("Signer failed to initialise");return e}async #u(e,t){let r=BigInt(1),n=async(t,n)=>{let a=await this.#p();return await tl({params:t,ethSigner:a,guardianClient:this.#a,rpcProvider:this.#i,relayerClient:this.#c,zkEvmAddress:e,flow:n,nonceSpace:r,isBackgroundTransaction:!0})};this.#n.emit("accountsRequested",{environment:this.#t.baseConfig.environment,sendTransaction:n,walletAddress:e,passportClient:t||this.#t.oidcConfiguration.clientId})}async #b(){try{let e=await this.#e.getUser();return e&&tj(e)?e.zkEvm.ethAddress:void 0}catch{return}}async #g(e){switch(e.method){case"eth_requestAccounts":{let e=await this.#b();if(e)return[e];let t=(0,u.trackFlow)("passport","ethRequestAccounts");try{let e,r=await this.#e.getUserOrLogin();if(t.addEvent("endGetUserOrLogin"),this.#f||this.#l(r),tj(r))e=r.zkEvm.ethAddress;else{t.addEvent("startUserRegistration");let n=await this.#p();t.addEvent("ethSignerResolved"),e=await e9({ethSigner:n,authManager:this.#e,multiRollupApiClients:this.#o,accessToken:r.accessToken,rpcProvider:this.#i,flow:t}),t.addEvent("endUserRegistration")}return this.#r.emit("accountsChanged",[e]),(0,u.identify)({passportId:r.profile.sub}),this.#u(e),[e]}catch(e){throw e instanceof Error?(0,u.trackError)("passport","ethRequestAccounts",e,{flowId:t.details.flowId}):t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_sendTransaction":{let t=await this.#b();if(!t)throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let r=(0,u.trackFlow)("passport","ethSendTransaction");try{return await this.#a.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#p();return r.addEvent("endGetSigner"),await tl({params:e.params||[],ethSigner:n,guardianClient:this.#a,rpcProvider:this.#i,relayerClient:this.#c,zkEvmAddress:t,flow:r})})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","eth_sendTransaction",e,{flowId:r.details.flowId}):r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_accounts":{let e=await this.#b();return e?[e]:[]}case"personal_sign":{let t=await this.#b();if(!t)throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let r=(0,u.trackFlow)("passport","personalSign");try{return await this.#a.withConfirmationScreen({width:480,height:720})(async()=>{let n=await this.#p();return r.addEvent("endGetSigner"),this.#t.forceScwDeployBeforeMessageSignature&&!(await eQ(this.#i,t)>BigInt(0))?await tP({params:e.params||[],ethSigner:n,zkEvmAddress:t,rpcProvider:this.#i,guardianClient:this.#a,relayerClient:this.#c,flow:r}):await tm({params:e.params||[],ethSigner:n,zkEvmAddress:t,rpcProvider:this.#i,guardianClient:this.#a,relayerClient:this.#c,flow:r})})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","personal_sign",e,{flowId:r.details.flowId}):r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_signTypedData":case"eth_signTypedData_v4":{if(!await this.#b())throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let t=(0,u.trackFlow)("passport","ethSignTypedDataV4");try{return await this.#a.withConfirmationScreen({width:480,height:720})(async()=>{let r=await this.#p();return t.addEvent("endGetSigner"),await tb({method:e.method,params:e.params||[],ethSigner:r,rpcProvider:this.#i,relayerClient:this.#c,guardianClient:this.#a,flow:t})})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","eth_signTypedData",e,{flowId:t.details.flowId}):t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_chainId":{let{chainId:e}=await this.#i.getNetwork();return(0,w.toBeHex)(e)}case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":{let[t,r]=e.params||[];return this.#i.send(e.method,[t,r||"latest"])}case"eth_getStorageAt":{let[t,r,n]=e.params||[];return this.#i.send(e.method,[t,r,n||"latest"])}case"eth_call":case"eth_estimateGas":{let[t,r]=e.params||[];return this.#i.send(e.method,[t,r||"latest"])}case"eth_gasPrice":case"eth_blockNumber":case"eth_getBlockByHash":case"eth_getBlockByNumber":case"eth_getTransactionByHash":case"eth_getTransactionReceipt":return this.#i.send(e.method,e.params||[]);case"im_signEjectionTransaction":{let t=await this.#b();if(!t)throw new e4(4100,"Unauthorised - call eth_requestAccounts first");let r=(0,u.trackFlow)("passport","imSignEjectionTransaction");try{let n=await this.#p();return r.addEvent("endGetSigner"),await tO({params:e.params||[],ethSigner:n,zkEvmAddress:t,flow:r})}catch(e){throw e instanceof Error?(0,u.trackError)("passport","imSignEjectionTransaction",e,{flowId:r.details.flowId}):r.addEvent("errored"),e}finally{r.addEvent("End")}}case"im_addSessionActivity":{let[t]=e.params||[],r=await this.#b();return r&&this.#u(r,t),null}default:throw new e4(4200,"Method not supported")}}async request(e){try{return this.#g(e)}catch(e){throw e instanceof e4?e:e instanceof Error?new e4(-32603,e.message):new e4(-32603,"Internal error")}}on(e,t){this.#r.on(e,t)}removeListener(e,t){this.#r.removeListener(e,t)}},tU={icon:'data:image/svg+xml,',name:"Immutable Passport",rdns:"com.immutable.passport",uuid:(0,T.v4)()},tL=e=>e?.length>0&&"object"==typeof e[0]&&"method"in e[0]&&"string"==typeof e[0].method&&["personal_sign","eth_accounts","eth_requestAccounts"].includes(e[0].method),tD=e=>e?.length>0&&"object"==typeof e[0]&&"method"in e[0]&&"string"==typeof e[0].method&&"eth_requestAccounts"===e[0].method,tF=class{authManager;config;constructor(e,t){this.authManager=e,this.config=t}createProxy(e){return new Proxy(e.rpcProvider,{get:(t,r,n)=>"request"===r?async(...r)=>{try{if(tL(r)){if(!await e.user.isLoggedIn()){let t=(await this.authManager.getUser())?.idToken;if(!t)throw Error("failed to obtain ID token");await e.openid.loginWithOIDC({jwt:t,providerId:this.config.magicProviderId})}if(tD(r))return t.request({method:"eth_accounts"})}return t.request(...r)}catch(e){throw e instanceof Error?Error(`ProviderProxy: ${e.message}`):Error(`ProviderProxy: ${e}`)}}:Reflect.get(t,r,n)})}},tH=e=>e.overrides?(0,f.createConfig)({basePath:e.overrides.imxPublicApiDomain}):e.baseConfig.environment===l.Environment.SANDBOX?(0,f.imxApiConfig).getSandbox():(0,f.imxApiConfig).getProduction(),tV=e=>{if(e.overrides?.imxApiClients)return e.overrides.imxApiClients;let t=tH(e);return new f.ImxApiClients(t)},tq=e=>{let t=new eU(e),r=new em(t),n=new tF(r,t),a=new ev(t,n),i=new eH(t),s=new f.MultiRollupApiClients(t.multiRollupConfig),o=new eq,c=e.overrides?e.overrides.immutableXClient:new d.IMXClient({baseConfig:e.baseConfig}),l=new ta({confirmationScreen:i,config:t,authManager:r,guardianApi:s.guardianApi}),u=new ej({authManager:r,immutableXClient:c,magicAdapter:a,passportEventEmitter:o,imxApiClients:tV(e),guardianClient:l});return{config:t,authManager:r,magicAdapter:a,confirmationScreen:i,immutableXClient:c,multiRollupApiClients:s,passportEventEmitter:o,passportImxProviderFactory:u,guardianClient:l}},tz=class{authManager;config;confirmationScreen;immutableXClient;magicAdapter;multiRollupApiClients;passportImxProviderFactory;passportEventEmitter;guardianClient;constructor(e){let t=tq(e);this.config=t.config,this.authManager=t.authManager,this.magicAdapter=t.magicAdapter,this.confirmationScreen=t.confirmationScreen,this.immutableXClient=t.immutableXClient,this.multiRollupApiClients=t.multiRollupApiClients,this.passportEventEmitter=t.passportEventEmitter,this.passportImxProviderFactory=t.passportImxProviderFactory,this.guardianClient=t.guardianClient,(0,u.setPassportClientId)(e.clientId),(0,u.track)("passport","initialise")}async connectImxSilent(){return ey(()=>this.passportImxProviderFactory.getProviderSilent(),"connectImxSilent",!1)}async connectImx(){return ey(()=>this.passportImxProviderFactory.getProvider(),"connectImx",!1)}connectEvm(e={announceProvider:!0}){return ey(async()=>{let t=new tN({passportEventEmitter:this.passportEventEmitter,authManager:this.authManager,magicAdapter:this.magicAdapter,config:this.config,multiRollupApiClients:this.multiRollupApiClients,guardianClient:this.guardianClient});return e?.announceProvider&&function(e){if(typeof window>"u")return;let t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t),window.addEventListener("eip6963:requestProvider",()=>window.dispatchEvent(t))}({info:tU,provider:t}),t},"connectEvm",!1)}#e=null;async login(e){if(this.#e)return this.#e;this.#e=ey(async()=>{let{useCachedSession:t=!1,useSilentLogin:r}=e||{},n=null;try{n=await this.authManager.getUser()}catch(e){if(e instanceof Error&&!e.message.includes("Unknown or invalid refresh token")&&(0,u.trackError)("passport","login",e),t)throw e;W.warn("Failed to retrieve a cached user session",e)}return!n&&r?n=await this.authManager.forceUserRefresh():n||t||(e?.useRedirectFlow?await this.authManager.loginWithRedirect(e?.anonymousId):n=await this.authManager.login(e?.anonymousId)),n&&((0,u.identify)({passportId:n.profile.sub}),this.passportEventEmitter.emit("loggedIn",n)),n?n.profile:null},"login");try{return await this.#e}finally{this.#e=null}}async loginCallback(){await ey(()=>this.authManager.loginCallback(),"loginCallback").then(e=>{e&&((0,u.identify)({passportId:e.profile.sub}),this.passportEventEmitter.emit("loggedIn",e))})}async loginWithDeviceFlow(e){return ey(()=>this.authManager.loginWithDeviceFlow(e?.anonymousId),"loginWithDeviceFlow")}async loginWithDeviceFlowCallback(e,t,r){return ey(async()=>{let n=await this.authManager.loginWithDeviceFlowCallback(e,t,r);return this.passportEventEmitter.emit("loggedIn",n),n.profile},"loginWithDeviceFlowCallback")}loginWithPKCEFlow(){return ey(async()=>await this.authManager.getPKCEAuthorizationUrl(),"loginWithPKCEFlow")}async loginWithPKCEFlowCallback(e,t){return ey(async()=>{let r=await this.authManager.loginWithPKCEFlowCallback(e,t);return this.passportEventEmitter.emit("loggedIn",r),r.profile},"loginWithPKCEFlowCallback")}async logout(){return ey(async()=>{"silent"===this.config.oidcConfiguration.logoutMode?await Promise.allSettled([this.authManager.logout(),this.magicAdapter.logout()]):(await this.magicAdapter.logout(),await this.authManager.logout()),this.passportEventEmitter.emit("loggedOut")},"logout")}async logoutDeviceFlow(){return ey(async()=>(await this.authManager.removeUser(),await this.magicAdapter.logout(),this.passportEventEmitter.emit("loggedOut"),await this.authManager.getDeviceFlowEndSessionEndpoint()),"logoutDeviceFlow")}async logoutSilentCallback(e){return ey(()=>this.authManager.logoutSilentCallback(e),"logoutSilentCallback")}async getUserInfo(){return ey(async()=>(await this.authManager.getUser())?.profile,"getUserInfo",!1)}async getIdToken(){return ey(async()=>(await this.authManager.getUser())?.idToken,"getIdToken",!1)}async getAccessToken(){return ey(async()=>(await this.authManager.getUser())?.accessToken,"getAccessToken",!1,!1)}async getLinkedAddresses(){return ey(async()=>{let e=await this.authManager.getUser();if(!e?.profile.sub)return[];let t={Authorization:`Bearer ${e.accessToken}`};return(await this.multiRollupApiClients.passportProfileApi.getUserInfo({headers:t})).data.linked_addresses},"getLinkedAddresses",!1)}async linkExternalWallet(e){let t=(0,u.trackFlow)("passport","linkExternalWallet",!1),r=await this.authManager.getUser();if(!r)throw new V("User is not logged in","NOT_LOGGED_IN_ERROR");let n=J(r),a=$(r);if(!n&&!a)throw new V("User has not been registered","USER_NOT_REGISTERED_ERROR");let i={Authorization:`Bearer ${r.accessToken}`},s={type:e.type,wallet_address:e.walletAddress,signature:e.signature,nonce:e.nonce};try{return{...(await this.multiRollupApiClients.passportProfileApi.linkWalletV2({linkWalletV2Request:s},{headers:i})).data}}catch(r){if(r instanceof Error?(0,u.trackError)("passport","linkExternalWallet",r):t.addEvent("errored"),(0,o.isAxiosError)(r)&&r.response){if(r.response.data&&H(r.response.data)){let{code:e,message:t}=r.response.data;switch(e){case"ALREADY_LINKED":throw new V(t,"LINK_WALLET_ALREADY_LINKED_ERROR");case"MAX_WALLETS_LINKED":throw new V(t,"LINK_WALLET_MAX_WALLETS_LINKED_ERROR");case"DUPLICATE_NONCE":throw new V(t,"LINK_WALLET_DUPLICATE_NONCE_ERROR");case"VALIDATION_ERROR":throw new V(t,"LINK_WALLET_VALIDATION_ERROR");default:throw new V(t,"LINK_WALLET_GENERIC_ERROR")}}else if(r.response.status)throw new V(`Link wallet request failed with status code ${r.response.status}`,"LINK_WALLET_GENERIC_ERROR")}let e="Link wallet request failed";throw r instanceof Error&&(e+=`: ${r.message}`),new V(e,"LINK_WALLET_GENERIC_ERROR")}finally{t.addEvent("End")}}}},{axios:"fYIJi","@imtbl/generated-clients":"8BZnj","@imtbl/x-client":"lqVsJ","@imtbl/config":"ifUQV","@imtbl/metrics":"7Q1ml","oidc-client-ts":"8dhYm","jwt-decode":"cRC0q",localforage:"5I2fN","magic-sdk":"hmsUF","@magic-ext/oidc":"6Ulds",ethers:"jZqA6","@imtbl/toolkit":"7cpoh",events:"gLDS8","@0xsequence/abi":"3twA0","@0xsequence/core":"b4wKh",uuid:"gSiAd","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],fYIJi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i.default),n.export(r,"Axios",()=>s),n.export(r,"AxiosError",()=>o),n.export(r,"CanceledError",()=>c),n.export(r,"isCancel",()=>f),n.export(r,"CancelToken",()=>d),n.export(r,"VERSION",()=>l),n.export(r,"all",()=>u),n.export(r,"Cancel",()=>h),n.export(r,"isAxiosError",()=>p),n.export(r,"spread",()=>b),n.export(r,"toFormData",()=>g),n.export(r,"AxiosHeaders",()=>m),n.export(r,"HttpStatusCode",()=>y),n.export(r,"formToJSON",()=>v),n.export(r,"getAdapter",()=>w),n.export(r,"mergeConfig",()=>x);var a=e("./lib/axios.js"),i=n.interopDefault(a);let{Axios:s,AxiosError:o,CanceledError:c,isCancel:f,CancelToken:d,VERSION:l,all:u,Cancel:h,isAxiosError:p,spread:b,toFormData:g,AxiosHeaders:m,HttpStatusCode:y,formToJSON:v,getAdapter:w,mergeConfig:x}=i.default},{"./lib/axios.js":"ca3EQ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ca3EQ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./utils.js"),i=n.interopDefault(a),s=e("./helpers/bind.js"),o=n.interopDefault(s),c=e("./core/Axios.js"),f=n.interopDefault(c),d=e("./core/mergeConfig.js"),l=n.interopDefault(d),u=e("./defaults/index.js"),h=n.interopDefault(u),p=e("./helpers/formDataToJSON.js"),b=n.interopDefault(p),g=e("./cancel/CanceledError.js"),m=n.interopDefault(g),y=e("./cancel/CancelToken.js"),v=n.interopDefault(y),w=e("./cancel/isCancel.js"),x=n.interopDefault(w),E=e("./env/data.js"),A=e("./helpers/toFormData.js"),_=n.interopDefault(A),T=e("./core/AxiosError.js"),I=n.interopDefault(T),S=e("./helpers/spread.js"),C=n.interopDefault(S),k=e("./helpers/isAxiosError.js"),R=n.interopDefault(k),M=e("./core/AxiosHeaders.js"),B=n.interopDefault(M),P=e("./adapters/adapters.js"),O=n.interopDefault(P),j=e("./helpers/HttpStatusCode.js"),N=n.interopDefault(j);let U=function e(t){let r=new f.default(t),n=(0,o.default)(f.default.prototype.request,r);return(0,i.default).extend(n,f.default.prototype,r,{allOwnKeys:!0}),(0,i.default).extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e((0,l.default)(t,r))},n}(h.default);U.Axios=f.default,U.CanceledError=m.default,U.CancelToken=v.default,U.isCancel=x.default,U.VERSION=E.VERSION,U.toFormData=_.default,U.AxiosError=I.default,U.Cancel=U.CanceledError,U.all=function(e){return Promise.all(e)},U.spread=C.default,U.isAxiosError=R.default,U.mergeConfig=l.default,U.AxiosHeaders=B.default,U.formToJSON=e=>(0,b.default)((0,i.default).isHTMLForm(e)?new FormData(e):e),U.getAdapter=O.default.getAdapter,U.HttpStatusCode=N.default,U.default=U,r.default=U},{"./utils.js":"egroV","./helpers/bind.js":"hOvsc","./core/Axios.js":"ZPixz","./core/mergeConfig.js":"lVwdc","./defaults/index.js":"6YDKw","./helpers/formDataToJSON.js":"j6Yuo","./cancel/CanceledError.js":"d3V9O","./cancel/CancelToken.js":"6xYC2","./cancel/isCancel.js":"jaDdU","./env/data.js":"bCFzK","./helpers/toFormData.js":"5NohJ","./core/AxiosError.js":"iHxkD","./helpers/spread.js":"34fku","./helpers/isAxiosError.js":"kOANF","./core/AxiosHeaders.js":"3wUwm","./adapters/adapters.js":"MML0W","./helpers/HttpStatusCode.js":"kddrU","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],egroV:[function(e,t,r){let n,a;var i,s,o,c,f=e("@parcel/transformer-js/src/esmodule-helpers.js");f.defineInteropFlag(r);var d=e("./helpers/bind.js"),l=f.interopDefault(d),u=arguments[3],h=e("4dc55b20fde67828");let{toString:p}=Object.prototype,{getPrototypeOf:b}=Object,g=(n=Object.create(null),e=>{let t=p.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),m=e=>(e=e.toLowerCase(),t=>g(t)===e),y=e=>t=>typeof t===e,{isArray:v}=Array,w=y("undefined"),x=m("ArrayBuffer"),E=y("string"),A=y("function"),_=y("number"),T=e=>null!==e&&"object"==typeof e,I=e=>{if("object"!==g(e))return!1;let t=b(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},S=m("Date"),C=m("File"),k=m("Blob"),R=m("FileList"),M=m("URLSearchParams"),[B,P,O,j]=["ReadableStream","Request","Response","Headers"].map(m);function N(e,t,{allOwnKeys:r=!1}={}){let n,a;if(null!=e){if("object"!=typeof e&&(e=[e]),v(e))for(n=0,a=e.length;n0;)if(t===(r=n[a]).toLowerCase())return r;return null}let L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:u,D=e=>!w(e)&&e!==L,F=(a="undefined"!=typeof Uint8Array&&b(Uint8Array),e=>a&&e instanceof a),H=m("HTMLFormElement"),V=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),q=m("RegExp"),z=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};N(r,(r,a)=>{let i;!1!==(i=t(r,a,e))&&(n[a]=i||r)}),Object.defineProperties(e,n)},G="abcdefghijklmnopqrstuvwxyz",K="0123456789",W={DIGIT:K,ALPHA:G,ALPHA_DIGIT:G+G.toUpperCase()+K},$=m("AsyncFunction"),J=(i="function"==typeof setImmediate,s=A(L.postMessage),i?setImmediate:s?(o=`axios@${Math.random()}`,c=[],L.addEventListener("message",({source:e,data:t})=>{e===L&&t===o&&c.length&&c.shift()()},!1),e=>{c.push(e),L.postMessage(o,"*")}):e=>setTimeout(e)),Q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(L):void 0!==h&&h.nextTick||J;r.default={isArray:v,isArrayBuffer:x,isBuffer:function(e){return null!==e&&!w(e)&&null!==e.constructor&&!w(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||A(e.append)&&("formdata"===(t=g(e))||"object"===t&&A(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&x(e.buffer)},isString:E,isNumber:_,isBoolean:e=>!0===e||!1===e,isObject:T,isPlainObject:I,isReadableStream:B,isRequest:P,isResponse:O,isHeaders:j,isUndefined:w,isDate:S,isFile:C,isBlob:k,isRegExp:q,isFunction:A,isStream:e=>T(e)&&A(e.pipe),isURLSearchParams:M,isTypedArray:F,isFileList:R,forEach:N,merge:function e(){let{caseless:t}=D(this)&&this||{},r={},n=(n,a)=>{let i=t&&U(r,a)||a;I(r[i])&&I(n)?r[i]=e(r[i],n):I(n)?r[i]=e({},n):v(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e(N(t,(t,n)=>{r&&A(t)?e[n]=(0,l.default)(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let a,i,s;let o={};if(t=t||{},null==e)return t;do{for(i=(a=Object.getOwnPropertyNames(e)).length;i-- >0;)s=a[i],(!n||n(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&b(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:g,kindOfTest:m,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(v(e))return e;let t=e.length;if(!_(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[Symbol.iterator]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:H,hasOwnProperty:V,hasOwnProp:V,reduceDescriptors:z,freezeMethods:e=>{z(e,(t,r)=>{if(A(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(A(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(v(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:L,isContextDefined:D,ALPHABET:W,generateString:(e=16,t=W.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&A(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(T(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let a=v(e)?[]:{};return N(e,(e,t)=>{let i=r(e,n+1);w(i)||(a[t]=i)}),t[n]=void 0,a}}return e};return r(e,0)},isAsyncFn:$,isThenable:e=>e&&(T(e)||A(e))&&A(e.then)&&A(e.catch),setImmediate:J,asap:Q}},{"4dc55b20fde67828":"82Vhe","./helpers/bind.js":"hOvsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"82Vhe":[function(e,t,r){var n,a,i,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function c(){throw Error("clearTimeout has not been defined")}function f(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{a="function"==typeof clearTimeout?clearTimeout:c}catch(e){a=c}}();var d=[],l=!1,u=-1;function h(){l&&i&&(l=!1,i.length?d=i.concat(d):u=-1,d.length&&p())}function p(){if(!l){var e=f(h);l=!0;for(var t=d.length;t;){for(i=d,d=[];++u1)for(var r=1;ra)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6aMVc":[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],ZPixz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../helpers/buildURL.js"),o=n.interopDefault(s),c=e("./InterceptorManager.js"),f=n.interopDefault(c),d=e("./dispatchRequest.js"),l=n.interopDefault(d),u=e("./mergeConfig.js"),h=n.interopDefault(u),p=e("./buildFullPath.js"),b=n.interopDefault(p),g=e("../helpers/validator.js"),m=n.interopDefault(g),y=e("./AxiosHeaders.js"),v=n.interopDefault(y);let w=m.default.validators;class x{constructor(e){this.defaults=e,this.interceptors={request:new f.default,response:new f.default}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:a,paramsSerializer:s,headers:o}=t=(0,h.default)(this.defaults,t);void 0!==a&&(0,m.default).assertOptions(a,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)},!1),null!=s&&((0,i.default).isFunction(s)?t.paramsSerializer={serialize:s}:(0,m.default).assertOptions(s,{encode:w.function,serialize:w.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=o&&(0,i.default).merge(o.common,o[t.method]);o&&(0,i.default).forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=(0,v.default).concat(c,o);let f=[],d=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(d=d&&e.synchronous,f.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let p=0;if(!d){let e=[(0,l.default).bind(this),void 0];for(e.unshift.apply(e,f),e.push.apply(e,u),n=e.length,r=Promise.resolve(t);pf);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../helpers/AxiosURLSearchParams.js"),o=n.interopDefault(s);function c(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f(e,t,r){let n;if(!t)return e;let a=r&&r.encode||c,s=r&&r.serialize;if(n=s?s(t,r):(0,i.default).isURLSearchParams(t)?t.toString():new(0,o.default)(t,r).toString(a)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},{"../utils.js":"egroV","../helpers/AxiosURLSearchParams.js":"dlaZM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dlaZM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./toFormData.js"),i=n.interopDefault(a);function s(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,i.default)(e,this,t)}let c=o.prototype;c.append=function(e,t){this._pairs.push([e,t])},c.toString=function(e){let t=e?function(t){return e.call(this,t,s)}:s;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")},r.default=o},{"./toFormData.js":"5NohJ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5NohJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("../platform/node/classes/FormData.js"),f=n.interopDefault(c),d=e("780681ba5a0a0827").Buffer;function l(e){return(0,i.default).isPlainObject(e)||(0,i.default).isArray(e)}function u(e){return(0,i.default).endsWith(e,"[]")?e.slice(0,-2):e}function h(e,t,r){return e?e.concat(t).map(function(e,t){return e=u(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let p=(0,i.default).toFlatObject(i.default,{},null,function(e){return/^is[A-Z]/.test(e)});r.default=function(e,t,r){if(!(0,i.default).isObject(e))throw TypeError("target must be an object");t=t||new(f.default||FormData);let n=(r=(0,i.default).toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!(0,i.default).isUndefined(t[e])})).metaTokens,a=r.visitor||m,s=r.dots,c=r.indexes,b=(r.Blob||"undefined"!=typeof Blob&&Blob)&&(0,i.default).isSpecCompliantForm(t);if(!(0,i.default).isFunction(a))throw TypeError("visitor must be a function");function g(e){if(null===e)return"";if((0,i.default).isDate(e))return e.toISOString();if(!b&&(0,i.default).isBlob(e))throw new o.default("Blob is not supported. Use a Buffer instead.");return(0,i.default).isArrayBuffer(e)||(0,i.default).isTypedArray(e)?b&&"function"==typeof Blob?new Blob([e]):d.from(e):e}function m(e,r,a){let o=e;if(e&&!a&&"object"==typeof e){if((0,i.default).endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var f;if((0,i.default).isArray(e)&&(f=e,(0,i.default).isArray(f)&&!f.some(l))||((0,i.default).isFileList(e)||(0,i.default).endsWith(r,"[]"))&&(o=(0,i.default).toArray(e)))return r=u(r),o.forEach(function(e,n){(0,i.default).isUndefined(e)||null===e||t.append(!0===c?h([r],n,s):null===c?r:r+"[]",g(e))}),!1}}return!!l(e)||(t.append(h(a,r,s),g(e)),!1)}let y=[],v=Object.assign(p,{defaultVisitor:m,convertValue:g,isVisitable:l});if(!(0,i.default).isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!(0,i.default).isUndefined(r)){if(-1!==y.indexOf(r))throw Error("Circular reference detected in "+n.join("."));y.push(r),(0,i.default).forEach(r,function(r,s){!0===(!((0,i.default).isUndefined(r)||null===r)&&a.call(t,r,(0,i.default).isString(s)?s.trim():s,n,v))&&e(r,n?n.concat(s):[s])}),y.pop()}}(e),t}},{"780681ba5a0a0827":"2tbuV","../utils.js":"egroV","../core/AxiosError.js":"iHxkD","../platform/node/classes/FormData.js":"2Sl5N","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2tbuV":[function(e,t,r){let n=e("ce5249998143b152"),a=e("9f9d08cd85b04282"),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return c(e,t,r)}function c(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!o.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|p(e,t),n=s(r),a=n.write(e,t);return a!==r&&(n=n.slice(0,a)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){let t=new Uint8Array(e);return u(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return u(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);let a=function(e){var t;if(o.isBuffer(e)){let t=0|h(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?s(0):l(e):"Buffer"===e.type&&Array.isArray(e.data)?l(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return f(e),s(e<0?0:0|h(e))}function l(e){let t=e.length<0?0:0|h(e.length),r=s(t);for(let n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(a)return n?-1:O(e).length;t=(""+t).toLowerCase(),a=!0}}function b(e,t,r){let a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r=+r)!=i&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return -1;r=e.length-1}else if(r<0){if(!a)return -1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,n,a);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,n,a);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,n,a){let i,s=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,c/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){let n=-1;for(i=r;io&&(r=o-c),i=r;i>=0;i--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(a+s<=r){let r,n,o,c;switch(s){case 1:t<128&&(i=t);break;case 2:(192&(r=e[a+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[a+1],n=e[a+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[a+1],n=e[a+2],o=e[a+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),a+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,a,i){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw RangeError("Index out of range")}function E(e,t,r,n,a){R(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function A(e,t,r,n,a){R(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function _(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function T(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,i){return t=+t,r>>>=0,i||_(e,t,r,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,r,n,52,8),r+8}r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),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}}),o.poolSize=8192,o.from=function(e,t,r){return c(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},o.allocUnsafe=function(e){return d(e)},o.allocUnsafeSlow=function(e){return d(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let a=0,i=Math.min(r,n);an.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(n,a)):Uint8Array.prototype.set.call(n,t,a);else if(o.isBuffer(t))t.copy(n,a);else throw TypeError('"list" argument must be an Array of Buffers');a+=t.length}return n},o.byteLength=p,o.prototype._isBuffer=!0,o.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(e,t,r,n,a){if(U(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,a>>>=0,this===e)return 0;let i=a-n,s=r-t,c=Math.min(i,s),f=this.slice(n,a),d=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((void 0===r||r>u)&&(r=u),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let a;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let s=t.length;for(n>s/2&&(n=s/2),a=0;a>8,a.push(r%256),a.push(n);return a}(e,this.length-d),this,d,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},o.prototype.readUint8=o.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&B(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(a)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&B(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],a=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||w(e,t,this.length);let n=this[e],a=1,i=0;for(;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let n=t,a=1,i=this[e+--n];for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readBigInt64LE=D(function(e){M(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&B(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&B(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,t||w(e,4,this.length),a.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),a.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),a.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;x(this,e,t,r,n,0)}let a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigUInt64LE=D(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=D(function(e,t=0){return A(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);x(this,e,t,r,n-1,-n)}let a=r-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=D(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=D(function(e,t=0){return A(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return T(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return T(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=t;a=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function R(e,t,r,n,a,i){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${a} and < 2${a} ** ${(i+1)*8}${a}`:`>= -(2${a} ** ${(i+1)*8-1}${a}) and < 2 ** ${(i+1)*8-1}${a}`:`>= ${t}${a} and <= ${r}${a}`,new S.ERR_OUT_OF_RANGE("value",n,e)}M(a,"offset"),(void 0===n[a]||void 0===n[a+i])&&B(a,n.length-(i+1))}function M(e,t){if("number"!=typeof e)throw new S.ERR_INVALID_ARG_TYPE(t,"number",e)}function B(e,t,r){if(Math.floor(e)!==e)throw M(e,r),new S.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new S.ERR_BUFFER_OUT_OF_BOUNDS;throw new S.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}C("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),C("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),C("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?a=k(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=k(a)),a+="n"),n+=` It must be ${t}. Received ${a}`},RangeError);let P=/[^+/0-9A-Za-z-_]/g;function O(e,t){let r;t=t||1/0;let n=e.length,a=null,i=[];for(let s=0;s55295&&r<57344){if(!a){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function j(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(P,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,r,n){let a;for(a=0;a=t.length)&&!(a>=e.length);++a)t[a+r]=e[a];return a}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let L=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function D(e){return"undefined"==typeof BigInt?F:e}function F(){throw Error("BigInt not supported")}},{ce5249998143b152:"6fQly","9f9d08cd85b04282":"5JSGn"}],"6fQly":[function(e,t,r){r.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=f(e),s=n[0],o=n[1],c=new i((s+o)*3/4-o),d=0,l=o>0?s-4:s;for(r=0;r>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===o&&(t=a[e.charCodeAt(r)]<<2|a[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===o&&(t=a[e.charCodeAt(r)]<<10|a[e.charCodeAt(r+1)]<<4|a[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c},r.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],s=0,o=r-a;s>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return i.join("")}(e,s,s+16383>o?o:s+16383));return 1===a?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===a&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],a=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,c=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],"5JSGn":[function(e,t,r){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */r.read=function(e,t,r,n,a){var i,s,o=8*a-n-1,c=(1<>1,d=-7,l=r?a-1:0,u=r?-1:1,h=e[t+l];for(l+=u,i=h&(1<<-d)-1,h>>=-d,d+=o;d>0;i=256*i+e[t+l],l+=u,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=n;d>0;s=256*s+e[t+l],l+=u,d-=8);if(0===i)i=1-f;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=f}return(h?-1:1)*s*Math.pow(2,i-n)},r.write=function(e,t,r,n,a,i){var s,o,c,f=8*i-a-1,d=(1<>1,u=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+l>=1?t+=u/c:t+=u*Math.pow(2,1-l),t*c>=2&&(s++,c/=2),s+l>=d?(o=0,s=d):s+l>=1?(o=(t*c-1)*Math.pow(2,a),s+=l):(o=t*Math.pow(2,l-1)*Math.pow(2,a),s=0));a>=8;e[r+h]=255&o,h+=p,o/=256,a-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,f-=8);e[r+h-p]|=128*b}},{}],iHxkD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a);function s(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}(0,i.default).inherits(s,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:(0,i.default).toJSONObject(this.config),code:this.code,status:this.status}}});let o=s.prototype,c={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{c[e]={value:e}}),Object.defineProperties(s,c),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=(e,t,r,n,a,c)=>{let f=Object.create(o);return(0,i.default).toFlatObject(e,f,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),s.call(f,e.message,t,r,n,a),f.cause=e,f.name=e.name,c&&Object.assign(f,c),f},r.default=s},{"../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2Sl5N":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7QqPk":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a);r.default=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){(0,i.default).forEach(this.handlers,function(t){null!==t&&e(t)})}}},{"./../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2w7yW":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>m);var a=e("./transformData.js"),i=n.interopDefault(a),s=e("../cancel/isCancel.js"),o=n.interopDefault(s),c=e("../defaults/index.js"),f=n.interopDefault(c),d=e("../cancel/CanceledError.js"),l=n.interopDefault(d),u=e("../core/AxiosHeaders.js"),h=n.interopDefault(u),p=e("../adapters/adapters.js"),b=n.interopDefault(p);function g(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l.default(null,e)}function m(e){return g(e),e.headers=(0,h.default).from(e.headers),e.data=(0,i.default).call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),(0,b.default).getAdapter(e.adapter||f.default.adapter)(e).then(function(t){return g(e),t.data=(0,i.default).call(e,e.transformResponse,t),t.headers=(0,h.default).from(t.headers),t},function(t){return!(0,o.default)(t)&&(g(e),t&&t.response&&(t.response.data=(0,i.default).call(e,e.transformResponse,t.response),t.response.headers=(0,h.default).from(t.response.headers))),Promise.reject(t)})}},{"./transformData.js":"bdA0F","../cancel/isCancel.js":"jaDdU","../defaults/index.js":"6YDKw","../cancel/CanceledError.js":"d3V9O","../core/AxiosHeaders.js":"3wUwm","../adapters/adapters.js":"MML0W","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bdA0F:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>d);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../defaults/index.js"),o=n.interopDefault(s),c=e("../core/AxiosHeaders.js"),f=n.interopDefault(c);function d(e,t){let r=this||o.default,n=t||r,a=(0,f.default).from(n.headers),s=n.data;return(0,i.default).forEach(e,function(e){s=e.call(r,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}},{"./../utils.js":"egroV","../defaults/index.js":"6YDKw","../core/AxiosHeaders.js":"3wUwm","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6YDKw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("./transitional.js"),f=n.interopDefault(c),d=e("../helpers/toFormData.js"),l=n.interopDefault(d),u=e("../helpers/toURLEncodedForm.js"),h=n.interopDefault(u),p=e("../platform/index.js"),b=n.interopDefault(p),g=e("../helpers/formDataToJSON.js"),m=n.interopDefault(g);let y={transitional:f.default,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",a=n.indexOf("application/json")>-1,s=(0,i.default).isObject(e);if(s&&(0,i.default).isHTMLForm(e)&&(e=new FormData(e)),(0,i.default).isFormData(e))return a?JSON.stringify((0,m.default)(e)):e;if((0,i.default).isArrayBuffer(e)||(0,i.default).isBuffer(e)||(0,i.default).isStream(e)||(0,i.default).isFile(e)||(0,i.default).isBlob(e)||(0,i.default).isReadableStream(e))return e;if((0,i.default).isArrayBufferView(e))return e.buffer;if((0,i.default).isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return(0,h.default)(e,this.formSerializer).toString();if((r=(0,i.default).isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return(0,l.default)(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||a?(t.setContentType("application/json",!1),function(e,t,r){if((0,i.default).isString(e))try{return(0,JSON.parse)(e),(0,i.default).trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||y.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if((0,i.default).isResponse(e)||(0,i.default).isReadableStream(e))return e;if(e&&(0,i.default).isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw(0,o.default).from(e,o.default.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:b.default.classes.FormData,Blob:b.default.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};(0,i.default).forEach(["delete","get","head","post","put","patch"],e=>{y.headers[e]={}}),r.default=y},{"../utils.js":"egroV","../core/AxiosError.js":"iHxkD","./transitional.js":"aqhWc","../helpers/toFormData.js":"5NohJ","../helpers/toURLEncodedForm.js":"fCWX4","../platform/index.js":"4BXM0","../helpers/formDataToJSON.js":"j6Yuo","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aqhWc:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],fCWX4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>d);var a=e("../utils.js"),i=n.interopDefault(a),s=e("./toFormData.js"),o=n.interopDefault(s),c=e("../platform/index.js"),f=n.interopDefault(c);function d(e,t){return(0,o.default)(e,new f.default.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return f.default.isNode&&(0,i.default).isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}},{"../utils.js":"egroV","./toFormData.js":"5NohJ","../platform/index.js":"4BXM0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4BXM0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./node/index.js"),i=n.interopDefault(a),s=e("./common/utils.js");r.default={...s,...i.default}},{"./node/index.js":"dyGwC","./common/utils.js":"hGjLd","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dyGwC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./classes/URLSearchParams.js"),i=n.interopDefault(a),s=e("./classes/FormData.js"),o=n.interopDefault(s),c=e("./classes/Blob.js"),f=n.interopDefault(c);r.default={isBrowser:!0,classes:{URLSearchParams:i.default,FormData:o.default,Blob:f.default},protocols:["http","https","file","blob","url","data"]}},{"./classes/URLSearchParams.js":"jXUXz","./classes/FormData.js":"kqdlS","./classes/Blob.js":"9iwYi","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jXUXz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../../../helpers/AxiosURLSearchParams.js"),i=n.interopDefault(a);r.default="undefined"!=typeof URLSearchParams?URLSearchParams:i.default},{"../../../helpers/AxiosURLSearchParams.js":"dlaZM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kqdlS:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="undefined"!=typeof FormData?FormData:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9iwYi":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="undefined"!=typeof Blob?Blob:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hGjLd:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"hasBrowserEnv",()=>a),n.export(r,"hasStandardBrowserWebWorkerEnv",()=>o),n.export(r,"hasStandardBrowserEnv",()=>s),n.export(r,"navigator",()=>i),n.export(r,"origin",()=>c);let a="undefined"!=typeof window&&"undefined"!=typeof document,i="object"==typeof navigator&&navigator||void 0,s=a&&(!i||0>["ReactNative","NativeScript","NS"].indexOf(i.product)),o="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,c=a&&window.location.href||"http://localhost"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],j6Yuo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a);r.default=function(e){if((0,i.default).isFormData(e)&&(0,i.default).isFunction(e.entries)){let t={};return(0,i.default).forEachEntry(e,(e,r)=>{!function e(t,r,n,a){let s=t[a++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),c=a>=t.length;return(s=!s&&(0,i.default).isArray(n)?n.length:s,c)?(0,i.default).hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r:(n[s]&&(0,i.default).isObject(n[s])||(n[s]=[]),e(t,r,n[s],a)&&(0,i.default).isArray(n[s])&&(n[s]=function(e){let t,r;let n={},a=Object.keys(e),i=a.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}},{"../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3wUwm":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("../helpers/parseHeaders.js"),o=n.interopDefault(s);let c=Symbol("internals");function f(e){return e&&String(e).trim().toLowerCase()}function d(e){return!1===e||null==e?e:(0,i.default).isArray(e)?e.map(d):String(e)}let l=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function u(e,t,r,n,a){if((0,i.default).isFunction(n))return n.call(this,t,r);if(a&&(t=r),(0,i.default).isString(t)){if((0,i.default).isString(n))return -1!==t.indexOf(n);if((0,i.default).isRegExp(n))return n.test(t)}}class h{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function a(e,t,r){let a=f(t);if(!a)throw Error("header name must be a non-empty string");let s=(0,i.default).findKey(n,a);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=d(e))}let s=(e,t)=>(0,i.default).forEach(e,(e,r)=>a(e,r,t));if((0,i.default).isPlainObject(e)||e instanceof this.constructor)s(e,t);else if((0,i.default).isString(e)&&(e=e.trim())&&!l(e))s((0,o.default)(e),t);else if((0,i.default).isHeaders(e))for(let[t,n]of e.entries())a(n,t,r);else null!=e&&a(t,e,r);return this}get(e,t){if(e=f(e)){let r=(0,i.default).findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if((0,i.default).isFunction(t))return t.call(this,e,r);if((0,i.default).isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=f(e)){let r=(0,i.default).findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||u(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function a(e){if(e=f(e)){let a=(0,i.default).findKey(r,e);a&&(!t||u(r,r[a],a,t))&&(delete r[a],n=!0)}}return(0,i.default).isArray(e)?e.forEach(a):a(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let a=t[r];(!e||u(this,this[a],a,e,!0))&&(delete this[a],n=!0)}return n}normalize(e){let t=this,r={};return(0,i.default).forEach(this,(n,a)=>{let s=(0,i.default).findKey(r,a);if(s){t[s]=d(n),delete t[a];return}let o=e?a.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(a).trim();o!==a&&delete t[a],t[o]=d(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return(0,i.default).forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&(0,i.default).isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[c]=this[c]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=f(e);t[n]||(!function(e,t){let r=(0,i.default).toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,a){return this[n].call(this,t,e,r,a)},configurable:!0})})}(r,e),t[n]=!0)}return(0,i.default).isArray(e)?e.forEach(n):n(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),(0,i.default).reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),(0,i.default).freezeMethods(h),r.default=h},{"../utils.js":"egroV","../helpers/parseHeaders.js":"6U1W0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6U1W0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js");let i=(0,n.interopDefault(a).default).toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);r.default=e=>{let t,r,n;let a={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||a[t]&&i[t]||("set-cookie"===t?a[t]?a[t].push(r):a[t]=[r]:a[t]=a[t]?a[t]+", "+r:r)}),a}},{"./../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jaDdU:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return!!(e&&e.__CANCEL__)}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],d3V9O:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../core/AxiosError.js"),i=n.interopDefault(a),s=e("../utils.js");function o(e,t,r){(0,i.default).call(this,null==e?"canceled":e,i.default.ERR_CANCELED,t,r),this.name="CanceledError"}(0,n.interopDefault(s).default).inherits(o,i.default,{__CANCEL__:!0}),r.default=o},{"../core/AxiosError.js":"iHxkD","../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],MML0W:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../utils.js"),i=n.interopDefault(a),s=e("./http.js"),o=n.interopDefault(s),c=e("./xhr.js"),f=n.interopDefault(c),d=e("./fetch.js"),l=n.interopDefault(d),u=e("../core/AxiosError.js"),h=n.interopDefault(u);let p={http:o.default,xhr:f.default,fetch:l.default};(0,i.default).forEach(p,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let b=e=>`- ${e}`,g=e=>(0,i.default).isFunction(e)||null===e||!1===e;r.default={getAdapter:e=>{let t,r;let{length:n}=e=(0,i.default).isArray(e)?e:[e],a={};for(let i=0;i`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=n?e.length>1?"since :\n"+e.map(b).join("\n"):" "+b(e[0]):"as no adapter specified";throw new h.default("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:p}},{"../utils.js":"egroV","./http.js":"2Sl5N","./xhr.js":"jG9HX","./fetch.js":"7tMRi","../core/AxiosError.js":"iHxkD","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jG9HX:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("./../core/settle.js"),o=n.interopDefault(s),c=e("../defaults/transitional.js"),f=n.interopDefault(c),d=e("../core/AxiosError.js"),l=n.interopDefault(d),u=e("../cancel/CanceledError.js"),h=n.interopDefault(u),p=e("../helpers/parseProtocol.js"),b=n.interopDefault(p),g=e("../platform/index.js"),m=n.interopDefault(g),y=e("../core/AxiosHeaders.js"),v=n.interopDefault(y),w=e("../helpers/progressEventReducer.js"),x=e("../helpers/resolveConfig.js"),E=n.interopDefault(x);let A="undefined"!=typeof XMLHttpRequest;r.default=A&&function(e){return new Promise(function(t,r){let n,a,s,c,d;let u=(0,E.default)(e),p=u.data,g=(0,v.default).from(u.headers).normalize(),{responseType:y,onUploadProgress:x,onDownloadProgress:A}=u;function _(){c&&c(),d&&d(),u.cancelToken&&u.cancelToken.unsubscribe(n),u.signal&&u.signal.removeEventListener("abort",n)}let T=new XMLHttpRequest;function I(){if(!T)return;let n=(0,v.default).from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),a={data:y&&"text"!==y&&"json"!==y?T.response:T.responseText,status:T.status,statusText:T.statusText,headers:n,config:e,request:T};(0,o.default)(function(e){t(e),_()},function(e){r(e),_()},a),T=null}T.open(u.method.toUpperCase(),u.url,!0),T.timeout=u.timeout,"onloadend"in T?T.onloadend=I:T.onreadystatechange=function(){T&&4===T.readyState&&(0!==T.status||T.responseURL&&0===T.responseURL.indexOf("file:"))&&setTimeout(I)},T.onabort=function(){T&&(r(new l.default("Request aborted",l.default.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new l.default("Network Error",l.default.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",n=u.transitional||f.default;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),r(new l.default(t,n.clarifyTimeoutError?l.default.ETIMEDOUT:l.default.ECONNABORTED,e,T)),T=null},void 0===p&&g.setContentType(null),"setRequestHeader"in T&&(0,i.default).forEach(g.toJSON(),function(e,t){T.setRequestHeader(t,e)}),(0,i.default).isUndefined(u.withCredentials)||(T.withCredentials=!!u.withCredentials),y&&"json"!==y&&(T.responseType=u.responseType),A&&([s,d]=(0,w.progressEventReducer)(A,!0),T.addEventListener("progress",s)),x&&T.upload&&([a,c]=(0,w.progressEventReducer)(x),T.upload.addEventListener("progress",a),T.upload.addEventListener("loadend",c)),(u.cancelToken||u.signal)&&(n=t=>{T&&(r(!t||t.type?new h.default(null,e,T):t),T.abort(),T=null)},u.cancelToken&&u.cancelToken.subscribe(n),u.signal&&(u.signal.aborted?n():u.signal.addEventListener("abort",n)));let S=(0,b.default)(u.url);if(S&&-1===(0,m.default).protocols.indexOf(S)){r(new l.default("Unsupported protocol "+S+":",l.default.ERR_BAD_REQUEST,e));return}T.send(p||null)})}},{"./../utils.js":"egroV","./../core/settle.js":"aXtGk","../defaults/transitional.js":"aqhWc","../core/AxiosError.js":"iHxkD","../cancel/CanceledError.js":"d3V9O","../helpers/parseProtocol.js":"iFNB4","../platform/index.js":"4BXM0","../core/AxiosHeaders.js":"3wUwm","../helpers/progressEventReducer.js":"ZGfaK","../helpers/resolveConfig.js":"bxX7U","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aXtGk:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var a=e("./AxiosError.js"),i=n.interopDefault(a);function s(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new i.default("Request failed with status code "+r.status,[i.default.ERR_BAD_REQUEST,i.default.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},{"./AxiosError.js":"iHxkD","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],iFNB4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ZGfaK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"progressEventReducer",()=>d),n.export(r,"progressEventDecorator",()=>l),n.export(r,"asyncDecorator",()=>u);var a=e("./speedometer.js"),i=n.interopDefault(a),s=e("./throttle.js"),o=n.interopDefault(s),c=e("../utils.js"),f=n.interopDefault(c);let d=(e,t,r=3)=>{let n=0,a=(0,i.default)(50,250);return(0,o.default)(r=>{let i=r.loaded,s=r.lengthComputable?r.total:void 0,o=i-n,c=a(o);n=i,e({loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},l=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},u=e=>(...t)=>(0,f.default).asap(()=>e(...t))},{"./speedometer.js":"29Z4p","./throttle.js":"i705Y","../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"29Z4p":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e,t){let r;let n=Array(e=e||10),a=Array(e),i=0,s=0;return t=void 0!==t?t:1e3,function(o){let c=Date.now(),f=a[s];r||(r=c),n[i]=o,a[i]=c;let d=s,l=0;for(;d!==i;)l+=n[d++],d%=e;if((i=(i+1)%e)===s&&(s=(s+1)%e),c-r{a=i,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),o=t-a;o>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-o)))},()=>r&&s(r)]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bxX7U:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../platform/index.js"),i=n.interopDefault(a),s=e("../utils.js"),o=n.interopDefault(s),c=e("./isURLSameOrigin.js"),f=n.interopDefault(c),d=e("./cookies.js"),l=n.interopDefault(d),u=e("../core/buildFullPath.js"),h=n.interopDefault(u),p=e("../core/mergeConfig.js"),b=n.interopDefault(p),g=e("../core/AxiosHeaders.js"),m=n.interopDefault(g),y=e("./buildURL.js"),v=n.interopDefault(y);r.default=e=>{let t;let r=(0,b.default)({},e),{data:n,withXSRFToken:a,xsrfHeaderName:s,xsrfCookieName:c,headers:d,auth:u}=r;if(r.headers=d=(0,m.default).from(d),r.url=(0,v.default)((0,h.default)(r.baseURL,r.url),e.params,e.paramsSerializer),u&&d.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),(0,o.default).isFormData(n)){if(i.default.hasStandardBrowserEnv||i.default.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if(!1!==(t=d.getContentType())){let[e,...r]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];d.setContentType([e||"multipart/form-data",...r].join("; "))}}if(i.default.hasStandardBrowserEnv&&(a&&(0,o.default).isFunction(a)&&(a=a(r)),a||!1!==a&&(0,f.default)(r.url))){let e=s&&c&&(0,l.default).read(c);e&&d.set(s,e)}return r}},{"../platform/index.js":"4BXM0","../utils.js":"egroV","./isURLSameOrigin.js":"jQ2dT","./cookies.js":"2PmmZ","../core/buildFullPath.js":"hvqyA","../core/mergeConfig.js":"lVwdc","../core/AxiosHeaders.js":"3wUwm","./buildURL.js":"77A4c","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jQ2dT:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?function(){let e;let t=o.default.navigator&&/(msie|trident)/i.test(o.default.navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=(0,i.default).isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},{"./../utils.js":"egroV","../platform/index.js":"4BXM0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2PmmZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./../utils.js"),i=n.interopDefault(a),s=e("../platform/index.js"),o=n.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?{write(e,t,r,n,a,s){let o=[e+"="+encodeURIComponent(t)];(0,i.default).isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),(0,i.default).isString(n)&&o.push("path="+n),(0,i.default).isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}}},{"./../utils.js":"egroV","../platform/index.js":"4BXM0","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hvqyA:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>c);var a=e("../helpers/isAbsoluteURL.js"),i=n.interopDefault(a),s=e("../helpers/combineURLs.js"),o=n.interopDefault(s);function c(e,t){return e&&!(0,i.default)(t)?(0,o.default)(e,t):t}},{"../helpers/isAbsoluteURL.js":"9eZQz","../helpers/combineURLs.js":"d6dHZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9eZQz":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],d6dHZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lVwdc:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>f);var a=e("../utils.js"),i=n.interopDefault(a),s=e("./AxiosHeaders.js"),o=n.interopDefault(s);let c=e=>e instanceof o.default?{...e}:e;function f(e,t){t=t||{};let r={};function n(e,t,r){return(0,i.default).isPlainObject(e)&&(0,i.default).isPlainObject(t)?(0,i.default).merge.call({caseless:r},e,t):(0,i.default).isPlainObject(t)?(0,i.default).merge({},t):(0,i.default).isArray(t)?t.slice():t}function a(e,t,r){return(0,i.default).isUndefined(t)?(0,i.default).isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function s(e,t){if(!(0,i.default).isUndefined(t))return n(void 0,t)}function o(e,t){return(0,i.default).isUndefined(t)?(0,i.default).isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function f(r,a,i){return i in t?n(r,a):i in e?n(void 0,r):void 0}let d={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:f,headers:(e,t)=>a(c(e),c(t),!0)};return(0,i.default).forEach(Object.keys(Object.assign({},e,t)),function(n){let s=d[n]||a,o=s(e[n],t[n],n);(0,i.default).isUndefined(o)&&s!==f||(r[n]=o)}),r}},{"../utils.js":"egroV","./AxiosHeaders.js":"3wUwm","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7tMRi":[function(e,t,r){let n;var a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var s=e("../platform/index.js"),o=i.interopDefault(s),c=e("../utils.js"),f=i.interopDefault(c),d=e("../core/AxiosError.js"),l=i.interopDefault(d),u=e("../helpers/composeSignals.js"),h=i.interopDefault(u),p=e("../helpers/trackStream.js"),b=e("../core/AxiosHeaders.js"),g=i.interopDefault(b),m=e("../helpers/progressEventReducer.js"),y=e("../helpers/resolveConfig.js"),v=i.interopDefault(y),w=e("../core/settle.js"),x=i.interopDefault(w);let E="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,A=E&&"function"==typeof ReadableStream,_=E&&("function"==typeof TextEncoder?(n=new TextEncoder,e=>n.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),T=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},I=A&&T(()=>{let e=!1,t=new Request((0,o.default).origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),S=A&&T(()=>(0,f.default).isReadableStream(new Response("").body)),C={stream:S&&(e=>e.body)};E&&(a=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{C[e]||(C[e]=(0,f.default).isFunction(a[e])?t=>t[e]():(t,r)=>{throw new l.default(`Response type '${e}' is not supported`,l.default.ERR_NOT_SUPPORT,r)})}));let k=async e=>{if(null==e)return 0;if((0,f.default).isBlob(e))return e.size;if((0,f.default).isSpecCompliantForm(e)){let t=new Request(o.default.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return(0,f.default).isArrayBufferView(e)||(0,f.default).isArrayBuffer(e)?e.byteLength:((0,f.default).isURLSearchParams(e)&&(e+=""),(0,f.default).isString(e))?(await _(e)).byteLength:void 0},R=async(e,t)=>{let r=(0,f.default).toFiniteNumber(e.getContentLength());return null==r?k(t):r};r.default=E&&(async e=>{let t,r,{url:n,method:a,data:i,signal:s,cancelToken:o,timeout:c,onDownloadProgress:d,onUploadProgress:u,responseType:b,headers:y,withCredentials:w="same-origin",fetchOptions:E}=(0,v.default)(e);b=b?(b+"").toLowerCase():"text";let A=(0,h.default)([s,o&&o.toAbortSignal()],c),_=A&&A.unsubscribe&&(()=>{A.unsubscribe()});try{if(u&&I&&"get"!==a&&"head"!==a&&0!==(r=await R(y,i))){let e,t=new Request(n,{method:"POST",body:i,duplex:"half"});if((0,f.default).isFormData(i)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){let[e,n]=(0,m.progressEventDecorator)(r,(0,m.progressEventReducer)((0,m.asyncDecorator)(u)));i=(0,p.trackStream)(t.body,65536,e,n)}}(0,f.default).isString(w)||(w=w?"include":"omit");let s="credentials"in Request.prototype;t=new Request(n,{...E,signal:A,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:i,duplex:"half",credentials:s?w:void 0});let o=await fetch(t),c=S&&("stream"===b||"response"===b);if(S&&(d||c&&_)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=o[t]});let t=(0,f.default).toFiniteNumber(o.headers.get("content-length")),[r,n]=d&&(0,m.progressEventDecorator)(t,(0,m.progressEventReducer)((0,m.asyncDecorator)(d),!0))||[];o=new Response((0,p.trackStream)(o.body,65536,r,()=>{n&&n(),_&&_()}),e)}b=b||"text";let l=await C[(0,f.default).findKey(C,b)||"text"](o,e);return!c&&_&&_(),await new Promise((r,n)=>{(0,x.default)(r,n,{data:l,headers:(0,g.default).from(o.headers),status:o.status,statusText:o.statusText,config:e,request:t})})}catch(r){if(_&&_(),r&&"TypeError"===r.name&&/fetch/i.test(r.message))throw Object.assign(new l.default("Network Error",l.default.ERR_NETWORK,e,t),{cause:r.cause||r});throw(0,l.default).from(r,r&&r.code,e,t)}})},{"../platform/index.js":"4BXM0","../utils.js":"egroV","../core/AxiosError.js":"iHxkD","../helpers/composeSignals.js":"61ubG","../helpers/trackStream.js":"iPFno","../core/AxiosHeaders.js":"3wUwm","../helpers/progressEventReducer.js":"ZGfaK","../helpers/resolveConfig.js":"bxX7U","../core/settle.js":"aXtGk","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"61ubG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../cancel/CanceledError.js"),i=n.interopDefault(a),s=e("../core/AxiosError.js"),o=n.interopDefault(s),c=e("../utils.js"),f=n.interopDefault(c);r.default=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,a=function(e){if(!r){r=!0,c();let t=e instanceof Error?e:this.reason;n.abort(t instanceof o.default?t:new i.default(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>{s=null,a(new o.default(`timeout ${t} of ms exceeded`,o.default.ETIMEDOUT))},t),c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));let{signal:d}=n;return d.unsubscribe=()=>(0,f.default).asap(c),d}}},{"../cancel/CanceledError.js":"d3V9O","../core/AxiosError.js":"iHxkD","../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],iPFno:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"streamChunk",()=>a),n.export(r,"readBytes",()=>i),n.export(r,"trackStream",()=>o);let a=function*(e,t){let r,n=e.byteLength;if(!t||n{let a;let s=i(e,t),o=0,c=e=>{!a&&(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){c(),e.close();return}let a=n.byteLength;if(r){let e=o+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw c(e),e}},cancel:e=>(c(e),s.return())},{highWaterMark:2})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5oRQ6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("../env/data.js"),i=e("../core/AxiosError.js"),s=n.interopDefault(i);let o={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let c={};o.transitional=function(e,t,r){function n(e,t){return"[Axios v"+a.VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,a,i)=>{if(!1===e)throw new s.default(n(a," has been removed"+(t?" in "+t:"")),s.default.ERR_DEPRECATED);return t&&!c[a]&&(c[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,a,i)}},r.default={assertOptions:function(e,t,r){if("object"!=typeof e)throw new s.default("options must be an object",s.default.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),a=n.length;for(;a-- >0;){let i=n[a],o=t[i];if(o){let t=e[i],r=void 0===t||o(t,i,e);if(!0!==r)throw new s.default("option "+i+" must be "+r,s.default.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new s.default("Unknown option "+i,s.default.ERR_BAD_OPTION)}},validators:o}},{"../env/data.js":"bCFzK","../core/AxiosError.js":"iHxkD","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bCFzK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"VERSION",()=>a);let a="1.7.7"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6xYC2":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./CanceledError.js"),i=n.interopDefault(a);class s{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,a){r.reason||(r.reason=new i.default(e,n,a),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new s(function(t){e=t}),cancel:e}}}r.default=s},{"./CanceledError.js":"d3V9O","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"34fku":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return function(t){return e.apply(null,t)}}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kOANF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var a=e("./../utils.js"),i=n.interopDefault(a);function s(e){return(0,i.default).isObject(e)&&!0===e.isAxiosError}},{"./../utils.js":"egroV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kddrU:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(n).forEach(([e,t])=>{n[t]=e}),r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8BZnj":[function(e,t,r){let n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E;var A=e("@parcel/transformer-js/src/esmodule-helpers.js");A.defineInteropFlag(r),A.export(r,"BlockchainData",()=>nm),A.export(r,"ImxApiClients",()=>nL),A.export(r,"MultiRollupApiClients",()=>nD),A.export(r,"createConfig",()=>nH),A.export(r,"imx",()=>C),A.export(r,"imxApiConfig",()=>nV),A.export(r,"mr",()=>e4),A.export(r,"multiRollupConfig",()=>nq);var _=e("axios"),T=A.interopDefault(_),I=Object.defineProperty,S=(e,t)=>{for(var r in t)I(e,r,{get:t[r],enumerable:!0})},C={};S(C,{AssetsApi:()=>H,AssetsApiAxiosParamCreator:()=>L,AssetsApiFactory:()=>F,AssetsApiFp:()=>D,BalancesApi:()=>G,BalancesApiAxiosParamCreator:()=>V,BalancesApiFactory:()=>z,BalancesApiFp:()=>q,CollectionsApi:()=>J,CollectionsApiAxiosParamCreator:()=>K,CollectionsApiFactory:()=>$,CollectionsApiFp:()=>W,Configuration:()=>eX,CreateExchangeAndURLAPIRequestProviderEnum:()=>eY,CreateExchangeAndURLAPIRequestTypeEnum:()=>e0,CreateProjectGroupRequestChainTypeEnum:()=>e1,DepositsApi:()=>Y,DepositsApiAxiosParamCreator:()=>Q,DepositsApiFactory:()=>X,DepositsApiFp:()=>Z,EncodeAssetRequestTokenTypeEnum:()=>e6,EncodingApi:()=>en,EncodingApiAxiosParamCreator:()=>ee,EncodingApiFactory:()=>er,EncodingApiFp:()=>et,ExchangesApi:()=>eo,ExchangesApiAxiosParamCreator:()=>ea,ExchangesApiFactory:()=>es,ExchangesApiFp:()=>ei,FeeTokenTypeEnum:()=>e2,GetMetadataRefreshResponseStatusEnum:()=>e5,MetadataApi:()=>el,MetadataApiAxiosParamCreator:()=>ec,MetadataApiFactory:()=>ed,MetadataApiFp:()=>ef,MetadataRefreshExcludingSummaryStatusEnum:()=>e8,MetadataRefreshesApi:()=>eb,MetadataRefreshesApiAxiosParamCreator:()=>eu,MetadataRefreshesApiFactory:()=>ep,MetadataRefreshesApiFp:()=>eh,MetadataSchemaRequestTypeEnum:()=>e3,MintsApi:()=>ev,MintsApiAxiosParamCreator:()=>eg,MintsApiFactory:()=>ey,MintsApiFp:()=>em,NftCheckoutPrimaryApi:()=>eA,NftCheckoutPrimaryApiAxiosParamCreator:()=>ew,NftCheckoutPrimaryApiFactory:()=>eE,NftCheckoutPrimaryApiFp:()=>ex,OrdersApi:()=>eS,OrdersApiAxiosParamCreator:()=>e_,OrdersApiFactory:()=>eI,OrdersApiFp:()=>eT,ProjectsApi:()=>eM,ProjectsApiAxiosParamCreator:()=>eC,ProjectsApiFactory:()=>eR,ProjectsApiFp:()=>ek,TokensApi:()=>ej,TokensApiAxiosParamCreator:()=>eB,TokensApiFactory:()=>eO,TokensApiFp:()=>eP,TradesApi:()=>eD,TradesApiAxiosParamCreator:()=>eN,TradesApiFactory:()=>eL,TradesApiFp:()=>eU,TransfersApi:()=>eq,TransfersApiAxiosParamCreator:()=>eF,TransfersApiFactory:()=>eV,TransfersApiFp:()=>eH,UsersApi:()=>eW,UsersApiAxiosParamCreator:()=>ez,UsersApiFactory:()=>eK,UsersApiFp:()=>eG,WithdrawalsApi:()=>eZ,WithdrawalsApiAxiosParamCreator:()=>e$,WithdrawalsApiFactory:()=>eQ,WithdrawalsApiFp:()=>eJ});var k="https://api.sandbox.x.immutable.com".replace(/\/+$/,""),R=class{constructor(e,t=k,r=T.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}configuration},M=class extends Error{constructor(e,t){super(t),this.field=e}name="RequiredError"},B="https://example.com",P=function(e,t,r){if(null==r)throw new M(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},O=function(e,...t){let r=new URLSearchParams(e.search);(function e(t,r,n=""){"object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(a=>e(t,r[a],`${n}${""!==n?".":""}${a}`)):t.has(n)?t.append(n,r):t.set(n,r)})(r,t),e.search=r.toString()},j=function(e,t,r){let n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(void 0!==e?e:{}):e||""},N=function(e){return e.pathname+e.search+e.hash},U=function(e,t,r,n){return(a=t,i=r)=>{let s={...e.options,url:(n?.basePath||i)+e.url};return a.request(s)}},L=function(e){return{getAsset:async(t,r,n,a={})=>{P("getAsset","tokenAddress",t),P("getAsset","tokenId",r);let i=new URL("/v1/assets/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),B),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};void 0!==n&&(c.include_fees=n),O(i,c);let f=s&&s.headers?s.headers:{};return o.headers={...f,...a.headers},{url:N(i),options:o}},listAssets:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m={})=>{let y=new URL("/v1/assets",B),v;e&&(v=e.baseOptions);let w={method:"GET",...v,...m},x={};void 0!==t&&(x.page_size=t),void 0!==r&&(x.cursor=r),void 0!==n&&(x.order_by=n),void 0!==a&&(x.direction=a),void 0!==i&&(x.user=i),void 0!==s&&(x.status=s),void 0!==o&&(x.name=o),void 0!==c&&(x.metadata=c),void 0!==f&&(x.sell_orders=f),void 0!==d&&(x.buy_orders=d),void 0!==l&&(x.include_fees=l),void 0!==u&&(x.collection=u),void 0!==h&&(x.updated_min_timestamp=h),void 0!==p&&(x.updated_max_timestamp=p),void 0!==b&&(x.auxiliary_fee_percentages=b),void 0!==g&&(x.auxiliary_fee_recipients=g),O(y,x);let E=v&&v.headers?v.headers:{};return w.headers={...E,...m.headers},{url:N(y),options:w}}}},D=function(e){let t=L(e);return{getAsset:async(r,n,a,i)=>U(await t.getAsset(r,n,a,i),T.default,k,e),listAssets:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y)=>U(await t.listAssets(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y),T.default,k,e)}},F=function(e,t,r){let n=D(e);return{getAsset:(e,a,i,s)=>n.getAsset(e,a,i,s).then(e=>e(r,t)),listAssets:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v)=>n.listAssets(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v).then(e=>e(r,t))}},H=class extends R{getAsset(e,t){return D(this.configuration).getAsset(e.tokenAddress,e.tokenId,e.includeFees,t).then(e=>e(this.axios,this.basePath))}listAssets(e={},t){return D(this.configuration).listAssets(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.name,e.metadata,e.sellOrders,e.buyOrders,e.includeFees,e.collection,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}},V=function(e){return{getBalance:async(t,r,n={})=>{P("getBalance","owner",t),P("getBalance","address",r);let a=new URL("/v2/balances/{owner}/{address}".replace("{owner}",encodeURIComponent(String(t))).replace("{address}",encodeURIComponent(String(r))),B),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:N(a),options:s}},listBalances:async(t,r,n,a,i,s={})=>{P("listBalances","owner",t);let o=new URL("/v2/balances/{owner}".replace("{owner}",encodeURIComponent(String(t))),B),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};void 0!==r&&(d.page_size=r),void 0!==n&&(d.cursor=n),void 0!==a&&(d.order_by=a),void 0!==i&&(d.direction=i),O(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:N(o),options:f}}}},q=function(e){let t=V(e);return{getBalance:async(r,n,a)=>U(await t.getBalance(r,n,a),T.default,k,e),listBalances:async(r,n,a,i,s,o)=>U(await t.listBalances(r,n,a,i,s,o),T.default,k,e)}},z=function(e,t,r){let n=q(e);return{getBalance:(e,a,i)=>n.getBalance(e,a,i).then(e=>e(r,t)),listBalances:(e,a,i,s,o,c)=>n.listBalances(e,a,i,s,o,c).then(e=>e(r,t))}},G=class extends R{getBalance(e,t){return q(this.configuration).getBalance(e.owner,e.address,t).then(e=>e(this.axios,this.basePath))}listBalances(e,t){return q(this.configuration).listBalances(e.owner,e.pageSize,e.cursor,e.orderBy,e.direction,t).then(e=>e(this.axios,this.basePath))}},K=function(e){return{createCollection:async(t,r,n,a,i={})=>{P("createCollection","iMXSignature",t),P("createCollection","iMXTimestamp",r),P("createCollection","createCollectionRequest",n);let s=new URL("/v1/collections",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=t&&(f["IMX-Signature"]=String(t)),null!=r&&(f["IMX-Timestamp"]=String(r)),null!=a&&(f["x-immutable-api-key"]=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(n,c,e),{url:N(s),options:c}},getCollection:async(t,r={})=>{P("getCollection","address",t);let n=new URL("/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listCollectionFilters:async(t,r,n,a={})=>{P("listCollectionFilters","address",t);let i=new URL("/v1/collections/{address}/filters".replace("{address}",encodeURIComponent(String(t))),B),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};void 0!==r&&(c.page_size=r),void 0!==n&&(c.next_page_token=n),O(i,c);let f=s&&s.headers?s.headers:{};return o.headers={...f,...a.headers},{url:N(i),options:o}},listCollections:async(t,r,n,a,i,s,o,c={})=>{let f=new URL("/v1/collections",B),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};void 0!==t&&(u.page_size=t),void 0!==r&&(u.cursor=r),void 0!==n&&(u.order_by=n),void 0!==a&&(u.direction=a),void 0!==i&&(u.blacklist=i),void 0!==s&&(u.whitelist=s),void 0!==o&&(u.keyword=o),O(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:N(f),options:l}},summarizeCollections:async(t,r={})=>{P("summarizeCollections","user",t);let n=new URL("/v1/collections-summary",B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};void 0!==t&&(s.user=t),O(n,s);let o=a&&a.headers?a.headers:{};return i.headers={...o,...r.headers},{url:N(n),options:i}},updateCollection:async(t,r,n,a,i={})=>{P("updateCollection","address",t),P("updateCollection","iMXSignature",r),P("updateCollection","iMXTimestamp",n),P("updateCollection","updateCollectionRequest",a);let s=new URL("/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"PATCH",...o,...i},f={};null!=r&&(f["IMX-Signature"]=String(r)),null!=n&&(f["IMX-Timestamp"]=String(n)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(a,c,e),{url:N(s),options:c}}}},W=function(e){let t=K(e);return{createCollection:async(r,n,a,i,s)=>U(await t.createCollection(r,n,a,i,s),T.default,k,e),getCollection:async(r,n)=>U(await t.getCollection(r,n),T.default,k,e),listCollectionFilters:async(r,n,a,i)=>U(await t.listCollectionFilters(r,n,a,i),T.default,k,e),listCollections:async(r,n,a,i,s,o,c,f)=>U(await t.listCollections(r,n,a,i,s,o,c,f),T.default,k,e),summarizeCollections:async(r,n)=>U(await t.summarizeCollections(r,n),T.default,k,e),updateCollection:async(r,n,a,i,s)=>U(await t.updateCollection(r,n,a,i,s),T.default,k,e)}},$=function(e,t,r){let n=W(e);return{createCollection:(e,a,i,s,o)=>n.createCollection(e,a,i,s,o).then(e=>e(r,t)),getCollection:(e,a)=>n.getCollection(e,a).then(e=>e(r,t)),listCollectionFilters:(e,a,i,s)=>n.listCollectionFilters(e,a,i,s).then(e=>e(r,t)),listCollections:(e,a,i,s,o,c,f,d)=>n.listCollections(e,a,i,s,o,c,f,d).then(e=>e(r,t)),summarizeCollections:(e,a)=>n.summarizeCollections(e,a).then(e=>e(r,t)),updateCollection:(e,a,i,s,o)=>n.updateCollection(e,a,i,s,o).then(e=>e(r,t))}},J=class extends R{createCollection(e,t){return W(this.configuration).createCollection(e.iMXSignature,e.iMXTimestamp,e.createCollectionRequest,e.xImmutableApiKey,t).then(e=>e(this.axios,this.basePath))}getCollection(e,t){return W(this.configuration).getCollection(e.address,t).then(e=>e(this.axios,this.basePath))}listCollectionFilters(e,t){return W(this.configuration).listCollectionFilters(e.address,e.pageSize,e.nextPageToken,t).then(e=>e(this.axios,this.basePath))}listCollections(e={},t){return W(this.configuration).listCollections(e.pageSize,e.cursor,e.orderBy,e.direction,e.blacklist,e.whitelist,e.keyword,t).then(e=>e(this.axios,this.basePath))}summarizeCollections(e,t){return W(this.configuration).summarizeCollections(e.user,t).then(e=>e(this.axios,this.basePath))}updateCollection(e,t){return W(this.configuration).updateCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.updateCollectionRequest,t).then(e=>e(this.axios,this.basePath))}},Q=function(e){return{getDeposit:async(t,r={})=>{P("getDeposit","id",t);let n=new URL("/v1/deposits/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getSignableDeposit:async(t,r={})=>{P("getSignableDeposit","getSignableDepositRequest",t);let n=new URL("/v1/signable-deposit-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},listDeposits:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m={})=>{let y=new URL("/v1/deposits",B),v;e&&(v=e.baseOptions);let w={method:"GET",...v,...m},x={};void 0!==t&&(x.page_size=t),void 0!==r&&(x.cursor=r),void 0!==n&&(x.order_by=n),void 0!==a&&(x.direction=a),void 0!==i&&(x.user=i),void 0!==s&&(x.status=s),void 0!==o&&(x.min_timestamp=o),void 0!==c&&(x.max_timestamp=c),void 0!==f&&(x.token_type=f),void 0!==d&&(x.token_id=d),void 0!==l&&(x.asset_id=l),void 0!==u&&(x.token_address=u),void 0!==h&&(x.token_name=h),void 0!==p&&(x.min_quantity=p),void 0!==b&&(x.max_quantity=b),void 0!==g&&(x.metadata=g),O(y,x);let E=v&&v.headers?v.headers:{};return w.headers={...E,...m.headers},{url:N(y),options:w}}}},Z=function(e){let t=Q(e);return{getDeposit:async(r,n)=>U(await t.getDeposit(r,n),T.default,k,e),getSignableDeposit:async(r,n)=>U(await t.getSignableDeposit(r,n),T.default,k,e),listDeposits:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y)=>U(await t.listDeposits(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y),T.default,k,e)}},X=function(e,t,r){let n=Z(e);return{getDeposit:(e,a)=>n.getDeposit(e,a).then(e=>e(r,t)),getSignableDeposit:(e,a)=>n.getSignableDeposit(e,a).then(e=>e(r,t)),listDeposits:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v)=>n.listDeposits(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v).then(e=>e(r,t))}},Y=class extends R{getDeposit(e,t){return Z(this.configuration).getDeposit(e.id,t).then(e=>e(this.axios,this.basePath))}getSignableDeposit(e,t){return Z(this.configuration).getSignableDeposit(e.getSignableDepositRequest,t).then(e=>e(this.axios,this.basePath))}listDeposits(e={},t){return Z(this.configuration).listDeposits(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}},ee=function(e){return{encodeAsset:async(t,r,n={})=>{P("encodeAsset","assetType",t),P("encodeAsset","encodeAssetRequest",r);let a=new URL("/v1/encode/{assetType}".replace("{assetType}",encodeURIComponent(String(t))),B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}}}},et=function(e){let t=ee(e);return{encodeAsset:async(r,n,a)=>U(await t.encodeAsset(r,n,a),T.default,k,e)}},er=function(e,t,r){let n=et(e);return{encodeAsset:(e,a,i)=>n.encodeAsset(e,a,i).then(e=>e(r,t))}},en=class extends R{encodeAsset(e,t){return et(this.configuration).encodeAsset(e.assetType,e.encodeAssetRequest,t).then(e=>e(this.axios,this.basePath))}},ea=function(e){return{createExchange:async(t,r={})=>{P("createExchange","createExchangeAPIRequest",t);let n=new URL("/v3/exchanges",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},createExchangeTransfer:async(t,r,n,a,i,s={})=>{P("createExchangeTransfer","id",t),P("createExchangeTransfer","createTransferRequest",r);let o=new URL("/v2/exchanges/{id}/transfers".replace("{id}",encodeURIComponent(String(t))),B),c;e&&(c=e.baseOptions);let f={method:"POST",...c,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=a&&(d["x-imx-eth-signature"]=String(a)),null!=i&&(d.Authorization=String(i)),d["Content-Type"]="application/json",O(o,{});let l=c&&c.headers?c.headers:{};return f.headers={...d,...l,...s.headers},f.data=j(r,f,e),{url:N(o),options:f}},getExchange:async(t,r={})=>{P("getExchange","id",t);let n=new URL("/v3/exchanges/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getExchangeSignableTransfer:async(t,r,n={})=>{P("getExchangeSignableTransfer","id",t),P("getExchangeSignableTransfer","getSignableTransferRequest",r);let a=new URL("/v2/exchanges/{id}/signable-transfer-details".replace("{id}",encodeURIComponent(String(t))),B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}},getExchanges:async(t,r,n,a,i,s,o,c,f,d={})=>{let l=new URL("/v3/exchanges",B),u;e&&(u=e.baseOptions);let h={method:"GET",...u,...d},p={};void 0!==t&&(p.page_size=t),void 0!==r&&(p.cursor=r),void 0!==n&&(p.order_by=n),void 0!==a&&(p.direction=a),void 0!==i&&(p.id=i),void 0!==s&&(p.wallet_address=s),void 0!==o&&(p.status=o),void 0!==c&&(p.provider=c),void 0!==f&&(p.transfer_id=f),O(l,p);let b=u&&u.headers?u.headers:{};return h.headers={...b,...d.headers},{url:N(l),options:h}}}},ei=function(e){let t=ea(e);return{createExchange:async(r,n)=>U(await t.createExchange(r,n),T.default,k,e),createExchangeTransfer:async(r,n,a,i,s,o)=>U(await t.createExchangeTransfer(r,n,a,i,s,o),T.default,k,e),getExchange:async(r,n)=>U(await t.getExchange(r,n),T.default,k,e),getExchangeSignableTransfer:async(r,n,a)=>U(await t.getExchangeSignableTransfer(r,n,a),T.default,k,e),getExchanges:async(r,n,a,i,s,o,c,f,d,l)=>U(await t.getExchanges(r,n,a,i,s,o,c,f,d,l),T.default,k,e)}},es=function(e,t,r){let n=ei(e);return{createExchange:(e,a)=>n.createExchange(e,a).then(e=>e(r,t)),createExchangeTransfer:(e,a,i,s,o,c)=>n.createExchangeTransfer(e,a,i,s,o,c).then(e=>e(r,t)),getExchange:(e,a)=>n.getExchange(e,a).then(e=>e(r,t)),getExchangeSignableTransfer:(e,a,i)=>n.getExchangeSignableTransfer(e,a,i).then(e=>e(r,t)),getExchanges:(e,a,i,s,o,c,f,d,l,u)=>n.getExchanges(e,a,i,s,o,c,f,d,l,u).then(e=>e(r,t))}},eo=class extends R{createExchange(e,t){return ei(this.configuration).createExchange(e.createExchangeAPIRequest,t).then(e=>e(this.axios,this.basePath))}createExchangeTransfer(e,t){return ei(this.configuration).createExchangeTransfer(e.id,e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getExchange(e,t){return ei(this.configuration).getExchange(e.id,t).then(e=>e(this.axios,this.basePath))}getExchangeSignableTransfer(e,t){return ei(this.configuration).getExchangeSignableTransfer(e.id,e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getExchanges(e={},t){return ei(this.configuration).getExchanges(e.pageSize,e.cursor,e.orderBy,e.direction,e.id,e.walletAddress,e.status,e.provider,e.transferId,t).then(e=>e(this.axios,this.basePath))}},ec=function(e){return{addMetadataSchemaToCollection:async(t,r,n,a,i={})=>{P("addMetadataSchemaToCollection","address",t),P("addMetadataSchemaToCollection","iMXSignature",r),P("addMetadataSchemaToCollection","iMXTimestamp",n),P("addMetadataSchemaToCollection","addMetadataSchemaToCollectionRequest",a);let s=new URL("/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["IMX-Signature"]=String(r)),null!=n&&(f["IMX-Timestamp"]=String(n)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(a,c,e),{url:N(s),options:c}},getMetadataSchema:async(t,r={})=>{P("getMetadataSchema","address",t);let n=new URL("/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},updateMetadataSchemaByName:async(t,r,n,a,i,s={})=>{P("updateMetadataSchemaByName","address",t),P("updateMetadataSchemaByName","name",r),P("updateMetadataSchemaByName","iMXSignature",n),P("updateMetadataSchemaByName","iMXTimestamp",a),P("updateMetadataSchemaByName","metadataSchemaRequest",i);let o=new URL("/v1/collections/{address}/metadata-schema/{name}".replace("{address}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),B),c;e&&(c=e.baseOptions);let f={method:"PATCH",...c,...s},d={};null!=n&&(d["IMX-Signature"]=String(n)),null!=a&&(d["IMX-Timestamp"]=String(a)),d["Content-Type"]="application/json",O(o,{});let l=c&&c.headers?c.headers:{};return f.headers={...d,...l,...s.headers},f.data=j(i,f,e),{url:N(o),options:f}}}},ef=function(e){let t=ec(e);return{addMetadataSchemaToCollection:async(r,n,a,i,s)=>U(await t.addMetadataSchemaToCollection(r,n,a,i,s),T.default,k,e),getMetadataSchema:async(r,n)=>U(await t.getMetadataSchema(r,n),T.default,k,e),updateMetadataSchemaByName:async(r,n,a,i,s,o)=>U(await t.updateMetadataSchemaByName(r,n,a,i,s,o),T.default,k,e)}},ed=function(e,t,r){let n=ef(e);return{addMetadataSchemaToCollection:(e,a,i,s,o)=>n.addMetadataSchemaToCollection(e,a,i,s,o).then(e=>e(r,t)),getMetadataSchema:(e,a)=>n.getMetadataSchema(e,a).then(e=>e(r,t)),updateMetadataSchemaByName:(e,a,i,s,o,c)=>n.updateMetadataSchemaByName(e,a,i,s,o,c).then(e=>e(r,t))}},el=class extends R{addMetadataSchemaToCollection(e,t){return ef(this.configuration).addMetadataSchemaToCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.addMetadataSchemaToCollectionRequest,t).then(e=>e(this.axios,this.basePath))}getMetadataSchema(e,t){return ef(this.configuration).getMetadataSchema(e.address,t).then(e=>e(this.axios,this.basePath))}updateMetadataSchemaByName(e,t){return ef(this.configuration).updateMetadataSchemaByName(e.address,e.name,e.iMXSignature,e.iMXTimestamp,e.metadataSchemaRequest,t).then(e=>e(this.axios,this.basePath))}},eu=function(e){return{getAListOfMetadataRefreshes:async(t,r,n,a,i,s,o={})=>{P("getAListOfMetadataRefreshes","xImxEthSignature",t),P("getAListOfMetadataRefreshes","xImxEthTimestamp",r),P("getAListOfMetadataRefreshes","xImxEthAddress",n);let c=new URL("/v1/metadata-refreshes",B),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={},u={};void 0!==a&&(u.page_size=a),void 0!==i&&(u.cursor=i),void 0!==s&&(u.collection_address=s),null!=t&&(l["x-imx-eth-signature"]=String(t)),null!=r&&(l["x-imx-eth-timestamp"]=String(r)),null!=n&&(l["x-imx-eth-address"]=String(n)),O(c,u);let h=f&&f.headers?f.headers:{};return d.headers={...l,...h,...o.headers},{url:N(c),options:d}},getMetadataRefreshErrors:async(t,r,n,a,i,s,o={})=>{P("getMetadataRefreshErrors","refreshId",t),P("getMetadataRefreshErrors","xImxEthSignature",r),P("getMetadataRefreshErrors","xImxEthTimestamp",n),P("getMetadataRefreshErrors","xImxEthAddress",a);let c=new URL("/v1/metadata-refreshes/{refresh_id}/errors".replace("{refresh_id}",encodeURIComponent(String(t))),B),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={},u={};void 0!==i&&(u.page_size=i),void 0!==s&&(u.cursor=s),null!=r&&(l["x-imx-eth-signature"]=String(r)),null!=n&&(l["x-imx-eth-timestamp"]=String(n)),null!=a&&(l["x-imx-eth-address"]=String(a)),O(c,u);let h=f&&f.headers?f.headers:{};return d.headers={...l,...h,...o.headers},{url:N(c),options:d}},getMetadataRefreshResults:async(t,r,n,a,i={})=>{P("getMetadataRefreshResults","refreshId",t),P("getMetadataRefreshResults","xImxEthSignature",r),P("getMetadataRefreshResults","xImxEthTimestamp",n),P("getMetadataRefreshResults","xImxEthAddress",a);let s=new URL("/v1/metadata-refreshes/{refresh_id}".replace("{refresh_id}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};null!=r&&(f["x-imx-eth-signature"]=String(r)),null!=n&&(f["x-imx-eth-timestamp"]=String(n)),null!=a&&(f["x-imx-eth-address"]=String(a)),O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},{url:N(s),options:c}},requestAMetadataRefresh:async(t,r,n,a,i={})=>{P("requestAMetadataRefresh","xImxEthSignature",t),P("requestAMetadataRefresh","xImxEthTimestamp",r),P("requestAMetadataRefresh","xImxEthAddress",n),P("requestAMetadataRefresh","createMetadataRefreshRequest",a);let s=new URL("/v1/metadata-refreshes",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=t&&(f["x-imx-eth-signature"]=String(t)),null!=r&&(f["x-imx-eth-timestamp"]=String(r)),null!=n&&(f["x-imx-eth-address"]=String(n)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(a,c,e),{url:N(s),options:c}}}},eh=function(e){let t=eu(e);return{getAListOfMetadataRefreshes:async(r,n,a,i,s,o,c)=>U(await t.getAListOfMetadataRefreshes(r,n,a,i,s,o,c),T.default,k,e),getMetadataRefreshErrors:async(r,n,a,i,s,o,c)=>U(await t.getMetadataRefreshErrors(r,n,a,i,s,o,c),T.default,k,e),getMetadataRefreshResults:async(r,n,a,i,s)=>U(await t.getMetadataRefreshResults(r,n,a,i,s),T.default,k,e),requestAMetadataRefresh:async(r,n,a,i,s)=>U(await t.requestAMetadataRefresh(r,n,a,i,s),T.default,k,e)}},ep=function(e,t,r){let n=eh(e);return{getAListOfMetadataRefreshes:(e,a,i,s,o,c,f)=>n.getAListOfMetadataRefreshes(e,a,i,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshErrors:(e,a,i,s,o,c,f)=>n.getMetadataRefreshErrors(e,a,i,s,o,c,f).then(e=>e(r,t)),getMetadataRefreshResults:(e,a,i,s,o)=>n.getMetadataRefreshResults(e,a,i,s,o).then(e=>e(r,t)),requestAMetadataRefresh:(e,a,i,s,o)=>n.requestAMetadataRefresh(e,a,i,s,o).then(e=>e(r,t))}},eb=class extends R{getAListOfMetadataRefreshes(e,t){return eh(this.configuration).getAListOfMetadataRefreshes(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,e.collectionAddress,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshErrors(e,t){return eh(this.configuration).getMetadataRefreshErrors(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.pageSize,e.cursor,t).then(e=>e(this.axios,this.basePath))}getMetadataRefreshResults(e,t){return eh(this.configuration).getMetadataRefreshResults(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,t).then(e=>e(this.axios,this.basePath))}requestAMetadataRefresh(e,t){return eh(this.configuration).requestAMetadataRefresh(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.createMetadataRefreshRequest,t).then(e=>e(this.axios,this.basePath))}},eg=function(e){return{getMint:async(t,r={})=>{P("getMint","id",t);let n=new URL("/v1/mints/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getMintableTokenDetailsByClientTokenId:async(t,r,n={})=>{P("getMintableTokenDetailsByClientTokenId","tokenAddress",t),P("getMintableTokenDetailsByClientTokenId","tokenId",r);let a=new URL("/v1/mintable-token/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),B),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:N(a),options:s}},listMints:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g={})=>{let m=new URL("/v1/mints",B),y;e&&(y=e.baseOptions);let v={method:"GET",...y,...g},w={};void 0!==t&&(w.page_size=t),void 0!==r&&(w.cursor=r),void 0!==n&&(w.order_by=n),void 0!==a&&(w.direction=a),void 0!==i&&(w.user=i),void 0!==s&&(w.status=s),void 0!==o&&(w.min_timestamp=o),void 0!==c&&(w.max_timestamp=c),void 0!==f&&(w.token_type=f),void 0!==d&&(w.token_id=d),void 0!==l&&(w.token_name=l),void 0!==u&&(w.token_address=u),void 0!==h&&(w.min_quantity=h),void 0!==p&&(w.max_quantity=p),void 0!==b&&(w.metadata=b),O(m,w);let x=y&&y.headers?y.headers:{};return v.headers={...x,...g.headers},{url:N(m),options:v}},mintTokens:async(t,r={})=>{P("mintTokens","mintTokensRequestV2",t);let n=new URL("/v2/mints",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}}}},em=function(e){let t=eg(e);return{getMint:async(r,n)=>U(await t.getMint(r,n),T.default,k,e),getMintableTokenDetailsByClientTokenId:async(r,n,a)=>U(await t.getMintableTokenDetailsByClientTokenId(r,n,a),T.default,k,e),listMints:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m)=>U(await t.listMints(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m),T.default,k,e),mintTokens:async(r,n)=>U(await t.mintTokens(r,n),T.default,k,e)}},ey=function(e,t,r){let n=em(e);return{getMint:(e,a)=>n.getMint(e,a).then(e=>e(r,t)),getMintableTokenDetailsByClientTokenId:(e,a,i)=>n.getMintableTokenDetailsByClientTokenId(e,a,i).then(e=>e(r,t)),listMints:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y)=>n.listMints(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y).then(e=>e(r,t)),mintTokens:(e,a)=>n.mintTokens(e,a).then(e=>e(r,t))}},ev=class extends R{getMint(e,t){return em(this.configuration).getMint(e.id,t).then(e=>e(this.axios,this.basePath))}getMintableTokenDetailsByClientTokenId(e,t){return em(this.configuration).getMintableTokenDetailsByClientTokenId(e.tokenAddress,e.tokenId,t).then(e=>e(this.axios,this.basePath))}listMints(e={},t){return em(this.configuration).listMints(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.tokenName,e.tokenAddress,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}mintTokens(e,t){return em(this.configuration).mintTokens(e.mintTokensRequestV2,t).then(e=>e(this.axios,this.basePath))}},ew=function(e){return{createNftPrimary:async(t,r={})=>{P("createNftPrimary","createAPIRequest",t);let n=new URL("/v2/nft/primary",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getCurrenciesNFTCheckoutPrimary:async(t,r,n={})=>{let a=new URL("/v2/nft/primary/currencies",B),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.provider=t),void 0!==r&&(o.include_limits=r),O(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:N(a),options:s}},getNftPrimaryTransaction:async(t,r={})=>{P("getNftPrimaryTransaction","transactionId",t);let n=new URL("/v2/nft/primary/{transaction_id}".replace("{transaction_id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},getNftPrimaryTransactions:async(t,r,n,a,i,s,o,c,f,d,l,u={})=>{let h=new URL("/v2/nft/primary",B),p;e&&(p=e.baseOptions);let b={method:"GET",...p,...u},g={};void 0!==t&&(g.page_size=t),void 0!==r&&(g.cursor=r),void 0!==n&&(g.order_by=n),void 0!==a&&(g.direction=a),void 0!==i&&(g.transaction_id=i),void 0!==s&&(g.contract_address=s),void 0!==o&&(g.seller_wallet_address=o),void 0!==c&&(g.user_wallet_address=c),void 0!==f&&(g.status=f),void 0!==d&&(g.provider=d),void 0!==l&&(g.mint_id=l),O(h,g);let m=p&&p.headers?p.headers:{};return b.headers={...m,...u.headers},{url:N(h),options:b}},registerNftPrimarySalesContract:async(t,r={})=>{P("registerNftPrimarySalesContract","createAPIRequest",t);let n=new URL("/v2/nft/primary/register",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}}}},ex=function(e){let t=ew(e);return{createNftPrimary:async(r,n)=>U(await t.createNftPrimary(r,n),T.default,k,e),getCurrenciesNFTCheckoutPrimary:async(r,n,a)=>U(await t.getCurrenciesNFTCheckoutPrimary(r,n,a),T.default,k,e),getNftPrimaryTransaction:async(r,n)=>U(await t.getNftPrimaryTransaction(r,n),T.default,k,e),getNftPrimaryTransactions:async(r,n,a,i,s,o,c,f,d,l,u,h)=>U(await t.getNftPrimaryTransactions(r,n,a,i,s,o,c,f,d,l,u,h),T.default,k,e),registerNftPrimarySalesContract:async(r,n)=>U(await t.registerNftPrimarySalesContract(r,n),T.default,k,e)}},eE=function(e,t,r){let n=ex(e);return{createNftPrimary:(e,a)=>n.createNftPrimary(e,a).then(e=>e(r,t)),getCurrenciesNFTCheckoutPrimary:(e,a,i)=>n.getCurrenciesNFTCheckoutPrimary(e,a,i).then(e=>e(r,t)),getNftPrimaryTransaction:(e,a)=>n.getNftPrimaryTransaction(e,a).then(e=>e(r,t)),getNftPrimaryTransactions:(e,a,i,s,o,c,f,d,l,u,h,p)=>n.getNftPrimaryTransactions(e,a,i,s,o,c,f,d,l,u,h,p).then(e=>e(r,t)),registerNftPrimarySalesContract:(e,a)=>n.registerNftPrimarySalesContract(e,a).then(e=>e(r,t))}},eA=class extends R{createNftPrimary(e,t){return ex(this.configuration).createNftPrimary(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}getCurrenciesNFTCheckoutPrimary(e={},t){return ex(this.configuration).getCurrenciesNFTCheckoutPrimary(e.provider,e.includeLimits,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransaction(e,t){return ex(this.configuration).getNftPrimaryTransaction(e.transactionId,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransactions(e={},t){return ex(this.configuration).getNftPrimaryTransactions(e.pageSize,e.cursor,e.orderBy,e.direction,e.transactionId,e.contractAddress,e.sellerWalletAddress,e.userWalletAddress,e.status,e.provider,e.mintId,t).then(e=>e(this.axios,this.basePath))}registerNftPrimarySalesContract(e,t){return ex(this.configuration).registerNftPrimarySalesContract(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}},e_=function(e){return{cancelOrderV3:async(t,r,n,a,i,s={})=>{P("cancelOrderV3","id",t),P("cancelOrderV3","cancelOrderRequest",r);let o=new URL("/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),B),c;e&&(c=e.baseOptions);let f={method:"DELETE",...c,...s},d={};null!=n&&(d["x-imx-eth-address"]=String(n)),null!=a&&(d["x-imx-eth-signature"]=String(a)),null!=i&&(d.Authorization=String(i)),d["Content-Type"]="application/json",O(o,{});let l=c&&c.headers?c.headers:{};return f.headers={...d,...l,...s.headers},f.data=j(r,f,e),{url:N(o),options:f}},createOrderV3:async(t,r,n,a,i={})=>{P("createOrderV3","createOrderRequest",t);let s=new URL("/v3/orders",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},getOrderV3:async(t,r,n,a,i={})=>{P("getOrderV3","id",t);let s=new URL("/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),B),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.include_fees=r),void 0!==n&&(f.auxiliary_fee_percentages=n),void 0!==a&&(f.auxiliary_fee_recipients=a),O(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:N(s),options:c}},getSignableCancelOrderV3:async(t,r={})=>{P("getSignableCancelOrderV3","getSignableCancelOrderRequest",t);let n=new URL("/v3/signable-cancel-order-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableOrder:async(t,r={})=>{P("getSignableOrder","getSignableOrderRequestV3",t);let n=new URL("/v3/signable-order-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},listOrdersV3:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,T,I,S,C,k,R={})=>{let M=new URL("/v3/orders",B),P;e&&(P=e.baseOptions);let j={method:"GET",...P,...R},U={};void 0!==t&&(U.page_size=t),void 0!==r&&(U.cursor=r),void 0!==n&&(U.order_by=n),void 0!==a&&(U.direction=a),void 0!==i&&(U.user=i),void 0!==s&&(U.status=s),void 0!==o&&(U.min_timestamp=o),void 0!==c&&(U.max_timestamp=c),void 0!==f&&(U.updated_min_timestamp=f),void 0!==d&&(U.updated_max_timestamp=d),void 0!==l&&(U.buy_token_type=l),void 0!==u&&(U.buy_token_id=u),void 0!==h&&(U.buy_asset_id=h),void 0!==p&&(U.buy_token_address=p),void 0!==b&&(U.buy_token_name=b),void 0!==g&&(U.buy_min_quantity=g),void 0!==m&&(U.buy_max_quantity=m),void 0!==y&&(U.buy_metadata=y),void 0!==v&&(U.sell_token_type=v),void 0!==w&&(U.sell_token_id=w),void 0!==x&&(U.sell_asset_id=x),void 0!==E&&(U.sell_token_address=E),void 0!==A&&(U.sell_token_name=A),void 0!==_&&(U.sell_min_quantity=_),void 0!==T&&(U.sell_max_quantity=T),void 0!==I&&(U.sell_metadata=I),void 0!==S&&(U.auxiliary_fee_percentages=S),void 0!==C&&(U.auxiliary_fee_recipients=C),void 0!==k&&(U.include_fees=k),O(M,U);let L=P&&P.headers?P.headers:{};return j.headers={...L,...R.headers},{url:N(M),options:j}}}},eT=function(e){let t=e_(e);return{cancelOrderV3:async(r,n,a,i,s,o)=>U(await t.cancelOrderV3(r,n,a,i,s,o),T.default,k,e),createOrderV3:async(r,n,a,i,s)=>U(await t.createOrderV3(r,n,a,i,s),T.default,k,e),getOrderV3:async(r,n,a,i,s)=>U(await t.getOrderV3(r,n,a,i,s),T.default,k,e),getSignableCancelOrderV3:async(r,n)=>U(await t.getSignableCancelOrderV3(r,n),T.default,k,e),getSignableOrder:async(r,n)=>U(await t.getSignableOrder(r,n),T.default,k,e),listOrdersV3:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,I,S,C,R,M,B,P)=>U(await t.listOrdersV3(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,I,S,C,R,M,B,P),T.default,k,e)}},eI=function(e,t,r){let n=eT(e);return{cancelOrderV3:(e,a,i,s,o,c)=>n.cancelOrderV3(e,a,i,s,o,c).then(e=>e(r,t)),createOrderV3:(e,a,i,s,o)=>n.createOrderV3(e,a,i,s,o).then(e=>e(r,t)),getOrderV3:(e,a,i,s,o)=>n.getOrderV3(e,a,i,s,o).then(e=>e(r,t)),getSignableCancelOrderV3:(e,a)=>n.getSignableCancelOrderV3(e,a).then(e=>e(r,t)),getSignableOrder:(e,a)=>n.getSignableOrder(e,a).then(e=>e(r,t)),listOrdersV3:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,T,I,S,C,k,R,M,B)=>n.listOrdersV3(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x,E,A,_,T,I,S,C,k,R,M,B).then(e=>e(r,t))}},eS=class extends R{cancelOrderV3(e,t){return eT(this.configuration).cancelOrderV3(e.id,e.cancelOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createOrderV3(e,t){return eT(this.configuration).createOrderV3(e.createOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getOrderV3(e,t){return eT(this.configuration).getOrderV3(e.id,e.includeFees,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}getSignableCancelOrderV3(e,t){return eT(this.configuration).getSignableCancelOrderV3(e.getSignableCancelOrderRequest,t).then(e=>e(this.axios,this.basePath))}getSignableOrder(e,t){return eT(this.configuration).getSignableOrder(e.getSignableOrderRequestV3,t).then(e=>e(this.axios,this.basePath))}listOrdersV3(e={},t){return eT(this.configuration).listOrdersV3(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.updatedMinTimestamp,e.updatedMaxTimestamp,e.buyTokenType,e.buyTokenId,e.buyAssetId,e.buyTokenAddress,e.buyTokenName,e.buyMinQuantity,e.buyMaxQuantity,e.buyMetadata,e.sellTokenType,e.sellTokenId,e.sellAssetId,e.sellTokenAddress,e.sellTokenName,e.sellMinQuantity,e.sellMaxQuantity,e.sellMetadata,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,e.includeFees,t).then(e=>e(this.axios,this.basePath))}},eC=function(e){return{getProject:async(t,r,n,a={})=>{P("getProject","id",t),P("getProject","iMXSignature",r),P("getProject","iMXTimestamp",n);let i=new URL("/v1/projects/{id}".replace("{id}",encodeURIComponent(String(t))),B),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};null!=r&&(c["IMX-Signature"]=String(r)),null!=n&&(c["IMX-Timestamp"]=String(n)),O(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},{url:N(i),options:o}}}},ek=function(e){let t=eC(e);return{getProject:async(r,n,a,i)=>U(await t.getProject(r,n,a,i),T.default,k,e)}},eR=function(e,t,r){let n=ek(e);return{getProject:(e,a,i,s)=>n.getProject(e,a,i,s).then(e=>e(r,t))}},eM=class extends R{getProject(e,t){return ek(this.configuration).getProject(e.id,e.iMXSignature,e.iMXTimestamp,t).then(e=>e(this.axios,this.basePath))}},eB=function(e){return{getToken:async(t,r={})=>{P("getToken","address",t);let n=new URL("/v1/tokens/{address}".replace("{address}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listTokens:async(t,r,n,a,i,s,o={})=>{let c=new URL("/v1/tokens",B),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};void 0!==t&&(l.page_size=t),void 0!==r&&(l.cursor=r),void 0!==n&&(l.order_by=n),void 0!==a&&(l.direction=a),void 0!==i&&(l.address=i),void 0!==s&&(l.symbols=s),O(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:N(c),options:d}}}},eP=function(e){let t=eB(e);return{getToken:async(r,n)=>U(await t.getToken(r,n),T.default,k,e),listTokens:async(r,n,a,i,s,o,c)=>U(await t.listTokens(r,n,a,i,s,o,c),T.default,k,e)}},eO=function(e,t,r){let n=eP(e);return{getToken:(e,a)=>n.getToken(e,a).then(e=>e(r,t)),listTokens:(e,a,i,s,o,c,f)=>n.listTokens(e,a,i,s,o,c,f).then(e=>e(r,t))}},ej=class extends R{getToken(e,t){return eP(this.configuration).getToken(e.address,t).then(e=>e(this.axios,this.basePath))}listTokens(e={},t){return eP(this.configuration).listTokens(e.pageSize,e.cursor,e.orderBy,e.direction,e.address,e.symbols,t).then(e=>e(this.axios,this.basePath))}},eN=function(e){return{createTradeV3:async(t,r,n,a,i={})=>{P("createTradeV3","createTradeRequest",t);let s=new URL("/v3/trades",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},getSignableTrade:async(t,r={})=>{P("getSignableTrade","getSignableTradeRequest",t);let n=new URL("/v3/signable-trade-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getTradeV3:async(t,r={})=>{P("getTradeV3","id",t);let n=new URL("/v3/trades/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listTradesV3:async(t,r,n,a,i,s,o,c,f,d,l,u={})=>{let h=new URL("/v3/trades",B),p;e&&(p=e.baseOptions);let b={method:"GET",...p,...u},g={};void 0!==t&&(g.party_a_token_type=t),void 0!==r&&(g.party_a_token_address=r),void 0!==n&&(g.party_b_token_type=n),void 0!==a&&(g.party_b_token_address=a),void 0!==i&&(g.party_b_token_id=i),void 0!==s&&(g.page_size=s),void 0!==o&&(g.cursor=o),void 0!==c&&(g.order_by=c),void 0!==f&&(g.direction=f),void 0!==d&&(g.min_timestamp=d),void 0!==l&&(g.max_timestamp=l),O(h,g);let m=p&&p.headers?p.headers:{};return b.headers={...m,...u.headers},{url:N(h),options:b}}}},eU=function(e){let t=eN(e);return{createTradeV3:async(r,n,a,i,s)=>U(await t.createTradeV3(r,n,a,i,s),T.default,k,e),getSignableTrade:async(r,n)=>U(await t.getSignableTrade(r,n),T.default,k,e),getTradeV3:async(r,n)=>U(await t.getTradeV3(r,n),T.default,k,e),listTradesV3:async(r,n,a,i,s,o,c,f,d,l,u,h)=>U(await t.listTradesV3(r,n,a,i,s,o,c,f,d,l,u,h),T.default,k,e)}},eL=function(e,t,r){let n=eU(e);return{createTradeV3:(e,a,i,s,o)=>n.createTradeV3(e,a,i,s,o).then(e=>e(r,t)),getSignableTrade:(e,a)=>n.getSignableTrade(e,a).then(e=>e(r,t)),getTradeV3:(e,a)=>n.getTradeV3(e,a).then(e=>e(r,t)),listTradesV3:(e,a,i,s,o,c,f,d,l,u,h,p)=>n.listTradesV3(e,a,i,s,o,c,f,d,l,u,h,p).then(e=>e(r,t))}},eD=class extends R{createTradeV3(e,t){return eU(this.configuration).createTradeV3(e.createTradeRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTrade(e,t){return eU(this.configuration).getSignableTrade(e.getSignableTradeRequest,t).then(e=>e(this.axios,this.basePath))}getTradeV3(e,t){return eU(this.configuration).getTradeV3(e.id,t).then(e=>e(this.axios,this.basePath))}listTradesV3(e={},t){return eU(this.configuration).listTradesV3(e.partyATokenType,e.partyATokenAddress,e.partyBTokenType,e.partyBTokenAddress,e.partyBTokenId,e.pageSize,e.cursor,e.orderBy,e.direction,e.minTimestamp,e.maxTimestamp,t).then(e=>e(this.axios,this.basePath))}},eF=function(e){return{createTransfer:async(t,r,n,a,i={})=>{P("createTransfer","createTransferRequestV2",t);let s=new URL("/v2/transfers",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},createTransferV1:async(t,r,n,a,i={})=>{P("createTransferV1","createTransferRequest",t);let s=new URL("/v1/transfers",B),o;e&&(o=e.baseOptions);let c={method:"POST",...o,...i},f={};null!=r&&(f["x-imx-eth-address"]=String(r)),null!=n&&(f["x-imx-eth-signature"]=String(n)),null!=a&&(f.Authorization=String(a)),f["Content-Type"]="application/json",O(s,{});let d=o&&o.headers?o.headers:{};return c.headers={...f,...d,...i.headers},c.data=j(t,c,e),{url:N(s),options:c}},getSignableTransfer:async(t,r={})=>{P("getSignableTransfer","getSignableTransferRequestV2",t);let n=new URL("/v2/signable-transfer-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableTransferV1:async(t,r={})=>{P("getSignableTransferV1","getSignableTransferRequest",t);let n=new URL("/v1/signable-transfer-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getTransfer:async(t,r={})=>{P("getTransfer","id",t);let n=new URL("/v1/transfers/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listTransfers:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y={})=>{let v=new URL("/v1/transfers",B),w;e&&(w=e.baseOptions);let x={method:"GET",...w,...y},E={};void 0!==t&&(E.page_size=t),void 0!==r&&(E.cursor=r),void 0!==n&&(E.order_by=n),void 0!==a&&(E.direction=a),void 0!==i&&(E.user=i),void 0!==s&&(E.receiver=s),void 0!==o&&(E.status=o),void 0!==c&&(E.min_timestamp=c),void 0!==f&&(E.max_timestamp=f),void 0!==d&&(E.token_type=d),void 0!==l&&(E.token_id=l),void 0!==u&&(E.asset_id=u),void 0!==h&&(E.token_address=h),void 0!==p&&(E.token_name=p),void 0!==b&&(E.min_quantity=b),void 0!==g&&(E.max_quantity=g),void 0!==m&&(E.metadata=m),O(v,E);let A=w&&w.headers?w.headers:{};return x.headers={...A,...y.headers},{url:N(v),options:x}}}},eH=function(e){let t=eF(e);return{createTransfer:async(r,n,a,i,s)=>U(await t.createTransfer(r,n,a,i,s),T.default,k,e),createTransferV1:async(r,n,a,i,s)=>U(await t.createTransferV1(r,n,a,i,s),T.default,k,e),getSignableTransfer:async(r,n)=>U(await t.getSignableTransfer(r,n),T.default,k,e),getSignableTransferV1:async(r,n)=>U(await t.getSignableTransferV1(r,n),T.default,k,e),getTransfer:async(r,n)=>U(await t.getTransfer(r,n),T.default,k,e),listTransfers:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v)=>U(await t.listTransfers(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v),T.default,k,e)}},eV=function(e,t,r){let n=eH(e);return{createTransfer:(e,a,i,s,o)=>n.createTransfer(e,a,i,s,o).then(e=>e(r,t)),createTransferV1:(e,a,i,s,o)=>n.createTransferV1(e,a,i,s,o).then(e=>e(r,t)),getSignableTransfer:(e,a)=>n.getSignableTransfer(e,a).then(e=>e(r,t)),getSignableTransferV1:(e,a)=>n.getSignableTransferV1(e,a).then(e=>e(r,t)),getTransfer:(e,a)=>n.getTransfer(e,a).then(e=>e(r,t)),listTransfers:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w)=>n.listTransfers(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w).then(e=>e(r,t))}},eq=class extends R{createTransfer(e,t){return eH(this.configuration).createTransfer(e.createTransferRequestV2,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createTransferV1(e,t){return eH(this.configuration).createTransferV1(e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTransfer(e,t){return eH(this.configuration).getSignableTransfer(e.getSignableTransferRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableTransferV1(e,t){return eH(this.configuration).getSignableTransferV1(e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getTransfer(e,t){return eH(this.configuration).getTransfer(e.id,t).then(e=>e(this.axios,this.basePath))}listTransfers(e={},t){return eH(this.configuration).listTransfers(e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.receiver,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}},ez=function(e){return{getSignableRegistration:async(t,r={})=>{P("getSignableRegistration","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableRegistrationOffchain:async(t,r={})=>{P("getSignableRegistrationOffchain","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration-offchain",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getUsers:async(t,r={})=>{P("getUsers","user",t);let n=new URL("/v1/users/{user}".replace("{user}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},registerPassportUser:async(t,r,n={})=>{P("registerPassportUser","authorization",t),P("registerPassportUser","registerPassportUserRequest",r);let a=new URL("/v1/passport/users",B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}},registerPassportUserV2:async(t,r,n={})=>{P("registerPassportUserV2","authorization",t),P("registerPassportUserV2","registerPassportUserRequest",r);let a=new URL("/v2/passport/users",B),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",O(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=j(r,s,e),{url:N(a),options:s}},registerUser:async(t,r={})=>{P("registerUser","registerUserRequest",t);let n=new URL("/v1/users",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}}}},eG=function(e){let t=ez(e);return{getSignableRegistration:async(r,n)=>U(await t.getSignableRegistration(r,n),T.default,k,e),getSignableRegistrationOffchain:async(r,n)=>U(await t.getSignableRegistrationOffchain(r,n),T.default,k,e),getUsers:async(r,n)=>U(await t.getUsers(r,n),T.default,k,e),registerPassportUser:async(r,n,a)=>U(await t.registerPassportUser(r,n,a),T.default,k,e),registerPassportUserV2:async(r,n,a)=>U(await t.registerPassportUserV2(r,n,a),T.default,k,e),registerUser:async(r,n)=>U(await t.registerUser(r,n),T.default,k,e)}},eK=function(e,t,r){let n=eG(e);return{getSignableRegistration:(e,a)=>n.getSignableRegistration(e,a).then(e=>e(r,t)),getSignableRegistrationOffchain:(e,a)=>n.getSignableRegistrationOffchain(e,a).then(e=>e(r,t)),getUsers:(e,a)=>n.getUsers(e,a).then(e=>e(r,t)),registerPassportUser:(e,a,i)=>n.registerPassportUser(e,a,i).then(e=>e(r,t)),registerPassportUserV2:(e,a,i)=>n.registerPassportUserV2(e,a,i).then(e=>e(r,t)),registerUser:(e,a)=>n.registerUser(e,a).then(e=>e(r,t))}},eW=class extends R{getSignableRegistration(e,t){return eG(this.configuration).getSignableRegistration(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getSignableRegistrationOffchain(e,t){return eG(this.configuration).getSignableRegistrationOffchain(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getUsers(e,t){return eG(this.configuration).getUsers(e.user,t).then(e=>e(this.axios,this.basePath))}registerPassportUser(e,t){return eG(this.configuration).registerPassportUser(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerPassportUserV2(e,t){return eG(this.configuration).registerPassportUserV2(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerUser(e,t){return eG(this.configuration).registerUser(e.registerUserRequest,t).then(e=>e(this.axios,this.basePath))}},e$=function(e){return{createWithdrawal:async(t,r,n,a={})=>{P("createWithdrawal","xImxEthAddress",t),P("createWithdrawal","xImxEthSignature",r),P("createWithdrawal","createWithdrawalRequest",n);let i=new URL("/v1/withdrawals",B),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",O(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=j(n,o,e),{url:N(i),options:o}},createWithdrawalV2:async(t,r,n,a={})=>{P("createWithdrawalV2","xImxEthAddress",t),P("createWithdrawalV2","xImxEthSignature",r),P("createWithdrawalV2","createWithdrawalRequestV2",n);let i=new URL("/v2/withdrawals",B),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};null!=t&&(c["x-imx-eth-address"]=String(t)),null!=r&&(c["x-imx-eth-signature"]=String(r)),c["Content-Type"]="application/json",O(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=j(n,o,e),{url:N(i),options:o}},getSignableWithdrawal:async(t,r={})=>{P("getSignableWithdrawal","getSignableWithdrawalRequest",t);let n=new URL("/v1/signable-withdrawal-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getSignableWithdrawalV2:async(t,r={})=>{P("getSignableWithdrawalV2","getSignableWithdrawalRequest",t);let n=new URL("/v2/signable-withdrawal-details",B),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=j(t,i,e),{url:N(n),options:i}},getWithdrawal:async(t,r={})=>{P("getWithdrawal","id",t);let n=new URL("/v1/withdrawals/{id}".replace("{id}",encodeURIComponent(String(t))),B),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r};O(n,{});let s=a&&a.headers?a.headers:{};return i.headers={...s,...r.headers},{url:N(n),options:i}},listWithdrawals:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v={})=>{let w=new URL("/v1/withdrawals",B),x;e&&(x=e.baseOptions);let E={method:"GET",...x,...v},A={};void 0!==t&&(A.withdrawn_to_wallet=t),void 0!==r&&(A.rollup_status=r),void 0!==n&&(A.page_size=n),void 0!==a&&(A.cursor=a),void 0!==i&&(A.order_by=i),void 0!==s&&(A.direction=s),void 0!==o&&(A.user=o),void 0!==c&&(A.status=c),void 0!==f&&(A.min_timestamp=f),void 0!==d&&(A.max_timestamp=d),void 0!==l&&(A.token_type=l),void 0!==u&&(A.token_id=u),void 0!==h&&(A.asset_id=h),void 0!==p&&(A.token_address=p),void 0!==b&&(A.token_name=b),void 0!==g&&(A.min_quantity=g),void 0!==m&&(A.max_quantity=m),void 0!==y&&(A.metadata=y),O(w,A);let _=x&&x.headers?x.headers:{};return E.headers={..._,...v.headers},{url:N(w),options:E}}}},eJ=function(e){let t=e$(e);return{createWithdrawal:async(r,n,a,i)=>U(await t.createWithdrawal(r,n,a,i),T.default,k,e),createWithdrawalV2:async(r,n,a,i)=>U(await t.createWithdrawalV2(r,n,a,i),T.default,k,e),getSignableWithdrawal:async(r,n)=>U(await t.getSignableWithdrawal(r,n),T.default,k,e),getSignableWithdrawalV2:async(r,n)=>U(await t.getSignableWithdrawalV2(r,n),T.default,k,e),getWithdrawal:async(r,n)=>U(await t.getWithdrawal(r,n),T.default,k,e),listWithdrawals:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w)=>U(await t.listWithdrawals(r,n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w),T.default,k,e)}},eQ=function(e,t,r){let n=eJ(e);return{createWithdrawal:(e,a,i,s)=>n.createWithdrawal(e,a,i,s).then(e=>e(r,t)),createWithdrawalV2:(e,a,i,s)=>n.createWithdrawalV2(e,a,i,s).then(e=>e(r,t)),getSignableWithdrawal:(e,a)=>n.getSignableWithdrawal(e,a).then(e=>e(r,t)),getSignableWithdrawalV2:(e,a)=>n.getSignableWithdrawalV2(e,a).then(e=>e(r,t)),getWithdrawal:(e,a)=>n.getWithdrawal(e,a).then(e=>e(r,t)),listWithdrawals:(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x)=>n.listWithdrawals(e,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y,v,w,x).then(e=>e(r,t))}},eZ=class extends R{createWithdrawal(e,t){return eJ(this.configuration).createWithdrawal(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}createWithdrawalV2(e,t){return eJ(this.configuration).createWithdrawalV2(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawal(e,t){return eJ(this.configuration).getSignableWithdrawal(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawalV2(e,t){return eJ(this.configuration).getSignableWithdrawalV2(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getWithdrawal(e,t){return eJ(this.configuration).getWithdrawal(e.id,t).then(e=>e(this.axios,this.basePath))}listWithdrawals(e={},t){return eJ(this.configuration).listWithdrawals(e.withdrawnToWallet,e.rollupStatus,e.pageSize,e.cursor,e.orderBy,e.direction,e.user,e.status,e.minTimestamp,e.maxTimestamp,e.tokenType,e.tokenId,e.assetId,e.tokenAddress,e.tokenName,e.minQuantity,e.maxQuantity,e.metadata,t).then(e=>e(this.axios,this.basePath))}},eX=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}},eY={Moonpay:"moonpay",Layerswap:"layerswap"},e0={Onramp:"onramp",Offramp:"offramp"},e1={Starkex:"starkex",Zkevm:"zkevm"},e6={Eth:"ETH",Erc20:"ERC20",Erc721:"ERC721"},e2={Eth:"ETH",Erc20:"ERC20"},e5={Queued:"queued",InProgress:"in_progress",Completed:"completed"},e8={Queued:"queued",InProgress:"in_progress",Completed:"completed"},e3={Enum:"enum",Text:"text",Boolean:"boolean",Continuous:"continuous",Discrete:"discrete"},e4={};S(e4,{APIError400AllOfCodeEnum:()=>rh,APIError401AllOfCodeEnum:()=>rp,APIError403AllOfCodeEnum:()=>rb,APIError404AllOfCodeEnum:()=>rg,APIError409AllOfCodeEnum:()=>rm,APIError429AllOfCodeEnum:()=>ry,APIError500AllOfCodeEnum:()=>rv,APIError501AllOfCodeEnum:()=>rw,ActiveOrderStatusNameEnum:()=>rx,ActivitiesApi:()=>tu,ActivitiesApiAxiosParamCreator:()=>tf,ActivitiesApiFactory:()=>tl,ActivitiesApiFp:()=>td,ActivityType:()=>rE,AssetVerificationStatus:()=>rA,CancelledOrderStatusCancellationTypeEnum:()=>rT,CancelledOrderStatusNameEnum:()=>r_,ChainsApi:()=>tg,ChainsApiAxiosParamCreator:()=>th,ChainsApiFactory:()=>tb,ChainsApiFp:()=>tp,CollectionContractType:()=>rI,CollectionsApi:()=>tw,CollectionsApiAxiosParamCreator:()=>tm,CollectionsApiFactory:()=>tv,CollectionsApiFp:()=>ty,Configuration:()=>ru,CraftingApi:()=>t_,CraftingApiAxiosParamCreator:()=>tx,CraftingApiFactory:()=>tA,CraftingApiFp:()=>tE,ERC1155CollectionItemTypeEnum:()=>rS,ERC1155ItemTypeEnum:()=>rC,ERC20ApproveMetadataTransactionTypeEnum:()=>rk,ERC20ItemTypeEnum:()=>rR,ERC20TransferFromMetadataTransactionTypeEnum:()=>rM,ERC20TransferMetadataTransactionTypeEnum:()=>rB,ERC721ApproveMetadataTransactionTypeEnum:()=>rP,ERC721CollectionItemTypeEnum:()=>rO,ERC721ItemTypeEnum:()=>rj,ERC721SafeTransferFromBatchMetadataTransactionTypeEnum:()=>rN,ERC721TransferFromMetadataTransactionTypeEnum:()=>rU,ExpiredOrderStatusNameEnum:()=>rL,FailedOrderCancellationReasonCodeEnum:()=>rD,FeeTypeEnum:()=>rF,FilledOrderStatusNameEnum:()=>rH,GetTransactionByIDChainTypeEnum:()=>tk,GuardianApi:()=>tC,GuardianApiAxiosParamCreator:()=>tT,GuardianApiFactory:()=>tS,GuardianApiFp:()=>tI,ImmutableVerificationStatusEnum:()=>rV,InactiveOrderStatusNameEnum:()=>rq,ListBidsSortByEnum:()=>tZ,ListBidsSortDirectionEnum:()=>tX,ListCollectionBidsSortByEnum:()=>tY,ListCollectionBidsSortDirectionEnum:()=>t0,ListListingsBuyItemTypeEnum:()=>t1,ListListingsSortByEnum:()=>t6,ListListingsSortDirectionEnum:()=>t2,ListTradesSortByEnum:()=>t5,ListTradesSortDirectionEnum:()=>t8,MarketPriceERC20TokenTypeEnum:()=>rz,MarketPriceFeesTypeEnum:()=>rG,MarketPriceNativeTokenTypeEnum:()=>rK,MarketplaceContractType:()=>rW,MessageEvaluationResponseConfirmationMethodEnum:()=>r$,MetadataApi:()=>tP,MetadataApiAxiosParamCreator:()=>tR,MetadataApiFactory:()=>tB,MetadataApiFp:()=>tM,MetadataSearchApi:()=>tU,MetadataSearchApiAxiosParamCreator:()=>tO,MetadataSearchApiFactory:()=>tN,MetadataSearchApiFp:()=>tj,MintRequestStatus:()=>rJ,NFTContractType:()=>rQ,NFTMetadataAttributeDisplayTypeEnum:()=>rZ,NFTSetApprovalForAllMetadataTransactionTypeEnum:()=>rX,NativeItemTypeEnum:()=>rY,NftOwnersApi:()=>tV,NftOwnersApiAxiosParamCreator:()=>tD,NftOwnersApiFactory:()=>tH,NftOwnersApiFp:()=>tF,NftsApi:()=>tK,NftsApiAxiosParamCreator:()=>tq,NftsApiFactory:()=>tG,NftsApiFp:()=>tz,OperatorAllowlistStatus:()=>r0,OrderStatusName:()=>r6,OrderTypeEnum:()=>r1,OrdersApi:()=>tQ,OrdersApiAxiosParamCreator:()=>tW,OrdersApiFactory:()=>tJ,OrdersApiFp:()=>t$,OrganisationTier:()=>r2,PassportApi:()=>t7,PassportApiAxiosParamCreator:()=>t3,PassportApiFactory:()=>t9,PassportApiFp:()=>t4,PassportProfileApi:()=>rn,PassportProfileApiAxiosParamCreator:()=>re,PassportProfileApiFactory:()=>rr,PassportProfileApiFp:()=>rt,PendingOrderStatusNameEnum:()=>r5,PricingApi:()=>ro,PricingApiAxiosParamCreator:()=>ra,PricingApiFactory:()=>rs,PricingApiFp:()=>ri,ProtocolDataOrderTypeEnum:()=>r8,SaleFeeTypeEnum:()=>r3,SeaportCreateListingMetadataTypedDataTypeEnum:()=>r4,SeaportERC1155CollectionItemTypeEnum:()=>r9,SeaportERC1155ItemTypeEnum:()=>r7,SeaportERC20ItemTypeEnum:()=>ne,SeaportERC721CollectionItemTypeEnum:()=>nt,SeaportERC721ItemTypeEnum:()=>nr,SeaportFeeTypeEnum:()=>nn,SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum:()=>na,SeaportNativeItemTypeEnum:()=>ni,SearchStacksSortByEnum:()=>tL,Severity:()=>ns,StarkExTransactionEvaluationRequestChainTypeEnum:()=>no,TokenContractType:()=>nc,TokensApi:()=>rl,TokensApiAxiosParamCreator:()=>rc,TokensApiFactory:()=>rd,TokensApiFp:()=>rf,TransactionApprovalRequestChainTypeEnum:()=>nf,TransactionEvaluationResponseConfirmationMethodEnum:()=>nd,UnknownMetadataTransactionTypeEnum:()=>nl,UnknownTypedDataMetadataTypedDataTypeEnum:()=>nu,ValidationStatus:()=>nh,VerificationRequestContractType:()=>np,VerificationRequestStatus:()=>nb,ZkEvmTransactionEvaluationRequestChainTypeEnum:()=>ng});var e9="https://api.sandbox.immutable.com".replace(/\/+$/,""),e7=class{constructor(e,t=e9,r=T.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}configuration},te=class extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}},tt="https://example.com",tr=function(e,t,r){if(null==r)throw new te(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},tn=async function(e,t,r){if(r&&r.apiKey){let n="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=n}},ta=async function(e,t){if(t&&t.accessToken){let r="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}},ti=function(e,...t){let r=new URLSearchParams(e.search);(function e(t,r,n=""){null!=r&&("object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,n)):Object.keys(r).forEach(a=>e(t,r[a],`${n}${""!==n?".":""}${a}`)):t.has(n)?t.append(n,r):t.set(n,r))})(r,t),e.search=r.toString()},ts=function(e,t,r){let n="string"!=typeof e;return(n&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):n)?JSON.stringify(void 0!==e?e:{}):e||""},to=function(e){return e.pathname+e.search+e.hash},tc=function(e,t,r,n){return(a=t,i=r)=>{let s={...e.options,url:(n?.basePath||a.defaults.baseURL||i)+e.url};return a.request(s)}},tf=function(e){return{getActivity:async(t,r,n={})=>{tr("getActivity","chainName",t),tr("getActivity","activityId",r);let a=new URL("/v1/chains/{chain_name}/activities/{activity_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{activity_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listActivities:async(t,r,n,a,i,s,o,c,f={})=>{tr("listActivities","chainName",t);let d=new URL("/v1/chains/{chain_name}/activities".replace("{chain_name}",encodeURIComponent(String(t))),tt),l;e&&(l=e.baseOptions);let u={method:"GET",...l,...f},h={};void 0!==r&&(h.contract_address=r),void 0!==n&&(h.token_id=n),void 0!==a&&(h.account_address=a),void 0!==i&&(h.activity_type=i),void 0!==s&&(h.transaction_hash=s),void 0!==o&&(h.page_cursor=o),void 0!==c&&(h.page_size=c),ti(d,h);let p=l&&l.headers?l.headers:{};return u.headers={...p,...f.headers},{url:to(d),options:u}},listActivityHistory:async(t,r,n,a,i,s,o,c={})=>{tr("listActivityHistory","chainName",t),tr("listActivityHistory","fromUpdatedAt",r);let f=new URL("/v1/chains/{chain_name}/activity-history".replace("{chain_name}",encodeURIComponent(String(t))),tt),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};void 0!==r&&(u.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(u.to_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(u.contract_address=a),void 0!==i&&(u.activity_type=i),void 0!==s&&(u.page_cursor=s),void 0!==o&&(u.page_size=o),ti(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:to(f),options:l}}}},td=function(e){let t=tf(e);return{getActivity:async(r,n,a)=>tc(await t.getActivity(r,n,a),T.default,e9,e),listActivities:async(r,n,a,i,s,o,c,f,d)=>tc(await t.listActivities(r,n,a,i,s,o,c,f,d),T.default,e9,e),listActivityHistory:async(r,n,a,i,s,o,c,f)=>tc(await t.listActivityHistory(r,n,a,i,s,o,c,f),T.default,e9,e)}},tl=function(e,t,r){let n=td(e);return{getActivity:(e,a)=>n.getActivity(e.chainName,e.activityId,a).then(e=>e(r,t)),listActivities:(e,a)=>n.listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listActivityHistory:(e,a)=>n.listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tu=class extends e7{getActivity(e,t){return td(this.configuration).getActivity(e.chainName,e.activityId,t).then(e=>e(this.axios,this.basePath))}listActivities(e,t){return td(this.configuration).listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listActivityHistory(e,t){return td(this.configuration).listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},th=function(e){return{listChains:async(t,r,n={})=>{let a=new URL("/v1/chains",tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};void 0!==t&&(o.page_cursor=t),void 0!==r&&(o.page_size=r),ti(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:to(a),options:s}}}},tp=function(e){let t=th(e);return{listChains:async(r,n,a)=>tc(await t.listChains(r,n,a),T.default,e9,e)}},tb=function(e,t,r){let n=tp(e);return{listChains:(e={},a)=>n.listChains(e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tg=class extends e7{listChains(e={},t){return tp(this.configuration).listChains(e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},tm=function(e){return{getCollection:async(t,r,n={})=>{tr("getCollection","contractAddress",t),tr("getCollection","chainName",r);let a=new URL("/v1/chains/{chain_name}/collections/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listCollections:async(t,r,n,a,i,s,o={})=>{tr("listCollections","chainName",t);let c=new URL("/v1/chains/{chain_name}/collections".replace("{chain_name}",encodeURIComponent(String(t))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};r&&(l.contract_address=r),n&&(l.verification_status=n),void 0!==a&&(l.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}},listCollectionsByNFTOwner:async(t,r,n,a,i={})=>{tr("listCollectionsByNFTOwner","accountAddress",t),tr("listCollectionsByNFTOwner","chainName",r);let s=new URL("/v1/chains/{chain_name}/accounts/{account_address}/collections".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},refreshCollectionMetadata:async(t,r,n,a={})=>{tr("refreshCollectionMetadata","contractAddress",t),tr("refreshCollectionMetadata","chainName",r),tr("refreshCollectionMetadata","refreshCollectionMetadataRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await ta(c,e),await tn(c,"x-immutable-api-key",e),await ta(c,e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}}}},ty=function(e){let t=tm(e);return{getCollection:async(r,n,a)=>tc(await t.getCollection(r,n,a),T.default,e9,e),listCollections:async(r,n,a,i,s,o,c)=>tc(await t.listCollections(r,n,a,i,s,o,c),T.default,e9,e),listCollectionsByNFTOwner:async(r,n,a,i,s)=>tc(await t.listCollectionsByNFTOwner(r,n,a,i,s),T.default,e9,e),refreshCollectionMetadata:async(r,n,a,i)=>tc(await t.refreshCollectionMetadata(r,n,a,i),T.default,e9,e)}},tv=function(e,t,r){let n=ty(e);return{getCollection:(e,a)=>n.getCollection(e.contractAddress,e.chainName,a).then(e=>e(r,t)),listCollections:(e,a)=>n.listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listCollectionsByNFTOwner:(e,a)=>n.listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),refreshCollectionMetadata:(e,a)=>n.refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,a).then(e=>e(r,t))}},tw=class extends e7{getCollection(e,t){return ty(this.configuration).getCollection(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listCollections(e,t){return ty(this.configuration).listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listCollectionsByNFTOwner(e,t){return ty(this.configuration).listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshCollectionMetadata(e,t){return ty(this.configuration).refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}},tx=function(e){return{signCraftingPayload:async(t,r,n={})=>{tr("signCraftingPayload","chainName",t),tr("signCraftingPayload","signCraftingRequest",r);let a=new URL("/v1/chains/{chain_name}/crafting/sign".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await tn(o,"x-immutable-api-key",e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}}}},tE=function(e){let t=tx(e);return{signCraftingPayload:async(r,n,a)=>tc(await t.signCraftingPayload(r,n,a),T.default,e9,e)}},tA=function(e,t,r){let n=tE(e);return{signCraftingPayload:(e,a)=>n.signCraftingPayload(e.chainName,e.signCraftingRequest,a).then(e=>e(r,t))}},t_=class extends e7{signCraftingPayload(e,t){return tE(this.configuration).signCraftingPayload(e.chainName,e.signCraftingRequest,t).then(e=>e(this.axios,this.basePath))}},tT=function(e){return{approvePendingERC191Message:async(t,r={})=>{tr("approvePendingERC191Message","messageID",t);let n=new URL("/guardian/v1/erc191-messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},approvePendingMessage:async(t,r={})=>{tr("approvePendingMessage","messageID",t);let n=new URL("/guardian/v1/messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},approvePendingTransaction:async(t,r,n={})=>{tr("approvePendingTransaction","payloadHash",t),tr("approvePendingTransaction","transactionApprovalRequest",r);let a=new URL("/guardian/v1/transactions/{payloadHash}/approve".replace("{payloadHash}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},evaluateErc191Message:async(t,r={})=>{tr("evaluateErc191Message","eRC191MessageEvaluationRequest",t);let n=new URL("/guardian/v1/erc191-messages/evaluate",tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),s["Content-Type"]="application/json",ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=ts(t,i,e),{url:to(n),options:i}},evaluateMessage:async(t,r={})=>{tr("evaluateMessage","messageEvaluationRequest",t);let n=new URL("/guardian/v1/messages/evaluate",tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),s["Content-Type"]="application/json",ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=ts(t,i,e),{url:to(n),options:i}},evaluateTransaction:async(t,r,n={})=>{tr("evaluateTransaction","id",t),tr("evaluateTransaction","transactionEvaluationRequest",r);let a=new URL("/guardian/v1/transactions/{id}/evaluate".replace("{id}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getErc191MessageByID:async(t,r={})=>{tr("getErc191MessageByID","messageID",t);let n=new URL("/guardian/v1/erc191-messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},getMessageByID:async(t,r,n={})=>{tr("getMessageByID","messageID",t);let a=new URL("/guardian/v1/messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={},c={};await ta(o,e),void 0!==r&&(c.includeSimulation=r),ti(a,c);let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...n.headers},{url:to(a),options:s}},getTransactionByID:async(t,r,n,a,i={})=>{tr("getTransactionByID","transactionID",t),tr("getTransactionByID","chainType",r);let s=new URL("/guardian/v1/transactions/{transactionID}".replace("{transactionID}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={},d={};await ta(f,e),void 0!==r&&(d.chainType=r),void 0!==n&&(d.chainID=n),void 0!==a&&(d.includeSimulation=a),ti(s,d);let l=o&&o.headers?o.headers:{};return c.headers={...f,...l,...i.headers},{url:to(s),options:c}}}},tI=function(e){let t=tT(e);return{approvePendingERC191Message:async(r,n)=>tc(await t.approvePendingERC191Message(r,n),T.default,e9,e),approvePendingMessage:async(r,n)=>tc(await t.approvePendingMessage(r,n),T.default,e9,e),approvePendingTransaction:async(r,n,a)=>tc(await t.approvePendingTransaction(r,n,a),T.default,e9,e),evaluateErc191Message:async(r,n)=>tc(await t.evaluateErc191Message(r,n),T.default,e9,e),evaluateMessage:async(r,n)=>tc(await t.evaluateMessage(r,n),T.default,e9,e),evaluateTransaction:async(r,n,a)=>tc(await t.evaluateTransaction(r,n,a),T.default,e9,e),getErc191MessageByID:async(r,n)=>tc(await t.getErc191MessageByID(r,n),T.default,e9,e),getMessageByID:async(r,n,a)=>tc(await t.getMessageByID(r,n,a),T.default,e9,e),getTransactionByID:async(r,n,a,i,s)=>tc(await t.getTransactionByID(r,n,a,i,s),T.default,e9,e)}},tS=function(e,t,r){let n=tI(e);return{approvePendingERC191Message:(e,a)=>n.approvePendingERC191Message(e.messageID,a).then(e=>e(r,t)),approvePendingMessage:(e,a)=>n.approvePendingMessage(e.messageID,a).then(e=>e(r,t)),approvePendingTransaction:(e,a)=>n.approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,a).then(e=>e(r,t)),evaluateErc191Message:(e,a)=>n.evaluateErc191Message(e.eRC191MessageEvaluationRequest,a).then(e=>e(r,t)),evaluateMessage:(e,a)=>n.evaluateMessage(e.messageEvaluationRequest,a).then(e=>e(r,t)),evaluateTransaction:(e,a)=>n.evaluateTransaction(e.id,e.transactionEvaluationRequest,a).then(e=>e(r,t)),getErc191MessageByID:(e,a)=>n.getErc191MessageByID(e.messageID,a).then(e=>e(r,t)),getMessageByID:(e,a)=>n.getMessageByID(e.messageID,e.includeSimulation,a).then(e=>e(r,t)),getTransactionByID:(e,a)=>n.getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,a).then(e=>e(r,t))}},tC=class extends e7{approvePendingERC191Message(e,t){return tI(this.configuration).approvePendingERC191Message(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingMessage(e,t){return tI(this.configuration).approvePendingMessage(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingTransaction(e,t){return tI(this.configuration).approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,t).then(e=>e(this.axios,this.basePath))}evaluateErc191Message(e,t){return tI(this.configuration).evaluateErc191Message(e.eRC191MessageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateMessage(e,t){return tI(this.configuration).evaluateMessage(e.messageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateTransaction(e,t){return tI(this.configuration).evaluateTransaction(e.id,e.transactionEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}getErc191MessageByID(e,t){return tI(this.configuration).getErc191MessageByID(e.messageID,t).then(e=>e(this.axios,this.basePath))}getMessageByID(e,t){return tI(this.configuration).getMessageByID(e.messageID,e.includeSimulation,t).then(e=>e(this.axios,this.basePath))}getTransactionByID(e,t){return tI(this.configuration).getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,t).then(e=>e(this.axios,this.basePath))}},tk={Starkex:"starkex",Evm:"evm"},tR=function(e){return{getMetadata:async(t,r,n,a={})=>{tr("getMetadata","chainName",t),tr("getMetadata","contractAddress",r),tr("getMetadata","metadataId",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/metadata/{metadata_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))).replace("{metadata_id}",encodeURIComponent(String(n))),tt),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a};ti(i,{});let c=s&&s.headers?s.headers:{};return o.headers={...c,...a.headers},{url:to(i),options:o}},listMetadata:async(t,r,n,a,i,s={})=>{tr("listMetadata","chainName",t),tr("listMetadata","contractAddress",r);let o=new URL("/v1/chains/{chain_name}/collections/{contract_address}/metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};void 0!==n&&(d.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(d.page_cursor=a),void 0!==i&&(d.page_size=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}},listMetadataForChain:async(t,r,n,a,i={})=>{tr("listMetadataForChain","chainName",t);let s=new URL("/v1/chains/{chain_name}/metadata".replace("{chain_name}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},listStacks:async(t,r,n={})=>{tr("listStacks","chainName",t),tr("listStacks","stackId",r);let a=new URL("/v1/chains/{chain_name}/stacks".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};r&&(o.stack_id=r),ti(a,o);let c=i&&i.headers?i.headers:{};return s.headers={...c,...n.headers},{url:to(a),options:s}},refreshMetadataByID:async(t,r,n,a={})=>{tr("refreshMetadataByID","chainName",t),tr("refreshMetadataByID","contractAddress",r),tr("refreshMetadataByID","refreshMetadataByIDRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await tn(c,"x-immutable-api-key",e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}},refreshNFTMetadataByTokenID:async(t,r,n,a={})=>{tr("refreshNFTMetadataByTokenID","contractAddress",t),tr("refreshNFTMetadataByTokenID","chainName",r),tr("refreshNFTMetadataByTokenID","refreshNFTMetadataByTokenIDRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await tn(c,"x-immutable-api-key",e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}}}},tM=function(e){let t=tR(e);return{getMetadata:async(r,n,a,i)=>tc(await t.getMetadata(r,n,a,i),T.default,e9,e),listMetadata:async(r,n,a,i,s,o)=>tc(await t.listMetadata(r,n,a,i,s,o),T.default,e9,e),listMetadataForChain:async(r,n,a,i,s)=>tc(await t.listMetadataForChain(r,n,a,i,s),T.default,e9,e),listStacks:async(r,n,a)=>tc(await t.listStacks(r,n,a),T.default,e9,e),refreshMetadataByID:async(r,n,a,i)=>tc(await t.refreshMetadataByID(r,n,a,i),T.default,e9,e),refreshNFTMetadataByTokenID:async(r,n,a,i)=>tc(await t.refreshNFTMetadataByTokenID(r,n,a,i),T.default,e9,e)}},tB=function(e,t,r){let n=tM(e);return{getMetadata:(e,a)=>n.getMetadata(e.chainName,e.contractAddress,e.metadataId,a).then(e=>e(r,t)),listMetadata:(e,a)=>n.listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listMetadataForChain:(e,a)=>n.listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listStacks:(e,a)=>n.listStacks(e.chainName,e.stackId,a).then(e=>e(r,t)),refreshMetadataByID:(e,a)=>n.refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,a).then(e=>e(r,t)),refreshNFTMetadataByTokenID:(e,a)=>n.refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,a).then(e=>e(r,t))}},tP=class extends e7{getMetadata(e,t){return tM(this.configuration).getMetadata(e.chainName,e.contractAddress,e.metadataId,t).then(e=>e(this.axios,this.basePath))}listMetadata(e,t){return tM(this.configuration).listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMetadataForChain(e,t){return tM(this.configuration).listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listStacks(e,t){return tM(this.configuration).listStacks(e.chainName,e.stackId,t).then(e=>e(this.axios,this.basePath))}refreshMetadataByID(e,t){return tM(this.configuration).refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,t).then(e=>e(this.axios,this.basePath))}refreshNFTMetadataByTokenID(e,t){return tM(this.configuration).refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,t).then(e=>e(this.axios,this.basePath))}},tO=function(e){return{listFilters:async(t,r,n={})=>{tr("listFilters","chainName",t),tr("listFilters","contractAddress",r);let a=new URL("/v1/chains/{chain_name}/search/filters/{contract_address}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},searchNFTs:async(t,r,n,a,i,s,o,c={})=>{tr("searchNFTs","chainName",t),tr("searchNFTs","contractAddress",r);let f=new URL("/v1/chains/{chain_name}/search/nfts".replace("{chain_name}",encodeURIComponent(String(t))),tt),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};r&&(u.contract_address=r),void 0!==n&&(u.account_address=n),a&&(u.stack_id=a),void 0!==i&&(u.only_include_owner_listings=i),void 0!==s&&(u.page_size=s),void 0!==o&&(u.page_cursor=o),ti(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:to(f),options:l}},searchStacks:async(t,r,n,a,i,s,o,c,f,d,l,u={})=>{tr("searchStacks","chainName",t),tr("searchStacks","contractAddress",r);let h=new URL("/v1/chains/{chain_name}/search/stacks".replace("{chain_name}",encodeURIComponent(String(t))),tt),p;e&&(p=e.baseOptions);let b={method:"GET",...p,...u},g={};r&&(g.contract_address=r),void 0!==n&&(g.account_address=n),void 0!==a&&(g.only_include_owner_listings=a),void 0!==i&&(g.only_if_has_active_listings=i),void 0!==s&&(g.traits=s),void 0!==o&&(g.keyword=o),void 0!==c&&(g.payment_token=c),void 0!==f&&(g.sort_by=f),void 0!==d&&(g.page_size=d),void 0!==l&&(g.page_cursor=l),ti(h,g);let m=p&&p.headers?p.headers:{};return b.headers={...m,...u.headers},{url:to(h),options:b}}}},tj=function(e){let t=tO(e);return{listFilters:async(r,n,a)=>tc(await t.listFilters(r,n,a),T.default,e9,e),searchNFTs:async(r,n,a,i,s,o,c,f)=>tc(await t.searchNFTs(r,n,a,i,s,o,c,f),T.default,e9,e),searchStacks:async(r,n,a,i,s,o,c,f,d,l,u,h)=>tc(await t.searchStacks(r,n,a,i,s,o,c,f,d,l,u,h),T.default,e9,e)}},tN=function(e,t,r){let n=tj(e);return{listFilters:(e,a)=>n.listFilters(e.chainName,e.contractAddress,a).then(e=>e(r,t)),searchNFTs:(e,a)=>n.searchNFTs(e.chainName,e.contractAddress,e.accountAddress,e.stackId,e.onlyIncludeOwnerListings,e.pageSize,e.pageCursor,a).then(e=>e(r,t)),searchStacks:(e,a)=>n.searchStacks(e.chainName,e.contractAddress,e.accountAddress,e.onlyIncludeOwnerListings,e.onlyIfHasActiveListings,e.traits,e.keyword,e.paymentToken,e.sortBy,e.pageSize,e.pageCursor,a).then(e=>e(r,t))}},tU=class extends e7{listFilters(e,t){return tj(this.configuration).listFilters(e.chainName,e.contractAddress,t).then(e=>e(this.axios,this.basePath))}searchNFTs(e,t){return tj(this.configuration).searchNFTs(e.chainName,e.contractAddress,e.accountAddress,e.stackId,e.onlyIncludeOwnerListings,e.pageSize,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}searchStacks(e,t){return tj(this.configuration).searchStacks(e.chainName,e.contractAddress,e.accountAddress,e.onlyIncludeOwnerListings,e.onlyIfHasActiveListings,e.traits,e.keyword,e.paymentToken,e.sortBy,e.pageSize,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}},tL={CheapestFirst:"cheapest_first"},tD=function(e){return{listAllNFTOwners:async(t,r,n,a,i={})=>{tr("listAllNFTOwners","chainName",t);let s=new URL("/v1/chains/{chain_name}/nft-owners".replace("{chain_name}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},listNFTOwners:async(t,r,n,a,i,s={})=>{tr("listNFTOwners","contractAddress",t),tr("listNFTOwners","tokenId",r),tr("listNFTOwners","chainName",n);let o=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};void 0!==a&&(d.page_cursor=a),void 0!==i&&(d.page_size=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}},listOwnersByContractAddress:async(t,r,n,a,i,s,o={})=>{tr("listOwnersByContractAddress","contractAddress",t),tr("listOwnersByContractAddress","chainName",r);let c=new URL("/v1/chains/{chain_name}/collections/{contract_address}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};n&&(l.account_address=n),void 0!==a&&(l.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}}}},tF=function(e){let t=tD(e);return{listAllNFTOwners:async(r,n,a,i,s)=>tc(await t.listAllNFTOwners(r,n,a,i,s),T.default,e9,e),listNFTOwners:async(r,n,a,i,s,o)=>tc(await t.listNFTOwners(r,n,a,i,s,o),T.default,e9,e),listOwnersByContractAddress:async(r,n,a,i,s,o,c)=>tc(await t.listOwnersByContractAddress(r,n,a,i,s,o,c),T.default,e9,e)}},tH=function(e,t,r){let n=tF(e);return{listAllNFTOwners:(e,a)=>n.listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listNFTOwners:(e,a)=>n.listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listOwnersByContractAddress:(e,a)=>n.listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tV=class extends e7{listAllNFTOwners(e,t){return tF(this.configuration).listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTOwners(e,t){return tF(this.configuration).listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listOwnersByContractAddress(e,t){return tF(this.configuration).listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},tq=function(e){return{createMintRequest:async(t,r,n,a={})=>{tr("createMintRequest","contractAddress",t),tr("createMintRequest","chainName",r),tr("createMintRequest","createMintRequestRequest",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),s;e&&(s=e.baseOptions);let o={method:"POST",...s,...a},c={};await tn(c,"x-immutable-api-key",e),c["Content-Type"]="application/json",ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},o.data=ts(n,o,e),{url:to(i),options:o}},getMintRequest:async(t,r,n,a={})=>{tr("getMintRequest","contractAddress",t),tr("getMintRequest","chainName",r),tr("getMintRequest","referenceId",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests/{reference_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))).replace("{reference_id}",encodeURIComponent(String(n))),tt),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a},c={};await tn(c,"x-immutable-api-key",e),ti(i,{});let f=s&&s.headers?s.headers:{};return o.headers={...c,...f,...a.headers},{url:to(i),options:o}},getNFT:async(t,r,n,a={})=>{tr("getNFT","contractAddress",t),tr("getNFT","tokenId",r),tr("getNFT","chainName",n);let i=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/{token_id}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))).replace("{chain_name}",encodeURIComponent(String(n))),tt),s;e&&(s=e.baseOptions);let o={method:"GET",...s,...a};ti(i,{});let c=s&&s.headers?s.headers:{};return o.headers={...c,...a.headers},{url:to(i),options:o}},listAllNFTs:async(t,r,n,a,i={})=>{tr("listAllNFTs","chainName",t);let s=new URL("/v1/chains/{chain_name}/nfts".replace("{chain_name}",encodeURIComponent(String(t))),tt),o;e&&(o=e.baseOptions);let c={method:"GET",...o,...i},f={};void 0!==r&&(f.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==n&&(f.page_cursor=n),void 0!==a&&(f.page_size=a),ti(s,f);let d=o&&o.headers?o.headers:{};return c.headers={...d,...i.headers},{url:to(s),options:c}},listMintRequests:async(t,r,n,a,i,s={})=>{tr("listMintRequests","contractAddress",t),tr("listMintRequests","chainName",r);let o=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={},l={};await tn(d,"x-immutable-api-key",e),void 0!==n&&(l.page_cursor=n),void 0!==a&&(l.page_size=a),void 0!==i&&(l.status=i),ti(o,l);let u=c&&c.headers?c.headers:{};return f.headers={...d,...u,...s.headers},{url:to(o),options:f}},listNFTs:async(t,r,n,a,i,s,o={})=>{tr("listNFTs","contractAddress",t),tr("listNFTs","chainName",r);let c=new URL("/v1/chains/{chain_name}/collections/{contract_address}/nfts".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};n&&(l.token_id=n),void 0!==a&&(l.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}},listNFTsByAccountAddress:async(t,r,n,a,i,s,o,c={})=>{tr("listNFTsByAccountAddress","accountAddress",t),tr("listNFTsByAccountAddress","chainName",r);let f=new URL("/v1/chains/{chain_name}/accounts/{account_address}/nfts".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),d;e&&(d=e.baseOptions);let l={method:"GET",...d,...c},u={};void 0!==n&&(u.contract_address=n),a&&(u.token_id=a),void 0!==i&&(u.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==s&&(u.page_cursor=s),void 0!==o&&(u.page_size=o),ti(f,u);let h=d&&d.headers?d.headers:{};return l.headers={...h,...c.headers},{url:to(f),options:l}}}},tz=function(e){let t=tq(e);return{createMintRequest:async(r,n,a,i)=>tc(await t.createMintRequest(r,n,a,i),T.default,e9,e),getMintRequest:async(r,n,a,i)=>tc(await t.getMintRequest(r,n,a,i),T.default,e9,e),getNFT:async(r,n,a,i)=>tc(await t.getNFT(r,n,a,i),T.default,e9,e),listAllNFTs:async(r,n,a,i,s)=>tc(await t.listAllNFTs(r,n,a,i,s),T.default,e9,e),listMintRequests:async(r,n,a,i,s,o)=>tc(await t.listMintRequests(r,n,a,i,s,o),T.default,e9,e),listNFTs:async(r,n,a,i,s,o,c)=>tc(await t.listNFTs(r,n,a,i,s,o,c),T.default,e9,e),listNFTsByAccountAddress:async(r,n,a,i,s,o,c,f)=>tc(await t.listNFTsByAccountAddress(r,n,a,i,s,o,c,f),T.default,e9,e)}},tG=function(e,t,r){let n=tz(e);return{createMintRequest:(e,a)=>n.createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,a).then(e=>e(r,t)),getMintRequest:(e,a)=>n.getMintRequest(e.contractAddress,e.chainName,e.referenceId,a).then(e=>e(r,t)),getNFT:(e,a)=>n.getNFT(e.contractAddress,e.tokenId,e.chainName,a).then(e=>e(r,t)),listAllNFTs:(e,a)=>n.listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listMintRequests:(e,a)=>n.listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,a).then(e=>e(r,t)),listNFTs:(e,a)=>n.listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t)),listNFTsByAccountAddress:(e,a)=>n.listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},tK=class extends e7{createMintRequest(e,t){return tz(this.configuration).createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,t).then(e=>e(this.axios,this.basePath))}getMintRequest(e,t){return tz(this.configuration).getMintRequest(e.contractAddress,e.chainName,e.referenceId,t).then(e=>e(this.axios,this.basePath))}getNFT(e,t){return tz(this.configuration).getNFT(e.contractAddress,e.tokenId,e.chainName,t).then(e=>e(this.axios,this.basePath))}listAllNFTs(e,t){return tz(this.configuration).listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMintRequests(e,t){return tz(this.configuration).listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,t).then(e=>e(this.axios,this.basePath))}listNFTs(e,t){return tz(this.configuration).listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTsByAccountAddress(e,t){return tz(this.configuration).listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},tW=function(e){return{cancelOrders:async(t,r,n={})=>{tr("cancelOrders","chainName",t),tr("cancelOrders","cancelOrdersRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/cancel".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},createBid:async(t,r,n={})=>{tr("createBid","chainName",t),tr("createBid","createBidRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},createCollectionBid:async(t,r,n={})=>{tr("createCollectionBid","chainName",t),tr("createCollectionBid","createCollectionBidRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},createListing:async(t,r,n={})=>{tr("createListing","chainName",t),tr("createListing","createListingRequestBody",r);let a=new URL("/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},fulfillmentData:async(t,r,n={})=>{tr("fulfillmentData","chainName",t),tr("fulfillmentData","fulfillmentDataRequest",r);let a=new URL("/v1/chains/{chain_name}/orders/fulfillment-data".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getBid:async(t,r,n={})=>{tr("getBid","chainName",t),tr("getBid","bidId",r);let a=new URL("/v1/chains/{chain_name}/orders/bids/{bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{bid_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},getCollectionBid:async(t,r,n={})=>{tr("getCollectionBid","chainName",t),tr("getCollectionBid","collectionBidId",r);let a=new URL("/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{collection_bid_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},getListing:async(t,r,n={})=>{tr("getListing","chainName",t),tr("getListing","listingId",r);let a=new URL("/v1/chains/{chain_name}/orders/listings/{listing_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{listing_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},getTrade:async(t,r,n={})=>{tr("getTrade","chainName",t),tr("getTrade","tradeId",r);let a=new URL("/v1/chains/{chain_name}/trades/{trade_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{trade_id}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listBids:async(t,r,n,a,i,s,o,c,f,d,l,u,h={})=>{tr("listBids","chainName",t);let p=new URL("/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),b;e&&(b=e.baseOptions);let g={method:"GET",...b,...h},m={};void 0!==r&&(m.status=r),void 0!==n&&(m.buy_item_contract_address=n),void 0!==a&&(m.sell_item_contract_address=a),void 0!==i&&(m.account_address=i),void 0!==s&&(m.buy_item_metadata_id=s),void 0!==o&&(m.buy_item_token_id=o),void 0!==c&&(m.from_updated_at=c instanceof Date?c.toISOString():c),void 0!==f&&(m.page_size=f),void 0!==d&&(m.sort_by=d),void 0!==l&&(m.sort_direction=l),void 0!==u&&(m.page_cursor=u),ti(p,m);let y=b&&b.headers?b.headers:{};return g.headers={...y,...h.headers},{url:to(p),options:g}},listCollectionBids:async(t,r,n,a,i,s,o,c,f,d,l={})=>{tr("listCollectionBids","chainName",t);let u=new URL("/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),tt),h;e&&(h=e.baseOptions);let p={method:"GET",...h,...l},b={};void 0!==r&&(b.status=r),void 0!==n&&(b.buy_item_contract_address=n),void 0!==a&&(b.sell_item_contract_address=a),void 0!==i&&(b.account_address=i),void 0!==s&&(b.from_updated_at=s instanceof Date?s.toISOString():s),void 0!==o&&(b.page_size=o),void 0!==c&&(b.sort_by=c),void 0!==f&&(b.sort_direction=f),void 0!==d&&(b.page_cursor=d),ti(u,b);let g=h&&h.headers?h.headers:{};return p.headers={...g,...l.headers},{url:to(u),options:p}},listListings:async(t,r,n,a,i,s,o,c,f,d,l,u,h,p={})=>{tr("listListings","chainName",t);let b=new URL("/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),tt),g;e&&(g=e.baseOptions);let m={method:"GET",...g,...p},y={};void 0!==r&&(y.status=r),void 0!==n&&(y.sell_item_contract_address=n),void 0!==a&&(y.buy_item_type=a),void 0!==i&&(y.buy_item_contract_address=i),void 0!==s&&(y.account_address=s),void 0!==o&&(y.sell_item_metadata_id=o),void 0!==c&&(y.sell_item_token_id=c),void 0!==f&&(y.from_updated_at=f instanceof Date?f.toISOString():f),void 0!==d&&(y.page_size=d),void 0!==l&&(y.sort_by=l),void 0!==u&&(y.sort_direction=u),void 0!==h&&(y.page_cursor=h),ti(b,y);let v=g&&g.headers?g.headers:{};return m.headers={...v,...p.headers},{url:to(b),options:m}},listTrades:async(t,r,n,a,i,s,o,c,f={})=>{tr("listTrades","chainName",t);let d=new URL("/v1/chains/{chain_name}/trades".replace("{chain_name}",encodeURIComponent(String(t))),tt),l;e&&(l=e.baseOptions);let u={method:"GET",...l,...f},h={};void 0!==r&&(h.account_address=r),void 0!==n&&(h.sell_item_contract_address=n),void 0!==a&&(h.from_indexed_at=a instanceof Date?a.toISOString():a),void 0!==i&&(h.page_size=i),void 0!==s&&(h.sort_by=s),void 0!==o&&(h.sort_direction=o),void 0!==c&&(h.page_cursor=c),ti(d,h);let p=l&&l.headers?l.headers:{};return u.headers={...p,...f.headers},{url:to(d),options:u}}}},t$=function(e){let t=tW(e);return{cancelOrders:async(r,n,a)=>tc(await t.cancelOrders(r,n,a),T.default,e9,e),createBid:async(r,n,a)=>tc(await t.createBid(r,n,a),T.default,e9,e),createCollectionBid:async(r,n,a)=>tc(await t.createCollectionBid(r,n,a),T.default,e9,e),createListing:async(r,n,a)=>tc(await t.createListing(r,n,a),T.default,e9,e),fulfillmentData:async(r,n,a)=>tc(await t.fulfillmentData(r,n,a),T.default,e9,e),getBid:async(r,n,a)=>tc(await t.getBid(r,n,a),T.default,e9,e),getCollectionBid:async(r,n,a)=>tc(await t.getCollectionBid(r,n,a),T.default,e9,e),getListing:async(r,n,a)=>tc(await t.getListing(r,n,a),T.default,e9,e),getTrade:async(r,n,a)=>tc(await t.getTrade(r,n,a),T.default,e9,e),listBids:async(r,n,a,i,s,o,c,f,d,l,u,h,p)=>tc(await t.listBids(r,n,a,i,s,o,c,f,d,l,u,h,p),T.default,e9,e),listCollectionBids:async(r,n,a,i,s,o,c,f,d,l,u)=>tc(await t.listCollectionBids(r,n,a,i,s,o,c,f,d,l,u),T.default,e9,e),listListings:async(r,n,a,i,s,o,c,f,d,l,u,h,p,b)=>tc(await t.listListings(r,n,a,i,s,o,c,f,d,l,u,h,p,b),T.default,e9,e),listTrades:async(r,n,a,i,s,o,c,f,d)=>tc(await t.listTrades(r,n,a,i,s,o,c,f,d),T.default,e9,e)}},tJ=function(e,t,r){let n=t$(e);return{cancelOrders:(e,a)=>n.cancelOrders(e.chainName,e.cancelOrdersRequestBody,a).then(e=>e(r,t)),createBid:(e,a)=>n.createBid(e.chainName,e.createBidRequestBody,a).then(e=>e(r,t)),createCollectionBid:(e,a)=>n.createCollectionBid(e.chainName,e.createCollectionBidRequestBody,a).then(e=>e(r,t)),createListing:(e,a)=>n.createListing(e.chainName,e.createListingRequestBody,a).then(e=>e(r,t)),fulfillmentData:(e,a)=>n.fulfillmentData(e.chainName,e.fulfillmentDataRequest,a).then(e=>e(r,t)),getBid:(e,a)=>n.getBid(e.chainName,e.bidId,a).then(e=>e(r,t)),getCollectionBid:(e,a)=>n.getCollectionBid(e.chainName,e.collectionBidId,a).then(e=>e(r,t)),getListing:(e,a)=>n.getListing(e.chainName,e.listingId,a).then(e=>e(r,t)),getTrade:(e,a)=>n.getTrade(e.chainName,e.tradeId,a).then(e=>e(r,t)),listBids:(e,a)=>n.listBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.buyItemMetadataId,e.buyItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t)),listCollectionBids:(e,a)=>n.listCollectionBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t)),listListings:(e,a)=>n.listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t)),listTrades:(e,a)=>n.listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,a).then(e=>e(r,t))}},tQ=class extends e7{cancelOrders(e,t){return t$(this.configuration).cancelOrders(e.chainName,e.cancelOrdersRequestBody,t).then(e=>e(this.axios,this.basePath))}createBid(e,t){return t$(this.configuration).createBid(e.chainName,e.createBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createCollectionBid(e,t){return t$(this.configuration).createCollectionBid(e.chainName,e.createCollectionBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createListing(e,t){return t$(this.configuration).createListing(e.chainName,e.createListingRequestBody,t).then(e=>e(this.axios,this.basePath))}fulfillmentData(e,t){return t$(this.configuration).fulfillmentData(e.chainName,e.fulfillmentDataRequest,t).then(e=>e(this.axios,this.basePath))}getBid(e,t){return t$(this.configuration).getBid(e.chainName,e.bidId,t).then(e=>e(this.axios,this.basePath))}getCollectionBid(e,t){return t$(this.configuration).getCollectionBid(e.chainName,e.collectionBidId,t).then(e=>e(this.axios,this.basePath))}getListing(e,t){return t$(this.configuration).getListing(e.chainName,e.listingId,t).then(e=>e(this.axios,this.basePath))}getTrade(e,t){return t$(this.configuration).getTrade(e.chainName,e.tradeId,t).then(e=>e(this.axios,this.basePath))}listBids(e,t){return t$(this.configuration).listBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.buyItemMetadataId,e.buyItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listCollectionBids(e,t){return t$(this.configuration).listCollectionBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listListings(e,t){return t$(this.configuration).listListings(e.chainName,e.status,e.sellItemContractAddress,e.buyItemType,e.buyItemContractAddress,e.accountAddress,e.sellItemMetadataId,e.sellItemTokenId,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}listTrades(e,t){return t$(this.configuration).listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}},tZ={CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},tX={Asc:"asc",Desc:"desc"},tY={CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},t0={Asc:"asc",Desc:"desc"},t1={Native:"NATIVE",Erc20:"ERC20"},t6={CreatedAt:"created_at",UpdatedAt:"updated_at",BuyItemAmount:"buy_item_amount"},t2={Asc:"asc",Desc:"desc"},t5={IndexedAt:"indexed_at"},t8={Asc:"asc",Desc:"desc"},t3=function(e){return{createCounterfactualAddressV2:async(t,r,n={})=>{tr("createCounterfactualAddressV2","chainName",t),tr("createCounterfactualAddressV2","createCounterfactualAddressRequest",r);let a=new URL("/v2/chains/{chain_name}/passport/counterfactual-address".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getLinkedAddresses:async(t,r,n={})=>{tr("getLinkedAddresses","userId",t),tr("getLinkedAddresses","chainName",r);let a=new URL("/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses".replace("{user_id}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n},o={};await ta(o,e),ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},{url:to(a),options:s}},getLinkedAddressesDeprecated:async(t,r={})=>{tr("getLinkedAddressesDeprecated","userId",t);let n=new URL("/passport-mr/v1/users/{userId}/linked-addresses".replace("{userId}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};await ta(s,e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}},getTransactionMetadata:async(t,r,n={})=>{tr("getTransactionMetadata","chainName",t),tr("getTransactionMetadata","getTransactionMetadataRequest",r);let a=new URL("/v1/chains/{chain_name}/passport/transaction-metadata".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getTypedDataMetadata:async(t,r,n={})=>{tr("getTypedDataMetadata","chainName",t),tr("getTypedDataMetadata","getTypedDataMetadataRequest",r);let a=new URL("/v1/chains/{chain_name}/passport/typeddata-metadata".replace("{chain_name}",encodeURIComponent(String(t))),tt),i;e&&(i=e.baseOptions);let s={method:"POST",...i,...n},o={};await ta(o,e),o["Content-Type"]="application/json",ti(a,{});let c=i&&i.headers?i.headers:{};return s.headers={...o,...c,...n.headers},s.data=ts(r,s,e),{url:to(a),options:s}},getUserMetadata:async(t,r={})=>{tr("getUserMetadata","userId",t);let n=new URL("/passport-mr/v1/users/{user_id}/metadata".replace("{user_id}",encodeURIComponent(String(t))),tt),a;e&&(a=e.baseOptions);let i={method:"GET",...a,...r},s={};await tn(s,"x-immutable-api-key",e),ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},{url:to(n),options:i}}}},t4=function(e){let t=t3(e);return{createCounterfactualAddressV2:async(r,n,a)=>tc(await t.createCounterfactualAddressV2(r,n,a),T.default,e9,e),getLinkedAddresses:async(r,n,a)=>tc(await t.getLinkedAddresses(r,n,a),T.default,e9,e),getLinkedAddressesDeprecated:async(r,n)=>tc(await t.getLinkedAddressesDeprecated(r,n),T.default,e9,e),getTransactionMetadata:async(r,n,a)=>tc(await t.getTransactionMetadata(r,n,a),T.default,e9,e),getTypedDataMetadata:async(r,n,a)=>tc(await t.getTypedDataMetadata(r,n,a),T.default,e9,e),getUserMetadata:async(r,n)=>tc(await t.getUserMetadata(r,n),T.default,e9,e)}},t9=function(e,t,r){let n=t4(e);return{createCounterfactualAddressV2:(e,a)=>n.createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,a).then(e=>e(r,t)),getLinkedAddresses:(e,a)=>n.getLinkedAddresses(e.userId,e.chainName,a).then(e=>e(r,t)),getLinkedAddressesDeprecated:(e,a)=>n.getLinkedAddressesDeprecated(e.userId,a).then(e=>e(r,t)),getTransactionMetadata:(e,a)=>n.getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,a).then(e=>e(r,t)),getTypedDataMetadata:(e,a)=>n.getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,a).then(e=>e(r,t)),getUserMetadata:(e,a)=>n.getUserMetadata(e.userId,a).then(e=>e(r,t))}},t7=class extends e7{createCounterfactualAddressV2(e,t){return t4(this.configuration).createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,t).then(e=>e(this.axios,this.basePath))}getLinkedAddresses(e,t){return t4(this.configuration).getLinkedAddresses(e.userId,e.chainName,t).then(e=>e(this.axios,this.basePath))}getLinkedAddressesDeprecated(e,t){return t4(this.configuration).getLinkedAddressesDeprecated(e.userId,t).then(e=>e(this.axios,this.basePath))}getTransactionMetadata(e,t){return t4(this.configuration).getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getTypedDataMetadata(e,t){return t4(this.configuration).getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getUserMetadata(e,t){return t4(this.configuration).getUserMetadata(e.userId,t).then(e=>e(this.axios,this.basePath))}},re=function(e){return{getUserInfo:async(t={})=>{let r=new URL("/passport-profile/v1/user/info",tt),n;e&&(n=e.baseOptions);let a={method:"GET",...n,...t},i={};await ta(i,e),ti(r,{});let s=n&&n.headers?n.headers:{};return a.headers={...i,...s,...t.headers},{url:to(r),options:a}},linkWalletV2:async(t,r={})=>{let n=new URL("/passport-profile/v2/linked-wallets",tt),a;e&&(a=e.baseOptions);let i={method:"POST",...a,...r},s={};await ta(s,e),s["Content-Type"]="application/json",ti(n,{});let o=a&&a.headers?a.headers:{};return i.headers={...s,...o,...r.headers},i.data=ts(t,i,e),{url:to(n),options:i}}}},rt=function(e){let t=re(e);return{getUserInfo:async r=>tc(await t.getUserInfo(r),T.default,e9,e),linkWalletV2:async(r,n)=>tc(await t.linkWalletV2(r,n),T.default,e9,e)}},rr=function(e,t,r){let n=rt(e);return{getUserInfo:e=>n.getUserInfo(e).then(e=>e(r,t)),linkWalletV2:(e={},a)=>n.linkWalletV2(e.linkWalletV2Request,a).then(e=>e(r,t))}},rn=class extends e7{getUserInfo(e){return rt(this.configuration).getUserInfo(e).then(e=>e(this.axios,this.basePath))}linkWalletV2(e={},t){return rt(this.configuration).linkWalletV2(e.linkWalletV2Request,t).then(e=>e(this.axios,this.basePath))}},ra=function(e){return{quotesForNFTs:async(t,r,n,a,i,s={})=>{tr("quotesForNFTs","chainName",t),tr("quotesForNFTs","contractAddress",r),tr("quotesForNFTs","tokenId",n);let o=new URL("/v1/chains/{chain_name}/quotes/{contract_address}/nfts".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};n&&(d.token_id=n),void 0!==a&&(d.payment_token=a),void 0!==i&&(d.page_cursor=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}},quotesForStacks:async(t,r,n,a,i,s={})=>{tr("quotesForStacks","chainName",t),tr("quotesForStacks","contractAddress",r),tr("quotesForStacks","stackId",n);let o=new URL("/v1/chains/{chain_name}/quotes/{contract_address}/stacks".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),tt),c;e&&(c=e.baseOptions);let f={method:"GET",...c,...s},d={};n&&(d.stack_id=n),void 0!==a&&(d.payment_token=a),void 0!==i&&(d.page_cursor=i),ti(o,d);let l=c&&c.headers?c.headers:{};return f.headers={...l,...s.headers},{url:to(o),options:f}}}},ri=function(e){let t=ra(e);return{quotesForNFTs:async(r,n,a,i,s,o)=>tc(await t.quotesForNFTs(r,n,a,i,s,o),T.default,e9,e),quotesForStacks:async(r,n,a,i,s,o)=>tc(await t.quotesForStacks(r,n,a,i,s,o),T.default,e9,e)}},rs=function(e,t,r){let n=ri(e);return{quotesForNFTs:(e,a)=>n.quotesForNFTs(e.chainName,e.contractAddress,e.tokenId,e.paymentToken,e.pageCursor,a).then(e=>e(r,t)),quotesForStacks:(e,a)=>n.quotesForStacks(e.chainName,e.contractAddress,e.stackId,e.paymentToken,e.pageCursor,a).then(e=>e(r,t))}},ro=class extends e7{quotesForNFTs(e,t){return ri(this.configuration).quotesForNFTs(e.chainName,e.contractAddress,e.tokenId,e.paymentToken,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}quotesForStacks(e,t){return ri(this.configuration).quotesForStacks(e.chainName,e.contractAddress,e.stackId,e.paymentToken,e.pageCursor,t).then(e=>e(this.axios,this.basePath))}},rc=function(e){return{getERC20Token:async(t,r,n={})=>{tr("getERC20Token","contractAddress",t),tr("getERC20Token","chainName",r);let a=new URL("/v1/chains/{chain_name}/tokens/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),tt),i;e&&(i=e.baseOptions);let s={method:"GET",...i,...n};ti(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...n.headers},{url:to(a),options:s}},listERC20Tokens:async(t,r,n,a,i,s,o={})=>{tr("listERC20Tokens","chainName",t);let c=new URL("/v1/chains/{chain_name}/tokens".replace("{chain_name}",encodeURIComponent(String(t))),tt),f;e&&(f=e.baseOptions);let d={method:"GET",...f,...o},l={};void 0!==r&&(l.from_updated_at=r instanceof Date?r.toISOString():r),n&&(l.verification_status=n),void 0!==a&&(l.is_canonical=a),void 0!==i&&(l.page_cursor=i),void 0!==s&&(l.page_size=s),ti(c,l);let u=f&&f.headers?f.headers:{};return d.headers={...u,...o.headers},{url:to(c),options:d}}}},rf=function(e){let t=rc(e);return{getERC20Token:async(r,n,a)=>tc(await t.getERC20Token(r,n,a),T.default,e9,e),listERC20Tokens:async(r,n,a,i,s,o,c)=>tc(await t.listERC20Tokens(r,n,a,i,s,o,c),T.default,e9,e)}},rd=function(e,t,r){let n=rf(e);return{getERC20Token:(e,a)=>n.getERC20Token(e.contractAddress,e.chainName,a).then(e=>e(r,t)),listERC20Tokens:(e,a)=>n.listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,a).then(e=>e(r,t))}},rl=class extends e7{getERC20Token(e,t){return rf(this.configuration).getERC20Token(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listERC20Tokens(e,t){return rf(this.configuration).listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},ru=class{apiKey;username;password;accessToken;basePath;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}},rh={ValidationError:"VALIDATION_ERROR"},rp={UnauthorisedRequest:"UNAUTHORISED_REQUEST"},rb={AuthenticationError:"AUTHENTICATION_ERROR"},rg={ResourceNotFound:"RESOURCE_NOT_FOUND"},rm={ConflictError:"CONFLICT_ERROR"},ry={TooManyRequestsError:"TOO_MANY_REQUESTS_ERROR"},rv={InternalServerError:"INTERNAL_SERVER_ERROR"},rw={NotImplementedError:"NOT_IMPLEMENTED_ERROR"},rx={Active:"ACTIVE"},rE={Mint:"mint",Burn:"burn",Transfer:"transfer",Sale:"sale",Deposit:"deposit",Withdrawal:"withdrawal"},rA={Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},r_={Cancelled:"CANCELLED"},rT={OnChain:"ON_CHAIN",OffChain:"OFF_CHAIN",Underfunded:"UNDERFUNDED"},rI={Erc721:"ERC721",Erc1155:"ERC1155"},rS={Erc1155Collection:"ERC1155_COLLECTION"},rC={Erc1155:"ERC1155"},rk={Erc20Approve:"ERC20_APPROVE"},rR={Erc20:"ERC20"},rM={Erc20TransferFrom:"ERC20_TRANSFER_FROM"},rB={Erc20Transfer:"ERC20_TRANSFER"},rP={Erc721Approve:"ERC721_APPROVE"},rO={Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},rj={Erc721:"ERC721"},rN={Erc721SafeTransferFromBatch:"ERC721_SAFE_TRANSFER_FROM_BATCH"},rU={Erc721TransferFrom:"ERC721_TRANSFER_FROM"},rL={Expired:"EXPIRED"},rD={Filled:"FILLED"},rF={Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},rH={Filled:"FILLED"},rV={Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},rq={Inactive:"INACTIVE"},rz={Erc20:"ERC20"},rG={Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},rK={Native:"NATIVE"},rW={Erc721:"ERC721",Erc1155:"ERC1155"},r$={Otp:"otp",Web:"web"},rJ={Pending:"pending",Succeeded:"succeeded",Failed:"failed"},rQ={Erc721:"ERC721",Erc1155:"ERC1155"},rZ={Number:"number",BoostPercentage:"boost_percentage",BoostNumber:"boost_number",Date:"date"},rX={Erc721SetApprovalForAll:"ERC721_SET_APPROVAL_FOR_ALL",Erc1155SetApprovalForAll:"ERC1155_SET_APPROVAL_FOR_ALL"},rY={Native:"NATIVE",Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155",Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},r0={Requested:"requested",Approved:"approved",Rejected:"rejected",Removed:"removed",Added:"added"},r1={Listing:"LISTING",Bid:"BID",CollectionBid:"COLLECTION_BID"},r6={Pending:"PENDING",Active:"ACTIVE",Inactive:"INACTIVE",Filled:"FILLED",Expired:"EXPIRED",Cancelled:"CANCELLED"},r2={Common:"common",Uncommon:"uncommon",Rare:"rare",Epic:"epic",Legendary:"legendary"},r5={Pending:"PENDING"},r8={FullRestricted:"FULL_RESTRICTED",PartialRestricted:"PARTIAL_RESTRICTED"},r3={Royalty:"ROYALTY"},r4={SeaportCreateListingMetadata:"SEAPORT_CREATE_LISTING_METADATA"},r9={Erc1155Collection:"ERC1155Collection"},r7={Erc1155:"ERC1155"},ne={Erc20:"ERC20"},nt={Erc721Collection:"ERC721Collection"},nr={Erc721:"ERC721"},nn={Erc20:"ERC20",Native:"NATIVE"},na={SeaportFulfillAvailableAdvancedOrders:"SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS"},ni={Native:"NATIVE"},ns={Malicious:"malicious",Benign:"benign",Warning:"warning",Unknown:"unknown",Info:"info"},no={Starkex:"starkex"},nc={Erc20:"ERC20"},nf={Starkex:"starkex",Evm:"evm"},nd={Otp:"otp",Web:"web"},nl={Unknown:"UNKNOWN"},nu={Unknown:"UNKNOWN"},nh={Success:"success",Error:"error",SimulationFailed:"simulation_failed"},np={Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},nb={Completed:"completed",Pending:"pending"},ng={Evm:"evm"},nm={};S(nm,{APIError400AllOfCodeEnum:()=>nv,APIError401AllOfCodeEnum:()=>nw,APIError403AllOfCodeEnum:()=>nx,APIError404AllOfCodeEnum:()=>nE,APIError409AllOfCodeEnum:()=>nA,APIError429AllOfCodeEnum:()=>n_,APIError500AllOfCodeEnum:()=>nT,ActivityType:()=>nI,AssetVerificationStatus:()=>nS,CollectionContractType:()=>nC,MarketPriceERC20TokenTypeEnum:()=>nk,MarketPriceFeesTypeEnum:()=>nR,MarketPriceNativeTokenTypeEnum:()=>nM,MarketplaceContractType:()=>nB,MintRequestStatus:()=>nP,NFTContractType:()=>nO,NFTMetadataAttributeDisplayTypeEnum:()=>nj,SaleFeeTypeEnum:()=>nN,SearchStacksSortByEnum:()=>ny,TokenContractType:()=>nU});var ny=((n=ny||{}).CheapestFirst="cheapest_first",n),nv=((a=nv||{}).ValidationError="VALIDATION_ERROR",a),nw=((i=nw||{}).UnauthorisedRequest="UNAUTHORISED_REQUEST",i),nx=((s=nx||{}).AuthenticationError="AUTHENTICATION_ERROR",s),nE=((o=nE||{}).ResourceNotFound="RESOURCE_NOT_FOUND",o),nA=((c=nA||{}).ConflictError="CONFLICT_ERROR",c),n_=((f=n_||{}).TooManyRequestsError="TOO_MANY_REQUESTS_ERROR",f),nT=((d=nT||{}).InternalServerError="INTERNAL_SERVER_ERROR",d),nI=((l=nI||{}).Mint="mint",l.Burn="burn",l.Transfer="transfer",l.Sale="sale",l.Deposit="deposit",l.Withdrawal="withdrawal",l),nS=((u=nS||{}).Verified="verified",u.Unverified="unverified",u.Spam="spam",u.Inactive="inactive",u),nC=((h=nC||{}).Erc721="ERC721",h.Erc1155="ERC1155",h),nk=((p=nk||{}).Erc20="ERC20",p),nR=((b=nR||{}).Royalty="ROYALTY",b.MakerEcosystem="MAKER_ECOSYSTEM",b.TakerEcosystem="TAKER_ECOSYSTEM",b.Protocol="PROTOCOL",b),nM=((g=nM||{}).Native="NATIVE",g),nB=((m=nB||{}).Erc721="ERC721",m.Erc1155="ERC1155",m),nP=((y=nP||{}).Pending="pending",y.Succeeded="succeeded",y.Failed="failed",y),nO=((v=nO||{}).Erc721="ERC721",v.Erc1155="ERC1155",v),nj=((w=nj||{}).Number="number",w.BoostPercentage="boost_percentage",w.BoostNumber="boost_number",w.Date="date",w),nN=((x=nN||{}).Royalty="ROYALTY",x),nU=((E=nU||{}).Erc20="ERC20",E),nL=class{config;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;constructor(e){this.config=e,this.assetApi=new H(e),this.balanceApi=new G(e),this.collectionApi=new J(e),this.depositsApi=new Y(e),this.encodingApi=new en(e),this.exchangeApi=new eo(e),this.metadataApi=new el(e),this.metadataRefreshesApi=new eb(e),this.mintsApi=new ev(e),this.nftCheckoutPrimaryApi=new eA(e),this.ordersApi=new eS(e),this.projectsApi=new eM(e),this.tokensApi=new ej(e),this.tradesApi=new eD(e),this.transfersApi=new eq(e),this.usersApi=new eW(e),this.withdrawalsApi=new eZ(e)}},nD=class{config;activitiesApi;chainsApi;collectionApi;nftOwnersApi;nftsApi;ordersApi;passportApi;passportProfileApi;guardianApi;constructor(e){this.config=e,this.activitiesApi=new tu(e.indexer),this.chainsApi=new tg(e.indexer),this.collectionApi=new tw(e.indexer),this.nftOwnersApi=new tV(e.indexer),this.nftsApi=new tK(e.indexer),this.ordersApi=new tQ(e.orderBook),this.passportApi=new t7(e.passport),this.passportProfileApi=new rn(e.passport),this.guardianApi=new tC(e.passport)}},nF={"x-sdk-version":"ts-immutable-sdk-2.3.0"},nH=({basePath:e,headers:t})=>{if(!e.trim())throw Error("basePath can not be empty");return new eX({basePath:e,baseOptions:{headers:{...nF,...t||{}}}})},nV={getProduction:()=>nH({basePath:"https://api.x.immutable.com"}),getSandbox:()=>nH({basePath:"https://api.sandbox.x.immutable.com"})},nq={getProduction:()=>({indexer:nH({basePath:"https://api.immutable.com"}),orderBook:nH({basePath:"https://api.immutable.com"}),passport:nH({basePath:"https://api.immutable.com"})}),getSandbox:()=>({indexer:nH({basePath:"https://api.sandbox.immutable.com"}),orderBook:nH({basePath:"https://api.sandbox.immutable.com"}),passport:nH({basePath:"https://api.sandbox.immutable.com"})})}},{axios:"fYIJi","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lqVsJ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Environment",()=>i.Environment),n.export(r,"ImmutableConfiguration",()=>i.ImmutableConfiguration),n.export(r,"ApiConfiguration",()=>y),n.export(r,"AssetsApi",()=>ex),n.export(r,"BalancesApi",()=>eE),n.export(r,"CollectionsApi",()=>eA),n.export(r,"Contracts",()=>ea),n.export(r,"DepositsApi",()=>e_),n.export(r,"EncodingApi",()=>eT),n.export(r,"ExchangesApi",()=>eI),n.export(r,"IMXClient",()=>er),n.export(r,"IMXError",()=>I),n.export(r,"ImmutableX",()=>en),n.export(r,"ImxConfiguration",()=>_),n.export(r,"MetadataApi",()=>eC),n.export(r,"MetadataRefreshesApi",()=>ek),n.export(r,"MetadataSchemaRequestTypeEnum",()=>eL),n.export(r,"MintsApi",()=>eS),n.export(r,"NftCheckoutPrimaryApi",()=>eR),n.export(r,"OrdersApi",()=>eM),n.export(r,"ProjectsApi",()=>eB),n.export(r,"TokensApi",()=>eP),n.export(r,"TradesApi",()=>eO),n.export(r,"TransfersApi",()=>ej),n.export(r,"UsersApi",()=>eN),n.export(r,"WithdrawalsApi",()=>eU),n.export(r,"createConfig",()=>w),n.export(r,"createImmutableXConfiguration",()=>x),n.export(r,"createStarkSigner",()=>L),n.export(r,"generateLegacyStarkPrivateKey",()=>W),n.export(r,"generateStarkPrivateKey",()=>K),n.export(r,"imxClientConfig",()=>T),n.export(r,"imxClientCreateStarkSigner",()=>L),n.export(r,"imxClientGenerateLegacyStarkPrivateKey",()=>W),n.export(r,"production",()=>E),n.export(r,"sandbox",()=>A),n.export(r,"serializePackedSignature",()=>Z),n.export(r,"signRegisterEthAddress",()=>X),n.export(r,"starkEcOrder",()=>V);var a=e("@imtbl/generated-clients"),i=e("@imtbl/config"),s=e("axios"),o=n.interopDefault(s),c=e("ethers"),f=e("bn.js"),d=n.interopDefault(f),l=e("enc-utils"),u=e("hash.js"),h=n.interopDefault(u),p=e("elliptic"),b=n.interopDefault(p),g=e("@ethereumjs/wallet"),m=Object.defineProperty,y=class extends a.imx.Configuration{},v={"x-sdk-version":"ts-immutable-sdk-2.3.0"},w=({coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n,basePath:a,headers:s,sdkVersion:o,baseConfig:c})=>{if(!a.trim())throw Error("basePath can not be empty");return o&&(v["x-sdk-version"]=o),{apiConfiguration:new y({basePath:a,baseOptions:{headers:s={...s||{},...i.addKeysToHeadersOverride(c,{headers:s})?.headers||{},...v}}}),ethConfiguration:{coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:n}}},x=({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:a,baseConfig:i})=>w({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:n,registrationV4ContractAddress:a,sdkVersion:"ts-immutable-sdk-2.3.0",baseConfig:i}),E=({baseConfig:e})=>x({basePath:"https://api.x.immutable.com",chainID:1,coreContractAddress:"0x5FDCCA53617f4d2b9134B29090C87D01058e27e9",registrationContractAddress:"0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c",registrationV4ContractAddress:"0xac88a57943b5BBa1ecd931F8494cAd0B7F717590",baseConfig:e}),A=({baseConfig:e})=>x({basePath:"https://api.sandbox.x.immutable.com",chainID:0xaa36a7,coreContractAddress:"0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98",registrationContractAddress:"0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97",registrationV4ContractAddress:"0xd1527c65c6287ec5ab816d328eb83bb4cb690e92",baseConfig:e}),_=class{immutableXConfig;baseConfig;constructor({baseConfig:e,overrides:t}){if(this.baseConfig=e,t)this.immutableXConfig=t.immutableXConfig;else switch(e.environment){case i.Environment.SANDBOX:this.immutableXConfig=A({baseConfig:e});break;case i.Environment.PRODUCTION:this.immutableXConfig=E({baseConfig:e});break;default:this.immutableXConfig=A({baseConfig:e})}}},T=e=>{if(!e)throw Error("configOptions is required");if(-1===Object.values(i.Environment).indexOf(e.environment))throw Error(`Invalid environment: ${e.environment}`);return{baseConfig:new i.ImmutableConfiguration(e)}},I=class extends Error{code;details;constructor({code:e,details:t,message:r}){super(r),this.code=e,this.details=t}};function S(e){if((0,o.default).isAxiosError(e)&&e.response){let t=e.response.data;return new I(t.code&&t.message?{code:t.code,details:t.details,message:t.message}:{code:e.code??e.response?.status.toString()??"unknown_error_code",message:String(e)})}return new I({code:"unknown_error_code",message:String(e)})}var C=[["49ee3eba8c1600700ee1b87eb599f16716b0b1022947733551fde4050ca6804","3ca0cfe4b3bc6ddf346d49d06ea0ed34e621062c0e056c1d0405d266e10268a"],["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"],["234287dcbaffe7f969c748655fca9e58fa8120b6d56eb0c1080d17957ebe47b","3b056f100f96fb21e889527d41f4e39940135dd7a6c94cc6ed0268ee89e5615"],["3909690e1123c80678a7ba0fde0e8447f6f02b3f6b960034d1e93524f8b476","7122e9063d239d89d4e336753845b76f2b33ca0d7f0c1acd4b9fe974994cc19"],["40fd002e38ea01a01b2702eb7c643e9decc2894cbf31765922e281939ab542c","109f720a79e2a41471f054ca885efd90c8cfbbec37991d1b6343991e0a3e740"],["2f52066635c139fc2f64eb0bd5e3fd7a705f576854ec4f00aa60361fddb981b","6d78a24d8a5f97fc600318ce16b3c840315979c3273078ec1a285f217ee6a26"],["6a0767a1fd60d5b9027a35af1b68e57a1c366ebcde2006cdd07af27043ef674","606b72c0ca0498b8c1817ed7922d550894c324f5efdfc85a19a1ae382411ca2"],["7fa463ee2a2d6a585d5c3358918270f6c28c66df1f86803374d1edf3819cc62","a996edf01598832e644e1cae9a37288865ad80e2787f9bf958aceccc99afae"],["3d4da70d1540da597dbae1651d28487604a4e66a4a1823b97e8e9639393dbec","45cdef70c35d3b6f0a2273a9886ccb6306d813e8204bdfd30b4efee63c8a3f9"],["1e448fdbcd9896c6fbf5f36cb7e7fcb77a751ff2d942593cae023363cc7750e","30c81da0f3a8cb64468eaa491c7ae7b4842b62cb4148820da211afc4caffb3a"],["6531acf1a7cb90a4eb27de0b7f915e387a3b0fd063ba6e1289b91f48411be26","31330f5daa091889981a3ea782ae997f5f171336ed0487a03f051551a2cafa2"],["54be016394d5662d67d7e82f5e889ed2f97ccf95d911f57dd2362c4040ed4f4","c6cb184053f054d6a59c1bf0986d17090d25089b3fdcdaf185edc87ef113e5"],["35b9ecd0499ca1d5d42dcbb0c6b4042b3733c64b607ca711e706e786ef2afc6","5624b476a5b21c3a544f0712d4817b06ad380a5a6529d323bf64da8ef862d8d"],["4ce0378e3ee8f77ed58f2ddbd8bb7676c8a38bfb1d3694c275254bd8ca38e23","5a16fcbff0769c9cf2b02c31621878ec819fff4b8231bff82c6183db2746820"],["648d5c6f98680a1b926bfeb01c00224c56fdcf751b251c4449c8a94f425cfcf","72c05ac793cd1620a833fbe2214d36900ebe446e095c62fcb740937f98cca8c"],["bd09be3e4e1af8a14189977e334f097c18e4a8bf42577ef5aafa0f807bd89b","6e0e72ed7eb65c86cee29c411fb4761122558ee81013344ba8509c49de9f9b6"],["35ea4e339b44ae7724419bdfbe07022253137a4afb7cbaffad341ea61249357","3665d676a026a174f367bb4417780e53a7803cb02d0db32eb4545c267c42f14"],["36457bc744f42e697b825c2d1afd8f4029d696a4514710f81da52d88e178643","7c93715896735492a68c7969a024b3a8fd538bffc1521538107de1a5f13ce9c"],["5b3a08ebcf9c109cc9082f70d9df2b9c11b5428ee23917b4e790c4c10f6e661","9d7b42ab0c20f5510df7ea5e196eec99342739077e9a168198c89da859753"],["21883ef8580fc06e59481955d52ece3aca6e82c8c9fc58e216dcf46f96990c6","51a6423543e6e8a43e71da34cd90f5b520b8d33b67c4bf857573ab9e301aa4c"],["19e86b77f9b581e81092b305c852faf53940a8f15f0a6990c414f04c0fa7ef9","515630e35d4398c9c79fc4ee08e1023fa47d8e03c6e7819c6d2ccef45398fa"],["888ab8eb4c31bb2ac5b54aa320dbe1a69c96b864e8a5f54d89c1d1a6b86c24","730e148467f6a55ce22c5296f5380df88f38de76ef0b2de844cd3094aaaf3ea"],["75e79ff13a894e7120dac17b7429c0c32ce7828f726c9973728c0977a5f5977","4960526e59c1c736561a201bc56f7d762641b39f609d273cc996f5d9197cfb8"],["640fe009249115d7254f72ecafb3006139e4bed7e9041af51458c737282d1d5","3cc6c978a575246e2ce4f7ef1fcc7f63085db9ff98a1b1f3fe374087c0332c"],["6d6fd09ccab7c26de9b3906191235deb5c34685580c488275356a05e209ca96","7157f81a34213dd8f91dea4f6df1bcfabc4ee091a3049eeeb3b7923d39b8645"],["5531ca1d00f151d71da820918f74caf2985b24dca20e124721fff507b5a5876","518529643d3f25e47f72c322223ba60a63d6bfe78cf3f612215d9c19bf29200"],["6192d454e4f8fe212bdfccd5b15dd5056d7622ffe456c6c67e5a7265aea49c4","2377a45dc630017ae863cb968ddb38333a70c7946d8684e6d7a6213f634b7bc"],["542fb44b4ef3640a64fdb22a2560fb26668065c069cf31d1df424819a39ff18","5dbae9b0948e0361aea443503840341c322aa1a1366ce5390e71bf161f78f8c"],["299ff3e3412a7eb4cb4a3051b07b1be2e7b1c4b789f39ffb52cba3d048b71de","1951d3175c02761b291d86b6c0a08387ad5e2a2130ccc33c852530572cb3958"],["628ce3f5367dadc1411133e55eb25e2e3c2880d6e28754a5cb1c5d109627e73","ae3e9b7d50964e28bd15380400b7659b87affdef5d2586cbefcd9be7d67c0d"],["6ea54aff064895eccf9db2283225d62044ae67621192b3346338948382f5933","6431507e51aadacfaf39f102a8ff387756e9b5e1bc8323d44acae55130d93db"],["28097d50d175a6235320fe8cfe138dd9e46895d189582e472c38ad7a67d923a","7f9eab4133d7d09a7ff63368d6135c26262b62336eca1b5ca33f2096ce388ba"],["619fd09cdd6ff4323973f256c2cbdcb224f7f25b8aef623af2d4a0105e62e02","2c95f0ae11d47eeae1bc7f1350f75f9185c5bc840382ceb38a797cae9c40308"],["641c18982ced304512a3f2395942a38add0d6a7156229c2a7c8b8dfbe9beb96","6f6288c9c659b6af5ac975f4180deffe53d516399b2cc62f31732e9d4ba9837"],["58ab546e51fe49fc5a382e4064a2bd6cfc268904412f86c26de14f28a71d0f2","124b7217943e7e328408e8afdfa7da00dcbc94a2bb85fd8e01fb162d2c2c0a9"],["a82c2fdedbb26c3c762a12f7e86b0e01e65320e0a25a8399d665f6e266bf74","1a1de28e253f3e10f44d0111e8074f882d7f42e5900780ccbdc31da372d3fd8"],["744c725a7455a992e3cf5bd007bc234dd4668dba285f553f38350ad94c1615b","7f721a87f48798bdc4a9c0eb88559e2ad7a74112fd901e70ea159e67a9c33f"],["434df142ddaa60f7881b6348d91687de40457de7ccfb07f0304b9e820705d0c","7fae425e3b53f97dd1f5b20e49ed9fe24ff1efc341ba5e017ac89cf8df0cc39"],["7a1e2b809dff46277021cbc376f79c37e1b683bbd6bca5317014f0dc0e1ae73","56790278a231912c334eff05281e08af1558e85516b4411ef64647c13bea431"],["4931b7990348d41cf8907be79f45bb7991fd18f8a57868351c92fa7a34cbcd7","ca35091815cdf0837d396e25aad6052ad32d497a33b123256cffdc008bc50e"],["250b815d352fd89f8210b624b147ea7d0a4f47bcac49f3ac9b777840da93ebe","1173f10e9691948b7da7632f328520455aadcba46e017f891e0a1d7da2bef04"],["2223b85032fa67292f6e1f822628e6756e5c3cc08fc252ab88d63d624e4dfb2","55619ba96a7dcec77832fcb22cd5c21c7dcebc0280d730cba0002b67e0a8c63"],["249b131e04de73af9820d3e22492d9ec51bdc0c4c4f34d95352fa44dd61f245","7576d3b5d136368ff01170a77d8286d0d1c7c40688862fb40813b4af3c6065e"],["6777915d9b4769027eb7e04733f8a2d669c84fe06080f55e8a55674dfbf9efb","640d0ff384c9635e1af364760f104e058e3c86209fa9d2320aeac887b2e02d8"],["2abe3f237681052f002414399111cf07f8421535af41251edc427a36b5b19c9","636ce4deaf468a503ab20ccb2f7e5bdc98551656ebf53e9c7786b11dd9090be"],["4d5cc5414758ea1be55be779bd7da296c7e11f1564d9e8797ceea347c16f8ea","1a680c4c410cf5ddc74e95ff2897c193edaaecce5b2cde4e96bbae5c0054eff"],["46c375c684b30adf4d51de81e92afee52b1a3847e177403372c82109373edca","1eaadc5783c90a0261306423d52009e991126b3f620e9cb6cffca41ca096f4f"],["2ddfb71f51205888118cbabba8fd07d460a810289bfdeeb7118707e310cb152","1fd905d07b3933be886f2518246bdafa6f33259a174668808223cd7c28183c7"],["386f3879960713d41fdb3b1e41bbebf26b1c0e27a9a75bb1adcc1a0d3e8547b","2b21498c0f34ec6f17c720334dc0f36021c2f87afbbbc8847d0bd536eb265e5"],["407eae62c6c4de3b942195afec3f45efec71ddb5e6edee3d427631bcdbf9b90","436e7f2d78268ef62c4172d2ff1469028bad1f1d0f97ab007064418e61caa8f"],["1b881175e21201d17e095e9b3966b354f47de8c1acee5177f5909e0fd72328f","69954b1a9b8bfccf8ec384d32924518a935758f3d3662ef754bcc88f1f6f3ec"],["7d545a82bff003b8115be32a0c437f7c0a98f776bcf7fddb0392822844f3c5e","34b6e53a9565a7daa010711f5bf72254a4e61da3e6a562210a9abc9e8b66d69"],["299b9fcd4fadfc4b6141457a3036aaa68501c23df579de26df69d4def89b913","b95bf2c2bb303c38bb396382edc798ca6a4847e573ce19b7b08533d1912675"],["551f5a4dae4a341a3e20336a7d2f365ddd45849351ec6dd4fcbedfe4806d5d5","5865c977a0ecf13ce85ae14c5c316872080bd36f0f614f56b6dfc7ece83792e"],["7a1d69c08e68c80ad8b310736e6247a53bcba0183b9b8798833bc696a0fb6e2","3ce803a20ebb3b120d5eaf0ad64bed0522fad1a0f2ce39a5c5cbae98c4438f6"],["28acacc0bc41d84e83663f02b36981a2c8272ecd72d3901164be2affb09c504","7a5aee0b160eaff5b5968ab1a0304ce58c3d5ae0148d9191c39e87668229e5b"],["1f78cfdbcc767b68e69a224a077468cdfcb0afd6952b85bccbdb96d1fb8500b","4772ba173c6b583284eb001cfc2a124104833f464ff9df096443e10ef3e9dd4"],["2774108962ca9897e7f22c064d2ccedac4fef5fc9569331c27cdc336c95774b","9e13d79b68e8dc8091c019618f5b07283a710ddf1733dc674a99fc32c12911"],["770d116415cd2c4ace0d8b721dd77e4a2ef766591f9ec9fa0b61304548994ed","42165d93c82f687635aa2b68492b3adffd516beb4baa94520efa11467a209fd"],["5e6e4ece6621e2275415e1fda1e7c4f496de498b77c0b913073c6a6099394b9","3d92ce044fc77fa227adc31f6fc17ef8b4ec1c5aafc44630c0d9195075bf56d"],["6e69c717b5d98807ff1e404a5187a9ceaf0110b83aa15a84f930928b1171825","1ee7cfc3a9744d7fa380ba28604af9df33ac077724374c04588bd71fa16b177"],["404318f2d2ceb44f549c80f9d7de9879d8f7da4b81e7350c00e974ebf2daef1","3934831b5af70d17a3f1da9d2931bd757e6acf2893236264fc7e0d92ff1a1cb"],["20dcb6f394fea6d549b2e75748f61b7ec03b6e52319cb14163373a9c22bb9dc","106a8c96cfb95a331618b7416d1498554730499e194a58fbf63019890480fc7"],["119000f277ccee013e6bb121194ec1ab5460fb6a96eb702a14079865f4170aa","1737a32f5415e8720a5606ec1dd4756f02e7c6817e3723b453d091f2d192773"],["45d0fb5cd95db76d05dec3faa12e467a308eabaad363a062353db3cd2d9b749","ae08691b5b0cdd19ec499132421638f470f493320e4003d123ab1da761b965"],["1257b3e65cdfb6367c6d0942327e799bc66eb221e70c6573a9862889eb51c38","593309fd45755dd2cc4afd2b9316bc4638b0c5ddb3009694fcb7b250d0c8a2f"],["186dcf9950f72e868014a8accf14aa36e82a7a2a29f86ba37f6632da4189db3","55684c9f7a043fc523ed78f756f834b4db823d5e4161bd79602c17d55a5cd8c"],["58791d5569f282f5c3b01ecdc9388df7ba3ca223a2dc1eed5edaf2a1d302fb9","6298d7dd51561a045bb4089deda9f40b2865589ed433e56d54554f8b45e79f0"],["13fd87144aa5aa4b24d5a7bf907d8280d15937fed262d41084898cb688fc28b","3fa54367770cc4479a857411ddcabe86627b405ce1cd14ad3b2863bde13abe4"],["48118139445415f0c1879224e2dee744ed35280ff00537260402a1741ec3676","4dfa39dadaabecfc54ecb7a25319444f8e952782d863790e42a9887064fc0c1"],["4ad031bb9eda84f2fe5d354c7948d41558ca657a04508654721810ee72ef158","620ebd5d0086b92c6009a42777b946a351c2c7ba852b57d3c9905fc337459ef"],["4a34abb016ad8cb4575ea5bd28385d2348e5bcc0cbba90059f90f9c71f86e8b","4f781829ad83f9ed1e1b6de0e5f4ac60dfdfe7f23cb4411e815817e705e52c8"],["7fc632d7512aab5356b7915dca854c8b12b369ab54f524fbce352f00eb9b9f9","2ce80b944fc9158005f630b34385d50c3ad84450a9e1e529925b3211dd2a1de"],["65ed10347503cbc0216ca03f7536cca16b6abd18d332a9258685907f2e5c23f","3be1a18c6bfa6f2f4898ebefad5a8e844c74626d5baa04a820d407fe28bbca6"],["1a8abba1be2e276cdd1f28c912280833a5ede1ec121738fcca47dc070dcc71d","21b724378bc029a5199799df005922590d4e59cae52976f8e437bf6693eec4a"],["3a99c22dafcfe9004ebb674805736a26aeed7ed5d465ae37226dcbe270a972b","5bf67552af08e1e6e2a24bf562c23225e89869cab9bef8becb3669175a3c94f"],["4a6a5e4b3501f2b7bbdd8da73ea81ffca347170bdfb6776a037cdd74c560fb4","5af167ebb259c2da88740ec559ee04052bb66480b836cadd0e2590c32d7111b"],["6890d95308525f0bac9dc25cc1189eb92d29d4b3fe61bc8aee1c716ac17b1e8","e6f23f78e882026b53ea4fac6950e56e3da461e52339eb43d2fdb2dade7ca9"],["748f4cf4f027efdeaed7c7f91ef3730ff2f2bb0bfc2db8f27aadde947f7d4d5","3a1cbc550699411052c76293b8c41a3a8a1ecf12cbbc029a1b2b6ea986fca93"],["7321f3f581690922cd0dec40c9c352aae412ec2ccdf718f137f7786ab452cd3","5be5130c9277cdb76d7409452438ec15d246b211dd1e276ee58e82a81c98fd4"],["6c4d6cb7e7ae70955224b8a912ff57ca218635a2436b36cee25dce8a5cdf51f","32f8c03c6db3246946e432e4148e69f5628b200c6d7d72449df6eeac0998039"],["1dad5f2e795ea6fa5177f110989516eacf8fb37bd6a091c7c93f1d73a2fe309","56b2298c538180e99dea3e171dbb5c6fba0bd0a9ed40537277c0c2373a8e2c4"],["1610605baacc9bc62c4cc923dc943347cfece7ae241e746fbe6c2c878221dbd","431a82d657e0d109d00dea88cf3fa9b999845221b7b5590a20c40fc71368c1c"],["6a4f5c787fb09a5be2b04d2eafa1e6f3d3c863ee22960eb0b64f6eaf6659162","14dbc3eaea6146ee7eaace5a91ed9430dad3a47e9ca2f68b455171f8fe6a7b3"],["738415b73e55412b0e582e45ff0d7bf4b1bf2922db581783fdcc75559f40e","33825aeb3fd8459999eb418d15102ba5864b069c6ea517f0c6e9eab8d9aca47"],["2603e72ce53985c70782774057a17944f7b4ce224a809be4e2b5af3606aa1d8","92822921809c42318f42dac4d773325f41c43069e990adac7818a45e2554dc"],["181cd967ab4615357cc96c82eae9152ce7598c1a1dfdd91a458bddb016ae9fe","5d562fdaeb0e12647e230e50eaf216bed52fa73c6b7378821a3bfc4cd66d4ff"],["1121726069b9ef5954ba6490100b226e0be53fef3e071b7c58a1286174b789a","4b25594cf4e9eb2d14b3f52f2661a9992234fc222c0a0d44517cb77deb9c16f"],["e543663969b915337f105f80995a77b356f1a51d8b4a4fb12d44364130e873","34b2e3c009fdab4cb7349a580df2e64c0098a123280078e5da6623a9ec6b44f"],["4e2f8909bb62de5ef65600e61bbf969293815296b6e23702875e049b3ce5c45","3cb81f2c21f22a7add26fa38a9ce5d9cce1bb251bd2698f90c34ff0a84f7af"],["37b546e403a1ba970c17b67c2f1361ab9c803f8d2b5cd93803014faa08861ed","37079184ea46272f5809b523d060686633f7995167897a153be1772fd6566f6"],["27bddca77f7bd7f66b3693567a4238f2e6751d95b0bcb409f6b24d08f84798c","6417a85cbfd6fc02df560d3963a241a986baacdfa423f65d7227ce49a96c57d"],["2de71a39aa043057d1bc66e45f804542acddf18f7a6d88c0d7fb0ca240debdf","306c1ce39ab46300f7cca0f3a2fbfa77296a27e24bc66b0b8044968ec0ee413"],["307c877154364c0c03534e7327d5a88e1380ceef6481567ade37a14ee7c1a72","3404bc7dbfb33b95d922d0693aaf9358f77888d7d95e773c38d83dbe2e5f995"],["79f09ff7c60850e5f5ea020722659a1ed27db4c95dca131f99552f785c8afbc","40429528c099349b426ddbf129497176951a64a53db5f9d8bd2be0252cb22b2"],["4027dc6b56d446e5972f35464eeac85c5254ef377c902d9fe37aea841bb5292","7c3ea37689ef679fa2f5c7e031a78e23d484a8317990fd34d44d95cc1db3717"],["645dbf78a3c228c4b7151450b5e65edb58e71f37e1e4bc5f471e0f1abd6d9c2","15cfe7850f327b256e23b00627451560c5c6ab60db78d45b7ab286afb6f13ab"],["1503ca373757677ad1d911a2b599d01c46eb879d1ce21ae171c7e439846a85f","583eb269b7030da6a0c324026919de3f9489d2ff6ae0e6320c36f05469ad66c"],["66e1819ba3ec4ad4ae9f7d7588d23baa004e29d3aad2393d52af204a81626ca","505249980cbe6273b82ad5038fe04a981896f4117345ac1abcc67e2525c0ee4"],["5ec20dbb290254545f9292c0a8e4fbbfb80ad9aab0a0e0e9e9923f784d70ed1","bdb1ca3a859227cf5d00eaae1f22584e826ed83b7ccdb65483ed5213dc4323"],["a5c1a5011f4b81c5c01ef0b07c0fbf0a166de77280f0ae241f2db6cba15194","4444521fb9b33d7dfeb1247d0ee1a2b854ad166cb663d9dd2e686909362a689"],["1f35335de40e00c62642dac2fda8b30f071986ce4f11db849df11bc45ad4e0c","7801a2c761b90fd4477ba0be9a775003d5dfcd959b1ed198b4681f15e7acbf"],["48db4798cf6821c1ffb8178b1d3bb6020e04186c96aaf4670972d367f4ed5f","781019494df95b888f1578f1b4a3f8e125ea60eca47ef9207a10630671217a3"],["17f653d904210148a8e74d8e719a3061683c164aa6d79c902a19f185ab437bd","6780e97985932c3860d810af1e065d454b1cb4be0e7ffe2d8cea7d52526e223"],["5c4d0c7432f9b0070436240f9855adae1467cdc9826952ae01b68cd52a3ad89","1c5747f968ed91261b7ae9bf1023c999da9816e37de602d6a1a50d397752bff"],["6fedd7639fdaa2f7bad4ca0b391710f6f8a7e890250ae8ae4252bb8b39a1e58","436a215f655a3fd3778b2335ffdc9aca6b98474e43d764c1f8362830b084f0e"],["7fbd45a889c5e9d127bb4f8474d6be7cb9796bbfff923b75e42a1ad4cae37d6","484bd12622a6ba81cd53049c550d9ed682a8e765b656b1cbff9bbea637bd1f4"],["17d984d47937263f7966a3e7b1eea04071e678494bd749c9e02b48b3234f06d","7b341ff08722c4e161005d0037204a7a2001fdda7af2cc1a0b04a027f115a0f"],["7f1822045db45ea07e1519c3ee1f7705915f35fe4dd8db1e8921b5d1c740edf","33d41e06b93320ad1b3d9580380ec797a05dac3f1cc8008899110ebefde2f78"],["7b19453ecb74b7d0e2a66b9890ff73bfbbcd61a266abd6d82dbe665bf32f34d","6dba2355420dac582b1f349609ea1c89b89bba2d1a68a0642f1dd12d86e73cb"],["273e82a15f395ddf2489a95685bec8bac62c4b459d1b28987d3cb27e4bc9128","653375b48a4cf5d5b101c9ef533039bedce5dbeef3f59e8f168bdc99b06ca5f"],["3006c9e7fc6a553d8eb4e8a47ce9f10d1a39576ac255ae9e0a4ce3869e76212","65fe9e2ef2aae608be309332d464f57e28f1df5de1a6a519751b056971f932e"],["5e8f384c8a4607fbe9789fcc52d54249d304d698562597d114c1d81452d3dee","3c8bc78066b5d947dc1e405e326ee55ea606c7988f666748d259850fa259a22"],["7841b2102e9aa103fb53a642b3e167b21113ea44751ab38e0b5ef8312654db9","71bf5c8308fcf9c4a7847494cd9bdd946fddf7d3a37e8bb0b201ff2343deb8e"],["40f68027420c11e3ade9aae041978dc18081c4f94943463aac92d887f922a62","499c6062594a6c7e21a3cb91ea451813393bff365a27a08f1a515439b83cf42"],["6ce77a50d038b222634e87948df0590b79d66087b01e42b9b6d8fa30ebb1465","35f5c46bb1be8555a93f155a174d54ec048c2ac8676e7c743054ddc52709d37"],["604f8b9f2dacb13d569262864063c2d4bb2b2cd716db6eeb2b1eeabc57746f6","68c6799e24f3b44eec3049973445174727a66970f1614a782efa2b91ab1e457"],["73d620f3bfe77f672943d448d7dc05327adf64b8e7af50039c469d7f7c994c4","4859deb36eaf0c802f0d1514602368143a33ec6ce8fd55248b59025debc6afb"],["3fd2bcd1c89d706a3647fbd354097f09c76636e93ae504973f944d8fc3bcc1","677ef842cf5eb2444941f527abec567725e469469192354ad509a26ebb3d0e0"],["39222ea924ac17b533c72ffb2c47ffdc11d6a7f7c70fbde3a10fb0b8f35eb2f","20dc4bd1089019bc1d7379b4feb3eae6eb5af59e9f253845da9fd633057e952"],["326f58994e1347f62e4102183215b5db956378d2f61f14aba4dec94577f53c","7a03284c296003bbe05178a1d82efdb7b8125511d63e20e50aed789c2e52e1"],["53aa8939c74d4ee58f03bc88bace5a45c7bfcf27466201da05dc6723a5f5632","2e32535ca7732904a048183247b04b426ecf9b39fc393a9cebe92fb1dc7a7f1"],["6cee1a03145e93b3e826e6067005f09c06099c98198c91c222407ba5c8c132e","beaecad1274e7c6e5476a100c271aa1a6f86ee5a9fa5c2f26124d5886fa63"],["3ec659b8175e1be1bd5a252108714776b813e330393f587814f5f1f32a73332","529a5cf9f8c237ae69a94217d173c8d19c156952041f5c980da557990863fa7"],["3d66ec5963d0c534d4139c8cef2e1ac48b3e7965fafabf58be26f903318af4e","3d3f2de7a95f59b683725ee6283cbaf31f97c4b600df9a4621413223a468740"],["7fb38ace8e0932fac2ea0d3eb676db8d684db1817e2e4d59da7996ce398b4a","68f92bd5768cdd4710249f9d49ef1d5654e497b9a4ba10bd2971366d83fb400"],["1c4a49314d6b4969cdd142c76ceb7682bfb868ace7f7568b0fc8635bda5a9fb","5fc0519f1f4cc10b5771312458748c036313b87707ed0540026ac64a5955aa9"],["3073c95d08d3b97caea5f0be16b2789bee766f76b7e5499f8ce8f96abb0f344","52a8974b4eb9a1f6a0ae2c83cb4715bf18d73f057255fcb3f63b74f7e78f590"],["44485b16d597a5de3604df6f7ed7e00b8aeef9e7e8dea8688255153b8bb16aa","6cccb0ba170123266f24b5d93a744397dc2c44820edc4f8f5b9a0f5c9b3b940"],["7618f77b7b32d512688dd62e0b48231d9574c6361e8be353a7dc04f7c3a115e","78ffcd16d80636381ca231aae70d99c9e20298b4f5388fd823ea9fa2b8ddfd9"],["7dc82fee1ef95cf5b3720fcc07f63246654bfe39762627839da40e51c75654d","4c0ccdd70955da74558de20c88352df8a02aa97e4d5971c500e884740a8cb62"],["7fa5d460dc10cbb418b444d9bde97e92c70a99a222b99f244dccee7e62cc04c","636163901baa5b7576c38c43407af578b8c4607e01e86011ae2dde587a89f84"],["758930d46006623a756c89bd0cc378f6a3c1f43c9a0edbb42274c35e75c16d2","1d74dd9f81c2fec811b8cbd6168a745b0a111932b2a345265ef2853b50b6245"],["7332ee0626b044d664ef228f8cb84df7c643e52f6a2591ae1c9007ad61ec16e","229bd8e630572cbdee54283234cf3e9f060e6382f99943bf234119d47b54470"],["78a16ef803aa20a075bb2f66c61bb2dae5698bebb94a0995fa74c3d53de1614","246d588b68edb6fed96c128349908c42dcd64c46341b205e79f4aed9b5d3675"],["6e1933939bd03b67bba753cc0cbe7d2f25bad68c993887ef8c9e2fcd59b0647","599413f7c204a11a5ce315eab11299ab7326603412bb00bc1c59ff75a37d6b4"],["4a79957a5a1888ad063b51c69565a2b48e8eb917183e220a1c8d3374526d30e","1f092de0e069bba7fc5386e2e9a114c1618f88c4b95e220cd35ffe96f99fcad"],["3148aa3df9ece39aca84f59489f2710522216f14be6055ee0027529d1d55e2d","617e9a52a92975db0ba1977f71116f7058a0d31b869ac7f3ee2fd80b0c5100c"],["5c1188e72384160ae39d07328346cda4f6c12d227448e6236f04dc971625287","1643006eb3a3bc6aafd5f685cf054f2a572e6ca58c0118bcec0b833741f116d"],["3f72efc93c9b71adc4c51d8fc69d3940b20d08733af2b7d05140fdb1d1c1004","7399259987c8f4ebfab46e522380707e58427d3962ee0c2a91760813f76d232"],["3129b34c03c51aa8f611e91d5cfcc9bd3ef108ee66e6d3ee35a0e0e50055bb","563b18b5650085efb4cf179a029e6afff27b1d3091cd28eaa68d24fa1f801c6"],["16eac0f9fb4c67cf89a7fa4ee615bbe731d8edcb709a1b9b50c7d873a530f52","7ff8288b6e199ca8f316192881424a37fb080c29daa76b1f0edaccaf580a80e"],["75f6b6028c43ce832f65d7e8e620d43b16cba215b4b94df5b60fc24e9655ee4","35e9ccfaed2293a8b94b28de03bcb13eb64a26c831e26cc61a39b97969a2ff0"],["3c6152fe093bd6316897917ec56a218640ec1b2148f21db9b14fc7a5ff362e8","6eef2df27ae7d63a28856b07b73e7aad7ca94f317201a1e675ffc6f9a1710dd"],["54e01b5fe4fd96052aad55b3f26b1d254dfc7e2525fffb9ae0a77eb8cc5579","7c3d39232ab333675b219abc766ed9b4782c840e6b046614dedb8a619696eb0"],["d1e63f8ea8a76429cf254a6d3b668761f0dc572d4bfac4fd56d9eaf58fb6c0","2bd0a84d3908a63085824c9329a0983913006ba155b56a58eb3f9becab29c45"],["2d6122f2a702edd4da7385b1580796a71d13bd72be94cfb3fec01149c006c2d","70eb282fae992efa6f5915e578b640653549f23385ef3a29ab29b1b9b8ad63b"],["752fec14beaadb5ddbba6b3a17fcb86579fa588ef407fad0ea07dbb22a640d3","3feb6728eca21a1e84e8f9f23010387a53a96a1cb62d86fb37996150a1299ef"],["63f94a92f27acde8f5ed949b459506f51d70c85bcc61a34d647264ecc53c65e","37e5dce0646ee66f4fdb93b82d54d83a054948fa7d7fa74ab6b36246fc7383e"],["d6aa909287a2f05b9528690c741702c4c5f4d486c19a46c38215f52ef79c7b","5ebe1128dd81093df4aca0df365d58adab848d1be1a94b95eeb649afd66a018"],["12866812b3053e2f7a9572bdaf5ef2b48c6fb62a0eed9ff0356df50e7d05557","6785f7eb2cd1c120e4c7167b46861d10117040a2e9f2ca86a71e9d67df90613"],["46a730d05330b1b13673cb8a1b8f45460035e4a9f1a1751cfba099c4355c1c","76fb0ec6cd16a8141cdcd875c8b2de9fce42d296072643d148ac7e7fa7472df"],["4bd4380a22900bd34835e0a908eacf4b6edb61eda0cf483f9212453b37e7516","5e9551cd20d8d7ddbf4366880b7d5267385afa1966ff30da4baaf273b009d29"],["71f1994ad40baa2922424ae222663a64f93d8b67929e9a10f9e4c1ab19f3833","85320fe68ec0d37cc19fdfd03589d66906ffa4046c80e1b094a85f27676346"],["5a63b1bf5232f28f808765c6be7ce1f81c52145b39f01c879fae0f4303bee61","3bc5d6df68bb6d0577bf9ae2ae59ec0e9b2dc7dd56ea179fb38a41e853db950"],["161ded55ff1087032381e6c1449704f63ad2d88df82dfc44a71890fa09b3941","78a52e0013842037274ea75daaf8eb4afc04ccc4b07bfaf3f5ee47d165e01b"],["1bfce5229c5fbff5c0f452a22317fcfcd9262f23df41840f84fe7d44cfba1a1","66b387872c00e63c73006a955d42cf49c46c5708fc9d1579b9ae38341b24a3d"],["56d47dadc9cbd1dcb2ee3efcd5d4af5e6aea71df10815c68b54a14e81d11b44","47e966ba54df48e9b612a903685e0060a67e4725402e8cb4cf654e54e813a3e"],["4b1c44438afd4ddf20a2cf612df2ee494ce84c7274c5529e857693e73018491","430403bd31d8f0677e06abff7159384560f27b9622943fea1a3192f14bf40d4"],["7f7281728fc2214aa1dbf13176a4624b53814734abd570eb6ef7c7e32379606","312da47be347fb3fa2c9089b38df372560dcace2effeeacab4d96ab11567295"],["16a28884a1be8183e0d3fc0db84a9afbf47126fd3be548c2a584aaafbfa7dfe","7c3f57b3b895564ba562c1cd80b71fda6d2e611665c6ab87744f5390858fe24"],["323339f37b327a731232a9580e79952063c7c232bd1380146d8a83c285f4b8b","4f16be1d983c7232f92cce6b9690695978d42cecc8eeb8c206e125d1098a265"],["624d26cbaa197e104eb83cebf2adeed09a5cdad359993fe5e3529d4d0def21d","261b7da3cfb55c788977e0d8d640e3e93ae5a325d962ce85c816d7d32cfc430"],["f24ecb7ee83a3e28dab54a330dc93d0429a7aea36412e922dce8fbff40d60d","b043e36a258d1df1d21b0cc7be9c4dcae1bd4ed326c110e668ac23d86805a6"],["686cea46b710bde1231483bfdbc700cfa3da6ecd5841c0e0c782f9ea24328ec","7eb7407aa58edd6911c7c7e8d1e03bb52ead4a2415a0c33325872ff3a521dd6"],["3866ee1186264549df3dfcdf8705c0380c9372eef6d4081c2454d3aded1720e","634c6d3e8eb8af652a4be73e3b613452c2213104ca875b66b4b15ee5b1716af"],["484c687cd2969a1d20a58cdfb9a60f280a473284503b1ecff5de514aaf8206b","34d44d26b7427e51a646d1b924084762f5b461685450f21d6a472de565bebd8"],["203561333771fa0fe22c4033349f7b877d15b0542a5598e81e067968768247a","2b6a533aff6e2163a36a2a89cb7415848bef48db40f952ffd380f47676707c2"],["2ffa6cca6233695760251206fc5e34c8d3692498589478cdd3d5b09f0b7c05d","6c57d605478fa9626c4ed769554d075daa53e1a1d0bd4d94174d3bfeeb11ad6"],["5dccf0fa46a5571f204d0b033b45f299cbb3d9f80fded57253ea4f1c64faaef","30a38e131ee8756ee5ea2a3e16618a5dbc28b5b9311308bf037ecc2039dfc7d"],["57b0a2eaebeafd950221facdd24790d7d1ab8883e5c5d55635f0d14a1ee4741","7b41cc478fa6be38417271db8ed12efc0da6982552c1496025d2df0576bf4ad"],["611b5725101f611c387ccaa13889ecf3bb5595071a179ce350029bfca4ad7f1","3129755977abc8995fec7eec1123a1561e429fde37ff36af002d3211831ecf4"],["1c06bbd0c52fdab9fcaf680c7a93fb821e538a2ed79f00f3c34d5afb9ea6b31","3873d3bdfe0be0157bbc141198dc95497823cc222986d24c594b87bd48dc527"],["275cdbabc989c615130d36dabfa55ca9d539ed5f67c187444b0a9a12e5b7234","2b7f723e68e579e551115d56f0ae71a3b787b843cc04a35b9f11084b006521"],["6cc702eb20f8b5940c7da71f8b1801f55c8c2d8e2e4a3c6c983f00bc1ffdd95","5d15b3727bc66f3aba6d589acdd139fae115232eb845abe61fbdfc51341352e"],["44defb418700cee8c9bd696b872adb005490512d8bba081f8f99a9f15cc981c","3b2072cdb1d919b2b65b5cb3557f0a3381d7ca293c267ca4a38f83e77bcc96e"],["fd83ce77b1578b3a9b8c3cbeaddb1504d2fd4a19c901c21ac65961224e4966","110cbe64fc10c6b9c66f15ca406a35f50b723b35d83c5eb9797a57f8395f4f9"],["9dc6ff90e341875e113bbfb507724dc7095a280d2f32cb6ba61a1e0c2d2aef","4aeb622896c852c2747454e8f172c9482955a42ecbe522d6ce07ecde79d0a51"],["71c58b0e47b9dd9107ebd8a8c8fa9f0534e78231bac612c1ddc7a94edf33eb7","7f90edaf4792bf8334adbaa0f4ee7c654312725af188682d75f34874c4eccb9"],["1f6de1f14988778ceb2dfe844f92394f1f1e72fd1581ceb3bf336c95ce50345","4f6007ed4e022d2ee9fe4ca8207c5f6c766c4f3b85260e941fb24ad0dcbf0bc"],["3ddc3ac25ede4a67a97547ed27dc920239b585fb3624177e2e8d59eba678115","a9afd8f8bb759cbd1dff2addc63f47da4ba1291ea34229c09c0637dc5c8d24"],["c56b0269d8431556e471cab9d70edda3a37b391696f107b2dc370631de51d","729c52f6b134f733eb750c14bd9f95c077f0f6f6ff4005701e5bedc6544599d"],["44d32ce19ac6807cb22e4f25fe1486a36a13926f147fbfa054b63ff0446177d","212a21e8c124c9cd37c80d2dd66913ceaa6b6f666522f115c39382b2d5925e8"],["35dfc16f3ae6ccc06a267bf6d931601e52f3e45359ffc513570b65b96adc4f","74311d10f4bece01b5ae65a6affe5c931463aa1b73a3320eeb41bbb7bb1ff62"],["e0acd9d2d907031b319b80121dc90699d003d220ea785d50e5033cdb3b1a03","3911ba78d6e507485d6374b0f7d2e6198f6462a7d6d3cf046404a07af690357"],["3c57918ca254c0cb7dac251ef4e10c7d82327969552eae15d26c4c52660922a","5fd5f5ff3f14e671548074114c72c48409df8a2e71fc8aa3c8acb506e2a88df"],["222ad8b61e219ba2b581f606b7c996516850a46a3db72fe1f72b5a9be6c324c","72015a5e2db648112abd284fd867b59fc5606645177d26cf6e9a655c9912d42"],["3c86d5d774bc614469768ad38f7be9a53e9a233942c5c553b82e49aae684764","480febea8229e130dedffff89c11f3c43e11724e6bd89d5566d78752859d41c"],["adb73bb8352d0c10175df371f7868ef2c9e0c79ac788430c480c0f7d85c187","60b564785248111502e6f39c4994d6293fac22bc25f4d764b2fb1957d3c9bd8"],["3836ab8b46cf4f453a22532c886940b982029b29c42adca90ded5bf77e6bcb9","7b15e91d6355f147b171a90b064a9d8b2d7bf3699bbf4987664c61c950d8996"],["12ed96af1a97c45ec31f1531e96f6fb28a03ba52ab8484545fbe0dddc97bb32","6d1f522b6c6cad0940cff8e23decc72bb8d4164696af031415508b025aa8be1"],["27382994ae5878223ef802e9b4882f481a1b4008f1eec8484483471f7aa742b","c31750d242b3975b0026a0e86ccdd17d0f680a8c6f53f197fc25eb1f777917"],["431677eba3715455bc235557518a74f3b111a88844ef13e159ad44bc16de3e6","30000e1eb6a17d9df776981e65c6e500fded1ac12003adc9446b269812c9197"],["4b563e6f42589671579eabfa2cda5502b361c46a5ac8d45c8ed44741a925b33","627bdb41678443fdd1aa607709e9699b652308615f4bea760a3b79ee0d9ab5c"],["2932fd3f81fc973ca9def6b7f1bb50f980fe589187cfe9e9f52ba4d356cf2c8","1e6bfd00fa976c4770263a227048214c38850fe0f059e7b3d2c7871ef07d68f"],["e44e4f3d96d9dec775b996be57e57fdc28e7c68023109b221c414a244a0dbc","58b1e52fa274812e5184e00e9ad812bec2463140adfb4bea3b2d665867dcc9"],["7fcb89be1f4bec745887bb891e53fefd665c53d00a9e74de16b8a7e1f7adfb5","74af0b06633f779897e199609c71cc5649bbb65bc2c0abd4c678f0480c198d1"],["62a381ffb904ea3ff4d451d4c8459457cdbc3dc2fd2da646a95d8c1e90c0b7b","1ba058658e09db9e319fa73de8ab4a992b71e4efc22c273725bdcab84e2a315"],["1b0fbb7a84c67e668450a54449c7a46261a2d355589f8b84ebfbaf9a77ee938","44f8fffa33dd33a6146c35d196595e22cc4a215f61ee9197cd751400970a1b"],["78fe920bd96a356d4d95ee34adafe8fecf071d3107c36f047b4024ddc4b3eea","6162f29607fdbec10181fbac6e57d5cb41b922c5791fb24bd28bcdd75d16c41"],["5629b849e026e65d119ac11821d7ab7efd9c52226f75c7427505d6818bb0c8d","1539c0f90970ee8b490e45bbe5568170e5708521a0e59f976be680595906feb"],["62bc853f349bac8c6e5921d27ba85dbd9ba20a375d70a7bc008928f3e123b04","6acfeb1de05ba43c3ef1a9110a983a320e77b3ca294abbc04aeca19b194f26f"],["4cf4bed663464418285cbae359b5d84ec76b5997d24f3640984c7663421190f","941f818e3e3e8fb1568da85217d17f9250ebc948379014d900a7b1a848494"],["52ff3d9ffe9a302f6dfaaf74bab57c08027d5cb699a69b30830540c0a2d47a1","987dd8876873778d933fbfed37aab2f7d6f669c37024f926b1edcb2ca55782"],["1109ee32f0bc53de6bfa457060b366e909d7c18061ec9845f46ac715496897f","38f36f172bdfd454b9285f86e6bdece8fdffc95182c7d801b03c671cc55139b"],["4b4482f1d84efe23dadf3bb10df3dcaa251312dcdd604f616f1eb540e1f3232","7c9c149dcae9135f940fb54482f9c3cd8193721643a6e23157b8020410d439c"],["69cb459b9e415b7581ca163611c470d875971d5d7949de732d1f0f200544a73","a7136fa9dd00c0469863b7def3f83a5611ed628810d7e807e7a873da5a9897"],["b66a4e32ac9a4baa8f64780acd94ed3628b2b0ea874ba4dece629af65f9e62","24328ba9996a24389658e3467b8b90dc3927ef8419fe28b3f55b1c1aaa51915"],["5ecc3080062dd451236de0e4eb91c5c75100733364bc5469f5fa76f79021ecb","6da4abb9031a27b5be94529324fad8026e7d871570780081b0f424d4fe543c9"],["1e3146f00880bb22486d5bc73e54367d54251f4002bcf342d0393b05a4b9ce0","23b6fb8e945d3205f633ba724202db5a99305f807137edf942cd60eef867699"],["2e1da8013285598b899f026c6974185db12c97b4c63509769d3d4ad1d18a4e5","1e7e7b668674d1593c39d58bc7bccbf568208732b3519bc2cdf93db34366862"],["d26c3f389d81709506f184b53871497c8d36c5c9eee8e3737358204c1acba3","34649c3d39f3b825947fedbca215ae30c5a5995e93b1c8efca4944cf85a082a"],["91300478a83595d548f32f259033291fc7d083953b0b8bde88c7559660c563","e5d2bff57fc6551e9b80c06ac7314a71907cdcc66ce82f2cce721a670df10a"],["1f7abcb9d462c63ffe92aa56619ae8590089cca4d93ee3e5f34a63882452cc7","7e9f85c7b7ca6e9a4f3a026d1048adbeef69ea9d876c6f647c257b879a81bdd"],["4d2caa1323012e4c83b0ad387308b8aef5637bc35ddd882e7f5e41cf2ca410f","47150e808c81a540b6f8864e9d6636589cacaa516f82caaa96506edfbd6f0e"],["3c10a6083c38351deb3e6d1b386827d0acf48979b66b95249eb8700ec26b069","47e34bfe561d903cffdd1d849b85aa3cbd31cb4a9bbd8cc2e5fd2f95016cabc"],["758bd54868eec045d0b4d3d2bc415d24bce13fee47cefdfda46425c109b657","3392a7c66ea3bd7b044680bbe9f78ae86752097404c067e9d2572f55330df83"],["19e718e0ca1d2d6fadbc6006ee7dda7a385430e29f5e239cdd4bb7c3fdcb2f8","5c68249b7fe03ea2e13481a63b6cd4bf74ce42009a89fee0b3f8f968b3ec709"],["28077f57ea62401806367e6d54fe45d02de5b072db787ffdcc3854e12a3e855","14f3762689072f5fb41d03e94b01808c739f6d42b7b785b0e464100b150efd2"],["3b8a8cefd017363ce867265af3293cec081fa589fe561830f0078778cbd338f","69ccf2383cb7b4f9c806d72535812483e7c5e9a1a5928529d64ca7e085e758d"],["77878f388d22161a2953e5aca6bac1ea480e102f329574b4b201640d44a296b","7eb35706a90a03aff7c2fecca72659136547cee98038746db5aba16fd7178df"],["97332e6da70961f2ef31b7b628f1018d21db8db015922a301fca7d6fc6a8e6","2e37b06f639fc7a82601b744570a2619e543cbfaf60e474107fcaf4686d3223"],["a81518d452d3aac48bf0386c3ff170ef4e684a4def242c964e129c64f4d647","37506e44c85908ec7b7adda9547fbdcc2e3605151fefa77fbf127ce3bc938f2"],["e80336b2220b1d666074f6b0dac85353d0e4c2e8bd0f37055a2236a6a9fadc","1cae76d73eda7a5964c5d9d3ad6748aff51f5543c56441d2fdb7b444a39846a"],["2c01fd8430ecb44e066f352c4f697fc9fda177dbe162f82862d7b9ea8c918de","6e1dfa99640fdf5b30603d34c7c97c1aa6e6b7f3a2c52a21fc64b0fcac7d591"],["744e37b511cd0ddcfe15f3581947014c159de81ed055d15a13c7a2d1fa39f0f","685caa8ff6979a6c63640ac638a3f9c75737f2031bd55322a47384357af164d"],["40e627ff84e1a7a9068b4368770f5956128a4d9e9e33e9cf5e24d9a242149fd","2465bd6cb20bbdf810e2bc5c3c458cecf4f3aa163a7ac99c2579e5f33417f2e"],["5f635af7f554a17bceb6ccb6e637abf89ab6dadd399189b0a0390e87b1896bc","2aa6238a69f89665646c0e3ca2ba5f709cc6e14351cf71e1b00ec45201417a2"],["5edad3063c9fa8305978d7e6a4e037c9fa519b8023c7608dfc3b66e5c1e8985","49f405d07d7d01919da51159ecdad1031a5ac208c026fdfc14d38f633d92183"],["2fdf2e8a45858c12926a1f25a62255fb2d02d0149a15ef669f859806683e649","61cfb686bb31e2524470d4ad2ae09e3cc91b16305a21d748098feb1d8ce3b3d"],["ecdbd7c37f1dffa3943977278da3bb429afdf948b4ea6cdebace3d3be82381","190b67fb34f7f3ad6afd3d6b6427aa327547d8ac0fb4deeb0feeba1f63d6c60"],["233021b483f578dfa5222f8cccba5766ceee0ac65f6d4a3b1673b302a21fb3c","7d4b6d44d175d4b593f06f5a6dcba2cdbc4eaa2097abaf613123546866cf4ef"],["42db4e953c2a7a743de9fe20c5798f2247f51db4eabc6f40e86c13909a310ce","12c1a0764a0b9f3666e431923ce15e7fcd0ded5ab153f0b48d362cca1604e65"],["30d539e2b545fb957e40e2255f6463b52d227c9808472cee6a3d521aa283a44","5f9eccf747fe6313570f99e845db32b40070acee9ce9e34da7f3c29ca53a07a"],["4bd64e5ade3e2733580a6116b4af328751198e7128f9acfe3a3496b545efb5a","4d584768900dabfc0dbaa086632b8051bb3905ef79b84d96c01514441d0cc93"],["62d6e771f02e591557197d13c3e77dfa2d1794ac1808407bd8227c4be31b466","5c6f5607c1808e899ba36a425911fa8566b7ea9cc80de8a80538c0fceb837c0"],["5ce406218cb2852b1d2fe1836b19462f664631785216e87ffbce26030e2101f","5225f107743c255ab50e7be4a090fe39478d1ef4ff558468559d8cfa87bb94"],["670286486e8dda3dc66b0ed3149be7697d3e06c8279844079daa7e42d5af728","26becabe7430380c56e320f5ae3329569cae7b0af06fd5327ee23979d200eb0"],["3ef448df33a4394c43e93e5850cd0c5a6dcb18ae1cd865d00fe8ede9336a9f5","56711f6ab7e0e4f7365ac34e284ac2879f40208c46f6febcc1dcf7146ecf015"],["4b63fc130288e92f2d6ba238caa7a6364804e29829ac037c57df32fbf762bc3","1eb8c80af55278b4113286c038fff2bfad2da62763bb03426506b869139da0e"],["4e7e998557b29a95f805a6e2e26efc1e970108272d4755738c04f28572295c0","97cfcc2f447bde61bde71049d8200a74a3028b21703bc139143d81a3623f09"],["574b67898f02964c408f68e9470e7b615be037e40b824e6617f89cb56c21219","49392d5f8e6740a1b0b7444f56d7a17363f8656c6e4c628678c86223f2e46c8"],["7e8cb50ea5d5c1b09e219e7305bcb601d99b6d7185b1c388aa8e36fe1e56554","47fefa308645455c12ccb5817da338f0c4f423b341aff4a9d158891a4fd69ba"],["67266dea9e71b4ed2bf24a597a823dd048cf31e725db511edceac72998c9ef6","39babd65850befde1f7c28e41dbdbb4caf82bbcf3bcb5b33161f1c2960b2d8"],["63e99c2cb9c74eb9227d48065e27abb8f606df8fc83b2c44e4ea38b046bad2b","60494a53dd13ecf34e08079d343c88fb655d6d810785af81f08d5aa9bcdcf9"],["3cf0600b0f5a2a4eb78c487cd385350e8c7848e3f6983231881d7f1bbe28543","56dee4288528de609976ef6b903b652127c37b0590e91a2fdbebc3f11df2628"],["758f09245fa4b8b23d290ee2b3bfcede199b4fdb11f3cf2502a8ceedd61b129","622d9baadfde781e985d9722e0a04715666769a4cc7a9bea0b96d6386be1746"],["38e1a45b81492aa95d7abea2b08b8c14dc0b8a41108b036871fb737910ae18c","145c611262656385e5ed6243568cd3f9f59dbfed7a01ba11e22bb8bb272e08e"],["206e54ca53a2f155bd4fc45bf2edb77798ae6623defd4cf22f2dd4a7d119dad","6c94e7f0825ad81680e4cdbcaaaf4df806d57a0d1fb2331926c3fe2b79d22e8"],["56e98d2862893caebf66180e84badf19ffc8b53041eaaa313ae7286a8fac3d","526306f9c01afd6e0c1198ea5de17630f5a39c4ecd02d8e6f0d613c355995c6"],["4fa56f376c83db33f9dab2656558f3399099ec1de5e3018b7a6932dba8aa378","3fa0984c931c9e38113e0c0e47e4401562761f92a7a23b45168f4e80ff5b54d"],["450cfaadfecdb8a2fbd4b95c44cb1db723ee5ac9677c9c188b3d7c8eff4ca58","1a552bdfc0c81be734f1f6ca9a6dd3ab4daa61c11fb53ebb7046eee25d617c7"],["6fe20e5c8a8004e33eafc84d16ef770f2f0b7bace19adaaa150f987d295a34d","28a35040a2ebe9a14a162d3208d5eabc6e2f3a8310f926bd80be65aa71775e2"],["1bd65f45a35bf62ae8f9ffcbd7de2976b90518b6820c219f039c50043bb1edf","fb5f0f8659f9b6ed7cb0ddd7999506d0c20b26bbe69d1915a31842cfac41eb"],["4ba4cc166be8dec764910f75b45f74b40c690c74709e90f3aa372f0bd2d6997","40301cf5c1751f4b971e46c4ede85fcac5c59a5ce5ae7c48151f27b24b219c"],["21cfbc678f5a279ebb6ed124273c8df37eaf12a2d04180403ae6b5ec0b1e1ef","4478ed6a346d899ad7b0b10350270aad39ddd5b68529297e4c91a54357f0a7f"],["350bfefbe3d864eaadac9cc1195c14159bb736be743aed7380d2384cadd2046","5e2a4b3ad0e1d7b9b8ef72b10d68a80e5ee691d7db591fcfbaad6240d41da8b"],["529acd569127f73c8d34345f87e96cebfb48ee12a00a3861cda209337ed94e6","3120671a89b705e5bfd99b0e7fd2118b4914a3ac309b3d74527cacb5ad7491"],["55d3d7956a97d10e65a4d8ffeba40deaf0db0b57f8e022cdb3df6df613f5c6d","159e59a6f92f48fcf85aa96c1a03749a4c4e2cf9e2bc94dd36796daebd9b8b9"],["405f019ee8f2e972a005c549b0884b5051f63d1e78480b73208dc07d8c65a1f","4301a3d0c285ad309ff24a12c100ead7f48ba1368143712f32ac141ab4d9e8d"],["376d59b298d982f02dccad0edd5bbd4e5e8fad7898750675ed0856850a7babe","5233b12bbc50564eb61cc098a17d3d97f06ec7a230380e4c5d3b725cc318eba"],["2f55624af6109ef04b2ed035a44a904ace8627f55889f011f768aabf4de9a38","7f64209ce7dfb63337ccf3d8c14f4093295f86996cabfee23b1655549aca089"],["3b8965e942bed2714bc2e685fb103496e1e3595ac6a343d6df45fb5ef6979ed","5b7cac7a165cb69ae103dd9052fb39c00ed0aad47989005aee53972d82d45b5"],["7abfe3accdec1eae1a50049efdd9a8eb7c2921a08e8bf1fe606e9d5a4039ec4","3af178e7e831f8148244d2d2b284a32991852db6212ad0a9d77540ef648a5fe"],["4983196df6ad7d6f0a8d76f86af3863ad8611374a03fc0fd00793181dbde9d","204c1f91b70f975a21d24a8face664e496f00f602daaafa69a3b56098a4cf89"],["79e2b91c1531a3b16dbd53e72d94e16bf265cbec261658151acfaea3718ea72","3d9bdb47e8b148c1c5e9e694ffbc2cf71aac74ae1a85e8d8c3f77e580f962eb"],["297efceec61b3be17565843cae465c52524b4ecd9331a4170f54f7de8c4556c","6ccef1733624cc8b973ac63dd54e7a53604929affe81c3439525ae5ed6af993"],["44f04b1966264a23ccdc870c8563ad2efcd4c8087b5469b90e792287a5581c7","1c417f0e9829fa3d3cbb7c3cf4dc7aac04c5bf66ff3f86b833a42c533aed1fc"],["6ff83f5d8b51db3be0bda80eed2e2adb7037f2f58f705e88f0f98197431ac26","64f59b8428894c2b7afd740866065ded42e716c7d48accd3f117f22768ed9fd"],["14aa8187c9559f77cd1cf96b2dfc949182529936f2b0b4050ea56e134073b24","5f36508c68b1dc586f3fd3f4e2bd29c6d8258491b8a6aa19ede811ce0d3d0a1"],["95e8882a68c5000d1c2be7c0b43e7f2a6f8de906485241f0285a5c73a27a83","1e4cb67207ab73bc1e5d19fa2146fde6d03021393b77a55df4ddda1fd28f5b1"],["2ae0704dacb3da47d564514b4c3543505b403ba09a248c6e74593cba1867ff5","5a4b5818088dc9ef4066b90a8893ae80fc89584f987ec1928ef9d72cea2bd67"],["61a10898a76fb99989e51c0e823cb60b95ec7ccccb917c42b2b28014f5fd94d","23d8ec1de45366d3b86c64c2da05a2ce3d171adf52ca5522e652ffd0eeee795"],["79884133c879cf07734976fd64de220c5a972e04c2a3afb74c362d6c3beecbf","2aaa0e6d4891b792b5643fdf09873343cd0e3fbba3cbd0601b481a4083f32b6"],["45f73d2fa82be6c5ccd0f62d2237efe8727c479967d27cce28e42b9a44bad5b","2fa4932215f72d56d8be5205c5851c9b3e5f2a14468e4a7acace5437c6b27dd"],["37f53f771850f52f9c8f87b53c6bf0c93c2bed76f5fd1d5697356d0b2325007","50f1a052b79b446fbc7b93ffa1a4515f6c3be3a76a2b0bc5eb8ff327549960c"],["71bd6d23e0d2f312d47582efa609101f15b9ccc571fca8ac4fe3457c67fbc9b","3b3fdf86bd4c7fc26d60540a6439b4d179dcbf7b91efb0ddc60dfbff9a148c6"],["78219ba049438385b829c13a4993874a4a326c4143de0dd581c7b9956f99b06","5505f1268dcdd4ee01b77abac3bfdcbf3f0513ab097c69ff777b4a631aaf256"],["b81e924a86536dcf68bc5a2ca2065a61103ba6c9eb0ae4cf8cce9dbe286f15","653a6dfb51acfe8a844fb8362795e5549d424aed88d3a090366a44f840b5b83"],["441c0d7b7aa705046dc0e07ba5f33a7d9df23f694a05192ff8c2d7be2aa3fdc","4c06568c0902bb99d428bfa0a946ed0f0ca0a51fbf07cad88e06e9c78e38a59"],["2569c8c78b6d6b92533f29f767c95720d377fa63ad5a3b9827ee0a74b0488aa","4b59c81d3cfe08834f946d9d57614f5366e0bcd9349475aaaebe01341196fe0"],["3f2fa285a0471647b214eac652bbad9d58a9f2dd2e812aff0210d0d8a6eb32f","4cdb18e1c2848c2b52c1a6557165bd1a8f55c2f7562f5cc0b326f73c25b696c"],["5bb5141ab4fcc5290ae9151b8045a2cd8391547ce7b3b33cbbb10f8fb538092","5a36bfd52acc6a83a9913b937ec086cc27fed030b5fa70dbc5d3c12c9515f56"],["3f3fed272edf91aa7f8ca5d70005d390fbc67830ffc69c5fa3ae17582d2771","459057e0883c44d8776fa217405f443e5954f08c4a5db68e437becaa664a999"],["5237ca6656237a717a739a4509f70db1b9dedbb6cd232f60c9bd8c4563a6b1f","56c7799dd02896dbe7d69dd8bb9718270549592099569d107b7b49c34bf5a49"],["1cf6b8499ac881e0b2fc7def9bc1a28937033b2fc52de99e75909a620c7a281","5769cf4f735366fa386b6858043dc99a100f86fbc77b16d57d77766197ba27a"],["1b74b8a6b86dbf9638cdb0601e1a332b8d880753423d38c3394902c57f15e40","6bb2dc10d2ecbb913219d0ebdc8d3337d644ed8b6c4e70637ef4c7e50887488"],["61e4da415661bba52a4737e2bcde1a837787c4796b2e1854778534f1582c29b","27c43e632cb7652e8508c9c38e3b4ad0d3dd6ba748d42dc84ec2685e64b9aad"],["7c460a204d23f20ce86596dae6ac9b36734e4a9f7c5b43262c97a36c6a41c6e","481a11f9300ab4c4bf6924c5ca884728cc361247377065920966785d043fbbf"],["124ff5e55e4effa40daa5b9618d75c49c8b6fad95cbe8c0bfdd83cb9bed8316","33a2ea15d0f71f58a00de71acd7f22ccf9002115e49dd1f7631faa0d32f9987"],["61c9f8fc86715e95ff43583a865c5a6515f93381839d557ef884a68637eaf4c","5877daaa42bbab9083b571e12648a9d62ced4470d71653092b6546f4a5acceb"],["70a6b9a9e5d1fcc07dd9ebef6d8f5fcf04c6cb34932d0fe2335330ac6dc8d3d","3f0cbd332ac56922e886656bee74f6e9bb4bb88f7af7bba9098678af1f38fc"],["41db8a0f1ea78443a39e08a54323743c8897eed1ddc28f41aec6f2655040d9f","7d4bf32f8f4719c2e4af8b7889f3b65cfdd033dc2f971798a12170f2b26efce"],["62f035e01acdfe841104942d6c8c07f0fbd618cb85998ea24bcc24cfac1f8","1caa886104b7d753fda93645a746989794cd825c62473b526ea34b3d51b5771"],["441c6f016d270e86c19843727b83b864cec060cafc813b23d7e41e5abb1a60a","29fece4e40400f3acae0586f4fc8ed535e805e472123ec38d662d8a0b01c086"],["2c791ba0fb0b66177815c98191fa6188dba9c795e34a7c3c8a19086215e3cee","11123151389d4b330db6a665a560407e7cd8c3807c749e2b0cffd9c3074ba77"],["5292da4ca71ae75ed0554c267747e39c7a129b3b863e1af3ebb3e368439c4ea","63af6a5016deea8cc674c44f16c63c1db31f09af4fb4d2ea7917c28116661fc"],["3367388d5d1b7758dc3d92e244f227bb8a54e3d9909e7b7dd62ab5965e3efc7","7ffb4833071e4b03ea755ccb9938487a478248fe9b1158a08f1ac298801c092"],["95c863314b7f18090f8eee602403be823a367a1b416d54c32e5f914e67d922","159c2824f899171deee23e0ed520d4825bd667983df0a8d45d3a1f7156d91f9"],["621c6e08b3c57404644ad49ac7629832c141273fa1f323781b3395393fe985c","65d1eb0140652958c4371ebec791e03317d6b2e689d90e304666f1b610783dd"],["54313129bf13993952cd2b31ed06013aba85e74c1b8a00e062031f32188a84e","680129efc9eb8ec07fc180e8f6877e5f0f9f44e3000a2c586ed4ce49d12a313"],["21ea57a1c8286bb45872e78617853c47b89091670ba51c124afa3362e7260d","7087e5c1536df233ec9bfe2f983e8d7622892b9bf64c450c9823898e2cc2fc8"],["3793b05b99e7a57d88db4ed0dbc3b771285abcd9052da50f88595354409f3f3","12164105041c056f127e737c7cd63981e05f246bd2b6b65d1f427019c7c3801"],["befd345cef5fcae22ac37dacd6b9128cc58cbba3e3fd774e11b421c2ba392","6209d25f24f88f7876ca604db23d05f78e6b3b67fb033f2f1bee221f352b8c8"],["15fa536045fda4c65ff74f10b4e669ce88b9996c6772288289d3ad725987fa6","30e0c2124a35e265e931ccc66ce5ac3697d982814beb407144ff6762cb691df"],["38b795bd77ac573576dc204857a488cac2cce19809882631ca2069598c577c8","786ba555d55ebef688b068bb9186a34a08cb00bdfef51619bbf911890ae9a13"],["6c66853592196c3eb8d9526dc155205e2c64097adf8684bb0e15eb460ce1c72","1bb4ebf654f4250c8dd1061a4e1b464b31a8a9999ac9960446ef8108a66871a"],["5b08dfbc87ad9c00b88e78816973ad2f9c10c70f2156908892cc7b7a2a1fd30","1151f407a77e2556073173d8f5c9ff561d8a23742121ca15f7d0ac391af50ea"],["309190eba106aa6ead54b5ca5817969aa68b4b4c627700799a49fc6bdd32ba1","505b6a2bc7b0d78ca6ce2abe7dfb7312369918a4599cccf8a615f6701cfd851"],["89cc205966af08acc8910d563af7443d5dfbb5d88dae79c013c678c65dcecc","1f8cf955694b246a423ac725791231257b88936e00347ecaa1e17045c0ab540"],["480086b61a80c36cf1e1a350baf554e58ee8d9333186b70c9c512fb9e9d5a84","511edfe58f8d36a6170df743731da1ff525cfd5108be20e30ac4183d1281570"],["3caf14fb1d2e90a13ad4eb091250fe37133aabf6029633e905e5a93ead41dbb","49122aff6059dfda19e4b973aba5ebe3804c91728936c6381c1ed1ea9380920"],["66d1b8fb2cabc46cd79741ce1cb7326077ad8ea3227a6427244bdd3806bdadd","4a52eb74f4d5371ba3265dffd61c844f9e68d4ff0b44dc4936182f9280bb66b"],["373330c5afd53c31257fcc9050fef873e15ea9f81d9810f30744309b04e02b3","5889806607b3dc97a9c5b0c8a2f16d1792099a22866b879ca480cb89a11ef5c"],["26840d0ec69a22c6818ff64b8b14633b531508c866e21d1dc9239778ae9e8c7","157971f9a6e3a24d3b307be0e7c8cd352e2eb5cad33cf276270c0f309ee63fc"],["ebb84848f1c38c19a754d1b5d9460e39624dadbb30800987c9419c0f933b9f","517b297cf32f4064e6d6c8e761ba8db89809604a701c7b3aa1a9c6beb370ea7"],["25780380bc0795ed0dca727c55240f1d63593e552d224adb40df2d3721c0f66","10215fb5a893e0275e9f1f66b217dde35addee91ed0e8f7d79531a2ff57b8c8"],["243e1581cd1abfbf18c31c19a4c3d1cedfe69a40bb57b607c9af2717eefc742","1296c27929f14535718c3a4ebe045f00afdc60afc74c7d398d8ce1b6609dc0f"],["48babb8649e054bc8e0b902c89e6940c265f48464520649502ef1064eb94562","3235be7852b0526d1a16f6969ec0e5b0e09cedaadc65863dea4e47f4f398264"],["592db7c27e63489ef4bcef2eafce89f40067cd9a1ba48bc3dc76b5fc62ad9ca","48b7711b570cd9ac65910e75e752f4b751fdbfb4091a28f59b8c046d3d9f8bc"],["31d133456222586ae42a9ec7ce8539ee04afbe0b2ed00a2564dab0798d9b55d","a77c52fa1fd718db5c83e7fda6d7d4d9aafef9ad95cad621470f2b753729e5"],["4651668379883521e7983aafcb93811b4a72ef2975b3277773746708ef3e3fc","512507f3f544d80ba5d47f73b571881e8d70d7b1d305b9704bdad036b7abc47"],["26069e359b2e847affaef604f772f36224608b7642245d0e643889ed231bddc","75ae1ec379f074ebc91270077c74b4d34347ce183b676b4dbe100bfff143b9e"],["3196d01d1fa11dc3803b4813c4bbc6326869f61410f2bd14bc0f570d875aebe","20313217cac79875bd2a503db1e86d1e5559911667a02524759344468d9561d"],["483256607f75f06fb126addc60cadddd602154cc4782bcc08351a48745d0b97","2950a7e500ebbe9775f08be37cc2e62ccf9030de18948d1bab07a4a9173f75d"],["65f07b6050a2fc6eebe2c29ffa62f764060f7f9d3c82d2cb5e4e368aaa442c9","562c9654b646cb84a213b41de203c871b3eae0a05c9c105a66a53c319c06373"],["284870f6181c43f3b01d94baa9c5b6ada0deb861145523ad9169580eb7bed35","5e03e6c40c1cfa3cafb01fd0622349871832a9d35499d06408a83edc1b76d02"],["32229810a52137f0e6c3d37595c46f6132822d4b05f42674b48d7a7ac3ad85","7babde959a0cf2c53ee59fc52c77c3adf899453f077f441965629f9aead30cd"],["1ea8b98a6b85e74e0a2fbc18b206e290f3ed94ce99ca665e8e2351dfade990a","478e93c4724115fb1648c8d5347422adbc1a0bbf962b2312e14aec80e1be742"],["270cbaa08c79140c85b864475a0bf569cc03ac785e57f543dc444f37ce746cf","3a9b8d894016680ae9d1bf3deb931d8987d4d8d8bfed45b81ccc595ec79046b"],["6943922708b8ae5b40dd7031ef2e487abc4ac39a3591368285e83d6c9c51f4d","5f157c37d09634e8cbfbef90ea50af59815d011e419a691c67ca3402b5efc33"],["48ac6a80979fab4912cf0cb557d917a0bd68825d8658ec100496eaae6ff62e1","2b6931350ab183402e39476340eb1177b7006f7a552915581e29a79bd7203a0"],["e3adf9517d92ef22d1e2a787740a292ba32d5ca69faa9e8675f63ed816dce5","36bccf69bb12dadd610145a3399213248d193660d8dc90a2e206f23bf2c7997"],["5e6c8ae5afb2fa470f767581f3d578cf6a49547e4b78665edfd45776948bef8","6cbfc11953dd7e195d2ce74e52a60df524767b44c4608bdd755be4bc85eb74c"],["15a576a1242d39300f0db3ad770983825988da0457718ecd596c63a0a0eb4a6","69a42e5f6f5a63349b57683a4609bba90f556a1680fa1ec3b02ee7d3211f903"],["274cd14e4fbf2ed07402e8ad8075b320c5f76b7ea45ea36af523e95ed63ab50","6ca640f9557c5f2d8b27f6ce95b108880ff4e4816b26b70b6506114389ce656"],["4d8284e132e2fe81c5f71be1e3c79ab51b229e2c56c323e207cda179999d123","116cfc00e9fbee1cf16af6282123cdf20eed13021c2037ef4c86f94eb6e6cba"],["4056194fb5643e97991942ef5b63cadd89080bf57a01489c4398aca03f0980a","2e2cddb434fa6f6da7859c3d518f0ced8795eea043a6c9613fb3e020103339f"],["5d119d5c5ce532afc0875e0ee9b026d878c8773d34237f90a0d0670da6f01b3","4a79fc025ce076b6a4742fbcc8cad313d0a8220c58024a41a5a674c0947e64b"],["11800ce4061d99b9d53fd4138802335258f7798c5a935c9979f5a949ce1d483","36745a4741a5c7290eaa8f2a3f9ec955ccb7ca323272e5d35d35c2a724ffac8"],["4302525bceb97fa642fd5560a4a39fba3d2c06f68e6aff3332ff1854439ebb3","e31edfd081ce82f8177b2d7d96e69851d09e908c2517114ffb37ee12c0ac64"],["2f5fcbb96f0a66fd3bdfbcc78bda361cb812570f50e7c476533d56eee01c0e3","527428a34855b5695c479d8fb7e831a299f7897f36682a74169cc60d160df2d"],["52167df045ad0dc999b98de3d035aced9da4434211149b8cf4bf20e774580cf","19051d2a1ad3fab190c5dfaf45188b49b4e90cca22aae54f0a785562d3d3f41"],["541b5332491dbdb2b6f6bccceb7634970c046963891fae936dd950f4432b961","78fa54da996a51e3a9c06091d58c2405a806649da2bb1f323807c4eec50eda2"],["5f11e973da659b7738f87ca5bd4f3bd02207dd3c8d978f0d3e83fe81030febd","137aba7027069f62d25caed416e13537687bb1428e71e5f0a0c52d52f2e65bc"],["15ec941ee6c2110b819b5541be52981c09d83484c9dc735c43f39f5778718b4","4561826142dc5b56acfcf605a78a4090472bb61235bcd605a765e05d0a7e549"],["68ba398736d659522f484406110b43c68158bf4992094acf797a38979c587a4","7c1d9e1702e28afddf22fed7a7a79df4315c174d0c6c4f4c75bc77d9b56777f"],["67889cea31c81a429fbae643a4fce0ecd690a5c32b99397e39ed6d7a08702df","7ea277c80b671146c9e455b98f42f45b941ac95ca2d15c8fa9ea82ee9b45e01"],["596f2c68390ac26505d3c2eca5c77d46f8f3acbed192a2649d8c525a58d2334","49f3bd8c62c610d5c19c52d970bde24b270c4ff7ae900453b909e72483974a0"],["567779fb8b0afe592cea284629e3621ccfae3c4d7d3dc559c9fed750591a395","6010bdc33f1cdb374facefff537e7910b72a1120502f312a7ce41df0d552ddd"],["cebed0233e810aa6a29a8b0829d28f1c92f303d14dd73d6b12da98117dfc7","4bdd51e1192a00df23aa8d0673e4915877ca41ddb8c9eaf21d39dd167fde7b7"],["4c7085f066adeb6781596771972b188177e63f2e2b3788d03e033cdd5af1f06","2929ee89f525862b0cedb3ab9b5166e1680cb77fb4668f10a6a3d76b5434566"],["760e341bd836899c226176f47685f69438270c150c6fe7744cd723cd1e72359","1bf09f2f1aac1a10ce8bdf20d5d178db747f01a4aa0aa8a5e4bfeef562cd94e"],["6016b94c00b54920027ef64902c61478244b1936337d2ad41d9a8d43dd6a4b2","3bf3dd9bce7f6d6f120de87fcbce6219340b59c2c1d75ee0d45105d33aab1cd"],["4929e44ff692eb944d1045bee96e750219cda3bda0500029f0df49a1db30b5b","2e138dcbd092242699004b4ce98764ffe4e892841f56830af298581cd1e523f"],["5972d0e526311bacb70a04e88969b6c63c7399b578f0dc28bbd00d65ef01da7","76b22bca9ac12d26530e7b0757e646beb3bbc5680d0f3f82fb8ee57ed4b5e39"],["2ca0a42a26e26934ca2d48db960b4719113d87c5e57fb437d557c5eb4e03ac7","62778c02561d4ec5d83a132afd7763a8349207c6b5d01fba70b56ba660cba2e"],["5137ee53f076e21a2c23da09f63c0d275408c31e4634a6b6373be5cf13e6c00","14fb446c077beb78e04de3282a63bfde12f9af85caaca4ddfab506cee31c0c1"],["7d944853d1627b63f560aeda33acf640d35a4ee4d23a744957a2dae9d5b7c6c","bcb411a210710acbcb9ea12680d89e3e4e652228b6786d3886e95f4d9e6970"],["37d412c2ffb173a728477446b60b2b702d07a5243cb5fc8963e623a5ee75843","672c79968908f92cd0cb0b4c65ba86e8f359b015623a89441e1bf859bba84cb"],["5b37f472aa80398bff12cc74c8ee784c4fc89757292580d3a498bff17e9f114","7d79da1aab9cfef58a5f3d1c9ec466956a45f8d2af0c1da6dd4c93f720fae6e"],["25c09b3f1188c562571536202eb0f5fc4b9a7590417b8ea58b4343685d88a63","3d5b817c73b37e9a1d24ca923351359b42ced2f3cafbcac8c2d6322dc767bb"],["32e60904e73f9756f71e0a918d302aeca17cad4acacc81bab15702ab5ff78f0","bcf4c0204f8275072f98a65b09ac58b87cdc9c70c4edfe99fe18870a3a5459"],["49c35575996c1517d2daed90d2fe4a58e674d6b4aaa7288d0642c8bf59e562f","57eeee00adea4ca80eeabab57852cbf03f1a57e21872cd44221e0550b9193b8"],["10e1776b4c2a867bf1b028c6edec224cc6616c747e272f49e69b67b02a893dd","8d45d62ec8e627b56950f2f7622a0438647f9e9f28e723e4a37cebc039a1b0"],["79a93a75ecbe943acc964fd39ecfc971dc6555b2bc335e7b53f52f4eb16cd36","146132a68ce2ca8b48363612226771ac547eb3cf52b6eb7981718faac08aa3c"],["6b22d32e0590e169504e7f19864fd646d0994e7ed3e578a5b88f6e095913439","68c3b22d859fb85e5c8fa0a8aea932285945b230957e603394333e9ad5acd82"],["71ce5ec8286eb8c93b8481c6d19cf0a288ef4da4397e9c80f65023e516bc097","54470babc742780cd8a05499026e738ccbf81d4170d1731734de68a8e5b402c"],["27beb13a43bc6a1f6ce046da438b0beac5899ff4d57962dcfb6476b563f74b","14074e9e93ee45394dfbe833998b9d1691961f8ba3166224b36404448c61bb3"],["6b1de6c8f161aa6509a1dcacf2c0aa1bcf6ee9d9b40e032a9d72f77a6fa298c","5e9312eb5b59d6cbadd7d3dcbc39f1b5bd9a8346fdcfdf1107bada6f9cc048"],["32670fc3fa43bf39974ba72ea51f0d045d92d084a81fe5282dfc8309aa900b9","518fee521bf1af62356aac3b7e53fdbf57121e030c6e9572b3de69912ca4eb4"],["4b9ca363eabed9c66091a347375f7065cd28f49f914447de7cc1461f1375f1e","3a1a3a2e5e7e72476befe2571ece708052d740d02cbe6fed58740968ae609c4"],["4cc6da42863a3deca62fa218b7a3b50e034eb4bafd393eccba3f4cbe192ef10","20bfa683c884f203713953b26d2821287ecd305fa2cb70570474533fc07f918"],["87705353c44a5ccec8de65cf5433be6b3d9bd21eea49b60e6c907cf1a67a6a","112804b13eee56e3b01aff75fa08fa8374c44fc461aed8a30ad54acd09c24eb"],["6cf6eeeb9d339c0a05f72fd5af73fc7588e6d957100ee8999109437bc126cae","54fa257cea22032eac272fcd034dadf2e00d602ef9e519cf7072023c130aad1"],["19b32925048c5519d929650c833661b452ef7be7963fab0b6b328ab7dd7a28a","1bd0c14a10bf9b88ea61011c0b2e64d07da151c6203800d5a5d12063838a510"],["12a5fc5559428bc3b4eff97b21b63668b866e0722807f1db1f19696bacd9b0d","4c2eb07f0c24047a3d73b560144f3fd32c99d6dbd9fc7cd2fd2a72a6e4b24c7"],["13662b7a7d390aa76eb86a7c3bff6d9913eb28db6bd1a7c42de5cdad2e35ce2","40626aded7f56f82cc431ae30527b096f57fbfbc04d3e12a5abae3edf301cf1"],["255825bd49b8a2cce114360bd9c8fe8c641af64c8e7710107213cfcb006f43d","3619cce4482335232f9e76a1460be9d296f2d468d26e4f95a78c71524fe59cc"],["7f83009eeed4f12f54d341bbf06066480cfcdf51dda103ac54d4bcecf6b3b31","4269519d28faafd7fd68bebfd8404d71ba05d62c4bb6d65d24aa6802fb84ab6"],["2f325650eb316646b4eec903fe44828fcb11054f1bd42ca3a77f7e734110b35","44f976082271016f9048e22c507d97d628722bb431f8d5cc1890524e6c386bf"],["750b166bb6edc0ee80fae39c7c106879036738df2d79fb2294e1c21e9a24d6b","54f8aa297a1afafe2a17a3254f45861167414327e918d17003c6aad01d0b24c"],["3aedb10db9cf3285cdeee375879396fac1fb50dd259e1716f8c01e66f67ca72","7feb9400f621f58c21601f23b7ec7c94a9b6b193c1cd74a8a60846aedadd359"],["4ab7151702de76faa493e7a0b1ac20ee4d10c33b83fec9477547cb1236973eb","63f1f122e3ef3acc46b0915ac69c3f5772879799cad889a817f55f5853d1235"],["1675ead0d20e5bc3a7a7331999a87ac4c916ae29669e54197bb02aa6364520f","4d1122da90d49e491922d9b533a6a668e2f65a2737ebb391ebb29fb7c1f8a9d"],["2f7148111ef53c613157aeec12e16a20f13481da4390b6ce18a85d1d8547087","2eeda779ab395597651d2a0b833ccf53b10280750139916ae2baf4ec57c633d"],["4439c7810e7b2ba772b701ec3acdca0b80c9df23047710b87f7dc3f13b337d3","5029cfe704c602a8a4662af0a5860ec03fb88f046d0e3400f2ce7638014c621"],["2248eec40b5732a6a488b681f093643af7937071bc73118acae295a32b51b05","1577e4aec30a97b648de4d0b19cf8891151b4eb11f8de9c6d7312f091552e19"],["4738424e558d4e0d87a3124ca02ea24f0adc6b7a9768b0d3945ed2a6104857c","33576f92aca3f0c8ae689c3c274c2de6b918940d86a6852e02fc99e35d1614"],["7829edd8b866ebf7baaf604ed13d19a9797578f44bbc51b1cd67ca53803e96b","5559040a6083f2af1f9133ccaf5bc2ce06e56ddfc7dd410e9635c0116b62722"],["7f927b881f2cdc05e1a69e40bb714af47b630d1425f08ab5d574ee698f33d51","26a465288e96572de303203bd38f4a03031e8158da0591cb037c0a5111d1056"],["36a65598552f8753580d1655417d645a140966e10a1e1663015f9fdfae44881","33d5bbfaebf59eae72b89b1aea12ab2ba3c9617f8c3baed1ec16bdf668381b5"],["403becfa545c826782026ff409cc16c9d4fe428f1b5b6e630c92439d2fa5fd","47bd6f2bf5d74f710ecb479c79b01fb774fbdad590e683a415cdedf33f71dc5"],["3a747826d241b877d3d56b16e0b810cf088eda4fd6048da174c9991a942a5eb","2c7ba19b0a3486a2cdb84d4a388d34beb077a0e467ba44590166f93f6a09d2e"],["3d60cd375842714b37bda89dd1f13a7e0f3ff133b522209617d031bce05a537","f77f216451ab01ad5226844d2162a7f32744688bcb4325445539e2ce5cec4"],["235bf66f67c9100e7f0e22bb299cdfaa603644b240e0770aec7e7fd163e2a65","37110b3fa83ece3990afca2bea8d5ebb3c7aace60a0147f8e6ab733e2f2b4d5"],["3b796d4eb69a55471fa86108f787b3604874e92b6887a7667a6c2bfbbd9a42b","4912d6dc0419732ef82cb3278415851d4e2d7ca89e0f4d7128cc9de51b810fe"],["48d53516dd51e49faa7ab46c8c10db1befd10f23c6a9d9bc3640a2f0da44518","73a2fb3d064adadf21aa1362c04affc660598f38a9e069b3afb74d0a99ae9ee"],["48c32cff161ed145da0d5b73084897647abb777adf65738559ceab6939cf3e0","3d99308978e828f857c382df32b472bda81e8ec8e30c8844077ba6d6d2ba903"],["2947ff091a8ec9684affbc9a62e09e598841c4a6dc638088492aa47dea57097","19a2cc97975e547f97a4d02e42f89e6ced6f5a953cfccdec347867d26926541"],["1960d85f30475615f82484eba0bdafb7ea7cac3809f0518a757d66f02b01676","36c8f77baabf0cc8805d993bbe62041fcf4e3239cf9d53278a4fbd91e75eeb7"],["2765f28074d21d5a055340b6d40092d2bbef807e02009fabfa08ec0b9bdf38b","7fb189e0553d5df52b6843661814824b3f3cbebbd54988f042fb256c6bf30b"],["348836cb2aaa00212f4b1a4e2d7fc5417f246bf2fe5c9a16ebabda449e2e08a","3f7276fd7d69e0d55ce5ee1d2d830534a27227fe0b6d8a36c93f9a78b872969"],["7afb9d34b6a42ea8c6d870e4b8191c274201dc1f93a1a2219a2392b7e345a31","42bbc20dc7115e0758b364a110227b16b64ec58fc535ce5ff1a9ad8b8a09fdd"],["2cae0c2afee1767fd4c66f52e1f176d217e92e89cc19eb36d5a6c1715f641a","5335efe2d9bc3667d25ea88bf76438a4d6ab9ba5c512f9da7d0529b79b62d83"],["1cc5fde334707723c3a06f00c106db88664284a2df47bb6b144d9f960aea3e2","dbbf610d100316938bcd8bcd078513512ecb50d4579690dbefaa419c05980d"],["54e90cb8f3a2998d2675c5780679e06c0556b1e618f8fdf07f9a4b2466fbf1e","16248676b6f06ec5e34994bc3115f85c8147b54f34d8500928f2fdc051e2089"],["525c70a2ba0dbdd68d75640f47f13d0d415ea595f7030f533f4625c2a46523b","58292c8675e5e1a438f49e0c05648d9a7aa997f2f1fd77d5de1944afe5d7eea"],["54726d78d099007393348787a03107ab492e59690a46c87fb02ec554f2353bd","53b54b77184ba75a3391e0ebfa6d6974db028f3f8e34bbd5460759a5848dd76"],["4ac81a66903537769d3aac6c483ccc08535cb767b6b5e1ec8017a7393ab70ae","2cb22b77a8a05d26f11a4dec80eff292633aa05553a889c5ab16b6ac6e2ab17"],["21d0175349e21114988a2930b9a607d43245783cb4a0c984ce27f4c4206708","59f1f49342cc5496213d3329bf4ca7fb0044337449c579bf53147a1dac9e67c"],["167f821b381f4c8adcc39789475fb55ba639e5124fe75f26dd61be396dd5e66","22002c87d4cafb47ac9d27286d5cf5ff7a6715d69814118269b0729be9e4b3a"],["31010666c6db83a9f9e4db4c48173afd405783ac53852a6e38a8ff925528843","1f466dc9b5d9094107c741dbf380f9fd98d8549cd50f67169901516f8cce74c"],["1ad3875769a5053388a86edc85dd80fdffbbda6a456aea497ff81a0f1f6707b","2de7cdec5e2bad56a71bd2f33a4ae4c874e1ad4210a6ac32b443cfa34e85b1b"],["c489650fb7f459ce09cd05a456fc5a46b849b38a671298ed645bcdaab168b0","45610d092b8af1c43ceed474cd17f7bbee65120aa6fa4d37f949e7e41f25327"],["394256a5ef4d7af5459587a0bd2edb8acaf5ecfef2563c9a04daf34a4abe4c6","1ebee390dae1403c0c53994e1d064fa64e20fcb45392e209b2b99486a559ffd"],["410a1511fead6151e9bedb089b9832d0fe01fab76d3f8459929f767525aeb27","361f0a5ffe09fcc3ad4eff3f5e89508ac247af80267100b69de3c59df561cfa"],["38cd437c9f659e110a869605c182ee9fdc26de36baf559d9229e258267bb734","624b1128ea7739bf1cbd0e423af92a4884323c868d2ba0ee9d362946edee2d1"],["78b126e50b7042d2a019f95cb87a3213c664ca1bafe345999b1e9e2dac1e608","19e398196b22f4488cbe854c614ad8c353839abc5ab3a4f3f5c03c16ba8a198"],["6d3a5ce91132f385a91823c5c8046c4b638f5fe63357424410d901457cdb867","7b80bae16d2d487e122495174f7a70992bc5dafbed72bf84127ead7c57302bb"],["32d053a904dc4d88fbe7d0b96e0cbeca22a00aa5c79c753d52b0b60abf31602","3af6a02e5cae6d6490354ae51185149e3fdb6d0d9caab90e95ff58aa0c40377"],["49b1fbff5bdb0aa6938b066dde0ed772c0d81f9eff52e7fe038b0ccbd78adb5","1c6e57834eb14d507eed8b36c81ddf92fa91c242467061927a742fafa82b43d"],["2f28b8994ca6f234d9293d26196b43b9d1d5306844348c4a638102c05de85f5","759cfb172eab065d477248b3569f4ff5791055f01e95fe71b94b8e615d73c96"],["3c2ee954ff534f856f59188fa0f29ed8a022aee0cac52d634f6dc58cd514d70","22bd162e74925f0a876bd8a206b8767dfdd7c898576a73a490f138d9a7f99c6"],["5763a7cab001e1aaeabf9ab5b9b2fffe6cc2b299ab04ec4933da74d960e1ab","715ee4f8ee93ab5a1dba00f0a6abc4eec47d49b61254cc27fc36a031e32f0f8"],["19976ad8d7b7f47c785408243a227401996b36e47c7a78a7bc7d4256233ba9a","896b713c5d7777b0703821a73c1d9a4c3755501042120534ff13990975e1f5"],["61674b992c29827186cab5ff454758dbbed8e89bc23d0bd33193afccc3a04bc","38e1020744c13903809ea30a0662fdb5226ae760cdcf10800faabec452e00f8"],["2ea2d48bcb83c0c9cda4efe11f07165cfcbc9ccd26526e5fb12556316d4b1df","1d2d68b74ad384c5c4a9c85453104216357bfcdf635680b40215f0f800974cb"],["7881212050264c40c336ed3a15dd2cd868ec9a558f5b728869eab66e8b8ed54","21aaefcc8ad8a161b8971d6880321781dbd939570c540da4c330922b8c81e9b"],["b6be88ce0461d20f59c5199573cda0170b61decf6e8e69a6d32f1695adc4ed","5536e4808370716f2bb3423a9a49a38ddbfe91faf3b7a35eb53d3519238b6cf"],["e5972af1655eb6dde2e8c77cc58044299922441b5ee41ceaf5cafedc765bcc","550282f37a4783dd60801c237045992d6fbe82a5902e7d837ea25f6f98c7b3a"],["7efc1aad1f580d8f50274f1c114c40056be19a8c96fa8c4cb5bf85e1e7f3e4","2689f1c3898b114d668be6413643ee9f879913d40c262541fd0316264c60a4f"],["7939db98037f59b0113e9d60051f75ac9c3cfd1a3eb535c73e2d945068c6c5c","410914ca8bbf3c65cdf3e9772ca790c19131c50068d34b7346c10260a578a8e"],["225b77ad00a2b83d26690190b74867326eca4f55bfbc3a13be036225ca3b1b5","411faafef89042ce6beb64309fdaff70fa53e9d32d79a21e7f82f80e79ff05e"],["1501e64c99c8b6658b0479f2c05c9142d246eaabfccf2fcec8dc4399539d8e1","3bab1e3339e42c9ee66c65b0b20236fdd9362d3ce786ad3a9779ab578af50a8"],["59b907b941f24fb8ea2458153e55f07534b388e835af7b69f3c9f54392a335","1d5438c4f2f68a417f3d56f916d899a6ffe910f5f2989ca31687f1b10f60db8"],["2887d08a26f484546f360e33abbf7a998b7170a5b30070938b84f072c676bf3","62a78e8d00e5d3a59e2fc424ffa08961567ba1ef24c8531cd7bceee6074a535"],["6e3cc8076b3d45377929033af35aab0c6d19ae4fd47c0daf844079ca04c46eb","7b90f338e4d848aa8f19d0b5c3bca916a2a9024acbf14bddb278bca2aa39e5f"],["34844dacdd3ec54a3af328bb9d67715ab33425e194ac9977ca02ef22e8f7a88","3c1affc6372f32a1634748124f9e1a03c4f0c993971da0dc28888b0801279d"],["436b192e03a49796cf9bc5e93c88268b71c9c24f9c3a85322bba634ebea309d","67a8091ef69d62abcb28ce5df4dc7d53f8dc2b9690344f75ecd03a6d9386044"],["592d25b68baff87a6d7fd41ff0dadbddc1bd1316683de3b2d677501c0eb14e4","27ad1e1099683f54589010faeefb19e38569ace43653be8787a42b0591e7bc5"],["89a5111ae911512ba62e87b97f643c0219702f235c70f62c6678a129302009","557fa3d98e9ce7b83b47545013a4498f3de43787fb66b1a54521222242f7c1b"],["1c9b5e53377e72da5066cb08566bbf9ec31ec1877f455d932cd9b1aa375d34e","72f79555a8bc207863f32d482fca54692825449fd8963fcea3de3a8183a739a"],["574a6e05eb14591729515be239ea8c1fa9e12d4049d42876f76c8ff37bca03","5f99b3af43ca68c1c73e8190d5f73c8de162ba643d7d5f0cd73cfa8135db6d3"],["513fc5c2e16505b2b25a2f284e167d5401194bcac0dc3ecf8b7c9acb560daa1","687ee7a1a8954d08d3856e1a16ded808e419e789736d3f55f79f7693bad69f5"],["53d48bd1205274b1c2b0a0ceb3d21c5fcd7c8892a784931603240b288a598b9","35387abd7ea59c9b956de44d36533cad1f6668c438d666651695ff3862159be"],["213eb1ea99e08825110dd61094eb6e8145119dc1c507636f068730b1e086d44","744f6853f4f02f4f042468d0739e0c9f64df720b87ed77d1979547084ef7a89"],["735ef017d091ca23264ad0aa7bb9b2be3309b4539605e79ed4a652ccb2fbe3c","7f0ccc7a5747c4e921fff97d431169f690763427e2cfd1ad74d7a0308d7faa9"],["3f36babc5a30070b610ed97db44997e6d9115c9c0579ad8f75d295a17130001","79047908a2474e32d5c712a07bf5c4ad522590bb5d6cefda410d30528e12ca8"],["51c04907ae88a5926b242fb2862cb1f2c651a94e6caad5bff8601c079fded74","10a585a269f460aed43f54c7de13cdf623fc8de5957526997278be939ef32ad"],["c1e1bd626a735aa2c065831317217ecce68e377eb1f67e54ce2e97bc2ef2dc","53c5af23a9b482f420be6dfd37b6886154cfd130794098e1f51c1885ac2556a"],["5aff3b30775ae4758e604a4a6262803a545f5ef4e7855fa245ac6a6431a9ece","39a4799e5519047f29333bee9c86c99bfa8056d4aa381c396c4a44331fe795f"],["3d753e9723701a8e9d99b91bb93dee2eda7ffa5072fb2cd5c5fd99aebcdb299","15798bf5c17d6d5880fed1553af32dd8d8baf2888c715a886575448a24c7975"],["6593e5078466b07a4222d2e544da826d2c583c9cc5f2eaea148b129b00d4aa0","11b352b08a0a61d3cd67d1dc08069dec3bde907b3da0f56de5011b956bf8744"],["7a6eb353c5be9ff03fe4a06c01fb71aad2b38144179a291ebcbb2c2417cca65","3de3ecb12f2fa699b46a9d399abf77ca17bebc3e491bfb2542dd0fba991e2bb"],["2c7ead583d6c32162091034a9eddfa775b4e84b8bdbea939edb2a80dcf64f6","461790ce40d9c276d962b2a1e9a74d66e9d7335962e234e8a2fc6963d31722d"],["34285af023d9b4c2c2b88e8704bf2c05a9b553b00b2e70ff05f8c2970cb134f","33fe678e7671760a83836107428dbade68c3593fbe568f3f8f1b2c568099c44"],["6222f720a24466263db6a11842f117fc4bb78da6705f140e48869db3e087441","6eff5b9bf3aeedc962bc5a24b66e7bdad2153450ed53a058bf2c8dbf2907693"],["17c6ec5ea206eb97cbf53851e37ce391080e0d2bf1e5395610f79ab0503f7ce","3adb71ca3523d88ceb1e365f12dfb24895453c14daf0046b2626cddadfdf5f7"],["70859f9771a713e54974ce11cdaf44b0dcc3e9befa0c0834908d877eeaafd27","d18f794bf0cc0623b711e7450030424e52326c45ba9b03341883ae4828a5f8"],["2a820cfd0fd4ab0871e7b303cd545a3086caf8fa818c087a4017197da74efbf","5f992683ff37f6c041b84bfc01503d333ac9763505cc8f69473da01812969d1"],["5b0526de2c07fe7cd73e3884f642d57a0ac5e13c68590ed03a14e530616e8c1","eec69d0cbd92c9fca31ec967dba848bec368e792d6678797946a5e34fe3487"],["6cf6b3efee707210cb3a72f1e885c3d0953aefb43e5e148c740aa1641725c61","911cb630b898e2c1a9115f9e45bafe3b819edfb1eab6e15612d14289939984"],["74e913de55f1e46143cb2ecfc580f8d3d3908f200281322b84e21c989cda293","761d2736c9ac7670ba905bc2629c6c0dbe988820a4454ff415ba68710f7df92"],["44084305e0c911a40b7cbefe5f13cffe9a99375d1a584c4a2200958050af7a9","249c83877371564708ea525b64b1e7e12785460d83364446531c9adcacba5f0"],["2bf71ad4d1bee1a67fb300477029f54bdb0e09f78bf2ac2e8afc7465a7adbcc","6244dd6cad282539049be57487bfd9900bb0d5da805d02b535096368fcb4cd5"],["3a62d8f763b62def36e4089458046a49c5ecb91b861549530773e0548ff2bb","6a10a03ba61e6ac657270465c09aa9526cf1ebe96bdecdf0e7000476a47b9eb"],["284eed3a17c51e0677d4fe897f056abe9def8af07a4630e6ca5723e2aa6677","516a06ac1d5626ed03d2eee9de6f60f0311eca703a99b0fb31b9c66b01c27c7"],["2a2c63b16cccd685f731d06fe93ce2cffb358d34d03dda9a7368185c1eb0c32","7180baca0ba81284809f92eca1654cd76b925a9242e5d5e0f18d0a55d13c6ec"],["5f9466017ec09769611389ea5370ad68dda936d3f5816c9e928ff9574abf9a7","6619b5b145bb5f4f29deb7a4cd68ef4da3995312fa6537f0d01684da4267ece"],["74f229babe01b4962b3307589c1a13019134b1db6822698388bebb55d21c30f","156ae857ab3279f754facba0db36398dffec8c31e5e160473198f2f891b7531"],["334b9fe3a5fd99bc966ddd1309698fd32afd1f235062f2c275b6616a185de45","221a60053583cc0607f6f2e6966b62fc9dac00538bb7eb1148e007a92116d2"],["7ad710ba002a67c731efbaba2149d16fec5d2f7aa3d126fd9886172e9f4ea30","3a10f8e902a7a13aec94d66415347e1314f9bac83a7db176096b809b25ffb86"],["4306dd0a184a3283c3097ff8f7434cec80912e9dc04b7df21ba73fda9f8e6d8","6d42bd3d1a8dbddafd09e872e2aa3891ae79ec939dc1b382196bc21c4ab749"],["1c3f2124e1135c32a426d1d14e471edd9e0f2c7bd703ee123cbbd608e8c4be7","3cc607a3c3f1ab68dd5fa56c65996002721b8ad8ad4b0dd9e5b1467d316583"],["294af33272ffcee0b56a436de1b73759cbddebef4c07888b42c2f92b0b68e1","d837164311d5dca8d37b99ef9eb22708643c83d1cbdfe852f63ea07b06fbad"],["753bdb5439a19bbffdfa02b1dc24e8368f22d0a8276b109c11e6feb26f56f39","6ed396231af93647633eab467f1a034f38e76823eb85baf97cae56e2dcd9f75"],["5674f0cb892b733fc0b50e121d8679afed0a925c32594cc65ffe83bebe7748e","7fbf0325dd38dd94905adab2c52758552292a6a103d9edfcb11938828e828c8"],["4a8f053573a0a74251059d0229d89b6660407ba0b491779fd10f87a5117c81f","21b70112485398bf67ec9d733df24a1df30dea718a93b786f41ed04e3ae3c5e"],["726c01ec4a08df8fc8de173311f50d4f3b97c5a9cf68c1536146f827db95ae8","15013cafadefa7f1c4e4dfdd70bd4d3979dd18bd7f0332572ce2a3fd8773d12"],["38ac0fbfa98937257460db7e6645d7e5112b6fce7234813fc8a704e8ade8da2","73c0109f86048aad08c443f781ae60ad13b99f7b9cfdf3128fe6d6eeb799a7b"],["6f6d3a38621582ace092eb50ecfe9eff265df141ebdcab8653299116fcea291","4a1bf3f39bc919c8f1b720a0b1ce952cad17f2ba98308ee6b76dd9b6f3d7b75"],["6a307fc28e1df8d9ad01766419e097797d65cb674436fa1c8f012d3de2c2a1f","26911a635ba824db004875d79dd84834a97ac12643e42829015bf88c1fd6f05"],["2a74860e3336d6db916555894cc8028f41508812925db1925457afe40257155","5f8da573f4c39816ce2dba8a20224223a7cfec53117ec78973930c0e9b60244"],["4d2b49e1ed0799f719b8269f092cb489a466a645bc0ccabafdc678864c176d7","5410083df7d256f18cbf5697ae5e52c31e075d8a3b27e21d6f5177ca882f6c1"],["110ecb9fbf6c333d168cee473cc5ad98809b6cb9eb5d1f6cd28ab5fab504fd3","7e3c54d7533d9f8c3310f219dab0cc3ea4d39b418a748eeffd6bae2b8637a43"],["5be4d711b80da70e6d3ac493250bbfd16f20b25f31919b3a91cf14ffbac1096","7f55a0919f082e8885f1515e83c5b39b6022404503507498e1b4422d79c43e2"],["2605125b95ca4ba93a21cbbba5762898a7cf9e988f07ab9e64cb3868e3b139d","62f0ccf55b9fc0eaf9736fc8ee484e2acdbe259813af9803cf815829a5e9d3b"],["1092bbbf206f2a3068167c3dd99a72de31e206f6c504c071c8214d105ff814d","309f489f68a62089f53b96df5d4fbc3ecc5a1a42eb7ece0e49bad17ad490ff4"],["2abdee9409d9c92559ca3f4e6bddd649c31aa09b90bfcb4a612af491241e18d","3ffa8eac180a29de3f8a69efca84bac046f921f5725e96a6ff0530be1436aaf"],["376313f27d00bb1aae7ec991745efe6ee28c6b50de0c6cd9845cc4bb4f83543","6a8e0a9389ba528b156fa94ac090a895d7b795818d4941c29415d9e2984c547"],["a80380c71bd466a696b3f0fbf02817c9459d9798f4f3899cf32edf647fe066","6a09805e814e7cdfc76eba4b79f1df5ae559e0f0aba9f728d3cba4ea5c57471"],["223694b921d247d989a79b9b2b2f07496036c40cb043eab074a9d6a2cd2ffed","c247217f1b1df35e30d9e15fdaadf42d6fb0edd3a5a7e265d4cdc426c120aa"],["102333620df278c6714bbc880fc087db58c1b9b4d77ed4d61b32a74bfc7c3e2","6a77d37727ccf71c2caeb151faf4404d4b94e9047f9f0a7c3966367f3b53c65"],["891626f466536929ee7eadcd18b41925706dedab7528ed5f0f7abf039eb9d2","5f73d11c141c933a35b2d0d06e5cbae614a20d17dc3b439f8bcdc3413c5ea37"],["215c23fd3f073f870e5e80303967391bf173f8adcdbeec72d131c557babc203","10634332e9d9439a321597dc5b0fac9ff478834c3d6e281735f21a4a5e13266"],["21ea0bdc1332bc36e6aeb43be9071651c27e4ea2eadec636c8d818d4af72a36","3a523d9643dccc6bb9c7c58413312caa3e60ba9c7c7f0177e0f3f469a3241e3"],["60deaed1bffb6190beed40caaf2bfab5e43d3707aff7ad3f278d571aa247eae","e41f71ff254c1418e6a66992af307789fe04d6606fb2670900bb1a089fd879"],["1e1fac4a1646253fb1332fadc21fbdd3e3a24a840d129400f520ae4116a4cf5","69c406f9f46576afad68808de0ab7e8922b6226af748e721d9097e21f1800f3"],["5db0ddcdf79ffe74d6454c12d2bc60b06776db03c75dc413f5be42ea9a91b5e","134c3d6c699841f17306835bb193785228ffe7ab212a01a861c56b086a18cec"],["626814e320fb5bea505b248fd1c1389ad586c1cfe04923fe2f83173e915f4f8","7ae407a926e887206a8b85cf485f1f327c9bb8ccbb6897024e2d122877d8ee0"],["23186237dc7d3b570cea645282ad4c359731bbfa54e7f036426bf6493812cd","7d1fbab7e61a22d3b00993290d9f4cd5d820061573e787f66c2cff9a18e1eaf"],["54302dcb0e6cc1c6e44cca8f61a63bb2ca65048d53fb325d36ff12c49a58202","1b77b3e37d13504b348046268d8ae25ce98ad783c25561a879dcc77e99c2426"],["13961b56b9fc0e412e468c385c22bd0680a25624ec211ffbb6bc877b2a6926c","62f7f7792c77cd981fad13cb6863fe099c4d971c1374109185eae99943f16e9"],["47abd7308c70659af3f00fafe6837298af3cb530b6c2ba710ffd07a6bc1ae98","75d0c8a7377aa9f0663d0c124a5659750847afabc29e39893fd27534a4a03cb"],["2c6276b764fb398fa555857dbe0ce0ec18fab7a233bf23851295739801f0585","5d8f4897ce44007ec5bfcb9aeb78b8f6e1d40a514f72d213c9300d2770d2b8c"]],k=new d.default("800000000000011000000000000000000000000000000000000000000000001",16),R=new d.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),M=new b.default.ec(new b.default.curves.PresetCurve({type:"short",prime:null,p:k,a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:R,hash:h.default.sha256,gRed:!1,g:C[1]}));C.map(e=>M.curve.point(new d.default(e[0],16),new d.default(e[1],16)))[0],new d.default("0"),new d.default("1"),new d.default("3"),new d.default("4"),new d.default("1000"),new d.default("1001"),new d.default("1002"),new d.default("1003"),new d.default("0"),new d.default("1"),new d.default("400000",16),new d.default("80000000",16),new d.default("8000000000000000",16),new d.default("800000000000011000000000000000000000000000000000000000000000001",16),new d.default("800000000000000000000000000000000000000000000000000000000000000",16);var B=new d.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),P=new d.default("FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141",16);function O(e,t,r){let n=l.hexToBinary(e).slice(t,r);return l.binaryToNumber(n)}function j(e,t){return new d.default((0,h.default).sha256().update(l.hexToBuffer(l.removeHexPrefix(e)+l.sanitizeBytes(l.numberToHex(t),2))).digest("hex"),16)}function N(e){let t=0,r=j(e,0);for(;!r.lt(P.sub(P.mod(B)));)r=j(r.toString(16),t),t=t++;return r.mod(B).toString("hex")}var U=class{constructor(e){this.privateKey=e,this.keyPair=M.keyFromPrivate(e,"hex")}keyPair;getAddress(){let e=this.keyPair.getPublic().getX().toString("hex");return l.sanitizeHex(e)}async signMessage(e){return this.serialize(this.keyPair.sign(this.fixMsgHashLen(e)))}serialize(e){return l.addHexPrefix(l.padLeft(e.r.toString("hex"),64)+l.padLeft(e.s.toString("hex"),64))}getYCoordinate(){return Promise.resolve(l.sanitizeBytes(this.keyPair.getPublic().getY().toString(16),2))}fixMsgHashLen(e){if(e=l.removeHexPrefix(e),(e=new(0,d.default)(e,"hex").toString("hex")).length<=62)return e;if(63!==e.length)throw Error("invalid message length");return`${e}0`}};function L(e){return new U(e)}async function D(e){try{if(e){let t=(await (0,o.default).get(`https://api.x.immutable.com/v1/users/${e}`)).data;if(t?.accounts&&t.accounts.length>0)return{starkPublicKey:t.accounts[0],accountNotFound:!1}}}catch(e){if((0,o.default).isAxiosError(e)&&e.response?.data.code==="account_not_found")return{starkPublicKey:"",accountNotFound:!0}}}var{curves:F,ec:H}=b.default,V=new d.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16);new H(new F.PresetCurve({type:"short",prime:null,p:"08000000 00000011 00000000 00000000 00000000 00000000 00000000 00000001",a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:V.toString("hex"),hash:h.default.sha256,gRed:!1,g:["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"]}));var q=()=>{let e=new d.default("1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000",16);return e.sub(e.mod(V))};function z(e,t){return new d.default((0,h.default).sha256().update(l.hexToBuffer(l.removeHexPrefix(e)+l.sanitizeBytes(l.numberToHex(t),2))).digest("hex"),16)}async function G(e,t,r){let n,a=function(e,t){let r=e.slice(2).match(/.{1,2}/g)?.map(e=>parseInt(e,16));if(!r)throw Error("Seed is not a valid hex string");let n=Uint8Array.from(r),a=(0,g.hdkey).EthereumHDKey.fromMasterSeed(n).derivePath(t).getWallet().getPrivateKey();return new d.default(a)}(e,t),i=function(e){let t=q(),r=z(e.toString("hex",64),0);for(let e=1;r.gte(t);e++)r=z(r.toString("hex"),e);return r.umod(V).toString("hex")}(a);if(n=q(),!z(a.toString("hex",64),0).gte(n))return i;let s=await D(r);if(void 0===s)throw Error("Error fetching stark public key from IMX");if(s.accountNotFound)return i;let o=new d.default(l.removeHexPrefix(s.starkPublicKey),16),c=await L(i).getAddress();if(o.eq(new d.default(l.removeHexPrefix(c),16)))return i;let f=function(e){let t=q(),r=z(e.toString("hex",64),0);for(let e=0;r.gte(t);e++)r=z(r.toString("hex"),e);return r.umod(V).toString("hex")}(a);if(c=await L(f).getAddress(),o.eq(new d.default(l.removeHexPrefix(c),16)))return f;let u=N(function(e,t){let r=e.slice(2).match(/.{1,2}/g)?.map(e=>parseInt(e,16));if(!r)throw Error("Seed is not a valid hex string");let n=Uint8Array.from(r);return(0,g.hdkey).EthereumHDKey.fromMasterSeed(n).derivePath(t).getWallet().getPrivateKeyString()}(e,t));if(c=await L(u).getAddress(),o.eq(new d.default(l.removeHexPrefix(c),16)))return u;throw Error("Can not deterministically generate stark private key - please contact support")}function K(){return N(M.genKeyPair().getPrivate("hex"))}async function W(e){var t,r;let n,a,i,s,o,f;let d=(await e.getAddress()).toLowerCase(),l=await e.signMessage((0,c.toUtf8Bytes)("Only sign this request if you’ve initiated an action with Immutable X.")),u=(0,c.Signature).from(l).s,p=(t="starkex",r="immutablex",n=(0,h.default).sha256().update(t).digest("hex"),a=(0,h.default).sha256().update(r).digest("hex"),i=O(n,-31),s=O(a,-31),o=O(d,-31),f=O(d,-62,-31),`m/2645'/${i}'/${s}'/${o}'/${f}'/1`);return(await G(u,p,d)).padStart(64,"0")}function $(e,t=64){var r;return e=l.removeHexPrefix(e),{r:new d.default(e.substring(0,t),"hex"),s:new d.default(e.substring(t,2*t),"hex"),recoveryParam:(r=e.substring(2*t,2*t+2)).trim()?-1!==new(0,d.default)(r,16).cmp(new d.default(27))?new(0,d.default)(r,16).sub(new d.default(27)).toNumber():new(0,d.default)(r,16).toNumber():void 0}}async function J(e,t){var r;return r=$(await t.signMessage(e)),l.addHexPrefix(l.padLeft(r.r.toString(16),64)+l.padLeft(r.s.toString(16),64)+l.padLeft(r.recoveryParam?.toString(16)||"",2))}async function Q(e){let t=Math.floor(Date.now()/1e3).toString(),r=await J(t,e);return{timestamp:t,signature:r}}function Z(e,t){return l.sanitizeHex(l.padLeft(e.r.toString(16),64)+l.padLeft(e.s.toString(16),64,"0")+l.padLeft(new(0,d.default)(l.removeHexPrefix(t),"hex").toString(16),64,"0"))}async function X(e,t,r){let n=(0,c.solidityPackedKeccak256)(["string","address","uint256"],["UserRegistration:",t,r]),a=new(0,d.default)(l.removeHexPrefix(n),16).mod(V);return Z($(await e.signMessage(a.toString(16))),l.sanitizeHex(await e.getYCoordinate()))}async function Y(e,t,r){let n=t.users.map(e=>({ether_key:e.user,tokens:e.tokens.map(e=>({id:e.id,blueprint:e.blueprint,...e.royalties&&e.royalties.length>0&&{royalties:e.royalties.map(e=>({recipient:e.recipient,percentage:e.percentage}))}}))})),{royalties:a}=t,i={contract_address:t.contract_address,...a&&a.length>0&&{royalties:a.map(e=>({recipient:e.recipient,percentage:e.percentage}))},users:n,auth_signature:""},s=(0,c.keccak256)((0,c.toUtf8Bytes)(JSON.stringify(i))),o=await J(s,e),f={mintTokensRequestV2:[{users:i.users.map(e=>({user:e.ether_key,tokens:e.tokens})),...a&&a.length>0&&{royalties:a},contract_address:t.contract_address,auth_signature:o}]};return(await r.mintTokens(f)).data}async function ee({ethSigner:e,starkSigner:t,request:r,exchangesApi:n}){let a=await e.getAddress(),i=r.amount,s=await n.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:a,token:function(e){switch(e.type){case"ERC721":return{type:"ERC721",data:{token_id:e.tokenId,token_address:e.tokenAddress}};case"ERC20":return{type:"ERC20",data:{token_address:e.tokenAddress}};default:return{type:"ETH",data:{decimals:18}}}}(r),amount:i,receiver:r.receiver}}),{signable_message:o,payload_hash:c}=s.data,f=await J(o,e),d=await t.signMessage(c),l={sender_stark_key:s.data.sender_stark_key,sender_vault_id:s.data.sender_vault_id,receiver_stark_key:s.data.receiver_stark_key,receiver_vault_id:s.data.receiver_vault_id,asset_id:s.data.asset_id,amount:s.data.amount,nonce:s.data.nonce,expiration_timestamp:s.data.expiration_timestamp,stark_signature:d},u=await n.createExchangeTransfer({id:r.transactionID,createTransferRequest:l,xImxEthAddress:a,xImxEthSignature:f});return{sent_signature:u?.data.sent_signature,status:u?.data.status?.toString(),time:u?.data.time,transfer_id:u?.data.transfer_id}}var et=class{constructor(e,t,r,n,a,i,s){this.config=e,this.config=e,this.collectionsApi=t,this.exchangesApi=r,this.metadataApi=n,this.metadataRefreshesApi=a,this.mintsApi=i,this.projectsApi=s}mintsApi;projectsApi;collectionsApi;metadataApi;metadataRefreshesApi;exchangesApi;isChainValid(e){return e===this.config.ethConfiguration.chainID}async validateChain(e){let t=(await e.provider?.getNetwork())?.chainId;if(!this.isChainValid(Number(t)))throw Error("The wallet used for this operation is not from the correct network.")}async getStarkExContractVersion(){let e={baseURL:`${this.config.apiConfiguration.basePath}/v1`};return(0,o.default).get("/starkex-contract-version",e)}async mint(e,t){return await this.validateChain(e),Y(e,t,this.mintsApi)}async exchangeTransfer(e,t){return await this.validateChain(e.ethSigner),ee({...e,request:t,exchangesApi:this.exchangesApi})}async getProject(e,t){let r=await Q(e);return this.projectsApi.getProject({id:t,iMXSignature:r.signature,iMXTimestamp:r.timestamp})}async createCollection(e,t){let r=await Q(e);return this.collectionsApi.createCollection({iMXSignature:r.signature,iMXTimestamp:r.timestamp,createCollectionRequest:t})}async updateCollection(e,t,r){let n=await Q(e);return this.collectionsApi.updateCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,address:t,updateCollectionRequest:r})}async addMetadataSchemaToCollection(e,t,r){let n=await Q(e);return this.metadataApi.addMetadataSchemaToCollection({iMXSignature:n.signature,iMXTimestamp:n.timestamp,addMetadataSchemaToCollectionRequest:r,address:t})}async updateMetadataSchemaByName(e,t,r,n){let a=await Q(e);return this.metadataApi.updateMetadataSchemaByName({iMXSignature:a.signature,iMXTimestamp:a.timestamp,address:t,name:r,metadataSchemaRequest:n})}async listMetadataRefreshes(e,t,r,n){let a=await Q(e),i=await e.getAddress();return this.metadataRefreshesApi.getAListOfMetadataRefreshes({xImxEthSignature:a.signature,xImxEthTimestamp:a.timestamp,xImxEthAddress:i,collectionAddress:t,pageSize:r,cursor:n})}async getMetadataRefreshErrors(e,t,r,n){let a=await Q(e),i=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshErrors({xImxEthSignature:a.signature,xImxEthTimestamp:a.timestamp,xImxEthAddress:i,refreshId:t,pageSize:r,cursor:n})}async getMetadataRefreshResults(e,t){let r=await Q(e),n=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshResults({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,refreshId:t})}async createMetadataRefresh(e,t){let r=await Q(e),n=await e.getAddress();return this.metadataRefreshesApi.requestAMetadataRefresh({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:n,createMetadataRefreshRequest:t})}},er=class{immutableX;imxConfig;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;workflows;constructor(e){this.imxConfig=new _(e),this.immutableX=new a.ImxApiClients(this.imxConfig.immutableXConfig.apiConfiguration),this.assetApi=this.immutableX.assetApi,this.balanceApi=this.immutableX.balanceApi,this.collectionApi=this.immutableX.collectionApi,this.depositsApi=this.immutableX.depositsApi,this.encodingApi=this.immutableX.encodingApi,this.exchangeApi=this.immutableX.exchangeApi,this.metadataApi=this.immutableX.metadataApi,this.metadataRefreshesApi=this.immutableX.metadataRefreshesApi,this.mintsApi=this.immutableX.mintsApi,this.nftCheckoutPrimaryApi=this.immutableX.nftCheckoutPrimaryApi,this.ordersApi=this.immutableX.ordersApi,this.projectsApi=this.immutableX.projectsApi,this.tokensApi=this.immutableX.tokensApi,this.tradesApi=this.immutableX.tradesApi,this.transfersApi=this.immutableX.transfersApi,this.usersApi=this.immutableX.usersApi,this.withdrawalsApi=this.immutableX.withdrawalsApi,this.workflows=new et(this.imxConfig.immutableXConfig,this.immutableX.collectionApi,this.immutableX.exchangeApi,this.immutableX.metadataApi,this.immutableX.metadataRefreshesApi,this.immutableX.mintsApi,this.immutableX.projectsApi)}getDeposit(e){return this.depositsApi.getDeposit(e).then(e=>e.data).catch(e=>{throw S(e)})}listDeposits(e){return this.depositsApi.listDeposits(e).then(e=>e.data).catch(e=>{throw S(e)})}getUser(e){return this.usersApi.getUsers({user:e}).then(e=>e.data).catch(e=>{throw S(e)})}getAsset(e){return this.assetApi.getAsset(e).then(e=>e.data).catch(e=>{throw S(e)})}listAssets(e){return this.assetApi.listAssets(e).then(e=>e.data).catch(e=>{throw S(e)})}createCollection(e,t){return this.workflows.createCollection(e,t).then(e=>e.data).catch(e=>{throw S(e)})}getCollection(e){return this.collectionApi.getCollection(e).then(e=>e.data).catch(e=>{throw S(e)})}listCollectionFilters(e){return this.collectionApi.listCollectionFilters(e).then(e=>e.data).catch(e=>{throw S(e)})}listCollections(e){return this.collectionApi.listCollections(e).then(e=>e.data).catch(e=>{throw S(e)})}updateCollection(e,t,r){return this.workflows.updateCollection(e,t,r).then(e=>e.data).catch(e=>{throw S(e)})}addMetadataSchemaToCollection(e,t,r){return this.workflows.addMetadataSchemaToCollection(e,t,r).then(e=>e.data).catch(e=>{throw S(e)})}getMetadataSchema(e){return this.metadataApi.getMetadataSchema(e).then(e=>e.data).catch(e=>{throw S(e)})}updateMetadataSchemaByName(e,t,r,n){return this.workflows.updateMetadataSchemaByName(e,t,r,n).then(e=>e.data).catch(e=>{throw S(e)})}listMetadataRefreshes(e,t,r,n){return this.workflows.listMetadataRefreshes(e,t,r,n).then(e=>e.data).catch(e=>{throw S(e)})}getMetadataRefreshErrors(e,t,r,n){return this.workflows.getMetadataRefreshErrors(e,t,r,n).then(e=>e.data).catch(e=>{throw S(e)})}getMetadataRefreshResults(e,t){return this.workflows.getMetadataRefreshResults(e,t).then(e=>e.data).catch(e=>{throw S(e)})}createMetadataRefresh(e,t){return this.workflows.createMetadataRefresh(e,t).then(e=>e.data).catch(e=>{throw S(e)})}async getProject(e,t){return this.workflows.getProject(e,t).then(e=>e.data).catch(e=>{throw S(e)})}getBalance(e){return this.balanceApi.getBalance(e).then(e=>e.data).catch(e=>{throw S(e)})}listBalances(e){return this.balanceApi.listBalances(e).then(e=>e.data).catch(e=>{throw S(e)})}getMint(e){return this.mintsApi.getMint(e).then(e=>e.data).catch(e=>{throw S(e)})}listMints(e){return this.mintsApi.listMints(e).then(e=>e.data).catch(e=>{throw S(e)})}mint(e,t){return this.workflows.mint(e,t)}listWithdrawals(e){return this.withdrawalsApi.listWithdrawals(e).then(e=>e.data).catch(e=>{throw S(e)})}getWithdrawal(e){return this.withdrawalsApi.getWithdrawal(e).then(e=>e.data).catch(e=>{throw S(e)})}getOrder(e){return this.ordersApi.getOrderV3(e).then(e=>e.data).catch(e=>{throw S(e)})}listOrders(e){return this.ordersApi.listOrdersV3(e).then(e=>e.data).catch(e=>{throw S(e)})}getTrade(e){return this.tradesApi.getTradeV3(e).then(e=>e.data).catch(e=>{throw S(e)})}listTrades(e){return this.tradesApi.listTradesV3(e).then(e=>e.data).catch(e=>{throw S(e)})}getToken(e){return this.tokensApi.getToken(e).then(e=>e.data).catch(e=>{throw S(e)})}listTokens(e){return this.tokensApi.listTokens(e).then(e=>e.data).catch(e=>{throw S(e)})}getTransfer(e){return this.transfersApi.getTransfer(e).then(e=>e.data).catch(e=>{throw S(e)})}listTransfers(e){return this.transfersApi.listTransfers(e).then(e=>e.data).catch(e=>{throw S(e)})}createExchange(e){return this.exchangeApi.createExchange(e).then(e=>e.data).catch(e=>{throw S(e)})}getExchange(e){return this.exchangeApi.getExchange(e).then(e=>e.data).catch(e=>{throw S(e)})}getExchanges(e){return this.exchangeApi.getExchanges(e).then(e=>e.data).catch(e=>{throw S(e)})}exchangeTransfer(e,t){return this.workflows.exchangeTransfer(e,t)}createNftPrimary(e){return this.nftCheckoutPrimaryApi.createNftPrimary(e).then(e=>e.data).catch(e=>{throw S(e)})}getCurrenciesNFTCheckoutPrimary(e){return this.nftCheckoutPrimaryApi.getCurrenciesNFTCheckoutPrimary(e).then(e=>e.data).catch(e=>{throw S(e)})}getNftPrimaryTransaction(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransaction(e).then(e=>e.data).catch(e=>{throw S(e)})}getNftPrimaryTransactions(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransactions(e).then(e=>e.data).catch(e=>{throw S(e)})}},en=class extends er{},ea={};((e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})})(ea,{Core:()=>ed,CoreV4:()=>eg,IERC20:()=>es,IERC721:()=>ec,Registration:()=>ep,RegistrationV4:()=>ew});var ei=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],es=class{static abi=ei;static createInterface(){return new c.Interface(ei)}static connect(e,t){return new c.Contract(e,ei,t)}},eo=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}],ec=class{static abi=eo;static createInterface(){return new c.Interface(eo)}static connect(e,t){return new c.Contract(e,eo,t)}},ef=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"ethKey",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isFrozen",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainIsGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"registerUser",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"registerUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"string",name:"",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"unregisterUserAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"}],ed=class{static abi=ef;static createInterface(){return new c.Interface(ef)}static connect(e,t){return new c.Contract(e,ef,t)}},el=[{inputs:[{internalType:"contract Core",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"imx",outputs:[{internalType:"contract Core",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndDepositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawNftTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"registerAndWithdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"regsiterAndWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"}],eu="0x60806040523480156200001157600080fd5b5060405162001313380380620013138339818101604052810190620000379190620000fc565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200012e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000b08262000083565b9050919050565b6000620000c482620000a3565b9050919050565b620000d681620000b7565b8114620000e257600080fd5b50565b600081519050620000f681620000cb565b92915050565b6000602082840312156200011557620001146200007e565b5b60006200012584828501620000e5565b91505092915050565b6111d5806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634280d50a1161005b5780634280d50a146100ff5780634627d5981461011b578063579a698814610137578063ea864adf1461016757610088565b80630a9c3beb1461008d5780630f08025f146100a95780631259cc6c146100c7578063352eb84c146100e3575b600080fd5b6100a760048036038101906100a29190610a72565b610183565b005b6100b16102ae565b6040516100be9190610b8d565b60405180910390f35b6100e160048036038101906100dc9190610ba8565b6102d2565b005b6100fd60048036038101906100f89190610c57565b6103fd565b005b61011960048036038101906101149190610cf1565b610525565b005b61013560048036038101906101309190610da0565b610650565b005b610151600480360381019061014c9190610e3a565b610778565b60405161015e9190610e82565b60405180910390f35b610181600480360381019061017c9190610e9d565b61084a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016101e29493929190610fa1565b600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016102739493929190610fe1565b600060405180830381600087803b15801561028d57600080fd5b505af11580156102a1573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016103319493929190610fa1565b600060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebef0fd0878585856040518563ffffffff1660e01b81526004016103c29493929190611021565b600060405180830381600087803b1580156103dc57600080fd5b505af11580156103f0573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b815260040161045c9493929190610fa1565b600060405180830381600087803b15801561047657600080fd5b505af115801561048a573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016104eb93929190611066565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b50505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016105849493929190610fa1565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae1cdde6878585856040518563ffffffff1660e01b8152600401610615949392919061109d565b600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b81526004016106af9493929190610fa1565b600060405180830381600087803b1580156106c957600080fd5b505af11580156106dd573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314cd70e48684846040518463ffffffff1660e01b815260040161073e939291906110e2565b600060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b50505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016107ea9190611119565b602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611149565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4868686866040518563ffffffff1660e01b81526004016108a99493929190610fa1565b600060405180830381600087803b1580156108c357600080fd5b505af11580156108d7573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663441a3e7085836040518363ffffffff1660e01b8152600401610936929190611176565b600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b505050505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109a482610979565b9050919050565b6109b481610999565b81146109bf57600080fd5b50565b6000813590506109d1816109ab565b92915050565b6000819050919050565b6109ea816109d7565b81146109f557600080fd5b50565b600081359050610a07816109e1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3257610a31610a0d565b5b8235905067ffffffffffffffff811115610a4f57610a4e610a12565b5b602083019150836001820283011115610a6b57610a6a610a17565b5b9250929050565b600080600080600080600060a0888a031215610a9157610a9061096f565b5b6000610a9f8a828b016109c2565b9750506020610ab08a828b016109f8565b965050604088013567ffffffffffffffff811115610ad157610ad0610974565b5b610add8a828b01610a1c565b95509550506060610af08a828b016109f8565b935050608088013567ffffffffffffffff811115610b1157610b10610974565b5b610b1d8a828b01610a1c565b925092505092959891949750929550565b6000819050919050565b6000610b53610b4e610b4984610979565b610b2e565b610979565b9050919050565b6000610b6582610b38565b9050919050565b6000610b7782610b5a565b9050919050565b610b8781610b6c565b82525050565b6000602082019050610ba26000830184610b7e565b92915050565b600080600080600080600060c0888a031215610bc757610bc661096f565b5b6000610bd58a828b016109c2565b9750506020610be68a828b016109f8565b965050604088013567ffffffffffffffff811115610c0757610c06610974565b5b610c138a828b01610a1c565b95509550506060610c268a828b016109f8565b9350506080610c378a828b016109f8565b92505060a0610c488a828b016109c2565b91505092959891949750929550565b60008060008060008060a08789031215610c7457610c7361096f565b5b6000610c8289828a016109c2565b9650506020610c9389828a016109f8565b955050604087013567ffffffffffffffff811115610cb457610cb3610974565b5b610cc089828a01610a1c565b94509450506060610cd389828a016109f8565b9250506080610ce489828a016109f8565b9150509295509295509295565b600080600080600080600060c0888a031215610d1057610d0f61096f565b5b6000610d1e8a828b016109c2565b9750506020610d2f8a828b016109f8565b965050604088013567ffffffffffffffff811115610d5057610d4f610974565b5b610d5c8a828b01610a1c565b95509550506060610d6f8a828b016109f8565b9350506080610d808a828b016109f8565b92505060a0610d918a828b016109f8565b91505092959891949750929550565b60008060008060008060a08789031215610dbd57610dbc61096f565b5b6000610dcb89828a016109c2565b9650506020610ddc89828a016109f8565b955050604087013567ffffffffffffffff811115610dfd57610dfc610974565b5b610e0989828a01610a1c565b94509450506060610e1c89828a016109f8565b9250506080610e2d89828a016109c2565b9150509295509295509295565b600060208284031215610e5057610e4f61096f565b5b6000610e5e848285016109f8565b91505092915050565b60008115159050919050565b610e7c81610e67565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600080600080600060808688031215610eb957610eb861096f565b5b6000610ec7888289016109c2565b9550506020610ed8888289016109f8565b945050604086013567ffffffffffffffff811115610ef957610ef8610974565b5b610f0588828901610a1c565b93509350506060610f18888289016109f8565b9150509295509295909350565b610f2e81610999565b82525050565b610f3d816109d7565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610f808385610f43565b9350610f8d838584610f54565b610f9683610f63565b840190509392505050565b6000606082019050610fb66000830187610f25565b610fc36020830186610f34565b8181036040830152610fd6818486610f74565b905095945050505050565b6000606082019050610ff66000830187610f34565b6110036020830186610f34565b8181036040830152611016818486610f74565b905095945050505050565b60006080820190506110366000830187610f34565b6110436020830186610f34565b6110506040830185610f34565b61105d6060830184610f25565b95945050505050565b600060608201905061107b6000830186610f34565b6110886020830185610f34565b6110956040830184610f34565b949350505050565b60006080820190506110b26000830187610f34565b6110bf6020830186610f34565b6110cc6040830185610f34565b6110d96060830184610f34565b95945050505050565b60006060820190506110f76000830186610f34565b6111046020830185610f34565b6111116040830184610f25565b949350505050565b600060208201905061112e6000830184610f34565b92915050565b600081519050611143816109ab565b92915050565b60006020828403121561115f5761115e61096f565b5b600061116d84828501611134565b91505092915050565b600060408201905061118b6000830185610f34565b6111986020830184610f34565b939250505056fea2646970667358221220ec3495278afe78566e74b538d48e94b094c110ca38b03493e90e5e382cc99d0264736f6c63430008130033",eh=e=>e.length>1,ep=class extends c.ContractFactory{constructor(...e){eh(e)?super(...e):super(el,eu,e[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=eu;static abi=el;static createInterface(){return new c.Interface(el)}static connect(e,t){return new c.Contract(e,el,t)}},eb=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"uint256",name:"updatedActivationTime",type:"uint256"}],name:"ImplementationActivationRescheduled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newDefaultLockTime",type:"uint256"}],name:"LogDefaultVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositCancel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogDepositNftCancelReclaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogDepositToVault",type:"event"},{anonymous:!1,inputs:[],name:"LogFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"}],name:"LogFullWithdrawalRequest",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogMintWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogMintableWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"acceptedGovernor",type:"address"}],name:"LogNewGovernorAccepted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"depositorEthKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"}],name:"LogNftWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogNftWithdrawalPerformed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"nominatedGovernor",type:"address"}],name:"LogNominatedGovernor",type:"event"},{anonymous:!1,inputs:[],name:"LogNominationCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"operator",type:"address"}],name:"LogOperatorRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemovalIntent",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"entry",type:"address"},{indexed:!1,internalType:"string",name:"entryId",type:"string"}],name:"LogRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"removedGovernor",type:"address"}],name:"LogRemovedGovernor",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"sequenceNumber",type:"uint256"},{indexed:!1,internalType:"uint256",name:"batchId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultRoot",type:"uint256"},{indexed:!1,internalType:"uint256",name:"orderRoot",type:"uint256"}],name:"LogRootUpdate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"stateTransitionFact",type:"bytes32"}],name:"LogStateTransitionFact",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"tokenAdmin",type:"address"}],name:"LogTokenAdminRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"bytes",name:"assetInfo",type:"bytes"},{indexed:!1,internalType:"uint256",name:"quantum",type:"uint256"}],name:"LogTokenRegistered",type:"event"},{anonymous:!1,inputs:[],name:"LogUnFrozen",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"starkKey",type:"uint256"},{indexed:!1,internalType:"address",name:"sender",type:"address"}],name:"LogUserRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"int256",name:"quantizedAmountChange",type:"int256"}],name:"LogVaultBalanceChangeApplied",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timeRelease",type:"uint256"}],name:"LogVaultWithdrawalLockSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalAllowed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"ethKey",type:"address"},{indexed:!1,internalType:"uint256",name:"assetId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"vaultId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"LogWithdrawalFromVault",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"ownerKey",type:"uint256"},{indexed:!1,internalType:"uint256",name:"assetType",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nonQuantizedAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantizedAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"}],name:"LogWithdrawalPerformed",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEPOSIT_CANCEL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"FREEZE_GRACE_PERIOD",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAIN_GOVERNANCE_INFO_TAG",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_FORCED_ACTIONS_REQS_PER_BLOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_VERIFIER_COUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"STARKEX_MAX_DEFAULT_VAULT_LOCK",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNFREEZE_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERIFIER_REMOVAL_DELAY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceAvailabilityVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"announceVerifierRemovalIntent",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"defaultVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"deposit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositCancel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"depositERC20ToVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositEthToVault",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"depositNftReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"depositReclaim",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"escape",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"freezeRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"fullWithdrawalRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActionCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"actionIndex",type:"uint256"}],name:"getActionHashByIndex",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"getAssetInfo",outputs:[{internalType:"bytes",name:"assetInfo",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getCancellationRequest",outputs:[{internalType:"uint256",name:"request",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"}],name:"getEthKey",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getFullWithdrawalRequest",outputs:[{internalType:"uint256",name:"res",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLastBatchId",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOrderTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedDepositBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getQuantizedVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"presumedAssetType",type:"uint256"}],name:"getQuantum",outputs:[{internalType:"uint256",name:"quantum",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredAvailabilityVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRegisteredVerifiers",outputs:[{internalType:"address[]",name:"_verifers",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSequenceNumber",outputs:[{internalType:"uint256",name:"seq",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultBalance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultRoot",outputs:[{internalType:"uint256",name:"root",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getVaultTreeHeight",outputs:[{internalType:"uint256",name:"height",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"getVaultWithdrawalLock",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetId",type:"uint256"}],name:"getWithdrawalBalance",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"}],name:"isAssetRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isAvailabilityVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isFrozen",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedOperator",type:"address"}],name:"isOperator",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isStrictVaultBalancePolicy",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"testedAdmin",type:"address"}],name:"isTokenAdmin",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"isVaultLocked",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"verifierAddress",type:"address"}],name:"isVerifier",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"lockTime",type:"uint256"}],name:"lockVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainAcceptGovernance",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"mainCancelNomination",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"testGovernor",type:"address"}],name:"mainIsGovernor",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newGovernor",type:"address"}],name:"mainNominateNewGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"governorForRemoval",type:"address"}],name:"mainRemoveGovernor",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"orderRegistryAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"registerAndDepositERC20",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"}],name:"registerAndDepositEth",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerEthAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOperator",type:"address"}],name:"registerOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"starkSignature",type:"bytes"}],name:"registerSender",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"assetInfo",type:"bytes"},{internalType:"uint256",name:"quantum",type:"uint256"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newAdmin",type:"address"}],name:"registerTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"},{internalType:"string",name:"identifier",type:"string"}],name:"registerVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeAvailabilityVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"verifier",type:"address"}],name:"removeVerifier",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newDefaultTime",type:"uint256"}],name:"setDefaultVaultWithdrawalLock",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unFreeze",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"removedOperator",type:"address"}],name:"unregisterOperator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"oldAdmin",type:"address"}],name:"unregisterTokenAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"implementation",type:"address"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bool",name:"finalize",type:"bool"}],name:"updateImplementationActivationTime",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256[]",name:"publicInput",type:"uint256[]"},{internalType:"uint256[]",name:"applicationData",type:"uint256[]"}],name:"updateState",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdraw",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"withdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"assetId",type:"uint256"},{internalType:"uint256",name:"vaultId",type:"uint256"},{internalType:"uint256",name:"quantizedAmount",type:"uint256"}],name:"withdrawFromVault",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ownerKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"withdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],eg=class{static abi=eb;static createInterface(){return new c.Interface(eb)}static connect(e,t){return new c.Contract(e,eb,t)}},em=[{inputs:[{internalType:"address payable",name:"_imx",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"NoFundsToWithdraw",type:"error"},{inputs:[],name:"getVersion",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"imx",outputs:[{internalType:"contract CoreV4",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"starkKey",type:"uint256"}],name:"isRegistered",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"registerAndWithdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"registerAndWithdrawNft",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"ethKey",type:"address"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"uint256",name:"assetType",type:"uint256"},{internalType:"bytes",name:"mintingBlob",type:"bytes"}],name:"registerWithdrawAndMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"ethKey",type:"uint256"},{internalType:"uint256",name:"starkKey",type:"uint256"},{internalType:"uint256",name:"assetType",type:"uint256"}],name:"withdrawAll",outputs:[],stateMutability:"nonpayable",type:"function"}],ey="0x60a06040523480156200001157600080fd5b50604051620012bc380380620012bc8339818101604052810190620000379190620000dc565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000a48262000077565b9050919050565b620000b68162000097565b8114620000c257600080fd5b50565b600081519050620000d681620000ab565b92915050565b600060208284031215620000f557620000f462000072565b5b60006200010584828501620000c5565b91505092915050565b608051611145620001776000396000818161016d01528181610229015281816102c2015281816102f30152818161038501528181610429015281816104bb0152818161056e01528181610629015281816106c9015281816107c4015261085b01526111456000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063352eb84c1161005b578063352eb84c146100da57806343fa186d146100f6578063579a698814610112578063d2fc99b5146101425761007d565b8063022cabbc146100825780630d8e6e2c1461009e5780630f08025f146100bc575b600080fd5b61009c600480360381019061009791906109fb565b61015e565b005b6100a6610225565b6040516100b39190610b13565b60405180910390f35b6100c46102c0565b6040516100d19190610b94565b60405180910390f35b6100f460048036038101906100ef9190610baf565b6102e4565b005b610110600480360381019061010b9190610c49565b61041a565b005b61012c60048036038101906101279190610d05565b610553565b6040516101399190610d4d565b60405180910390f35b61015c60048036038101906101579190610d68565b610625565b005b61016784610553565b6101fd577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187868686866040518563ffffffff1660e01b81526004016101ca9493929190610e26565b600060405180830381600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050505b61021e8573ffffffffffffffffffffffffffffffffffffffff168583610625565b5050505050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610292573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906102bb9190610f87565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102ed85610553565b610383577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187878787876040518563ffffffff1660e01b81526004016103509493929190610e26565b600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016103e093929190610fd0565b600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b50505050505050505050565b61042386610553565b6104b9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187888888886040518563ffffffff1660e01b81526004016104869493929190610e26565b600060405180830381600087803b1580156104a057600080fd5b505af11580156104b4573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016105189493929190611007565b600060405180830381600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b5050505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016105c59190611047565b602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106069190611077565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085846040518363ffffffff1660e01b81526004016106829291906110a4565b602060405180830381865afa15801561069f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c391906110e2565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085856040518363ffffffff1660e01b81526004016107229291906110a4565b602060405180830381865afa15801561073f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906110e2565b90506000821480156107755750600081145b156107b95784846040517f1362cdf20000000000000000000000000000000000000000000000000000000081526004016107b09291906110a4565b60405180910390fd5b6000821115610850577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7086856040518363ffffffff1660e01b815260040161081d9291906110a4565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b505050505b60008111156108e7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7085856040518363ffffffff1660e01b81526004016108b49291906110a4565b600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061092d82610902565b9050919050565b61093d81610922565b811461094857600080fd5b50565b60008135905061095a81610934565b92915050565b6000819050919050565b61097381610960565b811461097e57600080fd5b50565b6000813590506109908161096a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126109bb576109ba610996565b5b8235905067ffffffffffffffff8111156109d8576109d761099b565b5b6020830191508360018202830111156109f4576109f36109a0565b5b9250929050565b600080600080600060808688031215610a1757610a166108f8565b5b6000610a258882890161094b565b9550506020610a3688828901610981565b945050604086013567ffffffffffffffff811115610a5757610a566108fd565b5b610a63888289016109a5565b93509350506060610a7688828901610981565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b83811015610abd578082015181840152602081019050610aa2565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ae582610a83565b610aef8185610a8e565b9350610aff818560208601610a9f565b610b0881610ac9565b840191505092915050565b60006020820190508181036000830152610b2d8184610ada565b905092915050565b6000819050919050565b6000610b5a610b55610b5084610902565b610b35565b610902565b9050919050565b6000610b6c82610b3f565b9050919050565b6000610b7e82610b61565b9050919050565b610b8e81610b73565b82525050565b6000602082019050610ba96000830184610b85565b92915050565b60008060008060008060a08789031215610bcc57610bcb6108f8565b5b6000610bda89828a0161094b565b9650506020610beb89828a01610981565b955050604087013567ffffffffffffffff811115610c0c57610c0b6108fd565b5b610c1889828a016109a5565b94509450506060610c2b89828a01610981565b9250506080610c3c89828a01610981565b9150509295509295509295565b600080600080600080600060a0888a031215610c6857610c676108f8565b5b6000610c768a828b0161094b565b9750506020610c878a828b01610981565b965050604088013567ffffffffffffffff811115610ca857610ca76108fd565b5b610cb48a828b016109a5565b95509550506060610cc78a828b01610981565b935050608088013567ffffffffffffffff811115610ce857610ce76108fd565b5b610cf48a828b016109a5565b925092505092959891949750929550565b600060208284031215610d1b57610d1a6108f8565b5b6000610d2984828501610981565b91505092915050565b60008115159050919050565b610d4781610d32565b82525050565b6000602082019050610d626000830184610d3e565b92915050565b600080600060608486031215610d8157610d806108f8565b5b6000610d8f86828701610981565b9350506020610da086828701610981565b9250506040610db186828701610981565b9150509250925092565b610dc481610922565b82525050565b610dd381610960565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000610e058385610dd9565b9350610e12838584610dea565b610e1b83610ac9565b840190509392505050565b6000606082019050610e3b6000830187610dbb565b610e486020830186610dca565b8181036040830152610e5b818486610df9565b905095945050505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610ea382610ac9565b810181811067ffffffffffffffff82111715610ec257610ec1610e6b565b5b80604052505050565b6000610ed56108ee565b9050610ee18282610e9a565b919050565b600067ffffffffffffffff821115610f0157610f00610e6b565b5b610f0a82610ac9565b9050602081019050919050565b6000610f2a610f2584610ee6565b610ecb565b905082815260208101848484011115610f4657610f45610e66565b5b610f51848285610a9f565b509392505050565b600082601f830112610f6e57610f6d610996565b5b8151610f7e848260208601610f17565b91505092915050565b600060208284031215610f9d57610f9c6108f8565b5b600082015167ffffffffffffffff811115610fbb57610fba6108fd565b5b610fc784828501610f59565b91505092915050565b6000606082019050610fe56000830186610dca565b610ff26020830185610dca565b610fff6040830184610dca565b949350505050565b600060608201905061101c6000830187610dca565b6110296020830186610dca565b818103604083015261103c818486610df9565b905095945050505050565b600060208201905061105c6000830184610dca565b92915050565b60008151905061107181610934565b92915050565b60006020828403121561108d5761108c6108f8565b5b600061109b84828501611062565b91505092915050565b60006040820190506110b96000830185610dca565b6110c66020830184610dca565b9392505050565b6000815190506110dc8161096a565b92915050565b6000602082840312156110f8576110f76108f8565b5b6000611106848285016110cd565b9150509291505056fea2646970667358221220c33e1830b470bf1e012ac831ec80242d6268e5e6e990b7e1574a230f71533ebd64736f6c63430008130033",ev=e=>e.length>1,ew=class extends c.ContractFactory{constructor(...e){ev(e)?super(...e):super(em,ey,e[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=ey;static abi=em;static createInterface(){return new c.Interface(em)}static connect(e,t){return new c.Contract(e,em,t)}},ex=class extends a.imx.AssetsApi{},eE=class extends a.imx.BalancesApi{},eA=class extends a.imx.CollectionsApi{},e_=class extends a.imx.DepositsApi{},eT=class extends a.imx.EncodingApi{},eI=class extends a.imx.ExchangesApi{},eS=class extends a.imx.MintsApi{},eC=class extends a.imx.MetadataApi{},ek=class extends a.imx.MetadataRefreshesApi{},eR=class extends a.imx.NftCheckoutPrimaryApi{},eM=class extends a.imx.OrdersApi{},eB=class extends a.imx.ProjectsApi{},eP=class extends a.imx.TokensApi{},eO=class extends a.imx.TradesApi{},ej=class extends a.imx.TransfersApi{},eN=class extends a.imx.UsersApi{},eU=class extends a.imx.WithdrawalsApi{},eL=a.imx.MetadataSchemaRequestTypeEnum},{"@imtbl/generated-clients":"8BZnj","@imtbl/config":"ifUQV",axios:"fYIJi",ethers:"jZqA6","bn.js":"6pNUR","enc-utils":"6ILTN","hash.js":"5JqHI",elliptic:"e7lRE","@ethereumjs/wallet":"ftYyV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ifUQV:[function(e,t,r){let n,a;var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Environment",()=>o),i.export(r,"ImmutableConfiguration",()=>f),i.export(r,"KeyHeaders",()=>c),i.export(r,"addKeysToHeadersOverride",()=>d);var s=e("@imtbl/metrics"),o=((n=o||{}).PRODUCTION="production",n.SANDBOX="sandbox",n),c=((a=c||{}).API_KEY="x-immutable-api-key",a.PUBLISHABLE_KEY="x-immutable-publishable-key",a.RATE_LIMITING_KEY="x-api-key",a),f=class{environment;rateLimitingKey;apiKey;publishableKey;constructor(e){this.environment=e.environment,this.publishableKey=e.publishableKey,this.apiKey=e.apiKey,this.rateLimitingKey=e.rateLimitingKey,(0,s.setEnvironment)(e.environment),(0,s.track)("config","created_imtbl_config")}},d=(e,t)=>{if(!e||!e.apiKey&&!e.publishableKey&&!e.rateLimitingKey)return t;let r={};return e.apiKey&&(r["x-immutable-api-key"]=e.apiKey),e.publishableKey&&(r["x-immutable-publishable-key"]=e.publishableKey,(0,s.setPublishableApiKey)(e.publishableKey)),e.rateLimitingKey&&(r["x-api-key"]=e.rateLimitingKey),t&&t.headers?{...t,headers:{...r,...t.headers}}:{...t,headers:r}}},{"@imtbl/metrics":"7Q1ml","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7Q1ml":[function(e,t,r){let n,a;var i,s,o,c,f,d=e("@parcel/transformer-js/src/esmodule-helpers.js");d.defineInteropFlag(r),d.export(r,"Detail",()=>X),d.export(r,"getDetail",()=>eO),d.export(r,"identify",()=>eR),d.export(r,"setEnvironment",()=>eM),d.export(r,"setPassportClientId",()=>eB),d.export(r,"setPublishableApiKey",()=>eP),d.export(r,"track",()=>ey),d.export(r,"trackDuration",()=>eE),d.export(r,"trackError",()=>eC),d.export(r,"trackFlow",()=>eS),d.export(r,"utils",()=>ej);var l=e("axios"),u=d.interopDefault(l),h=e("lru-memorise"),p=e("global-const"),b=Object.defineProperty;function g(e){throw Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}var m,y=[],v=!1,w=-1;function x(){v&&m&&(v=!1,m.length?y=m.concat(y):w=-1,y.length&&E())}function E(){if(!v){var e=setTimeout(x,0);v=!0;for(var t=y.length;t;){for(m=y,y=[];++wtypeof performance?performance.now.bind(performance):void 0,timing:"u">typeof performance?performance.timing:void 0};function C(e){var t=Math.floor((Date.now()-S.now())*.001),r=.001*S.now(),n=Math.floor(r)+t,a=Math.floor(r%1*1e9);return e&&(n-=e[0],(a-=e[1])<0&&(n--,a+=1e9)),[n,a]}function k(){return R}void 0===S.now&&(i=Date.now(),S.timing&&S.timing.navigationStart&&(i=S.timing.navigationStart),S.now=()=>Date.now()-i),C.bigint=function(e){var t=C(e);return typeof BigInt>"u"?1e9*t[0]+t[1]:BigInt(1e9*t[0])+BigInt(t[1])};var R={version:"v16.8.0",versions:{},arch:"x64",platform:"browser",release:{name:"node",sourceUrl:"",headersUrl:"",libUrl:""},_rawDebug:T,moduleLoadList:[],binding:function(e){g("binding")},_linkedBinding:function(e){g("_linkedBinding")},_events:{},_eventsCount:0,_maxListeners:10,on:k,addListener:k,once:k,off:k,removeListener:k,removeAllListeners:k,emit:T,prependListener:k,prependOnceListener:k,listeners:function(e){return[]},domain:{},_exiting:!1,config:{},dlopen:function(e){g("dlopen")},uptime:function(){return S.now()/1e3},_getActiveRequests:function(){return[]},_getActiveHandles:function(){return[]},reallyExit:T,_kill:T,cpuUsage:I,resourceUsage:I,memoryUsage:I,kill:T,exit:T,openStdin:T,allowedNodeEnvironmentFlags:{},assert:function(e,t){if(!e)throw Error(t||"assertion error")},features:{inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},_fatalExceptions:T,setUncaughtExceptionCaptureCallback:T,hasUncaughtExceptionCaptureCallback:function(){return!1},emitWarning:function(e,t){console.warn((t?t+": ":"")+e)},nextTick:function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r0?o-4:o;for(a=0;a>16&255,f[d++]=n>>8&255,f[d++]=255&n;return 2===c&&(n=t[e.charCodeAt(a)]<<2|t[e.charCodeAt(a+1)]>>4,f[d++]=255&n),1===c&&(n=t[e.charCodeAt(a)]<<10|t[e.charCodeAt(a+1)]<<4|t[e.charCodeAt(a+2)]>>2,f[d++]=n>>8&255,f[d++]=255&n),f},M.fromByteArray=function(t){for(var r,n=t.length,a=n%3,i=[],s=0,o=n-a;s>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]);return i.join("")}(t,s,s+16383>o?o:s+16383));return 1===a?i.push(e[(r=t[n-1])>>2]+e[r<<4&63]+"=="):2===a&&i.push(e[(r=(t[n-2]<<8)+t[n-1])>>10]+e[r>>4&63]+e[r<<2&63]+"="),i.join("")};for(var e=[],t=[],r="u">typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,i=n.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}return t[45]=62,t[95]=63,M}(),t=(O||(O=!0,P.read=function(e,t,r,n,a){var i,s,o=8*a-n-1,c=(1<>1,d=-7,l=r?a-1:0,u=r?-1:1,h=e[t+l];for(l+=u,i=h&(1<<-d)-1,h>>=-d,d+=o;d>0;i=256*i+e[t+l],l+=u,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=n;d>0;s=256*s+e[t+l],l+=u,d-=8);if(0===i)i=1-f;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=f}return(h?-1:1)*s*Math.pow(2,i-n)},P.write=function(e,t,r,n,a,i){var s,o,c,f=8*i-a-1,d=(1<>1,u=23===a?5960464477539062e-23:0,h=n?0:i-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(o=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+l>=1?t+=u/c:t+=u*Math.pow(2,1-l),t*c>=2&&(s++,c/=2),s+l>=d?(o=0,s=d):s+l>=1?(o=(t*c-1)*Math.pow(2,a),s+=l):(o=t*Math.pow(2,l-1)*Math.pow(2,a),s=0));a>=8;e[r+h]=255&o,h+=p,o/=256,a-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,f-=8);e[r+h-p]|=128*b}),P),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function n(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return o(e)}return i(e,t,r)}function i(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);let r=0|l(e,t),i=n(r),s=i.write(e,t);return s!==r&&(i=i.slice(0,s)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(F(e,Uint8Array)){let t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return c(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(F(e,ArrayBuffer)||e&&F(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(F(e,SharedArrayBuffer)||e&&F(e.buffer,SharedArrayBuffer)))return f(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');let i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return a.from(i,t,r);let s=function(e){var t;if(a.isBuffer(e)){let t=0|d(e.length),r=n(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?n(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(s)return s;if("u">typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function o(e){return s(e),n(e<0?0:0|d(e))}function c(e){let t=e.length<0?0:0|d(e.length),r=n(t);for(let n=0;n=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function l(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||F(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:U(e).length;t=(""+t).toLowerCase(),i=!0}}function u(t,r,n){let a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let a="";for(let n=t;n0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r=+r)!=s&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,a){let i,s=1,o=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,o/=2,c/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(a){let n=-1;for(i=r;io&&(r=o-c),i=r;i>=0;i--){let r=!0;for(let n=0;n239?4:t>223?3:t>191?2:1;if(a+s<=r){let r,n,o,c;switch(s){case 1:t<128&&(i=t);break;case 2:(192&(r=e[a+1]))==128&&(c=(31&t)<<6|63&r)>127&&(i=c);break;case 3:r=e[a+1],n=e[a+2],(192&r)==128&&(192&n)==128&&(c=(15&t)<<12|(63&r)<<6|63&n)>2047&&(c<55296||c>57343)&&(i=c);break;case 4:r=e[a+1],n=e[a+2],o=e[a+3],(192&r)==128&&(192&n)==128&&(192&o)==128&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&o)>65535&&c<1114112&&(i=c)}}null===i?(i=65533,s=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),a+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nr)throw RangeError("Trying to access beyond buffer length")}function y(e,t,r,n,i,s){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function v(e,t,r,n,a){S(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function w(e,t,r,n,a){S(t,n,a,e,r,7);let i=Number(t&BigInt(0xffffffff));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let s=Number(t>>BigInt(32)&BigInt(0xffffffff));return e[r+3]=s,s>>=8,e[r+2]=s,s>>=8,e[r+1]=s,s>>=8,e[r]=s,r+8}function x(e,t,r,n,a,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,r,n,a,i){return r=+r,n>>>=0,i||x(e,r,n,4),t.write(e,r,n,a,23,4),n+4}function A(e,r,n,a,i){return r=+r,n>>>=0,i||x(e,r,n,8),t.write(e,r,n,a,52,8),n+8}j.Buffer=a,j.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},j.INSPECT_MAX_BYTES=50,j.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch{return!1}}(),!a.TYPED_ARRAY_SUPPORT&&"u">typeof console&&"function"==typeof console.error&&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."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return i(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return s(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)},a.allocUnsafe=function(e){return o(e)},a.allocUnsafeSlow=function(e){return o(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let a=0,i=Math.min(r,n);an.length?(a.isBuffer(t)||(t=a.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else if(a.isBuffer(t))t.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=t.length}return n},a.byteLength=l,a.prototype._isBuffer=!0,a.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;tt&&(e+=" ... "),""},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(F(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;let s=i-n,o=r-t,c=Math.min(s,o),f=this.slice(n,i),d=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let u=this.length-t;if((void 0===r||r>u)&&(r=u),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let h=!1;for(;;)switch(n){case"hex":return function(e,t,r,n){let a;r=Number(r)||0;let i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;let s=t.length;for(n>s/2&&(n=s/2),a=0;a>8,a.push(r%256),a.push(n);return a}(e,this.length-d),this,d,l);default:if(h)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){let r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||m(e,t,this.length);let n=this[e],a=1,i=0;for(;++i>>=0,t>>>=0,r||m(e,t,this.length);let n=this[e+--t],a=1;for(;t>0&&(a*=256);)n+=this[e+--t]*a;return n},a.prototype.readUint8=a.prototype.readUInt8=function(e,t){return e>>>=0,t||m(e,1,this.length),this[e]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readBigUInt64LE=V(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&k(e,this.length-8);let n=t+256*this[++e]+65536*this[++e]+0x1000000*this[++e],a=this[++e]+256*this[++e]+65536*this[++e]+0x1000000*r;return BigInt(n)+(BigInt(a)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&k(e,this.length-8);let n=0x1000000*t+65536*this[++e]+256*this[++e]+this[++e],a=0x1000000*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||m(e,t,this.length);let n=this[e],a=1,i=0;for(;++i=(a*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);let n=t,a=1,i=this[e+--n];for(;n>0&&(a*=256);)i+=this[e+--n]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},a.prototype.readInt8=function(e,t){return e>>>=0,t||m(e,1,this.length),128&this[e]?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||m(e,2,this.length);let r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||m(e,2,this.length);let r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readBigInt64LE=V(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&k(e,this.length-8),(BigInt(this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24))<>>=0,"offset");let t=this[e],r=this[e+7];return(void 0===t||void 0===r)&&k(e,this.length-8),(BigInt((t<<24)+65536*this[++e]+256*this[++e]+this[++e])<>>=0,r||m(e,4,this.length),t.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,r){return e>>>=0,r||m(e,4,this.length),t.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,r){return e>>>=0,r||m(e,8,this.length),t.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,r){return e>>>=0,r||m(e,8,this.length),t.read(this,e,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;y(this,e,t,r,n,0)}let a=1,i=0;for(this[t]=255&e;++i>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;y(this,e,t,r,n,0)}let a=r-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigUInt64LE=V(function(e,t=0){return v(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=V(function(e,t=0){return w(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);y(this,e,t,r,n-1,-n)}let a=0,i=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){let n=Math.pow(2,8*r-1);y(this,e,t,r,n-1,-n)}let a=r-1,i=1,s=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/i>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||y(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeBigInt64LE=V(function(e,t=0){return v(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=V(function(e,t=0){return w(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function S(e,t,r,n,a,i){if(e>r||e= 0${r} and < 2${r} ** ${(i+1)*8}${r}`:`>= -(2${r} ** ${(i+1)*8-1}${r}) and < 2 ** ${(i+1)*8-1}${r}`,new _.ERR_OUT_OF_RANGE("value",n,e)}C(a,"offset"),(void 0===n[a]||void 0===n[a+i])&&k(a,n.length-(i+1))}function C(e,t){if("number"!=typeof e)throw new _.ERR_INVALID_ARG_TYPE(t,"number",e)}function k(e,t,r){throw Math.floor(e)!==e?(C(e,r),new _.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new _.ERR_BUFFER_OUT_OF_BOUNDS:new _.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}T("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),T("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),T("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?a=I(String(r)):"bigint"==typeof r&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=I(a)),a+="n"),n+=` It must be ${t}. Received ${a}`},RangeError);let R=/[^+/0-9A-Za-z-_]/g;function U(e,t){t=t||1/0;let r,n=e.length,a=null,i=[];for(let s=0;s55295&&r<57344){if(!a){if(r>56319||s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function L(t){return e.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(t))}function D(e,t,r,n){let a;for(a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function F(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let H=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let a=0;a<16;++a)t[n+a]=e[r]+e[a]}return t}();function V(e){return typeof BigInt>"u"?q:e}function q(){throw Error("BigInt not supported")}return j}();U.Buffer,U.SlowBuffer,U.INSPECT_MAX_BYTES,U.kMaxLength;var L=U.Buffer;U.INSPECT_MAX_BYTES,U.kMaxLength;var D={};((e,t)=>{for(var r in t)b(e,r,{get:t[r],enumerable:!0})})(D,{deleteItem:()=>$,getItem:()=>K,setItem:()=>W});var F=()=>typeof window>"u",H=()=>!F(),V=()=>H()&&window.localStorage,q=e=>{if(null!==e)try{return JSON.parse(e)}catch{return e}},z=e=>"string"==typeof e?e:JSON.stringify(e),G=e=>`__IMX-${e}`;function K(e){if(V())return q(window.localStorage.getItem(G(e)))}var W=(e,t)=>!!V()&&(window.localStorage.setItem(G(e),z(t)),!0),$=e=>!!V()&&(window.localStorage.removeItem(G(e)),!0),J=0,Q=e=>{let t=new Date(1e3*parseInt(e,10)),r=new Date;return J=t.getTime()-r.getTime()},Z=()=>new Date(new Date().getTime()+J).toISOString(),X=((n=X||{}).RUNTIME_ID="rid",n.PASSPORT_CLIENT_ID="passportClientId",n.ENVIRONMENT="env",n.PUBLISHABLE_API_KEY="pak",n.IDENTITY="uid",n.DOMAIN="domain",n.SDK_VERSION="sdkVersion",n);async function Y(e,t){let r=(0,u.default).create({baseURL:"https://api.immutable.com"}),n=JSON.stringify(t),a={payload:L.from(n).toString("base64")};return(await r.post(e,a)).data}s=K("metrics-events")||[],o=K("metrics-runtime")||{};var ee=(e,t)=>{W("metrics-runtime",o={...o,[e]:t})},et=e=>{if(void 0!==o[e])return o[e]},er=()=>o,en=()=>s,ea=e=>{s.push(e),W("metrics-events",s)},ei=e=>{W("metrics-events",s=s.slice(e))},es=e=>{let t=[];return Object.entries(e).forEach(([e,r])=>{("string"==typeof e||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)&&t.push([e,r.toString()])}),t},eo="2.3.0",ec=()=>F()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",ef=()=>{let e;if(F())return"";try{window.self!==window.top&&(e=ec())}catch{}return e||(e=window.location.hostname),e},ed=()=>{if(ee("sdkVersion",eo),F())return{browser:"nodejs",sdkVersion:eo};let e=ef();return e&&ee("domain",e),{sdkVersion:eo,browser:window.navigator.userAgent,domain:e,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},el=!1,eu=()=>el,eh=async()=>{el=!0;try{let e=es(ed()),t=et("rid"),r=et("uid"),{runtimeId:n,sTime:a}=await Y("/v1/sdk/initialise",{version:1,data:{runtimeDetails:e,runtimeId:t,uId:r}});ee("rid",n),Q(a)}catch{el=!1}};function ep(e,t){return(...r)=>{try{let n=e(...r);return n instanceof Promise?n.catch(()=>t):n}catch{return t}}}var eb=ep(function(){return!H()&&!(typeof R>"u")&&void 0!==R.env.JEST_WORKER_ID},!1),eg="imtbl__metrics",em=(e,t)=>(0,p.getGlobalisedValue)(eg,e,t),ey=ep((c="track",f=(e,t,r)=>{ea({event:`${e}.${t}`,time:Z(),...r&&{properties:es(r)}})},a=(0,h.memorise)(f,{lruOptions:{ttl:5e3,max:1e3}}),(0,p.getGlobalisedValue)(eg,c,a))),ev=ep(async()=>{if(!1===eu()){await eh();return}let e=en();if(0===e.length)return;let t=e.length,r=er();await Y("/v1/sdk/metrics",{version:1,data:{events:e,details:r}}) instanceof Error||ei(t)}),ew=async()=>{await ev(),setTimeout(ew,5e3)},ex=!1;eb()||ep(em("startFlushing",()=>{ex||(ex=!0,ew())}))();var eE=(e,t,r,n)=>ey(e,t,{...n||{},duration:Math.round(r)}),eA=()=>{let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`},e_=(...e)=>{if(!e.some(e=>!!e))return{};let t={};return e.forEach(e=>{e&&(t={...t,...e})}),t},eT=e=>e.replace(/[^a-zA-Z0-9\s\-_]/g,""),eI=(e,t)=>`${e}_${eT(t)}`,eS=ep((e,t,r=!0,n)=>{let a=eA(),i=Date.now(),s=0,o=0,c={},f=(...e)=>e_(c,...e,{flowId:a,flowName:t});c=f(n);let d=(r,n)=>{let a=eI(t,r),i=0,c=performance.now();s>0&&(i=c-o),eE(e,a,i,f(n,{flowEventName:r,flowStep:s})),s++,o=c};return r&&d("Start"),{details:{moduleName:e,flowName:t,flowId:a,flowStartTime:i},addEvent:ep(d),addFlowProperties:ep(e=>{e&&(c=f(e))})}}),eC=ep((e,t,r,n)=>{let{message:a}=r,i=r.stack||"",{cause:s}=r;s instanceof Error&&(i=`${i} Cause: ${s.message} ${s.stack}`),ey(e,`trackError_${t}`,{...n||{},errorMessage:a,errorStack:i,isTrackError:!0})}),ek=e=>{if(e.passportId)return`passport:${e.passportId.toLowerCase()}`;if(e.ethAddress)return`ethAddress:${e.ethAddress.toLowerCase()}`;throw Error("invalid_identity")},eR=ep(e=>{let t=ek(e);t&&(ee("uid",t),ey("metrics","identify",e.traits))}),eM=ep(em("setEnvironment",e=>{ee("env",e)})),eB=ep(em("setPassportClientId",e=>{ee("passportClientId",e)})),eP=ep(em("setPublishableApiKey",e=>{ee("pak",e)})),eO=ep(em("getDetail",et)),ej={localStorage:D}},{axios:"fYIJi","lru-memorise":"1vEoP","global-const":"kOozJ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"1vEoP":[function(e,t,r){!function(e){/** * tiny-lru @@ -336,7 +336,7 @@ Cause: ${s.message} * @copyright 2023 Jason Mulligan * @license BSD-3-Clause * @version 11.2.5 - */class t{constructor(e=0,t=0,r=!1){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.resetTtl=r,this.size=0,this.ttl=t}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){let t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}return this}entries(e=this.keys()){return e.map(e=>[e,this.get(e)])}evict(e=!1){if(e||this.size>0){let e=this.first;delete this.items[e.key],0==--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}return this}expiresAt(e){let t;return this.has(e)&&(t=this.items[e].expiry),t}get(e){let t;if(this.has(e)){let r=this.items[e];this.ttl>0&&r.expiry<=Date.now()?this.delete(e):(t=r.value,this.set(e,t,!0))}return t}has(e){return e in this.items}keys(){let e=[],t=this.first;for(;null!==t;)e.push(t.key),t=t.next;return e}set(e,t,r=!1,n=this.resetTtl){let a;if(r||this.has(e)){if((a=this.items[e]).value=t,!1===r&&n&&(a.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==a){let e=this.last,t=a.next,r=a.prev;this.first===a&&(this.first=a.next),a.next=null,a.prev=this.last,e.next=a,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),a=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},1==++this.size?this.first=a:this.last.next=a;return this.last=a,this}values(e=this.keys()){return e.map(e=>this.get(e))}}let r={max:1e3},n=(e,n={})=>{let{cache:i,cacheKeyResolver:s=a,onHit:o,lruOptions:c={}}=n,f={...r,...c},d=i||function(e=1e3,r=0,n=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(r)||r<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof n)throw TypeError("Invalid resetTtl value");return new t(e,r,n)}(f.max,f.ttl);function l(...t){let r=s(...t),n=d.get(r);if(d.has(r))return o&&o(r,n,d),n;let a=e.apply(this,t);return d.set(r,a),a}return l._cache=d,l},a=(...e)=>0===e.length?"no-args":e.map(e=>void 0===e?"undefined":null===e?"null":Array.isArray(e)?`[${a(...e)}]`:"object"==typeof e?`{${a(...i(e))}}`:JSON.stringify(e)).join(","),i=e=>Object.entries(e).sort((e,t)=>e[0]"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:n,i=(e,t)=>{if("string"!=typeof e)throw"Invalid namespace key";if("string"!=typeof t)throw"Invalid item key"},s=e=>`globalise__singleton__${e}`,o=e=>{let t=a(),r=s(e);return t[r]||(t[r]={}),t[r]},c=(e,t)=>o(e)[t]||void 0,f=(e,t,r)=>{o(e)[t]=r};r.getGlobalisedValue=(e,t,r)=>{i(e,t);let n=c(e,t);return void 0!==n?n:(f(e,t,r),r)},r.clearGlobalNamespace=e=>{let t=a(),r=s(e);void 0!==t[r]&&delete t[r]}},{}],jZqA6:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ethers",()=>a);var a=e("./ethers.js");n.exportAll(a,r)},{"./ethers.js":"6g0fQ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6g0fQ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>a.version),n.export(r,"decodeBytes32String",()=>i.decodeBytes32String),n.export(r,"encodeBytes32String",()=>i.encodeBytes32String),n.export(r,"AbiCoder",()=>i.AbiCoder),n.export(r,"ConstructorFragment",()=>i.ConstructorFragment),n.export(r,"ErrorFragment",()=>i.ErrorFragment),n.export(r,"EventFragment",()=>i.EventFragment),n.export(r,"Fragment",()=>i.Fragment),n.export(r,"FallbackFragment",()=>i.FallbackFragment),n.export(r,"FunctionFragment",()=>i.FunctionFragment),n.export(r,"NamedFragment",()=>i.NamedFragment),n.export(r,"ParamType",()=>i.ParamType),n.export(r,"StructFragment",()=>i.StructFragment),n.export(r,"checkResultErrors",()=>i.checkResultErrors),n.export(r,"ErrorDescription",()=>i.ErrorDescription),n.export(r,"Indexed",()=>i.Indexed),n.export(r,"Interface",()=>i.Interface),n.export(r,"LogDescription",()=>i.LogDescription),n.export(r,"Result",()=>i.Result),n.export(r,"TransactionDescription",()=>i.TransactionDescription),n.export(r,"Typed",()=>i.Typed),n.export(r,"getAddress",()=>s.getAddress),n.export(r,"getIcapAddress",()=>s.getIcapAddress),n.export(r,"getCreateAddress",()=>s.getCreateAddress),n.export(r,"getCreate2Address",()=>s.getCreate2Address),n.export(r,"isAddressable",()=>s.isAddressable),n.export(r,"isAddress",()=>s.isAddress),n.export(r,"resolveAddress",()=>s.resolveAddress),n.export(r,"ZeroAddress",()=>o.ZeroAddress),n.export(r,"WeiPerEther",()=>o.WeiPerEther),n.export(r,"MaxUint256",()=>o.MaxUint256),n.export(r,"MinInt256",()=>o.MinInt256),n.export(r,"MaxInt256",()=>o.MaxInt256),n.export(r,"N",()=>o.N),n.export(r,"ZeroHash",()=>o.ZeroHash),n.export(r,"EtherSymbol",()=>o.EtherSymbol),n.export(r,"MessagePrefix",()=>o.MessagePrefix),n.export(r,"BaseContract",()=>c.BaseContract),n.export(r,"Contract",()=>c.Contract),n.export(r,"ContractFactory",()=>c.ContractFactory),n.export(r,"ContractEventPayload",()=>c.ContractEventPayload),n.export(r,"ContractTransactionReceipt",()=>c.ContractTransactionReceipt),n.export(r,"ContractTransactionResponse",()=>c.ContractTransactionResponse),n.export(r,"ContractUnknownEventPayload",()=>c.ContractUnknownEventPayload),n.export(r,"EventLog",()=>c.EventLog),n.export(r,"UndecodedEventLog",()=>c.UndecodedEventLog),n.export(r,"computeHmac",()=>f.computeHmac),n.export(r,"randomBytes",()=>f.randomBytes),n.export(r,"keccak256",()=>f.keccak256),n.export(r,"ripemd160",()=>f.ripemd160),n.export(r,"sha256",()=>f.sha256),n.export(r,"sha512",()=>f.sha512),n.export(r,"pbkdf2",()=>f.pbkdf2),n.export(r,"scrypt",()=>f.scrypt),n.export(r,"scryptSync",()=>f.scryptSync),n.export(r,"lock",()=>f.lock),n.export(r,"Signature",()=>f.Signature),n.export(r,"SigningKey",()=>f.SigningKey),n.export(r,"id",()=>d.id),n.export(r,"ensNormalize",()=>d.ensNormalize),n.export(r,"isValidName",()=>d.isValidName),n.export(r,"namehash",()=>d.namehash),n.export(r,"dnsEncode",()=>d.dnsEncode),n.export(r,"hashMessage",()=>d.hashMessage),n.export(r,"verifyMessage",()=>d.verifyMessage),n.export(r,"solidityPacked",()=>d.solidityPacked),n.export(r,"solidityPackedKeccak256",()=>d.solidityPackedKeccak256),n.export(r,"solidityPackedSha256",()=>d.solidityPackedSha256),n.export(r,"TypedDataEncoder",()=>d.TypedDataEncoder),n.export(r,"verifyTypedData",()=>d.verifyTypedData),n.export(r,"getDefaultProvider",()=>l.getDefaultProvider),n.export(r,"Block",()=>l.Block),n.export(r,"FeeData",()=>l.FeeData),n.export(r,"Log",()=>l.Log),n.export(r,"TransactionReceipt",()=>l.TransactionReceipt),n.export(r,"TransactionResponse",()=>l.TransactionResponse),n.export(r,"AbstractSigner",()=>l.AbstractSigner),n.export(r,"NonceManager",()=>l.NonceManager),n.export(r,"VoidSigner",()=>l.VoidSigner),n.export(r,"AbstractProvider",()=>l.AbstractProvider),n.export(r,"FallbackProvider",()=>l.FallbackProvider),n.export(r,"JsonRpcApiProvider",()=>l.JsonRpcApiProvider),n.export(r,"JsonRpcProvider",()=>l.JsonRpcProvider),n.export(r,"JsonRpcSigner",()=>l.JsonRpcSigner),n.export(r,"BrowserProvider",()=>l.BrowserProvider),n.export(r,"AlchemyProvider",()=>l.AlchemyProvider),n.export(r,"AnkrProvider",()=>l.AnkrProvider),n.export(r,"ChainstackProvider",()=>l.ChainstackProvider),n.export(r,"CloudflareProvider",()=>l.CloudflareProvider),n.export(r,"EtherscanProvider",()=>l.EtherscanProvider),n.export(r,"InfuraProvider",()=>l.InfuraProvider),n.export(r,"InfuraWebSocketProvider",()=>l.InfuraWebSocketProvider),n.export(r,"PocketProvider",()=>l.PocketProvider),n.export(r,"QuickNodeProvider",()=>l.QuickNodeProvider),n.export(r,"IpcSocketProvider",()=>l.IpcSocketProvider),n.export(r,"SocketProvider",()=>l.SocketProvider),n.export(r,"WebSocketProvider",()=>l.WebSocketProvider),n.export(r,"EnsResolver",()=>l.EnsResolver),n.export(r,"Network",()=>l.Network),n.export(r,"EnsPlugin",()=>l.EnsPlugin),n.export(r,"EtherscanPlugin",()=>l.EtherscanPlugin),n.export(r,"FeeDataNetworkPlugin",()=>l.FeeDataNetworkPlugin),n.export(r,"FetchUrlFeeDataNetworkPlugin",()=>l.FetchUrlFeeDataNetworkPlugin),n.export(r,"GasCostPlugin",()=>l.GasCostPlugin),n.export(r,"NetworkPlugin",()=>l.NetworkPlugin),n.export(r,"MulticoinProviderPlugin",()=>l.MulticoinProviderPlugin),n.export(r,"SocketBlockSubscriber",()=>l.SocketBlockSubscriber),n.export(r,"SocketEventSubscriber",()=>l.SocketEventSubscriber),n.export(r,"SocketPendingSubscriber",()=>l.SocketPendingSubscriber),n.export(r,"SocketSubscriber",()=>l.SocketSubscriber),n.export(r,"UnmanagedSubscriber",()=>l.UnmanagedSubscriber),n.export(r,"copyRequest",()=>l.copyRequest),n.export(r,"showThrottleMessage",()=>l.showThrottleMessage),n.export(r,"accessListify",()=>u.accessListify),n.export(r,"computeAddress",()=>u.computeAddress),n.export(r,"recoverAddress",()=>u.recoverAddress),n.export(r,"Transaction",()=>u.Transaction),n.export(r,"decodeBase58",()=>h.decodeBase58),n.export(r,"encodeBase58",()=>h.encodeBase58),n.export(r,"decodeBase64",()=>h.decodeBase64),n.export(r,"encodeBase64",()=>h.encodeBase64),n.export(r,"concat",()=>h.concat),n.export(r,"dataLength",()=>h.dataLength),n.export(r,"dataSlice",()=>h.dataSlice),n.export(r,"getBytes",()=>h.getBytes),n.export(r,"getBytesCopy",()=>h.getBytesCopy),n.export(r,"hexlify",()=>h.hexlify),n.export(r,"isHexString",()=>h.isHexString),n.export(r,"isBytesLike",()=>h.isBytesLike),n.export(r,"stripZerosLeft",()=>h.stripZerosLeft),n.export(r,"zeroPadBytes",()=>h.zeroPadBytes),n.export(r,"zeroPadValue",()=>h.zeroPadValue),n.export(r,"defineProperties",()=>h.defineProperties),n.export(r,"resolveProperties",()=>h.resolveProperties),n.export(r,"assert",()=>h.assert),n.export(r,"assertArgument",()=>h.assertArgument),n.export(r,"assertArgumentCount",()=>h.assertArgumentCount),n.export(r,"assertNormalize",()=>h.assertNormalize),n.export(r,"assertPrivate",()=>h.assertPrivate),n.export(r,"makeError",()=>h.makeError),n.export(r,"isCallException",()=>h.isCallException),n.export(r,"isError",()=>h.isError),n.export(r,"EventPayload",()=>h.EventPayload),n.export(r,"FetchRequest",()=>h.FetchRequest),n.export(r,"FetchResponse",()=>h.FetchResponse),n.export(r,"FetchCancelSignal",()=>h.FetchCancelSignal),n.export(r,"FixedNumber",()=>h.FixedNumber),n.export(r,"getBigInt",()=>h.getBigInt),n.export(r,"getNumber",()=>h.getNumber),n.export(r,"getUint",()=>h.getUint),n.export(r,"toBeArray",()=>h.toBeArray),n.export(r,"toBigInt",()=>h.toBigInt),n.export(r,"toBeHex",()=>h.toBeHex),n.export(r,"toNumber",()=>h.toNumber),n.export(r,"toQuantity",()=>h.toQuantity),n.export(r,"fromTwos",()=>h.fromTwos),n.export(r,"toTwos",()=>h.toTwos),n.export(r,"mask",()=>h.mask),n.export(r,"formatEther",()=>h.formatEther),n.export(r,"parseEther",()=>h.parseEther),n.export(r,"formatUnits",()=>h.formatUnits),n.export(r,"parseUnits",()=>h.parseUnits),n.export(r,"toUtf8Bytes",()=>h.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>h.toUtf8CodePoints),n.export(r,"toUtf8String",()=>h.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>h.Utf8ErrorFuncs),n.export(r,"decodeRlp",()=>h.decodeRlp),n.export(r,"encodeRlp",()=>h.encodeRlp),n.export(r,"uuidV4",()=>h.uuidV4),n.export(r,"Mnemonic",()=>p.Mnemonic),n.export(r,"BaseWallet",()=>p.BaseWallet),n.export(r,"HDNodeWallet",()=>p.HDNodeWallet),n.export(r,"HDNodeVoidWallet",()=>p.HDNodeVoidWallet),n.export(r,"Wallet",()=>p.Wallet),n.export(r,"defaultPath",()=>p.defaultPath),n.export(r,"getAccountPath",()=>p.getAccountPath),n.export(r,"getIndexedAccountPath",()=>p.getIndexedAccountPath),n.export(r,"isCrowdsaleJson",()=>p.isCrowdsaleJson),n.export(r,"isKeystoreJson",()=>p.isKeystoreJson),n.export(r,"decryptCrowdsaleJson",()=>p.decryptCrowdsaleJson),n.export(r,"decryptKeystoreJsonSync",()=>p.decryptKeystoreJsonSync),n.export(r,"decryptKeystoreJson",()=>p.decryptKeystoreJson),n.export(r,"encryptKeystoreJson",()=>p.encryptKeystoreJson),n.export(r,"encryptKeystoreJsonSync",()=>p.encryptKeystoreJsonSync),n.export(r,"Wordlist",()=>b.Wordlist),n.export(r,"LangEn",()=>b.LangEn),n.export(r,"WordlistOwl",()=>b.WordlistOwl),n.export(r,"WordlistOwlA",()=>b.WordlistOwlA),n.export(r,"wordlists",()=>b.wordlists);var a=e("./_version.js"),i=e("./abi/index.js"),s=e("./address/index.js"),o=e("./constants/index.js"),c=e("./contract/index.js"),f=e("./crypto/index.js"),d=e("./hash/index.js"),l=e("./providers/index.js"),u=e("./transaction/index.js"),h=e("./utils/index.js"),p=e("./wallet/index.js"),b=e("./wordlists/index.js")},{"./_version.js":!1,"./abi/index.js":"4ccGG","./address/index.js":!1,"./constants/index.js":"2Shkc","./contract/index.js":"h4Dfe","./crypto/index.js":"aHR5v","./hash/index.js":"1Ty7P","./providers/index.js":"9o4Hd","./transaction/index.js":!1,"./utils/index.js":"aoZEY","./wallet/index.js":!1,"./wordlists/index.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],iqyaN:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>a);let a="6.13.5"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4ccGG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>a.AbiCoder),n.export(r,"decodeBytes32String",()=>i.decodeBytes32String),n.export(r,"encodeBytes32String",()=>i.encodeBytes32String),n.export(r,"ConstructorFragment",()=>s.ConstructorFragment),n.export(r,"ErrorFragment",()=>s.ErrorFragment),n.export(r,"EventFragment",()=>s.EventFragment),n.export(r,"FallbackFragment",()=>s.FallbackFragment),n.export(r,"Fragment",()=>s.Fragment),n.export(r,"FunctionFragment",()=>s.FunctionFragment),n.export(r,"NamedFragment",()=>s.NamedFragment),n.export(r,"ParamType",()=>s.ParamType),n.export(r,"StructFragment",()=>s.StructFragment),n.export(r,"checkResultErrors",()=>o.checkResultErrors),n.export(r,"Indexed",()=>o.Indexed),n.export(r,"Interface",()=>o.Interface),n.export(r,"ErrorDescription",()=>o.ErrorDescription),n.export(r,"LogDescription",()=>o.LogDescription),n.export(r,"TransactionDescription",()=>o.TransactionDescription),n.export(r,"Result",()=>o.Result),n.export(r,"Typed",()=>c.Typed);var a=e("./abi-coder.js"),i=e("./bytes32.js"),s=e("./fragments.js"),o=e("./interface.js"),c=e("./typed.js")},{"./abi-coder.js":"f57tP","./bytes32.js":!1,"./fragments.js":!1,"./interface.js":"2PGyl","./typed.js":"3auRl","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],f57tP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>E);var a=e("../utils/index.js"),i=e("./coders/abstract-coder.js"),s=e("./coders/address.js"),o=e("./coders/array.js"),c=e("./coders/boolean.js"),f=e("./coders/bytes.js"),d=e("./coders/fixed-bytes.js"),l=e("./coders/null.js"),u=e("./coders/number.js"),h=e("./coders/string.js"),p=e("./coders/tuple.js"),b=e("./fragments.js"),g=e("../address/index.js");let m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");let y=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/),w=null,x=1024;class E{#m(e){if(e.isArray())return new o.ArrayCoder(this.#m(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new p.TupleCoder(e.components.map(e=>this.#m(e)),e.name);switch(e.baseType){case"address":return new s.AddressCoder(e.name);case"bool":return new c.BooleanCoder(e.name);case"string":return new h.StringCoder(e.name);case"bytes":return new f.BytesCoder(e.name);case"":return new l.NullCoder(e.name)}let t=e.type.match(v);if(t){let r=parseInt(t[2]||"256");return(0,a.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid "+t[1]+" bit length","param",e),new u.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(y)){let r=parseInt(t[1]);return(0,a.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",e),new d.FixedBytesCoder(r,e.name)}(0,a.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){let t=e.map(e=>this.#m((0,b.ParamType).from(e)));return new p.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,a.assertArgumentCount)(t.length,e.length,"types/values length mismatch");let r=e.map(e=>this.#m((0,b.ParamType).from(e))),n=new p.TupleCoder(r,"_"),s=new i.Writer;return n.encode(s,t),s.data}decode(e,t,r){let n=e.map(e=>this.#m((0,b.ParamType).from(e)));return new p.TupleCoder(n,"_").decode(new i.Reader(t,r,x))}static _setDefaultMaxInflation(e){(0,a.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),x=e}static defaultAbiCoder(){return null==w&&(w=new E),w}static getBuiltinCallException(e,t,r){return function(e,t,r,n){let i="missing revert data",s=null,o=null;if(r){i="execution reverted";let e=(0,a.getBytes)(r);if(r=(0,a.hexlify)(r),0===e.length)i+=" (no data present; likely require(false) occurred",s="require(false)";else if(e.length%32!=4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,a.hexlify)(e.slice(0,4)))try{s=n.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[s]},i+=`: ${JSON.stringify(s)}`}catch(e){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,a.hexlify)(e.slice(0,4)))try{let t=Number(n.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},s=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,i+=`: ${s}`}catch(e){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}let c={to:t.to?(0,g.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(c.from=(0,g.getAddress)(t.from)),(0,a.makeError)(i,"CALL_EXCEPTION",{action:e,data:r,reason:s,transaction:c,invocation:null,revert:o})}(e,t,r,E.defaultAbiCoder())}}},{"../utils/index.js":"aoZEY","./coders/abstract-coder.js":"9D1CN","./coders/address.js":"2EVUz","./coders/array.js":"eIRoG","./coders/boolean.js":"gvRue","./coders/bytes.js":"aQHy3","./coders/fixed-bytes.js":"4Zfo6","./coders/null.js":"awFmW","./coders/number.js":"9eyEp","./coders/string.js":"7ZlmT","./coders/tuple.js":"7d2xO","./fragments.js":"hSb7d","../address/index.js":"8s6vX","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aoZEY:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decodeBase58",()=>a.decodeBase58),n.export(r,"encodeBase58",()=>a.encodeBase58),n.export(r,"decodeBase64",()=>i.decodeBase64),n.export(r,"encodeBase64",()=>i.encodeBase64),n.export(r,"getBytes",()=>s.getBytes),n.export(r,"getBytesCopy",()=>s.getBytesCopy),n.export(r,"isHexString",()=>s.isHexString),n.export(r,"isBytesLike",()=>s.isBytesLike),n.export(r,"hexlify",()=>s.hexlify),n.export(r,"concat",()=>s.concat),n.export(r,"dataLength",()=>s.dataLength),n.export(r,"dataSlice",()=>s.dataSlice),n.export(r,"stripZerosLeft",()=>s.stripZerosLeft),n.export(r,"zeroPadValue",()=>s.zeroPadValue),n.export(r,"zeroPadBytes",()=>s.zeroPadBytes),n.export(r,"isCallException",()=>o.isCallException),n.export(r,"isError",()=>o.isError),n.export(r,"assert",()=>o.assert),n.export(r,"assertArgument",()=>o.assertArgument),n.export(r,"assertArgumentCount",()=>o.assertArgumentCount),n.export(r,"assertPrivate",()=>o.assertPrivate),n.export(r,"assertNormalize",()=>o.assertNormalize),n.export(r,"makeError",()=>o.makeError),n.export(r,"EventPayload",()=>c.EventPayload),n.export(r,"FetchRequest",()=>f.FetchRequest),n.export(r,"FetchResponse",()=>f.FetchResponse),n.export(r,"FetchCancelSignal",()=>f.FetchCancelSignal),n.export(r,"FixedNumber",()=>d.FixedNumber),n.export(r,"fromTwos",()=>l.fromTwos),n.export(r,"toTwos",()=>l.toTwos),n.export(r,"mask",()=>l.mask),n.export(r,"getBigInt",()=>l.getBigInt),n.export(r,"getNumber",()=>l.getNumber),n.export(r,"getUint",()=>l.getUint),n.export(r,"toBigInt",()=>l.toBigInt),n.export(r,"toNumber",()=>l.toNumber),n.export(r,"toBeHex",()=>l.toBeHex),n.export(r,"toBeArray",()=>l.toBeArray),n.export(r,"toQuantity",()=>l.toQuantity),n.export(r,"resolveProperties",()=>u.resolveProperties),n.export(r,"defineProperties",()=>u.defineProperties),n.export(r,"decodeRlp",()=>h.decodeRlp),n.export(r,"encodeRlp",()=>p.encodeRlp),n.export(r,"formatEther",()=>b.formatEther),n.export(r,"parseEther",()=>b.parseEther),n.export(r,"formatUnits",()=>b.formatUnits),n.export(r,"parseUnits",()=>b.parseUnits),n.export(r,"toUtf8Bytes",()=>g.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>g.toUtf8CodePoints),n.export(r,"toUtf8String",()=>g.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>g.Utf8ErrorFuncs),n.export(r,"uuidV4",()=>m.uuidV4);var a=e("./base58.js"),i=e("./base64.js"),s=e("./data.js"),o=e("./errors.js"),c=e("./events.js"),f=e("./fetch.js"),d=e("./fixednumber.js"),l=e("./maths.js"),u=e("./properties.js"),h=e("./rlp-decode.js"),p=e("./rlp-encode.js"),b=e("./units.js"),g=e("./utf8.js"),m=e("./uuid.js")},{"./base58.js":"3VakI","./base64.js":!1,"./data.js":"TxBAz","./errors.js":"5Sfsc","./events.js":"buXeD","./fetch.js":"28cMp","./fixednumber.js":!1,"./maths.js":"9CO5q","./properties.js":"391vO","./rlp-decode.js":"gpnJi","./rlp-encode.js":"kfug1","./units.js":!1,"./utf8.js":"aysnp","./uuid.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3VakI":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"encodeBase58",()=>l),n.export(r,"decodeBase58",()=>u);var a=e("./data.js"),i=e("./errors.js"),s=e("./maths.js");let o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",c=null,f=BigInt(0),d=BigInt(58);function l(e){let t=(0,a.getBytes)(e),r=(0,s.toBigInt)(t),n="";for(;r;)n=o[Number(r%d)]+n,r/=d;for(let e=0;es),n.export(r,"getBytesCopy",()=>o),n.export(r,"isHexString",()=>c),n.export(r,"isBytesLike",()=>f),n.export(r,"hexlify",()=>l),n.export(r,"concat",()=>u),n.export(r,"dataLength",()=>h),n.export(r,"dataSlice",()=>p),n.export(r,"stripZerosLeft",()=>b),n.export(r,"zeroPadValue",()=>m),n.export(r,"zeroPadBytes",()=>y);var a=e("./errors.js");function i(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n>4]+d[15&n]}return r}function u(e){return"0x"+e.map(e=>l(e).substring(2)).join("")}function h(e){return c(e,!0)?(e.length-2)/2:s(e).length}function p(e,t,r){let n=s(e);return null!=r&&r>n.length&&(0,a.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),l(n.slice(null==t?0:t,null==r?n.length:r))}function b(e){let t=l(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t}function g(e,t,r){let n=s(e);(0,a.assert)(t>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:t,offset:t+1});let i=new Uint8Array(t);return i.fill(0),r?i.set(n,t-n.length):i.set(n,0),l(i)}function m(e,t){return g(e,t,!0)}function y(e,t){return g(e,t,!1)}},{"./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5Sfsc":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isError",()=>o),n.export(r,"isCallException",()=>c),n.export(r,"makeError",()=>f),n.export(r,"assert",()=>d),n.export(r,"assertArgument",()=>l),n.export(r,"assertArgumentCount",()=>u),n.export(r,"assertNormalize",()=>p),n.export(r,"assertPrivate",()=>b);var a=e("../_version.js"),i=e("./properties.js");function s(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(s).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n>4],r+=t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return s(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{ "+t.map(t=>`${s(t)}: ${s(e[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function c(e){return o(e,"CALL_EXCEPTION")}function f(e,t,r){let n,o=e;{let n=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${s(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];n.push(e+"="+s(t))}}n.push(`code=${t}`),n.push(`version=${a.version}`),n.length&&(e+=" ("+n.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":n=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=RangeError(e);break;default:n=Error(e)}return(0,i.defineProperties)(n,{code:t}),r&&Object.assign(n,r),null==n.shortMessage&&(0,i.defineProperties)(n,{shortMessage:o}),n}function d(e,t,r,n){if(!e)throw f(t,r,n)}function l(e,t,r,n){d(e,t,"INVALID_ARGUMENT",{argument:r,value:n})}function u(e,t,r){null==r&&(r=""),r&&(r=": "+r),d(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),d(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}let h=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);function p(e){d(h.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function b(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),d(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},{"../_version.js":"iqyaN","./properties.js":"391vO","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"391vO":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");async function a(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,n)=>(e[t[n]]=r,e),{})}function i(e,t,r){for(let n in t){let a=t[n],i=r?r[n]:null;i&&function(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;ra),n.export(r,"defineProperties",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9CO5q":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromTwos",()=>c),n.export(r,"toTwos",()=>f),n.export(r,"mask",()=>d),n.export(r,"getBigInt",()=>l),n.export(r,"getUint",()=>u),n.export(r,"toBigInt",()=>p),n.export(r,"getNumber",()=>b),n.export(r,"toNumber",()=>g),n.export(r,"toBeHex",()=>m),n.export(r,"toBeArray",()=>y),n.export(r,"toQuantity",()=>v);var a=e("./data.js"),i=e("./errors.js");let s=BigInt(0),o=BigInt(1);function c(e,t){let r=u(e,"value"),n=BigInt(b(t,"width"));return((0,i.assert)(r>>n===s,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-o)?-((~r&(o<=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){(0,i.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,i.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function u(e,t){let r=l(e,t);return(0,i.assert)(r>=s,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}let h="0123456789abcdef";function p(e){if(e instanceof Uint8Array){let t="0x0";for(let r of e)t+=h[r>>4],t+=h[15&r];return BigInt(t)}return l(e)}function b(e,t){switch(typeof e){case"bigint":return(0,i.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),Number(e);case"number":return(0,i.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,i.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return b(BigInt(e),t)}catch(r){(0,i.assertArgument)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,i.assertArgument)(!1,"invalid numeric value",t||"value",e)}function g(e){return b(p(e))}function m(e,t){let r=u(e,"value").toString(16);if(null==t)r.length%2&&(r="0"+r);else{let n=b(t,"width");for((0,i.assert)(2*n>=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length<2*n;)r="0"+r}return"0x"+r}function y(e){let t=u(e,"value");if(t===s)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);let n=new Uint8Array(r.length/2);for(let e=0;ei),n.export(r,"encodeBase64",()=>s);var a=e("./data.js");function i(e){let t=new Uint8Array((e=atob(e)).length);for(let r=0;ri);var a=e("./properties.js");class i{filter;emitter;#y;constructor(e,t,r){this.#y=t,(0,a.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#y&&await this.emitter.off(this.filter,this.#y)}}},{"./properties.js":"391vO","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"28cMp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FetchCancelSignal",()=>y),n.export(r,"FetchRequest",()=>w),n.export(r,"FetchResponse",()=>x);var a=e("./base64.js"),i=e("./data.js"),s=e("./errors.js"),o=e("./properties.js"),c=e("./utf8.js"),f=e("./geturl.js");let d=(0,f.createGetUrl)(),l=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),u=RegExp("^ipfs://(ipfs/)?(.*)$","i"),h=!1;async function p(e,t){try{var r;let t=e.match(l);if(!t)throw Error("invalid data");return new x(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,a.decodeBase64)(t[3]):(r=t[3],(0,c.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}catch(t){return new x(599,"BAD REQUEST (invalid data: URI)",{},null,new w(e))}}function b(e){return async function(t,r){try{let r=t.match(u);if(!r)throw Error("invalid link");return new w(`${e}${r[2]}`)}catch(e){return new x(599,"BAD REQUEST (invalid IPFS URI)",{},null,new w(t))}}}let g={data:p,ipfs:b("https://gateway.ipfs.io/ipfs/")},m=new WeakMap;class y{#v;#w;constructor(e){this.#v=[],this.#w=!1,m.set(e,()=>{if(!this.#w){for(let e of(this.#w=!0,this.#v))setTimeout(()=>{e()},0);this.#v=[]}})}addListener(e){(0,s.assert)(!this.#w,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#v.push(e)}get cancelled(){return this.#w}checkSignal(){(0,s.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function v(e){if(null==e)throw Error("missing signal; should not happen");return e.checkSignal(),e}class w{#x;#E;#A;#_;#T;#I;#S;#C;#k;#R;#M;#B;#P;#O;#j;get url(){return this.#I}set url(e){this.#I=String(e)}get body(){return null==this.#S?null:new Uint8Array(this.#S)}set body(e){if(null==e)this.#S=void 0,this.#C=void 0;else if("string"==typeof e)this.#S=(0,c.toUtf8Bytes)(e),this.#C="text/plain";else if(e instanceof Uint8Array)this.#S=e,this.#C="application/octet-stream";else if("object"==typeof e)this.#S=(0,c.toUtf8Bytes)(JSON.stringify(e)),this.#C="application/json";else throw Error("invalid body")}hasBody(){return null!=this.#S}get method(){return this.#_?this.#_:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#_=String(e).toUpperCase()}get headers(){let e=Object.assign({},this.#A);return this.#k&&(e.authorization=`Basic ${(0,a.encodeBase64)((0,c.toUtf8Bytes)(this.#k))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#C&&(e["content-type"]=this.#C),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#A[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#A={}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",e),this.#T=e}get preflightFunc(){return this.#R||null}set preflightFunc(e){this.#R=e}get processFunc(){return this.#M||null}set processFunc(e){this.#M=e}get retryFunc(){return this.#B||null}set retryFunc(e){this.#B=e}get getUrlFunc(){return this.#j||d}set getUrlFunc(e){this.#j=e}constructor(e){this.#I=String(e),this.#x=!1,this.#E=!0,this.#A={},this.#_="",this.#T=3e5,this.#O={slotInterval:250,maxAttempts:12},this.#j=null}toString(){return``}setThrottleParams(e){null!=e.slotInterval&&(this.#O.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#O.maxAttempts=e.maxAttempts)}async #N(e,t,r,n,a){if(e>=this.#O.maxAttempts)return a.makeServerError("exceeded maximum retry limit");(0,s.assert)(E()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await new Promise(e=>setTimeout(e,r));let i=this.clone(),o=(i.url.split(":")[0]||"").toLowerCase();if(o in g){let e=await g[o](i.url,v(n.#P));if(e instanceof x){let t=e;if(this.processFunc){v(n.#P);try{t=await this.processFunc(i,t)}catch(e){(null==e.throttle||"number"!=typeof e.stall)&&t.makeServerError("error in post-processing function",e).assertOk()}}return t}i=e}this.preflightFunc&&(i=await this.preflightFunc(i));let c=await this.getUrlFunc(i,v(n.#P)),f=new x(c.statusCode,c.statusMessage,c.headers,c.body,n);if(301===f.statusCode||302===f.statusCode){try{let r=f.headers.location||"";return i.redirect(r).#N(e+1,t,0,n,f)}catch(e){}return f}if(429===f.statusCode&&(null==this.retryFunc||await this.retryFunc(i,f,e))){let r=f.headers["retry-after"],a=this.#O.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(a=parseInt(r)),i.clone().#N(e+1,t,a,n,f)}if(this.processFunc){v(n.#P);try{f=await this.processFunc(i,f)}catch(a){(null==a.throttle||"number"!=typeof a.stall)&&f.makeServerError("error in post-processing function",a).assertOk();let r=this.#O.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return a.stall>=0&&(r=a.stall),i.clone().#N(e+1,t,r,n,f)}}return f}send(){return(0,s.assert)(null==this.#P,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#P=new y(this),this.#N(0,E()+this.timeout,0,this,new x(0,"",{},null,this))}cancel(){(0,s.assert)(null!=this.#P,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let e=m.get(this);if(!e)throw Error("missing signal; should not happen");e()}redirect(e){let t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,s.assert)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});let n=new w(e);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#A=Object.assign({},this.#A),this.#S&&(n.#S=new Uint8Array(this.#S)),n.#C=this.#C,n}clone(){let e=new w(this.url);return e.#_=this.#_,this.#S&&(e.#S=this.#S),e.#C=this.#C,e.#A=Object.assign({},this.#A),e.#k=this.#k,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#R=this.#R,e.#M=this.#M,e.#B=this.#B,e.#O=Object.assign({},this.#O),e.#j=this.#j,e}static lockConfig(){h=!0}static getGateway(e){return g[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw Error(`cannot intercept ${e}; use registerGetUrl`);if(h)throw Error("gateways locked");g[e]=t}static registerGetUrl(e){if(h)throw Error("gateways locked");d=e}static createGetUrlFunc(e){return(0,f.createGetUrl)(e)}static createDataGateway(){return p}static createIpfsGatewayFunc(e){return b(e)}}class x{#U;#L;#A;#S;#D;#F;toString(){return``}get statusCode(){return this.#U}get statusMessage(){return this.#L}get headers(){return Object.assign({},this.#A)}get body(){return null==this.#S?null:new Uint8Array(this.#S)}get bodyText(){try{return null==this.#S?"":(0,c.toUtf8String)(this.#S)}catch(e){(0,s.assert)(!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(e){(0,s.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r(e[t.toLowerCase()]=String(r[t]),e),{}),this.#S=null==n?null:new Uint8Array(n),this.#D=a||null,this.#F={message:""}}makeServerError(e,t){let r;e?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${e})`);let n=new x(599,r,this.headers,this.body,this.#D||void 0);return n.#F={message:e,error:t},n}throwThrottleError(e,t){null==t?t=-1:(0,s.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);let r=Error(e||"throttling requests");throw(0,o.defineProperties)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#S}get request(){return this.#D}ok(){return""===this.#F.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#F;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#S&&(n=(0,c.toUtf8String)(this.#S))}catch(e){}(0,s.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function E(){return new Date().getTime()}},{"./base64.js":"32Ic3","./data.js":"TxBAz","./errors.js":"5Sfsc","./properties.js":"391vO","./utf8.js":"aysnp","./geturl.js":"3qyUr","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aysnp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Utf8ErrorFuncs",()=>o),n.export(r,"toUtf8Bytes",()=>f),n.export(r,"toUtf8String",()=>d),n.export(r,"toUtf8CodePoints",()=>l);var a=e("./data.js"),i=e("./errors.js");function s(e,t,r,n,a){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let n=t+1;n>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}let o=Object.freeze({error:function(e,t,r,n,a){(0,i.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:s,replace:function(e,t,r,n,a){return"OVERLONG"===e?((0,i.assertArgument)("number"==typeof a,"invalid bad code point for replacement","badCodepoint",a),n.push(a),0):(n.push(65533),s(e,t,r,n,a))}});function c(e,t){null==t&&(t=o.error);let r=(0,a.getBytes)(e,"bytes"),n=[],i=0;for(;i>7==0){n.push(e);continue}let a=null,s=null;if((224&e)==192)a=1,s=127;else if((240&e)==224)a=2,s=2047;else if((248&e)==240)a=3,s=65535;else{(192&e)==128?i+=t("UNEXPECTED_CONTINUE",i-1,r,n):i+=t("BAD_PREFIX",i-1,r,n);continue}if(i-1+a>=r.length){i+=t("OVERRUN",i-1,r,n);continue}let o=e&(1<<8-a-1)-1;for(let e=0;e1114111){i+=t("OUT_OF_RANGE",i-1-a,r,n,o);continue}if(o>=55296&&o<=57343){i+=t("UTF16_SURROGATE",i-1-a,r,n,o);continue}if(o<=s){i+=t("OVERLONG",i-1-a,r,n,o);continue}n.push(o)}}return n}function f(e,t){(0,i.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,i.assertNormalize)(t),e=e.normalize(t));let r=[];for(let t=0;t>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let a=e.charCodeAt(t);(0,i.assertArgument)(t>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}function d(e,t){return c(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function l(e,t){return c(f(e,t))}},{"./data.js":"TxBAz","./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3qyUr":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createGetUrl",()=>i),n.export(r,"getUrl",()=>o);var a=e("./errors.js");function i(e){return async function(e,t){let r;(0,a.assert)(null==t||!t.cancelled,"request cancelled before sending","CANCELLED");let n=e.url.split(":")[0].toLowerCase();(0,a.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,a.assert)("https"===n||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null,s=new AbortController,o=setTimeout(()=>{i=(0,a.makeError)("request timeout","TIMEOUT"),s.abort()},e.timeout);t&&t.addListener(()=>{i=(0,a.makeError)("request cancelled","CANCELLED"),s.abort()});let c={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:s.signal};try{r=await fetch(e.url,c)}catch(e){if(clearTimeout(o),i)throw i;throw e}clearTimeout(o);let f={};r.headers.forEach((e,t)=>{f[t.toLowerCase()]=e});let d=await r.arrayBuffer(),l=null==d?null:new Uint8Array(d);return{statusCode:r.status,statusMessage:r.statusText,headers:f,body:l}}}let s=i({});async function o(e,t){return s(e,t)}},{"./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gpnJi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decodeRlp",()=>f);var a=e("./data.js"),i=e("./errors.js");function s(e,t,r){let n=0;for(let a=0;a{(0,i.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let n=e[t]-247;r(t+1+n);let a=s(e,t+1,n);return r(t+1+n+a),o(e,t,t+1+n,n+a)}if(e[t]>=192){let n=e[t]-192;return r(t+1+n),o(e,t,t+1,n)}if(e[t]>=184){let n=e[t]-183;r(t+1+n);let i=s(e,t+1,n);r(t+1+n+i);let o=(0,a.hexlify)(e.slice(t+1+n,t+1+n+i));return{consumed:1+n+i,result:o}}if(e[t]>=128){let n=e[t]-128;r(t+1+n);let i=(0,a.hexlify)(e.slice(t+1,t+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:function(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}(e[t])}}function f(e){let t=(0,a.getBytes)(e,"data"),r=c(t,0);return(0,i.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},{"./data.js":"TxBAz","./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kfug1:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"encodeRlp",()=>o);var a=e("./data.js");function i(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}let s="0123456789abcdef";function o(e){let t="0x";for(let r of function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=i(r.length);return n.unshift(247+n.length),n.concat(r)}let r=Array.prototype.slice.call((0,a.getBytes)(t,"object"));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=i(r.length);return n.unshift(183+n.length),n.concat(r)}(e))t+=s[r>>4],t+=s[15&r];return t}},{"./data.js":"TxBAz","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9D1CN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WordSize",()=>i),n.export(r,"Result",()=>u),n.export(r,"checkResultErrors",()=>h),n.export(r,"Coder",()=>b),n.export(r,"Writer",()=>g),n.export(r,"Reader",()=>m);var a=e("../../utils/index.js");let i=32,s=new Uint8Array(32),o=["then"],c={},f=new WeakMap;function d(e){return f.get(e)}function l(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}class u extends Array{#H;constructor(...e){var t,r;let n=e[0],i=e[1],s=(e[2]||[]).slice(),u=!0;n!==c&&(i=e,s=[],u=!1),super(i.length),i.forEach((e,t)=>{this[t]=e});let h=s.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(t=Object.freeze(i.map((e,t)=>{let r=s[t];return null!=r&&1===h.get(r)?r:null})),f.set(this,t),this.#H=[],null==this.#H&&this.#H,!u)return;Object.freeze(this);let p=new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){let r=(0,a.getNumber)(t,"%index");if(r<0||r>=this.length)throw RangeError("out of result range");let n=e[r];return n instanceof Error&&l(`index ${r}`,n),n}if(o.indexOf(t)>=0)return Reflect.get(e,t,r);let n=e[t];if(n instanceof Function)return function(...t){return n.apply(this===r?e:this,t)};if(!(t in e))return e.getValue.apply(this===r?e:this,[t])}return Reflect.get(e,t,r)}});return r=d(this),f.set(p,r),p}toArray(e){let t=[];return this.forEach((r,n)=>{r instanceof Error&&l(`index ${n}`,r),e&&r instanceof u&&(r=r.toArray(e)),t.push(r)}),t}toObject(e){let t=d(this);return t.reduce((r,n,i)=>((0,a.assert)(null!=n,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),function e(t,r,n){return t.indexOf(null)>=0?r.map((t,r)=>t instanceof u?e(d(t),t,n):t):t.reduce((t,a,i)=>{let s=r.getValue(a);return a in t||(n&&s instanceof u&&(s=e(d(s),s,n)),t[a]=s),t},{})}(t,this,e)),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);let r=d(this),n=[],a=[];for(let i=e;i{this.#V[e]=p(t)}}}class m{allowLoose;#V;#G;#K;#W;#$;constructor(e,t,r){(0,a.defineProperties)(this,{allowLoose:!!t}),this.#V=(0,a.getBytesCopy)(e),this.#K=0,this.#W=null,this.#$=null!=r?r:1024,this.#G=0}get data(){return(0,a.hexlify)(this.#V)}get dataLength(){return this.#V.length}get consumed(){return this.#G}get bytes(){return new Uint8Array(this.#V)}#J(e){if(this.#W)return this.#W.#J(e);this.#K+=e,(0,a.assert)(this.#$<1||this.#K<=this.#$*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#$} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,a.getBytesCopy)(this.#V),offset:this.#G,length:e,info:{bytesRead:this.#K,dataLength:this.dataLength}})}#Q(e,t,r){let n=Math.ceil(t/i)*i;return this.#G+n>this.#V.length&&(this.allowLoose&&r&&this.#G+t<=this.#V.length?n=t:(0,a.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,a.getBytesCopy)(this.#V),length:this.#V.length,offset:this.#G+n})),this.#V.slice(this.#G,this.#G+n)}subReader(e){let t=new m(this.#V.slice(this.#G+e),this.allowLoose,this.#$);return t.#W=this,t}readBytes(e,t){let r=this.#Q(0,e,!!t);return this.#J(e),this.#G+=r.length,r.slice(0,e)}readValue(){return(0,a.toBigInt)(this.readBytes(i))}readIndex(){return(0,a.toNumber)(this.readBytes(i))}}},{"../../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2EVUz":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressCoder",()=>c);var a=e("../../address/index.js"),i=e("../../utils/maths.js"),s=e("../typed.js"),o=e("./abstract-coder.js");class c extends o.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let r=(0,s.Typed).dereference(t,"string");try{r=(0,a.getAddress)(r)}catch(e){return this._throwError(e.message,t)}return e.writeValue(r)}decode(e){return(0,a.getAddress)((0,i.toBeHex)(e.readValue(),20))}}},{"../../address/index.js":"8s6vX","../../utils/maths.js":"9CO5q","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8s6vX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getAddress",()=>a.getAddress),n.export(r,"getIcapAddress",()=>a.getIcapAddress),n.export(r,"getCreateAddress",()=>i.getCreateAddress),n.export(r,"getCreate2Address",()=>i.getCreate2Address),n.export(r,"isAddressable",()=>s.isAddressable),n.export(r,"isAddress",()=>s.isAddress),n.export(r,"resolveAddress",()=>s.resolveAddress);var a=e("./address.js"),i=e("./contract-address.js"),s=e("./checks.js")},{"./address.js":"aXhJ2","./contract-address.js":"5gq13","./checks.js":"6XnDN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aXhJ2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getAddress",()=>u),n.export(r,"getIcapAddress",()=>h);var a=e("../crypto/index.js"),i=e("../utils/index.js");let s=BigInt(0),o=BigInt(36);function c(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=(0,i.getBytes)((0,a.keccak256)(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let f={};for(let e=0;e<10;e++)f[String(e)]=String(e);for(let e=0;e<26;e++)f[String.fromCharCode(65+e)]=String(10+e);function d(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>f[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}let l=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function u(e){if((0,i.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=c(e);return(0,i.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,i.assertArgument)(e.substring(2,4)===d(e),"bad icap checksum","address",e);let t=(function(e){e=e.toLowerCase();let t=s;for(let r=0;rl.SigningKey),n.export(r,"Signature",()=>u.Signature),n.export(r,"computeHmac",()=>a.computeHmac),n.export(r,"randomBytes",()=>c.randomBytes),n.export(r,"keccak256",()=>i.keccak256),n.export(r,"ripemd160",()=>s.ripemd160),n.export(r,"sha256",()=>d.sha256),n.export(r,"sha512",()=>d.sha512),n.export(r,"pbkdf2",()=>o.pbkdf2),n.export(r,"scrypt",()=>f.scrypt),n.export(r,"scryptSync",()=>f.scryptSync),n.export(r,"lock",()=>h);var a=e("./hmac.js"),i=e("./keccak.js"),s=e("./ripemd160.js"),o=e("./pbkdf2.js"),c=e("./random.js"),f=e("./scrypt.js"),d=e("./sha2.js"),l=e("./signing-key.js"),u=e("./signature.js");function h(){(0,a.computeHmac).lock(),(0,i.keccak256).lock(),(0,o.pbkdf2).lock(),(0,c.randomBytes).lock(),(0,s.ripemd160).lock(),(0,f.scrypt).lock(),(0,f.scryptSync).lock(),(0,d.sha256).lock(),(0,d.sha512).lock(),(0,c.randomBytes).lock()}},{"./hmac.js":"edAlO","./keccak.js":"717uU","./ripemd160.js":"1MSrJ","./pbkdf2.js":"1ulPs","./random.js":"eA3PK","./scrypt.js":"2R171","./sha2.js":"01h0r","./signing-key.js":"6fyju","./signature.js":"kpLQM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],edAlO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"computeHmac",()=>f);var a=e("./crypto.js"),i=e("../utils/index.js");let s=!1,o=function(e,t,r){return(0,a.createHmac)(e,t).update(r).digest()},c=o;function f(e,t,r){let n=(0,i.getBytes)(t,"key"),a=(0,i.getBytes)(r,"data");return(0,i.hexlify)(c(e,n,a))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw Error("computeHmac is locked");c=e},Object.freeze(f)},{"./crypto.js":"gcmds","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gcmds:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createHash",()=>u),n.export(r,"createHmac",()=>h),n.export(r,"pbkdf2Sync",()=>p),n.export(r,"randomBytes",()=>b);var a=e("@noble/hashes/hmac"),i=e("@noble/hashes/pbkdf2"),s=e("@noble/hashes/sha256"),o=e("@noble/hashes/sha512"),c=e("../utils/index.js"),f=arguments[3];let d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==f)return f;throw Error("unable to locate global object")}(),l=d.crypto||d.msCrypto;function u(e){switch(e){case"sha256":return(0,s.sha256).create();case"sha512":return(0,o.sha512).create()}(0,c.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)}function h(e,t){let r={sha256:s.sha256,sha512:o.sha512}[e];return(0,c.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",e),(0,a.hmac).create(r,t)}function p(e,t,r,n,a){let f={sha256:s.sha256,sha512:o.sha512}[a];return(0,c.assertArgument)(null!=f,"invalid pbkdf2 algorithm","algorithm",a),(0,i.pbkdf2)(f,e,t,{c:r,dkLen:n})}function b(e){(0,c.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,c.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);let t=new Uint8Array(e);return l.getRandomValues(t),t}},{"@noble/hashes/hmac":"4YtgG","@noble/hashes/pbkdf2":"lxkUV","@noble/hashes/sha256":"lK7uV","@noble/hashes/sha512":"IgUSi","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4YtgG":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hmac=r.HMAC=void 0;let n=e("9d7a1d8e64ff94ec"),a=e("e468e477b5d9679e");class i extends a.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);let r=(0,a.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?e.create().update(r).digest():r);for(let e=0;enew i(e,t).update(r).digest(),r.hmac.create=(e,t)=>new i(e,t)},{"9d7a1d8e64ff94ec":"5t4wd",e468e477b5d9679e:"fDQnA"}],"5t4wd":[function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function a(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function c(e,t){i(e);let r=t.outputLen;if(e.lengthe instanceof Uint8Array;if(r.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),r.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),r.rotr=(e,t)=>e<<32-t|e>>>t,r.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],!r.isLE)throw Error("Non little-endian hardware is not supported");let i=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));r.bytesToHex=function(e){if(!a(e))throw Error("Uint8Array expected");let t="";for(let r=0;r{};async function o(e,t,n){let a=Date.now();for(let i=0;i=0&&ee+t.length,0)),r=0;return e.forEach(e=>{if(!a(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t},r.Hash=class{clone(){return this._cloneInto()}};let d={}.toString;r.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==d.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)},r.wrapConstructor=function(e){let t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},r.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},{"6d0c45c60fe4aa6a":"5WBAK"}],"5WBAK":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},{}],lxkUV:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pbkdf2Async=r.pbkdf2=void 0;let n=e("3d55d55cf456e57f"),a=e("8ae10c39d1e1dd8c"),i=e("1c3e2366802a63f6");function s(e,t,r,s){(0,n.hash)(e);let{c:o,dkLen:c,asyncTick:f}=(0,i.checkOpts)({dkLen:32,asyncTick:10},s);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(f),o<1)throw Error("PBKDF2: iterations (c) should be >= 1");let d=(0,i.toBytes)(t),l=(0,i.toBytes)(r),u=new Uint8Array(c),h=a.hmac.create(e,d),p=h._cloneInto().update(l);return{c:o,dkLen:c,asyncTick:f,DK:u,PRF:h,PRFSalt:p}}function o(e,t,r,n,a){return e.destroy(),t.destroy(),n&&n.destroy(),a.fill(0),r}async function c(e,t,r,n){let a;let{c,dkLen:f,asyncTick:d,DK:l,PRF:u,PRFSalt:h}=s(e,t,r,n),p=new Uint8Array(4),b=(0,i.createView)(p),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t{u._cloneInto(a).update(g).digestInto(g);for(let e=0;ee&t^~e&r,s=(e,t,r)=>e&t^e&r^t&r,o=/* @__PURE__ */new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),c=/* @__PURE__ */new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),f=/* @__PURE__ */new Uint32Array(64);class d extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:r,D:n,E:a,F:i,G:s,H:o}=this;return[e,t,r,n,a,i,s,o]}set(e,t,r,n,a,i,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|i,this.G=0|s,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=f[e-15],r=f[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,i=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;f[e]=i+f[e-7]+n+f[e-16]|0}let{A:r,B:n,C:c,D:d,E:l,F:u,G:h,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,a.rotr)(l,6)^(0,a.rotr)(l,11)^(0,a.rotr)(l,25))+i(l,u,h)+o[e]+f[e]|0,b=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+s(r,n,c)|0;p=h,h=u,u=l,l=d+t|0,d=c,c=n,n=r,r=t+b|0}r=r+this.A|0,n=n+this.B|0,c=c+this.C|0,d=d+this.D|0,l=l+this.E|0,u=u+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,c,d,l,u,h,p)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l extends d{constructor(){super(),this.A=-0x3efa6128,this.B=0x367cd507,this.C=0x3070dd17,this.D=-0x8f1a6c7,this.E=-4191439,this.F=0x68581511,this.G=0x64f98fa7,this.H=-0x4105b05c,this.outputLen=28}}r.sha256=(0,a.wrapConstructor)(()=>new d),r.sha224=(0,a.wrapConstructor)(()=>new l)},{"5edc7ce9065b8862":"kq97k","8e1421b0f3756e26":"fDQnA"}],kq97k:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SHA2=void 0;let n=e("bdbe2dfb766648d4"),a=e("57dab68b3133d0e8");class i extends a.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:i}=this,s=(e=(0,a.toBytes)(e)).length;for(let n=0;ni-o&&(this.process(r,0),o=0);for(let e=o;e>a&i),o=Number(r&i),c=n?4:0,f=n?0:4;e.setUint32(t+c,s,n),e.setUint32(t+f,o,n)}(r,i-8,BigInt(8*this.length),s),this.process(r,0);let c=(0,a.createView)(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=f/4,l=this.get();if(d>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;eBigInt(e))),c=/* @__PURE__ */new Uint32Array(80),f=/* @__PURE__ */new Uint32Array(80);class d extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:a,Cl:i,Dh:s,Dl:o,Eh:c,El:f,Fh:d,Fl:l,Gh:u,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b]}set(e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|a,this.Cl=0|i,this.Dh=0|s,this.Dl=0|o,this.Eh=0|c,this.El=0|f,this.Fh=0|d,this.Fl=0|l,this.Gh=0|u,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),f[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|c[e-15],r=0|f[e-15],n=a.default.rotrSH(t,r,1)^a.default.rotrSH(t,r,8)^a.default.shrSH(t,r,7),i=a.default.rotrSL(t,r,1)^a.default.rotrSL(t,r,8)^a.default.shrSL(t,r,7),s=0|c[e-2],o=0|f[e-2],d=a.default.rotrSH(s,o,19)^a.default.rotrBH(s,o,61)^a.default.shrSH(s,o,6),l=a.default.rotrSL(s,o,19)^a.default.rotrBL(s,o,61)^a.default.shrSL(s,o,6),u=a.default.add4L(i,l,f[e-7],f[e-16]),h=a.default.add4H(u,n,d,c[e-7],c[e-16]);c[e]=0|h,f[e]=0|u}let{Ah:r,Al:n,Bh:i,Bl:d,Ch:l,Cl:u,Dh:h,Dl:p,Eh:b,El:g,Fh:m,Fl:y,Gh:v,Gl:w,Hh:x,Hl:E}=this;for(let e=0;e<80;e++){let t=a.default.rotrSH(b,g,14)^a.default.rotrSH(b,g,18)^a.default.rotrBH(b,g,41),A=a.default.rotrSL(b,g,14)^a.default.rotrSL(b,g,18)^a.default.rotrBL(b,g,41),_=b&m^~b&v,T=g&y^~g&w,I=a.default.add5L(E,A,T,o[e],f[e]),S=a.default.add5H(I,x,t,_,s[e],c[e]),C=0|I,k=a.default.rotrSH(r,n,28)^a.default.rotrBH(r,n,34)^a.default.rotrBH(r,n,39),R=a.default.rotrSL(r,n,28)^a.default.rotrBL(r,n,34)^a.default.rotrBL(r,n,39),M=r&i^r&l^i&l,B=n&d^n&u^d&u;x=0|v,E=0|w,v=0|m,w=0|y,m=0|b,y=0|g,({h:b,l:g}=a.default.add(0|h,0|p,0|S,0|C)),h=0|l,p=0|u,l=0|i,u=0|d,i=0|r,d=0|n;let P=a.default.add3L(C,R,B);r=a.default.add3H(P,S,k,M),n=0|P}({h:r,l:n}=a.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:d}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|d)),({h:l,l:u}=a.default.add(0|this.Ch,0|this.Cl,0|l,0|u)),({h:h,l:p}=a.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:b,l:g}=a.default.add(0|this.Eh,0|this.El,0|b,0|g)),({h:m,l:y}=a.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:v,l:w}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:x,l:E}=a.default.add(0|this.Hh,0|this.Hl,0|x,0|E)),this.set(r,n,i,d,l,u,h,p,b,g,m,y,v,w,x,E)}roundClean(){c.fill(0),f.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)}}r.SHA512=d;class l extends d{constructor(){super(),this.Ah=-0x73c2c838,this.Al=0x19544da2,this.Bh=0x73e19966,this.Bl=-0x76232b2a,this.Ch=0x1dfab7ae,this.Cl=0x32ff9c82,this.Dh=0x679dd514,this.Dl=0x582f9fcf,this.Eh=0xf6d2b69,this.El=0x7bd44da8,this.Fh=0x77e36f73,this.Fl=0x4c48942,this.Gh=0x3f9d85a8,this.Gl=0x6a1d36c8,this.Hh=0x1112e6ad,this.Hl=-0x6e296d5f,this.outputLen=28}}class u extends d{constructor(){super(),this.Ah=0x22312194,this.Al=-0x3d408d4,this.Bh=-0x60aaa05d,this.Bl=-0x37b39b3e,this.Ch=0x2393b86b,this.Cl=0x6f53b151,this.Dh=-0x69c788e7,this.Dl=0x5940eabd,this.Eh=-0x69d7c11e,this.El=-0x5771001d,this.Fh=-0x41a1e1db,this.Fl=0x53863992,this.Gh=0x2b0199fc,this.Gl=0x2c85b8aa,this.Hh=0xeb72ddc,this.Hl=-0x7e3ad35e,this.outputLen=32}}class h extends d{constructor(){super(),this.Ah=-0x344462a3,this.Al=-0x3efa6128,this.Bh=0x629a292a,this.Bl=0x367cd507,this.Ch=-0x6ea6fea6,this.Cl=0x3070dd17,this.Dh=0x152fecd8,this.Dl=-0x8f1a6c7,this.Eh=0x67332667,this.El=-4191439,this.Fh=-0x714bb579,this.Fl=0x68581511,this.Gh=-0x24f3d1f3,this.Gl=0x64f98fa7,this.Hh=0x47b5481d,this.Hl=-0x4105b05c,this.outputLen=48}}r.sha512=(0,i.wrapConstructor)(()=>new d),r.sha512_224=(0,i.wrapConstructor)(()=>new l),r.sha512_256=(0,i.wrapConstructor)(()=>new u),r.sha384=(0,i.wrapConstructor)(()=>new h)},{c82663053d384114:"kq97k","70796940e2781dba":"1AwYJ","1f592dcd1c9cbcd7":"fDQnA"}],"1AwYJ":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.add=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=r.split=r.fromBig=void 0;let n=/* @__PURE__ */BigInt(0x100000000-1),a=/* @__PURE__ */BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>a&n)}:{h:0|Number(e>>a&n),l:0|Number(e&n)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);r.toBig=o;let c=(e,t,r)=>e>>>r;r.shrSH=c;let f=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=f;let d=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=d;let l=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=l;let u=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=u;let h=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=h;let p=(e,t)=>t;r.rotr32H=p;let b=(e,t)=>e;r.rotr32L=b;let g=(e,t,r)=>e<>>32-r;r.rotlSH=g;let m=(e,t,r)=>t<>>32-r;r.rotlSL=m;let y=(e,t,r)=>t<>>64-r;r.rotlBH=y;let v=(e,t,r)=>e<>>64-r;function w(e,t,r,n){let a=(t>>>0)+(n>>>0);return{h:e+r+(a/0x100000000|0)|0,l:0|a}}r.rotlBL=v,r.add=w;let x=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=x;let E=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;r.add3H=E;let A=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=A;let _=(e,t,r,n,a)=>t+r+n+a+(e/0x100000000|0)|0;r.add4H=_;let T=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);r.add5L=T;let I=(e,t,r,n,a,i)=>t+r+n+a+i+(e/0x100000000|0)|0;r.add5H=I,r.default={fromBig:i,split:s,toBig:o,shrSH:c,shrSL:f,rotrSH:d,rotrSL:l,rotrBH:u,rotrBL:h,rotr32H:p,rotr32L:b,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:v,add:w,add3L:x,add3H:E,add4L:A,add4H:_,add5H:I,add5L:T}},{}],"717uU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"keccak256",()=>f);var a=e("@noble/hashes/sha3"),i=e("../utils/index.js");let s=!1,o=function(e){return(0,a.keccak_256)(e)},c=o;function f(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(c(t))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw TypeError("keccak256 is locked");c=e},Object.freeze(f)},{"@noble/hashes/sha3":"anjzr","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],anjzr:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=r.keccakP=void 0;let n=e("3e717ef93a226087"),a=e("d05b1d57afe10d70"),i=e("fca1932d4a5bc1cd"),[s,o,c]=[[],[],[]],f=/* @__PURE__ */BigInt(0),d=/* @__PURE__ */BigInt(1),l=/* @__PURE__ */BigInt(2),u=/* @__PURE__ */BigInt(7),h=/* @__PURE__ */BigInt(256),p=/* @__PURE__ */BigInt(113);for(let e=0,t=d,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),o.push((e+1)*(e+2)/2%64);let a=f;for(let e=0;e<7;e++)(t=(t<>u)*p)%h)&l&&(a^=d<<(d<r>32?(0,a.rotlBH)(e,t,r):(0,a.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,a.rotlBL)(e,t,r):(0,a.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,a=(t+2)%10,i=r[a],s=r[a+1],o=m(i,s,1)^r[n],c=y(i,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=o[r],i=m(t,a,n),c=y(t,a,n),f=s[r];t=e[f],a=e[f+1],e[f]=i,e[f+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=g[n]}r.fill(0)}r.keccakP=v;class w extends i.Hash{constructor(e,t,r,a=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();let i=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw 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){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new w(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}r.Keccak=w;let x=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));r.sha3_224=x(6,144,28),r.sha3_256=x(6,136,32),r.sha3_384=x(6,104,48),r.sha3_512=x(6,72,64),r.keccak_224=x(1,144,28),r.keccak_256=x(1,136,32),r.keccak_384=x(1,104,48),r.keccak_512=x(1,72,64);let E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));r.shake128=E(31,168,16),r.shake256=E(31,136,32)},{"3e717ef93a226087":"5t4wd",d05b1d57afe10d70:"1AwYJ",fca1932d4a5bc1cd:"fDQnA"}],"1MSrJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ripemd160",()=>f);var a=e("@noble/hashes/ripemd160"),i=e("../utils/index.js");let s=!1,o=function(e){return(0,a.ripemd160)(e)},c=o;function f(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(c(t))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw TypeError("ripemd160 is locked");c=e},Object.freeze(f)},{"@noble/hashes/ripemd160":"aDwHd","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aDwHd:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ripemd160=r.RIPEMD160=void 0;let n=e("a8aec8bf88d4e01d"),a=e("c544980a6b232368"),i=/* @__PURE__ */new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=/* @__PURE__ */Uint8Array.from({length:16},(e,t)=>t),o=/* @__PURE__ */s.map(e=>(9*e+5)%16),c=[s],f=[o];for(let e=0;e<4;e++)for(let t of[c,f])t.push(t[e].map(e=>i[e]));let d=/* @__PURE__ */[[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(e=>new Uint8Array(e)),l=/* @__PURE__ */c.map((e,t)=>e.map(e=>d[t][e])),u=/* @__PURE__ */f.map((e,t)=>e.map(e=>d[t][e])),h=/* @__PURE__ */new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),p=/* @__PURE__ */new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),b=(e,t)=>e<>>32-t;function g(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let m=/* @__PURE__ */new Uint32Array(16);class y extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,a=0|this.h1,i=a,s=0|this.h2,o=s,d=0|this.h3,y=d,v=0|this.h4,w=v;for(let e=0;e<5;e++){let t=4-e,x=h[e],E=p[e],A=c[e],_=f[e],T=l[e],I=u[e];for(let t=0;t<16;t++){let n=b(r+g(e,a,s,d)+m[A[t]]+x,T[t])+v|0;r=v,v=d,d=0|b(s,10),s=a,a=n}for(let e=0;e<16;e++){let r=b(n+g(t,i,o,y)+m[_[e]]+E,I[e])+w|0;n=w,w=y,y=0|b(o,10),o=i,i=r}}this.set(this.h1+s+y|0,this.h2+d+w|0,this.h3+v+n|0,this.h4+r+i|0,this.h0+a+o|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}r.RIPEMD160=y,r.ripemd160=(0,a.wrapConstructor)(()=>new y)},{a8aec8bf88d4e01d:"kq97k",c544980a6b232368:"fDQnA"}],"1ulPs":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pbkdf2",()=>f);var a=e("./crypto.js"),i=e("../utils/index.js");let s=!1,o=function(e,t,r,n,i){return(0,a.pbkdf2Sync)(e,t,r,n,i)},c=o;function f(e,t,r,n,a){let s=(0,i.getBytes)(e,"password"),o=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(c(s,o,r,n,a))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw Error("pbkdf2 is locked");c=e},Object.freeze(f)},{"./crypto.js":"gcmds","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],eA3PK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"randomBytes",()=>c);var a=e("./crypto.js");let i=!1,s=function(e){return new Uint8Array((0,a.randomBytes)(e))},o=s;function c(e){return o(e)}c._=s,c.lock=function(){i=!0},c.register=function(e){if(i)throw Error("randomBytes is locked");o=e},Object.freeze(c)},{"./crypto.js":"gcmds","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2R171":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"scrypt",()=>u),n.export(r,"scryptSync",()=>h);var a=e("@noble/hashes/scrypt"),i=e("../utils/index.js");let s=!1,o=!1,c=async function(e,t,r,n,i,s,o){return await (0,a.scryptAsync)(e,t,{N:r,r:n,p:i,dkLen:s,onProgress:o})},f=function(e,t,r,n,i,s){return(0,a.scrypt)(e,t,{N:r,r:n,p:i,dkLen:s})},d=c,l=f;async function u(e,t,r,n,a,s,o){let c=(0,i.getBytes)(e,"passwd"),f=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(await d(c,f,r,n,a,s,o))}function h(e,t,r,n,a,s){let o=(0,i.getBytes)(e,"passwd"),c=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(l(o,c,r,n,a,s))}u._=c,u.lock=function(){o=!0},u.register=function(e){if(o)throw Error("scrypt is locked");d=e},Object.freeze(u),h._=f,h.lock=function(){s=!0},h.register=function(e){if(s)throw Error("scryptSync is locked");l=e},Object.freeze(h)},{"@noble/hashes/scrypt":"6ycli","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6ycli":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scryptAsync=r.scrypt=void 0;let n=e("d252c98d2ed29e96"),a=e("af7af267e4b691e3"),i=e("cd2bd9a649fe535"),s=e("c71d7be0d679d4ca"),o=(e,t)=>e<>>32-t;function c(e,t,r,n,a,i){let s=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],d=e[t++]^r[n++],l=e[t++]^r[n++],u=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],y=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],x=e[t++]^r[n++],E=e[t++]^r[n++],A=s,_=c,T=f,I=d,S=l,C=u,k=h,R=p,M=b,B=g,P=m,O=y,j=v,N=w,U=x,L=E;for(let e=0;e<8;e+=2)S^=o(A+j|0,7),M^=o(S+A|0,9),j^=o(M+S|0,13),A^=o(j+M|0,18),B^=o(C+_|0,7),N^=o(B+C|0,9),_^=o(N+B|0,13),C^=o(_+N|0,18),U^=o(P+k|0,7),T^=o(U+P|0,9),k^=o(T+U|0,13),P^=o(k+T|0,18),I^=o(L+O|0,7),R^=o(I+L|0,9),O^=o(R+I|0,13),L^=o(O+R|0,18),_^=o(A+I|0,7),T^=o(_+A|0,9),I^=o(T+_|0,13),A^=o(I+T|0,18),k^=o(C+S|0,7),R^=o(k+C|0,9),S^=o(R+k|0,13),C^=o(S+R|0,18),O^=o(P+B|0,7),M^=o(O+P|0,9),B^=o(M+O|0,13),P^=o(B+M|0,18),j^=o(L+U|0,7),N^=o(j+L|0,9),U^=o(N+j|0,13),L^=o(U+N|0,18);a[i++]=s+A|0,a[i++]=c+_|0,a[i++]=f+T|0,a[i++]=d+I|0,a[i++]=l+S|0,a[i++]=u+C|0,a[i++]=h+k|0,a[i++]=p+R|0,a[i++]=b+M|0,a[i++]=g+B|0,a[i++]=m+P|0,a[i++]=y+O|0,a[i++]=v+j|0,a[i++]=w+N|0,a[i++]=x+U|0,a[i++]=E+L|0}function f(e,t,r,n,a){let i=n+0,s=n+16*a;for(let n=0;n<16;n++)r[s+n]=e[t+(2*a-1)*16+n];for(let n=0;n0&&(s+=16),c(r,i,e,t+=16,r,s)}function d(e,t,r){let{N:o,r:c,p:f,dkLen:d,asyncTick:l,maxmem:u,onProgress:h}=(0,s.checkOpts)({dkLen:32,asyncTick:10,maxmem:0x40000400},r);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(f),(0,n.number)(d),(0,n.number)(l),(0,n.number)(u),void 0!==h&&"function"!=typeof h)throw Error("progressCb should be function");let p=128*c,b=p/4;if(o<=1||(o&o-1)!=0||o>=2**(p/8)||o>0x100000000)throw Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>(0x100000000-1)*32/p)throw Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>(0x100000000-1)*32)throw Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let g=p*(o+f);if(g>u)throw Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${u} (maxmem)`);let m=(0,i.pbkdf2)(a.sha256,e,t,{c:1,dkLen:p*f}),y=(0,s.u32)(m),v=(0,s.u32)(new Uint8Array(p*o)),w=(0,s.u32)(new Uint8Array(p)),x=()=>{};if(h){let e=2*o*f,t=Math.max(Math.floor(e/1e4),1),r=0;x=()=>{r++,h&&(!(r%t)||r===e)&&h(r/e)}}return{N:o,r:c,p:f,dkLen:d,blockSize32:b,V:v,B32:y,B:m,tmp:w,blockMixCb:x,asyncTick:l}}function l(e,t,r,n,s){let o=(0,i.pbkdf2)(a.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),s.fill(0),o}async function u(e,t,r){let{N:n,r:a,p:i,dkLen:o,blockSize32:c,V:u,B32:h,B:p,tmp:b,blockMixCb:g,asyncTick:m}=d(e,t,r);for(let e=0;e{f(u,r,u,r+=c,a),g()}),f(u,(n-1)*c,h,t,a),g(),await (0,s.asyncLoop)(n,m,()=>{let e=h[t+c-16]%n;for(let r=0;ru),n.export(r,"sha512",()=>h);var a=e("./crypto.js"),i=e("../utils/index.js");let s=function(e){return(0,a.createHash)("sha256").update(e).digest()},o=function(e){return(0,a.createHash)("sha512").update(e).digest()},c=s,f=o,d=!1,l=!1;function u(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(c(t))}function h(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(f(t))}u._=s,u.lock=function(){d=!0},u.register=function(e){if(d)throw Error("sha256 is locked");c=e},Object.freeze(u),h._=o,h.lock=function(){l=!0},h.register=function(e){if(l)throw Error("sha512 is locked");f=e},Object.freeze(u)},{"./crypto.js":"gcmds","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6fyju":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"SigningKey",()=>o);var a=e("@noble/curves/secp256k1"),i=e("../utils/index.js"),s=e("./signature.js");class o{#Z;constructor(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#Z=(0,i.hexlify)(e)}get privateKey(){return this.#Z}get publicKey(){return o.computePublicKey(this.#Z)}get compressedPublicKey(){return o.computePublicKey(this.#Z,!0)}sign(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid digest length","digest",e);let t=(0,a.secp256k1).sign((0,i.getBytesCopy)(e),(0,i.getBytesCopy)(this.#Z),{lowS:!0});return(0,s.Signature).from({r:(0,i.toBeHex)(t.r,32),s:(0,i.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=o.computePublicKey(e);return(0,i.hexlify)((0,a.secp256k1).getSharedSecret((0,i.getBytesCopy)(this.#Z),(0,i.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,i.getBytes)(e,"key");if(32===r.length){let e=(0,a.secp256k1).getPublicKey(r,!!t);return(0,i.hexlify)(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let n=(0,a.secp256k1).ProjectivePoint.fromHex(r);return(0,i.hexlify)(n.toRawBytes(t))}static recoverPublicKey(e,t){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid digest length","digest",e);let r=(0,s.Signature).from(t),n=(0,a.secp256k1).Signature.fromCompact((0,i.getBytesCopy)((0,i.concat)([r.r,r.s]))),o=(n=n.addRecoveryBit(r.yParity)).recoverPublicKey((0,i.getBytesCopy)(e));return(0,i.assertArgument)(null!=o,"invalid signautre for digest","signature",t),"0x"+o.toHex(!1)}static addPoints(e,t,r){let n=(0,a.secp256k1).ProjectivePoint.fromHex(o.computePublicKey(e).substring(2)),i=(0,a.secp256k1).ProjectivePoint.fromHex(o.computePublicKey(t).substring(2));return"0x"+n.add(i).toHex(!!r)}}},{"@noble/curves/secp256k1":"23egl","../utils/index.js":"aoZEY","./signature.js":"kpLQM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"23egl":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encodeToCurve=r.hashToCurve=r.schnorr=r.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("3c992ce73ad9e738"),a=e("7c1d28ad7908af32"),i=e("e7b5e315cfaeb9cc"),s=e("6da3dd3e6dfbb461"),o=e("a505c7fbec136a95"),c=e("6c3a0ebb8992ada6"),f=e("5a6d6a1f2988230d"),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),u=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function b(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),a=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),f=e*e*e%d,l=f*f*e%d,u=(0,i.pow2)(l,t,d)*l%d,p=(0,i.pow2)(u,t,d)*l%d,b=(0,i.pow2)(p,h,d)*f%d,m=(0,i.pow2)(b,n,d)*b%d,y=(0,i.pow2)(m,a,d)*m%d,v=(0,i.pow2)(y,o,d)*y%d,w=(0,i.pow2)(v,c,d)*v%d,x=(0,i.pow2)(w,o,d)*y%d,E=(0,i.pow2)(x,t,d)*l%d,A=(0,i.pow2)(E,s,d)*m%d,_=(0,i.pow2)(A,r,d)*f%d,T=(0,i.pow2)(_,h,d);if(!g.eql(g.sqr(T),e))throw Error("Cannot find square root");return T}let g=(0,i.Field)(d,void 0,void 0,{sqrt:b});r.secp256k1=(0,f.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-u*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),s=p(t*e,l),o=p(-r*e,l),c=(0,i.mod)(e-s*t-o*n,l),f=(0,i.mod)(-s*r-o*t,l),d=c>a,h=f>a;if(d&&(c=l-c),h&&(f=l-f),c>a||f>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:f}}}},n.sha256);let m=BigInt(0),y=e=>"bigint"==typeof e&&m"bigint"==typeof e&&me.charCodeAt(0)));r=(0,o.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,o.concatBytes)(r,...t))}let E=e=>e.toRawBytes(!0).slice(1),A=e=>(0,o.numberToBytesBE)(e,32),_=e=>(0,i.mod)(e,d),T=e=>(0,i.mod)(e,l),I=r.secp256k1.ProjectivePoint,S=(e,t,r)=>I.BASE.multiplyAndAddUnsafe(e,t,r);function C(e){let t=r.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:T(-t),bytes:E(n)}}function k(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=_(e*e),r=b(_(t*e+BigInt(7)));r%h!==m&&(r=_(-r));let n=new I(e,r,u);return n.assertValidity(),n}function R(...e){return T((0,o.bytesToNumberBE)(x("BIP0340/challenge",...e)))}function M(e,t,r){let n=(0,o.ensureBytes)("signature",e,64),a=(0,o.ensureBytes)("message",t),i=(0,o.ensureBytes)("publicKey",r,32);try{let e=k((0,o.bytesToNumberBE)(i)),t=(0,o.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;let r=(0,o.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let s=R(A(t),E(e),a),c=S(e,r,T(-s));if(!c||!c.hasEvenY()||c.toAffine().x!==t)return!1;return!0}catch(e){return!1}}r.schnorr={getPublicKey:function(e){return C(e).bytes},sign:function(e,t,r=(0,a.randomBytes)(32)){let n=(0,o.ensureBytes)("message",e),{bytes:i,scalar:s}=C(t),c=(0,o.ensureBytes)("auxRand",r,32),f=A(s^(0,o.bytesToNumberBE)(x("BIP0340/aux",c))),d=x("BIP0340/nonce",f,i,n),l=T((0,o.bytesToNumberBE)(d));if(l===m)throw Error("sign failed: k is zero");let{bytes:u,scalar:h}=C(l),p=R(u,i,n),b=new Uint8Array(64);if(b.set(u,0),b.set(A(T(h+p*s)),32),!M(b,n,i))throw Error("sign: Invalid signature produced");return b},verify:M,utils:{randomPrivateKey:r.secp256k1.utils.randomPrivateKey,lift_x:k,pointToBytes:E,numberToBytesBE:o.numberToBytesBE,bytesToNumberBE:o.bytesToNumberBE,taggedHash:x,mod:i.mod}};let B=(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),P=(0,s.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),O=(0,c.createHasher)(r.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=P(g.create(e[0]));return B(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});r.hashToCurve=O.hashToCurve,r.encodeToCurve=O.encodeToCurve},{"3c992ce73ad9e738":"lK7uV","7c1d28ad7908af32":"fDQnA",e7b5e315cfaeb9cc:"4YTv4","6da3dd3e6dfbb461":"7pMch",a505c7fbec136a95:"4P6Ce","6c3a0ebb8992ada6":"9x9t0","5a6d6a1f2988230d":"dqwuc"}],"4YTv4":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mapHashToField=r.getMinHashLength=r.getFieldBytesLength=r.hashToPrivateScalar=r.FpSqrtEven=r.FpSqrtOdd=r.Field=r.nLength=r.FpIsSquare=r.FpDiv=r.FpInvertBatch=r.FpPow=r.validateField=r.isNegativeLE=r.FpSqrt=r.tonelliShanks=r.invert=r.pow2=r.pow=r.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("335176aa989b56c9"),a=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(4),f=BigInt(5),d=BigInt(8);function l(e,t){let r=e%t;return r>=a?r:t+r}function u(e,t,r){if(r<=a||t 0");if(r===i)return a;let n=i;for(;t>a;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function h(e,t){if(e===a||t<=a)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=l(e,t),n=t,s=a,o=i,c=i,f=a;for(;r!==a;){let e=n/r,t=n%r,a=s-c*e,i=o-f*e;n=r,r=t,s=c,o=f,c=a,f=i}if(n!==i)throw Error("invert: does not exist");return l(s,t)}function p(e){let t,r,n;let o=(e-i)/s;for(t=e-i,r=0;t%s===a;t/=s,r++);for(n=s;na;)n*=n,n%=r;return n},r.invert=h,r.tonelliShanks=p,r.FpSqrt=b,r.isNegativeLE=(e,t)=>(l(e,t)&i)===i;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,r){if(r 0");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,s=t;for(;r>a;)r&i&&(n=e.mul(n,s)),s=e.sqr(s),r>>=i;return n}function y(e,t){let r=Array(t.length),n=t.reduce((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n)),e.ONE),a=e.inv(n);return t.reduceRight((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n)),a),r}function v(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function w(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function x(e){let t=w(e);return t+Math.ceil(t/2)}r.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},r.FpPow=m,r.FpInvertBatch=y,r.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},r.FpIsSquare=function(e){let t=(e.ORDER-i)/s;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},r.nLength=v,r.Field=function(e,t,r=!1,s={}){if(e<=a)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:c}=v(e,t);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let f=b(e),d=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,n.bitMask)(o),ZERO:a,ONE:i,create:t=>l(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>l(-t,e),eql:(e,t)=>e===t,sqr:t=>l(t*t,e),add:(t,r)=>l(t+r,e),sub:(t,r)=>l(t-r,e),mul:(t,r)=>l(t*r,e),pow:(e,t)=>m(d,e,t),div:(t,r)=>l(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(e=>f(d,e)),invertBatch:e=>y(d,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(d)},r.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},r.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},r.hashToPrivateScalar=function(e,t,r=!1){let a=(e=(0,n.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||a1024)throw Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${a}`);return l(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},r.getFieldBytesLength=w,r.getMinHashLength=x,r.mapHashToField=function(e,t,r=!1){let a=e.length,s=w(t),o=x(t);if(a<16||a1024)throw Error(`expected ${o}-1024 bytes of input, got ${a}`);let c=l(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,s):(0,n.numberToBytesBE)(c,s)}},{"335176aa989b56c9":"4P6Ce"}],"4P6Ce":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateObject=r.createHmacDrbg=r.bitMask=r.bitSet=r.bitGet=r.bitLen=r.utf8ToBytes=r.equalBytes=r.concatBytes=r.ensureBytes=r.numberToVarBytesBE=r.numberToBytesLE=r.numberToBytesBE=r.bytesToNumberLE=r.bytesToNumberBE=r.hexToBytes=r.hexToNumber=r.numberToHexUnpadded=r.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=BigInt(0),a=BigInt(1),i=BigInt(2),s=e=>e instanceof Uint8Array,o=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e){if(!s(e))throw Error("Uint8Array expected");let t="";for(let r=0;re+t.length,0)),r=0;return e.forEach(e=>{if(!s(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}r.bytesToHex=c,r.numberToHexUnpadded=f,r.hexToNumber=d,r.hexToBytes=l,r.bytesToNumberBE=function(e){return d(c(e))},r.bytesToNumberLE=function(e){if(!s(e))throw Error("Uint8Array expected");return d(c(Uint8Array.from(e).reverse()))},r.numberToBytesBE=u,r.numberToBytesLE=function(e,t){return u(e,t).reverse()},r.numberToVarBytesBE=function(e){return l(f(e))},r.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(s(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let a=n.length;if("number"==typeof r&&a!==r)throw Error(`${e} expected ${r} bytes, got ${a}`);return n},r.concatBytes=h,r.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;rn;e>>=a,t+=1);return t},r.bitGet=function(e,t){return e>>BigInt(t)&a},r.bitSet=(e,t,r)=>e|(r?a:n)<(i<new Uint8Array(e),b=e=>Uint8Array.from(e);r.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=p(e),a=p(e),i=0,s=()=>{n.fill(1),a.fill(0),i=0},o=(...e)=>r(a,n,...e),c=(e=p())=>{a=o(b([0]),e),n=o(),0!==e.length&&(a=o(b([1]),e),n=o())},f=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(s(),c(e);!(r=t(f()));)c();return s(),r}};let g={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};r.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let a=g[r];if("function"!=typeof a)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!a(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},{}],"7pMch":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mapToCurveSimpleSWU=r.SWUFpSqrtRatio=r.weierstrass=r.weierstrassPoints=r.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("1cdaab316e4b3457"),a=e("2baa2cb7ccce8d60"),i=e("2baa2cb7ccce8d60"),s=e("4c2571b14ea5e504"),{bytesToNumberBE:o,hexToBytes:c}=a;r.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=r.DER;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let n=e[1],a=e.subarray(2,n+2);if(!n||a.length!==n)throw new t("Invalid signature integer: wrong length");if(128&a[0])throw new t("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:o(a),l:e.subarray(n+2)}},toSig(e){let{Err:t}=r.DER,n="string"==typeof e?c(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let a=n.length;if(a<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==a-2)throw new t("Invalid signature: incorrect length");let{d:i,l:s}=r.DER._parseInt(n.subarray(2)),{d:o,l:f}=r.DER._parseInt(s);if(f.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:o}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),a=t(r(e.r)),i=n.length/2,s=a.length/2,o=r(i),c=r(s);return`30${r(s+i+4)}02${c}${a}02${o}${n}`}};let f=BigInt(0),d=BigInt(1),l=BigInt(2),u=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,s.validateBasic)(e);a.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,o=t.toBytes||((e,t,n)=>{let i=t.toAffine();return a.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){let{a:n,b:a}=t,i=r.sqr(e),s=r.mul(i,e);return r.add(r.add(s,r.mul(e,n)),a)}if(!r.eql(r.sqr(t.Gy),l(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&fr.eql(e,r.ZERO);return a(t)&&a(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){let t=y.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let a=r.sqr(n),i=l(e);if(!r.eql(a,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){m(e);let{px:t,py:n,pz:a}=this,{px:i,py:s,pz:o}=e,c=r.eql(r.mul(t,o),r.mul(i,a)),f=r.eql(r.mul(n,o),r.mul(s,a));return c&&f}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,a=r.mul(n,u),{px:i,py:s,pz:o}=this,c=r.ZERO,f=r.ZERO,d=r.ZERO,l=r.mul(i,i),h=r.mul(s,s),p=r.mul(o,o),b=r.mul(i,s);return b=r.add(b,b),d=r.mul(i,o),d=r.add(d,d),c=r.mul(e,d),f=r.mul(a,p),f=r.add(c,f),c=r.sub(h,f),f=r.add(h,f),f=r.mul(c,f),c=r.mul(b,c),d=r.mul(a,d),p=r.mul(e,p),b=r.sub(l,p),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,p),l=r.mul(l,b),f=r.add(f,l),p=r.mul(s,o),p=r.add(p,p),l=r.mul(p,b),c=r.sub(c,l),d=r.mul(p,h),d=r.add(d,d),new y(c,f,d=r.add(d,d))}add(e){m(e);let{px:n,py:a,pz:i}=this,{px:s,py:o,pz:c}=e,f=r.ZERO,d=r.ZERO,l=r.ZERO,h=t.a,p=r.mul(t.b,u),b=r.mul(n,s),g=r.mul(a,o),v=r.mul(i,c),w=r.add(n,a),x=r.add(s,o);w=r.mul(w,x),x=r.add(b,g),w=r.sub(w,x),x=r.add(n,i);let E=r.add(s,c);return x=r.mul(x,E),E=r.add(b,v),x=r.sub(x,E),E=r.add(a,i),f=r.add(o,c),E=r.mul(E,f),f=r.add(g,v),E=r.sub(E,f),l=r.mul(h,x),f=r.mul(p,v),l=r.add(f,l),f=r.sub(g,l),l=r.add(g,l),d=r.mul(f,l),g=r.add(b,b),g=r.add(g,b),v=r.mul(h,v),x=r.mul(p,x),g=r.add(g,v),v=r.sub(b,v),v=r.mul(h,v),x=r.add(x,v),b=r.mul(g,x),d=r.add(d,b),b=r.mul(E,x),f=r.mul(w,f),f=r.sub(f,b),b=r.mul(w,g),l=r.mul(E,l),new y(f,d,l=r.add(l,b))}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){let n=y.ZERO;if(e===f)return n;if(p(e),e===d)return this;let{endo:a}=t;if(!a)return w.unsafeLadder(this,e);let{k1neg:i,k1:s,k2neg:o,k2:c}=a.splitScalar(e),l=n,u=n,h=this;for(;s>f||c>f;)s&d&&(l=l.add(h)),c&d&&(u=u.add(h)),h=h.double(),s>>=d,c>>=d;return i&&(l=l.negate()),o&&(u=u.negate()),u=new y(r.mul(u.px,a.beta),u.py,u.pz),l.add(u)}multiply(e){let n,a;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:s,k2neg:o,k2:c}=i.splitScalar(e),{p:f,f:d}=this.wNAF(s),{p:l,f:u}=this.wNAF(c);f=w.constTimeNegate(t,f),l=w.constTimeNegate(o,l),l=new y(r.mul(l.px,i.beta),l.py,l.pz),n=f.add(l),a=d.add(u)}else{let{p:t,f:r}=this.wNAF(e);n=t,a=r}return y.normalizeZ([n,a])[0]}multiplyAndAddUnsafe(e,t,r){let n=y.BASE,a=(e,t)=>t!==f&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:a}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(a));let s=r.mul(t,e),o=r.mul(n,e),c=r.mul(a,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:o}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===d?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(y,this,e)}toHex(e=!0){return a.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);let v=t.nBitLength,w=(0,s.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:b,weierstrassEquation:l,isWithinCurveOrder:h}}function b(e,t){let r=e.ORDER,n=f;for(let e=r-d;e%l===f;e/=l)n+=d;let a=n,i=l<{let n=b,s=e.pow(r,p),o=e.sqr(s);o=e.mul(o,r);let f=e.mul(t,o);f=e.pow(f,c),f=e.mul(f,s),s=e.mul(f,r),o=e.mul(f,t);let u=e.mul(o,s);f=e.pow(u,i);let h=e.eql(f,e.ONE);s=e.mul(o,g),f=e.mul(u,n),o=e.cmov(s,o,h),u=e.cmov(f,u,h);for(let t=a;t>d;t--){let r=t-l;r=l<{let i=e.sqr(a),s=e.mul(t,a);i=e.mul(i,s);let o=e.pow(i,r);o=e.mul(o,s);let c=e.mul(o,n),f=e.mul(e.sqr(o),a),d=e.eql(f,t),l=e.cmov(c,o,d);return{isValid:d,value:l}}}return m}r.weierstrassPoints=p,r.weierstrass=function(e){let t=function(e){let t=(0,s.validateBasic)(e);return a.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=t,l=o.BYTES+1,u=2*o.BYTES+1;function h(e){return n.mod(e,c)}function b(e){return n.invert(e,c)}let{ProjectivePoint:g,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:v}=p({...t,toBytes(e,t,r){let n=t.toAffine(),i=o.toBytes(n.x),s=a.concatBytes;return r?s(Uint8Array.from([t.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,o.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===l&&(2===r||3===r)){let e=a.bytesToNumberBE(n);if(!(fa.bytesToHex(a.numberToBytesBE(e,t.nByteLength)),x=(e,t,r)=>a.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new E(x(e=(0,i.ensureBytes)("compactSignature",e,2*r),0,r),x(e,r,2*r))}static fromDER(e){let{r:t,s:n}=r.DER.toSig((0,i.ensureBytes)("DER",e));return new E(t,n)}assertValidity(){if(!v(this.r))throw Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){let{r,s:n,recovery:a}=this,s=T((0,i.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let c=2===a||3===a?r+t.n:r;if(c>=o.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&a)==0?"02":"03",d=g.fromHex(f+w(c)),l=b(c),u=h(-s*l),p=h(n*l),m=g.BASE.multiplyAndAddUnsafe(d,u,p);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>c>>d}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return a.hexToBytes(this.toDERHex())}toDERHex(){return r.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function A(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===l||n===u:r?n===2*l||n===2*u:e instanceof g}let _=t.bits2int||function(e){let r=a.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},T=t.bits2int_modN||function(e){return h(_(e))},I=a.bitMask(t.nBitLength);function S(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(f<=e&&ee in n))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:l}=t,{lowS:u,prehash:p,extraEntropy:y}=n;null==u&&(u=!0),e=(0,i.ensureBytes)("msgHash",e),p&&(e=(0,i.ensureBytes)("prehashed msgHash",s(e)));let w=T(e),x=m(r),A=[S(x),S(w)];if(null!=y){let e=!0===y?l(o.BYTES):y;A.push((0,i.ensureBytes)("extraEntropy",e))}return{seed:a.concatBytes(...A),k2sig:function(e){let t=_(e);if(!v(t))return;let r=b(t),n=g.BASE.multiply(t).toAffine(),a=h(n.x);if(a===f)return;let i=h(r*h(w+a*x));if(i===f)return;let s=(n.x===a?0:2)|Number(n.y&d),o=i;if(u&&i>c>>d)o=i>c>>d?h(-i):i,s^=1;return new E(a,o,s)}}}(e,r,n);return a.createHmacDrbg(t.hash.outputLen,t.nByteLength,t.hmac)(s,l)},verify:function(e,n,a,s=k){let o,c;if(n=(0,i.ensureBytes)("msgHash",n),a=(0,i.ensureBytes)("publicKey",a),"strict"in s)throw Error("options.strict was renamed to lowS");let{lowS:f,prehash:d}=s;try{if("string"==typeof e||e instanceof Uint8Array)try{c=E.fromDER(e)}catch(t){if(!(t instanceof r.DER.Err))throw t;c=E.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;c=new E(t,r)}else throw Error("PARSE");o=g.fromHex(a)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(f&&c.hasHighS())return!1;d&&(n=t.hash(n));let{r:l,s:u}=c,p=T(n),m=b(u),y=h(p*m),v=h(l*m),w=g.BASE.multiplyAndAddUnsafe(o,y,v)?.toAffine();return!!w&&h(w.x)===l},ProjectivePoint:g,Signature:E,utils:{isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{let e=n.getMinHashLength(t.n);return n.mapHashToField(t.randomBytes(e),t.n)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},r.SWUFpSqrtRatio=b,r.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=b(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let a,i,s,o,c,f,d,l;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(s),f=e.sqr(o),c=e.mul(f,t.A),i=e.add(i,c),i=e.mul(i,s),f=e.mul(f,o),c=e.mul(f,t.B),i=e.add(i,c),d=e.mul(a,s);let{isValid:u,value:h}=r(i,f);l=e.mul(a,n),l=e.mul(l,h),d=e.cmov(d,s,u),l=e.cmov(l,h,u);let p=e.isOdd(n)===e.isOdd(l);return l=e.cmov(e.neg(l),l,p),{x:d=e.div(d,o),y:l}}}},{"1cdaab316e4b3457":"4YTv4","2baa2cb7ccce8d60":"4P6Ce","4c2571b14ea5e504":"lIBy9"}],lIBy9:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateBasic=r.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("3ef1aebd4d48e525"),a=e("f4ac6df5b56e7cc"),i=BigInt(0),s=BigInt(1);r.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,a=t;for(;r>i;)r&s&&(n=n.add(a)),a=a.double(),r>>=s;return n},precomputeWindow(e,t){let{windows:r,windowSize:a}=n(t),i=[],s=e,o=s;for(let e=0;e>=h,n>c&&(n-=u,i+=s);let o=t+Math.abs(n)-1,p=e%2!=0,b=n<0;0===n?d=d.add(r(p,a[t])):f=f.add(r(b,a[o]))}return{p:f,f:d}},wNAFCached(e,t,r,n){let a=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,n(i))),this.wNAF(a,i,r)}}},r.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},{"3ef1aebd4d48e525":"4YTv4",f4ac6df5b56e7cc:"4P6Ce"}],"9x9t0":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createHasher=r.isogenyMap=r.hash_to_field=r.expand_message_xof=r.expand_message_xmd=void 0;let n=e("56233d4b1a1a67d0"),a=e("e2188348c3bb0e22"),i=a.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function o(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function c(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function f(e,t,r,n){o(e),o(t),c(r),t.length>255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:f}=n,d=Math.ceil(r/i);if(d>255)throw Error("Invalid xmd length");let l=(0,a.concatBytes)(t,s(t.length,1)),u=s(0,f),h=s(r,2),p=Array(d),b=n((0,a.concatBytes)(u,e,h,s(0,1),l));p[0]=n((0,a.concatBytes)(b,s(1,1),l));for(let e=1;e<=d;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n255){let e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(s(r,2)).update(t).update(s(t.length,1)).digest()}function l(e,t,r){let s;(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:l,k:u,m:h,hash:p,expand:b,DST:g}=r;o(e),c(t);let m=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,a.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(g),y=Math.ceil((l.toString(2).length+u)/8),v=t*h*y;if("xmd"===b)s=f(e,m,v,p);else if("xof"===b)s=d(e,m,v,u,p);else if("_internal_pass"===b)s=e;else throw Error('expand must be "xmd" or "xof"');let w=Array(t);for(let e=0;eArray.from(e).reverse());return(t,n)=>{let[a,i,s,o]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(a,i),n=e.mul(n,e.div(s,o)),{x:t,y:n}}},r.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,a){let i=l(n,2,{...r,DST:r.DST,...a}),s=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,a){let i=l(n,1,{...r,DST:r.encodeDST,...a}),s=e.fromAffine(t(i[0])).clearCofactor();return s.assertValidity(),s}}}},{"56233d4b1a1a67d0":"4YTv4",e2188348c3bb0e22:"4P6Ce"}],dqwuc:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createCurve=r.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("c08678442dbcef41"),a=e("1ca40feba833188e"),i=e("59a7531651b344f9");function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,a.concatBytes)(...r)),randomBytes:a.randomBytes}}r.getHash=s,r.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...s(t)});return Object.freeze({...r(t),create:r})}},{c08678442dbcef41:"4YtgG","1ca40feba833188e":"fDQnA","59a7531651b344f9":"7pMch"}],kpLQM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signature",()=>p);var a=e("../constants/index.js"),i=e("../utils/index.js");let s=BigInt(0),o=BigInt(1),c=BigInt(2),f=BigInt(27),d=BigInt(28),l=BigInt(35),u={};function h(e){return(0,i.zeroPadValue)((0,i.toBeArray)(e),32)}class p{#n;#b;#X;#Y;get r(){return this.#n}set r(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid r","value",e),this.#n=(0,i.hexlify)(e)}get s(){return this.#b}set s(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid s","value",e);let t=(0,i.hexlify)(e);(0,i.assertArgument)(8>parseInt(t.substring(0,3)),"non-canonical s","value",t),this.#b=t}get v(){return this.#X}set v(e){let t=(0,i.getNumber)(e,"value");(0,i.assertArgument)(27===t||28===t,"invalid v","v",e),this.#X=t}get networkV(){return this.#Y}get legacyChainId(){let e=this.networkV;return null==e?null:p.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){let e=(0,i.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,i.hexlify)(e)}get compactSerialized(){return(0,i.concat)([this.r,this.yParityAndS])}get serialized(){return(0,i.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(0,i.assertPrivate)(e,u,"Signature"),this.#n=t,this.#b=r,this.#X=n,this.#Y=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){let e=new p(u,this.r,this.s,this.v);return this.networkV&&(e.#Y=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){let t=(0,i.getBigInt)(e,"v");return t==f||t==d?s:((0,i.assertArgument)(t>=l,"invalid EIP-155 v","v",e),(t-l)/c)}static getChainIdV(e,t){return(0,i.getBigInt)(e)*c+BigInt(35+t-27)}static getNormalizedV(e){let t=(0,i.getBigInt)(e);return t===s||t===f?27:t===o||t===d?28:((0,i.assertArgument)(t>=l,"invalid v","v",e),t&o?27:28)}static from(e){function t(t,r){(0,i.assertArgument)(t,r,"signature",e)}if(null==e)return new p(u,a.ZeroHash,a.ZeroHash,27);if("string"==typeof e){let r=(0,i.getBytes)(e,"signature");if(64===r.length){let e=(0,i.hexlify)(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new p(u,e,(0,i.hexlify)(t),n)}if(65===r.length){let e=(0,i.hexlify)(r.slice(0,32)),n=r.slice(32,64);t((128&n[0])==0,"non-canonical s");let a=p.getNormalizedV(r[64]);return new p(u,e,(0,i.hexlify)(n),a)}t(!1,"invalid raw signature length")}if(e instanceof p)return e.clone();let r=e.r;t(null!=r,"missing r");let n=h(r),s=function(e,r){if(null!=e)return h(e);if(null!=r){t((0,i.isHexString)(r,32),"invalid yParityAndS");let e=(0,i.getBytes)(r);return e[0]&=127,(0,i.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t((128&(0,i.getBytes)(s)[0])==0,"non-canonical s");let{networkV:o,v:c}=function(e,r,n){if(null!=e){let t=(0,i.getBigInt)(e);return{networkV:t>=l?t:void 0,v:p.getNormalizedV(t)}}if(null!=r)return t((0,i.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,i.getBytes)(r)[0]?28:27};if(null!=n){switch((0,i.getNumber)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),f=new p(u,n,s,c);return o&&(f.#Y=o),t(null==e.yParity||(0,i.getNumber)(e.yParity,"sig.yParity")===f.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===f.yParityAndS,"yParityAndS mismatch"),f}}},{"../constants/index.js":"2Shkc","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2Shkc":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ZeroAddress",()=>a.ZeroAddress),n.export(r,"ZeroHash",()=>i.ZeroHash),n.export(r,"N",()=>s.N),n.export(r,"WeiPerEther",()=>s.WeiPerEther),n.export(r,"MaxUint256",()=>s.MaxUint256),n.export(r,"MinInt256",()=>s.MinInt256),n.export(r,"MaxInt256",()=>s.MaxInt256),n.export(r,"EtherSymbol",()=>o.EtherSymbol),n.export(r,"MessagePrefix",()=>o.MessagePrefix);var a=e("./addresses.js"),i=e("./hashes.js"),s=e("./numbers.js"),o=e("./strings.js")},{"./addresses.js":"b0qNx","./hashes.js":"e2eZ7","./numbers.js":!1,"./strings.js":"4zWFX","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],b0qNx:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ZeroAddress",()=>a);let a="0x0000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],e2eZ7:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ZeroHash",()=>a);let a="0x0000000000000000000000000000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4zWFX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EtherSymbol",()=>a),n.export(r,"MessagePrefix",()=>i);let a="Ξ",i="\x19Ethereum Signed Message:\n"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5gq13":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getCreateAddress",()=>o),n.export(r,"getCreate2Address",()=>c);var a=e("../crypto/index.js"),i=e("../utils/index.js"),s=e("./address.js");function o(e){let t=(0,s.getAddress)(e.from),r=(0,i.getBigInt)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,s.getAddress)((0,i.dataSlice)((0,a.keccak256)((0,i.encodeRlp)([t,r])),12))}function c(e,t,r){let n=(0,s.getAddress)(e),o=(0,i.getBytes)(t,"salt"),c=(0,i.getBytes)(r,"initCodeHash");return(0,i.assertArgument)(32===o.length,"salt must be 32 bytes","salt",t),(0,i.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,s.getAddress)((0,i.dataSlice)((0,a.keccak256)((0,i.concat)(["0xff",n,o,c])),12))}},{"../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","./address.js":"aXhJ2","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6XnDN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isAddressable",()=>s),n.export(r,"isAddress",()=>o),n.export(r,"resolveAddress",()=>f);var a=e("../utils/index.js"),i=e("./address.js");function s(e){return e&&"function"==typeof e.getAddress}function o(e){try{return(0,i.getAddress)(e),!0}catch(e){}return!1}async function c(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&((0,a.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,a.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,i.getAddress)(r)}function f(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,i.getAddress)(e):((0,a.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),c(e,t.resolveName(e))):s(e)?c(e,e.getAddress()):e&&"function"==typeof e.then?c(e,e):void(0,a.assertArgument)(!1,"unsupported addressable value","target",e)}},{"../utils/index.js":"aoZEY","./address.js":"aXhJ2","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3auRl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Typed",()=>f);var a=e("../utils/index.js");let i={};function s(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new f(i,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function o(e,t){return new f(i,`bytes${t||""}`,e,{size:t})}let c=Symbol.for("_ethers_typed");class f{type;value;#ee;_typedSymbol;constructor(e,t,r,n){null==n&&(n=null),(0,a.assertPrivate)(i,e,"Typed"),(0,a.defineProperties)(this,{_typedSymbol:c,type:t,value:r}),this.#ee=n,this.format()}format(){if("array"===this.type||"dynamicArray"===this.type)throw Error("");return"tuple"===this.type?`tuple(${this.value.map(e=>e.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"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#ee}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#ee?-1:!1===this.#ee?this.value.length:null}static from(e,t){return new f(i,e,t)}static uint8(e){return s(e,8)}static uint16(e){return s(e,16)}static uint24(e){return s(e,24)}static uint32(e){return s(e,32)}static uint40(e){return s(e,40)}static uint48(e){return s(e,48)}static uint56(e){return s(e,56)}static uint64(e){return s(e,64)}static uint72(e){return s(e,72)}static uint80(e){return s(e,80)}static uint88(e){return s(e,88)}static uint96(e){return s(e,96)}static uint104(e){return s(e,104)}static uint112(e){return s(e,112)}static uint120(e){return s(e,120)}static uint128(e){return s(e,128)}static uint136(e){return s(e,136)}static uint144(e){return s(e,144)}static uint152(e){return s(e,152)}static uint160(e){return s(e,160)}static uint168(e){return s(e,168)}static uint176(e){return s(e,176)}static uint184(e){return s(e,184)}static uint192(e){return s(e,192)}static uint200(e){return s(e,200)}static uint208(e){return s(e,208)}static uint216(e){return s(e,216)}static uint224(e){return s(e,224)}static uint232(e){return s(e,232)}static uint240(e){return s(e,240)}static uint248(e){return s(e,248)}static uint256(e){return s(e,256)}static uint(e){return s(e,256)}static int8(e){return s(e,-8)}static int16(e){return s(e,-16)}static int24(e){return s(e,-24)}static int32(e){return s(e,-32)}static int40(e){return s(e,-40)}static int48(e){return s(e,-48)}static int56(e){return s(e,-56)}static int64(e){return s(e,-64)}static int72(e){return s(e,-72)}static int80(e){return s(e,-80)}static int88(e){return s(e,-88)}static int96(e){return s(e,-96)}static int104(e){return s(e,-104)}static int112(e){return s(e,-112)}static int120(e){return s(e,-120)}static int128(e){return s(e,-128)}static int136(e){return s(e,-136)}static int144(e){return s(e,-144)}static int152(e){return s(e,-152)}static int160(e){return s(e,-160)}static int168(e){return s(e,-168)}static int176(e){return s(e,-176)}static int184(e){return s(e,-184)}static int192(e){return s(e,-192)}static int200(e){return s(e,-200)}static int208(e){return s(e,-208)}static int216(e){return s(e,-216)}static int224(e){return s(e,-224)}static int232(e){return s(e,-232)}static int240(e){return s(e,-240)}static int248(e){return s(e,-248)}static int256(e){return s(e,-256)}static int(e){return s(e,-256)}static bytes1(e){return o(e,1)}static bytes2(e){return o(e,2)}static bytes3(e){return o(e,3)}static bytes4(e){return o(e,4)}static bytes5(e){return o(e,5)}static bytes6(e){return o(e,6)}static bytes7(e){return o(e,7)}static bytes8(e){return o(e,8)}static bytes9(e){return o(e,9)}static bytes10(e){return o(e,10)}static bytes11(e){return o(e,11)}static bytes12(e){return o(e,12)}static bytes13(e){return o(e,13)}static bytes14(e){return o(e,14)}static bytes15(e){return o(e,15)}static bytes16(e){return o(e,16)}static bytes17(e){return o(e,17)}static bytes18(e){return o(e,18)}static bytes19(e){return o(e,19)}static bytes20(e){return o(e,20)}static bytes21(e){return o(e,21)}static bytes22(e){return o(e,22)}static bytes23(e){return o(e,23)}static bytes24(e){return o(e,24)}static bytes25(e){return o(e,25)}static bytes26(e){return o(e,26)}static bytes27(e){return o(e,27)}static bytes28(e){return o(e,28)}static bytes29(e){return o(e,29)}static bytes30(e){return o(e,30)}static bytes31(e){return o(e,31)}static bytes32(e){return o(e,32)}static address(e){return new f(i,"address",e)}static bool(e){return new f(i,"bool",!!e)}static bytes(e){return new f(i,"bytes",e)}static string(e){return new f(i,"string",e)}static array(e,t){throw Error("not implemented yet")}static tuple(e,t){throw Error("not implemented yet")}static overrides(e){return new f(i,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===c}static dereference(e,t){if(f.isTyped(e)){if(e.type!==t)throw Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}},{"../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],eIRoG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pack",()=>c),n.export(r,"unpack",()=>f),n.export(r,"ArrayCoder",()=>d);var a=e("../../utils/index.js"),i=e("../typed.js"),s=e("./abstract-coder.js"),o=e("./anonymous.js");function c(e,t,r){let n=[];if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return(0,a.assert)(n,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),(0,a.assert)(!e[n],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),e[n]=!0,r[n]})}else(0,a.assertArgument)(!1,"invalid tuple value","tuple",r);(0,a.assertArgument)(t.length===n.length,"types/value length mismatch","tuple",r);let i=new s.Writer,o=new s.Writer,c=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();c.push(e=>{n(e+t)})}else e.encode(i,r)}),c.forEach(e=>{e(i.length)}),e.appendWriter(i)+e.appendWriter(o)}function f(e,t){let r=[],n=[],i=e.subReader(0);return t.forEach(t=>{let s=null;if(t.dynamic){let r=e.readIndex(),n=i.subReader(r);try{s=t.decode(n)}catch(e){if((0,a.isError)(e,"BUFFER_OVERRUN"))throw e;(s=e).baseType=t.name,s.name=t.localName,s.type=t.type}}else try{s=t.decode(e)}catch(e){if((0,a.isError)(e,"BUFFER_OVERRUN"))throw e;(s=e).baseType=t.name,s.name=t.localName,s.type=t.type}if(void 0==s)throw Error("investigate");r.push(s),n.push(t.localName||null)}),(0,s.Result).fromItems(r,n)}class d extends s.Coder{coder;length;constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),(0,a.defineProperties)(this,{coder:e,length:t})}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;ri);var a=e("./abstract-coder.js");class i extends a.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}},{"./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gvRue:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BooleanCoder",()=>s);var a=e("../typed.js"),i=e("./abstract-coder.js");class s extends i.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){let r=(0,a.Typed).dereference(t,"bool");return e.writeValue(r?1:0)}decode(e){return!!e.readValue()}}},{"../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aQHy3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DynamicBytesCoder",()=>s),n.export(r,"BytesCoder",()=>o);var a=e("../../utils/index.js"),i=e("./abstract-coder.js");class s extends i.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,a.getBytesCopy)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readIndex(),!0)}}class o extends s{constructor(e){super("bytes",e)}decode(e){return(0,a.hexlify)(super.decode(e))}}},{"../../utils/index.js":"aoZEY","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4Zfo6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FixedBytesCoder",()=>o);var a=e("../../utils/index.js"),i=e("../typed.js"),s=e("./abstract-coder.js");class o extends s.Coder{size;constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),(0,a.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,a.getBytesCopy)((0,i.Typed).dereference(t,this.type));return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return(0,a.hexlify)(e.readBytes(this.size))}}},{"../../utils/index.js":"aoZEY","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],awFmW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NullCoder",()=>s);var a=e("./abstract-coder.js");let i=new Uint8Array([]);class s extends a.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(i)}decode(e){return e.readBytes(0),null}}},{"./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9eyEp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NumberCoder",()=>d);var a=e("../../utils/index.js"),i=e("../typed.js"),s=e("./abstract-coder.js");let o=BigInt(0),c=BigInt(1),f=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class d extends s.Coder{size;signed;constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),(0,a.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let r=(0,a.getBigInt)((0,i.Typed).dereference(t,this.type)),n=(0,a.mask)(f,8*s.WordSize);if(this.signed){let e=(0,a.mask)(n,8*this.size-1);(r>e||r<-(e+c))&&this._throwError("value out-of-bounds",t),r=(0,a.toTwos)(r,8*s.WordSize)}else(r(0,a.mask)(n,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(r)}decode(e){let t=(0,a.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,a.fromTwos)(t,8*this.size)),t}}},{"../../utils/index.js":"aoZEY","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7ZlmT":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"StringCoder",()=>o);var a=e("../../utils/utf8.js"),i=e("../typed.js"),s=e("./bytes.js");class o extends s.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,a.toUtf8Bytes)((0,i.Typed).dereference(t,"string")))}decode(e){return(0,a.toUtf8String)(super.decode(e))}}},{"../../utils/utf8.js":"aysnp","../typed.js":"3auRl","./bytes.js":"aQHy3","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7d2xO":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TupleCoder",()=>c);var a=e("../../utils/properties.js"),i=e("../typed.js"),s=e("./abstract-coder.js"),o=e("./array.js");class c extends s.Coder{coders;constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),(0,a.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let a=r.localName;a&&1===t[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[n]))}),Object.freeze(e)}encode(e,t){let r=(0,i.Typed).dereference(t,"tuple");return(0,o.pack)(e,this.coders,r)}decode(e){return(0,o.unpack)(e,this.coders)}}},{"../../utils/properties.js":"391vO","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","./array.js":"eIRoG","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hSb7d:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ParamType",()=>H),n.export(r,"Fragment",()=>V),n.export(r,"NamedFragment",()=>q),n.export(r,"ErrorFragment",()=>G),n.export(r,"EventFragment",()=>K),n.export(r,"ConstructorFragment",()=>W),n.export(r,"FallbackFragment",()=>$),n.export(r,"FunctionFragment",()=>J),n.export(r,"StructFragment",()=>Q);var a=e("../utils/index.js"),i=e("../hash/index.js");function s(e){let t=new Set;return e.forEach(e=>t.add(e)),Object.freeze(t)}let o=s("external public payable override".split(" ")),c="constant external internal payable private public pure view override",f=s(c.split(" ")),d="constructor error event fallback function receive struct",l=s(d.split(" ")),u="calldata memory storage payable indexed",h=s(u.split(" ")),p=s([d,u,"tuple returns",c].join(" ").split(" ")),b={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=RegExp("^(\\s*)"),m=RegExp("^([0-9]+)"),y=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),v=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),w=RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class x{#G;#et;get offset(){return this.#G}get length(){return this.#et.length-this.#G}constructor(e){this.#G=0,this.#et=e.slice()}clone(){return new x(this.#et)}reset(){this.#G=0}#er(e=0,t=0){return new x(this.#et.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){let t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){let t=this.peek();throw Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=this.#er(this.#G+1,e.match+1);return this.#G=e.match+1,t}popParams(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=[];for(;this.#G=this.#et.length)throw Error("out-of-bounds");return this.#et[this.#G]}peekKeyword(e){let t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;let t=this.peek();return t.type===e?t.text:null}pop(){let e=this.peek();return this.#G++,e}toString(){let e=[];for(let t=this.#G;t`}}function E(e){let t=[],r=t=>{let r=s0&&"NUMBER"===t[t.length-1].type){let r=t.pop().text;e=r+e,t[t.length-1].value=(0,a.getNumber)(r)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw Error("missing opening bracket");t[t.length-1].text+=e}continue}if(c=o.match(y)){if(f.text=c[1],s+=f.text.length,p.has(f.text)){f.type="KEYWORD";continue}if(f.text.match(w)){f.type="TYPE";continue}f.type="ID";continue}if(c=o.match(m)){f.text=c[1],f.type="NUMBER",s+=f.text.length;continue}throw Error(`unexpected token ${JSON.stringify(o[0])} at position ${s}`)}return new x(t.map(e=>Object.freeze(e)))}function A(e,t){let r=[];for(let n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw Error(`conflicting types: ${r.join(", ")}`)}function _(e,t){if(t.peekKeyword(l)){let r=t.pop().text;if(r!==e)throw Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function T(e,t){let r=new Set;for(;;){let n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function I(e){let t=T(e,f);return(A(t,s("constant payable nonpayable".split(" "))),A(t,s("pure view payable nonpayable".split(" "))),t.has("view"))?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function S(e,t){return e.popParams().map(e=>H.from(e,t))}function C(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,a.getBigInt)(e.pop().text);throw Error("invalid gas")}return null}function k(e){if(e.length)throw Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}let R=new RegExp(/^(.*)\[([0-9]*)\]$/);function M(e){let t=e.match(w);if((0,a.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){let r=parseInt(t[2]);(0,a.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);(0,a.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}let B={},P=Symbol.for("_ethers_internal"),O="_ParamTypeInternal",j="_ErrorInternal",N="_EventInternal",U="_ConstructorInternal",L="_FallbackInternal",D="_FunctionInternal",F="_StructInternal";class H{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,n,i,s,o,c){if((0,a.assertPrivate)(e,B,"ParamType"),Object.defineProperty(this,P,{value:O}),s&&(s=Object.freeze(s.slice())),"array"===n){if(null==o||null==c)throw Error("")}else if(null!=o||null!=c)throw Error("");if("tuple"===n){if(null==s)throw Error("")}else if(null!=s)throw Error("");(0,a.defineProperties)(this,{name:t,type:r,baseType:n,indexed:i,components:s,arrayLength:o,arrayChildren:c})}format(e){if(null==e&&(e="sighash"),"json"===e){let t=this.name||"";if(this.isArray()){let e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}let r={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw Error("array is wrong length");let r=this;return e.map(e=>r.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw Error("invalid tuple value");if(e.length!==this.components.length)throw Error("array is wrong length");let r=this;return e.map((e,n)=>r.components[n].walk(e,t))}return t(this.type,e)}#en(e,t,r,n){if(this.isArray()){if(!Array.isArray(t))throw Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw Error("array is wrong length");let a=this.arrayChildren,i=t.slice();i.forEach((t,n)=>{a.#en(e,t,r,e=>{i[n]=e})}),n(i);return}if(this.isTuple()){let a;let i=this.components;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!=typeof t)throw Error("invalid tuple value");a=i.map(e=>{if(!e.name)throw Error("cannot use object value with unnamed components");if(!(e.name in t))throw Error(`missing value for component ${e.name}`);return t[e.name]})}if(a.length!==this.components.length)throw Error("array is wrong length");a.forEach((t,n)=>{i[n].#en(e,t,r,e=>{a[n]=e})}),n(a);return}let a=r(this.type,t);a.then?e.push(async function(){n(await a)}()):n(a)}async walkAsync(e,t){let r=[],n=[e];return this.#en(r,e,t,e=>{n[0]=e}),r.length&&await Promise.all(r),n[0]}static from(e,t){if(H.isParamType(e))return e;if("string"==typeof e)try{return H.from(E(e),t)}catch(t){(0,a.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof x){let r="",n="",a=null;T(e,s(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",a=e.popParams().map(e=>H.from(e)),r=`tuple(${a.map(e=>e.format()).join(",")})`):n=r=M(e.popType("TYPE"));let i=null,o=null;for(;e.length&&e.peekType("BRACKET");){let t=e.pop();i=new H(B,"",r,n,null,a,o,i),o=t.value,r+=t.text,n="array",a=null}let c=null;if(T(e,h).has("indexed")){if(!t)throw Error("");c=!0}let f=e.peekType("ID")?e.pop().text:"";if(e.length)throw Error("leftover tokens");return new H(B,f,r,n,c,a,o,i)}let r=e.name;(0,a.assertArgument)(!r||"string"==typeof r&&r.match(v),"invalid name","obj.name",r);let n=e.indexed;null!=n&&((0,a.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),n=!!n);let i=e.type,o=i.match(R);if(o){let t=parseInt(o[2]||"-1"),a=H.from({type:o[1],components:e.components});return new H(B,r||"",i,"array",n,null,t,a)}if("tuple"===i||i.startsWith("tuple(")||i.startsWith("(")){let t=null!=e.components?e.components.map(e=>H.from(e)):null;return new H(B,r||"",i,"tuple",n,t,null,null)}return new H(B,r||"",i=M(e.type),i,n,null,null,null)}static isParamType(e){return e&&e[P]===O}}class V{type;inputs;constructor(e,t,r){(0,a.assertPrivate)(e,B,"Fragment"),r=Object.freeze(r.slice()),(0,a.defineProperties)(this,{type:t,inputs:r})}static from(e){if("string"==typeof e){try{V.from(JSON.parse(e))}catch(e){}return V.from(E(e))}if(e instanceof x)switch(e.peekKeyword(l)){case"constructor":return W.from(e);case"error":return G.from(e);case"event":return K.from(e);case"fallback":case"receive":return $.from(e);case"function":return J.from(e);case"struct":return Q.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return W.from(e);case"error":return G.from(e);case"event":return K.from(e);case"fallback":case"receive":return $.from(e);case"function":return J.from(e);case"struct":return Q.from(e)}(0,a.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,a.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return W.isFragment(e)}static isError(e){return G.isFragment(e)}static isEvent(e){return K.isFragment(e)}static isFunction(e){return J.isFragment(e)}static isStruct(e){return Q.isFragment(e)}}class q extends V{name;constructor(e,t,r,n){super(e,t,n),(0,a.assertArgument)("string"==typeof r&&r.match(v),"invalid identifier","name",r),n=Object.freeze(n.slice()),(0,a.defineProperties)(this,{name:r})}}function z(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}class G extends q{constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,P,{value:j})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+z(e,this.inputs)),t.join(" ")}static from(e){if(G.isFragment(e))return e;if("string"==typeof e)return G.from(E(e));if(e instanceof x){let t=_("error",e),r=S(e);return k(e),new G(B,t,r)}return new G(B,e.name,e.inputs?e.inputs.map(H.from):[])}static isFragment(e){return e&&e[P]===j}}class K extends q{anonymous;constructor(e,t,r,n){super(e,"event",t,r),Object.defineProperty(this,P,{value:N}),(0,a.defineProperties)(this,{anonymous:n})}get topicHash(){return(0,i.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return new K(B,e,t=(t||[]).map(e=>H.from(e)),!1).topicHash}static from(e){if(K.isFragment(e))return e;if("string"==typeof e)try{return K.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof x){let t=_("event",e),r=S(e,!0),n=!!T(e,s(["anonymous"])).has("anonymous");return k(e),new K(B,t,r,n)}return new K(B,e.name,e.inputs?e.inputs.map(e=>H.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[P]===N}}class W extends V{payable;gas;constructor(e,t,r,n,i){super(e,t,r),Object.defineProperty(this,P,{value:U}),(0,a.defineProperties)(this,{payable:n,gas:i})}format(e){if((0,a.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[`constructor${z(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(W.isFragment(e))return e;if("string"==typeof e)try{return W.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof x){T(e,s(["constructor"]));let t=S(e),r=!!T(e,o).has("payable"),n=C(e);return k(e),new W(B,"constructor",t,r,n)}return new W(B,"constructor",e.inputs?e.inputs.map(H.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[P]===U}}class $ extends V{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,P,{value:L}),(0,a.defineProperties)(this,{payable:r})}format(e){let t=0===this.inputs.length?"receive":"fallback";return"json"===e?JSON.stringify({type:t,stateMutability:this.payable?"payable":"nonpayable"}):`${t}()${this.payable?" payable":""}`}static from(e){if($.isFragment(e))return e;if("string"==typeof e)try{return $.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof x){let t=e.toString(),r=e.peekKeyword(s(["fallback","receive"]));if((0,a.assertArgument)(r,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(s(["fallback","receive"]))){let t=S(e);return(0,a.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),T(e,s(["payable"])),k(e),new $(B,[],!0)}let n=S(e);n.length?(0,a.assertArgument)(1===n.length&&"bytes"===n[0].type,"invalid fallback inputs","obj.inputs",n.map(e=>e.format("minimal")).join(", ")):n=[H.from("bytes")];let i=I(e);if((0,a.assertArgument)("nonpayable"===i||"payable"===i,"fallback cannot be constants","obj.stateMutability",i),T(e,s(["returns"])).has("returns")){let t=S(e);(0,a.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return k(e),new $(B,n,"payable"===i)}return"receive"===e.type?new $(B,[],!0):"fallback"===e.type?new $(B,[H.from("bytes")],"payable"===e.stateMutability):void(0,a.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[P]===L}}class J extends q{constant;outputs;stateMutability;payable;gas;constructor(e,t,r,n,i,s){super(e,"function",t,n),Object.defineProperty(this,P,{value:D}),i=Object.freeze(i.slice()),(0,a.defineProperties)(this,{constant:"view"===r||"pure"===r,gas:s,outputs:i,payable:"payable"===r,stateMutability:r})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(z(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return new J(B,e,"view",t=(t||[]).map(e=>H.from(e)),[],null).selector}static from(e){if(J.isFragment(e))return e;if("string"==typeof e)try{return J.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof x){let t=_("function",e),r=S(e),n=I(e),a=[];T(e,s(["returns"])).has("returns")&&(a=S(e));let i=C(e);return k(e),new J(B,t,n,r,a,i)}let t=e.stateMutability;return null!=t||(t="payable","boolean"==typeof e.constant?(t="view",e.constant||(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new J(B,e.name,t,e.inputs?e.inputs.map(H.from):[],e.outputs?e.outputs.map(H.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[P]===D}}class Q extends q{constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,P,{value:F})}format(){throw Error("@TODO")}static from(e){if("string"==typeof e)try{return Q.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof x){let t=_("struct",e),r=S(e);return k(e),new Q(B,t,r)}return new Q(B,e.name,e.inputs?e.inputs.map(H.from):[])}static isFragment(e){return e&&e[P]===F}}},{"../utils/index.js":"aoZEY","../hash/index.js":"1Ty7P","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"1Ty7P":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>a.id),n.export(r,"ensNormalize",()=>i.ensNormalize),n.export(r,"isValidName",()=>i.isValidName),n.export(r,"namehash",()=>i.namehash),n.export(r,"dnsEncode",()=>i.dnsEncode),n.export(r,"hashMessage",()=>s.hashMessage),n.export(r,"verifyMessage",()=>s.verifyMessage),n.export(r,"solidityPacked",()=>o.solidityPacked),n.export(r,"solidityPackedKeccak256",()=>o.solidityPackedKeccak256),n.export(r,"solidityPackedSha256",()=>o.solidityPackedSha256),n.export(r,"TypedDataEncoder",()=>c.TypedDataEncoder),n.export(r,"verifyTypedData",()=>c.verifyTypedData);var a=e("./id.js"),i=e("./namehash.js"),s=e("./message.js"),o=e("./solidity.js"),c=e("./typed-data.js")},{"./id.js":"kzQlS","./namehash.js":"5I0yS","./message.js":"dlfiD","./solidity.js":"dBUpB","./typed-data.js":"83bsp","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kzQlS:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>s);var a=e("../crypto/index.js"),i=e("../utils/index.js");function s(e){return(0,a.keccak256)((0,i.toUtf8Bytes)(e))}},{"../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5I0yS":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ensNormalize",()=>d),n.export(r,"isValidName",()=>l),n.export(r,"namehash",()=>u),n.export(r,"dnsEncode",()=>h);var a=e("../crypto/index.js"),i=e("../utils/index.js"),s=e("@adraffy/ens-normalize");let o=new Uint8Array(32);function c(e){return(0,i.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function f(e){let t=(0,i.toUtf8Bytes)(d(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e{(0,i.assertArgument)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}o.fill(0)},{"../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","@adraffy/ens-normalize":"5Fx5p","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5Fx5p":[function(e,t,r){let n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y;var v=e("@parcel/transformer-js/src/esmodule-helpers.js");v.defineInteropFlag(r),v.export(r,"ens_beautify",()=>J),v.export(r,"ens_emoji",()=>K),v.export(r,"ens_normalize",()=>$),v.export(r,"ens_normalize_fragment",()=>W),v.export(r,"ens_split",()=>Q),v.export(r,"ens_tokenize",()=>function e(t,{nf:r=!0}={}){F();let n=C(t).reverse(),a=[],i=[];for(;n.length;){let e=ea(n,a);if(e)i.push({type:"emoji",emoji:e.slice(),input:a,cps:en(e)}),a=[];else{let e=n.pop();if(46==e)i.push({type:"stop",cp:e});else if(g.has(e))i.push({type:ei,cps:[e]});else if(c.has(e))i.push({type:eo,cp:e});else{let t=o.get(e);t?i.push({type:es,cp:e,cps:t.slice()}):i.push({type:"disallowed",cp:e})}}}if(r)for(let t=0,r=-1;tec(e.type)?e.cps:[]),o=N(s);R(o,s)?(i.splice(r,n-r,{type:"nfc",input:s,cps:o,tokens0:ed(a),tokens:e(k(o),{nf:!1})}),t=r):t=n-1,r=-1}else r=t}else n.type!==eo&&(r=-1)}return ed(i)}),v.export(r,"is_combining_mark",()=>z),v.export(r,"nfc",()=>N),v.export(r,"nfd",()=>j),v.export(r,"safe_str_from_cps",()=>q),v.export(r,"should_escape",()=>G);let w=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function x(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),a=1,i=[0,1];for(let e=1;e>--c&1}let l=0x80000000-1,u=0;for(let e=0;e<31;e++)u=u<<1|d();let h=[],p=0,b=0x80000000;for(;;){let e=Math.floor(((u-p+1)*a-1)/b),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|d(),s=s<<1^0x40000000,o=(0x40000000^o)<<1|0x40000001;p=s,b=1+o-s}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return g+256+(e[o++]<<8|e[o++]);case 1:return g+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>3);for(let a=0,i=0,s=0,o=0;a=8&&(n[i++]=o>>(s-=8));return n}(e)),r=0,()=>t[r++]}function E(e,t=0){let r=[];for(;;){let n=e(),a=e();if(!a)break;t+=n;for(let e=0;e{let t=E(e);if(t.length)return t})}function _(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),a=T(t);return I(a.length,1+e,t).flatMap((e,t)=>{let[i,...s]=e;return Array(a[t]).fill().map((e,t)=>{let a=t*n;return[i+t*r,s.map(e=>e+a)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(I(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function T(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function I(e,t,r){let n=Array(e).fill().map(()=>[]);for(let a=0;a>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function S(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function C(e){let t=[];for(let r=0,n=e.length;r>24&255}function B(e){return 0xffffff&e}function P(e){return e>=44032&&e<55204}function O(e){n||function(){let e=x("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");for(let[t,r]of(n=new Map(A(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),a=new Set(E(e)),i=new Map,s=new Map,_(e))){if(!a.has(t)&&2==r.length){let[e,n]=r,a=s.get(e);a||(a=new Map,s.set(e,a)),a.set(n,t)}i.set(t,r.reverse())}}();let t=[],r=[],o=!1;function c(e){let r=n.get(e);r&&(o=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(P(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,a=e%28;c(4352+t),c(4449+r),a>0&&c(4519+a)}else{let e=i.get(n);e?r.push(...e):c(n)}if(!r.length)break;n=r.pop()}if(o&&t.length>1){let e=M(t[0]);for(let r=1;r0&&a>=e)0==e?(t.push(n,...r),r.length=0,n=o):r.push(o),a=e;else{let i=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;{if(P(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);let r=s.get(e);return r&&(r=r.get(t))?r:-1}}(n,o);i>=0?n=i:0==a&&0==e?(t.push(n),n=o):(r.push(o),a=e)}}return n>=0&&t.push(n,...r),t}(O(e))}let U=e=>Array.from(e);function L(e,t){return e.P.has(t)||e.Q.has(t)}class D extends Array{get is_emoji(){return!0}}function F(){let e,t;if(o)return;let r=x("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"),n=()=>E(r),a=()=>new Set(n()),i=(e,t)=>t.forEach(t=>e.add(t));o=new Map(_(r)),c=a(),f=n(),d=new Set(n().map(e=>f[e])),f=new Set(f),l=a(),u=a();let s=A(r),v=r(),w=()=>{let e=new Set;return n().forEach(t=>i(e,s[t])),i(e,n()),e};h=T(e=>{let t=T(r).map(e=>e+96);if(t.length){let n=e>=v;return t[0]-=32,t=k(t),n&&(t=`Restricted[${t}]`),{N:t,P:w(),Q:w(),M:!r(),R:n}}}),p=a(),b=new Map;let I=n().concat(U(p)).sort((e,t)=>e-t);for(let{V:e,M:t}of(I.forEach((e,t)=>{let n=r(),a=I[t]=n?I[t-n]:{V:[],M:new Map};a.V.push(e),p.has(e)||b.set(e,a)}),new Set(b.values()))){let r=[];for(let t of e){let e=h.filter(e=>L(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),i(n.G,e)}let n=r.flatMap(e=>U(e.G));for(let{G:e,V:a}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of a)t.set(e,r)}}g=new Set;let S=new Set,C=e=>g.has(e)?S.add(e):g.add(e);for(let e of h){for(let t of e.P)C(t);for(let t of e.Q)C(t)}for(let e of g)b.has(e)||S.has(e)||b.set(e,1);for(let n of(i(g,j(g)),m=(e=[],t=E(r),function t({S:r,B:n},a,i){if(!(4&r)||i!==a[a.length-1])for(let s of(2&r&&(i=a[a.length-1]),1&r&&e.push(a),n))for(let e of s.Q)t(s,[...a,e],i)}(function e(n){return{S:r(),B:T(()=>{let n=E(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>D.from(e)).sort(R),y=new Map,m)){let e=[y];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function H(e){return(G(e)?"":`${V(q([e]))} `)+S(e)}function V(e){return`"${e}"\u200E`}function q(e,t=1/0,r=S){let n=[];z(e[0])&&n.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,i=e.length;for(let t=0;te.slice())}function W(e,t){F();let r=t?j:N;return e.split(".").map(e=>k(er(C(e),r,en).flat())).join(".")}function $(e){return X(Z(e,N,en))}function J(e){let t=Z(e,N,e=>e);for(let{type:e,output:r,error:n}of t){if(n)break;"Greek"!==e&&function(e,t,r){let n=0;for(;;){let t=e.indexOf(958,n);if(t<0)break;e[t]=926,n=t+1}}(r,0,0)}return X(t)}function Q(e,t){return Z(e,N,t?e=>e.slice():en)}function Z(e,t,r){if(!e)return[];F();let n=0;return e.split(".").map(e=>{let a=C(e),i={input:a,offset:n};n+=a.length+1;try{let e,n=i.tokens=er(a,t,r),s=n.length;if(!s)throw Error("empty label");let o=i.output=n.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(o),!(i.emoji=s>1||n[0].is_emoji)&&o.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${k(e.slice(0,4))}"`)}(o),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(f.has(o[0]))throw et("leading combining mark");for(let e=1;eL(e,r));if(!e.length){if(h.some(e=>L(e,r)))throw ee(t[0],r);throw Y(r)}if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!L(e,r))throw ee(e,r);if(e.M){let e=j(t);for(let t=1,r=e.length;t4)throw Error(`excessive non-spacing marks: ${V(q(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(a,t),function(e,t){let r;let n=[];for(let e of t){let t=b.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):U(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>L(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(a,r),e=a.N}else e="Emoji"}i.type=e}catch(e){i.error=e}return i})}function X(e){return e.map(({input:t,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==e.length?n:`Invalid label ${V(q(t,63))}: ${n}`)}return k(n)}).join(".")}function Y(e){return Error(`disallowed character: ${H(e)}`)}function ee(e,t){let r=H(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function et(e){return Error(`illegal placement: ${e}`)}function er(e,t,r){let n=[],a=[];for(e=e.slice().reverse();e.length;){let i=ea(e);if(i)a.length&&(n.push(t(a)),a=[]),n.push(r(i));else{let t=e.pop();if(g.has(t))a.push(t);else{let e=o.get(t);if(e)a.push(...e);else if(!c.has(t))throw Y(t)}}}return a.length&&n.push(t(a)),n}function en(e){return e.filter(e=>65039!=e)}function ea(e,t){let r,n=y,a=e.length;for(;a&&(n=n.get(e[--a]));){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(a).reverse()),e.length=a)}return r}let ei="valid",es="mapped",eo="ignored";function ec(e){return e==ei||e==es}function ef(e){return e.some(e=>u.has(e))}function ed(e){for(let t=0;te.cps)})}return e}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dlfiD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"hashMessage",()=>c),n.export(r,"verifyMessage",()=>f);var a=e("../crypto/index.js"),i=e("../constants/index.js"),s=e("../transaction/index.js"),o=e("../utils/index.js");function c(e){return"string"==typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,a.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(i.MessagePrefix),(0,o.toUtf8Bytes)(String(e.length)),e]))}function f(e,t){let r=c(e);return(0,s.recoverAddress)(r,t)}},{"../crypto/index.js":"aHR5v","../constants/index.js":"2Shkc","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6XiG7":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"accessListify",()=>a.accessListify),n.export(r,"computeAddress",()=>i.computeAddress),n.export(r,"recoverAddress",()=>i.recoverAddress),n.export(r,"Transaction",()=>s.Transaction);var a=e("./accesslist.js"),i=e("./address.js"),s=e("./transaction.js")},{"./accesslist.js":"61lVl","./address.js":"lrz3E","./transaction.js":"bYWwy","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"61lVl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"accessListify",()=>o);var a=e("../address/index.js"),i=e("../utils/index.js");function s(e,t){return{address:(0,a.getAddress)(e),storageKeys:t.map((e,t)=>((0,i.assertArgument)((0,i.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}function o(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,i.assertArgument)(2===t.length,"invalid slot set",`value[${r}]`,t),s(t[0],t[1])):((0,i.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),s(t.address,t.storageKeys)));(0,i.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return s(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}},{"../address/index.js":"8s6vX","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lrz3E:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"computeAddress",()=>s),n.export(r,"recoverAddress",()=>o);var a=e("../address/index.js"),i=e("../crypto/index.js");function s(e){let t;return t="string"==typeof e?(0,i.SigningKey).computePublicKey(e,!1):e.publicKey,(0,a.getAddress)((0,i.keccak256)("0x"+t.substring(4)).substring(26))}function o(e,t){return s((0,i.SigningKey).recoverPublicKey(e,t))}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bYWwy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Transaction",()=>_);var a=e("../address/index.js"),i=e("../constants/addresses.js"),s=e("../crypto/index.js"),o=e("../utils/index.js"),c=e("./accesslist.js"),f=e("./address.js");let d=BigInt(0),l=BigInt(2),u=BigInt(27),h=BigInt(28),p=BigInt(35),b=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function g(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return"0x"+(r+=(0,s.sha256)(t).substring(4))}function m(e){return"0x"===e?null:(0,a.getAddress)(e)}function y(e,t){try{return(0,c.accessListify)(e)}catch(r){(0,o.assertArgument)(!1,r.message,t,e)}}function v(e,t){return"0x"===e?0:(0,o.getNumber)(e,t)}function w(e,t){if("0x"===e)return d;let r=(0,o.getBigInt)(e,t);return(0,o.assertArgument)(r<=b,"value exceeds uint size",t,r),r}function x(e,t){let r=(0,o.getBigInt)(e,"value"),n=(0,o.toBeArray)(r);return(0,o.assertArgument)(n.length<=32,"value too large",`tx.${t}`,r),n}function E(e){return(0,c.accessListify)(e).map(e=>[e.address,e.storageKeys])}function A(e,t){let r;try{if(r=v(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){(0,o.assertArgument)(!1,"invalid yParity","yParity",t[0])}let n=(0,o.zeroPadValue)(t[1],32),a=(0,o.zeroPadValue)(t[2],32),i=(0,s.Signature).from({r:n,s:a,yParity:r});e.signature=i}class _{#ea;#ei;#V;#es;#eo;#ec;#ef;#ed;#el;#eu;#eh;#ep;#eb;#eg;#em;#ey;get type(){return this.#ea}set type(e){switch(e){case null:this.#ea=null;break;case 0:case"legacy":this.#ea=0;break;case 1:case"berlin":case"eip-2930":this.#ea=1;break;case 2:case"london":case"eip-1559":this.#ea=2;break;case 3:case"cancun":case"eip-4844":this.#ea=3;break;default:(0,o.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){let e=this.#ei;return null==e&&3===this.type?i.ZeroAddress:e}set to(e){this.#ei=null==e?null:(0,a.getAddress)(e)}get nonce(){return this.#es}set nonce(e){this.#es=(0,o.getNumber)(e,"value")}get gasLimit(){return this.#eo}set gasLimit(e){this.#eo=(0,o.getBigInt)(e)}get gasPrice(){let e=this.#ec;return null==e&&(0===this.type||1===this.type)?d:e}set gasPrice(e){this.#ec=null==e?null:(0,o.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#ef;return null==e?2===this.type||3===this.type?d:null:e}set maxPriorityFeePerGas(e){this.#ef=null==e?null:(0,o.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#ed;return null==e?2===this.type||3===this.type?d:null:e}set maxFeePerGas(e){this.#ed=null==e?null:(0,o.getBigInt)(e,"maxFeePerGas")}get data(){return this.#V}set data(e){this.#V=(0,o.hexlify)(e)}get value(){return this.#el}set value(e){this.#el=(0,o.getBigInt)(e,"value")}get chainId(){return this.#eu}set chainId(e){this.#eu=(0,o.getBigInt)(e)}get signature(){return this.#eh||null}set signature(e){this.#eh=null==e?null:(0,s.Signature).from(e)}get accessList(){let e=this.#ep||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#ep=null==e?null:(0,c.accessListify)(e)}get maxFeePerBlobGas(){let e=this.#eb;return null==e&&3===this.type?d:e}set maxFeePerBlobGas(e){this.#eb=null==e?null:(0,o.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#eg;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,o.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;tObject.assign({},e))}set blobs(e){if(null==e){this.#ey=null;return}let t=[],r=[];for(let n=0;ne.data),r.map(e=>e.commitment),r.map(e=>e.proof)])]):(0,o.concat)(["0x03",(0,o.encodeRlp)(n)])}(this,r,t?this.blobs:null)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#ev(!0,!0)}get unsignedSerialized(){return this.#ev(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#eb||this.#eg;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,o.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,o.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,o.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let a=[];return null!=this.type?a.push(this.type):t?a.push(2):e?(a.push(1),r||a.push(0)):r?(a.push(1),a.push(2)):(n&&this.to||(a.push(0),a.push(1),a.push(2)),a.push(3)),a.sort(),a}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return _.from(this)}toJSON(){let e=e=>null==e?null:e.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(null==e)return new _;if("string"==typeof e){let t=(0,o.getBytes)(e);if(t[0]>=127)return _.from(function(e){let t=(0,o.decodeRlp)(e);(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:m(t[3]),value:w(t[4],"value"),data:(0,o.hexlify)(t[5]),chainId:d};if(6===t.length)return r;let n=w(t[6],"v"),a=w(t[7],"r"),i=w(t[8],"s");if(a===d&&i===d)r.chainId=n;else{let e=(n-p)/l;ed),n.export(r,"solidityPackedKeccak256",()=>l),n.export(r,"solidityPackedSha256",()=>u);var a=e("../address/index.js"),i=e("../crypto/index.js"),s=e("../utils/index.js");let o=RegExp("^bytes([0-9]+)$"),c=RegExp("^(u?int)([0-9]*)$"),f=RegExp("^(.*)\\[([0-9]*)\\]$");function d(e,t){(0,s.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(function e(t,r,n){switch(t){case"address":if(n)return(0,s.getBytes)((0,s.zeroPadValue)(r,32));return(0,s.getBytes)((0,a.getAddress)(r));case"string":return(0,s.toUtf8Bytes)(r);case"bytes":return(0,s.getBytes)(r);case"bool":if(r=r?"0x01":"0x00",n)return(0,s.getBytes)((0,s.zeroPadValue)(r,32));return(0,s.getBytes)(r)}let i=t.match(c);if(i){let e="int"===i[1],a=parseInt(i[2]||"256");return(0,s.assertArgument)((!i[2]||i[2]===String(a))&&a%8==0&&0!==a&&a<=256,"invalid number type","type",t),n&&(a=256),e&&(r=(0,s.toTwos)(r,a)),(0,s.getBytes)((0,s.zeroPadValue)((0,s.toBeArray)(r),a/8))}if(i=t.match(o)){let e=parseInt(i[1]);return((0,s.assertArgument)(String(e)===i[1]&&0!==e&&e<=32,"invalid bytes type","type",t),(0,s.assertArgument)((0,s.dataLength)(r)===e,`invalid value for ${t}`,"value",r),n)?(0,s.getBytes)((0,s.zeroPadBytes)(r,32)):r}if((i=t.match(f))&&Array.isArray(r)){let n=i[1],a=parseInt(i[2]||String(r.length));(0,s.assertArgument)(a===r.length,`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(n,t,!0))}),(0,s.getBytes)((0,s.concat)(o))}(0,s.assertArgument)(!1,"invalid type","type",t)}(e,t[n]))}),(0,s.hexlify)((0,s.concat)(r))}function l(e,t){return(0,i.keccak256)(d(e,t))}function u(e,t){return(0,i.sha256)(d(e,t))}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"83bsp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TypedDataEncoder",()=>A),n.export(r,"verifyTypedData",()=>_);var a=e("../address/index.js"),i=e("../crypto/index.js"),s=e("../transaction/index.js"),o=e("../utils/index.js"),c=e("./id.js");let f=new Uint8Array(32);f.fill(0);let d=BigInt(-1),l=BigInt(0),u=BigInt(1),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),p=(0,o.toBeHex)(u,32),b=(0,o.toBeHex)(l,32),g={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},m=["name","version","chainId","verifyingContract","salt"];function y(e){return function(t){return(0,o.assertArgument)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let v={name:y("name"),version:y("version"),chainId:function(e){let t=(0,o.getBigInt)(e,"domain.chainId");return((0,o.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))?Number(t):(0,o.toQuantity)(t)},verifyingContract:function(e){try{return(0,a.getAddress)(e).toLowerCase()}catch(e){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=(0,o.getBytes)(e,"domain.salt");return(0,o.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,o.hexlify)(t)}};function w(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=""===t[1],n=parseInt(t[2]);(0,o.assertArgument)(n%8==0&&0!==n&&n<=256&&t[2]===String(n),"invalid numeric width","type",e);let a=(0,o.mask)(h,r?n-1:n),i=r?(a+u)*d:l;return function(t){let n=(0,o.getBigInt)(t,"value");return(0,o.assertArgument)(n>=i&&n<=a,`value out-of-bounds for ${e}`,"value",n),(0,o.toBeHex)(r?(0,o.toTwos)(n,256):n,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0,o.assertArgument)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){let n=(0,o.getBytes)(t);return(0,o.assertArgument)(n.length===r,`invalid length for ${e}`,"value",t),function(e){let t=(0,o.getBytes)(e),r=t.length%32;return r?(0,o.concat)([t,f.slice(r)]):(0,o.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.zeroPadValue)((0,a.getAddress)(e),32)};case"bool":return function(e){return e?p:b};case"bytes":return function(e){return(0,i.keccak256)(e)};case"string":return function(e){return(0,c.id)(e)}}return null}function x(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function E(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class A{primaryType;#ew;get types(){return JSON.parse(this.#ew)}#ex;#eE;constructor(e){this.#ex=new Map,this.#eE=new Map;let t=new Map,r=new Map,n=new Map,a={};for(let i in Object.keys(e).forEach(i=>{a[i]=e[i].map(({name:t,type:r})=>{let{base:n,index:a}=E(r);return"int"!==n||e.int||(n="int256"),"uint"!==n||e.uint||(n="uint256"),{name:t,type:n+(a||"")}}),t.set(i,new Set),r.set(i,[]),n.set(i,new Set)}),this.#ew=JSON.stringify(a),a){let n=new Set;for(let s of a[i]){(0,o.assertArgument)(!n.has(s.name),`duplicate variable name ${JSON.stringify(s.name)} in ${JSON.stringify(i)}`,"types",e),n.add(s.name);let a=E(s.type).base;(0,o.assertArgument)(a!==i,`circular type reference to ${JSON.stringify(a)}`,"types",e),w(a)||((0,o.assertArgument)(r.has(a),`unknown type ${JSON.stringify(a)}`,"types",e),r.get(a).push(i),t.get(i).add(a))}}let i=Array.from(r.keys()).filter(e=>0===r.get(e).length);for(let[s,c]of((0,o.assertArgument)(0!==i.length,"missing primary type","types",e),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,o.defineProperties)(this,{primaryType:i[0]}),!function a(i,s){for(let c of((0,o.assertArgument)(!s.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),s.add(i),t.get(i)))if(r.has(c))for(let e of(a(c,s),s))n.get(e).add(c);s.delete(i)}(this.primaryType,new Set),n)){let e=Array.from(c);e.sort(),this.#ex.set(s,x(s,a[s])+e.map(e=>x(e,a[e])).join(""))}}getEncoder(e){let t=this.#eE.get(e);return t||(t=this.#eA(e),this.#eE.set(e,t)),t}#eA(e){{let t=w(e);if(t)return t}let t=E(e).array;if(t){let e=t.prefix,r=this.getEncoder(e);return n=>{(0,o.assertArgument)(-1===t.count||t.count===n.length,`array length mismatch; expected length ${t.count}`,"value",n);let a=n.map(r);return this.#ex.has(e)&&(a=a.map(i.keccak256)),(0,i.keccak256)((0,o.concat)(a))}}let r=this.types[e];if(r){let t=(0,c.id)(this.#ex.get(e));return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this.#ex.has(r)?(0,i.keccak256)(n):n});return n.unshift(t),(0,o.concat)(n)}}(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#ex.get(e);return(0,o.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,i.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(w(e))return r(e,t);let n=E(e).array;if(n)return(0,o.assertArgument)(-1===n.count||n.count===t.length,`array length mismatch; expected length ${n.count}`,"value",t),t.map(e=>this._visit(n.prefix,e,r));let a=this.types[e];if(a)return a.reduce((e,{name:n,type:a})=>(e[n]=this._visit(a,t[n],r),e),{});(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new A(e)}static getPrimaryType(e){return A.from(e).primaryType}static hashStruct(e,t,r){return A.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){if(null==e[r])continue;let n=g[r];(0,o.assertArgument)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>m.indexOf(e.name)-m.indexOf(t.name)),A.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,o.concat)(["0x1901",A.hashDomain(e),A.from(t).hash(r)])}static hash(e,t,r){return(0,i.keccak256)(A.encode(e,t,r))}static async resolveNames(e,t,r,n){for(let t in e=Object.assign({},e))null==e[t]&&delete e[t];let a={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");let i=A.from(t);for(let e in i.visit(r,(e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(a[t]="0x"),t)),a)a[e]=await n(e);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),r=i.visit(r,(e,t)=>"address"===e&&a[t]?a[t]:t),{domain:e,value:r}}static getPayload(e,t,r){A.hashDomain(e);let n={},a=[];m.forEach(t=>{let r=e[t];null!=r&&(n[t]=v[t](r),a.push({name:t,type:g[t]}))});let i=A.from(t),s=Object.assign({},t=i.types);return(0,o.assertArgument)(null==s.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),s.EIP712Domain=a,i.encode(r),{types:s,domain:n,primaryType:i.primaryType,message:i.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(t));if(e.match(/^u?int/))return(0,o.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,o.assertArgument)("string"==typeof t,"invalid string","value",t),t}(0,o.assertArgument)(!1,"unsupported type","type",e)})}}}function _(e,t,r,n){return(0,s.recoverAddress)(A.hash(e,t,r),n)}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./id.js":"kzQlS","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2PGyl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkResultErrors",()=>c.checkResultErrors),n.export(r,"Result",()=>c.Result),n.export(r,"LogDescription",()=>l),n.export(r,"TransactionDescription",()=>u),n.export(r,"ErrorDescription",()=>h),n.export(r,"Indexed",()=>p),n.export(r,"Interface",()=>m);var a=e("../crypto/index.js"),i=e("../hash/index.js"),s=e("../utils/index.js"),o=e("./abi-coder.js"),c=e("./coders/abstract-coder.js"),f=e("./fragments.js"),d=e("./typed.js");class l{fragment;name;signature;topic;args;constructor(e,t,r){let n=e.name,a=e.format();(0,s.defineProperties)(this,{fragment:e,name:n,signature:a,topic:t,args:r})}}class u{fragment;name;args;signature;selector;value;constructor(e,t,r,n){let a=e.name,i=e.format();(0,s.defineProperties)(this,{fragment:e,name:a,args:r,signature:i,selector:t,value:n})}}class h{fragment;name;args;signature;selector;constructor(e,t,r){let n=e.name,a=e.format();(0,s.defineProperties)(this,{fragment:e,name:n,args:r,signature:a,selector:t})}}class p{hash;_isIndexed;static isIndexed(e){return!!(e&&e._isIndexed)}constructor(e){(0,s.defineProperties)(this,{hash:e,_isIndexed:!0})}}let b={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"},g={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&b[e.toString()]&&(t=b[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class m{fragments;deploy;fallback;receive;#e_;#eT;#eI;#eS;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#eI=new Map,this.#e_=new Map,this.#eT=new Map;let r=[];for(let e of t)try{r.push((0,f.Fragment).from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,s.defineProperties)(this,{fragments:Object.freeze(r)});let n=null,a=!1;this.#eS=this.getAbiCoder(),this.fragments.forEach((e,t)=>{let r;switch(e.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}(0,s.defineProperties)(this,{deploy:e});return;case"fallback":0===e.inputs.length?a=!0:((0,s.assertArgument)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),a=(n=e).payable);return;case"function":r=this.#eI;break;case"event":r=this.#eT;break;case"error":r=this.#e_;break;default:return}let i=e.format();r.has(i)||r.set(i,e)}),this.deploy||(0,s.defineProperties)(this,{deploy:(0,f.ConstructorFragment).from("constructor()")}),(0,s.defineProperties)(this,{fallback:n,receive:a})}format(e){let t=e?"minimal":"full";return this.fragments.map(e=>e.format(t))}formatJson(){return JSON.stringify(this.fragments.map(e=>e.format("json")).map(e=>JSON.parse(e)))}getAbiCoder(){return(0,o.AbiCoder).defaultAbiCoder()}#eC(e,t,r){if((0,s.isHexString)(e)){let t=e.toLowerCase();for(let e of this.#eI.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#eI)t.split("(")[0]===e&&n.push(r);if(t){let e=t.length>0?t[t.length-1]:null,r=t.length,a=!0;(0,d.Typed).isTyped(e)&&"overrides"===e.type&&(a=!1,r--);for(let e=n.length-1;e>=0;e--){let t=n[e].inputs.length;t===r||a&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let a=0;a=r.length){if("overrides"===t[a].type)continue;n.splice(e,1);break}if(t[a].type!==r[a].baseType){n.splice(e,1);break}}}}if(1===n.length&&t&&t.length!==n[0].inputs.length){let e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,s.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return n[0]}return this.#eI.get((0,f.FunctionFragment).from(e).format())||null}getFunctionName(e){let t=this.#eC(e,null,!1);return(0,s.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#eC(e,null,!1)}getFunction(e,t){return this.#eC(e,t||null,!0)}forEachFunction(e){let t=Array.from(this.#eI.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r=0;e--)n[e].inputs.length=0;e--){let r=n[e].inputs;for(let a=0;a1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,s.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return n[0]}return this.#eT.get((0,f.EventFragment).from(e).format())||null}getEventName(e){let t=this.#ek(e,null,!1);return(0,s.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#ek(e,null,!1)}getEvent(e,t){return this.#ek(e,t||null,!0)}forEachEvent(e){let t=Array.from(this.#eT.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r1){let r=t.map(e=>JSON.stringify(e.format())).join(", ");(0,s.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}return"Error(string)"===(e=(0,f.ErrorFragment).from(e).format())?(0,f.ErrorFragment).from("error Error(string)"):"Panic(uint256)"===e?(0,f.ErrorFragment).from("error Panic(uint256)"):this.#e_.get(e)||null}forEachError(e){let t=Array.from(this.#e_.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r"string"===e.type?(0,i.id)(t):"bytes"===e.type?(0,a.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,s.toBeHex)(t):e.type.match(/^bytes/)?t=(0,s.zeroPadBytes)(t,32):"address"===e.type&&this.#eS.encode(["address"],[t]),(0,s.zeroPadValue)((0,s.hexlify)(t),32));for(t.forEach((t,a)=>{let i=e.inputs[a];if(!i.indexed){(0,s.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+i.name,t);return}null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?(0,s.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map(e=>n(i,e))):r.push(n(i,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,s.assertArgument)(t,"unknown event","eventFragment",e),e=t}let r=[],n=[],o=[];return e.anonymous||r.push(e.topicHash),(0,s.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((e,s)=>{let c=t[s];if(e.indexed){if("string"===e.type)r.push((0,i.id)(c));else if("bytes"===e.type)r.push((0,a.keccak256)(c));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this.#eS.encode([e.type],[c]))}else n.push(e),o.push(c)}),{data:this.#eS.encode(n,o),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){let t=this.getEvent(e);(0,s.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){let t=e.topicHash;(0,s.assertArgument)((0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}let n=[],a=[],i=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push((0,f.ParamType).from({type:"bytes32",name:e.name})),i.push(!0)):(n.push(e),i.push(!1)):(a.push(e),i.push(!1))});let o=null!=r?this.#eS.decode(n,(0,s.concat)(r)):null,d=this.#eS.decode(a,t,!0),l=[],u=[],h=0,b=0;return e.inputs.forEach((e,t)=>{let r=null;if(e.indexed){if(null==o)r=new p(null);else if(i[t])r=new p(o[b++]);else try{r=o[b++]}catch(e){r=e}}else try{r=d[h++]}catch(e){r=e}l.push(r),u.push(e.name||null)}),(0,c.Result).fromItems(l,u)}parseTransaction(e){let t=(0,s.getBytes)(e.data,"tx.data"),r=(0,s.getBigInt)(null!=e.value?e.value:0,"tx.value"),n=this.getFunction((0,s.hexlify)(t.slice(0,4)));if(!n)return null;let a=this.#eS.decode(n.inputs,t.slice(4));return new u(n,n.selector,a,r)}parseCallResult(e){throw Error("@TODO")}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new l(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){let t=(0,s.hexlify)(e),r=this.getError((0,s.dataSlice)(t,0,4));if(!r)return null;let n=this.#eS.decode(r.inputs,(0,s.dataSlice)(t,4));return new h(r,r.selector,n)}static from(e){return e instanceof m?e:new m("string"==typeof e?JSON.parse(e):"function"==typeof e.formatJson?e.formatJson():"function"==typeof e.format?e.format("json"):e)}}},{"../crypto/index.js":"aHR5v","../hash/index.js":"1Ty7P","../utils/index.js":"aoZEY","./abi-coder.js":"f57tP","./coders/abstract-coder.js":"9D1CN","./fragments.js":"hSb7d","./typed.js":"3auRl","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],h4Dfe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseContract",()=>a.BaseContract),n.export(r,"Contract",()=>a.Contract),n.export(r,"ContractFactory",()=>i.ContractFactory),n.export(r,"ContractEventPayload",()=>s.ContractEventPayload),n.export(r,"ContractUnknownEventPayload",()=>s.ContractUnknownEventPayload),n.export(r,"ContractTransactionReceipt",()=>s.ContractTransactionReceipt),n.export(r,"ContractTransactionResponse",()=>s.ContractTransactionResponse),n.export(r,"EventLog",()=>s.EventLog),n.export(r,"UndecodedEventLog",()=>s.UndecodedEventLog);var a=e("./contract.js"),i=e("./factory.js"),s=e("./wrappers.js")},{"./contract.js":"klKVF","./factory.js":"bEFFY","./wrappers.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],klKVF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"copyOverrides",()=>y),n.export(r,"resolveArgs",()=>v),n.export(r,"BaseContract",()=>R),n.export(r,"Contract",()=>B);var a=e("../abi/index.js"),i=e("../address/index.js"),s=e("../providers/provider.js"),o=e("../utils/index.js"),c=e("./wrappers.js");let f=BigInt(0);function d(e){return e&&"function"==typeof e.call}function l(e){return e&&"function"==typeof e.estimateGas}function u(e){return e&&"function"==typeof e.resolveName}function h(e){return e&&"function"==typeof e.sendTransaction}function p(e){if(null!=e){if(u(e))return e;if(e.provider)return e.provider}}class b{#eR;fragment;constructor(e,t,r){if((0,o.defineProperties)(this,{fragment:t}),t.inputs.lengthnull==r[t]?null:e.walkAsync(r[t],(e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map(e=>(0,i.resolveAddress)(e,a))):(0,i.resolveAddress)(t,a):t)));return e.interface.encodeFilterTopics(t,n)}()}getTopicFilter(){return this.#eR}}function g(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function m(e){return null==e?null:e.provider||null}async function y(e,t){let r=(0,a.Typed).dereference(e,"overrides");(0,o.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",e);let n=(0,s.copyRequest)(r);return(0,o.assertArgument)(null==n.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),(0,o.assertArgument)(null==n.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function v(e,t,r){let n=g(e,"resolveName"),s=u(n)?n:null;return await Promise.all(t.map((e,t)=>e.walkAsync(r[t],(e,t)=>(t=(0,a.Typed).dereference(t,e),"address"===e)?(0,i.resolveAddress)(t,s):t)))}let w=Symbol.for("_ethersInternal_contract"),x=new WeakMap;function E(e){return x.get(e[w])}async function A(e,t){let r;let n=null;if(Array.isArray(t)){let n=function(t){if((0,o.isHexString)(t,32))return t;let r=e.interface.getEvent(t);return(0,o.assertArgument)(r,"unknown fragment","name",t),r.topicHash};r=t.map(e=>null==e?null:Array.isArray(e)?e.map(n):n(e))}else"*"===t?r=[null]:"string"==typeof t?(0,o.isHexString)(t,32)?r=[t]:(n=e.interface.getEvent(t),(0,o.assertArgument)(n,"unknown fragment","event",t),r=[n.topicHash]):t&&"object"==typeof t&&"getTopicFilter"in t&&"function"==typeof t.getTopicFilter&&t.fragment?r=await t.getTopicFilter():"fragment"in t?r=[(n=t.fragment).topicHash]:(0,o.assertArgument)(!1,"unknown event name","event",t);return{fragment:n,tag:(r=r.map(e=>{if(null==e)return null;if(Array.isArray(e)){let t=Array.from(new Set(e.map(e=>e.toLowerCase())).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})).map(e=>null==e?"null":Array.isArray(e)?e.join("|"):e).join("&"),topics:r}}async function _(e,t){let{subs:r}=E(e);return r.get((await A(e,t)).tag)||null}async function T(e,t,r){let n=m(e.runner);(0,o.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:a,tag:i,topics:s}=await A(e,r),{addr:f,subs:d}=E(e),l=d.get(i);if(!l){let t={address:f||e,topics:s},o=t=>{let n=a;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){let i=n,s=a?e.interface.decodeEventLog(a,t.data,t.topics):[];C(e,r,s,n=>new c.ContractEventPayload(e,n,r,i,t))}else C(e,r,[],n=>new c.ContractUnknownEventPayload(e,n,r,t))},u=[];l={tag:i,listeners:[],start:()=>{u.length||u.push(n.on(t,o))},stop:async()=>{if(0==u.length)return;let e=u;u=[],await Promise.all(e),n.off(t,o)}},d.set(i,l)}return l}let I=Promise.resolve();async function S(e,t,r,n){await I;let a=await _(e,t);if(!a)return!1;let i=a.listeners.length;return a.listeners=a.listeners.filter(({listener:t,once:a})=>{let i=Array.from(r);n&&i.push(n(a?null:t));try{t.call(e,...i)}catch(e){}return!a}),0===a.listeners.length&&(a.stop(),E(e).subs.delete(a.tag)),i>0}async function C(e,t,r,n){try{await I}catch(e){}let a=S(e,t,r,n);return I=a,await a}let k=["then"];class R{target;interface;runner;filters;[w];fallback;constructor(e,t,r,n){var s;let b;(0,o.assertArgument)("string"==typeof e||(0,i.isAddressable)(e),"invalid value for Contract target","target",e),null==r&&(r=null);let v=(0,a.Interface).from(t);(0,o.defineProperties)(this,{target:e,runner:r,interface:v}),Object.defineProperty(this,w,{value:{}});let A=null,_=null;if(n){let e=m(r);_=new c.ContractTransactionResponse(this.interface,e,n)}let T=new Map;if("string"==typeof e){if((0,o.isHexString)(e))A=e,b=Promise.resolve(e);else{let t=g(r,"resolveName");if(!u(t))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});b=t.resolveName(e).then(t=>{if(null==t)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return E(this).addr=t,t})}}else b=e.getAddress().then(e=>{if(null==e)throw Error("TODO");return E(this).addr=e,e});s={addrPromise:b,addr:A,deployTx:_,subs:T},x.set(this[w],s);let I=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||k.indexOf(t)>=0)return Reflect.get(e,t,r);try{return this.getEvent(t)}catch(e){if(!(0,o.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>k.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,o.defineProperties)(this,{filters:I}),(0,o.defineProperties)(this,{fallback:v.receive||v.fallback?function(e){let t=async function(t){let r=await y(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await (0,i.resolveAddress)(r.from,p(e.runner)));let n=e.interface,a=(0,o.getBigInt)(r.value||f,"overrides.value")===f,s="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||s||a||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,o.assertArgument)(n.fallback||s,"cannot send data to receive-only contract","overrides.data",r.data);let c=n.receive||n.fallback&&n.fallback.payable;return(0,o.assertArgument)(c||a,"cannot send value to non-payable fallback","overrides.value",r.value),(0,o.assertArgument)(n.fallback||s,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){let n=g(e.runner,"call");(0,o.assert)(d(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let a=await t(r);try{return await n.call(a)}catch(t){if((0,o.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,a);throw t}},n=async function(r){let n=e.runner;(0,o.assert)(h(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let a=await n.sendTransaction(await t(r)),i=m(e.runner);return new c.ContractTransactionResponse(e.interface,i,a)},a=async function(r){let n=g(e.runner,"estimateGas");return(0,o.assert)(l(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},s=async e=>await n(e);return(0,o.defineProperties)(s,{_contract:e,estimateGas:a,populateTransaction:t,send:n,staticCall:r}),s}(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||k.indexOf(t)>=0)return Reflect.get(e,t,r);try{return e.getFunction(t)}catch(e){if(!(0,o.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||k.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new R(this.target,this.interface,e)}attach(e){return new R(e,this.interface,this.runner)}async getAddress(){return await E(this).addrPromise}async getDeployedCode(){let e=m(this.runner);(0,o.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){let e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;let t=m(this.runner);return(0,o.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((e,r)=>{let n=async()=>{try{let r=await this.getDeployedCode();if(null!=r)return e(this);t.once("block",n)}catch(e){r(e)}};n()})}deploymentTransaction(){return E(this).deployTx}getFunction(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getFunction(t,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=async function(...t){let n=r(...t),a={};if(n.inputs.length+1===t.length&&(a=await y(t.pop())).from&&(a.from=await (0,i.resolveAddress)(a.from,p(e.runner))),n.inputs.length!==t.length)throw Error("internal error: fragment inputs doesn't match arguments; should not happen");let s=await v(e.runner,n.inputs,t);return Object.assign({},a,await (0,o.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(n,s)}))},a=async function(...e){let t=await u(...e);return 1===t.length?t[0]:t},s=async function(...t){let r=e.runner;(0,o.assert)(h(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let a=await r.sendTransaction(await n(...t)),i=m(e.runner);return new c.ContractTransactionResponse(e.interface,i,a)},f=async function(...t){let r=g(e.runner,"estimateGas");return(0,o.assert)(l(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},u=async function(...t){let a=g(e.runner,"call");(0,o.assert)(d(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let i=await n(...t),s="0x";try{s=await a.call(i)}catch(t){if((0,o.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,i);throw t}let c=r(...t);return e.interface.decodeFunctionResult(c,s)},b=async(...e)=>r(...e).constant?await a(...e):await s(...e);return(0,o.defineProperties)(b,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:f,populateTransaction:n,send:s,staticCall:a,staticCallResult:u}),Object.defineProperty(b,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getFunction(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),b}(this,e)}getEvent(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getEvent(t,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=function(...t){return new b(e,r(...t),t)};return(0,o.defineProperties)(n,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getEvent(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),n}(this,e)}async queryTransaction(e){throw Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");let{addr:n,addrPromise:a}=E(this),i=n||await a,{fragment:f,topics:d}=await A(this,e),l={address:i,topics:d,fromBlock:t,toBlock:r},u=m(this.runner);return(0,o.assert)(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(e=>{let t=f;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new c.EventLog(e,this.interface,t)}catch(t){return new c.UndecodedEventLog(e,t)}return new s.Log(e,u)})}async on(e,t){let r=await T(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){let r=await T(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await C(this,e,t,null)}async listenerCount(e){if(e){let t=await _(this,e);return t?t.listeners.length:0}let{subs:t}=E(this),r=0;for(let{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){let t=await _(this,e);return t?t.listeners.map(({listener:e})=>e):[]}let{subs:t}=E(this),r=[];for(let{listeners:e}of t.values())r=r.concat(e.map(({listener:e})=>e));return r}async off(e,t){let r=await _(this,e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return(null==t||0===r.listeners.length)&&(r.stop(),E(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){let t=await _(this,e);if(!t)return this;t.stop(),E(this).subs.delete(t.tag)}else{let{subs:e}=E(this);for(let{tag:t,stop:r}of e.values())r(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends R{constructor(t,r=null){super(t,e,r)}}}static from(e,t,r){return null==r&&(r=null),new this(e,t,r)}}function M(){return R}class B extends M(){}},{"../abi/index.js":"4ccGG","../address/index.js":"8s6vX","../providers/provider.js":"4vLmk","../utils/index.js":"aoZEY","./wrappers.js":"g2IRK","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4vLmk":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FeeData",()=>f),n.export(r,"copyRequest",()=>d),n.export(r,"Block",()=>l),n.export(r,"Log",()=>u),n.export(r,"TransactionReceipt",()=>h),n.export(r,"TransactionResponse",()=>p);var a=e("../utils/index.js"),i=e("../transaction/index.js");let s=BigInt(0);function o(e){return null==e?null:e}function c(e){return null==e?null:e.toString()}class f{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,a.defineProperties)(this,{gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(r)})}toJSON(){let{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:c(e),maxFeePerGas:c(t),maxPriorityFeePerGas:c(r)}}}function d(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,a.hexlify)(e.data)),"chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=(0,a.getBigInt)(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=(0,a.getNumber)(e[r],`request.${r}`));return e.accessList&&(t.accessList=(0,i.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(e=>(0,a.isBytesLike)(e)?(0,a.hexlify)(e):Object.assign({},e))),t}class l{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#eM;constructor(e,t){this.#eM=e.transactions.map(e=>"string"!=typeof e?new p(e,t):e),(0,a.defineProperties)(this,{provider:t,hash:o(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:o(e.prevRandao),extraData:e.extraData,baseFeePerGas:o(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#eM.map(e=>"string"==typeof e?e:e.hash)}get prefetchedTransactions(){let e=this.#eM.slice();return 0===e.length?[]:((0,a.assert)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){let{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:a,hash:i,miner:s,prevRandao:o,nonce:f,number:d,parentHash:l,parentBeaconBlockRoot:u,stateRoot:h,receiptsRoot:p,timestamp:b,transactions:g}=this;return{_type:"Block",baseFeePerGas:c(e),difficulty:c(t),extraData:r,gasLimit:c(n),gasUsed:c(a),blobGasUsed:c(this.blobGasUsed),excessBlobGas:c(this.excessBlobGas),hash:i,miner:s,prevRandao:o,nonce:f,number:d,parentHash:l,timestamp:b,parentBeaconBlockRoot:u,stateRoot:h,receiptsRoot:p,transactions:g}}[Symbol.iterator](){let e=0,t=this.transactions;return{next:()=>enew u(e,t)));let r=s;null!=e.effectiveGasPrice?r=e.effectiveGasPrice:null!=e.gasPrice&&(r=e.gasPrice),(0,a.defineProperties)(this,{provider:t,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,blobGasUsed:e.blobGasUsed,gasPrice:r,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#eB}toJSON(){let{to:e,from:t,contractAddress:r,hash:n,index:a,blockHash:i,blockNumber:s,logsBloom:o,logs:f,status:d,root:l}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:s,contractAddress:r,cumulativeGasUsed:c(this.cumulativeGasUsed),from:t,gasPrice:c(this.gasPrice),blobGasUsed:c(this.blobGasUsed),blobGasPrice:c(this.blobGasPrice),gasUsed:c(this.gasUsed),hash:n,index:a,logs:f,logsBloom:o,root:l,status:d,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(c)return null;let{blockNumber:e,nonce:t}=await (0,a.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t{if(null==e||0!==e.status)return e;(0,a.assert)(!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})},l=await this.provider.getTransactionReceipt(this.hash);if(0===r)return d(l);if(l){if(await l.confirmations()>=r)return d(l)}else if(await f(),0===r)return null;let u=new Promise((e,t)=>{let s=[],o=()=>{s.forEach(e=>e())};if(s.push(()=>{c=!0}),n>0){let e=setTimeout(()=>{o(),t((0,a.makeError)("wait for transaction timeout","TIMEOUT"))},n);s.push(()=>{clearTimeout(e)})}let l=async n=>{if(await n.confirmations()>=r){o();try{e(d(n))}catch(e){t(e)}}};if(s.push(()=>{this.provider.off(this.hash,l)}),this.provider.on(this.hash,l),i>=0){let e=async()=>{try{await f()}catch(e){if((0,a.isError)(e,"TRANSACTION_REPLACED")){o(),t(e);return}}c||this.provider.once("block",e)};s.push(()=>{this.provider.off("block",e)}),this.provider.once("block",e)}});return await u}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,a.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),g(this)}reorderedEvent(e){return(0,a.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,a.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),b(this,e)}replaceableTransaction(e){(0,a.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);let t=new p(this,this.provider);return t.#eP=e,t}}function b(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function g(e){return{orphan:"drop-transaction",tx:e}}},{"../utils/index.js":"aoZEY","../transaction/index.js":"6XiG7","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],g2IRK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EventLog",()=>s),n.export(r,"UndecodedEventLog",()=>o),n.export(r,"ContractTransactionReceipt",()=>c),n.export(r,"ContractTransactionResponse",()=>f),n.export(r,"ContractUnknownEventPayload",()=>d),n.export(r,"ContractEventPayload",()=>l);var a=e("../providers/provider.js"),i=e("../utils/index.js");class s extends a.Log{interface;fragment;args;constructor(e,t,r){super(e,e.provider);let n=t.decodeEventLog(r,e.data,e.topics);(0,i.defineProperties)(this,{args:n,fragment:r,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class o extends a.Log{error;constructor(e,t){super(e,e.provider),(0,i.defineProperties)(this,{error:t})}}class c extends a.TransactionReceipt{#eO;constructor(e,t,r){super(r,t),this.#eO=e}get logs(){return super.logs.map(e=>{let t=e.topics.length?this.#eO.getEvent(e.topics[0]):null;if(t)try{return new s(e,this.#eO,t)}catch(t){return new o(e,t)}return e})}}class f extends a.TransactionResponse{#eO;constructor(e,t,r){super(r,t),this.#eO=e}async wait(e,t){let r=await super.wait(e,t);return null==r?null:new c(this.#eO,this.provider,r)}}class d extends i.EventPayload{log;constructor(e,t,r,n){super(e,t,r),(0,i.defineProperties)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class l extends d{constructor(e,t,r,n,a){super(e,t,r,new s(a,e.interface,n));let o=e.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,i.defineProperties)(this,{args:o,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},{"../providers/provider.js":"4vLmk","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bEFFY:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ContractFactory",()=>c);var a=e("../abi/index.js"),i=e("../address/index.js"),s=e("../utils/index.js"),o=e("./contract.js");class c{interface;bytecode;runner;constructor(e,t,r){let n=(0,a.Interface).from(e);t instanceof Uint8Array||("object"==typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,s.hexlify)((0,s.getBytes)(t)),(0,s.defineProperties)(this,{bytecode:t,interface:n,runner:r||null})}attach(e){return new o.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(...e){let t={},r=this.interface.deploy;if(r.inputs.length+1===e.length&&(t=await (0,o.copyOverrides)(e.pop())),r.inputs.length!==e.length)throw Error("incorrect number of arguments to constructor");let n=await (0,o.resolveArgs)(this.runner,r.inputs,e);return Object.assign({},t,{data:(0,s.concat)([this.bytecode,this.interface.encodeDeploy(n)])})}async deploy(...e){let t=await this.getDeployTransaction(...e);(0,s.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let r=await this.runner.sendTransaction(t),n=(0,i.getCreateAddress)(r);return new o.BaseContract(n,this.interface,this.runner,r)}connect(e){return new c(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,s.assertArgument)(null!=e,"bad compiler output","output",e),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n="";return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}}},{"../abi/index.js":"4ccGG","../address/index.js":"8s6vX","../utils/index.js":"aoZEY","./contract.js":"klKVF","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9o4Hd":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbstractProvider",()=>a.AbstractProvider),n.export(r,"UnmanagedSubscriber",()=>a.UnmanagedSubscriber),n.export(r,"AbstractSigner",()=>i.AbstractSigner),n.export(r,"VoidSigner",()=>i.VoidSigner),n.export(r,"showThrottleMessage",()=>s.showThrottleMessage),n.export(r,"getDefaultProvider",()=>o.getDefaultProvider),n.export(r,"EnsResolver",()=>c.EnsResolver),n.export(r,"MulticoinProviderPlugin",()=>c.MulticoinProviderPlugin),n.export(r,"Network",()=>f.Network),n.export(r,"NonceManager",()=>d.NonceManager),n.export(r,"NetworkPlugin",()=>l.NetworkPlugin),n.export(r,"GasCostPlugin",()=>l.GasCostPlugin),n.export(r,"EnsPlugin",()=>l.EnsPlugin),n.export(r,"FeeDataNetworkPlugin",()=>l.FeeDataNetworkPlugin),n.export(r,"FetchUrlFeeDataNetworkPlugin",()=>l.FetchUrlFeeDataNetworkPlugin),n.export(r,"Block",()=>u.Block),n.export(r,"FeeData",()=>u.FeeData),n.export(r,"Log",()=>u.Log),n.export(r,"TransactionReceipt",()=>u.TransactionReceipt),n.export(r,"TransactionResponse",()=>u.TransactionResponse),n.export(r,"copyRequest",()=>u.copyRequest),n.export(r,"FallbackProvider",()=>h.FallbackProvider),n.export(r,"JsonRpcApiProvider",()=>p.JsonRpcApiProvider),n.export(r,"JsonRpcProvider",()=>p.JsonRpcProvider),n.export(r,"JsonRpcSigner",()=>p.JsonRpcSigner),n.export(r,"BrowserProvider",()=>b.BrowserProvider),n.export(r,"AlchemyProvider",()=>g.AlchemyProvider),n.export(r,"AnkrProvider",()=>m.AnkrProvider),n.export(r,"CloudflareProvider",()=>y.CloudflareProvider),n.export(r,"ChainstackProvider",()=>v.ChainstackProvider),n.export(r,"EtherscanProvider",()=>w.EtherscanProvider),n.export(r,"EtherscanPlugin",()=>w.EtherscanPlugin),n.export(r,"InfuraProvider",()=>x.InfuraProvider),n.export(r,"InfuraWebSocketProvider",()=>x.InfuraWebSocketProvider),n.export(r,"PocketProvider",()=>E.PocketProvider),n.export(r,"QuickNodeProvider",()=>A.QuickNodeProvider),n.export(r,"SocketProvider",()=>T.SocketProvider),n.export(r,"WebSocketProvider",()=>I.WebSocketProvider),n.export(r,"SocketSubscriber",()=>T.SocketSubscriber),n.export(r,"SocketBlockSubscriber",()=>T.SocketBlockSubscriber),n.export(r,"SocketPendingSubscriber",()=>T.SocketPendingSubscriber),n.export(r,"SocketEventSubscriber",()=>T.SocketEventSubscriber),n.export(r,"IpcSocketProvider",()=>_.IpcSocketProvider);var a=e("./abstract-provider.js"),i=e("./abstract-signer.js"),s=e("./community.js"),o=e("./default-provider.js"),c=e("./ens-resolver.js"),f=e("./network.js"),d=e("./signer-noncemanager.js"),l=e("./plugins-network.js"),u=e("./provider.js"),h=e("./provider-fallback.js"),p=e("./provider-jsonrpc.js"),b=e("./provider-browser.js"),g=e("./provider-alchemy.js"),m=e("./provider-ankr.js"),y=e("./provider-cloudflare.js"),v=e("./provider-chainstack.js"),w=e("./provider-etherscan.js"),x=e("./provider-infura.js"),E=e("./provider-pocket.js"),A=e("./provider-quicknode.js"),_=e("./provider-ipcsocket.js"),T=e("./provider-socket.js"),I=e("./provider-websocket.js")},{"./abstract-provider.js":!1,"./abstract-signer.js":!1,"./community.js":!1,"./default-provider.js":!1,"./ens-resolver.js":!1,"./network.js":!1,"./signer-noncemanager.js":!1,"./plugins-network.js":!1,"./provider.js":!1,"./provider-fallback.js":!1,"./provider-jsonrpc.js":"bxwMu","./provider-browser.js":"IJDGj","./provider-alchemy.js":!1,"./provider-ankr.js":!1,"./provider-cloudflare.js":!1,"./provider-chainstack.js":!1,"./provider-etherscan.js":!1,"./provider-infura.js":!1,"./provider-pocket.js":!1,"./provider-quicknode.js":!1,"./provider-ipcsocket.js":!1,"./provider-socket.js":!1,"./provider-websocket.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lcPZn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"UnmanagedSubscriber",()=>y),n.export(r,"AbstractProvider",()=>A);var a=e("../address/index.js"),i=e("../constants/index.js"),s=e("../contract/index.js"),o=e("../hash/index.js"),c=e("../transaction/index.js"),f=e("../utils/index.js"),d=e("./ens-resolver.js"),l=e("./format.js"),u=e("./network.js"),h=e("./provider.js"),p=e("./subscriber-polling.js");let b=BigInt(2);function g(e){return e&&"function"==typeof e.then}function m(e,t){return e+":"+JSON.stringify(t,(e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){let e=Object.keys(t);return e.sort(),e.reduce((e,r)=>(e[r]=t[r],e),{})}return t})}class y{name;constructor(e){(0,f.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function v(e){return(e=Array.from(new Set(e).values())).sort(),e}async function w(e,t){if(null==e)throw Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,f.isHexString)(e,32)){let t=e.toLowerCase();return{type:"transaction",tag:m("tx",{hash:t}),hash:t}}if(e.orphan){let t=e;return{type:"orphan",tag:m("orphan",t),filter:JSON.parse(JSON.stringify(t))}}if(e.address||e.topics){let r=e,n={topics:(r.topics||[]).map(e=>null==e?null:Array.isArray(e)?v(e.map(e=>e.toLowerCase())):e.toLowerCase())};if(r.address){let e=[],i=[],s=r=>{(0,f.isHexString)(r)?e.push(r):i.push((async()=>{e.push(await (0,a.resolveAddress)(r,t))})())};Array.isArray(r.address)?r.address.forEach(s):s(r.address),i.length&&await Promise.all(i),n.address=v(e.map(e=>e.toLowerCase()))}return{filter:n,tag:m("event",n),type:"event"}}(0,f.assertArgument)(!1,"unknown ProviderEvent","event",e)}function x(){return new Date().getTime()}let E={cacheTimeout:250,pollingInterval:4e3};class A{#ej;#eN;#eU;#eL;#eD;#eF;#eH;#eV;#eq;#ez;#eG;#ee;constructor(e,t){if(this.#ee=Object.assign({},E,t||{}),"any"===e)this.#eF=!0,this.#eD=null;else if(e){let t=(0,u.Network).from(e);this.#eF=!1,this.#eD=Promise.resolve(t),setTimeout(()=>{this.emit("network",t,null)},0)}else this.#eF=!1,this.#eD=null;this.#eV=-1,this.#eH=new Map,this.#ej=new Map,this.#eN=new Map,this.#eU=null,this.#eL=!1,this.#eq=1,this.#ez=new Map,this.#eG=!1}get pollingInterval(){return this.#ee.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#eN.values())}attachPlugin(e){if(this.#eN.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eN.set(e.name,e.connect(this)),this}getPlugin(e){return this.#eN.get(e)||null}get disableCcipRead(){return this.#eG}set disableCcipRead(e){this.#eG=!!e}async #eK(e){let t=this.#ee.cacheTimeout;if(t<0)return await this._perform(e);let r=m(e.method,e),n=this.#eH.get(r);return n||(n=this._perform(e),this.#eH.set(r,n),setTimeout(()=>{this.#eH.get(r)===n&&this.#eH.delete(r)},t)),await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;let n=e.to.toLowerCase(),a=t.toLowerCase(),i=[];for(let t=0;t=500,`response not found during CCIP fetch: ${l}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:o,errorMessage:l}}),i.push(l)}(0,f.assert)(!1,`error encountered during CCIP fetch: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:i}})}_wrapBlock(e,t){return new h.Block((0,l.formatBlock)(e),this)}_wrapLog(e,t){return new h.Log((0,l.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new h.TransactionReceipt((0,l.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new h.TransactionResponse((0,l.formatTransactionResponse)(e),this)}_detectNetwork(){(0,f.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,f.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){let e=(0,f.getNumber)(await this.#eK({method:"getBlockNumber"}),"%response");return this.#eV>=0&&(this.#eV=e),e}_getAddress(e){return(0,a.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,f.isHexString)(e)?(0,f.isHexString)(e,32)?e:(0,f.toQuantity)(e):("bigint"==typeof e&&(e=(0,f.getNumber)(e,"blockTag")),"number"==typeof e)?e>=0?(0,f.toQuantity)(e):this.#eV>=0?(0,f.toQuantity)(this.#eV+e):this.getBlockNumber().then(t=>(0,f.toQuantity)(t+e)):void(0,f.assertArgument)(!1,"invalid blockTag","blockTag",e)}_getFilter(e){let t,r;let n=(e.topics||[]).map(e=>null==e?null:Array.isArray(e)?v(e.map(e=>e.toLowerCase())):e.toLowerCase()),a="blockHash"in e?e.blockHash:void 0,i=(e,t,r)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(a&&(null!=t||null!=r))throw Error("invalid filter");let s={};return i&&(s.address=i),n.length&&(s.topics=n),t&&(s.fromBlock=t),r&&(s.toBlock=r),a&&(s.blockHash=a),s},s=[];if(e.address){if(Array.isArray(e.address))for(let t of e.address)s.push(this._getAddress(t));else s.push(this._getAddress(e.address))}return"fromBlock"in e&&(t=this._getBlockTag(e.fromBlock)),("toBlock"in e&&(r=this._getBlockTag(e.toBlock)),s.filter(e=>"string"!=typeof e).length||null!=t&&"string"!=typeof t||null!=r&&"string"!=typeof r)?Promise.all([Promise.all(s),t,r]).then(e=>i(e[0],e[1],e[2])):i(s,t,r)}_getTransactionRequest(e){let t=(0,h.copyRequest)(e),r=[];if(["to","from"].forEach(e=>{if(null==t[e])return;let n=(0,a.resolveAddress)(t[e],this);g(n)?r.push(async function(){t[e]=await n}()):t[e]=n}),null!=t.blockTag){let e=this._getBlockTag(t.blockTag);g(e)?r.push(async function(){t.blockTag=await e}()):t.blockTag=e}return r.length?async function(){return await Promise.all(r),t}():t}async getNetwork(){if(null==this.#eD){let e=(async()=>{try{let e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#eD===e&&(this.#eD=null),t}})();return this.#eD=e,(await e).clone()}let e=this.#eD,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#eF?(this.emit("network",r,t),this.#eD===e&&(this.#eD=Promise.resolve(r))):(0,f.assert)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){let e=await this.getNetwork(),t=async()=>{let{_block:t,gasPrice:r,priorityFee:n}=await (0,f.resolveProperties)({_block:this.#eW("latest",!1),gasPrice:(async()=>{try{let e=await this.#eK({method:"getGasPrice"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{let e=await this.#eK({method:"getPriorityFee"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})()}),a=null,i=null,s=this._wrapBlock(t,e);return s&&s.baseFeePerGas&&(i=null!=n?n:BigInt("1000000000"),a=s.baseFeePerGas*b+i),new h.FeeData(r,a,i)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){let e=new f.FetchRequest(r.url),n=await r.processFunc(t,this,e);return new h.FeeData(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return g(t)&&(t=await t),(0,f.getBigInt)(await this.#eK({method:"estimateGas",transaction:t}),"%response")}async #e$(e,t,r){(0,f.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});let n=(0,h.copyRequest)(e);try{return(0,f.hexlify)(await this._perform({method:"call",transaction:n,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,f.isCallException)(e)&&e.data&&r>=0&&"latest"===t&&null!=n.to&&"0x556f1830"===(0,f.dataSlice)(e.data,0,4)){let i;let s=e.data,o=await (0,a.resolveAddress)(n.to,this);try{i=function(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,f.assert)((0,f.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=(0,f.dataSlice)(e,0,32);(0,f.assert)((0,f.dataSlice)(r,0,12)===(0,f.dataSlice)(S,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,f.dataSlice)(r,12);try{let r=[],n=(0,f.getNumber)((0,f.dataSlice)(e,32,64)),a=(0,f.getNumber)((0,f.dataSlice)(e,n,n+32)),i=(0,f.dataSlice)(e,n+32);for(let e=0;et[e]),t}((0,f.dataSlice)(e.data,4))}catch(e){(0,f.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:n,info:{data:s}})}(0,f.assert)(i.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:s,reason:"OffchainLookup",transaction:n,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});let c=await this.ccipReadFetch(n,i.calldata,i.urls);(0,f.assert)(null!=c,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:n,info:{data:e.data,errorArgs:i.errorArgs}});let d={to:o,data:(0,f.concat)([i.selector,function(e){let t=[],r=0;for(let n=0;nthis._wrapLog(e,r))}_getProvider(e){(0,f.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await (0,d.EnsResolver).fromName(this,e)}async getAvatar(e){let t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){let t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,a.getAddress)(e);let t=(0,o.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{let r=await (0,d.EnsResolver).getEnsAddress(this),n=new s.Contract(r,["function resolver(bytes32) view returns (address)"],this),a=await n.resolver(t);if(null==a||a===i.ZeroAddress)return null;let o=new s.Contract(a,["function name(bytes32) view returns (string)"],this),c=await o.name(t);if(await this.resolveName(c)!==e)return null;return c}catch(e){if((0,f.isError)(e,"BAD_DATA")&&"0x"===e.value||(0,f.isError)(e,"CALL_EXCEPTION"))return null;throw e}return null}async waitForTransaction(e,t,r){let n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise(async(t,a)=>{let i=null,s=async r=>{try{let a=await this.getTransactionReceipt(e);if(null!=a&&r-a.blockNumber+1>=n){t(a),i&&(clearTimeout(i),i=null);return}}catch(e){console.log("EEE",e)}this.once("block",s)};null!=r&&(i=setTimeout(()=>{null!=i&&(i=null,this.off("block",s),a((0,f.makeError)("timeout","TIMEOUT",{reason:"timeout"})))},r)),s(await this.getBlockNumber())})}async waitForBlock(e){(0,f.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){let t=this.#ez.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#ez.delete(e))}_setTimeout(e,t){null==t&&(t=0);let r=this.#eq++,n=()=>{this.#ez.delete(r),e()};if(this.paused)this.#ez.set(r,{timer:null,func:n,time:t});else{let e=setTimeout(n,t);this.#ez.set(r,{timer:e,func:n,time:x()})}return r}_forEachSubscriber(e){for(let t of this.#ej.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new y(e.type);case"block":{let e=new p.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,e.type);case"event":return new p.PollingEventSubscriber(this,e.filter);case"transaction":return new p.PollingTransactionSubscriber(this,e.hash);case"orphan":return new p.PollingOrphanSubscriber(this,e.filter)}throw Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(let r of this.#ej.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#eU&&t.pause(this.#eU);break}}async #eZ(e,t){let r=await w(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await w({orphan:"drop-log",log:t[0]},this)),this.#ej.get(r.tag)||null}async #eX(e){let t=await w(e,this),r=t.tag,n=this.#ej.get(r);return!n&&(n={subscriber:this._getSubscriber(t),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#ej.set(r,n)),n}async on(e,t){let r=await this.#eX(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eU&&r.subscriber.pause(this.#eU)),this}async once(e,t){let r=await this.#eX(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eU&&r.subscriber.pause(this.#eU)),this}async emit(e,...t){let r=await this.#eZ(e,t);if(!r||0===r.listeners.length)return!1;let n=r.listeners.length;return r.listeners=r.listeners.filter(({listener:r,once:n})=>{let a=new f.EventPayload(this,n?null:r,e);try{r.call(this,...t,a)}catch(e){}return!n}),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#ej.delete(r.tag)),n>0}async listenerCount(e){if(e){let t=await this.#eZ(e);return t?t.listeners.length:0}let t=0;for(let{listeners:e}of this.#ej.values())t+=e.length;return t}async listeners(e){if(e){let t=await this.#eZ(e);return t?t.listeners.map(({listener:e})=>e):[]}let t=[];for(let{listeners:e}of this.#ej.values())t=t.concat(e.map(({listener:e})=>e));return t}async off(e,t){let r=await this.#eZ(e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return t&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#ej.delete(r.tag)),this}async removeAllListeners(e){if(e){let{tag:t,started:r,subscriber:n}=await this.#eX(e);r&&n.stop(),this.#ej.delete(t)}else for(let[e,{started:t,subscriber:r}]of this.#ej)t&&r.stop(),this.#ej.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#eL}destroy(){for(let e of(this.removeAllListeners(),this.#ez.keys()))this._clearTimeout(e);this.#eL=!0}get paused(){return null!=this.#eU}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#eV=-1,null!=this.#eU){if(!!e==this.#eU)return;(0,f.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}for(let t of(this._forEachSubscriber(t=>t.pause(e)),this.#eU=!!e,this.#ez.values()))t.timer&&clearTimeout(t.timer),t.time=x()-t.time}resume(){if(null!=this.#eU)for(let e of(this._forEachSubscriber(e=>e.resume()),this.#eU=null,this.#ez.values())){let t=e.time;t<0&&(t=0),e.time=x(),setTimeout(e.func,t)}}}function _(e,t){if("0x"===e)return null;try{let r=(0,f.getNumber)((0,f.dataSlice)(e,t,t+32)),n=(0,f.getNumber)((0,f.dataSlice)(e,r,r+32));return(0,f.dataSlice)(e,r+32,r+32+n)}catch(e){}return null}function T(e){let t=(0,f.toBeArray)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}let I=new Uint8Array([]),S="0x0000000000000000000000000000000000000000000000000000000000000000"},{"../address/index.js":"8s6vX","../constants/index.js":"2Shkc","../contract/index.js":"h4Dfe","../hash/index.js":"1Ty7P","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./ens-resolver.js":"8aVO7","./format.js":"gkaWh","./network.js":"eVSPi","./provider.js":"4vLmk","./subscriber-polling.js":"8vA68","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8aVO7":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MulticoinProviderPlugin",()=>d),n.export(r,"BasicMulticoinProviderPlugin",()=>l),n.export(r,"EnsResolver",()=>p);var a=e("../address/index.js"),i=e("../constants/index.js"),s=e("../contract/index.js"),o=e("../hash/index.js"),c=e("../utils/index.js");function f(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,c.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class d{name;constructor(e){(0,c.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw Error("unsupported coin")}async decodeAddress(e,t){throw Error("unsupported coin")}}class l extends d{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}}let u=RegExp("^(ipfs)://(.*)$","i"),h=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),u,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class p{provider;address;name;#eY;#e0;constructor(e,t,r){(0,c.defineProperties)(this,{provider:e,address:t,name:r}),this.#eY=null,this.#e0=new s.Contract(t,["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 null==this.#eY&&(this.#eY=(async()=>{try{return await this.#e0.supportsInterface("0x9061b923")}catch(e){if((0,c.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#eY=null,e}})()),await this.#eY}async #e1(e,t){t=(t||[]).slice();let r=this.#e0.interface;t.unshift((0,o.namehash)(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(e),(0,c.assert)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,o.dnsEncode)(this.name,255),r.encodeFunctionData(n,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{let a=await this.#e0[e](...t);if(n)return r.decodeFunctionResult(n,a)[0];return a}catch(e){if(!(0,c.isError)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{let e=await this.#e1("addr(bytes32)");if(null==e||e===i.ZeroAddress)return null;return e}catch(e){if((0,c.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<0x80000000){let t=e+0x80000000,r=await this.#e1("addr(bytes32,uint)",[t]);if((0,c.isHexString)(r,20))return(0,a.getAddress)(r)}let t=null;for(let r of this.provider.plugins)if(r instanceof d&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;let r=await this.#e1("addr(bytes32,uint)",[e]);if(null==r||"0x"===r)return null;let n=await t.decodeAddress(e,r);if(null!=n)return n;(0,c.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){let t=await this.#e1("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){let e=await this.#e1("contenthash(bytes32)");if(null==e||"0x"===e)return null;let t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e="e3010170"===t[1]?"ipfs":"ipns",r=parseInt(t[4],16);if(t[5].length===2*r)return`${e}://${(0,c.encodeBase58)("0x"+t[2])}`}let r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,c.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let e=[{type:"name",value:this.name}];try{let t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let r=0;rf),n.export(r,"arrayOf",()=>d),n.export(r,"object",()=>l),n.export(r,"formatBoolean",()=>u),n.export(r,"formatData",()=>h),n.export(r,"formatHash",()=>p),n.export(r,"formatUint256",()=>b),n.export(r,"formatLog",()=>m),n.export(r,"formatBlock",()=>v),n.export(r,"formatReceiptLog",()=>x),n.export(r,"formatTransactionReceipt",()=>A),n.export(r,"formatTransactionResponse",()=>_);var a=e("../address/index.js"),i=e("../crypto/index.js"),s=e("../transaction/index.js"),o=e("../utils/index.js");let c=BigInt(0);function f(e,t){return function(r){return null==r?t:e(r)}}function d(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw Error("not an array");return r.map(t=>e(t))}}function l(e,t){return r=>{let n={};for(let a in e){let i=a;if(t&&a in t&&!(i in r)){for(let e of t[a])if(e in r){i=e;break}}try{let t=e[a](r[i]);void 0!==t&&(n[a]=t)}catch(t){let e=t instanceof Error?t.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${a} (${e})`,"BAD_DATA",{value:r})}}return n}}function u(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function h(e){return(0,o.assertArgument)((0,o.isHexString)(e,!0),"invalid data","value",e),e}function p(e){return(0,o.assertArgument)((0,o.isHexString)(e,32),"invalid hash","value",e),e}function b(e){if(!(0,o.isHexString)(e))throw Error("invalid uint256");return(0,o.zeroPadValue)(e,32)}let g=l({address:a.getAddress,blockHash:p,blockNumber:o.getNumber,data:h,index:o.getNumber,removed:f(u,!1),topics:d(p),transactionHash:p,transactionIndex:o.getNumber},{index:["logIndex"]});function m(e){return g(e)}let y=l({hash:f(p),parentHash:p,parentBeaconBlockRoot:f(p,null),number:o.getNumber,timestamp:o.getNumber,nonce:f(h),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:f(p,null),receiptsRoot:f(p,null),blobGasUsed:f(o.getBigInt,null),excessBlobGas:f(o.getBigInt,null),miner:f(a.getAddress),prevRandao:f(p,null),extraData:h,baseFeePerGas:f(o.getBigInt)},{prevRandao:["mixHash"]});function v(e){let t=y(e);return t.transactions=e.transactions.map(e=>"string"==typeof e?e:_(e)),t}let w=l({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:p,address:a.getAddress,topics:d(p),data:h,index:o.getNumber,blockHash:p},{index:["logIndex"]});function x(e){return w(e)}let E=l({to:f(a.getAddress,null),from:f(a.getAddress,null),contractAddress:f(a.getAddress,null),index:o.getNumber,root:f(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:f(o.getBigInt,null),logsBloom:f(h),blockHash:p,hash:p,logs:d(x),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:f(o.getBigInt),blobGasPrice:f(o.getBigInt,null),status:f(o.getNumber),type:f(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function A(e){return E(e)}function _(e){e.to&&(0,o.getBigInt)(e.to)===c&&(e.to="0x0000000000000000000000000000000000000000");let t=l({hash:p,index:f(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:f(s.accessListify,null),blobVersionedHashes:f(d(p,!0),null),blockHash:f(p,null),blockNumber:f(o.getNumber,null),transactionIndex:f(o.getNumber,null),from:a.getAddress,gasPrice:f(o.getBigInt),maxPriorityFeePerGas:f(o.getBigInt),maxFeePerGas:f(o.getBigInt),maxFeePerBlobGas:f(o.getBigInt,null),gasLimit:o.getBigInt,to:f(a.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:h,creates:f(a.getAddress,null),chainId:f(o.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,a.getCreateAddress)(t)),(1===e.type||2===e.type)&&null==e.accessList&&(t.accessList=[]),e.signature?t.signature=(0,i.Signature).from(e.signature):t.signature=(0,i.Signature).from(e),null==t.chainId){let e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,o.getBigInt)(t.blockHash)===c&&(t.blockHash=null),t}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],eVSPi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Network",()=>c);var a=e("../transaction/index.js"),i=e("../utils/index.js"),s=e("./plugins-network.js");let o=new Map;class c{#e2;#eu;#eN;constructor(e,t){this.#e2=e,this.#eu=(0,i.getBigInt)(t),this.#eN=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#e2}set name(e){this.#e2=e}get chainId(){return this.#eu}set chainId(e){this.#eu=(0,i.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,i.getBigInt)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,i.getBigInt)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,i.getBigInt)(e.chainId)}catch(e){}return!1}if(null!=e.name)return this.name===e.name}return!1}get plugins(){return Array.from(this.#eN.values())}attachPlugin(e){if(this.#eN.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eN.set(e.name,e.clone()),this}getPlugin(e){return this.#eN.get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){let e=new c(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){let t=this.getPlugin("org.ethers.plugins.network.GasCost")||new s.GasCostPlugin,r=t.txBase;if(null==e.to&&(r+=t.txCreate),e.data)for(let n=2;n{n.attachPlugin(e)}),n};c.register(e,n),c.register(t,n),r.altNames&&r.altNames.forEach(e=>{c.register(e,n)})}}(),null==e)return c.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){let t=o.get(e);if(t)return t();if("bigint"==typeof e)return new c("unknown",e);(0,i.assertArgument)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,i.assertArgument)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);let t=new c(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new s.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,i.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));let r=o.get(e);r&&(0,i.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),o.set(e,t)}}function f(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw Error(`invalid gwei value: ${e}`);let n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw Error(`invalid gwei value: ${e}`);for(;n[1].length9){let e=BigInt(n[1].substring(0,9));!n[1].substring(9).match(/^0+$/)&&e++,n[1]=e.toString()}return BigInt(n[0]+n[1])}function d(e){return new s.FetchUrlFeeDataNetworkPlugin(e,async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{let[t,a]=await Promise.all([r.send(),e()]),i=(n=t).bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:f(i.maxFee,9),maxPriorityFeePerGas:f(i.maxPriorityFee,9)}}catch(e){(0,i.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:e})}})}let l=!1},{"../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./plugins-network.js":"2vM8e","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2vM8e":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NetworkPlugin",()=>s),n.export(r,"GasCostPlugin",()=>o),n.export(r,"EnsPlugin",()=>c),n.export(r,"FeeDataNetworkPlugin",()=>f),n.export(r,"FetchUrlFeeDataNetworkPlugin",()=>d);var a=e("../utils/properties.js"),i=e("../utils/index.js");class s{name;constructor(e){(0,a.defineProperties)(this,{name:e})}clone(){return new s(this.name)}}class o extends s{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);let r={effectiveBlock:e};function n(e,n){let a=(t||{})[e];null==a&&(a=n),(0,i.assertArgument)("number"==typeof a,`invalud value for ${e}`,"costs",t),r[e]=a}n("txBase",21e3),n("txCreate",32e3),n("txDataZero",4),n("txDataNonzero",16),n("txAccessListStorageKey",1900),n("txAccessListAddress",2400),(0,a.defineProperties)(this,r)}clone(){return new o(this.effectiveBlock,this)}}class c extends s{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,a.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new c(this.address,this.targetNetwork)}}class f extends s{#e5;get feeDataFunc(){return this.#e5}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#e5=e}async getFeeData(e){return await this.#e5(e)}clone(){return new f(this.#e5)}}class d extends s{#I;#e8;get url(){return this.#I}get processFunc(){return this.#e8}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#I=e,this.#e8=t}clone(){return this}}},{"../utils/properties.js":"391vO","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8vA68":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getPollingSubscriber",()=>s),n.export(r,"PollingBlockSubscriber",()=>o),n.export(r,"OnBlockSubscriber",()=>c),n.export(r,"PollingBlockTagSubscriber",()=>f),n.export(r,"PollingOrphanSubscriber",()=>d),n.export(r,"PollingTransactionSubscriber",()=>l),n.export(r,"PollingEventSubscriber",()=>u);var a=e("../utils/index.js");function i(e){return JSON.parse(JSON.stringify(e))}function s(e,t){return"block"===t?new o(e):(0,a.isHexString)(t,32)?new l(e,t):void(0,a.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})}class o{#e3;#e4;#e9;#e7;constructor(e){this.#e3=e,this.#e4=null,this.#e9=4e3,this.#e7=-2}get pollingInterval(){return this.#e9}set pollingInterval(e){this.#e9=e}async #te(){try{let e=await this.#e3.getBlockNumber();if(-2===this.#e7){this.#e7=e;return}if(e!==this.#e7){for(let t=this.#e7+1;t<=e;t++){if(null==this.#e4)return;await this.#e3.emit("block",t)}this.#e7=e}}catch(e){}null!=this.#e4&&(this.#e4=this.#e3._setTimeout(this.#te.bind(this),this.#e9))}start(){this.#e4||(this.#e4=this.#e3._setTimeout(this.#te.bind(this),this.#e9),this.#te())}stop(){this.#e4&&(this.#e3._clearTimeout(this.#e4),this.#e4=null)}pause(e){this.stop(),e&&(this.#e7=-2)}resume(){this.start()}}class c{#e3;#te;#tt;constructor(e){this.#e3=e,this.#tt=!1,this.#te=e=>{this._poll(e,this.#e3)}}async _poll(e,t){throw Error("sub-classes must override this")}start(){this.#tt||(this.#tt=!0,this.#te(-2),this.#e3.on("block",this.#te))}stop(){this.#tt&&(this.#tt=!1,this.#e3.off("block",this.#te))}pause(e){this.stop()}resume(){this.start()}}class f extends c{#tr;#tn;constructor(e,t){super(e),this.#tr=t,this.#tn=-2}pause(e){e&&(this.#tn=-2),super.pause(e)}async _poll(e,t){let r=await t.getBlock(this.#tr);null!=r&&(-2===this.#tn?this.#tn=r.number:r.number>this.#tn&&(t.emit(this.#tr,r.number),this.#tn=r.number))}}class d extends c{#eR;constructor(e,t){super(e),this.#eR=i(t)}async _poll(e,t){throw Error("@TODO")}}class l extends c{#ta;constructor(e,t){super(e),this.#ta=t}async _poll(e,t){let r=await t.getTransactionReceipt(this.#ta);r&&t.emit(this.#ta,r)}}class u{#e3;#eR;#e4;#tt;#e7;constructor(e,t){this.#e3=e,this.#eR=i(t),this.#e4=this.#te.bind(this),this.#tt=!1,this.#e7=-2}async #te(e){if(-2===this.#e7)return;let t=i(this.#eR);t.fromBlock=this.#e7+1,t.toBlock=e;let r=await this.#e3.getLogs(t);if(0===r.length){this.#e7{this.#e7=e}),this.#e3.on("block",this.#e4))}stop(){this.#tt&&(this.#tt=!1,this.#e3.off("block",this.#e4))}pause(e){this.stop(),e&&(this.#e7=-2)}resume(){this.start()}}},{"../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],cDdLu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbstractSigner",()=>d),n.export(r,"VoidSigner",()=>l);var a=e("../address/index.js"),i=e("../transaction/index.js"),s=e("../utils/index.js"),o=e("./provider.js");function c(e,t){if(e.provider)return e.provider;(0,s.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function f(e,t){let r=(0,o.copyRequest)(t);if(null!=r.to&&(r.to=(0,a.resolveAddress)(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),(0,a.resolveAddress)(t,e)]).then(([e,t])=>((0,s.assertArgument)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await (0,s.resolveProperties)(r)}class d{provider;constructor(e){(0,s.defineProperties)(this,{provider:e||null})}async getNonce(e){return c(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await f(this,e)}async populateTransaction(e){let t=c(this,"populateTransaction"),r=await f(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let n=await this.provider.getNetwork();if(null!=r.chainId){let t=(0,s.getBigInt)(r.chainId);(0,s.assertArgument)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;let a=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||a)?(0,s.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e):(0===r.type||1===r.type)&&a&&(0,s.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();(0,s.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?((0,s.assert)(!a,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):(0,s.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"})}else(2===r.type||3===r.type)&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await (0,s.resolveProperties)(r)}async estimateGas(e){return c(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return c(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=c(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=c(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let n=(0,i.Transaction).from(r);return await t.broadcastTransaction(await this.signTransaction(n))}}class l extends d{address;constructor(e,t){super(t),(0,s.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new l(this.address,e)}#ti(e,t){(0,s.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#ti("transactions","signTransaction")}async signMessage(e){this.#ti("messages","signMessage")}async signTypedData(e,t,r){this.#ti("typed-data","signTypedData")}}},{"../address/index.js":"8s6vX","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./provider.js":"4vLmk","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bxwMu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"JsonRpcSigner",()=>v),n.export(r,"JsonRpcApiProvider",()=>w),n.export(r,"JsonRpcApiPollingProvider",()=>x),n.export(r,"JsonRpcProvider",()=>E);var a=e("../abi/index.js"),i=e("../address/index.js"),s=e("../hash/index.js"),o=e("../transaction/index.js"),c=e("../utils/index.js"),f=e("./abstract-provider.js"),d=e("./abstract-signer.js"),l=e("./network.js"),u=e("./subscriber-filterid.js"),h=e("./subscriber-polling.js");let p="bigint,boolean,function,number,string,symbol".split(/,/g);function b(e){if(null==e||p.indexOf(typeof e)>=0||"function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(b);if("object"==typeof e)return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw Error(`should not happen: ${e} (${typeof e})`)}function g(e){return e?e.toLowerCase():e}function m(e){return e&&"number"==typeof e.pollingInterval}let y={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1048576,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends d.AbstractSigner{address;constructor(e,t){super(e),t=(0,i.getAddress)(t),(0,c.defineProperties)(this,{address:t})}connect(e){(0,c.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){let t=b(e),r=[];if(t.from){let n=t.from;r.push((async()=>{let r=await (0,i.resolveAddress)(n,this.provider);(0,c.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r})())}else t.from=this.address;if(null==t.gasLimit&&r.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){let e=t.to;r.push((async()=>{t.to=await (0,i.resolveAddress)(e,this.provider)})())}r.length&&await Promise.all(r);let n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){let t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise((e,n)=>{let a=[1e3,100],i=0,s=async()=>{try{let n=await this.provider.getTransaction(r);if(null!=n){e(n.replaceableTransaction(t));return}}catch(e){if((0,c.isError)(e,"CANCELLED")||(0,c.isError)(e,"BAD_DATA")||(0,c.isError)(e,"NETWORK_ERROR")||(0,c.isError)(e,"UNSUPPORTED_OPERATION")){null==e.info&&(e.info={}),e.info.sendTransactionHash=r,n(e);return}if((0,c.isError)(e,"INVALID_ARGUMENT")&&(i++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,i>10)){n(e);return}this.provider.emit("error",(0,c.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout(()=>{s()},a.pop()||4e3)};s()})}async signTransaction(e){let t=b(e);if(t.from){let r=await (0,i.resolveAddress)(t.from,this.provider);(0,c.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r}else t.from=this.address;let r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){let t="string"==typeof e?(0,c.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,c.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,r){let n=b(r),a=await (0,s.TypedDataEncoder).resolveNames(e,t,n,async e=>{let t=await (0,i.resolveAddress)(e);return(0,c.assertArgument)(null!=t,"TypedData does not support null address","value",e),t});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify((0,s.TypedDataEncoder).getPayload(a.domain,t,a.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){let t="string"==typeof e?(0,c.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,c.hexlify)(t)])}}class w extends f.AbstractProvider{#ee;#ts;#to;#tc;#tf;#td;#tl;#tu(){if(this.#tc)return;let e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#tc=setTimeout(()=>{this.#tc=null;let e=this.#to;for(this.#to=[];e.length;){let t=[e.shift()];for(;e.length&&t.length!==this.#ee.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map(e=>e.payload)).length>this.#ee.batchMaxSize){e.unshift(t.pop());break}(async()=>{let e=1===t.length?t[0].payload:t.map(e=>e.payload);this.emit("debug",{action:"sendRpcPayload",payload:e});try{let r=await this._send(e);for(let{resolve:e,reject:n,payload:a}of(this.emit("debug",{action:"receiveRpcResult",result:r}),t)){if(this.destroyed){n((0,c.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:a.method}));continue}let t=r.filter(e=>e.id===a.id)[0];if(null==t){let e=(0,c.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:a}});this.emit("error",e),n(e);continue}if("error"in t){n(this.getRpcError(a,t));continue}e(t.result)}}catch(e){for(let{reject:r}of(this.emit("debug",{action:"receiveRpcError",error:e}),t))r(e)}})()}},e)}constructor(e,t){super(e,t),this.#ts=1,this.#ee=Object.assign({},y,t||{}),this.#to=[],this.#tc=null,this.#td=null,this.#tl=null;{let e=null,t=new Promise(t=>{e=t});this.#tf={promise:t,resolve:e}}let r=this._getOption("staticNetwork");"boolean"==typeof r?((0,c.assertArgument)(!r||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),r&&null!=e&&(this.#td=(0,l.Network).from(e))):r&&((0,c.assertArgument)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#td=r)}_getOption(e){return this.#ee[e]}get _network(){return(0,c.assert)(this.#td,"network is not available yet","NETWORK_ERROR"),this.#td}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,c.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}let t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){let e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#td)return this.#td}return this.#tl||(this.ready?this.#tl=(async()=>{try{let e=(0,l.Network).from((0,c.getBigInt)(await this.send("eth_chainId",[])));return this.#tl=null,e}catch(e){throw this.#tl=null,e}})():this.#tl=(async()=>{let e;let t={id:this.#ts++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#tl=null}catch(e){throw this.#tl=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return(0,l.Network).from((0,c.getBigInt)(e.result));throw this.getRpcError(t,e)})()),await this.#tl}_start(){null!=this.#tf&&null!=this.#tf.resolve&&(this.#tf.resolve(),this.#tf=null,(async()=>{for(;null==this.#td&&!this.destroyed;)try{this.#td=await this._detectNetwork()}catch(e){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",(0,c.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await new Promise(e=>{setTimeout(e,1e3)})}this.#tu()})())}async _waitUntilReady(){if(null!=this.#tf)return await this.#tf.promise}_getSubscriber(e){return"pending"===e.type?new u.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new h.PollingEventSubscriber(this,e.filter):new u.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new f.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#tf}getRpcTransaction(e){let t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(null==e[r])return;let n=r;"gasLimit"===r&&(n="gas"),t[n]=(0,c.toQuantity)((0,c.getBigInt)(e[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{null!=e[r]&&(t[r]=(0,c.hexlify)(e[r]))}),e.accessList&&(t.accessList=(0,o.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map(e=>e.toLowerCase())),t}getRpcRequest(e){switch(e.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:[g(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(g):e.filter.address=g(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){let{method:r}=e,{error:n}=t;if("eth_estimateGas"===r&&n.message){let t=n.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,c.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:n}})}if("eth_call"===r||"eth_estimateGas"===r){let t=function e(t){if(null==t)return null;if("string"==typeof t.message&&t.message.match(/revert/i)&&(0,c.isHexString)(t.data))return{message:t.message,data:t.data};if("object"==typeof t){for(let r in t){let n=e(t[r]);if(n)return n}return null}if("string"==typeof t)try{return e(JSON.parse(t))}catch(e){}return null}(n),i=(0,a.AbiCoder).getBuiltinCallException("eth_call"===r?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:n,payload:e},i}let i=JSON.stringify(function(e){let t=[];return!function e(t,r){if(null!=t){if("string"==typeof t.message&&r.push(t.message),"object"==typeof t)for(let n in t)e(t[n],r);if("string"==typeof t)try{return e(JSON.parse(t),r)}catch(e){}}}(e,t),t}(n));if("string"==typeof n.message&&n.message.match(/user denied|ethers-user-denied/i))return(0,c.makeError)("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"}[r]||"unknown",reason:"rejected",info:{payload:e,error:n}});if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){let t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,c.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:n}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,c.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:n}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,c.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:n}});if(i.match(/only replay-protected/i))return(0,c.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:t,info:{error:n}}})}let s=!!i.match(/the method .* does not exist/i);return(!s&&n&&n.details&&n.details.startsWith("Unauthorized method:")&&(s=!0),s)?(0,c.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:n,payload:e}}):(0,c.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:n,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,c.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));let r=this.#ts++,n=new Promise((n,a)=>{this.#to.push({resolve:n,reject:a,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})});return this.#tu(),n}async getSigner(e){null==e&&(e=0);let t=this.send("eth_accounts",[]);if("number"==typeof e){let r=await t;if(e>=r.length)throw Error("no such account");return new v(this,r[e])}let{accounts:r}=await (0,c.resolveProperties)({network:this.getNetwork(),accounts:t});for(let t of(e=(0,i.getAddress)(e),r))if((0,i.getAddress)(t)===e)return new v(this,e);throw Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new v(this,e))}destroy(){for(let{payload:e,reject:t}of(this.#tc&&(clearTimeout(this.#tc),this.#tc=null),this.#to))t((0,c.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#to=[],super.destroy()}}class x extends w{#th;constructor(e,t){super(e,t);let r=this._getOption("pollingInterval");null==r&&(r=y.pollingInterval),this.#th=r}_getSubscriber(e){let t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#th),t}get pollingInterval(){return this.#th}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw Error("invalid interval");this.#th=e,this._forEachSubscriber(e=>{m(e)&&(e.pollingInterval=this.#th)})}}class E extends x{#tp;constructor(e,t,r){null==e&&(e="http://localhost:8545"),super(t,r),"string"==typeof e?this.#tp=new c.FetchRequest(e):this.#tp=e.clone()}_getConnection(){return this.#tp.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){let t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");let r=await t.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}},{"../abi/index.js":"4ccGG","../address/index.js":"8s6vX","../hash/index.js":"1Ty7P","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./abstract-provider.js":"lcPZn","./abstract-signer.js":"cDdLu","./network.js":"eVSPi","./subscriber-filterid.js":"j0sPj","./subscriber-polling.js":"8vA68","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],j0sPj:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FilterIdSubscriber",()=>s),n.export(r,"FilterIdEventSubscriber",()=>o),n.export(r,"FilterIdPendingSubscriber",()=>c);var a=e("../utils/index.js"),i=e("./subscriber-polling.js");class s{#e3;#tb;#e4;#tt;#td;#tg;constructor(e){this.#e3=e,this.#tb=null,this.#e4=this.#te.bind(this),this.#tt=!1,this.#td=null,this.#tg=!1}_subscribe(e){throw Error("subclasses must override this")}_emitResults(e,t){throw Error("subclasses must override this")}_recover(e){throw Error("subclasses must override this")}async #te(e){try{null==this.#tb&&(this.#tb=this._subscribe(this.#e3));let e=null;try{e=await this.#tb}catch(e){if(!(0,a.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e){this.#tb=null,this.#e3._recoverSubscriber(this,this._recover(this.#e3));return}let t=await this.#e3.getNetwork();if(this.#td||(this.#td=t),this.#td.chainId!==t.chainId)throw Error("chaid changed");if(this.#tg)return;let r=await this.#e3.send("eth_getFilterChanges",[e]);await this._emitResults(this.#e3,r)}catch(e){console.log("@TODO",e)}this.#e3.once("block",this.#e4)}#tm(){let e=this.#tb;e&&(this.#tb=null,e.then(e=>{this.#e3.destroyed||this.#e3.send("eth_uninstallFilter",[e])}))}start(){this.#tt||(this.#tt=!0,this.#te(-2))}stop(){this.#tt&&(this.#tt=!1,this.#tg=!0,this.#tm(),this.#e3.off("block",this.#e4))}pause(e){e&&this.#tm(),this.#e3.off("block",this.#e4)}resume(){this.start()}}class o extends s{#ty;constructor(e,t){super(e),this.#ty=JSON.parse(JSON.stringify(t))}_recover(e){return new i.PollingEventSubscriber(e,this.#ty)}async _subscribe(e){return await e.send("eth_newFilter",[this.#ty])}async _emitResults(e,t){for(let r of t)e.emit(this.#ty,e._wrapLog(r,e._network))}}class c extends s{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(let r of t)e.emit("pending",r)}}},{"../utils/index.js":"aoZEY","./subscriber-polling.js":"8vA68","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],IJDGj:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BrowserProvider",()=>s);var a=e("../utils/index.js"),i=e("./provider-jsonrpc.js");class s extends i.JsonRpcApiPollingProvider{#D;constructor(e,t,r){let n=Object.assign({},null!=r?r:{},{batchMaxCount:1});(0,a.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,n),this.#D=async(t,r)=>{let n={method:t,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{let t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(t){let e=Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,a.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{let t=await this.#D(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);let t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter(t=>t.toLowerCase()===e).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#D("eth_requestAccounts",[])}catch(t){let e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}}},{"../utils/index.js":"aoZEY","./provider-jsonrpc.js":"bxwMu","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6pNUR":[function(e,t,r){!function(t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function a(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("e3411abd2192a251").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,a){for(var i=0,s=0,o=Math.min(e.length,r),c=t;c=49?f-49+10:f>=17?f-17+10:f,n(f>=0&&s0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;s-=3)i=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[a]|=i<>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);else if("le"===r)for(s=0,a=0;s>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,a=0;a=t;a-=2)n=o(e,t,a)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(a=(e.length-t)%2==0?t+1:t;a=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=0x3ffffff;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,s=i%n,o=Math.min(i,i-s)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var l,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],s=a*i,o=0x3ffffff&s,c=s/0x4000000|0;r.words[0]=o;for(var f=1;f>>26,l=0x3ffffff&c,u=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=u;h++){var p=f-h|0;d+=(s=(a=0|e.words[p])*(i=0|t.words[h])+l)/0x4000000|0,l=0x3ffffff&s}r.words[f]=0|l,c=0|d}return 0!==c?r.words[f]=0|c:r.length--,r._strip()}i.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,a=0,i=0,s=0;s>>24-a&0xffffff,(a+=2)>=26&&(a-=26,s--),r=0!==i||s!==this.length-1?u[6-c.length]+c+r:c+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=h[e],d=p[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var b=l.modrn(d).toString(e);r=(l=l.idivn(d)).isZero()?b+r:u[f-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},l&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var a=this.byteLength(),i=r||Math.max(1,a);n(a<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(i):new e(i);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,a),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===i?(r>=0&&(e[r--]=s>>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&0x3ffffff>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,a=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,r=e):(t=e,r=this);for(var i=0,s=0;s>26,this.words[s]=0x3ffffff&n;for(;0!==i&&s>26,this.words[s]=0x3ffffff&n;if(0===i&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],w=8191&v,x=v>>>13,E=0|s[4],A=8191&E,_=E>>>13,T=0|s[5],I=8191&T,S=T>>>13,C=0|s[6],k=8191&C,R=C>>>13,M=0|s[7],B=8191&M,P=M>>>13,O=0|s[8],j=8191&O,N=O>>>13,U=0|s[9],L=8191&U,D=U>>>13,F=0|o[0],H=8191&F,V=F>>>13,q=0|o[1],z=8191&q,G=q>>>13,K=0|o[2],W=8191&K,$=K>>>13,J=0|o[3],Q=8191&J,Z=J>>>13,X=0|o[4],Y=8191&X,ee=X>>>13,et=0|o[5],er=8191&et,en=et>>>13,ea=0|o[6],ei=8191&ea,es=ea>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,ed=0|o[8],el=8191&ed,eu=ed>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(f+(n=Math.imul(l,H))|0)+((8191&(a=(a=Math.imul(l,V))+Math.imul(u,H)|0))<<13)|0;f=((i=Math.imul(u,V))+(a>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,H),a=(a=Math.imul(p,V))+Math.imul(b,H)|0,i=Math.imul(b,V);var em=(f+(n=n+Math.imul(l,z)|0)|0)+((8191&(a=(a=a+Math.imul(l,G)|0)+Math.imul(u,z)|0))<<13)|0;f=((i=i+Math.imul(u,G)|0)+(a>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(m,H),a=(a=Math.imul(m,V))+Math.imul(y,H)|0,i=Math.imul(y,V),n=n+Math.imul(p,z)|0,a=(a=a+Math.imul(p,G)|0)+Math.imul(b,z)|0,i=i+Math.imul(b,G)|0;var ey=(f+(n=n+Math.imul(l,W)|0)|0)+((8191&(a=(a=a+Math.imul(l,$)|0)+Math.imul(u,W)|0))<<13)|0;f=((i=i+Math.imul(u,$)|0)+(a>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(w,H),a=(a=Math.imul(w,V))+Math.imul(x,H)|0,i=Math.imul(x,V),n=n+Math.imul(m,z)|0,a=(a=a+Math.imul(m,G)|0)+Math.imul(y,z)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,a=(a=a+Math.imul(p,$)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,$)|0;var ev=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(a=(a=a+Math.imul(l,Z)|0)+Math.imul(u,Q)|0))<<13)|0;f=((i=i+Math.imul(u,Z)|0)+(a>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(A,H),a=(a=Math.imul(A,V))+Math.imul(_,H)|0,i=Math.imul(_,V),n=n+Math.imul(w,z)|0,a=(a=a+Math.imul(w,G)|0)+Math.imul(x,z)|0,i=i+Math.imul(x,G)|0,n=n+Math.imul(m,W)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(y,W)|0,i=i+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0;var ew=(f+(n=n+Math.imul(l,Y)|0)|0)+((8191&(a=(a=a+Math.imul(l,ee)|0)+Math.imul(u,Y)|0))<<13)|0;f=((i=i+Math.imul(u,ee)|0)+(a>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(I,H),a=(a=Math.imul(I,V))+Math.imul(S,H)|0,i=Math.imul(S,V),n=n+Math.imul(A,z)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(_,z)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(w,W)|0,a=(a=a+Math.imul(w,$)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,$)|0,n=n+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(p,Y)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(b,Y)|0,i=i+Math.imul(b,ee)|0;var ex=(f+(n=n+Math.imul(l,er)|0)|0)+((8191&(a=(a=a+Math.imul(l,en)|0)+Math.imul(u,er)|0))<<13)|0;f=((i=i+Math.imul(u,en)|0)+(a>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(k,H),a=(a=Math.imul(k,V))+Math.imul(R,H)|0,i=Math.imul(R,V),n=n+Math.imul(I,z)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(S,z)|0,i=i+Math.imul(S,G)|0,n=n+Math.imul(A,W)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(w,Q)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(m,Y)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,a=(a=a+Math.imul(p,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0;var eE=(f+(n=n+Math.imul(l,ei)|0)|0)+((8191&(a=(a=a+Math.imul(l,es)|0)+Math.imul(u,ei)|0))<<13)|0;f=((i=i+Math.imul(u,es)|0)+(a>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,H),a=(a=Math.imul(B,V))+Math.imul(P,H)|0,i=Math.imul(P,V),n=n+Math.imul(k,z)|0,a=(a=a+Math.imul(k,G)|0)+Math.imul(R,z)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,a=(a=a+Math.imul(I,$)|0)+Math.imul(S,W)|0,i=i+Math.imul(S,$)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(m,er)|0,a=(a=a+Math.imul(m,en)|0)+Math.imul(y,er)|0,i=i+Math.imul(y,en)|0,n=n+Math.imul(p,ei)|0,a=(a=a+Math.imul(p,es)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,es)|0;var eA=(f+(n=n+Math.imul(l,ec)|0)|0)+((8191&(a=(a=a+Math.imul(l,ef)|0)+Math.imul(u,ec)|0))<<13)|0;f=((i=i+Math.imul(u,ef)|0)+(a>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(j,H),a=(a=Math.imul(j,V))+Math.imul(N,H)|0,i=Math.imul(N,V),n=n+Math.imul(B,z)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(P,z)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(k,W)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(R,W)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,Z)|0,n=n+Math.imul(A,Y)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(_,Y)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,a=(a=a+Math.imul(w,en)|0)+Math.imul(x,er)|0,i=i+Math.imul(x,en)|0,n=n+Math.imul(m,ei)|0,a=(a=a+Math.imul(m,es)|0)+Math.imul(y,ei)|0,i=i+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,a=(a=a+Math.imul(p,ef)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,ef)|0;var e_=(f+(n=n+Math.imul(l,el)|0)|0)+((8191&(a=(a=a+Math.imul(l,eu)|0)+Math.imul(u,el)|0))<<13)|0;f=((i=i+Math.imul(u,eu)|0)+(a>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(L,H),a=(a=Math.imul(L,V))+Math.imul(D,H)|0,i=Math.imul(D,V),n=n+Math.imul(j,z)|0,a=(a=a+Math.imul(j,G)|0)+Math.imul(N,z)|0,i=i+Math.imul(N,G)|0,n=n+Math.imul(B,W)|0,a=(a=a+Math.imul(B,$)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(I,Y)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(S,Y)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(A,er)|0,a=(a=a+Math.imul(A,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(w,ei)|0,a=(a=a+Math.imul(w,es)|0)+Math.imul(x,ei)|0,i=i+Math.imul(x,es)|0,n=n+Math.imul(m,ec)|0,a=(a=a+Math.imul(m,ef)|0)+Math.imul(y,ec)|0,i=i+Math.imul(y,ef)|0,n=n+Math.imul(p,el)|0,a=(a=a+Math.imul(p,eu)|0)+Math.imul(b,el)|0,i=i+Math.imul(b,eu)|0;var eT=(f+(n=n+Math.imul(l,ep)|0)|0)+((8191&(a=(a=a+Math.imul(l,eb)|0)+Math.imul(u,ep)|0))<<13)|0;f=((i=i+Math.imul(u,eb)|0)+(a>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(L,z),a=(a=Math.imul(L,G))+Math.imul(D,z)|0,i=Math.imul(D,G),n=n+Math.imul(j,W)|0,a=(a=a+Math.imul(j,$)|0)+Math.imul(N,W)|0,i=i+Math.imul(N,$)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(k,Y)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(R,Y)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(I,er)|0,a=(a=a+Math.imul(I,en)|0)+Math.imul(S,er)|0,i=i+Math.imul(S,en)|0,n=n+Math.imul(A,ei)|0,a=(a=a+Math.imul(A,es)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,es)|0,n=n+Math.imul(w,ec)|0,a=(a=a+Math.imul(w,ef)|0)+Math.imul(x,ec)|0,i=i+Math.imul(x,ef)|0,n=n+Math.imul(m,el)|0,a=(a=a+Math.imul(m,eu)|0)+Math.imul(y,el)|0,i=i+Math.imul(y,eu)|0;var eI=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(a=(a=a+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;f=((i=i+Math.imul(b,eb)|0)+(a>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(L,W),a=(a=Math.imul(L,$))+Math.imul(D,W)|0,i=Math.imul(D,$),n=n+Math.imul(j,Q)|0,a=(a=a+Math.imul(j,Z)|0)+Math.imul(N,Q)|0,i=i+Math.imul(N,Z)|0,n=n+Math.imul(B,Y)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(P,Y)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(k,er)|0,a=(a=a+Math.imul(k,en)|0)+Math.imul(R,er)|0,i=i+Math.imul(R,en)|0,n=n+Math.imul(I,ei)|0,a=(a=a+Math.imul(I,es)|0)+Math.imul(S,ei)|0,i=i+Math.imul(S,es)|0,n=n+Math.imul(A,ec)|0,a=(a=a+Math.imul(A,ef)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(w,el)|0,a=(a=a+Math.imul(w,eu)|0)+Math.imul(x,el)|0,i=i+Math.imul(x,eu)|0;var eS=(f+(n=n+Math.imul(m,ep)|0)|0)+((8191&(a=(a=a+Math.imul(m,eb)|0)+Math.imul(y,ep)|0))<<13)|0;f=((i=i+Math.imul(y,eb)|0)+(a>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(L,Q),a=(a=Math.imul(L,Z))+Math.imul(D,Q)|0,i=Math.imul(D,Z),n=n+Math.imul(j,Y)|0,a=(a=a+Math.imul(j,ee)|0)+Math.imul(N,Y)|0,i=i+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,a=(a=a+Math.imul(B,en)|0)+Math.imul(P,er)|0,i=i+Math.imul(P,en)|0,n=n+Math.imul(k,ei)|0,a=(a=a+Math.imul(k,es)|0)+Math.imul(R,ei)|0,i=i+Math.imul(R,es)|0,n=n+Math.imul(I,ec)|0,a=(a=a+Math.imul(I,ef)|0)+Math.imul(S,ec)|0,i=i+Math.imul(S,ef)|0,n=n+Math.imul(A,el)|0,a=(a=a+Math.imul(A,eu)|0)+Math.imul(_,el)|0,i=i+Math.imul(_,eu)|0;var eC=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(a=(a=a+Math.imul(w,eb)|0)+Math.imul(x,ep)|0))<<13)|0;f=((i=i+Math.imul(x,eb)|0)+(a>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(L,Y),a=(a=Math.imul(L,ee))+Math.imul(D,Y)|0,i=Math.imul(D,ee),n=n+Math.imul(j,er)|0,a=(a=a+Math.imul(j,en)|0)+Math.imul(N,er)|0,i=i+Math.imul(N,en)|0,n=n+Math.imul(B,ei)|0,a=(a=a+Math.imul(B,es)|0)+Math.imul(P,ei)|0,i=i+Math.imul(P,es)|0,n=n+Math.imul(k,ec)|0,a=(a=a+Math.imul(k,ef)|0)+Math.imul(R,ec)|0,i=i+Math.imul(R,ef)|0,n=n+Math.imul(I,el)|0,a=(a=a+Math.imul(I,eu)|0)+Math.imul(S,el)|0,i=i+Math.imul(S,eu)|0;var ek=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(a=(a=a+Math.imul(A,eb)|0)+Math.imul(_,ep)|0))<<13)|0;f=((i=i+Math.imul(_,eb)|0)+(a>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(L,er),a=(a=Math.imul(L,en))+Math.imul(D,er)|0,i=Math.imul(D,en),n=n+Math.imul(j,ei)|0,a=(a=a+Math.imul(j,es)|0)+Math.imul(N,ei)|0,i=i+Math.imul(N,es)|0,n=n+Math.imul(B,ec)|0,a=(a=a+Math.imul(B,ef)|0)+Math.imul(P,ec)|0,i=i+Math.imul(P,ef)|0,n=n+Math.imul(k,el)|0,a=(a=a+Math.imul(k,eu)|0)+Math.imul(R,el)|0,i=i+Math.imul(R,eu)|0;var eR=(f+(n=n+Math.imul(I,ep)|0)|0)+((8191&(a=(a=a+Math.imul(I,eb)|0)+Math.imul(S,ep)|0))<<13)|0;f=((i=i+Math.imul(S,eb)|0)+(a>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(L,ei),a=(a=Math.imul(L,es))+Math.imul(D,ei)|0,i=Math.imul(D,es),n=n+Math.imul(j,ec)|0,a=(a=a+Math.imul(j,ef)|0)+Math.imul(N,ec)|0,i=i+Math.imul(N,ef)|0,n=n+Math.imul(B,el)|0,a=(a=a+Math.imul(B,eu)|0)+Math.imul(P,el)|0,i=i+Math.imul(P,eu)|0;var eM=(f+(n=n+Math.imul(k,ep)|0)|0)+((8191&(a=(a=a+Math.imul(k,eb)|0)+Math.imul(R,ep)|0))<<13)|0;f=((i=i+Math.imul(R,eb)|0)+(a>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(L,ec),a=(a=Math.imul(L,ef))+Math.imul(D,ec)|0,i=Math.imul(D,ef),n=n+Math.imul(j,el)|0,a=(a=a+Math.imul(j,eu)|0)+Math.imul(N,el)|0,i=i+Math.imul(N,eu)|0;var eB=(f+(n=n+Math.imul(B,ep)|0)|0)+((8191&(a=(a=a+Math.imul(B,eb)|0)+Math.imul(P,ep)|0))<<13)|0;f=((i=i+Math.imul(P,eb)|0)+(a>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(L,el),a=(a=Math.imul(L,eu))+Math.imul(D,el)|0,i=Math.imul(D,eu);var eP=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(a=(a=a+Math.imul(j,eb)|0)+Math.imul(N,ep)|0))<<13)|0;f=((i=i+Math.imul(N,eb)|0)+(a>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff;var eO=(f+(n=Math.imul(L,ep))|0)+((8191&(a=(a=Math.imul(L,eb))+Math.imul(D,ep)|0))<<13)|0;return f=((i=Math.imul(D,eb))+(a>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,c[0]=eg,c[1]=em,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=ex,c[6]=eE,c[7]=eA,c[8]=e_,c[9]=eT,c[10]=eI,c[11]=eS,c[12]=eC,c[13]=ek,c[14]=eR,c[15]=eM,c[16]=eB,c[17]=eP,c[18]=eO,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,s&=0x3ffffff}r.words[i]=o,n=s,s=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(g=b),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?b(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,r,n,a,i){for(var s=0;s>>=1)a++;return 1<>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s>=26,r+=(i/0x4000000|0)+(s>>>26),this.words[a]=0x3ffffff&s}return 0!==r&&(this.words[a]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,r=e%26,a=(e-r)/26,i=0x3ffffff>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var a,i=e%26,s=Math.min((e-i)/26,this.length),o=0x3ffffff^0x3ffffff>>>i<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=a);c--){var d=0|this.words[c];this.words[c]=f<<26-i|d>>>i,f=d&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[a+r]=0x3ffffff&i}for(;a>26,this.words[a+r]=0x3ffffff&i;if(0===o)return this._strip();for(n(-1===o),o=0,a=0;a>26,this.words[a]=0x3ffffff&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,a=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),a.iushln(n),o=0|s.words[s.length-1]);var c=a.length-s.length;if("mod"!==t){(r=new i(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;l--){var u=(0|a.words[s.length+l])*0x4000000+(0|a.words[s.length+l-1]);for(u=Math.min(u/o|0,0x3ffffff),a._ishlnsubmul(s,u,l);0!==a.negative;)u--,a.negative=0,a._ishlnsubmul(s,1,l),a.isZero()||(a.negative^=1);r&&(r.words[l]=u)}return r&&r._strip(),a._strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:r||null,mod:a}},i.prototype.divmod=function(e,t,r){var a,s,o;return(n(!e.isZero()),this.isZero())?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(a=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(a=o.div.neg()),{div:a,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,a=0,i=this.length-1;i>=0;i--)a=(r*a+(0|this.words[i]))%e;return t?-a:a},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+0x4000000*r;this.words[a]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),s=new i(0),o=new i(0),c=new i(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var d=r.clone(),l=t.clone();!t.isZero();){for(var u=0,h=1;(t.words[0]&h)==0&&u<26;++u,h<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(d),s.isub(l)),a.iushrn(1),s.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(d),c.isub(l)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(o),s.isub(c)):(r.isub(t),o.isub(a),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,a=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new i(1),o=new i(0),c=a.clone();r.cmpn(1)>0&&a.cmpn(1)>0;){for(var f=0,d=1;(r.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var l=0,u=1;(a.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(a.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(a)>=0?(r.isub(a),s.isub(o)):(a.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,a=1<>>26,o&=0x3ffffff,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){T.call(this,e),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)}w.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(x,w),x.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new x;else if("p224"===e)t=new E;else if("p192"===e)t=new A;else if("p25519"===e)t=new _;else throw Error("Unknown prime "+e);return v[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},T.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);n(!a.isZero());var o=new i(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,f).cmp(c);)d.redIAdd(c);for(var l=this.pow(d,a),u=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=s;0!==h.cmp(o);){for(var b=h,g=0;0!==b.cmp(o);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],d=c-1;d>=0;d--){var l=f>>d&1;if(a!==r[0]&&(a=this.sqr(a)),0===l&&0===s){o=0;continue}s<<=1,s|=l,(4==++o||0===n&&0===d)&&(a=this.mul(a,r[s]),o=0,s=0)}c=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new I(e)},a(I,T),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):0>a.cmpn(0)&&(i=a.iadd(this.m)),i._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):0>a.cmpn(0)&&(s=a.iadd(this.m)),s._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{e3411abd2192a251:"f68Cp"}],f68Cp:[function(e,t,r){},{}],"6ILTN":[function(e,t,r){var n=e("15178ffa8203b57b").Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let i=a(e("43ce9826854d392c")),s=a(e("88481420d84b05d8")),o="utf8";function c(e){return new Uint8Array(e)}function f(e,t=!1){let r=e.toString("hex");return t?U(r):r}function d(e){return e.toString(o)}function l(e){return e.readUIntBE(0,e.length)}function u(e){return s.default(e)}function h(e,t=!1){return f(u(e),t)}function p(e){return d(u(e))}function b(e){return l(u(e))}function g(e){return Array.from(e).map(E).join("")}function m(e){return n.from(N(e),"hex")}function y(e){return c(m(e))}function v(e){return g(y(e))}function w(e){return n.from(e,o)}function x(e){return c(w(e))}function E(e){return O((e>>>0).toString(2))}function A(e){return u(_(e))}function _(e){return new Uint8Array(B(e).map(e=>parseInt(e,2)))}function T(e,t){return h(_(e),t)}function I(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function S(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function C(e){return n.isBuffer(e)}function k(e){return i.default.strict(e)&&!C(e)}function R(e){return!k(e)&&!C(e)&&void 0!==e.byteLength}function M(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function B(e,t=8){return Array.from(O(e).match(RegExp(`.{${t}}`,"gi"))||[])}function P(e){return B(e).map(L).join("")}function O(e,t=8,r="0"){return j(e,M(e.length,t),r)}function j(e,t,r="0"){return D(e,t,!0,r)}function N(e){return e.replace(/^0x/,"")}function U(e){return e.startsWith("0x")?e:`0x${e}`}function L(e){return e.split("").reverse().join("")}function D(e,t,r,n="0"){let a=t-e.length,i=e;if(a>0){let t=n.repeat(a);i=r?t+e:e+t}return i}r.bufferToArray=c,r.bufferToHex=f,r.bufferToUtf8=d,r.bufferToNumber=l,r.bufferToBinary=function(e){return g(c(e))},r.arrayToBuffer=u,r.arrayToHex=h,r.arrayToUtf8=p,r.arrayToNumber=b,r.arrayToBinary=g,r.hexToBuffer=m,r.hexToArray=y,r.hexToUtf8=function(e){return d(m(e))},r.hexToNumber=function(e){return b(y(e))},r.hexToBinary=v,r.utf8ToBuffer=w,r.utf8ToArray=x,r.utf8ToHex=function(e,t=!1){return f(w(e),t)},r.utf8ToNumber=function(e){let t=parseInt(e,10);return function(e,t){if(!e)throw Error(t)}(void 0!==t,"Number can only safely store up to 53 bits"),t},r.utf8ToBinary=function(e){return g(x(e))},r.numberToBuffer=function(e){return A(E(e))},r.numberToArray=function(e){return _(E(e))},r.numberToHex=function(e,t){return T(E(e),t)},r.numberToUtf8=function(e){return`${e}`},r.numberToBinary=E,r.binaryToBuffer=A,r.binaryToArray=_,r.binaryToHex=T,r.binaryToUtf8=function(e){return p(_(e))},r.binaryToNumber=function(e){return b(_(e))},r.isBinaryString=I,r.isHexString=S,r.isBuffer=C,r.isTypedArray=k,r.isArrayBuffer=R,r.getType=function(e){return C(e)?"buffer":k(e)?"typed-array":R(e)?"array-buffer":Array.isArray(e)?"array":typeof e},r.getEncoding=function(e){return I(e)?"binary":S(e)?"hex":o},r.concatBuffers=function(...e){return n.concat(e)},r.concatArrays=function(...e){let t=[];return e.forEach(e=>t=t.concat(Array.from(e))),new Uint8Array([...t])},r.trimLeft=function(e,t){let r=e.length-t;return r>0&&(e=e.slice(r)),e},r.trimRight=function(e,t){return e.slice(0,t)},r.calcByteLength=M,r.splitBytes=B,r.swapBytes=P,r.swapHex=function(e){return T(P(v(e)))},r.sanitizeBytes=O,r.padLeft=j,r.padRight=function(e,t,r="0"){return D(e,t,!1,r)},r.removeHexPrefix=N,r.addHexPrefix=U,r.sanitizeHex=function(e){return(e=O(e=N(e),2))&&(e=U(e)),e},r.removeHexLeadingZeros=function(e){let t=e.startsWith("0x");return e=(e=N(e)).startsWith("0")?e.substring(1):e,t?U(e):e}},{"15178ffa8203b57b":"2tbuV","43ce9826854d392c":"g3yYX","88481420d84b05d8":"8z6LN"}],g3yYX:[function(e,t,r){t.exports=i,i.strict=s,i.loose=o;var n=Object.prototype.toString,a={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function i(e){return s(e)||o(e)}function s(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return a[n.call(e)]}},{}],"8z6LN":[function(e,t,r){var n=e("41e769eea2c52ab4").Buffer,a=e("f05280ef50ca94e2").strict;t.exports=function(e){if(!a(e))return n.from(e);var t=n.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}},{"41e769eea2c52ab4":"2tbuV",f05280ef50ca94e2:"g3yYX"}],"5JqHI":[function(e,t,r){r.utils=e("936ed87b137cf847"),r.common=e("434a6148003f54bf"),r.sha=e("4efe643c7f05b03f"),r.ripemd=e("724a48d5099869dc"),r.hmac=e("975e05d9aa157142"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"936ed87b137cf847":"kTLRC","434a6148003f54bf":"8CKHC","4efe643c7f05b03f":"2sQ4n","724a48d5099869dc":"3rzJo","975e05d9aa157142":"7odnM"}],kTLRC:[function(e,t,r){var n=e("31e33d7e4a46655f"),a=e("cbbdf8dae0263539");function i(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function o(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}r.inherits=a,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),a=0;a>6|192:((i=e,s=a,(64512&i.charCodeAt(s))!=55296||s<0||s+1>=i.length?1:(64512&i.charCodeAt(s+1))!=56320)?r[n++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),r[n++]=o>>18|240,r[n++]=o>>12&63|128),r[n++]=o>>6&63|128),r[n++]=63&o|128)}}else for(a=0;a>>0;return o},r.split32=function(e,t){for(var r=Array(4*e.length),n=0,a=0;n>>24,r[a+1]=i>>>16&255,r[a+2]=i>>>8&255,r[a+3]=255&i):(r[a+3]=i>>>24,r[a+2]=i>>>16&255,r[a+1]=i>>>8&255,r[a]=255&i)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,a){return e+t+r+n+a>>>0},r.sum64=function(e,t,r,n){var a=e[t],i=n+e[t+1]>>>0;e[t]=(i>>0,e[t+1]=i},r.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,a,i,s,o){var c,f=t;return e+r+a+s+(0+((f=f+n>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,n,a,i,s,o){return t+n+i+o>>>0},r.sum64_5_hi=function(e,t,r,n,a,i,s,o,c,f){var d,l=t;return e+r+a+s+c+(0+((l=l+n>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,n,a,i,s,o,c,f){return t+n+i+o+f>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{"31e33d7e4a46655f":"1eelC",cbbdf8dae0263539:"h4pQt"}],"1eelC":[function(e,t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},{}],h4pQt:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],"8CKHC":[function(e,t,r){var n=e("51dd8460814ec5be"),a=e("c6dc31c29a63abd4");function i(){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}r.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var a=0;a>>24&255,n[a++]=e>>>16&255,n[a++]=e>>>8&255,n[a++]=255&e}else for(i=8,n[a++]=255&e,n[a++]=e>>>8&255,n[a++]=e>>>16&255,n[a++]=e>>>24&255,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0;i>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"4270a367d24bc2a1":"kTLRC"}],"1DGgN":[function(e,t,r){var n=e("2dff1a4e9e4ae8"),a=e("381adda71a5f9e63");function i(){if(!(this instanceof i))return new i;a.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(i,a),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"2dff1a4e9e4ae8":"kTLRC","381adda71a5f9e63":"lD46M"}],lD46M:[function(e,t,r){var n=e("78818773b353478e"),a=e("8dad44f5558259f6"),i=e("fbf5a6c26a09b352"),s=e("c85905f79ad0b96f"),o=n.sum32,c=n.sum32_4,f=n.sum32_5,d=i.ch32,l=i.maj32,u=i.s0_256,h=i.s1_256,p=i.g0_256,b=i.g1_256,g=a.BlockHash,m=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=m,this.W=Array(64)}n.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=new this.Hash().update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"50zjA":[function(e,t,r){var n=e("7d7ae146377696b2"),a=e("3858a48c429b727b"),i=e("41a50e51d27c7f01");r.assert=a,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(s=0;s(a>>1)-1?(a>>1)-c:c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,a=0;e.cmpn(-n)>0||t.cmpn(-a)>0;){var i,s,o,c=e.andln(3)+n&3,f=t.andln(3)+a&3;3===c&&(c=-1),3===f&&(f=-1),s=(1&c)==0?0:(3==(i=e.andln(7)+n&7)||5===i)&&2===f?-c:c,r[0].push(s),o=(1&f)==0?0:(3==(i=t.andln(7)+a&7)||5===i)&&2===c?-f:f,r[1].push(o),2*n===s+1&&(n=1-n),2*a===o+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new n(e,"hex","le")}},{"7d7ae146377696b2":"8KQBB","3858a48c429b727b":"1eelC","41a50e51d27c7f01":"ktF95"}],"8KQBB":[function(e,t,r){!function(t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function a(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("c448810625cd391d").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var a=0,i=Math.min(e.length,r),s=t;s=49?a+=o-49+10:o>=17?a+=o-17+10:a+=o}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;s-=3)i=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[a]|=i<>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);else if("le"===r)for(s=0,a=0;s>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);return this.strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,a=0;a=t;a-=2)n=o(e,t,a)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(a=(e.length-t)%2==0?t+1:t;a=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=0x3ffffff;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,s=i%n,o=Math.min(i,i-s)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],s=a*i,o=0x3ffffff&s,c=s/0x4000000|0;r.words[0]=o;for(var f=1;f>>26,l=0x3ffffff&c,u=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=u;h++){var p=f-h|0;d+=(s=(a=0|e.words[p])*(i=0|t.words[h])+l)/0x4000000|0,l=0x3ffffff&s}r.words[f]=0|l,c=0|d}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}i.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,a=0,i=0,s=0;s>>24-a&0xffffff)||s!==this.length-1?d[6-c.length]+c+r:c+r,(a+=2)>=26&&(a-=26,s--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],h=u[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:d[f-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var a,i,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(i=0;!f.isZero();i++)a=f.andln(255),f.iushrn(8),c[i]=a;for(;i=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&0x3ffffff>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,a=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,r=e):(t=e,r=this);for(var i=0,s=0;s>26,this.words[s]=0x3ffffff&n;for(;0!==i&&s>26,this.words[s]=0x3ffffff&n;if(0===i&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],w=8191&v,x=v>>>13,E=0|s[4],A=8191&E,_=E>>>13,T=0|s[5],I=8191&T,S=T>>>13,C=0|s[6],k=8191&C,R=C>>>13,M=0|s[7],B=8191&M,P=M>>>13,O=0|s[8],j=8191&O,N=O>>>13,U=0|s[9],L=8191&U,D=U>>>13,F=0|o[0],H=8191&F,V=F>>>13,q=0|o[1],z=8191&q,G=q>>>13,K=0|o[2],W=8191&K,$=K>>>13,J=0|o[3],Q=8191&J,Z=J>>>13,X=0|o[4],Y=8191&X,ee=X>>>13,et=0|o[5],er=8191&et,en=et>>>13,ea=0|o[6],ei=8191&ea,es=ea>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,ed=0|o[8],el=8191&ed,eu=ed>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(f+(n=Math.imul(l,H))|0)+((8191&(a=(a=Math.imul(l,V))+Math.imul(u,H)|0))<<13)|0;f=((i=Math.imul(u,V))+(a>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,H),a=(a=Math.imul(p,V))+Math.imul(b,H)|0,i=Math.imul(b,V);var em=(f+(n=n+Math.imul(l,z)|0)|0)+((8191&(a=(a=a+Math.imul(l,G)|0)+Math.imul(u,z)|0))<<13)|0;f=((i=i+Math.imul(u,G)|0)+(a>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(m,H),a=(a=Math.imul(m,V))+Math.imul(y,H)|0,i=Math.imul(y,V),n=n+Math.imul(p,z)|0,a=(a=a+Math.imul(p,G)|0)+Math.imul(b,z)|0,i=i+Math.imul(b,G)|0;var ey=(f+(n=n+Math.imul(l,W)|0)|0)+((8191&(a=(a=a+Math.imul(l,$)|0)+Math.imul(u,W)|0))<<13)|0;f=((i=i+Math.imul(u,$)|0)+(a>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(w,H),a=(a=Math.imul(w,V))+Math.imul(x,H)|0,i=Math.imul(x,V),n=n+Math.imul(m,z)|0,a=(a=a+Math.imul(m,G)|0)+Math.imul(y,z)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,a=(a=a+Math.imul(p,$)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,$)|0;var ev=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(a=(a=a+Math.imul(l,Z)|0)+Math.imul(u,Q)|0))<<13)|0;f=((i=i+Math.imul(u,Z)|0)+(a>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(A,H),a=(a=Math.imul(A,V))+Math.imul(_,H)|0,i=Math.imul(_,V),n=n+Math.imul(w,z)|0,a=(a=a+Math.imul(w,G)|0)+Math.imul(x,z)|0,i=i+Math.imul(x,G)|0,n=n+Math.imul(m,W)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(y,W)|0,i=i+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0;var ew=(f+(n=n+Math.imul(l,Y)|0)|0)+((8191&(a=(a=a+Math.imul(l,ee)|0)+Math.imul(u,Y)|0))<<13)|0;f=((i=i+Math.imul(u,ee)|0)+(a>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(I,H),a=(a=Math.imul(I,V))+Math.imul(S,H)|0,i=Math.imul(S,V),n=n+Math.imul(A,z)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(_,z)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(w,W)|0,a=(a=a+Math.imul(w,$)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,$)|0,n=n+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(p,Y)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(b,Y)|0,i=i+Math.imul(b,ee)|0;var ex=(f+(n=n+Math.imul(l,er)|0)|0)+((8191&(a=(a=a+Math.imul(l,en)|0)+Math.imul(u,er)|0))<<13)|0;f=((i=i+Math.imul(u,en)|0)+(a>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(k,H),a=(a=Math.imul(k,V))+Math.imul(R,H)|0,i=Math.imul(R,V),n=n+Math.imul(I,z)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(S,z)|0,i=i+Math.imul(S,G)|0,n=n+Math.imul(A,W)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(w,Q)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(m,Y)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,a=(a=a+Math.imul(p,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0;var eE=(f+(n=n+Math.imul(l,ei)|0)|0)+((8191&(a=(a=a+Math.imul(l,es)|0)+Math.imul(u,ei)|0))<<13)|0;f=((i=i+Math.imul(u,es)|0)+(a>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,H),a=(a=Math.imul(B,V))+Math.imul(P,H)|0,i=Math.imul(P,V),n=n+Math.imul(k,z)|0,a=(a=a+Math.imul(k,G)|0)+Math.imul(R,z)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,a=(a=a+Math.imul(I,$)|0)+Math.imul(S,W)|0,i=i+Math.imul(S,$)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(m,er)|0,a=(a=a+Math.imul(m,en)|0)+Math.imul(y,er)|0,i=i+Math.imul(y,en)|0,n=n+Math.imul(p,ei)|0,a=(a=a+Math.imul(p,es)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,es)|0;var eA=(f+(n=n+Math.imul(l,ec)|0)|0)+((8191&(a=(a=a+Math.imul(l,ef)|0)+Math.imul(u,ec)|0))<<13)|0;f=((i=i+Math.imul(u,ef)|0)+(a>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(j,H),a=(a=Math.imul(j,V))+Math.imul(N,H)|0,i=Math.imul(N,V),n=n+Math.imul(B,z)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(P,z)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(k,W)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(R,W)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,Z)|0,n=n+Math.imul(A,Y)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(_,Y)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,a=(a=a+Math.imul(w,en)|0)+Math.imul(x,er)|0,i=i+Math.imul(x,en)|0,n=n+Math.imul(m,ei)|0,a=(a=a+Math.imul(m,es)|0)+Math.imul(y,ei)|0,i=i+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,a=(a=a+Math.imul(p,ef)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,ef)|0;var e_=(f+(n=n+Math.imul(l,el)|0)|0)+((8191&(a=(a=a+Math.imul(l,eu)|0)+Math.imul(u,el)|0))<<13)|0;f=((i=i+Math.imul(u,eu)|0)+(a>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(L,H),a=(a=Math.imul(L,V))+Math.imul(D,H)|0,i=Math.imul(D,V),n=n+Math.imul(j,z)|0,a=(a=a+Math.imul(j,G)|0)+Math.imul(N,z)|0,i=i+Math.imul(N,G)|0,n=n+Math.imul(B,W)|0,a=(a=a+Math.imul(B,$)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(I,Y)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(S,Y)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(A,er)|0,a=(a=a+Math.imul(A,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(w,ei)|0,a=(a=a+Math.imul(w,es)|0)+Math.imul(x,ei)|0,i=i+Math.imul(x,es)|0,n=n+Math.imul(m,ec)|0,a=(a=a+Math.imul(m,ef)|0)+Math.imul(y,ec)|0,i=i+Math.imul(y,ef)|0,n=n+Math.imul(p,el)|0,a=(a=a+Math.imul(p,eu)|0)+Math.imul(b,el)|0,i=i+Math.imul(b,eu)|0;var eT=(f+(n=n+Math.imul(l,ep)|0)|0)+((8191&(a=(a=a+Math.imul(l,eb)|0)+Math.imul(u,ep)|0))<<13)|0;f=((i=i+Math.imul(u,eb)|0)+(a>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(L,z),a=(a=Math.imul(L,G))+Math.imul(D,z)|0,i=Math.imul(D,G),n=n+Math.imul(j,W)|0,a=(a=a+Math.imul(j,$)|0)+Math.imul(N,W)|0,i=i+Math.imul(N,$)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(k,Y)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(R,Y)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(I,er)|0,a=(a=a+Math.imul(I,en)|0)+Math.imul(S,er)|0,i=i+Math.imul(S,en)|0,n=n+Math.imul(A,ei)|0,a=(a=a+Math.imul(A,es)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,es)|0,n=n+Math.imul(w,ec)|0,a=(a=a+Math.imul(w,ef)|0)+Math.imul(x,ec)|0,i=i+Math.imul(x,ef)|0,n=n+Math.imul(m,el)|0,a=(a=a+Math.imul(m,eu)|0)+Math.imul(y,el)|0,i=i+Math.imul(y,eu)|0;var eI=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(a=(a=a+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;f=((i=i+Math.imul(b,eb)|0)+(a>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(L,W),a=(a=Math.imul(L,$))+Math.imul(D,W)|0,i=Math.imul(D,$),n=n+Math.imul(j,Q)|0,a=(a=a+Math.imul(j,Z)|0)+Math.imul(N,Q)|0,i=i+Math.imul(N,Z)|0,n=n+Math.imul(B,Y)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(P,Y)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(k,er)|0,a=(a=a+Math.imul(k,en)|0)+Math.imul(R,er)|0,i=i+Math.imul(R,en)|0,n=n+Math.imul(I,ei)|0,a=(a=a+Math.imul(I,es)|0)+Math.imul(S,ei)|0,i=i+Math.imul(S,es)|0,n=n+Math.imul(A,ec)|0,a=(a=a+Math.imul(A,ef)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(w,el)|0,a=(a=a+Math.imul(w,eu)|0)+Math.imul(x,el)|0,i=i+Math.imul(x,eu)|0;var eS=(f+(n=n+Math.imul(m,ep)|0)|0)+((8191&(a=(a=a+Math.imul(m,eb)|0)+Math.imul(y,ep)|0))<<13)|0;f=((i=i+Math.imul(y,eb)|0)+(a>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(L,Q),a=(a=Math.imul(L,Z))+Math.imul(D,Q)|0,i=Math.imul(D,Z),n=n+Math.imul(j,Y)|0,a=(a=a+Math.imul(j,ee)|0)+Math.imul(N,Y)|0,i=i+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,a=(a=a+Math.imul(B,en)|0)+Math.imul(P,er)|0,i=i+Math.imul(P,en)|0,n=n+Math.imul(k,ei)|0,a=(a=a+Math.imul(k,es)|0)+Math.imul(R,ei)|0,i=i+Math.imul(R,es)|0,n=n+Math.imul(I,ec)|0,a=(a=a+Math.imul(I,ef)|0)+Math.imul(S,ec)|0,i=i+Math.imul(S,ef)|0,n=n+Math.imul(A,el)|0,a=(a=a+Math.imul(A,eu)|0)+Math.imul(_,el)|0,i=i+Math.imul(_,eu)|0;var eC=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(a=(a=a+Math.imul(w,eb)|0)+Math.imul(x,ep)|0))<<13)|0;f=((i=i+Math.imul(x,eb)|0)+(a>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(L,Y),a=(a=Math.imul(L,ee))+Math.imul(D,Y)|0,i=Math.imul(D,ee),n=n+Math.imul(j,er)|0,a=(a=a+Math.imul(j,en)|0)+Math.imul(N,er)|0,i=i+Math.imul(N,en)|0,n=n+Math.imul(B,ei)|0,a=(a=a+Math.imul(B,es)|0)+Math.imul(P,ei)|0,i=i+Math.imul(P,es)|0,n=n+Math.imul(k,ec)|0,a=(a=a+Math.imul(k,ef)|0)+Math.imul(R,ec)|0,i=i+Math.imul(R,ef)|0,n=n+Math.imul(I,el)|0,a=(a=a+Math.imul(I,eu)|0)+Math.imul(S,el)|0,i=i+Math.imul(S,eu)|0;var ek=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(a=(a=a+Math.imul(A,eb)|0)+Math.imul(_,ep)|0))<<13)|0;f=((i=i+Math.imul(_,eb)|0)+(a>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(L,er),a=(a=Math.imul(L,en))+Math.imul(D,er)|0,i=Math.imul(D,en),n=n+Math.imul(j,ei)|0,a=(a=a+Math.imul(j,es)|0)+Math.imul(N,ei)|0,i=i+Math.imul(N,es)|0,n=n+Math.imul(B,ec)|0,a=(a=a+Math.imul(B,ef)|0)+Math.imul(P,ec)|0,i=i+Math.imul(P,ef)|0,n=n+Math.imul(k,el)|0,a=(a=a+Math.imul(k,eu)|0)+Math.imul(R,el)|0,i=i+Math.imul(R,eu)|0;var eR=(f+(n=n+Math.imul(I,ep)|0)|0)+((8191&(a=(a=a+Math.imul(I,eb)|0)+Math.imul(S,ep)|0))<<13)|0;f=((i=i+Math.imul(S,eb)|0)+(a>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(L,ei),a=(a=Math.imul(L,es))+Math.imul(D,ei)|0,i=Math.imul(D,es),n=n+Math.imul(j,ec)|0,a=(a=a+Math.imul(j,ef)|0)+Math.imul(N,ec)|0,i=i+Math.imul(N,ef)|0,n=n+Math.imul(B,el)|0,a=(a=a+Math.imul(B,eu)|0)+Math.imul(P,el)|0,i=i+Math.imul(P,eu)|0;var eM=(f+(n=n+Math.imul(k,ep)|0)|0)+((8191&(a=(a=a+Math.imul(k,eb)|0)+Math.imul(R,ep)|0))<<13)|0;f=((i=i+Math.imul(R,eb)|0)+(a>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(L,ec),a=(a=Math.imul(L,ef))+Math.imul(D,ec)|0,i=Math.imul(D,ef),n=n+Math.imul(j,el)|0,a=(a=a+Math.imul(j,eu)|0)+Math.imul(N,el)|0,i=i+Math.imul(N,eu)|0;var eB=(f+(n=n+Math.imul(B,ep)|0)|0)+((8191&(a=(a=a+Math.imul(B,eb)|0)+Math.imul(P,ep)|0))<<13)|0;f=((i=i+Math.imul(P,eb)|0)+(a>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(L,el),a=(a=Math.imul(L,eu))+Math.imul(D,el)|0,i=Math.imul(D,eu);var eP=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(a=(a=a+Math.imul(j,eb)|0)+Math.imul(N,ep)|0))<<13)|0;f=((i=i+Math.imul(N,eb)|0)+(a>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff;var eO=(f+(n=Math.imul(L,ep))|0)+((8191&(a=(a=Math.imul(L,eb))+Math.imul(D,ep)|0))<<13)|0;return f=((i=Math.imul(D,eb))+(a>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,c[0]=eg,c[1]=em,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=ex,c[6]=eE,c[7]=eA,c[8]=e_,c[9]=eT,c[10]=eI,c[11]=eS,c[12]=eC,c[13]=ek,c[14]=eR,c[15]=eM,c[16]=eB,c[17]=eP,c[18]=eO,0!==f&&(c[19]=f,r.length++),r};function b(e,t,r){return new g().mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,s&=0x3ffffff}r.words[i]=o,n=s,s=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var s=0;s>>=1)a++;return 1<>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s>=26,t+=(a/0x4000000|0)+(i>>>26),this.words[r]=0x3ffffff&i}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,r=e%26,a=(e-r)/26,i=0x3ffffff>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var a,i=e%26,s=Math.min((e-i)/26,this.length),o=0x3ffffff^0x3ffffff>>>i<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=a);c--){var d=0|this.words[c];this.words[c]=f<<26-i|d>>>i,f=d&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[a+r]=0x3ffffff&i}for(;a>26,this.words[a+r]=0x3ffffff&i;if(0===o)return this.strip();for(n(-1===o),o=0,a=0;a>26,this.words[a]=0x3ffffff&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,a=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),a.iushln(n),o=0|s.words[s.length-1]);var c=a.length-s.length;if("mod"!==t){(r=new i(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;l--){var u=(0|a.words[s.length+l])*0x4000000+(0|a.words[s.length+l-1]);for(u=Math.min(u/o|0,0x3ffffff),a._ishlnsubmul(s,u,l);0!==a.negative;)u--,a.negative=0,a._ishlnsubmul(s,1,l),a.isZero()||(a.negative^=1);r&&(r.words[l]=u)}return r&&r.strip(),a.strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:r||null,mod:a}},i.prototype.divmod=function(e,t,r){var a,s,o;return(n(!e.isZero()),this.isZero())?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(a=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(a=o.div.neg()),{div:a,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,a=this.length-1;a>=0;a--)r=(t*r+(0|this.words[a]))%e;return r},i.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var a=(0|this.words[r])+0x4000000*t;this.words[r]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),s=new i(0),o=new i(0),c=new i(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var d=r.clone(),l=t.clone();!t.isZero();){for(var u=0,h=1;(t.words[0]&h)==0&&u<26;++u,h<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(d),s.isub(l)),a.iushrn(1),s.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(d),c.isub(l)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(o),s.isub(c)):(r.isub(t),o.isub(a),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,a=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new i(1),o=new i(0),c=a.clone();r.cmpn(1)>0&&a.cmpn(1)>0;){for(var f=0,d=1;(r.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var l=0,u=1;(a.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(a.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(a)>=0?(r.isub(a),s.isub(o)):(a.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,a=1<>>26,o&=0x3ffffff,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new A(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){A.call(this,e),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)}y.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},a(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return m[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);n(!a.isZero());var o=new i(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,f).cmp(c);)d.redIAdd(c);for(var l=this.pow(d,a),u=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=s;0!==h.cmp(o);){for(var b=h,g=0;0!==b.cmp(o);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],d=c-1;d>=0;d--){var l=f>>d&1;if(a!==r[0]&&(a=this.sqr(a)),0===l&&0===s){o=0;continue}s<<=1,s|=l,(4==++o||0===n&&0===d)&&(a=this.mul(a,r[s]),o=0,s=0)}c=26}return a},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new _(e)},a(_,A),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):0>a.cmpn(0)&&(i=a.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):0>a.cmpn(0)&&(s=a.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{c448810625cd391d:"f68Cp"}],ktF95:[function(e,t,r){function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r>8,s=255&a;i?r.push(i,s):r.push(s)}return r},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],i20Ig:[function(e,t,r){var n;function a(e){this.rand=e}if(t.exports=function(e){return n||(n=new a(null)),n.generate(e)},t.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,n,a=e._getDoubles(),s=i(t,1,this._bitLength),c=(1<=r;d--)n=(n<<1)+s[d];f.push(n)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=c;h>0;h--){for(r=0;r=0;f--){for(var d=0;f>=0&&0===s[f];f--)d++;if(f>=0&&d++,c=c.dblp(d),f<0)break;var l=s[f];o(0!==l),c="affine"===e.type?l>0?c.mixedAdd(a[l-1>>1]):c.mixedAdd(a[-l-1>>1].neg()):l>0?c.add(a[l-1>>1]):c.add(a[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,a){var o,c,f,d=this._wnafT1,l=this._wnafT2,u=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,g=o;if(1!==d[b]||1!==d[g]){u[b]=i(r[b],d[b],this._bitLength),u[g]=i(r[g],d[g],this._bitLength),h=Math.max(u[b].length,h),h=Math.max(u[g].length,h);continue}var m=[t[b],null,null,t[g]];0===t[b].y.cmp(t[g].y)?(m[1]=t[b].add(t[g]),m[2]=t[b].toJ().mixedAdd(t[g].neg())):0===t[b].y.cmp(t[g].y.redNeg())?(m[1]=t[b].toJ().mixedAdd(t[g]),m[2]=t[b].add(t[g].neg())):(m[1]=t[b].toJ().mixedAdd(t[g]),m[2]=t[b].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[g]);for(c=0,h=Math.max(v[0].length,h),u[b]=Array(h),u[g]=Array(h);c=0;o--){for(var _=0;o>=0;){var T=!0;for(c=0;c=0&&_++,E=E.dblp(_),o<0)break;for(c=0;c0?f=l[c][I-1>>1]:I<0&&(f=l[c][-I-1>>1].neg()),E="affine"===f.type?E.mixedAdd(f):E.add(f))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;ai[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new a(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new a(e.a,16),b:new a(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),r=new a(2).toRed(t).redInvm(),n=r.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,o,c,f,d,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,h=this.n.clone(),p=new a(1),b=new a(0),g=new a(0),m=new a(1),y=0;0!==u.cmpn(0);){var v=h.div(u);f=h.sub(v.mul(u)),d=g.sub(v.mul(p));var w=m.sub(v.mul(b));if(!n&&0>f.cmp(l))t=c.neg(),r=p,n=f.neg(),i=d;else if(n&&2==++y)break;c=f,h=u,u=f,g=p,p=d,m=b,b=w}s=f.neg(),o=d;var x=n.sqr().add(i.sqr());return s.sqr().add(o.sqr()).cmp(x)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),s=a.mul(r.a),o=i.mul(n.a),c=a.mul(r.b),f=i.mul(n.b);return{k1:e.sub(s).sub(o),k2:c.add(f).neg()}},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},f.prototype.isInfinity=function(){return this.inf},f.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)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),s=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,s)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new a(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)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(d,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new d(this,e,t,r)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(a),c=i.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),d=f.redMul(o),l=n.redMul(f),u=c.redSqr().redIAdd(d).redISub(l).redISub(l),h=c.redMul(l.redISub(u)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(u,h,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=a.redSub(i);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),d=r.redMul(c),l=o.redSqr().redIAdd(f).redISub(d).redISub(d),u=o.redMul(d.redISub(l)).redISub(a.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(l,u,h)},d.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"9b7200322ea0bd41":"50zjA",e908eef846ce98f0:"8KQBB",fa489457be36c952:"h4pQt","5ee2d262e8e00c24":"04s3F"}],"9dq9F":[function(e,t,r){var n=e("cd263078fe314702"),a=e("4c5dd4b5d514f9a7"),i=e("b2892a3f844b98ca"),s=e("fac2086a481c03a0");function o(e){i.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){i.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(o,i),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},a(c,i.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new c(this,e,t)},o.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),a=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,a)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),s=a.redMul(n),o=t.z.redMul(i.redAdd(s).redSqr()),c=t.x.redMul(i.redISub(s).redSqr());return this.curve.point(o,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{cd263078fe314702:"8KQBB","4c5dd4b5d514f9a7":"h4pQt",b2892a3f844b98ca:"04s3F",fac2086a481c03a0:"50zjA"}],kAB3Y:[function(e,t,r){var n=e("24036cecc5252c77"),a=e("4e39001eaec012d1"),i=e("8745c3572864ca37"),s=e("d9dc67c0dc540569"),o=n.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(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 a(t,16),this.y=new a(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(i,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()))))}i(c,s),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(i.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)},c.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(i.redInvm());if(0===s.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),a=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(a)},i(f,s.BasePoint),c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),s=i.redSub(r),o=n.redSub(t),c=a.redMul(s),f=i.redMul(o),d=a.redMul(o),l=s.redMul(i);return this.curve.point(c,f,l,d)},f.prototype._projDbl=function(){var e,t,r,n,a,i,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(o)).redAdd(c);this.zOne?(e=s.redSub(o).redSub(c).redMul(f.redSub(this.curve.two)),t=f.redMul(n.redSub(c)),r=f.redSqr().redSub(f).redSub(f)):(a=this.z.redSqr(),i=f.redSub(a).redISub(a),e=s.redSub(o).redISub(c).redMul(i),t=f.redMul(n.redSub(c)),r=f.redMul(i))}else n=o.redAdd(c),a=this.curve._mulC(this.z).redSqr(),i=n.redSub(a).redSub(a),e=this.curve._mulC(s.redISub(n)).redMul(i),t=this.curve._mulC(n).redMul(o.redISub(c)),r=n.redMul(i);return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),s=a.redSub(n),o=a.redAdd(n),c=r.redAdd(t),f=i.redMul(s),d=o.redMul(c),l=i.redMul(c),u=s.redMul(o);return this.curve.point(f,d,u,l)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),a=n.redSqr(),i=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(i).redMul(s),c=a.redSub(o),f=a.redAdd(o),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(s),l=n.redMul(c).redMul(d);return this.curve.twisted?(t=n.redMul(f).redMul(s.redSub(this.curve._mulA(i))),r=c.redMul(f)):(t=n.redMul(f).redMul(s.redSub(i)),r=this.curve._mulC(c).redMul(f)),this.curve.point(l,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.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},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"24036cecc5252c77":"50zjA","4e39001eaec012d1":"8KQBB","8745c3572864ca37":"h4pQt",d9dc67c0dc540569:"04s3F"}],i9du9:[function(e,t,r){var n,a=e("fedf5c04b8ff9981"),i=e("8f6f5c3874bf6cd6"),s=e("61df58b6304696eb").assert;function o(e){"short"===e.type?this.curve=new i.short(e):"edwards"===e.type?this.curve=new i.edwards(e):this.curve=new i.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("ccbfc35a6f91384f")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{fedf5c04b8ff9981:"5JqHI","8f6f5c3874bf6cd6":"5nhG1","61df58b6304696eb":"50zjA",ccbfc35a6f91384f:"6e6Ja"}],"6e6Ja":[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],"1bkN5":[function(e,t,r){var n=e("48df900b040aa803"),a=e("be724e50700d36af"),i=e("9c3ffe98fc20486"),s=e("cb36249f40c2dd5a"),o=e("809ca270739a3325"),c=i.assert,f=e("740a0d9341512bb7"),d=e("f1769645e504a8d");function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=l,l.prototype.keyPair=function(e){return new f(this,e)},l.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}},l.prototype._truncateToN=function(e,t,r){if(n.isBN(e)||"number"==typeof e)a=(e=new n(e,16)).byteLength();else if("object"==typeof e)a=e.length,e=new n(e,16);else{var a,i=e.toString();a=i.length+1>>>1,e=new n(i,16)}"number"!=typeof r&&(r=8*a);var s=r-this.n.bitLength();return(s>0&&(e=e.ushrn(s)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},l.prototype.sign=function(e,t,r,i){if("object"==typeof r&&(i=r,r=null),i||(i={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){c("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),c(e.length>>>0===e.length);for(var s=0;s=(b=this._truncateToN(b,!0)).cmpn(1)||b.cmp(h)>=0)){var g=this.g.mul(b);if(!g.isInfinity()){var m=g.getX(),y=m.umod(this.n);if(0!==y.cmpn(0)){var v=b.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var w=(g.getY().isOdd()?1:0)|(0!==m.cmp(y)?2:0);return i.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new d({r:y,s:v,recoveryParam:w})}}}}}},l.prototype.verify=function(e,t,r,n,a){a||(a={}),e=this._truncateToN(e,!1,a.msgBitLength),r=this.keyFromPublic(r,n);var i,s=(t=new d(t,"hex")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var c=o.invm(this.n),f=c.mul(e).umod(this.n),l=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(f,r.getPublic(),l)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(f,r.getPublic(),l)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},l.prototype.recoverPubKey=function(e,t,r,a){c((3&r)===r,"The recovery param is more than two bits"),t=new d(t,a);var i=this.n,s=new n(e),o=t.r,f=t.s,l=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),l):this.curve.pointFromX(o,l);var h=t.r.invm(i),p=i.sub(s).mul(h).umod(i),b=f.mul(h).umod(i);return this.g.mulAdd(p,o,b)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new d(t,n)).recoveryParam)return t.recoveryParam;for(var a,i=0;i<4;i++){try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw Error("Unable to find valid recovery factor")}},{"48df900b040aa803":"8KQBB",be724e50700d36af:"L1oXl","9c3ffe98fc20486":"50zjA",cb36249f40c2dd5a:"i9du9","809ca270739a3325":"i20Ig","740a0d9341512bb7":"2eMx0",f1769645e504a8d:"dkfid"}],L1oXl:[function(e,t,r){var n=e("cd88b86eb6f6cf9e"),a=e("ec4d32ca8fe74b66"),i=e("ed42ab1aec14c44b");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"}},{"11716233cbf33814":"8KQBB",e12911e09f5f9b89:"50zjA"}],dkfid:[function(e,t,r){var n=e("cf5e1fe4e5915f3a"),a=e("ca9bdc007e7d27f0"),i=a.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var a=0,i=0,s=t.place;i>>=0;return!(a<=127)&&(t.place=s,a)}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}t.exports=s,s.prototype._importDER=function(e,t){e=a.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var i=c(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var s=c(e,r);if(!1===s||(128&e[r.place])!=0)return!1;var f=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var d=c(e,r);if(!1===d||e.length!==d+r.place||(128&e[r.place])!=0)return!1;var l=e.slice(r.place,d+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(f),this.s=new n(l),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];d(n,t.length),(n=n.concat(t)).push(2),d(n,r.length);var i=n.concat(r),s=[48];return d(s,i.length),s=s.concat(i),a.encode(s,e)}},{cf5e1fe4e5915f3a:"8KQBB",ca9bdc007e7d27f0:"50zjA"}],hqEpL:[function(e,t,r){var n=e("7364edd35eeff1a"),a=e("fac0b8bcc1ade767"),i=e("1afcee14a6da8e2"),s=i.assert,o=i.parseBytes,c=e("956302d377efb972"),f=e("b8824d36685deb5a");function d(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=d,d.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),a=this.g.mul(n),i=this.encodePoint(a),s=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:i})},d.prototype.verify=function(e,t,r){if(e=o(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),a=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(a)).eq(i)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;ta),n.export(r,"thirdparty",()=>i);var a=e("./hdkey.js"),i=e("./thirdparty.js"),s=e("./wallet.js");n.exportAll(s,r)},{"./hdkey.js":"a34bW","./thirdparty.js":"e1Z8L","./wallet.js":"3UJPo","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],a34bW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EthereumHDKey",()=>o);var a=e("ethereum-cryptography/bip39/index.js"),i=e("ethereum-cryptography/hdkey.js"),s=e("./wallet.js");class o{constructor(e){this._hdkey=e}static fromMasterSeed(e){return new o((0,i.HDKey).fromMasterSeed(e))}static fromMnemonic(e,t){return o.fromMasterSeed((0,a.mnemonicToSeedSync)(e,t))}static fromExtendedKey(e){return new o((0,i.HDKey).fromExtendedKey(e))}privateExtendedKey(){if(!this._hdkey.privateExtendedKey)throw Error("This is a public key only wallet");return this._hdkey.privateExtendedKey}publicExtendedKey(){return this._hdkey.publicExtendedKey}derivePath(e){return new o(this._hdkey.derive(e))}deriveChild(e){return new o(this._hdkey.deriveChild(e))}getWallet(){if(this._hdkey.privateKey)return(0,s.Wallet).fromPrivateKey(this._hdkey.privateKey);if(!this._hdkey.publicKey)throw Error("No hdkey");return(0,s.Wallet).fromPublicKey(this._hdkey.publicKey,!0)}}},{"ethereum-cryptography/bip39/index.js":"bX3LE","ethereum-cryptography/hdkey.js":"2aIzj","./wallet.js":"3UJPo","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bX3LE:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mnemonicToSeedSync=r.mnemonicToSeed=r.validateMnemonic=r.entropyToMnemonic=r.mnemonicToEntropy=r.generateMnemonic=void 0;var n=e("e3bdb4717155c62c");Object.defineProperty(r,"generateMnemonic",{enumerable:!0,get:function(){return n.generateMnemonic}}),Object.defineProperty(r,"mnemonicToEntropy",{enumerable:!0,get:function(){return n.mnemonicToEntropy}}),Object.defineProperty(r,"entropyToMnemonic",{enumerable:!0,get:function(){return n.entropyToMnemonic}}),Object.defineProperty(r,"validateMnemonic",{enumerable:!0,get:function(){return n.validateMnemonic}}),Object.defineProperty(r,"mnemonicToSeed",{enumerable:!0,get:function(){return n.mnemonicToSeed}}),Object.defineProperty(r,"mnemonicToSeedSync",{enumerable:!0,get:function(){return n.mnemonicToSeedSync}})},{e3bdb4717155c62c:"f147I"}],f147I:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mnemonicToSeedSync=r.mnemonicToSeed=r.validateMnemonic=r.entropyToMnemonic=r.mnemonicToEntropy=r.generateMnemonic=void 0;/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */let n=e("f7864c4709c2384f"),a=e("4d2e3df2a136199a"),i=e("88258950a302f96a"),s=e("22611d19b6a095fb"),o=e("a9a09c9bde0655aa"),c=e("1d4da54013673758"),f=e=>"あいこくしん"===e[0];function d(e){if("string"!=typeof e)throw TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function l(e){let t=d(e),r=t.split(" ");if(![12,15,18,21,24].includes(r.length))throw Error("Invalid mnemonic");return{nfkd:t,words:r}}function u(e){(0,n.bytes)(e,16,20,24,28,32)}r.generateMnemonic=function(e,t=128){if((0,n.number)(t),t%32!=0||t>256)throw TypeError("Invalid entropy");return g((0,o.randomBytes)(t/8),e)};let h=e=>{let t=8-e.length/4;return new Uint8Array([(0,i.sha256)(e)[0]>>t<{if("string"!=typeof e)throw Error(`Wordlist: non-string element: ${e}`)}),c.utils.chain(c.utils.checksum(1,h),c.utils.radix2(11,!0),c.utils.alphabet(e))}function b(e,t){let{words:r}=l(e),n=p(t).decode(r);return u(n),n}function g(e,t){return u(e),p(t).encode(e).join(f(t)?" ":" ")}r.mnemonicToEntropy=b,r.entropyToMnemonic=g,r.validateMnemonic=function(e,t){try{b(e,t)}catch(e){return!1}return!0};let m=e=>d(`mnemonic${e}`);r.mnemonicToSeed=function(e,t=""){return(0,a.pbkdf2Async)(s.sha512,l(e).nfkd,m(t),{c:2048,dkLen:64})},r.mnemonicToSeedSync=function(e,t=""){return(0,a.pbkdf2)(s.sha512,l(e).nfkd,m(t),{c:2048,dkLen:64})}},{f7864c4709c2384f:"8plnA","4d2e3df2a136199a":"f7C4W","88258950a302f96a":"agPjf","22611d19b6a095fb":"4aMkd",a9a09c9bde0655aa:"7z4fq","1d4da54013673758":"3fgTM"}],"8plnA":[function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function a(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function c(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function f(e,t){s(e);let r=t.outputLen;if(e.length= 1");let d=(0,i.toBytes)(t),l=(0,i.toBytes)(r),u=new Uint8Array(c),h=a.hmac.create(e,d),p=h._cloneInto().update(l);return{c:o,dkLen:c,asyncTick:f,DK:u,PRF:h,PRFSalt:p}}function o(e,t,r,n,a){return e.destroy(),t.destroy(),n&&n.destroy(),a.fill(0),r}async function c(e,t,r,n){let a;let{c,dkLen:f,asyncTick:d,DK:l,PRF:u,PRFSalt:h}=s(e,t,r,n),p=new Uint8Array(4),b=(0,i.createView)(p),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t{u._cloneInto(a).update(g).digestInto(g);for(let e=0;ei?e.create().update(r).digest():r);for(let e=0;enew i(e,t).update(r).digest(),r.hmac.create=(e,t)=>new i(e,t)},{"3db621a8d1e9ccec":"8plnA","499b5a51fbb66701":"7z4fq"}],"7z4fq":[function(e,t,r){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(r,"__esModule",{value:!0}),r.randomBytes=r.wrapXOFConstructorWithOpts=r.wrapConstructorWithOpts=r.wrapConstructor=r.checkOpts=r.Hash=r.concatBytes=r.toBytes=r.utf8ToBytes=r.asyncLoop=r.nextTick=r.hexToBytes=r.bytesToHex=r.byteSwap32=r.byteSwapIfBE=r.byteSwap=r.isLE=r.rotl=r.rotr=r.createView=r.u32=r.u8=r.isBytes=void 0;let n=e("f3255f6f949f434c"),a=e("7ce28ac427a3c82b");r.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name},r.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),r.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),r.rotr=(e,t)=>e<<32-t|e>>>t,r.rotl=(e,t)=>e<>>32-t>>>0,r.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],r.byteSwap=e=>e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255,r.byteSwapIfBE=r.isLE?e=>e:e=>(0,r.byteSwap)(e),r.byteSwap32=function(e){for(let t=0;tt.toString(16).padStart(2,"0"));r.bytesToHex=function(e){(0,a.bytes)(e);let t="";for(let r=0;r=s._0&&e<=s._9?e-s._0:e>=s._A&&e<=s._F?e-(s._A-10):e>=s._a&&e<=s._f?e-(s._a-10):void 0}r.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t{};async function f(e,t,n){let a=Date.now();for(let i=0;i=0&&ee().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},r.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},{f3255f6f949f434c:"1lbMU","7ce28ac427a3c82b":"8plnA"}],"1lbMU":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},{}],agPjf:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sha224=r.sha256=void 0;let n=e("c75c45a88cade222"),a=e("b4d605248533e31c"),i=/* @__PURE__ */new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),s=/* @__PURE__ */new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),o=/* @__PURE__ */new Uint32Array(64);class c extends n.HashMD{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){let{A:e,B:t,C:r,D:n,E:a,F:i,G:s,H:o}=this;return[e,t,r,n,a,i,s,o]}set(e,t,r,n,a,i,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|i,this.G=0|s,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)o[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=o[e-15],r=o[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,i=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;o[e]=i+o[e-7]+n+o[e-16]|0}let{A:r,B:s,C:c,D:f,E:d,F:l,G:u,H:h}=this;for(let e=0;e<64;e++){let t=h+((0,a.rotr)(d,6)^(0,a.rotr)(d,11)^(0,a.rotr)(d,25))+(0,n.Chi)(d,l,u)+i[e]+o[e]|0,p=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,n.Maj)(r,s,c)|0;h=u,u=l,l=d,d=f+t|0,f=c,c=s,s=r,r=t+p|0}r=r+this.A|0,s=s+this.B|0,c=c+this.C|0,f=f+this.D|0,d=d+this.E|0,l=l+this.F|0,u=u+this.G|0,h=h+this.H|0,this.set(r,s,c,f,d,l,u,h)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends c{constructor(){super(),this.A=-0x3efa6128,this.B=0x367cd507,this.C=0x3070dd17,this.D=-0x8f1a6c7,this.E=-4191439,this.F=0x68581511,this.G=0x64f98fa7,this.H=-0x4105b05c,this.outputLen=28}}r.sha256=(0,a.wrapConstructor)(()=>new c),r.sha224=(0,a.wrapConstructor)(()=>new f)},{c75c45a88cade222:"lVY2T",b4d605248533e31c:"7z4fq"}],lVY2T:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HashMD=r.Maj=r.Chi=void 0;let n=e("3f2ffdfbb082128"),a=e("aaa88f563c4101b3");r.Chi=(e,t,r)=>e&t^~e&r,r.Maj=(e,t,r)=>e&t^e&r^t&r;class i extends a.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:i}=this,s=(e=(0,a.toBytes)(e)).length;for(let n=0;ni-o&&(this.process(r,0),o=0);for(let e=o;e>a&i),o=Number(r&i),c=n?4:0,f=n?0:4;e.setUint32(t+c,s,n),e.setUint32(t+f,o,n)}(r,i-8,BigInt(8*this.length),s),this.process(r,0);let c=(0,a.createView)(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=f/4,l=this.get();if(d>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;eBigInt(e))),c=/* @__PURE__ */new Uint32Array(80),f=/* @__PURE__ */new Uint32Array(80);class d extends n.HashMD{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:a,Cl:i,Dh:s,Dl:o,Eh:c,El:f,Fh:d,Fl:l,Gh:u,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b]}set(e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|a,this.Cl=0|i,this.Dh=0|s,this.Dl=0|o,this.Eh=0|c,this.El=0|f,this.Fh=0|d,this.Fl=0|l,this.Gh=0|u,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),f[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|c[e-15],r=0|f[e-15],n=a.default.rotrSH(t,r,1)^a.default.rotrSH(t,r,8)^a.default.shrSH(t,r,7),i=a.default.rotrSL(t,r,1)^a.default.rotrSL(t,r,8)^a.default.shrSL(t,r,7),s=0|c[e-2],o=0|f[e-2],d=a.default.rotrSH(s,o,19)^a.default.rotrBH(s,o,61)^a.default.shrSH(s,o,6),l=a.default.rotrSL(s,o,19)^a.default.rotrBL(s,o,61)^a.default.shrSL(s,o,6),u=a.default.add4L(i,l,f[e-7],f[e-16]),h=a.default.add4H(u,n,d,c[e-7],c[e-16]);c[e]=0|h,f[e]=0|u}let{Ah:r,Al:n,Bh:i,Bl:d,Ch:l,Cl:u,Dh:h,Dl:p,Eh:b,El:g,Fh:m,Fl:y,Gh:v,Gl:w,Hh:x,Hl:E}=this;for(let e=0;e<80;e++){let t=a.default.rotrSH(b,g,14)^a.default.rotrSH(b,g,18)^a.default.rotrBH(b,g,41),A=a.default.rotrSL(b,g,14)^a.default.rotrSL(b,g,18)^a.default.rotrBL(b,g,41),_=b&m^~b&v,T=g&y^~g&w,I=a.default.add5L(E,A,T,o[e],f[e]),S=a.default.add5H(I,x,t,_,s[e],c[e]),C=0|I,k=a.default.rotrSH(r,n,28)^a.default.rotrBH(r,n,34)^a.default.rotrBH(r,n,39),R=a.default.rotrSL(r,n,28)^a.default.rotrBL(r,n,34)^a.default.rotrBL(r,n,39),M=r&i^r&l^i&l,B=n&d^n&u^d&u;x=0|v,E=0|w,v=0|m,w=0|y,m=0|b,y=0|g,({h:b,l:g}=a.default.add(0|h,0|p,0|S,0|C)),h=0|l,p=0|u,l=0|i,u=0|d,i=0|r,d=0|n;let P=a.default.add3L(C,R,B);r=a.default.add3H(P,S,k,M),n=0|P}({h:r,l:n}=a.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:d}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|d)),({h:l,l:u}=a.default.add(0|this.Ch,0|this.Cl,0|l,0|u)),({h:h,l:p}=a.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:b,l:g}=a.default.add(0|this.Eh,0|this.El,0|b,0|g)),({h:m,l:y}=a.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:v,l:w}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:x,l:E}=a.default.add(0|this.Hh,0|this.Hl,0|x,0|E)),this.set(r,n,i,d,l,u,h,p,b,g,m,y,v,w,x,E)}roundClean(){c.fill(0),f.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)}}r.SHA512=d;class l extends d{constructor(){super(),this.Ah=-0x73c2c838,this.Al=0x19544da2,this.Bh=0x73e19966,this.Bl=-0x76232b2a,this.Ch=0x1dfab7ae,this.Cl=0x32ff9c82,this.Dh=0x679dd514,this.Dl=0x582f9fcf,this.Eh=0xf6d2b69,this.El=0x7bd44da8,this.Fh=0x77e36f73,this.Fl=0x4c48942,this.Gh=0x3f9d85a8,this.Gl=0x6a1d36c8,this.Hh=0x1112e6ad,this.Hl=-0x6e296d5f,this.outputLen=28}}class u extends d{constructor(){super(),this.Ah=0x22312194,this.Al=-0x3d408d4,this.Bh=-0x60aaa05d,this.Bl=-0x37b39b3e,this.Ch=0x2393b86b,this.Cl=0x6f53b151,this.Dh=-0x69c788e7,this.Dl=0x5940eabd,this.Eh=-0x69d7c11e,this.El=-0x5771001d,this.Fh=-0x41a1e1db,this.Fl=0x53863992,this.Gh=0x2b0199fc,this.Gl=0x2c85b8aa,this.Hh=0xeb72ddc,this.Hl=-0x7e3ad35e,this.outputLen=32}}class h extends d{constructor(){super(),this.Ah=-0x344462a3,this.Al=-0x3efa6128,this.Bh=0x629a292a,this.Bl=0x367cd507,this.Ch=-0x6ea6fea6,this.Cl=0x3070dd17,this.Dh=0x152fecd8,this.Dl=-0x8f1a6c7,this.Eh=0x67332667,this.El=-4191439,this.Fh=-0x714bb579,this.Fl=0x68581511,this.Gh=-0x24f3d1f3,this.Gl=0x64f98fa7,this.Hh=0x47b5481d,this.Hl=-0x4105b05c,this.outputLen=48}}r.sha512=(0,i.wrapConstructor)(()=>new d),r.sha512_224=(0,i.wrapConstructor)(()=>new l),r.sha512_256=(0,i.wrapConstructor)(()=>new u),r.sha384=(0,i.wrapConstructor)(()=>new h)},{f1a1671ebab97f8:"lVY2T","45afced0143a621":"6NT0D","4f8ee58a55b36a62":"7z4fq"}],"6NT0D":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.add=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=r.split=r.fromBig=void 0;let n=/* @__PURE__ */BigInt(0x100000000-1),a=/* @__PURE__ */BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>a&n)}:{h:0|Number(e>>a&n),l:0|Number(e&n)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);r.toBig=o;let c=(e,t,r)=>e>>>r;r.shrSH=c;let f=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=f;let d=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=d;let l=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=l;let u=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=u;let h=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=h;let p=(e,t)=>t;r.rotr32H=p;let b=(e,t)=>e;r.rotr32L=b;let g=(e,t,r)=>e<>>32-r;r.rotlSH=g;let m=(e,t,r)=>t<>>32-r;r.rotlSL=m;let y=(e,t,r)=>t<>>64-r;r.rotlBH=y;let v=(e,t,r)=>e<>>64-r;function w(e,t,r,n){let a=(t>>>0)+(n>>>0);return{h:e+r+(a/0x100000000|0)|0,l:0|a}}r.rotlBL=v,r.add=w;let x=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=x;let E=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;r.add3H=E;let A=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=A;let _=(e,t,r,n,a)=>t+r+n+a+(e/0x100000000|0)|0;r.add4H=_;let T=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);r.add5L=T;let I=(e,t,r,n,a,i)=>t+r+n+a+i+(e/0x100000000|0)|0;r.add5H=I,r.default={fromBig:i,split:s,toBig:o,shrSH:c,shrSL:f,rotrSH:d,rotrSL:l,rotrBH:u,rotrBL:h,rotr32H:p,rotr32L:b,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:v,add:w,add3L:x,add3H:E,add4L:A,add4H:_,add5H:I,add5L:T}},{}],"3fgTM":[function(e,t,r){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if(!Number.isSafeInteger(e))throw Error(`Wrong integer: ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(...e){let t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map(e=>e.encode).reduceRight(r,t),decode:e.map(e=>e.decode).reduce(r,t)}}function o(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(a(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let r=e.indexOf(t);if(-1===r)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return r})}}}function c(e=""){if("string"!=typeof e)throw Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw Error("join.decode input should be string");return t.split(e)}}}function f(e,t="="){if(a(e),"string"!=typeof t)throw Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw Error(`padding.encode: non-string input=${e}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw Error(`padding.decode: non-string input=${e}`);let n=r.length;if(n*e%8)throw Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if(!((n-1)*e%8))throw Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}function d(e){if("function"!=typeof e)throw Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function l(e,t,r){if(t<2)throw Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(r<2)throw Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(e))throw Error("convertRadix: data should be array");if(!e.length)return[];let n=0,i=[],s=Array.from(e);for(s.forEach(e=>{if(a(e),e<0||e>=t)throw Error(`Wrong integer: ${e}`)});;){let e=0,a=!0;for(let i=n;ia),n.export(r,"utils",()=>v),n.export(r,"base16",()=>w),n.export(r,"base32",()=>x),n.export(r,"base32nopad",()=>E),n.export(r,"base32hex",()=>A),n.export(r,"base32hexnopad",()=>_),n.export(r,"base32crockford",()=>T),n.export(r,"base64",()=>I),n.export(r,"base64nopad",()=>S),n.export(r,"base64url",()=>C),n.export(r,"base64urlnopad",()=>k),n.export(r,"base58",()=>M),n.export(r,"base58flickr",()=>B),n.export(r,"base58xrp",()=>P),n.export(r,"base58xmr",()=>j),n.export(r,"createBase58check",()=>N),n.export(r,"base58check",()=>U),n.export(r,"bech32",()=>q),n.export(r,"bech32m",()=>z),n.export(r,"utf8",()=>G),n.export(r,"hex",()=>K),n.export(r,"bytesToString",()=>J),n.export(r,"str",()=>Q),n.export(r,"stringToBytes",()=>Z),n.export(r,"bytes",()=>X);let u=(e,t)=>t?u(t,e%t):e,h=(e,t)=>e+(t-u(e,t));function p(e,t,r,n){if(!Array.isArray(e))throw Error("convertRadix2: data should be array");if(t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw Error(`convertRadix2: wrong to=${r}`);if(h(t,r)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${h(t,r)}`);let i=0,s=0,o=2**r-1,c=[];for(let n of e){if(a(n),n>=2**t)throw Error(`convertRadix2: invalid data word=${n} from=${t}`);if(i=i<32)throw Error(`convertRadix2: carry overflow pos=${s} from=${t}`);for(s+=t;s>=r;s-=r)c.push((i>>s-r&o)>>>0);i&=2**s-1}if(i=i<=t)throw Error("Excess padding");if(!n&&i)throw Error(`Non-zero padding: ${i}`);return n&&s>0&&c.push(i>>>0),c}function b(e){return a(e),{encode:t=>{if(!i(t))throw Error("radix.encode input should be Uint8Array");return l(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("radix.decode input should be array of numbers");return Uint8Array.from(l(t,e,256))}}}function g(e,t=!1){if(a(e),e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(h(8,e)>32||h(e,8)>32)throw Error("radix2: carry overflow");return{encode:r=>{if(!i(r))throw Error("radix2.encode input should be Uint8Array");return p(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw Error("radix2.decode input should be array of numbers");return Uint8Array.from(p(r,e,8,t))}}}function m(e){if("function"!=typeof e)throw Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function y(e,t){if(a(e),"function"!=typeof t)throw Error("checksum fn should be function");return{encode(r){if(!i(r))throw Error("checksum.encode: input should be Uint8Array");let n=t(r).slice(0,e),a=new Uint8Array(r.length+e);return a.set(r),a.set(n,r.length),a},decode(r){if(!i(r))throw Error("checksum.decode: input should be Uint8Array");let n=r.slice(0,-e),a=t(n).slice(0,e),s=r.slice(-e);for(let t=0;te.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),I=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),f(6),c("")),S=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c("")),C=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),f(6),c("")),k=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c("")),R=e=>s(b(58),o(e),c("")),M=/* @__PURE__ */R("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),B=/* @__PURE__ */R("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),P=/* @__PURE__ */R("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),O=[0,2,3,5,6,7,9,10,11],j={encode(e){let t="";for(let r=0;rs(y(4,t=>e(e(t))),M),U=N,L=/* @__PURE__ */s(o("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),c("")),D=[0x3b6a57b2,0x26508e6d,0x1ea119fa,0x3d4233dd,0x2a1462b3];function F(e){let t=e>>25,r=(0x1ffffff&e)<<5;for(let e=0;e>e&1)==1&&(r^=D[e]);return r}function H(e,t,r=1){let n=e.length,a=1;for(let t=0;t126)throw Error(`Invalid prefix (${e})`);a=F(a)^r>>5}a=F(a);for(let t=0;tr)throw TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${r})`);let n=e.toLowerCase();if(e!==n&&e!==e.toUpperCase())throw Error("String must be lowercase or uppercase");let a=n.lastIndexOf("1");if(0===a||-1===a)throw Error('Letter "1" must be present between prefix and data only');let i=n.slice(0,a),o=n.slice(a+1);if(o.length<6)throw Error("Data must be at least 6 characters long");let c=L.decode(o).slice(0,-6),f=H(i,c,t);if(!o.endsWith(f))throw Error(`Invalid checksum in ${e}: expected "${f}"`);return{prefix:i,words:c}}let o=m(s);return{encode:function(e,r,n=90){if("string"!=typeof e)throw Error(`bech32.encode prefix should be string, not ${typeof e}`);if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw Error(`bech32.encode words should be array of numbers, not ${typeof r}`);if(0===e.length)throw TypeError(`Invalid prefix length ${e.length}`);let a=e.length+7+r.length;if(!1!==n&&a>n)throw TypeError(`Length ${a} exceeds limit ${n}`);let i=e.toLowerCase(),s=H(i,r,t);return`${i}1${L.encode(r)}${s}`},decode:s,decodeToBytes:function(e){let{prefix:t,words:r}=s(e,!1);return{prefix:t,words:r,bytes:n(r)}},decodeUnsafe:o,fromWords:n,fromWordsUnsafe:i,toWords:a}}let q=/* @__PURE__ */V("bech32"),z=/* @__PURE__ */V("bech32m"),G={encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)},K=/* @__PURE__ */s(g(4),o("0123456789abcdef"),c(""),d(e=>{if("string"!=typeof e||e.length%2)throw TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),W={utf8:G,hex:K,base16:w,base32:x,base64:I,base64url:C,base58:M,base58xmr:j},$="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",J=(e,t)=>{if("string"!=typeof e||!W.hasOwnProperty(e))throw TypeError($);if(!i(t))throw TypeError("bytesToString() expects Uint8Array");return W[e].encode(t)},Q=J,Z=(e,t)=>{if(!W.hasOwnProperty(e))throw TypeError($);if("string"!=typeof t)throw TypeError("stringToBytes() expects string");return W[e].decode(t)},X=Z},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2aIzj":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HDKey=r.HARDENED_OFFSET=void 0;var n=e("9ff6de7a438a4d87");Object.defineProperty(r,"HARDENED_OFFSET",{enumerable:!0,get:function(){return n.HARDENED_OFFSET}}),Object.defineProperty(r,"HDKey",{enumerable:!0,get:function(){return n.HDKey}})},{"9ff6de7a438a4d87":"5cLax"}],"5cLax":[function(e,t,r){/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"HARDENED_OFFSET",()=>y),n.export(r,"HDKey",()=>E);var a=e("@noble/hashes/hmac"),i=e("@noble/hashes/ripemd160"),s=e("@noble/hashes/sha256"),o=e("@noble/hashes/sha512"),c=e("@noble/hashes/_assert"),f=e("@noble/hashes/utils"),d=e("@noble/curves/secp256k1"),l=e("@noble/curves/abstract/modular"),u=e("@scure/base");let h=d.secp256k1.ProjectivePoint,p=(0,u.createBase58check)(s.sha256);function b(e){return BigInt(`0x${(0,f.bytesToHex)(e)}`)}let g=(0,f.utf8ToBytes)("Bitcoin seed"),m={private:0x488ade4,public:0x488b21e},y=0x80000000,v=e=>(0,i.ripemd160)((0,s.sha256)(e)),w=e=>(0,f.createView)(e).getUint32(0,!1),x=e=>{if(!Number.isSafeInteger(e)||e<0||e>0x100000000-1)throw Error(`Invalid number=${e}. Should be from 0 to 2 ** 32 - 1`);let t=new Uint8Array(4);return(0,f.createView)(t).setUint32(0,e,!1),t};class E{get fingerprint(){if(!this.pubHash)throw Error("No publicKey set!");return w(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){let e=this.privateKey;if(!e)throw Error("No private key");return p.encode(this.serialize(this.versions.private,(0,f.concatBytes)(new Uint8Array([0]),e)))}get publicExtendedKey(){if(!this.pubKey)throw Error("No public key");return p.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(e,t=m){if((0,c.bytes)(e),8*e.length<128||8*e.length>512)throw Error(`HDKey: wrong seed length=${e.length}. Should be between 128 and 512 bits; 256 bits is advised)`);let r=(0,a.hmac)(o.sha512,g,e);return new E({versions:t,chainCode:r.slice(32),privateKey:r.slice(0,32)})}static fromExtendedKey(e,t=m){let r=p.decode(e),n=(0,f.createView)(r),a=n.getUint32(0,!1),i={versions:t,depth:r[4],parentFingerprint:n.getUint32(5,!1),index:n.getUint32(9,!1),chainCode:r.slice(13,45)},s=r.slice(45),o=0===s[0];if(a!==t[o?"private":"public"])throw Error("Version mismatch");return new E(o?{...i,privateKey:s.slice(1)}:{...i,publicKey:s})}static fromJSON(e){return E.fromExtendedKey(e.xpriv)}constructor(e){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!e||"object"!=typeof e)throw Error("HDKey.constructor must not be called directly");if(this.versions=e.versions||m,this.depth=e.depth||0,this.chainCode=e.chainCode||null,this.index=e.index||0,this.parentFingerprint=e.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw Error("HDKey: zero depth with non-zero index/parent fingerprint");if(e.publicKey&&e.privateKey)throw Error("HDKey: publicKey and privateKey at same time.");if(e.privateKey){var t;if(!(0,d.secp256k1).utils.isValidPrivateKey(e.privateKey))throw Error("Invalid private key");this.privKey="bigint"==typeof e.privateKey?e.privateKey:b(e.privateKey),this.privKeyBytes=(t=this.privKey,(0,f.hexToBytes)(t.toString(16).padStart(64,"0"))),this.pubKey=(0,d.secp256k1).getPublicKey(e.privateKey,!0)}else if(e.publicKey)this.pubKey=h.fromHex(e.publicKey).toRawBytes(!0);else throw Error("HDKey: no public or private key provided");this.pubHash=v(this.pubKey)}derive(e){if(!/^[mM]'?/.test(e))throw Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(e))return this;let t=e.replace(/^[mM]'?\//,"").split("/"),r=this;for(let e of t){let t=/^(\d+)('?)$/.exec(e),n=t&&t[1];if(!t||3!==t.length||"string"!=typeof n)throw Error(`Invalid child index: ${e}`);let a=+n;if(!Number.isSafeInteger(a)||a>=y)throw Error("Invalid index");"'"===t[2]&&(a+=y),r=r.deriveChild(a)}return r}deriveChild(e){if(!this.pubKey||!this.chainCode)throw Error("No publicKey or chainCode set");let t=x(e);if(e>=y){let e=this.privateKey;if(!e)throw Error("Could not derive hardened child key");t=(0,f.concatBytes)(new Uint8Array([0]),e,t)}else t=(0,f.concatBytes)(this.pubKey,t);let r=(0,a.hmac)(o.sha512,this.chainCode,t),n=b(r.slice(0,32)),i=r.slice(32);if(!(0,d.secp256k1).utils.isValidPrivateKey(n))throw Error("Tweak bigger than curve order");let s={versions:this.versions,chainCode:i,depth:this.depth+1,parentFingerprint:this.fingerprint,index:e};try{if(this.privateKey){let e=(0,l.mod)(this.privKey+n,d.secp256k1.CURVE.n);if(!(0,d.secp256k1).utils.isValidPrivateKey(e))throw Error("The tweak was out of range or the resulted private key is invalid");s.privateKey=e}else{let e=h.fromHex(this.pubKey).add(h.fromPrivateKey(n));if(e.equals(h.ZERO))throw Error("The tweak was equal to negative P, which made the result key invalid");s.publicKey=e.toRawBytes(!0)}return new E(s)}catch(t){return this.deriveChild(e+1)}}sign(e){if(!this.privateKey)throw Error("No privateKey set!");return(0,c.bytes)(e,32),(0,d.secp256k1).sign(e,this.privKey).toCompactRawBytes()}verify(e,t){let r;if((0,c.bytes)(e,32),(0,c.bytes)(t,64),!this.publicKey)throw Error("No publicKey set!");try{r=(0,d.secp256k1).Signature.fromCompact(t)}catch(e){return!1}return(0,d.secp256k1).verify(r,e,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(e,t){if(!this.chainCode)throw Error("No chainCode set");return(0,c.bytes)(t,33),(0,f.concatBytes)(x(e),new Uint8Array([this.depth]),x(this.parentFingerprint),x(this.index),this.chainCode,t)}}},{"@noble/hashes/hmac":"fBg5u","@noble/hashes/ripemd160":"gjrvR","@noble/hashes/sha256":"agPjf","@noble/hashes/sha512":"4aMkd","@noble/hashes/_assert":"8plnA","@noble/hashes/utils":"7z4fq","@noble/curves/secp256k1":"3Ka9u","@noble/curves/abstract/modular":"2bsk6","@scure/base":"3fgTM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gjrvR:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ripemd160=r.RIPEMD160=void 0;let n=e("7fc4ec46c688a393"),a=e("f56f80a209147498"),i=/* @__PURE__ */new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=/* @__PURE__ */new Uint8Array(Array(16).fill(0).map((e,t)=>t)),o=/* @__PURE__ */s.map(e=>(9*e+5)%16),c=[s],f=[o];for(let e=0;e<4;e++)for(let t of[c,f])t.push(t[e].map(e=>i[e]));let d=/* @__PURE__ */[[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(e=>new Uint8Array(e)),l=/* @__PURE__ */c.map((e,t)=>e.map(e=>d[t][e])),u=/* @__PURE__ */f.map((e,t)=>e.map(e=>d[t][e])),h=/* @__PURE__ */new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),p=/* @__PURE__ */new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);function b(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let g=/* @__PURE__ */new Uint32Array(16);class m extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)g[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,i=0|this.h1,s=i,o=0|this.h2,d=o,m=0|this.h3,y=m,v=0|this.h4,w=v;for(let e=0;e<5;e++){let t=4-e,x=h[e],E=p[e],A=c[e],_=f[e],T=l[e],I=u[e];for(let t=0;t<16;t++){let n=(0,a.rotl)(r+b(e,i,o,m)+g[A[t]]+x,T[t])+v|0;r=v,v=m,m=0|(0,a.rotl)(o,10),o=i,i=n}for(let e=0;e<16;e++){let r=(0,a.rotl)(n+b(t,s,d,y)+g[_[e]]+E,I[e])+w|0;n=w,w=y,y=0|(0,a.rotl)(d,10),d=s,s=r}}this.set(this.h1+o+y|0,this.h2+m+w|0,this.h3+v+n|0,this.h4+r+s|0,this.h0+i+d|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}r.RIPEMD160=m,r.ripemd160=(0,a.wrapConstructor)(()=>new m)},{"7fc4ec46c688a393":"lVY2T",f56f80a209147498:"7z4fq"}],"3Ka9u":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encodeToCurve=r.hashToCurve=r.schnorr=r.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("6a854b4117cccdd6"),a=e("d0353a800c4e9079"),i=e("95d2f6d78b78311d"),s=e("a052774cd667f9fc"),o=e("f3ff7cadd1f4231b"),c=e("3e9e09bc2b734483"),f=e("48370adfd4ec78d2"),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),u=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function b(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),a=BigInt(22),i=BigInt(23),s=BigInt(44),c=BigInt(88),f=e*e*e%d,l=f*f*e%d,u=(0,o.pow2)(l,t,d)*l%d,p=(0,o.pow2)(u,t,d)*l%d,b=(0,o.pow2)(p,h,d)*f%d,m=(0,o.pow2)(b,n,d)*b%d,y=(0,o.pow2)(m,a,d)*m%d,v=(0,o.pow2)(y,s,d)*y%d,w=(0,o.pow2)(v,c,d)*v%d,x=(0,o.pow2)(w,s,d)*y%d,E=(0,o.pow2)(x,t,d)*l%d,A=(0,o.pow2)(E,i,d)*m%d,_=(0,o.pow2)(A,r,d)*f%d,T=(0,o.pow2)(_,h,d);if(!g.eql(g.sqr(T),e))throw Error("Cannot find square root");return T}let g=(0,o.Field)(d,void 0,void 0,{sqrt:b});r.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-u*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),i=p(t*e,l),s=p(-r*e,l),c=(0,o.mod)(e-i*t-s*n,l),f=(0,o.mod)(-i*r-s*t,l),d=c>a,h=f>a;if(d&&(c=l-c),h&&(f=l-f),c>a||f>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:f}}}},n.sha256);let m=BigInt(0),y=e=>"bigint"==typeof e&&m"bigint"==typeof e&&me.charCodeAt(0)));r=(0,c.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}let E=e=>e.toRawBytes(!0).slice(1),A=e=>(0,c.numberToBytesBE)(e,32),_=e=>(0,o.mod)(e,d),T=e=>(0,o.mod)(e,l),I=r.secp256k1.ProjectivePoint,S=(e,t,r)=>I.BASE.multiplyAndAddUnsafe(e,t,r);function C(e){let t=r.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:T(-t),bytes:E(n)}}function k(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=_(e*e),r=b(_(t*e+BigInt(7)));r%h!==m&&(r=_(-r));let n=new I(e,r,u);return n.assertValidity(),n}function R(...e){return T((0,c.bytesToNumberBE)(x("BIP0340/challenge",...e)))}function M(e,t,r){let n=(0,c.ensureBytes)("signature",e,64),a=(0,c.ensureBytes)("message",t),i=(0,c.ensureBytes)("publicKey",r,32);try{let e=k((0,c.bytesToNumberBE)(i)),t=(0,c.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;let r=(0,c.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let s=R(A(t),E(e),a),o=S(e,r,T(-s));if(!o||!o.hasEvenY()||o.toAffine().x!==t)return!1;return!0}catch(e){return!1}}r.schnorr={getPublicKey:function(e){return C(e).bytes},sign:function(e,t,r=(0,a.randomBytes)(32)){let n=(0,c.ensureBytes)("message",e),{bytes:i,scalar:s}=C(t),o=(0,c.ensureBytes)("auxRand",r,32),f=A(s^(0,c.bytesToNumberBE)(x("BIP0340/aux",o))),d=x("BIP0340/nonce",f,i,n),l=T((0,c.bytesToNumberBE)(d));if(l===m)throw Error("sign failed: k is zero");let{bytes:u,scalar:h}=C(l),p=R(u,i,n),b=new Uint8Array(64);if(b.set(u,0),b.set(A(T(h+p*s)),32),!M(b,n,i))throw Error("sign: Invalid signature produced");return b},verify:M,utils:{randomPrivateKey:r.secp256k1.utils.randomPrivateKey,lift_x:k,pointToBytes:E,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:x,mod:o.mod}};let B=(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),P=(0,f.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),O=(0,s.createHasher)(r.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=P(g.create(e[0]));return B(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});r.hashToCurve=O.hashToCurve,r.encodeToCurve=O.encodeToCurve},{"6a854b4117cccdd6":"agPjf",d0353a800c4e9079:"7z4fq","95d2f6d78b78311d":"bBwSz",a052774cd667f9fc:"7Q6wD",f3ff7cadd1f4231b:"2bsk6","3e9e09bc2b734483":"lbfQ0","48370adfd4ec78d2":"bkjUQ"}],bBwSz:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getHash=s,r.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...s(t)});return Object.freeze({...r(t),create:r})};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("d5828d7a2a456761"),a=e("73d26d69b2d03f5c"),i=e("22fa0b96f1544e58");function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,a.concatBytes)(...r)),randomBytes:a.randomBytes}}},{d5828d7a2a456761:"fBg5u","73d26d69b2d03f5c":"7z4fq","22fa0b96f1544e58":"bkjUQ"}],bkjUQ:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DER=void 0,r.weierstrassPoints=p,r.weierstrass=function(e){let t=function(e){let t=(0,n.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=t,l=o.BYTES+1,u=2*o.BYTES+1;function h(e){return a.mod(e,c)}function b(e){return a.invert(e,c)}let{ProjectivePoint:g,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:v}=p({...t,toBytes(e,t,r){let n=t.toAffine(),a=o.toBytes(n.x),s=i.concatBytes;return r?s(Uint8Array.from([t.hasEvenY()?2:3]),a):s(Uint8Array.from([4]),a,o.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===l&&(2===r||3===r)){let e;let t=i.bytesToNumberBE(n);if(!(fi.bytesToHex(i.numberToBytesBE(e,t.nByteLength)),x=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new E(x(e=(0,s.ensureBytes)("compactSignature",e,2*r),0,r),x(e,r,2*r))}static fromDER(e){let{r:t,s:n}=r.DER.toSig((0,s.ensureBytes)("DER",e));return new E(t,n)}assertValidity(){if(!v(this.r))throw Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){let{r,s:n,recovery:a}=this,i=T((0,s.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let c=2===a||3===a?r+t.n:r;if(c>=o.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&a)==0?"02":"03",d=g.fromHex(f+w(c)),l=b(c),u=h(-i*l),p=h(n*l),m=g.BASE.multiplyAndAddUnsafe(d,u,p);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>c>>d}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return r.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function A(e){let t=i.isBytes(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===l||n===u:r?n===2*l||n===2*u:e instanceof g}let _=t.bits2int||function(e){let r=i.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},T=t.bits2int_modN||function(e){return h(_(e))},I=i.bitMask(t.nBitLength);function S(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(f<=e&&ee in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:l}=t,{lowS:u,prehash:p,extraEntropy:y}=n;null==u&&(u=!0),e=(0,s.ensureBytes)("msgHash",e),p&&(e=(0,s.ensureBytes)("prehashed msgHash",a(e)));let w=T(e),x=m(r),A=[S(x),S(w)];if(null!=y&&!1!==y){let e=!0===y?l(o.BYTES):y;A.push((0,s.ensureBytes)("extraEntropy",e))}return{seed:i.concatBytes(...A),k2sig:function(e){let t=_(e);if(!v(t))return;let r=b(t),n=g.BASE.multiply(t).toAffine(),a=h(n.x);if(a===f)return;let i=h(r*h(w+a*x));if(i===f)return;let s=(n.x===a?0:2)|Number(n.y&d),o=i;if(u&&i>c>>d)o=i>c>>d?h(-i):i,s^=1;return new E(a,o,s)}}}(e,r,n);return i.createHmacDrbg(t.hash.outputLen,t.nByteLength,t.hmac)(a,l)},verify:function(e,n,a,o=k){let c,f;if(n=(0,s.ensureBytes)("msgHash",n),a=(0,s.ensureBytes)("publicKey",a),"strict"in o)throw Error("options.strict was renamed to lowS");let{lowS:d,prehash:l}=o;try{if("string"==typeof e||i.isBytes(e))try{f=E.fromDER(e)}catch(t){if(!(t instanceof r.DER.Err))throw t;f=E.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;f=new E(t,r)}else throw Error("PARSE");c=g.fromHex(a)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&f.hasHighS())return!1;l&&(n=t.hash(n));let{r:u,s:p}=f,m=T(n),y=b(p),v=h(m*y),w=h(u*y),x=g.BASE.multiplyAndAddUnsafe(c,v,w)?.toAffine();return!!x&&h(x.x)===u},ProjectivePoint:g,Signature:E,utils:{isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{let e=a.getMinHashLength(t.n);return a.mapHashToField(t.randomBytes(e),t.n)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},r.SWUFpSqrtRatio=b,r.mapToCurveSimpleSWU=function(e,t){if(a.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=b(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let a,i,s,o,c,f,d,l;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(s),f=e.sqr(o),c=e.mul(f,t.A),i=e.add(i,c),i=e.mul(i,s),f=e.mul(f,o),c=e.mul(f,t.B),i=e.add(i,c),d=e.mul(a,s);let{isValid:u,value:h}=r(i,f);l=e.mul(a,n),l=e.mul(l,h),d=e.cmov(d,s,u),l=e.cmov(l,h,u);let p=e.isOdd(n)===e.isOdd(l);return l=e.cmov(e.neg(l),l,p),{x:d=e.div(d,o),y:l}}};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("d5b3d5b65a55faa7"),a=e("661a6185eb29200c"),i=e("20654eeadb1e8d38"),s=e("20654eeadb1e8d38"),{bytesToNumberBE:o,hexToBytes:c}=i;r.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=r.DER;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let n=e[1],a=e.subarray(2,n+2);if(!n||a.length!==n)throw new t("Invalid signature integer: wrong length");if(128&a[0])throw new t("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:o(a),l:e.subarray(n+2)}},toSig(e){let{Err:t}=r.DER,n="string"==typeof e?c(e):e;i.abytes(n);let a=n.length;if(a<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==a-2)throw new t("Invalid signature: incorrect length");let{d:s,l:o}=r.DER._parseInt(n.subarray(2)),{d:f,l:d}=r.DER._parseInt(o);if(d.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:f}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),a=t(r(e.r)),i=n.length/2,s=a.length/2,o=r(i),c=r(s);return`30${r(s+i+4)}02${c}${a}02${o}${n}`}};let f=BigInt(0),d=BigInt(1),l=BigInt(2),u=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,n.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:a,a:s}=t;if(r){if(!a.eql(s,a.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,o=t.toBytes||((e,t,n)=>{let a=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(a.x),r.toBytes(a.y))}),c=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){let{a:n,b:a}=t,i=r.sqr(e),s=r.mul(i,e);return r.add(r.add(s,r.mul(e,n)),a)}if(!r.eql(r.sqr(t.Gy),l(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&fr.eql(e,r.ZERO);return a(t)&&a(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){let t=y.fromAffine(c((0,s.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let a=r.sqr(n),i=l(e);if(!r.eql(a,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){m(e);let{px:t,py:n,pz:a}=this,{px:i,py:s,pz:o}=e,c=r.eql(r.mul(t,o),r.mul(i,a)),f=r.eql(r.mul(n,o),r.mul(s,a));return c&&f}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,a=r.mul(n,u),{px:i,py:s,pz:o}=this,c=r.ZERO,f=r.ZERO,d=r.ZERO,l=r.mul(i,i),h=r.mul(s,s),p=r.mul(o,o),b=r.mul(i,s);return b=r.add(b,b),d=r.mul(i,o),d=r.add(d,d),c=r.mul(e,d),f=r.mul(a,p),f=r.add(c,f),c=r.sub(h,f),f=r.add(h,f),f=r.mul(c,f),c=r.mul(b,c),d=r.mul(a,d),p=r.mul(e,p),b=r.sub(l,p),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,p),l=r.mul(l,b),f=r.add(f,l),p=r.mul(s,o),p=r.add(p,p),l=r.mul(p,b),c=r.sub(c,l),d=r.mul(p,h),d=r.add(d,d),new y(c,f,d=r.add(d,d))}add(e){m(e);let{px:n,py:a,pz:i}=this,{px:s,py:o,pz:c}=e,f=r.ZERO,d=r.ZERO,l=r.ZERO,h=t.a,p=r.mul(t.b,u),b=r.mul(n,s),g=r.mul(a,o),v=r.mul(i,c),w=r.add(n,a),x=r.add(s,o);w=r.mul(w,x),x=r.add(b,g),w=r.sub(w,x),x=r.add(n,i);let E=r.add(s,c);return x=r.mul(x,E),E=r.add(b,v),x=r.sub(x,E),E=r.add(a,i),f=r.add(o,c),E=r.mul(E,f),f=r.add(g,v),E=r.sub(E,f),l=r.mul(h,x),f=r.mul(p,v),l=r.add(f,l),f=r.sub(g,l),l=r.add(g,l),d=r.mul(f,l),g=r.add(b,b),g=r.add(g,b),v=r.mul(h,v),x=r.mul(p,x),g=r.add(g,v),v=r.sub(b,v),v=r.mul(h,v),x=r.add(x,v),b=r.mul(g,x),d=r.add(d,b),b=r.mul(E,x),f=r.mul(w,f),f=r.sub(f,b),b=r.mul(w,g),l=r.mul(E,l),new y(f,d,l=r.add(l,b))}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){let n=y.ZERO;if(e===f)return n;if(p(e),e===d)return this;let{endo:a}=t;if(!a)return w.unsafeLadder(this,e);let{k1neg:i,k1:s,k2neg:o,k2:c}=a.splitScalar(e),l=n,u=n,h=this;for(;s>f||c>f;)s&d&&(l=l.add(h)),c&d&&(u=u.add(h)),h=h.double(),s>>=d,c>>=d;return i&&(l=l.negate()),o&&(u=u.negate()),u=new y(r.mul(u.px,a.beta),u.py,u.pz),l.add(u)}multiply(e){let n,a;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:s,k2neg:o,k2:c}=i.splitScalar(e),{p:f,f:d}=this.wNAF(s),{p:l,f:u}=this.wNAF(c);f=w.constTimeNegate(t,f),l=w.constTimeNegate(o,l),l=new y(r.mul(l.px,i.beta),l.py,l.pz),n=f.add(l),a=d.add(u)}else{let{p:t,f:r}=this.wNAF(e);n=t,a=r}return y.normalizeZ([n,a])[0]}multiplyAndAddUnsafe(e,t,r){let n=y.BASE,a=(e,t)=>t!==f&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:a}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(a));let s=r.mul(t,e),o=r.mul(n,e),c=r.mul(a,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:o}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===d?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(y,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);let v=t.nBitLength,w=(0,n.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:b,weierstrassEquation:l,isWithinCurveOrder:h}}function b(e,t){let r=e.ORDER,n=f;for(let e=r-d;e%l===f;e/=l)n+=d;let a=n,i=l<{let n=b,s=e.pow(r,p),o=e.sqr(s);o=e.mul(o,r);let f=e.mul(t,o);f=e.pow(f,c),f=e.mul(f,s),s=e.mul(f,r),o=e.mul(f,t);let u=e.mul(o,s);f=e.pow(u,i);let h=e.eql(f,e.ONE);s=e.mul(o,g),f=e.mul(u,n),o=e.cmov(s,o,h),u=e.cmov(f,u,h);for(let t=a;t>d;t--){let r=t-l;r=l<{let i=e.sqr(a),s=e.mul(t,a);i=e.mul(i,s);let o=e.pow(i,r);o=e.mul(o,s);let c=e.mul(o,n),f=e.mul(e.sqr(o),a),d=e.eql(f,t),l=e.cmov(c,o,d);return{isValid:d,value:l}}}return m}},{d5b3d5b65a55faa7:"fVimh","661a6185eb29200c":"2bsk6","20654eeadb1e8d38":"lbfQ0"}],fVimh:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,a=t;for(;r>i;)r&s&&(n=n.add(a)),a=a.double(),r>>=s;return n},precomputeWindow(e,t){let{windows:r,windowSize:a}=n(t),i=[],s=e,o=s;for(let e=0;e>=h,n>c&&(n-=u,i+=s);let o=t+Math.abs(n)-1,p=e%2!=0,b=n<0;0===n?d=d.add(r(p,a[t])):f=f.add(r(b,a[o]))}return{p:f,f:d}},wNAFCached(e,t,r,n){let a=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,n(i))),this.wNAF(a,i,r)}}},r.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("62c45f0f4388c499"),a=e("7d8850da65dc3414"),i=BigInt(0),s=BigInt(1)},{"62c45f0f4388c499":"2bsk6","7d8850da65dc3414":"lbfQ0"}],"2bsk6":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isNegativeLE=void 0,r.mod=l,r.pow=u,r.pow2=function(e,t,r){let n=e;for(;t-- >a;)n*=n,n%=r;return n},r.invert=h,r.tonelliShanks=p,r.FpSqrt=b,r.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},r.FpPow=m,r.FpInvertBatch=y,r.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},r.FpIsSquare=function(e){let t=(e.ORDER-i)/s;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},r.nLength=v,r.Field=function(e,t,r=!1,s={}){if(e<=a)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:c}=v(e,t);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let f=b(e),d=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,n.bitMask)(o),ZERO:a,ONE:i,create:t=>l(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>l(-t,e),eql:(e,t)=>e===t,sqr:t=>l(t*t,e),add:(t,r)=>l(t+r,e),sub:(t,r)=>l(t-r,e),mul:(t,r)=>l(t*r,e),pow:(e,t)=>m(d,e,t),div:(t,r)=>l(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(e=>f(d,e)),invertBatch:e=>y(d,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(d)},r.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},r.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},r.hashToPrivateScalar=function(e,t,r=!1){let a=(e=(0,n.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||a1024)throw Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${a}`);return l(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},r.getFieldBytesLength=w,r.getMinHashLength=x,r.mapHashToField=function(e,t,r=!1){let a=e.length,s=w(t),o=x(t);if(a<16||a1024)throw Error(`expected ${o}-1024 bytes of input, got ${a}`);let c=l(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,s):(0,n.numberToBytesBE)(c,s)};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("cf7535c7b02a3fcc"),a=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(4),f=BigInt(5),d=BigInt(8);function l(e,t){let r=e%t;return r>=a?r:t+r}function u(e,t,r){if(r<=a||t 0");if(r===i)return a;let n=i;for(;t>a;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function h(e,t){if(e===a||t<=a)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=l(e,t),n=t,s=a,o=i,c=i,f=a;for(;r!==a;){let e=n/r,t=n%r,a=s-c*e,i=o-f*e;n=r,r=t,s=c,o=f,c=a,f=i}if(n!==i)throw Error("invert: does not exist");return l(s,t)}function p(e){let t,r,n;let o=(e-i)/s;for(t=e-i,r=0;t%s===a;t/=s,r++);for(n=s;n(l(e,t)&i)===i;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,r){if(r 0");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,s=t;for(;r>a;)r&i&&(n=e.mul(n,s)),s=e.sqr(s),r>>=i;return n}function y(e,t){let r=Array(t.length),n=t.reduce((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n)),e.ONE),a=e.inv(n);return t.reduceRight((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n)),a),r}function v(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function w(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function x(e){let t=w(e);return t+Math.ceil(t/2)}},{cf7535c7b02a3fcc:"lbfQ0"}],lbfQ0:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bitMask=void 0,r.isBytes=s,r.abytes=o,r.bytesToHex=f,r.numberToHexUnpadded=d,r.hexToNumber=l,r.hexToBytes=p,r.bytesToNumberBE=function(e){return l(f(e))},r.bytesToNumberLE=function(e){return o(e),l(f(Uint8Array.from(e).reverse()))},r.numberToBytesBE=b,r.numberToBytesLE=function(e,t){return b(e,t).reverse()},r.numberToVarBytesBE=function(e){return p(d(e))},r.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=p(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(s(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let a=n.length;if("number"==typeof r&&a!==r)throw Error(`${e} expected ${r} bytes, got ${a}`);return n},r.concatBytes=g,r.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;nn;e>>=a,t+=1);return t},r.bitGet=function(e,t){return e>>BigInt(t)&a},r.bitSet=function(e,t,r){return e|(r?a:n)<{n.fill(1),a.fill(0),i=0},o=(...e)=>r(a,n,...e),c=(e=m())=>{a=o(y([0]),e),n=o(),0!==e.length&&(a=o(y([1]),e),n=o())},f=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(s(),c(e);!(r=t(f()));)c();return s(),r}},r.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let a=v[r];if("function"!=typeof a)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!a(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=/* @__PURE__ */BigInt(0),a=/* @__PURE__ */BigInt(1),i=/* @__PURE__ */BigInt(2);function s(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e){if(!s(e))throw Error("Uint8Array expected")}let c=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){o(e);let t="";for(let r=0;r=u._0&&e<=u._9?e-u._0:e>=u._A&&e<=u._F?e-(u._A-10):e>=u._a&&e<=u._f?e-(u._a-10):void 0}function p(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t(i<new Uint8Array(e),y=e=>Uint8Array.from(e),v={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||s(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},{}],"7Q6wD":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.expand_message_xmd=c,r.expand_message_xof=f,r.hash_to_field=d,r.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[a,i,s,o]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(a,i),n=e.mul(n,e.div(s,o)),{x:t,y:n}}},r.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,a){let i=d(n,2,{...r,DST:r.DST,...a}),s=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,a){let i=d(n,1,{...r,DST:r.encodeDST,...a}),s=e.fromAffine(t(i[0])).clearCofactor();return s.assertValidity(),s},mapToCurve(r){if(!Array.isArray(r))throw Error("mapToCurve: expected array of bigints");for(let e of r)if("bigint"!=typeof e)throw Error(`mapToCurve: expected array of bigints, got ${e} in array`);let n=e.fromAffine(t(r)).clearCofactor();return n.assertValidity(),n}}};let n=e("d73046c8459a2b3d"),a=e("b4c3835d37428f62"),i=a.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function o(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e,t,r,n){(0,a.abytes)(e),(0,a.abytes)(t),o(r),t.length>255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:c}=n,f=Math.ceil(r/i);if(f>255)throw Error("Invalid xmd length");let d=(0,a.concatBytes)(t,s(t.length,1)),l=s(0,c),u=s(r,2),h=Array(f),p=n((0,a.concatBytes)(l,e,u,s(0,1),d));h[0]=n((0,a.concatBytes)(p,s(1,1),d));for(let e=1;e<=f;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n255){let e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(s(r,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,r){let s;(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:l,m:u,hash:h,expand:p,DST:b}=r;(0,a.abytes)(e),o(t);let g="string"==typeof b?(0,a.utf8ToBytes)(b):b,m=Math.ceil((d.toString(2).length+l)/8),y=t*u*m;if("xmd"===p)s=c(e,g,y,h);else if("xof"===p)s=f(e,g,y,l,h);else if("_internal_pass"===p)s=e;else throw Error('expand must be "xmd" or "xof"');let v=Array(t);for(let e=0;eb);var a=e("@ethereumjs/util"),i=e("@scure/base"),s=e("ethereum-cryptography/aes.js"),o=e("ethereum-cryptography/keccak.js"),c=e("ethereum-cryptography/pbkdf2.js"),f=e("ethereum-cryptography/scrypt.js"),d=e("ethereum-cryptography/sha256.js"),l=e("uuid");let u=(0,i.base58check)(d.sha256);function h(e,t,r){if(t.toLowerCase().startsWith("0x")&&(t=t.slice(2)),!t&&void 0===r)return t;if(r%2)throw Error("Invalid length argument, must be an even number");if("number"==typeof r&&t.length!==r)throw Error(`Invalid ${e}, string must be ${r} hex characters`);if(!/^([0-9a-f]{2})+$/i.test(t))throw Error(`Invalid ${e}, string must be ${"number"==typeof r?r:"empty or a non-zero even number of"} hex characters`);return t}function p(e,t,r){if(!(t instanceof Uint8Array)){let t="number"==typeof r?`${2*r}`:"empty or a non-zero even number of",n="number"==typeof r?` (${r} bytes)`:"";throw Error(`Invalid ${e}, must be a string (${t} hex characters) or Uint8Array${n}`)}if("number"==typeof r&&t.length!==r)throw Error(`Invalid ${e}, Uint8Array must be ${r} bytes`);return t}class b{constructor(e,t){if(this.privateKey=e,this.publicKey=t,e&&t)throw Error("Cannot supply both a private and a public key to the constructor");if(e&&!(0,a.isValidPrivate)(e))throw Error("Private key does not satisfy the curve requirements (ie. it is invalid)");if(t&&!(0,a.isValidPublic)(t))throw Error("Invalid public key")}static generate(e=!1){if(!e)return new b((0,a.randomBytes)(32));{let e=BigInt("0x088f924eeceeda7fe92e1f5b0fffffffffffffff");for(;;){let t=(0,a.randomBytes)(32);if(BigInt("0x"+(0,a.bytesToUnprefixedHex)((0,a.privateToAddress)(t)))<=e)return new b(t)}}}static generateVanityAddress(e){for(e instanceof RegExp||(e=new RegExp(e));;){let t=(0,a.randomBytes)(32),r=(0,a.privateToAddress)(t);if(e.test((0,a.bytesToUnprefixedHex)(r)))return new b(t)}}static fromPublicKey(e,t=!1){return t&&(e=(0,a.importPublic)(e)),new b(void 0,e)}static fromExtendedPublicKey(e){if("xpub"!==e.slice(0,4))throw Error("Not an extended public key");let t=u.decode(e).subarray(45);return b.fromPublicKey(t,!0)}static fromPrivateKey(e){return new b(e)}static fromExtendedPrivateKey(e){if("xprv"!==e.slice(0,4))throw Error("Not an extended private key");let t=u.decode(e);if(0!==t[45])throw Error("Invalid extended private key");return b.fromPrivateKey(t.subarray(46))}static async fromV1(e,t){let r="object"==typeof e?e:JSON.parse(e);if("1"!==r.Version)throw Error("Not a V1 Wallet");if("scrypt"!==r.Crypto.KeyHeader.Kdf)throw Error("Unsupported key derivation scheme");let n=r.Crypto.KeyHeader.KdfParams,i=(0,a.unprefixedHexToBytes)(r.Crypto.Salt),c=await function(e,t,r){let{N:n,P:a,R:i,DkLen:s}=r;return(0,f.scrypt)(e,t,n,a,i,s)}((0,a.utf8ToBytes)(t),i,n),d=(0,a.unprefixedHexToBytes)(r.Crypto.CipherText),l=(0,o.keccak256)((0,a.concatBytes)(c.subarray(16,32),d));if((0,a.bytesToUnprefixedHex)(l)!==r.Crypto.MAC)throw Error("Key derivation failed - possibly wrong passphrase");return new b(await s.decrypt(d,(0,o.keccak256)(c.subarray(0,16)).subarray(0,16),(0,a.unprefixedHexToBytes)(r.Crypto.IV),"aes-128-cbc"))}static async fromV3(e,t,r=!1){let n,i;let d="object"==typeof e?e:JSON.parse(r?e.toLowerCase():e);if(3!==d.version)throw Error("Not a V3 wallet");if("scrypt"===d.crypto.kdf)i=d.crypto.kdfparams,n=await function(e,t){let{salt:r,n,p:i,r:s,dklen:o}=t;return(0,f.scrypt)((0,a.utf8ToBytes)(e),(0,a.unprefixedHexToBytes)(r),n,i,s,o)}(t,i);else if("pbkdf2"===d.crypto.kdf){if("hmac-sha256"!==(i=d.crypto.kdfparams).prf)throw Error("Unsupported parameters to PBKDF2");n=await (0,c.pbkdf2)((0,a.utf8ToBytes)(t),(0,a.unprefixedHexToBytes)(i.salt),i.c,i.dklen,"sha256")}else throw Error("Unsupported key derivation scheme");let l=(0,a.unprefixedHexToBytes)(d.crypto.ciphertext),u=(0,o.keccak256)((0,a.concatBytes)(n.subarray(16,32),l));if((0,a.bytesToUnprefixedHex)(u)!==d.crypto.mac)throw Error("Key derivation failed - possibly wrong passphrase");return new b(await s.decrypt(l,n.subarray(0,16),(0,a.unprefixedHexToBytes)(d.crypto.cipherparams.iv),d.crypto.cipher))}static async fromEthSale(e,t){let r="object"==typeof e?e:JSON.parse(e),n=(0,a.unprefixedHexToBytes)(r.encseed),i=(0,a.utf8ToBytes)(t),f=(await (0,c.pbkdf2)(i,i,2e3,32,"sha256")).subarray(0,16),d=await s.decrypt(n.subarray(16),f,n.subarray(0,16),"aes-128-cbc",!0),l=new b((0,o.keccak256)(d));if((0,a.bytesToUnprefixedHex)(l.getAddress())!==r.ethaddr)throw Error("Decoded key mismatch - possibly wrong passphrase");return l}get pubKey(){return(void 0===this.publicKey||null===this.publicKey)&&(this.publicKey=(0,a.privateToPublic)(this.privateKey)),this.publicKey}get privKey(){if(void 0===this.privateKey||null===this.privateKey)throw Error("This is a public key only wallet");return this.privateKey}getPrivateKey(){return this.privKey}getPrivateKeyString(){return(0,a.bytesToHex)(this.privKey)}getPublicKey(){return this.pubKey}getPublicKeyString(){return(0,a.bytesToHex)(this.getPublicKey())}getAddress(){return(0,a.publicToAddress)(this.pubKey)}getAddressString(){return(0,a.bytesToHex)(this.getAddress())}getChecksumAddressString(){return(0,a.toChecksumAddress)(this.getAddressString())}async toV3(e,t){let r,n;if(void 0===this.privateKey||null===this.privateKey)throw Error("This is a public key only wallet");let i=function(e){let t={cipher:"aes-128-ctr",kdf:"scrypt",salt:(0,a.randomBytes)(32),iv:(0,a.randomBytes)(16),uuid:(0,a.randomBytes)(16),dklen:32,c:262144,n:262144,r:8,p:1};return e?("string"==typeof e.salt&&(e.salt=(0,a.unprefixedHexToBytes)(h("salt",e.salt))),"string"==typeof e.iv&&(e.iv=(0,a.unprefixedHexToBytes)(h("iv",e.iv,32))),"string"==typeof e.uuid&&(e.uuid=(0,a.unprefixedHexToBytes)(h("uuid",e.uuid,32))),e.salt&&p("salt",e.salt),e.iv&&p("iv",e.iv,16),e.uuid&&p("uuid",e.uuid,16),{...t,...e}):t}(t);switch(i.kdf){case"pbkdf2":r={dklen:i.dklen,salt:i.salt,c:i.c,prf:"hmac-sha256"},n=await (0,c.pbkdf2)((0,a.utf8ToBytes)(e),r.salt,r.c,r.dklen,"sha256");break;case"scrypt":r={dklen:i.dklen,salt:i.salt,n:i.n,p:i.p,r:i.r},n=await function(e,t){let{salt:r,n,p:i,r:s,dklen:o}=t;return(0,f.scrypt)((0,a.utf8ToBytes)(e),r,n,i,s,o)}(e,r);break;default:throw Error("Unsupported kdf")}let d=await s.encrypt(this.privKey,n.subarray(0,16),i.iv,i.cipher,!1),u=(0,o.keccak256)((0,a.concatBytes)(n.subarray(16,32),d));return{version:3,id:(0,l.v4)({random:i.uuid}),address:(0,a.bytesToUnprefixedHex)(this.getAddress()),crypto:{ciphertext:(0,a.bytesToUnprefixedHex)(d),cipherparams:{iv:(0,a.bytesToUnprefixedHex)(i.iv)},cipher:i.cipher,kdf:i.kdf,kdfparams:{...r,salt:(0,a.bytesToUnprefixedHex)(r.salt)},mac:(0,a.bytesToUnprefixedHex)(u)}}}getV3Filename(e){return["UTC--",(void 0!==e?new Date(e):new Date).toJSON().replace(/:/g,"-"),"--",(0,a.bytesToUnprefixedHex)(this.getAddress())].join("")}async toV3String(e,t){return JSON.stringify(await this.toV3(e,t))}verifyPublicKey(e){return void 0!==this.privateKey&&(0,a.equalsBytes)((0,a.privateToPublic)(this.privateKey),e)}}},{"@ethereumjs/util":"k5vG8","@scure/base":"3fgTM","ethereum-cryptography/aes.js":"8gkvt","ethereum-cryptography/keccak.js":"jFZHZ","ethereum-cryptography/pbkdf2.js":"inPLz","ethereum-cryptography/scrypt.js":"13wBA","ethereum-cryptography/sha256.js":"6U0fs",uuid:"4DAxM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],k5vG8:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"arrayContainsArray",()=>g.arrayContainsArray),n.export(r,"fromAscii",()=>g.fromAscii),n.export(r,"fromUtf8",()=>g.fromUtf8),n.export(r,"getBinarySize",()=>g.getBinarySize),n.export(r,"getKeys",()=>g.getKeys),n.export(r,"isHexString",()=>g.isHexString),n.export(r,"padToEven",()=>g.padToEven),n.export(r,"stripHexPrefix",()=>g.stripHexPrefix),n.export(r,"toAscii",()=>g.toAscii);var a=e("./constants.js");n.exportAll(a,r);var i=e("./units.js");n.exportAll(i,r);var s=e("./account.js");n.exportAll(s,r);var o=e("./address.js");n.exportAll(o,r);var c=e("./db.js");n.exportAll(c,r);var f=e("./withdrawal.js");n.exportAll(f,r);var d=e("./signature.js");n.exportAll(d,r);var l=e("./bytes.js");n.exportAll(l,r);var u=e("./types.js");n.exportAll(u,r);var h=e("./asyncEventEmitter.js");n.exportAll(h,r);var p=e("./blobs.js");n.exportAll(p,r);var b=e("./genesis.js");n.exportAll(b,r);var g=e("./internal.js"),m=e("./kzg.js");n.exportAll(m,r);var y=e("./lock.js");n.exportAll(y,r);var v=e("./mapDB.js");n.exportAll(v,r);var w=e("./provider.js");n.exportAll(w,r);var x=e("./requests.js");n.exportAll(x,r);var E=e("./verkle.js");n.exportAll(E,r)},{"./constants.js":"f7GxE","./units.js":"5TGV0","./account.js":"6lm25","./address.js":"9zQPg","./db.js":"cdMpl","./withdrawal.js":"fhejp","./signature.js":"bOVB9","./bytes.js":"lzhQs","./types.js":"cm4mK","./asyncEventEmitter.js":"gAEU2","./blobs.js":"89TPP","./genesis.js":"6JY8s","./internal.js":"8X0WZ","./kzg.js":"02EeG","./lock.js":"kZ6I5","./mapDB.js":"ev15B","./provider.js":"hg6Th","./requests.js":"idf1A","./verkle.js":"1xbAO","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],f7GxE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MAX_UINT64",()=>s),n.export(r,"MAX_INTEGER",()=>o),n.export(r,"MAX_INTEGER_BIGINT",()=>c),n.export(r,"SECP256K1_ORDER",()=>f),n.export(r,"SECP256K1_ORDER_DIV_2",()=>d),n.export(r,"TWO_POW256",()=>l),n.export(r,"KECCAK256_NULL_S",()=>u),n.export(r,"KECCAK256_NULL",()=>h),n.export(r,"KECCAK256_RLP_ARRAY_S",()=>p),n.export(r,"KECCAK256_RLP_ARRAY",()=>b),n.export(r,"KECCAK256_RLP_S",()=>g),n.export(r,"KECCAK256_RLP",()=>m),n.export(r,"RLP_EMPTY_STRING",()=>y),n.export(r,"MAX_WITHDRAWALS_PER_PAYLOAD",()=>v),n.export(r,"RIPEMD160_ADDRESS_STRING",()=>w),n.export(r,"BIGINT_NEG1",()=>x),n.export(r,"BIGINT_0",()=>E),n.export(r,"BIGINT_1",()=>A),n.export(r,"BIGINT_2",()=>_),n.export(r,"BIGINT_3",()=>T),n.export(r,"BIGINT_7",()=>I),n.export(r,"BIGINT_8",()=>S),n.export(r,"BIGINT_27",()=>C),n.export(r,"BIGINT_28",()=>k),n.export(r,"BIGINT_31",()=>R),n.export(r,"BIGINT_32",()=>M),n.export(r,"BIGINT_64",()=>B),n.export(r,"BIGINT_128",()=>P),n.export(r,"BIGINT_255",()=>O),n.export(r,"BIGINT_256",()=>j),n.export(r,"BIGINT_96",()=>N),n.export(r,"BIGINT_100",()=>U),n.export(r,"BIGINT_160",()=>L),n.export(r,"BIGINT_224",()=>D),n.export(r,"BIGINT_2EXP96",()=>F),n.export(r,"BIGINT_2EXP160",()=>H),n.export(r,"BIGINT_2EXP224",()=>V),n.export(r,"BIGINT_2EXP256",()=>q);var a=e("ethereum-cryptography/secp256k1.js"),i=e("./bytes.js");let s=BigInt("0xffffffffffffffff"),o=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),c=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),f=a.secp256k1.CURVE.n,d=a.secp256k1.CURVE.n/BigInt(2),l=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),u="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",h=(0,i.hexToBytes)(u),p="0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",b=(0,i.hexToBytes)(p),g="0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",m=(0,i.hexToBytes)(g),y=Uint8Array.from([128]),v=16,w="0000000000000000000000000000000000000003",x=BigInt(-1),E=BigInt(0),A=BigInt(1),_=BigInt(2),T=BigInt(3),I=BigInt(7),S=BigInt(8),C=BigInt(27),k=BigInt(28),R=BigInt(31),M=BigInt(32),B=BigInt(64),P=BigInt(128),O=BigInt(255),j=BigInt(256),N=BigInt(96),U=BigInt(100),L=BigInt(160),D=BigInt(224),F=BigInt(7922816251426434e13),H=BigInt(1461501637330903e33),V=BigInt(2695994666715064e52),q=_**j},{"ethereum-cryptography/secp256k1.js":"kGTNz","./bytes.js":"lzhQs","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kGTNz:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.secp256k1=void 0;var n=e("c5c25f4d3b241b78");Object.defineProperty(r,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},{c5c25f4d3b241b78:"3Ka9u"}],lzhQs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"bytesToUtf8",()=>i.bytesToUtf8),n.export(r,"equalsBytes",()=>i.equalsBytes),n.export(r,"utf8ToBytes",()=>i.utf8ToBytes),n.export(r,"bytesToUnprefixedHex",()=>f),n.export(r,"unprefixedHexToBytes",()=>h),n.export(r,"bytesToHex",()=>b),n.export(r,"bytesToBigInt",()=>m),n.export(r,"bytesToInt",()=>y),n.export(r,"hexToBytes",()=>v),n.export(r,"intToHex",()=>w),n.export(r,"intToBytes",()=>x),n.export(r,"bigIntToBytes",()=>E),n.export(r,"zeros",()=>A),n.export(r,"setLengthLeft",()=>T),n.export(r,"setLengthRight",()=>I),n.export(r,"unpadBytes",()=>C),n.export(r,"unpadArray",()=>k),n.export(r,"unpadHex",()=>R),n.export(r,"toBytes",()=>M),n.export(r,"fromSigned",()=>B),n.export(r,"toUnsigned",()=>P),n.export(r,"addHexPrefix",()=>O),n.export(r,"short",()=>j),n.export(r,"validateNoLeadingZeroes",()=>N),n.export(r,"bigIntToHex",()=>U),n.export(r,"bigIntMax",()=>L),n.export(r,"bigIntMin",()=>D),n.export(r,"bigIntToUnpaddedBytes",()=>F),n.export(r,"bigIntToAddressBytes",()=>H),n.export(r,"intToUnpaddedBytes",()=>V),n.export(r,"compareBytes",()=>q),n.export(r,"randomBytes",()=>z),n.export(r,"concatBytes",()=>G),n.export(r,"bytesToInt32",()=>K),n.export(r,"bytesToBigInt64",()=>W),n.export(r,"int32ToBytes",()=>$),n.export(r,"bigInt64ToBytes",()=>J),n.export(r,"hexToBigInt",()=>Q);var a=e("ethereum-cryptography/random.js"),i=e("ethereum-cryptography/utils.js"),s=e("./helpers.js"),o=e("./internal.js");let c=BigInt(0),f=i.bytesToHex,d={},l={};for(let e=0;e<16;e++){let t=e,r=16*e,n=e.toString(16).toLowerCase();l[n]=t,l[n.toUpperCase()]=t,d[n]=r,d[n.toUpperCase()]=r}function u(e){let t=e.length,r=new Uint8Array(t/2);for(let n=0;n{if("0x"!==e.slice(0,2))return u((0,o.padToEven)(e));throw Error("hex string is prefixed with 0x, should be unprefixed")},p=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),b=e=>{let t="0x";if(void 0===e||0===e.length)return t;for(let r of e)t=`${t}${p[r]}`;return t},g=[];for(let e=0;e<=65535;e++)g[e]=BigInt(e);let m=(e,t=!1)=>{t&&e.reverse();let r=b(e);return"0x"===r?c:4===r.length?g[e[0]]:6===r.length?g[256*e[0]+e[1]]:BigInt(r)},y=e=>{let t=Number(m(e));if(!Number.isSafeInteger(t))throw Error("Number exceeds 53 bits");return t},v=e=>{if("string"!=typeof e)throw Error(`hex argument type ${typeof e} must be of type string`);if(!/^0x[0-9a-fA-F]*$/.test(e))throw Error(`Input must be a 0x-prefixed hexadecimal string, got ${e}`);let t=e.slice(2);return u(t.length%2==0?t:(0,o.padToEven)(t))},w=e=>{if(!Number.isSafeInteger(e)||e<0)throw Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`},x=e=>v(w(e)),E=(e,t=!1)=>{let r=M(`0x${(0,o.padToEven)(e.toString(16))}`);return t?r.reverse():r},A=e=>new Uint8Array(e),_=(e,t,r)=>r?e.length((0,s.assertIsBytes)(e),_(e,t,!1)),I=(e,t)=>((0,s.assertIsBytes)(e),_(e,t,!0)),S=e=>{let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},C=e=>((0,s.assertIsBytes)(e),S(e)),k=e=>((0,s.assertIsArray)(e),S(e)),R=e=>((0,s.assertIsHexString)(e),`0x${S((0,o.stripHexPrefix)(e))}`),M=e=>{if(null==e)return new Uint8Array;if(Array.isArray(e)||e instanceof Uint8Array)return Uint8Array.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error(`Cannot convert string to Uint8Array. toBytes only supports 0x-prefixed hex strings and this string was given: ${e}`);return v(e)}if("number"==typeof e)return x(e);if("bigint"==typeof e){if(eBigInt.asIntN(256,m(e)),P=e=>E(BigInt.asUintN(256,e)),O=e=>"string"!=typeof e?e:(0,o.isHexString)(e)?e:`0x${e}`,j=(e,t=50)=>{let r=e instanceof Uint8Array?b(e):e,n="0x"===r.slice(0,2)?t+2:t;return r.length<=n?r:r.slice(0,n)+"…"},N=e=>{for(let[t,r]of Object.entries(e))if(void 0!==r&&r.length>0&&0===r[0])throw Error(`${t} cannot have leading zeroes, received: ${b(r)}`)},U=e=>`0x${e.toString(16)}`,L=(...e)=>e.reduce((e,t)=>t>e?t:e),D=(...e)=>e.reduce((e,t)=>tC(E(e)),H=(e,t=!0)=>{let r=E(e);if(t&&r.length>20)throw Error(`Invalid address bytes length=${r.length} strict=${t}`);return T(r,20)},V=e=>C(x(e)),q=(e,t)=>{let r=m(e),n=m(t);return r>n?1:r(0,a.getRandomBytesSync)(e),G=(...e)=>{if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));for(let r=0,n=0;r(a.default.bytes(t),e(t))};let a=n(e("6c63c6246b444821")),i=e("6ad529a91a04044a"),s=a.default.bool;r.assertBool=s;let o=a.default.bytes;r.assertBytes=o;var c=e("6ad529a91a04044a");Object.defineProperty(r,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(r,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(r,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(r,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(r,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),r.crypto=(()=>{let e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}})()},{"6c63c6246b444821":"8plnA","6ad529a91a04044a":"7z4fq"}],f7E31:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"assertIsHexString",()=>i),n.export(r,"assertIsBytes",()=>s),n.export(r,"assertIsArray",()=>o),n.export(r,"assertIsString",()=>c);var a=e("./internal.js");let i=function(e){if(!(0,a.isHexString)(e))throw Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)},s=function(e){if(!(e instanceof Uint8Array))throw Error(`This method only supports Uint8Array but input was: ${e}`)},o=function(e){if(!Array.isArray(e))throw Error(`This method only supports number arrays but input was: ${e}`)},c=function(e){if("string"!=typeof e)throw Error(`This method only supports strings but input was: ${e}`)}},{"./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8X0WZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isHexString",()=>i),n.export(r,"stripHexPrefix",()=>s),n.export(r,"padToEven",()=>o),n.export(r,"getBinarySize",()=>c),n.export(r,"arrayContainsArray",()=>f),n.export(r,"toAscii",()=>d),n.export(r,"fromUtf8",()=>l),n.export(r,"fromAscii",()=>u),n.export(r,"getKeys",()=>h);var a=e("./bytes.js");function i(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(void 0===t||!(t>0)||e.length===2+2*t)}let s=e=>{if("string"!=typeof e)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return i(e)?e.slice(2):e};function o(e){let t=e;if("string"!=typeof t)throw Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}function c(e){if("string"!=typeof e)throw Error(`[getBinarySize] method requires input type 'string', received ${typeof e}`);return(0,a.utf8ToBytes)(e).byteLength}function f(e,t,r){if(!0!==Array.isArray(e))throw Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"](t=>e.indexOf(t)>=0)}function d(e){let t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);ri),n.export(r,"formatBigDecimal",()=>s);var a=e("./constants.js");let i=BigInt(1e9);function s(e,t,r){t===a.BIGINT_0&&(t=a.BIGINT_1);let n=e/t,i=(e-n*t)*r/t,s=String(r).length-1-String(i).length;return`${n}.${"0".repeat(s)}${i}`}},{"./constants.js":"f7GxE","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6lm25":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Account",()=>l),n.export(r,"isValidAddress",()=>u),n.export(r,"toChecksumAddress",()=>h),n.export(r,"isValidChecksumAddress",()=>p),n.export(r,"generateAddress",()=>b),n.export(r,"generateAddress2",()=>g),n.export(r,"isValidPrivate",()=>m),n.export(r,"isValidPublic",()=>y),n.export(r,"pubToAddress",()=>v),n.export(r,"publicToAddress",()=>w),n.export(r,"privateToPublic",()=>x),n.export(r,"privateToAddress",()=>E),n.export(r,"importPublic",()=>A),n.export(r,"zeroAddress",()=>_),n.export(r,"isZeroAddress",()=>T),n.export(r,"accountBodyFromSlim",()=>I),n.export(r,"accountBodyToSlim",()=>C),n.export(r,"accountBodyToRLP",()=>k);var a=e("@ethereumjs/rlp"),i=e("ethereum-cryptography/keccak.js"),s=e("ethereum-cryptography/secp256k1.js"),o=e("./bytes.js"),c=e("./constants.js"),f=e("./helpers.js"),d=e("./internal.js");class l{constructor(e=c.BIGINT_0,t=c.BIGINT_0,r=c.KECCAK256_RLP,n=c.KECCAK256_NULL,a=null,i=0){this._nonce=null,this._balance=null,this._storageRoot=null,this._codeHash=null,this._codeSize=null,this._version=null,this._nonce=e,this._balance=t,this._storageRoot=r,this._codeHash=n,null!==a||null===n||this.isContract()||(a=0),this._codeSize=a,this._version=i,this._validate()}get version(){if(null!==this._version)return this._version;throw Error(`version=${this._version} not loaded`)}set version(e){this._version=e}get nonce(){if(null!==this._nonce)return this._nonce;throw Error(`nonce=${this._nonce} not loaded`)}set nonce(e){this._nonce=e}get balance(){if(null!==this._balance)return this._balance;throw Error(`balance=${this._balance} not loaded`)}set balance(e){this._balance=e}get storageRoot(){if(null!==this._storageRoot)return this._storageRoot;throw Error(`storageRoot=${this._storageRoot} not loaded`)}set storageRoot(e){this._storageRoot=e}get codeHash(){if(null!==this._codeHash)return this._codeHash;throw Error(`codeHash=${this._codeHash} not loaded`)}set codeHash(e){this._codeHash=e}get codeSize(){if(null!==this._codeSize)return this._codeSize;throw Error(`codeHash=${this._codeSize} not loaded`)}set codeSize(e){this._codeSize=e}static fromAccountData(e){let{nonce:t,balance:r,storageRoot:n,codeHash:a}=e;if(null===t||null===r||null===n||null===a)throw Error("Partial fields not supported in fromAccountData");return new l(void 0!==t?(0,o.bytesToBigInt)((0,o.toBytes)(t)):void 0,void 0!==r?(0,o.bytesToBigInt)((0,o.toBytes)(r)):void 0,void 0!==n?(0,o.toBytes)(n):void 0,void 0!==a?(0,o.toBytes)(a):void 0)}static fromPartialAccountData(e){let{nonce:t,balance:r,storageRoot:n,codeHash:a,codeSize:i,version:s}=e;if(null===t&&null===r&&null===n&&null===a&&null===i&&null===s)throw Error("All partial fields null");return new l(null!=t?(0,o.bytesToBigInt)((0,o.toBytes)(t)):t,null!=r?(0,o.bytesToBigInt)((0,o.toBytes)(r)):r,null!=n?(0,o.toBytes)(n):n,null!=a?(0,o.toBytes)(a):a,null!=i?(0,o.bytesToInt)((0,o.toBytes)(i)):i,null!=s?(0,o.bytesToInt)((0,o.toBytes)(s)):s)}static fromRlpSerializedAccount(e){let t=(0,a.RLP).decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromRlpSerializedPartialAccount(e){let t=(0,a.RLP).decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");let r=null;if(Array.isArray(t[0])){let e=(0,o.bytesToInt)(t[0][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for nonce`);1===e&&(r=(0,o.bytesToBigInt)(t[0][1]))}else throw Error("Invalid partial nonce encoding. Must be array");let n=null;if(Array.isArray(t[1])){let e=(0,o.bytesToInt)(t[1][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for balance`);1===e&&(n=(0,o.bytesToBigInt)(t[1][1]))}else throw Error("Invalid partial balance encoding. Must be array");let i=null;if(Array.isArray(t[2])){let e=(0,o.bytesToInt)(t[2][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for storageRoot`);1===e&&(i=t[2][1])}else throw Error("Invalid partial storageRoot encoding. Must be array");let s=null;if(Array.isArray(t[3])){let e=(0,o.bytesToInt)(t[3][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for codeHash`);1===e&&(s=t[3][1])}else throw Error("Invalid partial codeHash encoding. Must be array");let c=null;if(Array.isArray(t[4])){let e=(0,o.bytesToInt)(t[4][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for codeSize`);1===e&&(c=(0,o.bytesToInt)(t[4][1]))}else throw Error("Invalid partial codeSize encoding. Must be array");let f=null;if(Array.isArray(t[5])){let e=(0,o.bytesToInt)(t[5][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for version`);1===e&&(f=(0,o.bytesToInt)(t[5][1]))}else throw Error("Invalid partial version encoding. Must be array");return this.fromPartialAccountData({balance:n,nonce:r,storageRoot:i,codeHash:s,codeSize:c,version:f})}static fromValuesArray(e){let[t,r,n,a]=e;return new l((0,o.bytesToBigInt)(t),(0,o.bytesToBigInt)(r),n,a)}_validate(){if(null!==this._nonce&&this._nonce=8?c+=r[e].toUpperCase():c+=r[e];return`0x${c}`},p=function(e,t){return u(e)&&h(e,t)===e},b=function(e,t){return((0,f.assertIsBytes)(e),(0,f.assertIsBytes)(t),(0,o.bytesToBigInt)(t)===c.BIGINT_0)?(0,i.keccak256)((0,a.RLP).encode([e,Uint8Array.from([])])).subarray(-20):(0,i.keccak256)((0,a.RLP).encode([e,t])).subarray(-20)},g=function(e,t,r){if((0,f.assertIsBytes)(e),(0,f.assertIsBytes)(t),(0,f.assertIsBytes)(r),20!==e.length)throw Error("Expected from to be of length 20");if(32!==t.length)throw Error("Expected salt to be of length 32");return(0,i.keccak256)((0,o.concatBytes)((0,o.hexToBytes)("0xff"),e,t,(0,i.keccak256)(r))).subarray(-20)},m=function(e){return(0,s.secp256k1).utils.isValidPrivateKey(e)},y=function(e,t=!1){if((0,f.assertIsBytes)(e),64===e.length)try{return(0,s.secp256k1).ProjectivePoint.fromHex((0,o.concatBytes)(Uint8Array.from([4]),e)),!0}catch(e){return!1}if(!t)return!1;try{return(0,s.secp256k1).ProjectivePoint.fromHex(e),!0}catch(e){return!1}},v=function(e,t=!1){if((0,f.assertIsBytes)(e),t&&64!==e.length&&(e=(0,s.secp256k1).ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),64!==e.length)throw Error("Expected pubKey to be of length 64");return(0,i.keccak256)(e).subarray(-20)},w=v,x=function(e){return(0,f.assertIsBytes)(e),(0,s.secp256k1).ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1)},E=function(e){return w(x(e))},A=function(e){return(0,f.assertIsBytes)(e),64!==e.length&&(e=(0,s.secp256k1).ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),e},_=function(){let e=(0,o.zeros)(20);return(0,o.bytesToHex)(e)},T=function(e){try{(0,f.assertIsString)(e)}catch(e){return!1}return _()===e};function I(e){let[t,r,n,a]=e;return[t,r,0===n.length?c.KECCAK256_RLP:n,0===a.length?c.KECCAK256_NULL:a]}let S=new Uint8Array(0);function C(e){let[t,r,n,a]=e;return[t,r,(0,o.equalsBytes)(n,c.KECCAK256_RLP)?S:n,(0,o.equalsBytes)(a,c.KECCAK256_NULL)?S:a]}function k(e,t=!0){let r=t?I(e):e;return(0,a.RLP).encode(r)}},{"@ethereumjs/rlp":"e2su4","ethereum-cryptography/keccak.js":"jFZHZ","ethereum-cryptography/secp256k1.js":"kGTNz","./bytes.js":"lzhQs","./constants.js":"f7GxE","./helpers.js":"f7E31","./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],e2su4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if(Array.isArray(e)){let t=[],r=0;for(let n=0;ne.length)throw Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function s(e){if(0===e[0])throw Error("invalid RLP: extra zeros");return l(d(e))}function o(e,t){if(e<56)return Uint8Array.from([e+t]);let r=b(e),n=b(t+55+r.length/2);return Uint8Array.from(u(n+r))}function c(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);let r=function e(t){let r,n,a,o,c;let f=[],d=t[0];if(d<=127)return{data:t.slice(0,1),remainder:t.subarray(1)};if(d<=183){if(r=d-127,a=128===d?Uint8Array.from([]):i(t,1,r),2===r&&a[0]<128)throw Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:a,remainder:t.subarray(r)}}if(d<=191){if(n=d-182,t.length-1t.length)throw Error("invalid RLP: total length is larger than the data");for(o=i(t,n,a);o.length;)c=e(o),f.push(c.data),o=c.remainder;return{data:f,remainder:t.subarray(a)}}}(m(e));if(t)return{data:r.data,remainder:r.remainder.slice()};if(0!==r.remainder.length)throw Error("invalid RLP: remainder must be zero");return r.data}n.defineInteropFlag(r),n.export(r,"encode",()=>a),n.export(r,"decode",()=>c),n.export(r,"utils",()=>y),n.export(r,"RLP",()=>v);let f=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){let t="";for(let r=0;re+t.length,0));for(let r=0,n=0;r=2&&"0"===e[0]&&"x"===e[1]}function m(e){if(e instanceof Uint8Array)return e;if("string"==typeof e){if(g(e)){var t;return u((t="string"!=typeof e?e:g(e)?e.slice(2):e).length%2?`0${t}`:t)}return p(e)}if("number"==typeof e||"bigint"==typeof e)return e?u(b(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw Error("toBytes: received unsupported type "+typeof e)}let y={bytesToHex:d,concatBytes:h,hexToBytes:u,utf8ToBytes:p},v={encode:a,decode:c}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jFZHZ:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.keccak512=r.keccak384=r.keccak256=r.keccak224=void 0;let n=e("fff221ae8f5735dd"),a=e("f5b1befb2b2c765");r.keccak224=(0,a.wrapHash)(n.keccak_224),r.keccak256=(()=>{let e=(0,a.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),r.keccak384=(0,a.wrapHash)(n.keccak_384),r.keccak512=(0,a.wrapHash)(n.keccak_512)},{fff221ae8f5735dd:"iySGL",f5b1befb2b2c765:"3lFGp"}],iySGL:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=r.keccakP=void 0;let n=e("7bdc6137be4a1400"),a=e("c896fa25cdc4e0a6"),i=e("aeb9ddcb21cf775d"),s=[],o=[],c=[],f=/* @__PURE__ */BigInt(0),d=/* @__PURE__ */BigInt(1),l=/* @__PURE__ */BigInt(2),u=/* @__PURE__ */BigInt(7),h=/* @__PURE__ */BigInt(256),p=/* @__PURE__ */BigInt(113);for(let e=0,t=d,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),o.push((e+1)*(e+2)/2%64);let a=f;for(let e=0;e<7;e++)(t=(t<>u)*p)%h)&l&&(a^=d<<(d<r>32?(0,a.rotlBH)(e,t,r):(0,a.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,a.rotlBL)(e,t,r):(0,a.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,a=(t+2)%10,i=r[a],s=r[a+1],o=m(i,s,1)^r[n],c=y(i,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=o[r],i=m(t,a,n),c=y(t,a,n),f=s[r];t=e[f],a=e[f+1],e[f]=i,e[f+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=g[n]}r.fill(0)}r.keccakP=v;class w extends i.Hash{constructor(e,t,r,a=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),v(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();let i=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw 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){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new w(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}r.Keccak=w;let x=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));r.sha3_224=x(6,144,28),r.sha3_256=x(6,136,32),r.sha3_384=x(6,104,48),r.sha3_512=x(6,72,64),r.keccak_224=x(1,144,28),r.keccak_256=x(1,136,32),r.keccak_384=x(1,104,48),r.keccak_512=x(1,72,64);let E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));r.shake128=E(31,168,16),r.shake256=E(31,136,32)},{"7bdc6137be4a1400":"8plnA",c896fa25cdc4e0a6:"6NT0D",aeb9ddcb21cf775d:"7z4fq"}],"9zQPg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Address",()=>o);var a=e("./account.js"),i=e("./bytes.js"),s=e("./constants.js");class o{constructor(e){if(20!==e.length)throw Error("Invalid address length");this.bytes=e}static zero(){return new o((0,i.zeros)(20))}static fromString(e){if(!(0,a.isValidAddress)(e))throw Error(`Invalid address input=${e}`);return new o((0,i.hexToBytes)(e))}static fromPublicKey(e){if(!(e instanceof Uint8Array))throw Error("Public key should be Uint8Array");return new o((0,a.pubToAddress)(e))}static fromPrivateKey(e){if(!(e instanceof Uint8Array))throw Error("Private key should be Uint8Array");return new o((0,a.privateToAddress)(e))}static generate(e,t){if("bigint"!=typeof t)throw Error("Expected nonce to be a bigint");return new o((0,a.generateAddress)(e.bytes,(0,i.bigIntToBytes)(t)))}static generate2(e,t,r){if(!(t instanceof Uint8Array))throw Error("Expected salt to be a Uint8Array");if(!(r instanceof Uint8Array))throw Error("Expected initCode to be a Uint8Array");return new o((0,a.generateAddress2)(e.bytes,t,r))}equals(e){return(0,i.equalsBytes)(this.bytes,e.bytes)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){let e=(0,i.bytesToBigInt)(this.bytes),t=s.BIGINT_0,r=BigInt("0xffff");return e>=t&&e<=r}toString(){return(0,i.bytesToHex)(this.bytes)}toBytes(){return new Uint8Array(this.bytes)}}},{"./account.js":"6lm25","./bytes.js":"lzhQs","./constants.js":"f7GxE","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],cdMpl:[function(e,t,r){var n,a,i,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"KeyEncoding",()=>i),o.export(r,"ValueEncoding",()=>s),(n=i||(i={})).String="string",n.Bytes="view",n.Number="number",(a=s||(s={})).String="string",a.Bytes="view",a.JSON="json"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],fhejp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Withdrawal",()=>c);var a=e("./address.js"),i=e("./bytes.js"),s=e("./constants.js"),o=e("./types.js");class c{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){let{index:t,validatorIndex:r,address:n,amount:s}=e,f=(0,o.toType)(t,o.TypeOutput.BigInt);return new c(f,(0,o.toType)(r,o.TypeOutput.BigInt),n instanceof a.Address?n:new a.Address((0,i.toBytes)(n)),(0,o.toType)(s,o.TypeOutput.BigInt))}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);let[t,r,n,a]=e;return c.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:a})}static toBytesArray(e){let{index:t,validatorIndex:r,address:n,amount:i}=e,c=(0,o.toType)(t,o.TypeOutput.BigInt)===s.BIGINT_0?new Uint8Array:(0,o.toType)(t,o.TypeOutput.Uint8Array);return[c,(0,o.toType)(r,o.TypeOutput.BigInt)===s.BIGINT_0?new Uint8Array:(0,o.toType)(r,o.TypeOutput.Uint8Array),n instanceof a.Address?n.bytes:(0,o.toType)(n,o.TypeOutput.Uint8Array),(0,o.toType)(i,o.TypeOutput.BigInt)===s.BIGINT_0?new Uint8Array:(0,o.toType)(i,o.TypeOutput.Uint8Array)]}raw(){return c.toBytesArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.bytes,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:(0,i.bytesToHex)(this.address.bytes),amount:(0,i.bigIntToHex)(this.amount)}}}},{"./address.js":"9zQPg","./bytes.js":"lzhQs","./constants.js":"f7GxE","./types.js":"cm4mK","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],cm4mK:[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"isNestedUint8Array",()=>function e(t){if(!Array.isArray(t))return!1;for(let r of t)if(Array.isArray(r)){if(!e(r))return!1}else if(!(r instanceof Uint8Array))return!1;return!0}),i.export(r,"TypeOutput",()=>a),i.export(r,"toType",()=>c);var s=e("./bytes.js"),o=e("./internal.js");function c(e,t){if(null===e)return null;if(void 0===e)return;if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${e}`);let r=(0,s.toBytes)(e);switch(t){case a.Uint8Array:return r;case a.BigInt:return(0,s.bytesToBigInt)(r);case a.Number:{let e=(0,s.bytesToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case a.PrefixedHexString:return(0,s.bytesToHex)(r);default:throw Error("unknown outputType")}}(n=a||(a={}))[n.Number=0]="Number",n[n.BigInt=1]="BigInt",n[n.Uint8Array=2]="Uint8Array",n[n.PrefixedHexString=3]="PrefixedHexString"},{"./bytes.js":"lzhQs","./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bOVB9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ecsign",()=>f),n.export(r,"calculateSigRecovery",()=>d),n.export(r,"ecrecover",()=>u),n.export(r,"toRpcSig",()=>h),n.export(r,"toCompactSig",()=>p),n.export(r,"fromRpcSig",()=>b),n.export(r,"isValidSignature",()=>g),n.export(r,"hashPersonalMessage",()=>m);var a=e("ethereum-cryptography/keccak.js"),i=e("ethereum-cryptography/secp256k1.js"),s=e("./bytes.js"),o=e("./constants.js"),c=e("./helpers.js");function f(e,t,r){let n=(0,i.secp256k1).sign(e,t),a=n.toCompactRawBytes();return{r:a.slice(0,32),s:a.slice(32,64),v:void 0===r?BigInt(n.recovery+27):BigInt(n.recovery+35)+BigInt(r)*o.BIGINT_2}}function d(e,t){return e===o.BIGINT_0||e===o.BIGINT_1?e:void 0===t?e-o.BIGINT_27:e-(t*o.BIGINT_2+BigInt(35))}function l(e){return e===o.BIGINT_0||e===o.BIGINT_1}let u=function(e,t,r,n,a){let o=(0,s.concatBytes)((0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(n,32)),c=d(t,a);if(!l(c))throw Error("Invalid signature v value");return(0,i.secp256k1).Signature.fromCompact(o).addRecoveryBit(Number(c)).recoverPublicKey(e).toRawBytes(!1).slice(1)},h=function(e,t,r,n){if(!l(d(e,n)))throw Error("Invalid signature v value");return(0,s.bytesToHex)((0,s.concatBytes)((0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBytes)(e)))},p=function(e,t,r,n){if(!l(d(e,n)))throw Error("Invalid signature v value");let a=Uint8Array.from([...r]);return(e>BigInt(28)&&e%o.BIGINT_2===o.BIGINT_1||e===o.BIGINT_1||e===BigInt(28))&&(a[0]|=128),(0,s.bytesToHex)((0,s.concatBytes)((0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(a,32)))},b=function(e){let t,r,n;let a=(0,s.toBytes)(e);if(a.length>=65)t=a.subarray(0,32),r=a.subarray(32,64),n=(0,s.bytesToBigInt)(a.subarray(64));else if(64===a.length)t=a.subarray(0,32),r=a.subarray(32,64),n=BigInt((0,s.bytesToInt)(a.subarray(32,33))>>7),r[0]&=127;else throw Error("Invalid signature length");return n<27&&(n+=o.BIGINT_27),{v:n,r:t,s:r}},g=function(e,t,r,n=!0,a){if(32!==t.length||32!==r.length||!l(d(e,a)))return!1;let i=(0,s.bytesToBigInt)(t),c=(0,s.bytesToBigInt)(r);return i!==o.BIGINT_0&&!(i>=o.SECP256K1_ORDER)&&c!==o.BIGINT_0&&!(c>=o.SECP256K1_ORDER)&&(!n||!(c>=o.SECP256K1_ORDER_DIV_2))},m=function(e){(0,c.assertIsBytes)(e);let t=(0,s.utf8ToBytes)(`\u0019Ethereum Signed Message: + */class t{constructor(e=0,t=0,r=!1){this.first=null,this.items=Object.create(null),this.last=null,this.max=e,this.resetTtl=r,this.size=0,this.ttl=t}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(e){if(this.has(e)){let t=this.items[e];delete this.items[e],this.size--,null!==t.prev&&(t.prev.next=t.next),null!==t.next&&(t.next.prev=t.prev),this.first===t&&(this.first=t.next),this.last===t&&(this.last=t.prev)}return this}entries(e=this.keys()){return e.map(e=>[e,this.get(e)])}evict(e=!1){if(e||this.size>0){let e=this.first;delete this.items[e.key],0==--this.size?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}return this}expiresAt(e){let t;return this.has(e)&&(t=this.items[e].expiry),t}get(e){let t;if(this.has(e)){let r=this.items[e];this.ttl>0&&r.expiry<=Date.now()?this.delete(e):(t=r.value,this.set(e,t,!0))}return t}has(e){return e in this.items}keys(){let e=[],t=this.first;for(;null!==t;)e.push(t.key),t=t.next;return e}set(e,t,r=!1,n=this.resetTtl){let a;if(r||this.has(e)){if((a=this.items[e]).value=t,!1===r&&n&&(a.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==a){let e=this.last,t=a.next,r=a.prev;this.first===a&&(this.first=a.next),a.next=null,a.prev=this.last,e.next=a,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),a=this.items[e]={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:t},1==++this.size?this.first=a:this.last.next=a;return this.last=a,this}values(e=this.keys()){return e.map(e=>this.get(e))}}let r={max:1e3},n=(e,n={})=>{let{cache:i,cacheKeyResolver:s=a,onHit:o,lruOptions:c={}}=n,f={...r,...c},d=i||function(e=1e3,r=0,n=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(r)||r<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof n)throw TypeError("Invalid resetTtl value");return new t(e,r,n)}(f.max,f.ttl);function l(...t){let r=s(...t),n=d.get(r);if(d.has(r))return o&&o(r,n,d),n;let a=e.apply(this,t);return d.set(r,a),a}return l._cache=d,l},a=(...e)=>0===e.length?"no-args":e.map(e=>void 0===e?"undefined":null===e?"null":Array.isArray(e)?`[${a(...e)}]`:"object"==typeof e?`{${a(...i(e))}}`:JSON.stringify(e)).join(","),i=e=>Object.entries(e).sort((e,t)=>e[0]"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:n,i=(e,t)=>{if("string"!=typeof e)throw"Invalid namespace key";if("string"!=typeof t)throw"Invalid item key"},s=e=>`globalise__singleton__${e}`,o=e=>{let t=a(),r=s(e);return t[r]||(t[r]={}),t[r]},c=(e,t)=>o(e)[t]||void 0,f=(e,t,r)=>{o(e)[t]=r};r.getGlobalisedValue=(e,t,r)=>{i(e,t);let n=c(e,t);return void 0!==n?n:(f(e,t,r),r)},r.clearGlobalNamespace=e=>{let t=a(),r=s(e);void 0!==t[r]&&delete t[r]}},{}],jZqA6:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ethers",()=>a);var a=e("./ethers.js");n.exportAll(a,r)},{"./ethers.js":"6g0fQ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6g0fQ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>a.version),n.export(r,"decodeBytes32String",()=>i.decodeBytes32String),n.export(r,"encodeBytes32String",()=>i.encodeBytes32String),n.export(r,"AbiCoder",()=>i.AbiCoder),n.export(r,"ConstructorFragment",()=>i.ConstructorFragment),n.export(r,"ErrorFragment",()=>i.ErrorFragment),n.export(r,"EventFragment",()=>i.EventFragment),n.export(r,"Fragment",()=>i.Fragment),n.export(r,"FallbackFragment",()=>i.FallbackFragment),n.export(r,"FunctionFragment",()=>i.FunctionFragment),n.export(r,"NamedFragment",()=>i.NamedFragment),n.export(r,"ParamType",()=>i.ParamType),n.export(r,"StructFragment",()=>i.StructFragment),n.export(r,"checkResultErrors",()=>i.checkResultErrors),n.export(r,"ErrorDescription",()=>i.ErrorDescription),n.export(r,"Indexed",()=>i.Indexed),n.export(r,"Interface",()=>i.Interface),n.export(r,"LogDescription",()=>i.LogDescription),n.export(r,"Result",()=>i.Result),n.export(r,"TransactionDescription",()=>i.TransactionDescription),n.export(r,"Typed",()=>i.Typed),n.export(r,"getAddress",()=>s.getAddress),n.export(r,"getIcapAddress",()=>s.getIcapAddress),n.export(r,"getCreateAddress",()=>s.getCreateAddress),n.export(r,"getCreate2Address",()=>s.getCreate2Address),n.export(r,"isAddressable",()=>s.isAddressable),n.export(r,"isAddress",()=>s.isAddress),n.export(r,"resolveAddress",()=>s.resolveAddress),n.export(r,"ZeroAddress",()=>o.ZeroAddress),n.export(r,"WeiPerEther",()=>o.WeiPerEther),n.export(r,"MaxUint256",()=>o.MaxUint256),n.export(r,"MinInt256",()=>o.MinInt256),n.export(r,"MaxInt256",()=>o.MaxInt256),n.export(r,"N",()=>o.N),n.export(r,"ZeroHash",()=>o.ZeroHash),n.export(r,"EtherSymbol",()=>o.EtherSymbol),n.export(r,"MessagePrefix",()=>o.MessagePrefix),n.export(r,"BaseContract",()=>c.BaseContract),n.export(r,"Contract",()=>c.Contract),n.export(r,"ContractFactory",()=>c.ContractFactory),n.export(r,"ContractEventPayload",()=>c.ContractEventPayload),n.export(r,"ContractTransactionReceipt",()=>c.ContractTransactionReceipt),n.export(r,"ContractTransactionResponse",()=>c.ContractTransactionResponse),n.export(r,"ContractUnknownEventPayload",()=>c.ContractUnknownEventPayload),n.export(r,"EventLog",()=>c.EventLog),n.export(r,"UndecodedEventLog",()=>c.UndecodedEventLog),n.export(r,"computeHmac",()=>f.computeHmac),n.export(r,"randomBytes",()=>f.randomBytes),n.export(r,"keccak256",()=>f.keccak256),n.export(r,"ripemd160",()=>f.ripemd160),n.export(r,"sha256",()=>f.sha256),n.export(r,"sha512",()=>f.sha512),n.export(r,"pbkdf2",()=>f.pbkdf2),n.export(r,"scrypt",()=>f.scrypt),n.export(r,"scryptSync",()=>f.scryptSync),n.export(r,"lock",()=>f.lock),n.export(r,"Signature",()=>f.Signature),n.export(r,"SigningKey",()=>f.SigningKey),n.export(r,"id",()=>d.id),n.export(r,"ensNormalize",()=>d.ensNormalize),n.export(r,"isValidName",()=>d.isValidName),n.export(r,"namehash",()=>d.namehash),n.export(r,"dnsEncode",()=>d.dnsEncode),n.export(r,"hashMessage",()=>d.hashMessage),n.export(r,"verifyMessage",()=>d.verifyMessage),n.export(r,"solidityPacked",()=>d.solidityPacked),n.export(r,"solidityPackedKeccak256",()=>d.solidityPackedKeccak256),n.export(r,"solidityPackedSha256",()=>d.solidityPackedSha256),n.export(r,"TypedDataEncoder",()=>d.TypedDataEncoder),n.export(r,"verifyTypedData",()=>d.verifyTypedData),n.export(r,"getDefaultProvider",()=>l.getDefaultProvider),n.export(r,"Block",()=>l.Block),n.export(r,"FeeData",()=>l.FeeData),n.export(r,"Log",()=>l.Log),n.export(r,"TransactionReceipt",()=>l.TransactionReceipt),n.export(r,"TransactionResponse",()=>l.TransactionResponse),n.export(r,"AbstractSigner",()=>l.AbstractSigner),n.export(r,"NonceManager",()=>l.NonceManager),n.export(r,"VoidSigner",()=>l.VoidSigner),n.export(r,"AbstractProvider",()=>l.AbstractProvider),n.export(r,"FallbackProvider",()=>l.FallbackProvider),n.export(r,"JsonRpcApiProvider",()=>l.JsonRpcApiProvider),n.export(r,"JsonRpcProvider",()=>l.JsonRpcProvider),n.export(r,"JsonRpcSigner",()=>l.JsonRpcSigner),n.export(r,"BrowserProvider",()=>l.BrowserProvider),n.export(r,"AlchemyProvider",()=>l.AlchemyProvider),n.export(r,"AnkrProvider",()=>l.AnkrProvider),n.export(r,"ChainstackProvider",()=>l.ChainstackProvider),n.export(r,"CloudflareProvider",()=>l.CloudflareProvider),n.export(r,"EtherscanProvider",()=>l.EtherscanProvider),n.export(r,"InfuraProvider",()=>l.InfuraProvider),n.export(r,"InfuraWebSocketProvider",()=>l.InfuraWebSocketProvider),n.export(r,"PocketProvider",()=>l.PocketProvider),n.export(r,"QuickNodeProvider",()=>l.QuickNodeProvider),n.export(r,"IpcSocketProvider",()=>l.IpcSocketProvider),n.export(r,"SocketProvider",()=>l.SocketProvider),n.export(r,"WebSocketProvider",()=>l.WebSocketProvider),n.export(r,"EnsResolver",()=>l.EnsResolver),n.export(r,"Network",()=>l.Network),n.export(r,"EnsPlugin",()=>l.EnsPlugin),n.export(r,"EtherscanPlugin",()=>l.EtherscanPlugin),n.export(r,"FeeDataNetworkPlugin",()=>l.FeeDataNetworkPlugin),n.export(r,"FetchUrlFeeDataNetworkPlugin",()=>l.FetchUrlFeeDataNetworkPlugin),n.export(r,"GasCostPlugin",()=>l.GasCostPlugin),n.export(r,"NetworkPlugin",()=>l.NetworkPlugin),n.export(r,"MulticoinProviderPlugin",()=>l.MulticoinProviderPlugin),n.export(r,"SocketBlockSubscriber",()=>l.SocketBlockSubscriber),n.export(r,"SocketEventSubscriber",()=>l.SocketEventSubscriber),n.export(r,"SocketPendingSubscriber",()=>l.SocketPendingSubscriber),n.export(r,"SocketSubscriber",()=>l.SocketSubscriber),n.export(r,"UnmanagedSubscriber",()=>l.UnmanagedSubscriber),n.export(r,"copyRequest",()=>l.copyRequest),n.export(r,"showThrottleMessage",()=>l.showThrottleMessage),n.export(r,"accessListify",()=>u.accessListify),n.export(r,"computeAddress",()=>u.computeAddress),n.export(r,"recoverAddress",()=>u.recoverAddress),n.export(r,"Transaction",()=>u.Transaction),n.export(r,"decodeBase58",()=>h.decodeBase58),n.export(r,"encodeBase58",()=>h.encodeBase58),n.export(r,"decodeBase64",()=>h.decodeBase64),n.export(r,"encodeBase64",()=>h.encodeBase64),n.export(r,"concat",()=>h.concat),n.export(r,"dataLength",()=>h.dataLength),n.export(r,"dataSlice",()=>h.dataSlice),n.export(r,"getBytes",()=>h.getBytes),n.export(r,"getBytesCopy",()=>h.getBytesCopy),n.export(r,"hexlify",()=>h.hexlify),n.export(r,"isHexString",()=>h.isHexString),n.export(r,"isBytesLike",()=>h.isBytesLike),n.export(r,"stripZerosLeft",()=>h.stripZerosLeft),n.export(r,"zeroPadBytes",()=>h.zeroPadBytes),n.export(r,"zeroPadValue",()=>h.zeroPadValue),n.export(r,"defineProperties",()=>h.defineProperties),n.export(r,"resolveProperties",()=>h.resolveProperties),n.export(r,"assert",()=>h.assert),n.export(r,"assertArgument",()=>h.assertArgument),n.export(r,"assertArgumentCount",()=>h.assertArgumentCount),n.export(r,"assertNormalize",()=>h.assertNormalize),n.export(r,"assertPrivate",()=>h.assertPrivate),n.export(r,"makeError",()=>h.makeError),n.export(r,"isCallException",()=>h.isCallException),n.export(r,"isError",()=>h.isError),n.export(r,"EventPayload",()=>h.EventPayload),n.export(r,"FetchRequest",()=>h.FetchRequest),n.export(r,"FetchResponse",()=>h.FetchResponse),n.export(r,"FetchCancelSignal",()=>h.FetchCancelSignal),n.export(r,"FixedNumber",()=>h.FixedNumber),n.export(r,"getBigInt",()=>h.getBigInt),n.export(r,"getNumber",()=>h.getNumber),n.export(r,"getUint",()=>h.getUint),n.export(r,"toBeArray",()=>h.toBeArray),n.export(r,"toBigInt",()=>h.toBigInt),n.export(r,"toBeHex",()=>h.toBeHex),n.export(r,"toNumber",()=>h.toNumber),n.export(r,"toQuantity",()=>h.toQuantity),n.export(r,"fromTwos",()=>h.fromTwos),n.export(r,"toTwos",()=>h.toTwos),n.export(r,"mask",()=>h.mask),n.export(r,"formatEther",()=>h.formatEther),n.export(r,"parseEther",()=>h.parseEther),n.export(r,"formatUnits",()=>h.formatUnits),n.export(r,"parseUnits",()=>h.parseUnits),n.export(r,"toUtf8Bytes",()=>h.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>h.toUtf8CodePoints),n.export(r,"toUtf8String",()=>h.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>h.Utf8ErrorFuncs),n.export(r,"decodeRlp",()=>h.decodeRlp),n.export(r,"encodeRlp",()=>h.encodeRlp),n.export(r,"uuidV4",()=>h.uuidV4),n.export(r,"Mnemonic",()=>p.Mnemonic),n.export(r,"BaseWallet",()=>p.BaseWallet),n.export(r,"HDNodeWallet",()=>p.HDNodeWallet),n.export(r,"HDNodeVoidWallet",()=>p.HDNodeVoidWallet),n.export(r,"Wallet",()=>p.Wallet),n.export(r,"defaultPath",()=>p.defaultPath),n.export(r,"getAccountPath",()=>p.getAccountPath),n.export(r,"getIndexedAccountPath",()=>p.getIndexedAccountPath),n.export(r,"isCrowdsaleJson",()=>p.isCrowdsaleJson),n.export(r,"isKeystoreJson",()=>p.isKeystoreJson),n.export(r,"decryptCrowdsaleJson",()=>p.decryptCrowdsaleJson),n.export(r,"decryptKeystoreJsonSync",()=>p.decryptKeystoreJsonSync),n.export(r,"decryptKeystoreJson",()=>p.decryptKeystoreJson),n.export(r,"encryptKeystoreJson",()=>p.encryptKeystoreJson),n.export(r,"encryptKeystoreJsonSync",()=>p.encryptKeystoreJsonSync),n.export(r,"Wordlist",()=>b.Wordlist),n.export(r,"LangEn",()=>b.LangEn),n.export(r,"WordlistOwl",()=>b.WordlistOwl),n.export(r,"WordlistOwlA",()=>b.WordlistOwlA),n.export(r,"wordlists",()=>b.wordlists);var a=e("./_version.js"),i=e("./abi/index.js"),s=e("./address/index.js"),o=e("./constants/index.js"),c=e("./contract/index.js"),f=e("./crypto/index.js"),d=e("./hash/index.js"),l=e("./providers/index.js"),u=e("./transaction/index.js"),h=e("./utils/index.js"),p=e("./wallet/index.js"),b=e("./wordlists/index.js")},{"./_version.js":!1,"./abi/index.js":"4ccGG","./address/index.js":!1,"./constants/index.js":"2Shkc","./contract/index.js":"h4Dfe","./crypto/index.js":"aHR5v","./hash/index.js":"1Ty7P","./providers/index.js":"9o4Hd","./transaction/index.js":!1,"./utils/index.js":"aoZEY","./wallet/index.js":!1,"./wordlists/index.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],iqyaN:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"version",()=>a);let a="6.13.5"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4ccGG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>a.AbiCoder),n.export(r,"decodeBytes32String",()=>i.decodeBytes32String),n.export(r,"encodeBytes32String",()=>i.encodeBytes32String),n.export(r,"ConstructorFragment",()=>s.ConstructorFragment),n.export(r,"ErrorFragment",()=>s.ErrorFragment),n.export(r,"EventFragment",()=>s.EventFragment),n.export(r,"FallbackFragment",()=>s.FallbackFragment),n.export(r,"Fragment",()=>s.Fragment),n.export(r,"FunctionFragment",()=>s.FunctionFragment),n.export(r,"NamedFragment",()=>s.NamedFragment),n.export(r,"ParamType",()=>s.ParamType),n.export(r,"StructFragment",()=>s.StructFragment),n.export(r,"checkResultErrors",()=>o.checkResultErrors),n.export(r,"Indexed",()=>o.Indexed),n.export(r,"Interface",()=>o.Interface),n.export(r,"ErrorDescription",()=>o.ErrorDescription),n.export(r,"LogDescription",()=>o.LogDescription),n.export(r,"TransactionDescription",()=>o.TransactionDescription),n.export(r,"Result",()=>o.Result),n.export(r,"Typed",()=>c.Typed);var a=e("./abi-coder.js"),i=e("./bytes32.js"),s=e("./fragments.js"),o=e("./interface.js"),c=e("./typed.js")},{"./abi-coder.js":"f57tP","./bytes32.js":!1,"./fragments.js":!1,"./interface.js":"2PGyl","./typed.js":"3auRl","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],f57tP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbiCoder",()=>E);var a=e("../utils/index.js"),i=e("./coders/abstract-coder.js"),s=e("./coders/address.js"),o=e("./coders/array.js"),c=e("./coders/boolean.js"),f=e("./coders/bytes.js"),d=e("./coders/fixed-bytes.js"),l=e("./coders/null.js"),u=e("./coders/number.js"),h=e("./coders/string.js"),p=e("./coders/tuple.js"),b=e("./fragments.js"),g=e("../address/index.js");let m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");let y=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/),w=null,x=1024;class E{#m(e){if(e.isArray())return new o.ArrayCoder(this.#m(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new p.TupleCoder(e.components.map(e=>this.#m(e)),e.name);switch(e.baseType){case"address":return new s.AddressCoder(e.name);case"bool":return new c.BooleanCoder(e.name);case"string":return new h.StringCoder(e.name);case"bytes":return new f.BytesCoder(e.name);case"":return new l.NullCoder(e.name)}let t=e.type.match(v);if(t){let r=parseInt(t[2]||"256");return(0,a.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid "+t[1]+" bit length","param",e),new u.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(y)){let r=parseInt(t[1]);return(0,a.assertArgument)(0!==r&&r<=32,"invalid bytes length","param",e),new d.FixedBytesCoder(r,e.name)}(0,a.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){let t=e.map(e=>this.#m((0,b.ParamType).from(e)));return new p.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,a.assertArgumentCount)(t.length,e.length,"types/values length mismatch");let r=e.map(e=>this.#m((0,b.ParamType).from(e))),n=new p.TupleCoder(r,"_"),s=new i.Writer;return n.encode(s,t),s.data}decode(e,t,r){let n=e.map(e=>this.#m((0,b.ParamType).from(e)));return new p.TupleCoder(n,"_").decode(new i.Reader(t,r,x))}static _setDefaultMaxInflation(e){(0,a.assertArgument)("number"==typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),x=e}static defaultAbiCoder(){return null==w&&(w=new E),w}static getBuiltinCallException(e,t,r){return function(e,t,r,n){let i="missing revert data",s=null,o=null;if(r){i="execution reverted";let e=(0,a.getBytes)(r);if(r=(0,a.hexlify)(r),0===e.length)i+=" (no data present; likely require(false) occurred",s="require(false)";else if(e.length%32!=4)i+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,a.hexlify)(e.slice(0,4)))try{s=n.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[s]},i+=`: ${JSON.stringify(s)}`}catch(e){i+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,a.hexlify)(e.slice(0,4)))try{let t=Number(n.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},s=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,i+=`: ${s}`}catch(e){i+=" (could not decode panic code)"}else i+=" (unknown custom error)"}let c={to:t.to?(0,g.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(c.from=(0,g.getAddress)(t.from)),(0,a.makeError)(i,"CALL_EXCEPTION",{action:e,data:r,reason:s,transaction:c,invocation:null,revert:o})}(e,t,r,E.defaultAbiCoder())}}},{"../utils/index.js":"aoZEY","./coders/abstract-coder.js":"9D1CN","./coders/address.js":"2EVUz","./coders/array.js":"eIRoG","./coders/boolean.js":"gvRue","./coders/bytes.js":"aQHy3","./coders/fixed-bytes.js":"4Zfo6","./coders/null.js":"awFmW","./coders/number.js":"9eyEp","./coders/string.js":"7ZlmT","./coders/tuple.js":"7d2xO","./fragments.js":"hSb7d","../address/index.js":"8s6vX","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aoZEY:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decodeBase58",()=>a.decodeBase58),n.export(r,"encodeBase58",()=>a.encodeBase58),n.export(r,"decodeBase64",()=>i.decodeBase64),n.export(r,"encodeBase64",()=>i.encodeBase64),n.export(r,"getBytes",()=>s.getBytes),n.export(r,"getBytesCopy",()=>s.getBytesCopy),n.export(r,"isHexString",()=>s.isHexString),n.export(r,"isBytesLike",()=>s.isBytesLike),n.export(r,"hexlify",()=>s.hexlify),n.export(r,"concat",()=>s.concat),n.export(r,"dataLength",()=>s.dataLength),n.export(r,"dataSlice",()=>s.dataSlice),n.export(r,"stripZerosLeft",()=>s.stripZerosLeft),n.export(r,"zeroPadValue",()=>s.zeroPadValue),n.export(r,"zeroPadBytes",()=>s.zeroPadBytes),n.export(r,"isCallException",()=>o.isCallException),n.export(r,"isError",()=>o.isError),n.export(r,"assert",()=>o.assert),n.export(r,"assertArgument",()=>o.assertArgument),n.export(r,"assertArgumentCount",()=>o.assertArgumentCount),n.export(r,"assertPrivate",()=>o.assertPrivate),n.export(r,"assertNormalize",()=>o.assertNormalize),n.export(r,"makeError",()=>o.makeError),n.export(r,"EventPayload",()=>c.EventPayload),n.export(r,"FetchRequest",()=>f.FetchRequest),n.export(r,"FetchResponse",()=>f.FetchResponse),n.export(r,"FetchCancelSignal",()=>f.FetchCancelSignal),n.export(r,"FixedNumber",()=>d.FixedNumber),n.export(r,"fromTwos",()=>l.fromTwos),n.export(r,"toTwos",()=>l.toTwos),n.export(r,"mask",()=>l.mask),n.export(r,"getBigInt",()=>l.getBigInt),n.export(r,"getNumber",()=>l.getNumber),n.export(r,"getUint",()=>l.getUint),n.export(r,"toBigInt",()=>l.toBigInt),n.export(r,"toNumber",()=>l.toNumber),n.export(r,"toBeHex",()=>l.toBeHex),n.export(r,"toBeArray",()=>l.toBeArray),n.export(r,"toQuantity",()=>l.toQuantity),n.export(r,"resolveProperties",()=>u.resolveProperties),n.export(r,"defineProperties",()=>u.defineProperties),n.export(r,"decodeRlp",()=>h.decodeRlp),n.export(r,"encodeRlp",()=>p.encodeRlp),n.export(r,"formatEther",()=>b.formatEther),n.export(r,"parseEther",()=>b.parseEther),n.export(r,"formatUnits",()=>b.formatUnits),n.export(r,"parseUnits",()=>b.parseUnits),n.export(r,"toUtf8Bytes",()=>g.toUtf8Bytes),n.export(r,"toUtf8CodePoints",()=>g.toUtf8CodePoints),n.export(r,"toUtf8String",()=>g.toUtf8String),n.export(r,"Utf8ErrorFuncs",()=>g.Utf8ErrorFuncs),n.export(r,"uuidV4",()=>m.uuidV4);var a=e("./base58.js"),i=e("./base64.js"),s=e("./data.js"),o=e("./errors.js"),c=e("./events.js"),f=e("./fetch.js"),d=e("./fixednumber.js"),l=e("./maths.js"),u=e("./properties.js"),h=e("./rlp-decode.js"),p=e("./rlp-encode.js"),b=e("./units.js"),g=e("./utf8.js"),m=e("./uuid.js")},{"./base58.js":"3VakI","./base64.js":!1,"./data.js":"TxBAz","./errors.js":"5Sfsc","./events.js":"buXeD","./fetch.js":"28cMp","./fixednumber.js":!1,"./maths.js":"9CO5q","./properties.js":"391vO","./rlp-decode.js":"gpnJi","./rlp-encode.js":"kfug1","./units.js":!1,"./utf8.js":"aysnp","./uuid.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3VakI":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"encodeBase58",()=>l),n.export(r,"decodeBase58",()=>u);var a=e("./data.js"),i=e("./errors.js"),s=e("./maths.js");let o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",c=null,f=BigInt(0),d=BigInt(58);function l(e){let t=(0,a.getBytes)(e),r=(0,s.toBigInt)(t),n="";for(;r;)n=o[Number(r%d)]+n,r/=d;for(let e=0;es),n.export(r,"getBytesCopy",()=>o),n.export(r,"isHexString",()=>c),n.export(r,"isBytesLike",()=>f),n.export(r,"hexlify",()=>l),n.export(r,"concat",()=>u),n.export(r,"dataLength",()=>h),n.export(r,"dataSlice",()=>p),n.export(r,"stripZerosLeft",()=>b),n.export(r,"zeroPadValue",()=>m),n.export(r,"zeroPadBytes",()=>y);var a=e("./errors.js");function i(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n>4]+d[15&n]}return r}function u(e){return"0x"+e.map(e=>l(e).substring(2)).join("")}function h(e){return c(e,!0)?(e.length-2)/2:s(e).length}function p(e,t,r){let n=s(e);return null!=r&&r>n.length&&(0,a.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),l(n.slice(null==t?0:t,null==r?n.length:r))}function b(e){let t=l(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t}function g(e,t,r){let n=s(e);(0,a.assert)(t>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:t,offset:t+1});let i=new Uint8Array(t);return i.fill(0),r?i.set(n,t-n.length):i.set(n,0),l(i)}function m(e,t){return g(e,t,!0)}function y(e,t){return g(e,t,!1)}},{"./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5Sfsc":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isError",()=>o),n.export(r,"isCallException",()=>c),n.export(r,"makeError",()=>f),n.export(r,"assert",()=>d),n.export(r,"assertArgument",()=>l),n.export(r,"assertArgumentCount",()=>u),n.export(r,"assertNormalize",()=>p),n.export(r,"assertPrivate",()=>b);var a=e("../_version.js"),i=e("./properties.js");function s(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(s).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n>4],r+=t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return s(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let t=Object.keys(e);return t.sort(),"{ "+t.map(t=>`${s(t)}: ${s(e[t])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function c(e){return o(e,"CALL_EXCEPTION")}function f(e,t,r){let n,o=e;{let n=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${s(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];n.push(e+"="+s(t))}}n.push(`code=${t}`),n.push(`version=${a.version}`),n.length&&(e+=" ("+n.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":n=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=RangeError(e);break;default:n=Error(e)}return(0,i.defineProperties)(n,{code:t}),r&&Object.assign(n,r),null==n.shortMessage&&(0,i.defineProperties)(n,{shortMessage:o}),n}function d(e,t,r,n){if(!e)throw f(t,r,n)}function l(e,t,r,n){d(e,t,"INVALID_ARGUMENT",{argument:r,value:n})}function u(e,t,r){null==r&&(r=""),r&&(r=": "+r),d(e>=t,"missing argument"+r,"MISSING_ARGUMENT",{count:e,expectedCount:t}),d(e<=t,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}let h=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);function p(e){d(h.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function b(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),d(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},{"../_version.js":"iqyaN","./properties.js":"391vO","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"391vO":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");async function a(e){let t=Object.keys(e);return(await Promise.all(t.map(t=>Promise.resolve(e[t])))).reduce((e,r,n)=>(e[t[n]]=r,e),{})}function i(e,t,r){for(let n in t){let a=t[n],i=r?r[n]:null;i&&function(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;ra),n.export(r,"defineProperties",()=>i)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9CO5q":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromTwos",()=>c),n.export(r,"toTwos",()=>f),n.export(r,"mask",()=>d),n.export(r,"getBigInt",()=>l),n.export(r,"getUint",()=>u),n.export(r,"toBigInt",()=>p),n.export(r,"getNumber",()=>b),n.export(r,"toNumber",()=>g),n.export(r,"toBeHex",()=>m),n.export(r,"toBeArray",()=>y),n.export(r,"toQuantity",()=>v);var a=e("./data.js"),i=e("./errors.js");let s=BigInt(0),o=BigInt(1);function c(e,t){let r=u(e,"value"),n=BigInt(b(t,"width"));return((0,i.assert)(r>>n===s,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),r>>n-o)?-((~r&(o<=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){(0,i.assertArgument)(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}(0,i.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function u(e,t){let r=l(e,t);return(0,i.assert)(r>=s,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}let h="0123456789abcdef";function p(e){if(e instanceof Uint8Array){let t="0x0";for(let r of e)t+=h[r>>4],t+=h[15&r];return BigInt(t)}return l(e)}function b(e,t){switch(typeof e){case"bigint":return(0,i.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),Number(e);case"number":return(0,i.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,i.assertArgument)(e>=-0x1fffffffffffff&&e<=0x1fffffffffffff,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return b(BigInt(e),t)}catch(r){(0,i.assertArgument)(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}(0,i.assertArgument)(!1,"invalid numeric value",t||"value",e)}function g(e){return b(p(e))}function m(e,t){let r=u(e,"value").toString(16);if(null==t)r.length%2&&(r="0"+r);else{let n=b(t,"width");for((0,i.assert)(2*n>=r.length,`value exceeds width (${n} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});r.length<2*n;)r="0"+r}return"0x"+r}function y(e){let t=u(e,"value");if(t===s)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);let n=new Uint8Array(r.length/2);for(let e=0;ei),n.export(r,"encodeBase64",()=>s);var a=e("./data.js");function i(e){let t=new Uint8Array((e=atob(e)).length);for(let r=0;ri);var a=e("./properties.js");class i{filter;emitter;#y;constructor(e,t,r){this.#y=t,(0,a.defineProperties)(this,{emitter:e,filter:r})}async removeListener(){null!=this.#y&&await this.emitter.off(this.filter,this.#y)}}},{"./properties.js":"391vO","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"28cMp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FetchCancelSignal",()=>y),n.export(r,"FetchRequest",()=>w),n.export(r,"FetchResponse",()=>x);var a=e("./base64.js"),i=e("./data.js"),s=e("./errors.js"),o=e("./properties.js"),c=e("./utf8.js"),f=e("./geturl.js");let d=(0,f.createGetUrl)(),l=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),u=RegExp("^ipfs://(ipfs/)?(.*)$","i"),h=!1;async function p(e,t){try{var r;let t=e.match(l);if(!t)throw Error("invalid data");return new x(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,a.decodeBase64)(t[3]):(r=t[3],(0,c.toUtf8Bytes)(r.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}catch(t){return new x(599,"BAD REQUEST (invalid data: URI)",{},null,new w(e))}}function b(e){return async function(t,r){try{let r=t.match(u);if(!r)throw Error("invalid link");return new w(`${e}${r[2]}`)}catch(e){return new x(599,"BAD REQUEST (invalid IPFS URI)",{},null,new w(t))}}}let g={data:p,ipfs:b("https://gateway.ipfs.io/ipfs/")},m=new WeakMap;class y{#v;#w;constructor(e){this.#v=[],this.#w=!1,m.set(e,()=>{if(!this.#w){for(let e of(this.#w=!0,this.#v))setTimeout(()=>{e()},0);this.#v=[]}})}addListener(e){(0,s.assert)(!this.#w,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#v.push(e)}get cancelled(){return this.#w}checkSignal(){(0,s.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function v(e){if(null==e)throw Error("missing signal; should not happen");return e.checkSignal(),e}class w{#x;#E;#A;#_;#T;#I;#S;#C;#k;#R;#M;#B;#P;#O;#j;get url(){return this.#I}set url(e){this.#I=String(e)}get body(){return null==this.#S?null:new Uint8Array(this.#S)}set body(e){if(null==e)this.#S=void 0,this.#C=void 0;else if("string"==typeof e)this.#S=(0,c.toUtf8Bytes)(e),this.#C="text/plain";else if(e instanceof Uint8Array)this.#S=e,this.#C="application/octet-stream";else if("object"==typeof e)this.#S=(0,c.toUtf8Bytes)(JSON.stringify(e)),this.#C="application/json";else throw Error("invalid body")}hasBody(){return null!=this.#S}get method(){return this.#_?this.#_:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#_=String(e).toUpperCase()}get headers(){let e=Object.assign({},this.#A);return this.#k&&(e.authorization=`Basic ${(0,a.encodeBase64)((0,c.toUtf8Bytes)(this.#k))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#C&&(e["content-type"]=this.#C),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#A[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#A={}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r=0,"timeout must be non-zero","timeout",e),this.#T=e}get preflightFunc(){return this.#R||null}set preflightFunc(e){this.#R=e}get processFunc(){return this.#M||null}set processFunc(e){this.#M=e}get retryFunc(){return this.#B||null}set retryFunc(e){this.#B=e}get getUrlFunc(){return this.#j||d}set getUrlFunc(e){this.#j=e}constructor(e){this.#I=String(e),this.#x=!1,this.#E=!0,this.#A={},this.#_="",this.#T=3e5,this.#O={slotInterval:250,maxAttempts:12},this.#j=null}toString(){return``}setThrottleParams(e){null!=e.slotInterval&&(this.#O.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#O.maxAttempts=e.maxAttempts)}async #N(e,t,r,n,a){if(e>=this.#O.maxAttempts)return a.makeServerError("exceeded maximum retry limit");(0,s.assert)(E()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:n}),r>0&&await new Promise(e=>setTimeout(e,r));let i=this.clone(),o=(i.url.split(":")[0]||"").toLowerCase();if(o in g){let e=await g[o](i.url,v(n.#P));if(e instanceof x){let t=e;if(this.processFunc){v(n.#P);try{t=await this.processFunc(i,t)}catch(e){(null==e.throttle||"number"!=typeof e.stall)&&t.makeServerError("error in post-processing function",e).assertOk()}}return t}i=e}this.preflightFunc&&(i=await this.preflightFunc(i));let c=await this.getUrlFunc(i,v(n.#P)),f=new x(c.statusCode,c.statusMessage,c.headers,c.body,n);if(301===f.statusCode||302===f.statusCode){try{let r=f.headers.location||"";return i.redirect(r).#N(e+1,t,0,n,f)}catch(e){}return f}if(429===f.statusCode&&(null==this.retryFunc||await this.retryFunc(i,f,e))){let r=f.headers["retry-after"],a=this.#O.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"==typeof r&&r.match(/^[1-9][0-9]*$/)&&(a=parseInt(r)),i.clone().#N(e+1,t,a,n,f)}if(this.processFunc){v(n.#P);try{f=await this.processFunc(i,f)}catch(a){(null==a.throttle||"number"!=typeof a.stall)&&f.makeServerError("error in post-processing function",a).assertOk();let r=this.#O.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return a.stall>=0&&(r=a.stall),i.clone().#N(e+1,t,r,n,f)}}return f}send(){return(0,s.assert)(null==this.#P,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#P=new y(this),this.#N(0,E()+this.timeout,0,this,new x(0,"",{},null,this))}cancel(){(0,s.assert)(null!=this.#P,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});let e=m.get(this);if(!e)throw Error("missing signal; should not happen");e()}redirect(e){let t=this.url.split(":")[0].toLowerCase(),r=e.split(":")[0].toLowerCase();(0,s.assert)("GET"===this.method&&("https"!==t||"http"!==r)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});let n=new w(e);return n.method="GET",n.allowGzip=this.allowGzip,n.timeout=this.timeout,n.#A=Object.assign({},this.#A),this.#S&&(n.#S=new Uint8Array(this.#S)),n.#C=this.#C,n}clone(){let e=new w(this.url);return e.#_=this.#_,this.#S&&(e.#S=this.#S),e.#C=this.#C,e.#A=Object.assign({},this.#A),e.#k=this.#k,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#R=this.#R,e.#M=this.#M,e.#B=this.#B,e.#O=Object.assign({},this.#O),e.#j=this.#j,e}static lockConfig(){h=!0}static getGateway(e){return g[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw Error(`cannot intercept ${e}; use registerGetUrl`);if(h)throw Error("gateways locked");g[e]=t}static registerGetUrl(e){if(h)throw Error("gateways locked");d=e}static createGetUrlFunc(e){return(0,f.createGetUrl)(e)}static createDataGateway(){return p}static createIpfsGatewayFunc(e){return b(e)}}class x{#U;#L;#A;#S;#D;#F;toString(){return``}get statusCode(){return this.#U}get statusMessage(){return this.#L}get headers(){return Object.assign({},this.#A)}get body(){return null==this.#S?null:new Uint8Array(this.#S)}get bodyText(){try{return null==this.#S?"":(0,c.toUtf8String)(this.#S)}catch(e){(0,s.assert)(!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(e){(0,s.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){let e=this.headers,t=Object.keys(e),r=0;return{next:()=>{if(r(e[t.toLowerCase()]=String(r[t]),e),{}),this.#S=null==n?null:new Uint8Array(n),this.#D=a||null,this.#F={message:""}}makeServerError(e,t){let r;e?r=`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:(e=`${this.statusCode} ${this.statusMessage}`,r=`CLIENT ESCALATED SERVER ERROR (${e})`);let n=new x(599,r,this.headers,this.body,this.#D||void 0);return n.#F={message:e,error:t},n}throwThrottleError(e,t){null==t?t=-1:(0,s.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);let r=Error(e||"throttling requests");throw(0,o.defineProperties)(r,{stall:t,throttle:!0}),r}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#S}get request(){return this.#D}ok(){return""===this.#F.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#F;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let r=null;this.request&&(r=this.request.url);let n=null;try{this.#S&&(n=(0,c.toUtf8String)(this.#S))}catch(e){}(0,s.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:r,responseBody:n,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function E(){return new Date().getTime()}},{"./base64.js":"32Ic3","./data.js":"TxBAz","./errors.js":"5Sfsc","./properties.js":"391vO","./utf8.js":"aysnp","./geturl.js":"3qyUr","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aysnp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Utf8ErrorFuncs",()=>o),n.export(r,"toUtf8Bytes",()=>f),n.export(r,"toUtf8String",()=>d),n.export(r,"toUtf8CodePoints",()=>l);var a=e("./data.js"),i=e("./errors.js");function s(e,t,r,n,a){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let n=t+1;n>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}let o=Object.freeze({error:function(e,t,r,n,a){(0,i.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:s,replace:function(e,t,r,n,a){return"OVERLONG"===e?((0,i.assertArgument)("number"==typeof a,"invalid bad code point for replacement","badCodepoint",a),n.push(a),0):(n.push(65533),s(e,t,r,n,a))}});function c(e,t){null==t&&(t=o.error);let r=(0,a.getBytes)(e,"bytes"),n=[],i=0;for(;i>7==0){n.push(e);continue}let a=null,s=null;if((224&e)==192)a=1,s=127;else if((240&e)==224)a=2,s=2047;else if((248&e)==240)a=3,s=65535;else{(192&e)==128?i+=t("UNEXPECTED_CONTINUE",i-1,r,n):i+=t("BAD_PREFIX",i-1,r,n);continue}if(i-1+a>=r.length){i+=t("OVERRUN",i-1,r,n);continue}let o=e&(1<<8-a-1)-1;for(let e=0;e1114111){i+=t("OUT_OF_RANGE",i-1-a,r,n,o);continue}if(o>=55296&&o<=57343){i+=t("UTF16_SURROGATE",i-1-a,r,n,o);continue}if(o<=s){i+=t("OVERLONG",i-1-a,r,n,o);continue}n.push(o)}}return n}function f(e,t){(0,i.assertArgument)("string"==typeof e,"invalid string value","str",e),null!=t&&((0,i.assertNormalize)(t),e=e.normalize(t));let r=[];for(let t=0;t>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let a=e.charCodeAt(t);(0,i.assertArgument)(t>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}function d(e,t){return c(e,t).map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function l(e,t){return c(f(e,t))}},{"./data.js":"TxBAz","./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3qyUr":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createGetUrl",()=>i),n.export(r,"getUrl",()=>o);var a=e("./errors.js");function i(e){return async function(e,t){let r;(0,a.assert)(null==t||!t.cancelled,"request cancelled before sending","CANCELLED");let n=e.url.split(":")[0].toLowerCase();(0,a.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,a.assert)("https"===n||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null,s=new AbortController,o=setTimeout(()=>{i=(0,a.makeError)("request timeout","TIMEOUT"),s.abort()},e.timeout);t&&t.addListener(()=>{i=(0,a.makeError)("request cancelled","CANCELLED"),s.abort()});let c={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:s.signal};try{r=await fetch(e.url,c)}catch(e){if(clearTimeout(o),i)throw i;throw e}clearTimeout(o);let f={};r.headers.forEach((e,t)=>{f[t.toLowerCase()]=e});let d=await r.arrayBuffer(),l=null==d?null:new Uint8Array(d);return{statusCode:r.status,statusMessage:r.statusText,headers:f,body:l}}}let s=i({});async function o(e,t){return s(e,t)}},{"./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gpnJi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"decodeRlp",()=>f);var a=e("./data.js"),i=e("./errors.js");function s(e,t,r){let n=0;for(let a=0;a{(0,i.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){let n=e[t]-247;r(t+1+n);let a=s(e,t+1,n);return r(t+1+n+a),o(e,t,t+1+n,n+a)}if(e[t]>=192){let n=e[t]-192;return r(t+1+n),o(e,t,t+1,n)}if(e[t]>=184){let n=e[t]-183;r(t+1+n);let i=s(e,t+1,n);r(t+1+n+i);let o=(0,a.hexlify)(e.slice(t+1+n,t+1+n+i));return{consumed:1+n+i,result:o}}if(e[t]>=128){let n=e[t]-128;r(t+1+n);let i=(0,a.hexlify)(e.slice(t+1,t+1+n));return{consumed:1+n,result:i}}return{consumed:1,result:function(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}(e[t])}}function f(e){let t=(0,a.getBytes)(e,"data"),r=c(t,0);return(0,i.assertArgument)(r.consumed===t.length,"unexpected junk after rlp payload","data",e),r.result}},{"./data.js":"TxBAz","./errors.js":"5Sfsc","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kfug1:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"encodeRlp",()=>o);var a=e("./data.js");function i(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}let s="0123456789abcdef";function o(e){let t="0x";for(let r of function e(t){if(Array.isArray(t)){let r=[];if(t.forEach(function(t){r=r.concat(e(t))}),r.length<=55)return r.unshift(192+r.length),r;let n=i(r.length);return n.unshift(247+n.length),n.concat(r)}let r=Array.prototype.slice.call((0,a.getBytes)(t,"object"));if(1===r.length&&r[0]<=127)return r;if(r.length<=55)return r.unshift(128+r.length),r;let n=i(r.length);return n.unshift(183+n.length),n.concat(r)}(e))t+=s[r>>4],t+=s[15&r];return t}},{"./data.js":"TxBAz","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9D1CN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"WordSize",()=>i),n.export(r,"Result",()=>u),n.export(r,"checkResultErrors",()=>h),n.export(r,"Coder",()=>b),n.export(r,"Writer",()=>g),n.export(r,"Reader",()=>m);var a=e("../../utils/index.js");let i=32,s=new Uint8Array(32),o=["then"],c={},f=new WeakMap;function d(e){return f.get(e)}function l(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);throw r.error=t,r}class u extends Array{#H;constructor(...e){var t,r;let n=e[0],i=e[1],s=(e[2]||[]).slice(),u=!0;n!==c&&(i=e,s=[],u=!1),super(i.length),i.forEach((e,t)=>{this[t]=e});let h=s.reduce((e,t)=>("string"==typeof t&&e.set(t,(e.get(t)||0)+1),e),new Map);if(t=Object.freeze(i.map((e,t)=>{let r=s[t];return null!=r&&1===h.get(r)?r:null})),f.set(this,t),this.#H=[],null==this.#H&&this.#H,!u)return;Object.freeze(this);let p=new Proxy(this,{get:(e,t,r)=>{if("string"==typeof t){if(t.match(/^[0-9]+$/)){let r=(0,a.getNumber)(t,"%index");if(r<0||r>=this.length)throw RangeError("out of result range");let n=e[r];return n instanceof Error&&l(`index ${r}`,n),n}if(o.indexOf(t)>=0)return Reflect.get(e,t,r);let n=e[t];if(n instanceof Function)return function(...t){return n.apply(this===r?e:this,t)};if(!(t in e))return e.getValue.apply(this===r?e:this,[t])}return Reflect.get(e,t,r)}});return r=d(this),f.set(p,r),p}toArray(e){let t=[];return this.forEach((r,n)=>{r instanceof Error&&l(`index ${n}`,r),e&&r instanceof u&&(r=r.toArray(e)),t.push(r)}),t}toObject(e){let t=d(this);return t.reduce((r,n,i)=>((0,a.assert)(null!=n,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),function e(t,r,n){return t.indexOf(null)>=0?r.map((t,r)=>t instanceof u?e(d(t),t,n):t):t.reduce((t,a,i)=>{let s=r.getValue(a);return a in t||(n&&s instanceof u&&(s=e(d(s),s,n)),t[a]=s),t},{})}(t,this,e)),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);let r=d(this),n=[],a=[];for(let i=e;i{this.#V[e]=p(t)}}}class m{allowLoose;#V;#G;#K;#W;#$;constructor(e,t,r){(0,a.defineProperties)(this,{allowLoose:!!t}),this.#V=(0,a.getBytesCopy)(e),this.#K=0,this.#W=null,this.#$=null!=r?r:1024,this.#G=0}get data(){return(0,a.hexlify)(this.#V)}get dataLength(){return this.#V.length}get consumed(){return this.#G}get bytes(){return new Uint8Array(this.#V)}#J(e){if(this.#W)return this.#W.#J(e);this.#K+=e,(0,a.assert)(this.#$<1||this.#K<=this.#$*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#$} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,a.getBytesCopy)(this.#V),offset:this.#G,length:e,info:{bytesRead:this.#K,dataLength:this.dataLength}})}#Q(e,t,r){let n=Math.ceil(t/i)*i;return this.#G+n>this.#V.length&&(this.allowLoose&&r&&this.#G+t<=this.#V.length?n=t:(0,a.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,a.getBytesCopy)(this.#V),length:this.#V.length,offset:this.#G+n})),this.#V.slice(this.#G,this.#G+n)}subReader(e){let t=new m(this.#V.slice(this.#G+e),this.allowLoose,this.#$);return t.#W=this,t}readBytes(e,t){let r=this.#Q(0,e,!!t);return this.#J(e),this.#G+=r.length,r.slice(0,e)}readValue(){return(0,a.toBigInt)(this.readBytes(i))}readIndex(){return(0,a.toNumber)(this.readBytes(i))}}},{"../../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2EVUz":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AddressCoder",()=>c);var a=e("../../address/index.js"),i=e("../../utils/maths.js"),s=e("../typed.js"),o=e("./abstract-coder.js");class c extends o.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let r=(0,s.Typed).dereference(t,"string");try{r=(0,a.getAddress)(r)}catch(e){return this._throwError(e.message,t)}return e.writeValue(r)}decode(e){return(0,a.getAddress)((0,i.toBeHex)(e.readValue(),20))}}},{"../../address/index.js":"8s6vX","../../utils/maths.js":"9CO5q","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8s6vX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getAddress",()=>a.getAddress),n.export(r,"getIcapAddress",()=>a.getIcapAddress),n.export(r,"getCreateAddress",()=>i.getCreateAddress),n.export(r,"getCreate2Address",()=>i.getCreate2Address),n.export(r,"isAddressable",()=>s.isAddressable),n.export(r,"isAddress",()=>s.isAddress),n.export(r,"resolveAddress",()=>s.resolveAddress);var a=e("./address.js"),i=e("./contract-address.js"),s=e("./checks.js")},{"./address.js":"aXhJ2","./contract-address.js":"5gq13","./checks.js":"6XnDN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aXhJ2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getAddress",()=>u),n.export(r,"getIcapAddress",()=>h);var a=e("../crypto/index.js"),i=e("../utils/index.js");let s=BigInt(0),o=BigInt(36);function c(e){let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=(0,i.getBytes)((0,a.keccak256)(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let f={};for(let e=0;e<10;e++)f[String(e)]=String(e);for(let e=0;e<26;e++)f[String.fromCharCode(65+e)]=String(10+e);function d(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>f[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}let l=function(){let e={};for(let t=0;t<36;t++)e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t);return e}();function u(e){if((0,i.assertArgument)("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=c(e);return(0,i.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,i.assertArgument)(e.substring(2,4)===d(e),"bad icap checksum","address",e);let t=(function(e){e=e.toLowerCase();let t=s;for(let r=0;rl.SigningKey),n.export(r,"Signature",()=>u.Signature),n.export(r,"computeHmac",()=>a.computeHmac),n.export(r,"randomBytes",()=>c.randomBytes),n.export(r,"keccak256",()=>i.keccak256),n.export(r,"ripemd160",()=>s.ripemd160),n.export(r,"sha256",()=>d.sha256),n.export(r,"sha512",()=>d.sha512),n.export(r,"pbkdf2",()=>o.pbkdf2),n.export(r,"scrypt",()=>f.scrypt),n.export(r,"scryptSync",()=>f.scryptSync),n.export(r,"lock",()=>h);var a=e("./hmac.js"),i=e("./keccak.js"),s=e("./ripemd160.js"),o=e("./pbkdf2.js"),c=e("./random.js"),f=e("./scrypt.js"),d=e("./sha2.js"),l=e("./signing-key.js"),u=e("./signature.js");function h(){(0,a.computeHmac).lock(),(0,i.keccak256).lock(),(0,o.pbkdf2).lock(),(0,c.randomBytes).lock(),(0,s.ripemd160).lock(),(0,f.scrypt).lock(),(0,f.scryptSync).lock(),(0,d.sha256).lock(),(0,d.sha512).lock(),(0,c.randomBytes).lock()}},{"./hmac.js":"edAlO","./keccak.js":"717uU","./ripemd160.js":"1MSrJ","./pbkdf2.js":"1ulPs","./random.js":"eA3PK","./scrypt.js":"2R171","./sha2.js":"01h0r","./signing-key.js":"6fyju","./signature.js":"kpLQM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],edAlO:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"computeHmac",()=>f);var a=e("./crypto.js"),i=e("../utils/index.js");let s=!1,o=function(e,t,r){return(0,a.createHmac)(e,t).update(r).digest()},c=o;function f(e,t,r){let n=(0,i.getBytes)(t,"key"),a=(0,i.getBytes)(r,"data");return(0,i.hexlify)(c(e,n,a))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw Error("computeHmac is locked");c=e},Object.freeze(f)},{"./crypto.js":"gcmds","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gcmds:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createHash",()=>u),n.export(r,"createHmac",()=>h),n.export(r,"pbkdf2Sync",()=>p),n.export(r,"randomBytes",()=>b);var a=e("@noble/hashes/hmac"),i=e("@noble/hashes/pbkdf2"),s=e("@noble/hashes/sha256"),o=e("@noble/hashes/sha512"),c=e("../utils/index.js"),f=arguments[3];let d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==f)return f;throw Error("unable to locate global object")}(),l=d.crypto||d.msCrypto;function u(e){switch(e){case"sha256":return(0,s.sha256).create();case"sha512":return(0,o.sha512).create()}(0,c.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)}function h(e,t){let r={sha256:s.sha256,sha512:o.sha512}[e];return(0,c.assertArgument)(null!=r,"invalid hmac algorithm","algorithm",e),(0,a.hmac).create(r,t)}function p(e,t,r,n,a){let f={sha256:s.sha256,sha512:o.sha512}[a];return(0,c.assertArgument)(null!=f,"invalid pbkdf2 algorithm","algorithm",a),(0,i.pbkdf2)(f,e,t,{c:r,dkLen:n})}function b(e){(0,c.assert)(null!=l,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,c.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);let t=new Uint8Array(e);return l.getRandomValues(t),t}},{"@noble/hashes/hmac":"4YtgG","@noble/hashes/pbkdf2":"lxkUV","@noble/hashes/sha256":"lK7uV","@noble/hashes/sha512":"IgUSi","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4YtgG":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hmac=r.HMAC=void 0;let n=e("9d7a1d8e64ff94ec"),a=e("e468e477b5d9679e");class i extends a.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.hash)(e);let r=(0,a.toBytes)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?e.create().update(r).digest():r);for(let e=0;enew i(e,t).update(r).digest(),r.hmac.create=(e,t)=>new i(e,t)},{"9d7a1d8e64ff94ec":"5t4wd",e468e477b5d9679e:"fDQnA"}],"5t4wd":[function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function a(e){if("boolean"!=typeof e)throw Error(`Expected boolean, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function s(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function c(e,t){i(e);let r=t.outputLen;if(e.lengthe instanceof Uint8Array;if(r.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),r.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),r.rotr=(e,t)=>e<<32-t|e>>>t,r.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],!r.isLE)throw Error("Non little-endian hardware is not supported");let i=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));r.bytesToHex=function(e){if(!a(e))throw Error("Uint8Array expected");let t="";for(let r=0;r{};async function o(e,t,n){let a=Date.now();for(let i=0;i=0&&ee+t.length,0)),r=0;return e.forEach(e=>{if(!a(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t},r.Hash=class{clone(){return this._cloneInto()}};let d={}.toString;r.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==d.call(t))throw Error("Options should be object or undefined");return Object.assign(e,t)},r.wrapConstructor=function(e){let t=t=>e().update(f(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},r.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(f(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},{"6d0c45c60fe4aa6a":"5WBAK"}],"5WBAK":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},{}],lxkUV:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pbkdf2Async=r.pbkdf2=void 0;let n=e("3d55d55cf456e57f"),a=e("8ae10c39d1e1dd8c"),i=e("1c3e2366802a63f6");function s(e,t,r,s){(0,n.hash)(e);let{c:o,dkLen:c,asyncTick:f}=(0,i.checkOpts)({dkLen:32,asyncTick:10},s);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(f),o<1)throw Error("PBKDF2: iterations (c) should be >= 1");let d=(0,i.toBytes)(t),l=(0,i.toBytes)(r),u=new Uint8Array(c),h=a.hmac.create(e,d),p=h._cloneInto().update(l);return{c:o,dkLen:c,asyncTick:f,DK:u,PRF:h,PRFSalt:p}}function o(e,t,r,n,a){return e.destroy(),t.destroy(),n&&n.destroy(),a.fill(0),r}async function c(e,t,r,n){let a;let{c,dkLen:f,asyncTick:d,DK:l,PRF:u,PRFSalt:h}=s(e,t,r,n),p=new Uint8Array(4),b=(0,i.createView)(p),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t{u._cloneInto(a).update(g).digestInto(g);for(let e=0;ee&t^~e&r,s=(e,t,r)=>e&t^e&r^t&r,o=/* @__PURE__ */new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),c=/* @__PURE__ */new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),f=/* @__PURE__ */new Uint32Array(64);class d extends n.SHA2{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:r,D:n,E:a,F:i,G:s,H:o}=this;return[e,t,r,n,a,i,s,o]}set(e,t,r,n,a,i,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|i,this.G=0|s,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)f[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=f[e-15],r=f[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,i=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;f[e]=i+f[e-7]+n+f[e-16]|0}let{A:r,B:n,C:c,D:d,E:l,F:u,G:h,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,a.rotr)(l,6)^(0,a.rotr)(l,11)^(0,a.rotr)(l,25))+i(l,u,h)+o[e]+f[e]|0,b=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+s(r,n,c)|0;p=h,h=u,u=l,l=d+t|0,d=c,c=n,n=r,r=t+b|0}r=r+this.A|0,n=n+this.B|0,c=c+this.C|0,d=d+this.D|0,l=l+this.E|0,u=u+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(r,n,c,d,l,u,h,p)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l extends d{constructor(){super(),this.A=-0x3efa6128,this.B=0x367cd507,this.C=0x3070dd17,this.D=-0x8f1a6c7,this.E=-4191439,this.F=0x68581511,this.G=0x64f98fa7,this.H=-0x4105b05c,this.outputLen=28}}r.sha256=(0,a.wrapConstructor)(()=>new d),r.sha224=(0,a.wrapConstructor)(()=>new l)},{"5edc7ce9065b8862":"kq97k","8e1421b0f3756e26":"fDQnA"}],kq97k:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SHA2=void 0;let n=e("bdbe2dfb766648d4"),a=e("57dab68b3133d0e8");class i extends a.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:i}=this,s=(e=(0,a.toBytes)(e)).length;for(let n=0;ni-o&&(this.process(r,0),o=0);for(let e=o;e>a&i),o=Number(r&i),c=n?4:0,f=n?0:4;e.setUint32(t+c,s,n),e.setUint32(t+f,o,n)}(r,i-8,BigInt(8*this.length),s),this.process(r,0);let c=(0,a.createView)(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=f/4,l=this.get();if(d>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;eBigInt(e))),c=/* @__PURE__ */new Uint32Array(80),f=/* @__PURE__ */new Uint32Array(80);class d extends n.SHA2{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:a,Cl:i,Dh:s,Dl:o,Eh:c,El:f,Fh:d,Fl:l,Gh:u,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b]}set(e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|a,this.Cl=0|i,this.Dh=0|s,this.Dl=0|o,this.Eh=0|c,this.El=0|f,this.Fh=0|d,this.Fl=0|l,this.Gh=0|u,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),f[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|c[e-15],r=0|f[e-15],n=a.default.rotrSH(t,r,1)^a.default.rotrSH(t,r,8)^a.default.shrSH(t,r,7),i=a.default.rotrSL(t,r,1)^a.default.rotrSL(t,r,8)^a.default.shrSL(t,r,7),s=0|c[e-2],o=0|f[e-2],d=a.default.rotrSH(s,o,19)^a.default.rotrBH(s,o,61)^a.default.shrSH(s,o,6),l=a.default.rotrSL(s,o,19)^a.default.rotrBL(s,o,61)^a.default.shrSL(s,o,6),u=a.default.add4L(i,l,f[e-7],f[e-16]),h=a.default.add4H(u,n,d,c[e-7],c[e-16]);c[e]=0|h,f[e]=0|u}let{Ah:r,Al:n,Bh:i,Bl:d,Ch:l,Cl:u,Dh:h,Dl:p,Eh:b,El:g,Fh:m,Fl:y,Gh:v,Gl:w,Hh:x,Hl:E}=this;for(let e=0;e<80;e++){let t=a.default.rotrSH(b,g,14)^a.default.rotrSH(b,g,18)^a.default.rotrBH(b,g,41),A=a.default.rotrSL(b,g,14)^a.default.rotrSL(b,g,18)^a.default.rotrBL(b,g,41),_=b&m^~b&v,T=g&y^~g&w,I=a.default.add5L(E,A,T,o[e],f[e]),S=a.default.add5H(I,x,t,_,s[e],c[e]),C=0|I,k=a.default.rotrSH(r,n,28)^a.default.rotrBH(r,n,34)^a.default.rotrBH(r,n,39),R=a.default.rotrSL(r,n,28)^a.default.rotrBL(r,n,34)^a.default.rotrBL(r,n,39),M=r&i^r&l^i&l,B=n&d^n&u^d&u;x=0|v,E=0|w,v=0|m,w=0|y,m=0|b,y=0|g,({h:b,l:g}=a.default.add(0|h,0|p,0|S,0|C)),h=0|l,p=0|u,l=0|i,u=0|d,i=0|r,d=0|n;let P=a.default.add3L(C,R,B);r=a.default.add3H(P,S,k,M),n=0|P}({h:r,l:n}=a.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:d}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|d)),({h:l,l:u}=a.default.add(0|this.Ch,0|this.Cl,0|l,0|u)),({h:h,l:p}=a.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:b,l:g}=a.default.add(0|this.Eh,0|this.El,0|b,0|g)),({h:m,l:y}=a.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:v,l:w}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:x,l:E}=a.default.add(0|this.Hh,0|this.Hl,0|x,0|E)),this.set(r,n,i,d,l,u,h,p,b,g,m,y,v,w,x,E)}roundClean(){c.fill(0),f.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)}}r.SHA512=d;class l extends d{constructor(){super(),this.Ah=-0x73c2c838,this.Al=0x19544da2,this.Bh=0x73e19966,this.Bl=-0x76232b2a,this.Ch=0x1dfab7ae,this.Cl=0x32ff9c82,this.Dh=0x679dd514,this.Dl=0x582f9fcf,this.Eh=0xf6d2b69,this.El=0x7bd44da8,this.Fh=0x77e36f73,this.Fl=0x4c48942,this.Gh=0x3f9d85a8,this.Gl=0x6a1d36c8,this.Hh=0x1112e6ad,this.Hl=-0x6e296d5f,this.outputLen=28}}class u extends d{constructor(){super(),this.Ah=0x22312194,this.Al=-0x3d408d4,this.Bh=-0x60aaa05d,this.Bl=-0x37b39b3e,this.Ch=0x2393b86b,this.Cl=0x6f53b151,this.Dh=-0x69c788e7,this.Dl=0x5940eabd,this.Eh=-0x69d7c11e,this.El=-0x5771001d,this.Fh=-0x41a1e1db,this.Fl=0x53863992,this.Gh=0x2b0199fc,this.Gl=0x2c85b8aa,this.Hh=0xeb72ddc,this.Hl=-0x7e3ad35e,this.outputLen=32}}class h extends d{constructor(){super(),this.Ah=-0x344462a3,this.Al=-0x3efa6128,this.Bh=0x629a292a,this.Bl=0x367cd507,this.Ch=-0x6ea6fea6,this.Cl=0x3070dd17,this.Dh=0x152fecd8,this.Dl=-0x8f1a6c7,this.Eh=0x67332667,this.El=-4191439,this.Fh=-0x714bb579,this.Fl=0x68581511,this.Gh=-0x24f3d1f3,this.Gl=0x64f98fa7,this.Hh=0x47b5481d,this.Hl=-0x4105b05c,this.outputLen=48}}r.sha512=(0,i.wrapConstructor)(()=>new d),r.sha512_224=(0,i.wrapConstructor)(()=>new l),r.sha512_256=(0,i.wrapConstructor)(()=>new u),r.sha384=(0,i.wrapConstructor)(()=>new h)},{c82663053d384114:"kq97k","70796940e2781dba":"1AwYJ","1f592dcd1c9cbcd7":"fDQnA"}],"1AwYJ":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.add=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=r.split=r.fromBig=void 0;let n=/* @__PURE__ */BigInt(0x100000000-1),a=/* @__PURE__ */BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>a&n)}:{h:0|Number(e>>a&n),l:0|Number(e&n)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);r.toBig=o;let c=(e,t,r)=>e>>>r;r.shrSH=c;let f=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=f;let d=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=d;let l=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=l;let u=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=u;let h=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=h;let p=(e,t)=>t;r.rotr32H=p;let b=(e,t)=>e;r.rotr32L=b;let g=(e,t,r)=>e<>>32-r;r.rotlSH=g;let m=(e,t,r)=>t<>>32-r;r.rotlSL=m;let y=(e,t,r)=>t<>>64-r;r.rotlBH=y;let v=(e,t,r)=>e<>>64-r;function w(e,t,r,n){let a=(t>>>0)+(n>>>0);return{h:e+r+(a/0x100000000|0)|0,l:0|a}}r.rotlBL=v,r.add=w;let x=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=x;let E=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;r.add3H=E;let A=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=A;let _=(e,t,r,n,a)=>t+r+n+a+(e/0x100000000|0)|0;r.add4H=_;let T=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);r.add5L=T;let I=(e,t,r,n,a,i)=>t+r+n+a+i+(e/0x100000000|0)|0;r.add5H=I,r.default={fromBig:i,split:s,toBig:o,shrSH:c,shrSL:f,rotrSH:d,rotrSL:l,rotrBH:u,rotrBL:h,rotr32H:p,rotr32L:b,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:v,add:w,add3L:x,add3H:E,add4L:A,add4H:_,add5H:I,add5L:T}},{}],"717uU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"keccak256",()=>f);var a=e("@noble/hashes/sha3"),i=e("../utils/index.js");let s=!1,o=function(e){return(0,a.keccak_256)(e)},c=o;function f(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(c(t))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw TypeError("keccak256 is locked");c=e},Object.freeze(f)},{"@noble/hashes/sha3":"anjzr","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],anjzr:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=r.keccakP=void 0;let n=e("3e717ef93a226087"),a=e("d05b1d57afe10d70"),i=e("fca1932d4a5bc1cd"),[s,o,c]=[[],[],[]],f=/* @__PURE__ */BigInt(0),d=/* @__PURE__ */BigInt(1),l=/* @__PURE__ */BigInt(2),u=/* @__PURE__ */BigInt(7),h=/* @__PURE__ */BigInt(256),p=/* @__PURE__ */BigInt(113);for(let e=0,t=d,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),o.push((e+1)*(e+2)/2%64);let a=f;for(let e=0;e<7;e++)(t=(t<>u)*p)%h)&l&&(a^=d<<(d<r>32?(0,a.rotlBH)(e,t,r):(0,a.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,a.rotlBL)(e,t,r):(0,a.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,a=(t+2)%10,i=r[a],s=r[a+1],o=m(i,s,1)^r[n],c=y(i,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=o[r],i=m(t,a,n),c=y(t,a,n),f=s[r];t=e[f],a=e[f+1],e[f]=i,e[f+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=g[n]}r.fill(0)}r.keccakP=v;class w extends i.Hash{constructor(e,t,r,a=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();let i=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw 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){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new w(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}r.Keccak=w;let x=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));r.sha3_224=x(6,144,28),r.sha3_256=x(6,136,32),r.sha3_384=x(6,104,48),r.sha3_512=x(6,72,64),r.keccak_224=x(1,144,28),r.keccak_256=x(1,136,32),r.keccak_384=x(1,104,48),r.keccak_512=x(1,72,64);let E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));r.shake128=E(31,168,16),r.shake256=E(31,136,32)},{"3e717ef93a226087":"5t4wd",d05b1d57afe10d70:"1AwYJ",fca1932d4a5bc1cd:"fDQnA"}],"1MSrJ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ripemd160",()=>f);var a=e("@noble/hashes/ripemd160"),i=e("../utils/index.js");let s=!1,o=function(e){return(0,a.ripemd160)(e)},c=o;function f(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(c(t))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw TypeError("ripemd160 is locked");c=e},Object.freeze(f)},{"@noble/hashes/ripemd160":"aDwHd","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aDwHd:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ripemd160=r.RIPEMD160=void 0;let n=e("a8aec8bf88d4e01d"),a=e("c544980a6b232368"),i=/* @__PURE__ */new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=/* @__PURE__ */Uint8Array.from({length:16},(e,t)=>t),o=/* @__PURE__ */s.map(e=>(9*e+5)%16),c=[s],f=[o];for(let e=0;e<4;e++)for(let t of[c,f])t.push(t[e].map(e=>i[e]));let d=/* @__PURE__ */[[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(e=>new Uint8Array(e)),l=/* @__PURE__ */c.map((e,t)=>e.map(e=>d[t][e])),u=/* @__PURE__ */f.map((e,t)=>e.map(e=>d[t][e])),h=/* @__PURE__ */new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),p=/* @__PURE__ */new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]),b=(e,t)=>e<>>32-t;function g(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let m=/* @__PURE__ */new Uint32Array(16);class y extends n.SHA2{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)m[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,a=0|this.h1,i=a,s=0|this.h2,o=s,d=0|this.h3,y=d,v=0|this.h4,w=v;for(let e=0;e<5;e++){let t=4-e,x=h[e],E=p[e],A=c[e],_=f[e],T=l[e],I=u[e];for(let t=0;t<16;t++){let n=b(r+g(e,a,s,d)+m[A[t]]+x,T[t])+v|0;r=v,v=d,d=0|b(s,10),s=a,a=n}for(let e=0;e<16;e++){let r=b(n+g(t,i,o,y)+m[_[e]]+E,I[e])+w|0;n=w,w=y,y=0|b(o,10),o=i,i=r}}this.set(this.h1+s+y|0,this.h2+d+w|0,this.h3+v+n|0,this.h4+r+i|0,this.h0+a+o|0)}roundClean(){m.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}r.RIPEMD160=y,r.ripemd160=(0,a.wrapConstructor)(()=>new y)},{a8aec8bf88d4e01d:"kq97k",c544980a6b232368:"fDQnA"}],"1ulPs":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pbkdf2",()=>f);var a=e("./crypto.js"),i=e("../utils/index.js");let s=!1,o=function(e,t,r,n,i){return(0,a.pbkdf2Sync)(e,t,r,n,i)},c=o;function f(e,t,r,n,a){let s=(0,i.getBytes)(e,"password"),o=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(c(s,o,r,n,a))}f._=o,f.lock=function(){s=!0},f.register=function(e){if(s)throw Error("pbkdf2 is locked");c=e},Object.freeze(f)},{"./crypto.js":"gcmds","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],eA3PK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"randomBytes",()=>c);var a=e("./crypto.js");let i=!1,s=function(e){return new Uint8Array((0,a.randomBytes)(e))},o=s;function c(e){return o(e)}c._=s,c.lock=function(){i=!0},c.register=function(e){if(i)throw Error("randomBytes is locked");o=e},Object.freeze(c)},{"./crypto.js":"gcmds","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2R171":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"scrypt",()=>u),n.export(r,"scryptSync",()=>h);var a=e("@noble/hashes/scrypt"),i=e("../utils/index.js");let s=!1,o=!1,c=async function(e,t,r,n,i,s,o){return await (0,a.scryptAsync)(e,t,{N:r,r:n,p:i,dkLen:s,onProgress:o})},f=function(e,t,r,n,i,s){return(0,a.scrypt)(e,t,{N:r,r:n,p:i,dkLen:s})},d=c,l=f;async function u(e,t,r,n,a,s,o){let c=(0,i.getBytes)(e,"passwd"),f=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(await d(c,f,r,n,a,s,o))}function h(e,t,r,n,a,s){let o=(0,i.getBytes)(e,"passwd"),c=(0,i.getBytes)(t,"salt");return(0,i.hexlify)(l(o,c,r,n,a,s))}u._=c,u.lock=function(){o=!0},u.register=function(e){if(o)throw Error("scrypt is locked");d=e},Object.freeze(u),h._=f,h.lock=function(){s=!0},h.register=function(e){if(s)throw Error("scryptSync is locked");l=e},Object.freeze(h)},{"@noble/hashes/scrypt":"6ycli","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6ycli":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scryptAsync=r.scrypt=void 0;let n=e("d252c98d2ed29e96"),a=e("af7af267e4b691e3"),i=e("cd2bd9a649fe535"),s=e("c71d7be0d679d4ca"),o=(e,t)=>e<>>32-t;function c(e,t,r,n,a,i){let s=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],d=e[t++]^r[n++],l=e[t++]^r[n++],u=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],y=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],x=e[t++]^r[n++],E=e[t++]^r[n++],A=s,_=c,T=f,I=d,S=l,C=u,k=h,R=p,M=b,B=g,P=m,O=y,j=v,N=w,U=x,L=E;for(let e=0;e<8;e+=2)S^=o(A+j|0,7),M^=o(S+A|0,9),j^=o(M+S|0,13),A^=o(j+M|0,18),B^=o(C+_|0,7),N^=o(B+C|0,9),_^=o(N+B|0,13),C^=o(_+N|0,18),U^=o(P+k|0,7),T^=o(U+P|0,9),k^=o(T+U|0,13),P^=o(k+T|0,18),I^=o(L+O|0,7),R^=o(I+L|0,9),O^=o(R+I|0,13),L^=o(O+R|0,18),_^=o(A+I|0,7),T^=o(_+A|0,9),I^=o(T+_|0,13),A^=o(I+T|0,18),k^=o(C+S|0,7),R^=o(k+C|0,9),S^=o(R+k|0,13),C^=o(S+R|0,18),O^=o(P+B|0,7),M^=o(O+P|0,9),B^=o(M+O|0,13),P^=o(B+M|0,18),j^=o(L+U|0,7),N^=o(j+L|0,9),U^=o(N+j|0,13),L^=o(U+N|0,18);a[i++]=s+A|0,a[i++]=c+_|0,a[i++]=f+T|0,a[i++]=d+I|0,a[i++]=l+S|0,a[i++]=u+C|0,a[i++]=h+k|0,a[i++]=p+R|0,a[i++]=b+M|0,a[i++]=g+B|0,a[i++]=m+P|0,a[i++]=y+O|0,a[i++]=v+j|0,a[i++]=w+N|0,a[i++]=x+U|0,a[i++]=E+L|0}function f(e,t,r,n,a){let i=n+0,s=n+16*a;for(let n=0;n<16;n++)r[s+n]=e[t+(2*a-1)*16+n];for(let n=0;n0&&(s+=16),c(r,i,e,t+=16,r,s)}function d(e,t,r){let{N:o,r:c,p:f,dkLen:d,asyncTick:l,maxmem:u,onProgress:h}=(0,s.checkOpts)({dkLen:32,asyncTick:10,maxmem:0x40000400},r);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(f),(0,n.number)(d),(0,n.number)(l),(0,n.number)(u),void 0!==h&&"function"!=typeof h)throw Error("progressCb should be function");let p=128*c,b=p/4;if(o<=1||(o&o-1)!=0||o>=2**(p/8)||o>0x100000000)throw Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>(0x100000000-1)*32/p)throw Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>(0x100000000-1)*32)throw Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let g=p*(o+f);if(g>u)throw Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${u} (maxmem)`);let m=(0,i.pbkdf2)(a.sha256,e,t,{c:1,dkLen:p*f}),y=(0,s.u32)(m),v=(0,s.u32)(new Uint8Array(p*o)),w=(0,s.u32)(new Uint8Array(p)),x=()=>{};if(h){let e=2*o*f,t=Math.max(Math.floor(e/1e4),1),r=0;x=()=>{r++,h&&(!(r%t)||r===e)&&h(r/e)}}return{N:o,r:c,p:f,dkLen:d,blockSize32:b,V:v,B32:y,B:m,tmp:w,blockMixCb:x,asyncTick:l}}function l(e,t,r,n,s){let o=(0,i.pbkdf2)(a.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),s.fill(0),o}async function u(e,t,r){let{N:n,r:a,p:i,dkLen:o,blockSize32:c,V:u,B32:h,B:p,tmp:b,blockMixCb:g,asyncTick:m}=d(e,t,r);for(let e=0;e{f(u,r,u,r+=c,a),g()}),f(u,(n-1)*c,h,t,a),g(),await (0,s.asyncLoop)(n,m,()=>{let e=h[t+c-16]%n;for(let r=0;ru),n.export(r,"sha512",()=>h);var a=e("./crypto.js"),i=e("../utils/index.js");let s=function(e){return(0,a.createHash)("sha256").update(e).digest()},o=function(e){return(0,a.createHash)("sha512").update(e).digest()},c=s,f=o,d=!1,l=!1;function u(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(c(t))}function h(e){let t=(0,i.getBytes)(e,"data");return(0,i.hexlify)(f(t))}u._=s,u.lock=function(){d=!0},u.register=function(e){if(d)throw Error("sha256 is locked");c=e},Object.freeze(u),h._=o,h.lock=function(){l=!0},h.register=function(e){if(l)throw Error("sha512 is locked");f=e},Object.freeze(u)},{"./crypto.js":"gcmds","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6fyju":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"SigningKey",()=>o);var a=e("@noble/curves/secp256k1"),i=e("../utils/index.js"),s=e("./signature.js");class o{#Z;constructor(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#Z=(0,i.hexlify)(e)}get privateKey(){return this.#Z}get publicKey(){return o.computePublicKey(this.#Z)}get compressedPublicKey(){return o.computePublicKey(this.#Z,!0)}sign(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid digest length","digest",e);let t=(0,a.secp256k1).sign((0,i.getBytesCopy)(e),(0,i.getBytesCopy)(this.#Z),{lowS:!0});return(0,s.Signature).from({r:(0,i.toBeHex)(t.r,32),s:(0,i.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=o.computePublicKey(e);return(0,i.hexlify)((0,a.secp256k1).getSharedSecret((0,i.getBytesCopy)(this.#Z),(0,i.getBytes)(t),!1))}static computePublicKey(e,t){let r=(0,i.getBytes)(e,"key");if(32===r.length){let e=(0,a.secp256k1).getPublicKey(r,!!t);return(0,i.hexlify)(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let n=(0,a.secp256k1).ProjectivePoint.fromHex(r);return(0,i.hexlify)(n.toRawBytes(t))}static recoverPublicKey(e,t){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid digest length","digest",e);let r=(0,s.Signature).from(t),n=(0,a.secp256k1).Signature.fromCompact((0,i.getBytesCopy)((0,i.concat)([r.r,r.s]))),o=(n=n.addRecoveryBit(r.yParity)).recoverPublicKey((0,i.getBytesCopy)(e));return(0,i.assertArgument)(null!=o,"invalid signautre for digest","signature",t),"0x"+o.toHex(!1)}static addPoints(e,t,r){let n=(0,a.secp256k1).ProjectivePoint.fromHex(o.computePublicKey(e).substring(2)),i=(0,a.secp256k1).ProjectivePoint.fromHex(o.computePublicKey(t).substring(2));return"0x"+n.add(i).toHex(!!r)}}},{"@noble/curves/secp256k1":"23egl","../utils/index.js":"aoZEY","./signature.js":"kpLQM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"23egl":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encodeToCurve=r.hashToCurve=r.schnorr=r.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("3c992ce73ad9e738"),a=e("7c1d28ad7908af32"),i=e("e7b5e315cfaeb9cc"),s=e("6da3dd3e6dfbb461"),o=e("a505c7fbec136a95"),c=e("6c3a0ebb8992ada6"),f=e("5a6d6a1f2988230d"),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),u=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function b(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),a=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),f=e*e*e%d,l=f*f*e%d,u=(0,i.pow2)(l,t,d)*l%d,p=(0,i.pow2)(u,t,d)*l%d,b=(0,i.pow2)(p,h,d)*f%d,m=(0,i.pow2)(b,n,d)*b%d,y=(0,i.pow2)(m,a,d)*m%d,v=(0,i.pow2)(y,o,d)*y%d,w=(0,i.pow2)(v,c,d)*v%d,x=(0,i.pow2)(w,o,d)*y%d,E=(0,i.pow2)(x,t,d)*l%d,A=(0,i.pow2)(E,s,d)*m%d,_=(0,i.pow2)(A,r,d)*f%d,T=(0,i.pow2)(_,h,d);if(!g.eql(g.sqr(T),e))throw Error("Cannot find square root");return T}let g=(0,i.Field)(d,void 0,void 0,{sqrt:b});r.secp256k1=(0,f.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-u*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),s=p(t*e,l),o=p(-r*e,l),c=(0,i.mod)(e-s*t-o*n,l),f=(0,i.mod)(-s*r-o*t,l),d=c>a,h=f>a;if(d&&(c=l-c),h&&(f=l-f),c>a||f>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:f}}}},n.sha256);let m=BigInt(0),y=e=>"bigint"==typeof e&&m"bigint"==typeof e&&me.charCodeAt(0)));r=(0,o.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,o.concatBytes)(r,...t))}let E=e=>e.toRawBytes(!0).slice(1),A=e=>(0,o.numberToBytesBE)(e,32),_=e=>(0,i.mod)(e,d),T=e=>(0,i.mod)(e,l),I=r.secp256k1.ProjectivePoint,S=(e,t,r)=>I.BASE.multiplyAndAddUnsafe(e,t,r);function C(e){let t=r.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:T(-t),bytes:E(n)}}function k(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=_(e*e),r=b(_(t*e+BigInt(7)));r%h!==m&&(r=_(-r));let n=new I(e,r,u);return n.assertValidity(),n}function R(...e){return T((0,o.bytesToNumberBE)(x("BIP0340/challenge",...e)))}function M(e,t,r){let n=(0,o.ensureBytes)("signature",e,64),a=(0,o.ensureBytes)("message",t),i=(0,o.ensureBytes)("publicKey",r,32);try{let e=k((0,o.bytesToNumberBE)(i)),t=(0,o.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;let r=(0,o.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let s=R(A(t),E(e),a),c=S(e,r,T(-s));if(!c||!c.hasEvenY()||c.toAffine().x!==t)return!1;return!0}catch(e){return!1}}r.schnorr={getPublicKey:function(e){return C(e).bytes},sign:function(e,t,r=(0,a.randomBytes)(32)){let n=(0,o.ensureBytes)("message",e),{bytes:i,scalar:s}=C(t),c=(0,o.ensureBytes)("auxRand",r,32),f=A(s^(0,o.bytesToNumberBE)(x("BIP0340/aux",c))),d=x("BIP0340/nonce",f,i,n),l=T((0,o.bytesToNumberBE)(d));if(l===m)throw Error("sign failed: k is zero");let{bytes:u,scalar:h}=C(l),p=R(u,i,n),b=new Uint8Array(64);if(b.set(u,0),b.set(A(T(h+p*s)),32),!M(b,n,i))throw Error("sign: Invalid signature produced");return b},verify:M,utils:{randomPrivateKey:r.secp256k1.utils.randomPrivateKey,lift_x:k,pointToBytes:E,numberToBytesBE:o.numberToBytesBE,bytesToNumberBE:o.bytesToNumberBE,taggedHash:x,mod:i.mod}};let B=(0,c.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),P=(0,s.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),O=(0,c.createHasher)(r.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=P(g.create(e[0]));return B(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});r.hashToCurve=O.hashToCurve,r.encodeToCurve=O.encodeToCurve},{"3c992ce73ad9e738":"lK7uV","7c1d28ad7908af32":"fDQnA",e7b5e315cfaeb9cc:"4YTv4","6da3dd3e6dfbb461":"7pMch",a505c7fbec136a95:"4P6Ce","6c3a0ebb8992ada6":"9x9t0","5a6d6a1f2988230d":"dqwuc"}],"4YTv4":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mapHashToField=r.getMinHashLength=r.getFieldBytesLength=r.hashToPrivateScalar=r.FpSqrtEven=r.FpSqrtOdd=r.Field=r.nLength=r.FpIsSquare=r.FpDiv=r.FpInvertBatch=r.FpPow=r.validateField=r.isNegativeLE=r.FpSqrt=r.tonelliShanks=r.invert=r.pow2=r.pow=r.mod=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("335176aa989b56c9"),a=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(4),f=BigInt(5),d=BigInt(8);function l(e,t){let r=e%t;return r>=a?r:t+r}function u(e,t,r){if(r<=a||t 0");if(r===i)return a;let n=i;for(;t>a;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function h(e,t){if(e===a||t<=a)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=l(e,t),n=t,s=a,o=i,c=i,f=a;for(;r!==a;){let e=n/r,t=n%r,a=s-c*e,i=o-f*e;n=r,r=t,s=c,o=f,c=a,f=i}if(n!==i)throw Error("invert: does not exist");return l(s,t)}function p(e){let t,r,n;let o=(e-i)/s;for(t=e-i,r=0;t%s===a;t/=s,r++);for(n=s;na;)n*=n,n%=r;return n},r.invert=h,r.tonelliShanks=p,r.FpSqrt=b,r.isNegativeLE=(e,t)=>(l(e,t)&i)===i;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,r){if(r 0");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,s=t;for(;r>a;)r&i&&(n=e.mul(n,s)),s=e.sqr(s),r>>=i;return n}function y(e,t){let r=Array(t.length),n=t.reduce((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n)),e.ONE),a=e.inv(n);return t.reduceRight((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n)),a),r}function v(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function w(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function x(e){let t=w(e);return t+Math.ceil(t/2)}r.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},r.FpPow=m,r.FpInvertBatch=y,r.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},r.FpIsSquare=function(e){let t=(e.ORDER-i)/s;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},r.nLength=v,r.Field=function(e,t,r=!1,s={}){if(e<=a)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:c}=v(e,t);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let f=b(e),d=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,n.bitMask)(o),ZERO:a,ONE:i,create:t=>l(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>l(-t,e),eql:(e,t)=>e===t,sqr:t=>l(t*t,e),add:(t,r)=>l(t+r,e),sub:(t,r)=>l(t-r,e),mul:(t,r)=>l(t*r,e),pow:(e,t)=>m(d,e,t),div:(t,r)=>l(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(e=>f(d,e)),invertBatch:e=>y(d,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(d)},r.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},r.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},r.hashToPrivateScalar=function(e,t,r=!1){let a=(e=(0,n.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||a1024)throw Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${a}`);return l(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},r.getFieldBytesLength=w,r.getMinHashLength=x,r.mapHashToField=function(e,t,r=!1){let a=e.length,s=w(t),o=x(t);if(a<16||a1024)throw Error(`expected ${o}-1024 bytes of input, got ${a}`);let c=l(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,s):(0,n.numberToBytesBE)(c,s)}},{"335176aa989b56c9":"4P6Ce"}],"4P6Ce":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateObject=r.createHmacDrbg=r.bitMask=r.bitSet=r.bitGet=r.bitLen=r.utf8ToBytes=r.equalBytes=r.concatBytes=r.ensureBytes=r.numberToVarBytesBE=r.numberToBytesLE=r.numberToBytesBE=r.bytesToNumberLE=r.bytesToNumberBE=r.hexToBytes=r.hexToNumber=r.numberToHexUnpadded=r.bytesToHex=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=BigInt(0),a=BigInt(1),i=BigInt(2),s=e=>e instanceof Uint8Array,o=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function c(e){if(!s(e))throw Error("Uint8Array expected");let t="";for(let r=0;re+t.length,0)),r=0;return e.forEach(e=>{if(!s(e))throw Error("Uint8Array expected");t.set(e,r),r+=e.length}),t}r.bytesToHex=c,r.numberToHexUnpadded=f,r.hexToNumber=d,r.hexToBytes=l,r.bytesToNumberBE=function(e){return d(c(e))},r.bytesToNumberLE=function(e){if(!s(e))throw Error("Uint8Array expected");return d(c(Uint8Array.from(e).reverse()))},r.numberToBytesBE=u,r.numberToBytesLE=function(e,t){return u(e,t).reverse()},r.numberToVarBytesBE=function(e){return l(f(e))},r.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=l(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(s(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let a=n.length;if("number"==typeof r&&a!==r)throw Error(`${e} expected ${r} bytes, got ${a}`);return n},r.concatBytes=h,r.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let r=0;rn;e>>=a,t+=1);return t},r.bitGet=function(e,t){return e>>BigInt(t)&a},r.bitSet=(e,t,r)=>e|(r?a:n)<(i<new Uint8Array(e),b=e=>Uint8Array.from(e);r.createHmacDrbg=function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=p(e),a=p(e),i=0,s=()=>{n.fill(1),a.fill(0),i=0},o=(...e)=>r(a,n,...e),c=(e=p())=>{a=o(b([0]),e),n=o(),0!==e.length&&(a=o(b([1]),e),n=o())},f=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(s(),c(e);!(r=t(f()));)c();return s(),r}};let g={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)};r.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let a=g[r];if("function"!=typeof a)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!a(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e}},{}],"7pMch":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mapToCurveSimpleSWU=r.SWUFpSqrtRatio=r.weierstrass=r.weierstrassPoints=r.DER=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("1cdaab316e4b3457"),a=e("2baa2cb7ccce8d60"),i=e("2baa2cb7ccce8d60"),s=e("4c2571b14ea5e504"),{bytesToNumberBE:o,hexToBytes:c}=a;r.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=r.DER;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let n=e[1],a=e.subarray(2,n+2);if(!n||a.length!==n)throw new t("Invalid signature integer: wrong length");if(128&a[0])throw new t("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:o(a),l:e.subarray(n+2)}},toSig(e){let{Err:t}=r.DER,n="string"==typeof e?c(e):e;if(!(n instanceof Uint8Array))throw Error("ui8a expected");let a=n.length;if(a<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==a-2)throw new t("Invalid signature: incorrect length");let{d:i,l:s}=r.DER._parseInt(n.subarray(2)),{d:o,l:f}=r.DER._parseInt(s);if(f.length)throw new t("Invalid signature: left bytes after parsing");return{r:i,s:o}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),a=t(r(e.r)),i=n.length/2,s=a.length/2,o=r(i),c=r(s);return`30${r(s+i+4)}02${c}${a}02${o}${n}`}};let f=BigInt(0),d=BigInt(1),l=BigInt(2),u=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,s.validateBasic)(e);a.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:n,a:i}=t;if(r){if(!n.eql(i,n.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,o=t.toBytes||((e,t,n)=>{let i=t.toAffine();return a.concatBytes(Uint8Array.from([4]),r.toBytes(i.x),r.toBytes(i.y))}),c=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){let{a:n,b:a}=t,i=r.sqr(e),s=r.mul(i,e);return r.add(r.add(s,r.mul(e,n)),a)}if(!r.eql(r.sqr(t.Gy),l(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&fr.eql(e,r.ZERO);return a(t)&&a(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){let t=y.fromAffine(c((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let a=r.sqr(n),i=l(e);if(!r.eql(a,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){m(e);let{px:t,py:n,pz:a}=this,{px:i,py:s,pz:o}=e,c=r.eql(r.mul(t,o),r.mul(i,a)),f=r.eql(r.mul(n,o),r.mul(s,a));return c&&f}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,a=r.mul(n,u),{px:i,py:s,pz:o}=this,c=r.ZERO,f=r.ZERO,d=r.ZERO,l=r.mul(i,i),h=r.mul(s,s),p=r.mul(o,o),b=r.mul(i,s);return b=r.add(b,b),d=r.mul(i,o),d=r.add(d,d),c=r.mul(e,d),f=r.mul(a,p),f=r.add(c,f),c=r.sub(h,f),f=r.add(h,f),f=r.mul(c,f),c=r.mul(b,c),d=r.mul(a,d),p=r.mul(e,p),b=r.sub(l,p),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,p),l=r.mul(l,b),f=r.add(f,l),p=r.mul(s,o),p=r.add(p,p),l=r.mul(p,b),c=r.sub(c,l),d=r.mul(p,h),d=r.add(d,d),new y(c,f,d=r.add(d,d))}add(e){m(e);let{px:n,py:a,pz:i}=this,{px:s,py:o,pz:c}=e,f=r.ZERO,d=r.ZERO,l=r.ZERO,h=t.a,p=r.mul(t.b,u),b=r.mul(n,s),g=r.mul(a,o),v=r.mul(i,c),w=r.add(n,a),x=r.add(s,o);w=r.mul(w,x),x=r.add(b,g),w=r.sub(w,x),x=r.add(n,i);let E=r.add(s,c);return x=r.mul(x,E),E=r.add(b,v),x=r.sub(x,E),E=r.add(a,i),f=r.add(o,c),E=r.mul(E,f),f=r.add(g,v),E=r.sub(E,f),l=r.mul(h,x),f=r.mul(p,v),l=r.add(f,l),f=r.sub(g,l),l=r.add(g,l),d=r.mul(f,l),g=r.add(b,b),g=r.add(g,b),v=r.mul(h,v),x=r.mul(p,x),g=r.add(g,v),v=r.sub(b,v),v=r.mul(h,v),x=r.add(x,v),b=r.mul(g,x),d=r.add(d,b),b=r.mul(E,x),f=r.mul(w,f),f=r.sub(f,b),b=r.mul(w,g),l=r.mul(E,l),new y(f,d,l=r.add(l,b))}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){let n=y.ZERO;if(e===f)return n;if(p(e),e===d)return this;let{endo:a}=t;if(!a)return w.unsafeLadder(this,e);let{k1neg:i,k1:s,k2neg:o,k2:c}=a.splitScalar(e),l=n,u=n,h=this;for(;s>f||c>f;)s&d&&(l=l.add(h)),c&d&&(u=u.add(h)),h=h.double(),s>>=d,c>>=d;return i&&(l=l.negate()),o&&(u=u.negate()),u=new y(r.mul(u.px,a.beta),u.py,u.pz),l.add(u)}multiply(e){let n,a;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:s,k2neg:o,k2:c}=i.splitScalar(e),{p:f,f:d}=this.wNAF(s),{p:l,f:u}=this.wNAF(c);f=w.constTimeNegate(t,f),l=w.constTimeNegate(o,l),l=new y(r.mul(l.px,i.beta),l.py,l.pz),n=f.add(l),a=d.add(u)}else{let{p:t,f:r}=this.wNAF(e);n=t,a=r}return y.normalizeZ([n,a])[0]}multiplyAndAddUnsafe(e,t,r){let n=y.BASE,a=(e,t)=>t!==f&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:a}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(a));let s=r.mul(t,e),o=r.mul(n,e),c=r.mul(a,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:o}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===d?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(y,this,e)}toHex(e=!0){return a.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);let v=t.nBitLength,w=(0,s.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:b,weierstrassEquation:l,isWithinCurveOrder:h}}function b(e,t){let r=e.ORDER,n=f;for(let e=r-d;e%l===f;e/=l)n+=d;let a=n,i=l<{let n=b,s=e.pow(r,p),o=e.sqr(s);o=e.mul(o,r);let f=e.mul(t,o);f=e.pow(f,c),f=e.mul(f,s),s=e.mul(f,r),o=e.mul(f,t);let u=e.mul(o,s);f=e.pow(u,i);let h=e.eql(f,e.ONE);s=e.mul(o,g),f=e.mul(u,n),o=e.cmov(s,o,h),u=e.cmov(f,u,h);for(let t=a;t>d;t--){let r=t-l;r=l<{let i=e.sqr(a),s=e.mul(t,a);i=e.mul(i,s);let o=e.pow(i,r);o=e.mul(o,s);let c=e.mul(o,n),f=e.mul(e.sqr(o),a),d=e.eql(f,t),l=e.cmov(c,o,d);return{isValid:d,value:l}}}return m}r.weierstrassPoints=p,r.weierstrass=function(e){let t=function(e){let t=(0,s.validateBasic)(e);return a.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=t,l=o.BYTES+1,u=2*o.BYTES+1;function h(e){return n.mod(e,c)}function b(e){return n.invert(e,c)}let{ProjectivePoint:g,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:v}=p({...t,toBytes(e,t,r){let n=t.toAffine(),i=o.toBytes(n.x),s=a.concatBytes;return r?s(Uint8Array.from([t.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,o.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===l&&(2===r||3===r)){let e=a.bytesToNumberBE(n);if(!(fa.bytesToHex(a.numberToBytesBE(e,t.nByteLength)),x=(e,t,r)=>a.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new E(x(e=(0,i.ensureBytes)("compactSignature",e,2*r),0,r),x(e,r,2*r))}static fromDER(e){let{r:t,s:n}=r.DER.toSig((0,i.ensureBytes)("DER",e));return new E(t,n)}assertValidity(){if(!v(this.r))throw Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){let{r,s:n,recovery:a}=this,s=T((0,i.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let c=2===a||3===a?r+t.n:r;if(c>=o.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&a)==0?"02":"03",d=g.fromHex(f+w(c)),l=b(c),u=h(-s*l),p=h(n*l),m=g.BASE.multiplyAndAddUnsafe(d,u,p);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>c>>d}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return a.hexToBytes(this.toDERHex())}toDERHex(){return r.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function A(e){let t=e instanceof Uint8Array,r="string"==typeof e,n=(t||r)&&e.length;return t?n===l||n===u:r?n===2*l||n===2*u:e instanceof g}let _=t.bits2int||function(e){let r=a.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},T=t.bits2int_modN||function(e){return h(_(e))},I=a.bitMask(t.nBitLength);function S(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(f<=e&&ee in n))throw Error("sign() legacy options not supported");let{hash:s,randomBytes:l}=t,{lowS:u,prehash:p,extraEntropy:y}=n;null==u&&(u=!0),e=(0,i.ensureBytes)("msgHash",e),p&&(e=(0,i.ensureBytes)("prehashed msgHash",s(e)));let w=T(e),x=m(r),A=[S(x),S(w)];if(null!=y){let e=!0===y?l(o.BYTES):y;A.push((0,i.ensureBytes)("extraEntropy",e))}return{seed:a.concatBytes(...A),k2sig:function(e){let t=_(e);if(!v(t))return;let r=b(t),n=g.BASE.multiply(t).toAffine(),a=h(n.x);if(a===f)return;let i=h(r*h(w+a*x));if(i===f)return;let s=(n.x===a?0:2)|Number(n.y&d),o=i;if(u&&i>c>>d)o=i>c>>d?h(-i):i,s^=1;return new E(a,o,s)}}}(e,r,n);return a.createHmacDrbg(t.hash.outputLen,t.nByteLength,t.hmac)(s,l)},verify:function(e,n,a,s=k){let o,c;if(n=(0,i.ensureBytes)("msgHash",n),a=(0,i.ensureBytes)("publicKey",a),"strict"in s)throw Error("options.strict was renamed to lowS");let{lowS:f,prehash:d}=s;try{if("string"==typeof e||e instanceof Uint8Array)try{c=E.fromDER(e)}catch(t){if(!(t instanceof r.DER.Err))throw t;c=E.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;c=new E(t,r)}else throw Error("PARSE");o=g.fromHex(a)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(f&&c.hasHighS())return!1;d&&(n=t.hash(n));let{r:l,s:u}=c,p=T(n),m=b(u),y=h(p*m),v=h(l*m),w=g.BASE.multiplyAndAddUnsafe(o,y,v)?.toAffine();return!!w&&h(w.x)===l},ProjectivePoint:g,Signature:E,utils:{isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{let e=n.getMinHashLength(t.n);return n.mapHashToField(t.randomBytes(e),t.n)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},r.SWUFpSqrtRatio=b,r.mapToCurveSimpleSWU=function(e,t){if(n.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=b(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let a,i,s,o,c,f,d,l;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(s),f=e.sqr(o),c=e.mul(f,t.A),i=e.add(i,c),i=e.mul(i,s),f=e.mul(f,o),c=e.mul(f,t.B),i=e.add(i,c),d=e.mul(a,s);let{isValid:u,value:h}=r(i,f);l=e.mul(a,n),l=e.mul(l,h),d=e.cmov(d,s,u),l=e.cmov(l,h,u);let p=e.isOdd(n)===e.isOdd(l);return l=e.cmov(e.neg(l),l,p),{x:d=e.div(d,o),y:l}}}},{"1cdaab316e4b3457":"4YTv4","2baa2cb7ccce8d60":"4P6Ce","4c2571b14ea5e504":"lIBy9"}],lIBy9:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateBasic=r.wNAF=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("3ef1aebd4d48e525"),a=e("f4ac6df5b56e7cc"),i=BigInt(0),s=BigInt(1);r.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,a=t;for(;r>i;)r&s&&(n=n.add(a)),a=a.double(),r>>=s;return n},precomputeWindow(e,t){let{windows:r,windowSize:a}=n(t),i=[],s=e,o=s;for(let e=0;e>=h,n>c&&(n-=u,i+=s);let o=t+Math.abs(n)-1,p=e%2!=0,b=n<0;0===n?d=d.add(r(p,a[t])):f=f.add(r(b,a[o]))}return{p:f,f:d}},wNAFCached(e,t,r,n){let a=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,n(i))),this.wNAF(a,i,r)}}},r.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},{"3ef1aebd4d48e525":"4YTv4",f4ac6df5b56e7cc:"4P6Ce"}],"9x9t0":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createHasher=r.isogenyMap=r.hash_to_field=r.expand_message_xof=r.expand_message_xmd=void 0;let n=e("56233d4b1a1a67d0"),a=e("e2188348c3bb0e22"),i=a.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function o(e){if(!(e instanceof Uint8Array))throw Error("Uint8Array expected")}function c(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function f(e,t,r,n){o(e),o(t),c(r),t.length>255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:f}=n,d=Math.ceil(r/i);if(d>255)throw Error("Invalid xmd length");let l=(0,a.concatBytes)(t,s(t.length,1)),u=s(0,f),h=s(r,2),p=Array(d),b=n((0,a.concatBytes)(u,e,h,s(0,1),l));p[0]=n((0,a.concatBytes)(b,s(1,1),l));for(let e=1;e<=d;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n255){let e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(s(r,2)).update(t).update(s(t.length,1)).digest()}function l(e,t,r){let s;(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:l,k:u,m:h,hash:p,expand:b,DST:g}=r;o(e),c(t);let m=function(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return(0,a.utf8ToBytes)(e);throw Error("DST must be Uint8Array or string")}(g),y=Math.ceil((l.toString(2).length+u)/8),v=t*h*y;if("xmd"===b)s=f(e,m,v,p);else if("xof"===b)s=d(e,m,v,u,p);else if("_internal_pass"===b)s=e;else throw Error('expand must be "xmd" or "xof"');let w=Array(t);for(let e=0;eArray.from(e).reverse());return(t,n)=>{let[a,i,s,o]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(a,i),n=e.mul(n,e.div(s,o)),{x:t,y:n}}},r.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,a){let i=l(n,2,{...r,DST:r.DST,...a}),s=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,a){let i=l(n,1,{...r,DST:r.encodeDST,...a}),s=e.fromAffine(t(i[0])).clearCofactor();return s.assertValidity(),s}}}},{"56233d4b1a1a67d0":"4YTv4",e2188348c3bb0e22:"4P6Ce"}],dqwuc:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.createCurve=r.getHash=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("c08678442dbcef41"),a=e("1ca40feba833188e"),i=e("59a7531651b344f9");function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,a.concatBytes)(...r)),randomBytes:a.randomBytes}}r.getHash=s,r.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...s(t)});return Object.freeze({...r(t),create:r})}},{c08678442dbcef41:"4YtgG","1ca40feba833188e":"fDQnA","59a7531651b344f9":"7pMch"}],kpLQM:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Signature",()=>p);var a=e("../constants/index.js"),i=e("../utils/index.js");let s=BigInt(0),o=BigInt(1),c=BigInt(2),f=BigInt(27),d=BigInt(28),l=BigInt(35),u={};function h(e){return(0,i.zeroPadValue)((0,i.toBeArray)(e),32)}class p{#t;#b;#X;#Y;get r(){return this.#t}set r(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid r","value",e),this.#t=(0,i.hexlify)(e)}get s(){return this.#b}set s(e){(0,i.assertArgument)(32===(0,i.dataLength)(e),"invalid s","value",e);let t=(0,i.hexlify)(e);(0,i.assertArgument)(8>parseInt(t.substring(0,3)),"non-canonical s","value",t),this.#b=t}get v(){return this.#X}set v(e){let t=(0,i.getNumber)(e,"value");(0,i.assertArgument)(27===t||28===t,"invalid v","v",e),this.#X=t}get networkV(){return this.#Y}get legacyChainId(){let e=this.networkV;return null==e?null:p.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){let e=(0,i.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,i.hexlify)(e)}get compactSerialized(){return(0,i.concat)([this.r,this.yParityAndS])}get serialized(){return(0,i.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(0,i.assertPrivate)(e,u,"Signature"),this.#t=t,this.#b=r,this.#X=n,this.#Y=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){let e=new p(u,this.r,this.s,this.v);return this.networkV&&(e.#Y=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){let t=(0,i.getBigInt)(e,"v");return t==f||t==d?s:((0,i.assertArgument)(t>=l,"invalid EIP-155 v","v",e),(t-l)/c)}static getChainIdV(e,t){return(0,i.getBigInt)(e)*c+BigInt(35+t-27)}static getNormalizedV(e){let t=(0,i.getBigInt)(e);return t===s||t===f?27:t===o||t===d?28:((0,i.assertArgument)(t>=l,"invalid v","v",e),t&o?27:28)}static from(e){function t(t,r){(0,i.assertArgument)(t,r,"signature",e)}if(null==e)return new p(u,a.ZeroHash,a.ZeroHash,27);if("string"==typeof e){let r=(0,i.getBytes)(e,"signature");if(64===r.length){let e=(0,i.hexlify)(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new p(u,e,(0,i.hexlify)(t),n)}if(65===r.length){let e=(0,i.hexlify)(r.slice(0,32)),n=r.slice(32,64);t((128&n[0])==0,"non-canonical s");let a=p.getNormalizedV(r[64]);return new p(u,e,(0,i.hexlify)(n),a)}t(!1,"invalid raw signature length")}if(e instanceof p)return e.clone();let r=e.r;t(null!=r,"missing r");let n=h(r),s=function(e,r){if(null!=e)return h(e);if(null!=r){t((0,i.isHexString)(r,32),"invalid yParityAndS");let e=(0,i.getBytes)(r);return e[0]&=127,(0,i.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t((128&(0,i.getBytes)(s)[0])==0,"non-canonical s");let{networkV:o,v:c}=function(e,r,n){if(null!=e){let t=(0,i.getBigInt)(e);return{networkV:t>=l?t:void 0,v:p.getNormalizedV(t)}}if(null!=r)return t((0,i.isHexString)(r,32),"invalid yParityAndS"),{v:128&(0,i.getBytes)(r)[0]?28:27};if(null!=n){switch((0,i.getNumber)(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),f=new p(u,n,s,c);return o&&(f.#Y=o),t(null==e.yParity||(0,i.getNumber)(e.yParity,"sig.yParity")===f.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===f.yParityAndS,"yParityAndS mismatch"),f}}},{"../constants/index.js":"2Shkc","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2Shkc":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ZeroAddress",()=>a.ZeroAddress),n.export(r,"ZeroHash",()=>i.ZeroHash),n.export(r,"N",()=>s.N),n.export(r,"WeiPerEther",()=>s.WeiPerEther),n.export(r,"MaxUint256",()=>s.MaxUint256),n.export(r,"MinInt256",()=>s.MinInt256),n.export(r,"MaxInt256",()=>s.MaxInt256),n.export(r,"EtherSymbol",()=>o.EtherSymbol),n.export(r,"MessagePrefix",()=>o.MessagePrefix);var a=e("./addresses.js"),i=e("./hashes.js"),s=e("./numbers.js"),o=e("./strings.js")},{"./addresses.js":"b0qNx","./hashes.js":"e2eZ7","./numbers.js":!1,"./strings.js":"4zWFX","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],b0qNx:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ZeroAddress",()=>a);let a="0x0000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],e2eZ7:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ZeroHash",()=>a);let a="0x0000000000000000000000000000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4zWFX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EtherSymbol",()=>a),n.export(r,"MessagePrefix",()=>i);let a="Ξ",i="\x19Ethereum Signed Message:\n"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5gq13":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getCreateAddress",()=>o),n.export(r,"getCreate2Address",()=>c);var a=e("../crypto/index.js"),i=e("../utils/index.js"),s=e("./address.js");function o(e){let t=(0,s.getAddress)(e.from),r=(0,i.getBigInt)(e.nonce,"tx.nonce").toString(16);return r="0"===r?"0x":r.length%2?"0x0"+r:"0x"+r,(0,s.getAddress)((0,i.dataSlice)((0,a.keccak256)((0,i.encodeRlp)([t,r])),12))}function c(e,t,r){let n=(0,s.getAddress)(e),o=(0,i.getBytes)(t,"salt"),c=(0,i.getBytes)(r,"initCodeHash");return(0,i.assertArgument)(32===o.length,"salt must be 32 bytes","salt",t),(0,i.assertArgument)(32===c.length,"initCodeHash must be 32 bytes","initCodeHash",r),(0,s.getAddress)((0,i.dataSlice)((0,a.keccak256)((0,i.concat)(["0xff",n,o,c])),12))}},{"../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","./address.js":"aXhJ2","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6XnDN":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isAddressable",()=>s),n.export(r,"isAddress",()=>o),n.export(r,"resolveAddress",()=>f);var a=e("../utils/index.js"),i=e("./address.js");function s(e){return e&&"function"==typeof e.getAddress}function o(e){try{return(0,i.getAddress)(e),!0}catch(e){}return!1}async function c(e,t){let r=await t;return(null==r||"0x0000000000000000000000000000000000000000"===r)&&((0,a.assert)("string"!=typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,a.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,i.getAddress)(r)}function f(e,t){return"string"==typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,i.getAddress)(e):((0,a.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),c(e,t.resolveName(e))):s(e)?c(e,e.getAddress()):e&&"function"==typeof e.then?c(e,e):void(0,a.assertArgument)(!1,"unsupported addressable value","target",e)}},{"../utils/index.js":"aoZEY","./address.js":"aXhJ2","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3auRl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Typed",()=>f);var a=e("../utils/index.js");let i={};function s(e,t){let r=!1;return t<0&&(r=!0,t*=-1),new f(i,`${r?"":"u"}int${t}`,e,{signed:r,width:t})}function o(e,t){return new f(i,`bytes${t||""}`,e,{size:t})}let c=Symbol.for("_ethers_typed");class f{type;value;#ee;_typedSymbol;constructor(e,t,r,n){null==n&&(n=null),(0,a.assertPrivate)(i,e,"Typed"),(0,a.defineProperties)(this,{_typedSymbol:c,type:t,value:r}),this.#ee=n,this.format()}format(){if("array"===this.type||"dynamicArray"===this.type)throw Error("");return"tuple"===this.type?`tuple(${this.value.map(e=>e.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"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#ee}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#ee?-1:!1===this.#ee?this.value.length:null}static from(e,t){return new f(i,e,t)}static uint8(e){return s(e,8)}static uint16(e){return s(e,16)}static uint24(e){return s(e,24)}static uint32(e){return s(e,32)}static uint40(e){return s(e,40)}static uint48(e){return s(e,48)}static uint56(e){return s(e,56)}static uint64(e){return s(e,64)}static uint72(e){return s(e,72)}static uint80(e){return s(e,80)}static uint88(e){return s(e,88)}static uint96(e){return s(e,96)}static uint104(e){return s(e,104)}static uint112(e){return s(e,112)}static uint120(e){return s(e,120)}static uint128(e){return s(e,128)}static uint136(e){return s(e,136)}static uint144(e){return s(e,144)}static uint152(e){return s(e,152)}static uint160(e){return s(e,160)}static uint168(e){return s(e,168)}static uint176(e){return s(e,176)}static uint184(e){return s(e,184)}static uint192(e){return s(e,192)}static uint200(e){return s(e,200)}static uint208(e){return s(e,208)}static uint216(e){return s(e,216)}static uint224(e){return s(e,224)}static uint232(e){return s(e,232)}static uint240(e){return s(e,240)}static uint248(e){return s(e,248)}static uint256(e){return s(e,256)}static uint(e){return s(e,256)}static int8(e){return s(e,-8)}static int16(e){return s(e,-16)}static int24(e){return s(e,-24)}static int32(e){return s(e,-32)}static int40(e){return s(e,-40)}static int48(e){return s(e,-48)}static int56(e){return s(e,-56)}static int64(e){return s(e,-64)}static int72(e){return s(e,-72)}static int80(e){return s(e,-80)}static int88(e){return s(e,-88)}static int96(e){return s(e,-96)}static int104(e){return s(e,-104)}static int112(e){return s(e,-112)}static int120(e){return s(e,-120)}static int128(e){return s(e,-128)}static int136(e){return s(e,-136)}static int144(e){return s(e,-144)}static int152(e){return s(e,-152)}static int160(e){return s(e,-160)}static int168(e){return s(e,-168)}static int176(e){return s(e,-176)}static int184(e){return s(e,-184)}static int192(e){return s(e,-192)}static int200(e){return s(e,-200)}static int208(e){return s(e,-208)}static int216(e){return s(e,-216)}static int224(e){return s(e,-224)}static int232(e){return s(e,-232)}static int240(e){return s(e,-240)}static int248(e){return s(e,-248)}static int256(e){return s(e,-256)}static int(e){return s(e,-256)}static bytes1(e){return o(e,1)}static bytes2(e){return o(e,2)}static bytes3(e){return o(e,3)}static bytes4(e){return o(e,4)}static bytes5(e){return o(e,5)}static bytes6(e){return o(e,6)}static bytes7(e){return o(e,7)}static bytes8(e){return o(e,8)}static bytes9(e){return o(e,9)}static bytes10(e){return o(e,10)}static bytes11(e){return o(e,11)}static bytes12(e){return o(e,12)}static bytes13(e){return o(e,13)}static bytes14(e){return o(e,14)}static bytes15(e){return o(e,15)}static bytes16(e){return o(e,16)}static bytes17(e){return o(e,17)}static bytes18(e){return o(e,18)}static bytes19(e){return o(e,19)}static bytes20(e){return o(e,20)}static bytes21(e){return o(e,21)}static bytes22(e){return o(e,22)}static bytes23(e){return o(e,23)}static bytes24(e){return o(e,24)}static bytes25(e){return o(e,25)}static bytes26(e){return o(e,26)}static bytes27(e){return o(e,27)}static bytes28(e){return o(e,28)}static bytes29(e){return o(e,29)}static bytes30(e){return o(e,30)}static bytes31(e){return o(e,31)}static bytes32(e){return o(e,32)}static address(e){return new f(i,"address",e)}static bool(e){return new f(i,"bool",!!e)}static bytes(e){return new f(i,"bytes",e)}static string(e){return new f(i,"string",e)}static array(e,t){throw Error("not implemented yet")}static tuple(e,t){throw Error("not implemented yet")}static overrides(e){return new f(i,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"==typeof e&&"_typedSymbol"in e&&e._typedSymbol===c}static dereference(e,t){if(f.isTyped(e)){if(e.type!==t)throw Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}},{"../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],eIRoG:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"pack",()=>c),n.export(r,"unpack",()=>f),n.export(r,"ArrayCoder",()=>d);var a=e("../../utils/index.js"),i=e("../typed.js"),s=e("./abstract-coder.js"),o=e("./anonymous.js");function c(e,t,r){let n=[];if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map(t=>{let n=t.localName;return(0,a.assert)(n,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),(0,a.assert)(!e[n],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:r}),e[n]=!0,r[n]})}else(0,a.assertArgument)(!1,"invalid tuple value","tuple",r);(0,a.assertArgument)(t.length===n.length,"types/value length mismatch","tuple",r);let i=new s.Writer,o=new s.Writer,c=[];return t.forEach((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();c.push(e=>{n(e+t)})}else e.encode(i,r)}),c.forEach(e=>{e(i.length)}),e.appendWriter(i)+e.appendWriter(o)}function f(e,t){let r=[],n=[],i=e.subReader(0);return t.forEach(t=>{let s=null;if(t.dynamic){let r=e.readIndex(),n=i.subReader(r);try{s=t.decode(n)}catch(e){if((0,a.isError)(e,"BUFFER_OVERRUN"))throw e;(s=e).baseType=t.name,s.name=t.localName,s.type=t.type}}else try{s=t.decode(e)}catch(e){if((0,a.isError)(e,"BUFFER_OVERRUN"))throw e;(s=e).baseType=t.name,s.name=t.localName,s.type=t.type}if(void 0==s)throw Error("investigate");r.push(s),n.push(t.localName||null)}),(0,s.Result).fromItems(r,n)}class d extends s.Coder{coder;length;constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),(0,a.defineProperties)(this,{coder:e,length:t})}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;ri);var a=e("./abstract-coder.js");class i extends a.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}},{"./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gvRue:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BooleanCoder",()=>s);var a=e("../typed.js"),i=e("./abstract-coder.js");class s extends i.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){let r=(0,a.Typed).dereference(t,"bool");return e.writeValue(r?1:0)}decode(e){return!!e.readValue()}}},{"../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],aQHy3:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"DynamicBytesCoder",()=>s),n.export(r,"BytesCoder",()=>o);var a=e("../../utils/index.js"),i=e("./abstract-coder.js");class s extends i.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,a.getBytesCopy)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readIndex(),!0)}}class o extends s{constructor(e){super("bytes",e)}decode(e){return(0,a.hexlify)(super.decode(e))}}},{"../../utils/index.js":"aoZEY","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4Zfo6":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FixedBytesCoder",()=>o);var a=e("../../utils/index.js"),i=e("../typed.js"),s=e("./abstract-coder.js");class o extends s.Coder{size;constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),(0,a.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,a.getBytesCopy)((0,i.Typed).dereference(t,this.type));return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return(0,a.hexlify)(e.readBytes(this.size))}}},{"../../utils/index.js":"aoZEY","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],awFmW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NullCoder",()=>s);var a=e("./abstract-coder.js");let i=new Uint8Array([]);class s extends a.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(i)}decode(e){return e.readBytes(0),null}}},{"./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9eyEp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NumberCoder",()=>d);var a=e("../../utils/index.js"),i=e("../typed.js"),s=e("./abstract-coder.js");let o=BigInt(0),c=BigInt(1),f=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class d extends s.Coder{size;signed;constructor(e,t,r){let n=(t?"int":"uint")+8*e;super(n,n,r,!1),(0,a.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let r=(0,a.getBigInt)((0,i.Typed).dereference(t,this.type)),n=(0,a.mask)(f,8*s.WordSize);if(this.signed){let e=(0,a.mask)(n,8*this.size-1);(r>e||r<-(e+c))&&this._throwError("value out-of-bounds",t),r=(0,a.toTwos)(r,8*s.WordSize)}else(r(0,a.mask)(n,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(r)}decode(e){let t=(0,a.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,a.fromTwos)(t,8*this.size)),t}}},{"../../utils/index.js":"aoZEY","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7ZlmT":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"StringCoder",()=>o);var a=e("../../utils/utf8.js"),i=e("../typed.js"),s=e("./bytes.js");class o extends s.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,a.toUtf8Bytes)((0,i.Typed).dereference(t,"string")))}decode(e){return(0,a.toUtf8String)(super.decode(e))}}},{"../../utils/utf8.js":"aysnp","../typed.js":"3auRl","./bytes.js":"aQHy3","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"7d2xO":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TupleCoder",()=>c);var a=e("../../utils/properties.js"),i=e("../typed.js"),s=e("./abstract-coder.js"),o=e("./array.js");class c extends s.Coder{coders;constructor(e,t){let r=!1,n=[];e.forEach(e=>{e.dynamic&&(r=!0),n.push(e.type)}),super("tuple","tuple("+n.join(",")+")",t,r),(0,a.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){let e=[];this.coders.forEach(t=>{e.push(t.defaultValue())});let t=this.coders.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});return this.coders.forEach((r,n)=>{let a=r.localName;a&&1===t[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[n]))}),Object.freeze(e)}encode(e,t){let r=(0,i.Typed).dereference(t,"tuple");return(0,o.pack)(e,this.coders,r)}decode(e){return(0,o.unpack)(e,this.coders)}}},{"../../utils/properties.js":"391vO","../typed.js":"3auRl","./abstract-coder.js":"9D1CN","./array.js":"eIRoG","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hSb7d:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ParamType",()=>H),n.export(r,"Fragment",()=>V),n.export(r,"NamedFragment",()=>q),n.export(r,"ErrorFragment",()=>G),n.export(r,"EventFragment",()=>K),n.export(r,"ConstructorFragment",()=>W),n.export(r,"FallbackFragment",()=>$),n.export(r,"FunctionFragment",()=>J),n.export(r,"StructFragment",()=>Q);var a=e("../utils/index.js"),i=e("../hash/index.js");function s(e){let t=new Set;return e.forEach(e=>t.add(e)),Object.freeze(t)}let o=s("external public payable override".split(" ")),c="constant external internal payable private public pure view override",f=s(c.split(" ")),d="constructor error event fallback function receive struct",l=s(d.split(" ")),u="calldata memory storage payable indexed",h=s(u.split(" ")),p=s([d,u,"tuple returns",c].join(" ").split(" ")),b={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},g=RegExp("^(\\s*)"),m=RegExp("^([0-9]+)"),y=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),v=RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),w=RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class x{#G;#et;get offset(){return this.#G}get length(){return this.#et.length-this.#G}constructor(e){this.#G=0,this.#et=e.slice()}clone(){return new x(this.#et)}reset(){this.#G=0}#er(e=0,t=0){return new x(this.#et.slice(e,t).map(t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e}))))}popKeyword(e){let t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){let t=this.peek();throw Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=this.#er(this.#G+1,e.match+1);return this.#G=e.match+1,t}popParams(){let e=this.peek();if("OPEN_PAREN"!==e.type)throw Error("bad start");let t=[];for(;this.#G=this.#et.length)throw Error("out-of-bounds");return this.#et[this.#G]}peekKeyword(e){let t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;let t=this.peek();return t.type===e?t.text:null}pop(){let e=this.peek();return this.#G++,e}toString(){let e=[];for(let t=this.#G;t`}}function E(e){let t=[],r=t=>{let r=s0&&"NUMBER"===t[t.length-1].type){let r=t.pop().text;e=r+e,t[t.length-1].value=(0,a.getNumber)(r)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw Error("missing opening bracket");t[t.length-1].text+=e}continue}if(c=o.match(y)){if(f.text=c[1],s+=f.text.length,p.has(f.text)){f.type="KEYWORD";continue}if(f.text.match(w)){f.type="TYPE";continue}f.type="ID";continue}if(c=o.match(m)){f.text=c[1],f.type="NUMBER",s+=f.text.length;continue}throw Error(`unexpected token ${JSON.stringify(o[0])} at position ${s}`)}return new x(t.map(e=>Object.freeze(e)))}function A(e,t){let r=[];for(let n in t.keys())e.has(n)&&r.push(n);if(r.length>1)throw Error(`conflicting types: ${r.join(", ")}`)}function _(e,t){if(t.peekKeyword(l)){let r=t.pop().text;if(r!==e)throw Error(`expected ${e}, got ${r}`)}return t.popType("ID")}function T(e,t){let r=new Set;for(;;){let n=e.peekType("KEYWORD");if(null==n||t&&!t.has(n))break;if(e.pop(),r.has(n))throw Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function I(e){let t=T(e,f);return(A(t,s("constant payable nonpayable".split(" "))),A(t,s("pure view payable nonpayable".split(" "))),t.has("view"))?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function S(e,t){return e.popParams().map(e=>H.from(e,t))}function C(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,a.getBigInt)(e.pop().text);throw Error("invalid gas")}return null}function k(e){if(e.length)throw Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}let R=new RegExp(/^(.*)\[([0-9]*)\]$/);function M(e){let t=e.match(w);if((0,a.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){let r=parseInt(t[2]);(0,a.assertArgument)(0!==r&&r<=32,"invalid bytes length","type",e)}else if(t[3]){let r=parseInt(t[3]);(0,a.assertArgument)(0!==r&&r<=256&&r%8==0,"invalid numeric width","type",e)}return e}let B={},P=Symbol.for("_ethers_internal"),O="_ParamTypeInternal",j="_ErrorInternal",N="_EventInternal",U="_ConstructorInternal",L="_FallbackInternal",D="_FunctionInternal",F="_StructInternal";class H{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,r,n,i,s,o,c){if((0,a.assertPrivate)(e,B,"ParamType"),Object.defineProperty(this,P,{value:O}),s&&(s=Object.freeze(s.slice())),"array"===n){if(null==o||null==c)throw Error("")}else if(null!=o||null!=c)throw Error("");if("tuple"===n){if(null==s)throw Error("")}else if(null!=s)throw Error("");(0,a.defineProperties)(this,{name:t,type:r,baseType:n,indexed:i,components:s,arrayLength:o,arrayChildren:c})}format(e){if(null==e&&(e="sighash"),"json"===e){let t=this.name||"";if(this.isArray()){let e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}let r={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"==typeof this.indexed&&(r.indexed=this.indexed),this.isTuple()&&(r.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(r)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map(t=>t.format(e)).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw Error("array is wrong length");let r=this;return e.map(e=>r.arrayChildren.walk(e,t))}if(this.isTuple()){if(!Array.isArray(e))throw Error("invalid tuple value");if(e.length!==this.components.length)throw Error("array is wrong length");let r=this;return e.map((e,n)=>r.components[n].walk(e,t))}return t(this.type,e)}#en(e,t,r,n){if(this.isArray()){if(!Array.isArray(t))throw Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw Error("array is wrong length");let a=this.arrayChildren,i=t.slice();i.forEach((t,n)=>{a.#en(e,t,r,e=>{i[n]=e})}),n(i);return}if(this.isTuple()){let a;let i=this.components;if(Array.isArray(t))a=t.slice();else{if(null==t||"object"!=typeof t)throw Error("invalid tuple value");a=i.map(e=>{if(!e.name)throw Error("cannot use object value with unnamed components");if(!(e.name in t))throw Error(`missing value for component ${e.name}`);return t[e.name]})}if(a.length!==this.components.length)throw Error("array is wrong length");a.forEach((t,n)=>{i[n].#en(e,t,r,e=>{a[n]=e})}),n(a);return}let a=r(this.type,t);a.then?e.push(async function(){n(await a)}()):n(a)}async walkAsync(e,t){let r=[],n=[e];return this.#en(r,e,t,e=>{n[0]=e}),r.length&&await Promise.all(r),n[0]}static from(e,t){if(H.isParamType(e))return e;if("string"==typeof e)try{return H.from(E(e),t)}catch(t){(0,a.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof x){let r="",n="",a=null;T(e,s(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(n="tuple",a=e.popParams().map(e=>H.from(e)),r=`tuple(${a.map(e=>e.format()).join(",")})`):n=r=M(e.popType("TYPE"));let i=null,o=null;for(;e.length&&e.peekType("BRACKET");){let t=e.pop();i=new H(B,"",r,n,null,a,o,i),o=t.value,r+=t.text,n="array",a=null}let c=null;if(T(e,h).has("indexed")){if(!t)throw Error("");c=!0}let f=e.peekType("ID")?e.pop().text:"";if(e.length)throw Error("leftover tokens");return new H(B,f,r,n,c,a,o,i)}let r=e.name;(0,a.assertArgument)(!r||"string"==typeof r&&r.match(v),"invalid name","obj.name",r);let n=e.indexed;null!=n&&((0,a.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),n=!!n);let i=e.type,o=i.match(R);if(o){let t=parseInt(o[2]||"-1"),a=H.from({type:o[1],components:e.components});return new H(B,r||"",i,"array",n,null,t,a)}if("tuple"===i||i.startsWith("tuple(")||i.startsWith("(")){let t=null!=e.components?e.components.map(e=>H.from(e)):null;return new H(B,r||"",i,"tuple",n,t,null,null)}return new H(B,r||"",i=M(e.type),i,n,null,null,null)}static isParamType(e){return e&&e[P]===O}}class V{type;inputs;constructor(e,t,r){(0,a.assertPrivate)(e,B,"Fragment"),r=Object.freeze(r.slice()),(0,a.defineProperties)(this,{type:t,inputs:r})}static from(e){if("string"==typeof e){try{V.from(JSON.parse(e))}catch(e){}return V.from(E(e))}if(e instanceof x)switch(e.peekKeyword(l)){case"constructor":return W.from(e);case"error":return G.from(e);case"event":return K.from(e);case"fallback":case"receive":return $.from(e);case"function":return J.from(e);case"struct":return Q.from(e)}else if("object"==typeof e){switch(e.type){case"constructor":return W.from(e);case"error":return G.from(e);case"event":return K.from(e);case"fallback":case"receive":return $.from(e);case"function":return J.from(e);case"struct":return Q.from(e)}(0,a.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,a.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return W.isFragment(e)}static isError(e){return G.isFragment(e)}static isEvent(e){return K.isFragment(e)}static isFunction(e){return J.isFragment(e)}static isStruct(e){return Q.isFragment(e)}}class q extends V{name;constructor(e,t,r,n){super(e,t,n),(0,a.assertArgument)("string"==typeof r&&r.match(v),"invalid identifier","name",r),n=Object.freeze(n.slice()),(0,a.defineProperties)(this,{name:r})}}function z(e,t){return"("+t.map(t=>t.format(e)).join("full"===e?", ":",")+")"}class G extends q{constructor(e,t,r){super(e,"error",t,r),Object.defineProperty(this,P,{value:j})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+z(e,this.inputs)),t.join(" ")}static from(e){if(G.isFragment(e))return e;if("string"==typeof e)return G.from(E(e));if(e instanceof x){let t=_("error",e),r=S(e);return k(e),new G(B,t,r)}return new G(B,e.name,e.inputs?e.inputs.map(H.from):[])}static isFragment(e){return e&&e[P]===j}}class K extends q{anonymous;constructor(e,t,r,n){super(e,"event",t,r),Object.defineProperty(this,P,{value:N}),(0,a.defineProperties)(this,{anonymous:n})}get topicHash(){return(0,i.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){return new K(B,e,t=(t||[]).map(e=>H.from(e)),!1).topicHash}static from(e){if(K.isFragment(e))return e;if("string"==typeof e)try{return K.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof x){let t=_("event",e),r=S(e,!0),n=!!T(e,s(["anonymous"])).has("anonymous");return k(e),new K(B,t,r,n)}return new K(B,e.name,e.inputs?e.inputs.map(e=>H.from(e,!0)):[],!!e.anonymous)}static isFragment(e){return e&&e[P]===N}}class W extends V{payable;gas;constructor(e,t,r,n,i){super(e,t,r),Object.defineProperty(this,P,{value:U}),(0,a.defineProperties)(this,{payable:n,gas:i})}format(e){if((0,a.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t=[`constructor${z(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(W.isFragment(e))return e;if("string"==typeof e)try{return W.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof x){T(e,s(["constructor"]));let t=S(e),r=!!T(e,o).has("payable"),n=C(e);return k(e),new W(B,"constructor",t,r,n)}return new W(B,"constructor",e.inputs?e.inputs.map(H.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[P]===U}}class $ extends V{payable;constructor(e,t,r){super(e,"fallback",t),Object.defineProperty(this,P,{value:L}),(0,a.defineProperties)(this,{payable:r})}format(e){let t=0===this.inputs.length?"receive":"fallback";return"json"===e?JSON.stringify({type:t,stateMutability:this.payable?"payable":"nonpayable"}):`${t}()${this.payable?" payable":""}`}static from(e){if($.isFragment(e))return e;if("string"==typeof e)try{return $.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof x){let t=e.toString(),r=e.peekKeyword(s(["fallback","receive"]));if((0,a.assertArgument)(r,"type must be fallback or receive","obj",t),"receive"===e.popKeyword(s(["fallback","receive"]))){let t=S(e);return(0,a.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),T(e,s(["payable"])),k(e),new $(B,[],!0)}let n=S(e);n.length?(0,a.assertArgument)(1===n.length&&"bytes"===n[0].type,"invalid fallback inputs","obj.inputs",n.map(e=>e.format("minimal")).join(", ")):n=[H.from("bytes")];let i=I(e);if((0,a.assertArgument)("nonpayable"===i||"payable"===i,"fallback cannot be constants","obj.stateMutability",i),T(e,s(["returns"])).has("returns")){let t=S(e);(0,a.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map(e=>e.format("minimal")).join(", "))}return k(e),new $(B,n,"payable"===i)}return"receive"===e.type?new $(B,[],!0):"fallback"===e.type?new $(B,[H.from("bytes")],"payable"===e.stateMutability):void(0,a.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[P]===L}}class J extends q{constant;outputs;stateMutability;payable;gas;constructor(e,t,r,n,i,s){super(e,"function",t,n),Object.defineProperty(this,P,{value:D}),i=Object.freeze(i.slice()),(0,a.defineProperties)(this,{constant:"view"===r||"pure"===r,gas:s,outputs:i,payable:"payable"===r,stateMutability:r})}get selector(){return(0,i.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),outputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+z(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(z(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){return new J(B,e,"view",t=(t||[]).map(e=>H.from(e)),[],null).selector}static from(e){if(J.isFragment(e))return e;if("string"==typeof e)try{return J.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof x){let t=_("function",e),r=S(e),n=I(e),a=[];T(e,s(["returns"])).has("returns")&&(a=S(e));let i=C(e);return k(e),new J(B,t,n,r,a,i)}let t=e.stateMutability;return null!=t||(t="payable","boolean"==typeof e.constant?(t="view",e.constant||(t="payable","boolean"!=typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!=typeof e.payable||e.payable||(t="nonpayable")),new J(B,e.name,t,e.inputs?e.inputs.map(H.from):[],e.outputs?e.outputs.map(H.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[P]===D}}class Q extends q{constructor(e,t,r){super(e,"struct",t,r),Object.defineProperty(this,P,{value:F})}format(){throw Error("@TODO")}static from(e){if("string"==typeof e)try{return Q.from(E(e))}catch(t){(0,a.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof x){let t=_("struct",e),r=S(e);return k(e),new Q(B,t,r)}return new Q(B,e.name,e.inputs?e.inputs.map(H.from):[])}static isFragment(e){return e&&e[P]===F}}},{"../utils/index.js":"aoZEY","../hash/index.js":"1Ty7P","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"1Ty7P":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>a.id),n.export(r,"ensNormalize",()=>i.ensNormalize),n.export(r,"isValidName",()=>i.isValidName),n.export(r,"namehash",()=>i.namehash),n.export(r,"dnsEncode",()=>i.dnsEncode),n.export(r,"hashMessage",()=>s.hashMessage),n.export(r,"verifyMessage",()=>s.verifyMessage),n.export(r,"solidityPacked",()=>o.solidityPacked),n.export(r,"solidityPackedKeccak256",()=>o.solidityPackedKeccak256),n.export(r,"solidityPackedSha256",()=>o.solidityPackedSha256),n.export(r,"TypedDataEncoder",()=>c.TypedDataEncoder),n.export(r,"verifyTypedData",()=>c.verifyTypedData);var a=e("./id.js"),i=e("./namehash.js"),s=e("./message.js"),o=e("./solidity.js"),c=e("./typed-data.js")},{"./id.js":"kzQlS","./namehash.js":"5I0yS","./message.js":"dlfiD","./solidity.js":"dBUpB","./typed-data.js":"83bsp","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kzQlS:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"id",()=>s);var a=e("../crypto/index.js"),i=e("../utils/index.js");function s(e){return(0,a.keccak256)((0,i.toUtf8Bytes)(e))}},{"../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5I0yS":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ensNormalize",()=>d),n.export(r,"isValidName",()=>l),n.export(r,"namehash",()=>u),n.export(r,"dnsEncode",()=>h);var a=e("../crypto/index.js"),i=e("../utils/index.js"),s=e("@adraffy/ens-normalize");let o=new Uint8Array(32);function c(e){return(0,i.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function f(e){let t=(0,i.toUtf8Bytes)(d(e)),r=[];if(0===e.length)return r;let n=0;for(let e=0;e{(0,i.assertArgument)(t.length<=r,`label ${JSON.stringify(e)} exceeds ${r} bytes`,"name",e);let n=new Uint8Array(t.length+1);return n.set(t,1),n[0]=n.length-1,n})))+"00"}o.fill(0)},{"../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","@adraffy/ens-normalize":"5Fx5p","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5Fx5p":[function(e,t,r){let n,a,i,s,o,c,f,d,l,u,h,p,b,g,m,y;var v=e("@parcel/transformer-js/src/esmodule-helpers.js");v.defineInteropFlag(r),v.export(r,"ens_beautify",()=>J),v.export(r,"ens_emoji",()=>K),v.export(r,"ens_normalize",()=>$),v.export(r,"ens_normalize_fragment",()=>W),v.export(r,"ens_split",()=>Q),v.export(r,"ens_tokenize",()=>function e(t,{nf:r=!0}={}){F();let n=C(t).reverse(),a=[],i=[];for(;n.length;){let e=ea(n,a);if(e)i.push({type:"emoji",emoji:e.slice(),input:a,cps:en(e)}),a=[];else{let e=n.pop();if(46==e)i.push({type:"stop",cp:e});else if(g.has(e))i.push({type:ei,cps:[e]});else if(c.has(e))i.push({type:eo,cp:e});else{let t=o.get(e);t?i.push({type:es,cp:e,cps:t.slice()}):i.push({type:"disallowed",cp:e})}}}if(r)for(let t=0,r=-1;tec(e.type)?e.cps:[]),o=N(s);R(o,s)?(i.splice(r,n-r,{type:"nfc",input:s,cps:o,tokens0:ed(a),tokens:e(k(o),{nf:!1})}),t=r):t=n-1,r=-1}else r=t}else n.type!==eo&&(r=-1)}return ed(i)}),v.export(r,"is_combining_mark",()=>z),v.export(r,"nfc",()=>N),v.export(r,"nfd",()=>j),v.export(r,"safe_str_from_cps",()=>q),v.export(r,"should_escape",()=>G);let w=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function x(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),a=1,i=[0,1];for(let e=1;e>--c&1}let l=0x80000000-1,u=0;for(let e=0;e<31;e++)u=u<<1|d();let h=[],p=0,b=0x80000000;for(;;){let e=Math.floor(((u-p+1)*a-1)/b),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|d(),s=s<<1^0x40000000,o=(0x40000000^o)<<1|0x40000001;p=s,b=1+o-s}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return g+256+(e[o++]<<8|e[o++]);case 1:return g+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>3);for(let a=0,i=0,s=0,o=0;a=8&&(n[i++]=o>>(s-=8));return n}(e)),r=0,()=>t[r++]}function E(e,t=0){let r=[];for(;;){let n=e(),a=e();if(!a)break;t+=n;for(let e=0;e{let t=E(e);if(t.length)return t})}function _(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),a=T(t);return I(a.length,1+e,t).flatMap((e,t)=>{let[i,...s]=e;return Array(a[t]).fill().map((e,t)=>{let a=t*n;return[i+t*r,s.map(e=>e+a)]})})}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(I(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return t.flat()}function T(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function I(e,t,r){let n=Array(e).fill().map(()=>[]);for(let a=0;a>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function S(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function C(e){let t=[];for(let r=0,n=e.length;r>24&255}function B(e){return 0xffffff&e}function P(e){return e>=44032&&e<55204}function O(e){n||function(){let e=x("AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g");for(let[t,r]of(n=new Map(A(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),a=new Set(E(e)),i=new Map,s=new Map,_(e))){if(!a.has(t)&&2==r.length){let[e,n]=r,a=s.get(e);a||(a=new Map,s.set(e,a)),a.set(n,t)}i.set(t,r.reverse())}}();let t=[],r=[],o=!1;function c(e){let r=n.get(e);r&&(o=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(P(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,a=e%28;c(4352+t),c(4449+r),a>0&&c(4519+a)}else{let e=i.get(n);e?r.push(...e):c(n)}if(!r.length)break;n=r.pop()}if(o&&t.length>1){let e=M(t[0]);for(let r=1;r0&&a>=e)0==e?(t.push(n,...r),r.length=0,n=o):r.push(o),a=e;else{let i=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;{if(P(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);let r=s.get(e);return r&&(r=r.get(t))?r:-1}}(n,o);i>=0?n=i:0==a&&0==e?(t.push(n),n=o):(r.push(o),a=e)}}return n>=0&&t.push(n,...r),t}(O(e))}let U=e=>Array.from(e);function L(e,t){return e.P.has(t)||e.Q.has(t)}class D extends Array{get is_emoji(){return!0}}function F(){let e,t;if(o)return;let r=x("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"),n=()=>E(r),a=()=>new Set(n()),i=(e,t)=>t.forEach(t=>e.add(t));o=new Map(_(r)),c=a(),f=n(),d=new Set(n().map(e=>f[e])),f=new Set(f),l=a(),u=a();let s=A(r),v=r(),w=()=>{let e=new Set;return n().forEach(t=>i(e,s[t])),i(e,n()),e};h=T(e=>{let t=T(r).map(e=>e+96);if(t.length){let n=e>=v;return t[0]-=32,t=k(t),n&&(t=`Restricted[${t}]`),{N:t,P:w(),Q:w(),M:!r(),R:n}}}),p=a(),b=new Map;let I=n().concat(U(p)).sort((e,t)=>e-t);for(let{V:e,M:t}of(I.forEach((e,t)=>{let n=r(),a=I[t]=n?I[t-n]:{V:[],M:new Map};a.V.push(e),p.has(e)||b.set(e,a)}),new Set(b.values()))){let r=[];for(let t of e){let e=h.filter(e=>L(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),i(n.G,e)}let n=r.flatMap(e=>U(e.G));for(let{G:e,V:a}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of a)t.set(e,r)}}g=new Set;let S=new Set,C=e=>g.has(e)?S.add(e):g.add(e);for(let e of h){for(let t of e.P)C(t);for(let t of e.Q)C(t)}for(let e of g)b.has(e)||S.has(e)||b.set(e,1);for(let n of(i(g,j(g)),m=(e=[],t=E(r),function t({S:r,B:n},a,i){if(!(4&r)||i!==a[a.length-1])for(let s of(2&r&&(i=a[a.length-1]),1&r&&e.push(a),n))for(let e of s.Q)t(s,[...a,e],i)}(function e(n){return{S:r(),B:T(()=>{let n=E(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>D.from(e)).sort(R),y=new Map,m)){let e=[y];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function H(e){return(G(e)?"":`${V(q([e]))} `)+S(e)}function V(e){return`"${e}"\u200E`}function q(e,t=1/0,r=S){let n=[];z(e[0])&&n.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,i=e.length;for(let t=0;te.slice())}function W(e,t){F();let r=t?j:N;return e.split(".").map(e=>k(er(C(e),r,en).flat())).join(".")}function $(e){return X(Z(e,N,en))}function J(e){let t=Z(e,N,e=>e);for(let{type:e,output:r,error:n}of t){if(n)break;"Greek"!==e&&function(e,t,r){let n=0;for(;;){let t=e.indexOf(958,n);if(t<0)break;e[t]=926,n=t+1}}(r,0,0)}return X(t)}function Q(e,t){return Z(e,N,t?e=>e.slice():en)}function Z(e,t,r){if(!e)return[];F();let n=0;return e.split(".").map(e=>{let a=C(e),i={input:a,offset:n};n+=a.length+1;try{let e,n=i.tokens=er(a,t,r),s=n.length;if(!s)throw Error("empty label");let o=i.output=n.flat();if(!function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw Error("underscore allowed only at start")}(o),!(i.emoji=s>1||n[0].is_emoji)&&o.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw Error(`invalid label extension: "${k(e.slice(0,4))}"`)}(o),e="ASCII";else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(f.has(o[0]))throw et("leading combining mark");for(let e=1;eL(e,r));if(!e.length){if(h.some(e=>L(e,r)))throw ee(t[0],r);throw Y(r)}if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!L(e,r))throw ee(e,r);if(e.M){let e=j(t);for(let t=1,r=e.length;t4)throw Error(`excessive non-spacing marks: ${V(q(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(a,t),function(e,t){let r;let n=[];for(let e of t){let t=b.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):U(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>L(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(a,r),e=a.N}else e="Emoji"}i.type=e}catch(e){i.error=e}return i})}function X(e){return e.map(({input:t,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==e.length?n:`Invalid label ${V(q(t,63))}: ${n}`)}return k(n)}).join(".")}function Y(e){return Error(`disallowed character: ${H(e)}`)}function ee(e,t){let r=H(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function et(e){return Error(`illegal placement: ${e}`)}function er(e,t,r){let n=[],a=[];for(e=e.slice().reverse();e.length;){let i=ea(e);if(i)a.length&&(n.push(t(a)),a=[]),n.push(r(i));else{let t=e.pop();if(g.has(t))a.push(t);else{let e=o.get(t);if(e)a.push(...e);else if(!c.has(t))throw Y(t)}}}return a.length&&n.push(t(a)),n}function en(e){return e.filter(e=>65039!=e)}function ea(e,t){let r,n=y,a=e.length;for(;a&&(n=n.get(e[--a]));){let{V:i}=n;i&&(r=i,t&&t.push(...e.slice(a).reverse()),e.length=a)}return r}let ei="valid",es="mapped",eo="ignored";function ec(e){return e==ei||e==es}function ef(e){return e.some(e=>u.has(e))}function ed(e){for(let t=0;te.cps)})}return e}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dlfiD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"hashMessage",()=>c),n.export(r,"verifyMessage",()=>f);var a=e("../crypto/index.js"),i=e("../constants/index.js"),s=e("../transaction/index.js"),o=e("../utils/index.js");function c(e){return"string"==typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,a.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(i.MessagePrefix),(0,o.toUtf8Bytes)(String(e.length)),e]))}function f(e,t){let r=c(e);return(0,s.recoverAddress)(r,t)}},{"../crypto/index.js":"aHR5v","../constants/index.js":"2Shkc","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6XiG7":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"accessListify",()=>a.accessListify),n.export(r,"computeAddress",()=>i.computeAddress),n.export(r,"recoverAddress",()=>i.recoverAddress),n.export(r,"Transaction",()=>s.Transaction);var a=e("./accesslist.js"),i=e("./address.js"),s=e("./transaction.js")},{"./accesslist.js":"61lVl","./address.js":"lrz3E","./transaction.js":"bYWwy","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"61lVl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"accessListify",()=>o);var a=e("../address/index.js"),i=e("../utils/index.js");function s(e,t){return{address:(0,a.getAddress)(e),storageKeys:t.map((e,t)=>((0,i.assertArgument)((0,i.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase()))}}function o(e){if(Array.isArray(e))return e.map((t,r)=>Array.isArray(t)?((0,i.assertArgument)(2===t.length,"invalid slot set",`value[${r}]`,t),s(t[0],t[1])):((0,i.assertArgument)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),s(t.address,t.storageKeys)));(0,i.assertArgument)(null!=e&&"object"==typeof e,"invalid access list","value",e);let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return s(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}},{"../address/index.js":"8s6vX","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lrz3E:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"computeAddress",()=>s),n.export(r,"recoverAddress",()=>o);var a=e("../address/index.js"),i=e("../crypto/index.js");function s(e){let t;return t="string"==typeof e?(0,i.SigningKey).computePublicKey(e,!1):e.publicKey,(0,a.getAddress)((0,i.keccak256)("0x"+t.substring(4)).substring(26))}function o(e,t){return s((0,i.SigningKey).recoverPublicKey(e,t))}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bYWwy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Transaction",()=>_);var a=e("../address/index.js"),i=e("../constants/addresses.js"),s=e("../crypto/index.js"),o=e("../utils/index.js"),c=e("./accesslist.js"),f=e("./address.js");let d=BigInt(0),l=BigInt(2),u=BigInt(27),h=BigInt(28),p=BigInt(35),b=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function g(e,t){let r=e.toString(16);for(;r.length<2;)r="0"+r;return"0x"+(r+=(0,s.sha256)(t).substring(4))}function m(e){return"0x"===e?null:(0,a.getAddress)(e)}function y(e,t){try{return(0,c.accessListify)(e)}catch(r){(0,o.assertArgument)(!1,r.message,t,e)}}function v(e,t){return"0x"===e?0:(0,o.getNumber)(e,t)}function w(e,t){if("0x"===e)return d;let r=(0,o.getBigInt)(e,t);return(0,o.assertArgument)(r<=b,"value exceeds uint size",t,r),r}function x(e,t){let r=(0,o.getBigInt)(e,"value"),n=(0,o.toBeArray)(r);return(0,o.assertArgument)(n.length<=32,"value too large",`tx.${t}`,r),n}function E(e){return(0,c.accessListify)(e).map(e=>[e.address,e.storageKeys])}function A(e,t){let r;try{if(r=v(t[0],"yParity"),0!==r&&1!==r)throw Error("bad yParity")}catch(e){(0,o.assertArgument)(!1,"invalid yParity","yParity",t[0])}let n=(0,o.zeroPadValue)(t[1],32),a=(0,o.zeroPadValue)(t[2],32),i=(0,s.Signature).from({r:n,s:a,yParity:r});e.signature=i}class _{#ea;#ei;#V;#es;#eo;#ec;#ef;#ed;#el;#eu;#eh;#ep;#eb;#eg;#em;#ey;get type(){return this.#ea}set type(e){switch(e){case null:this.#ea=null;break;case 0:case"legacy":this.#ea=0;break;case 1:case"berlin":case"eip-2930":this.#ea=1;break;case 2:case"london":case"eip-1559":this.#ea=2;break;case 3:case"cancun":case"eip-4844":this.#ea=3;break;default:(0,o.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){let e=this.#ei;return null==e&&3===this.type?i.ZeroAddress:e}set to(e){this.#ei=null==e?null:(0,a.getAddress)(e)}get nonce(){return this.#es}set nonce(e){this.#es=(0,o.getNumber)(e,"value")}get gasLimit(){return this.#eo}set gasLimit(e){this.#eo=(0,o.getBigInt)(e)}get gasPrice(){let e=this.#ec;return null==e&&(0===this.type||1===this.type)?d:e}set gasPrice(e){this.#ec=null==e?null:(0,o.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){let e=this.#ef;return null==e?2===this.type||3===this.type?d:null:e}set maxPriorityFeePerGas(e){this.#ef=null==e?null:(0,o.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){let e=this.#ed;return null==e?2===this.type||3===this.type?d:null:e}set maxFeePerGas(e){this.#ed=null==e?null:(0,o.getBigInt)(e,"maxFeePerGas")}get data(){return this.#V}set data(e){this.#V=(0,o.hexlify)(e)}get value(){return this.#el}set value(e){this.#el=(0,o.getBigInt)(e,"value")}get chainId(){return this.#eu}set chainId(e){this.#eu=(0,o.getBigInt)(e)}get signature(){return this.#eh||null}set signature(e){this.#eh=null==e?null:(0,s.Signature).from(e)}get accessList(){let e=this.#ep||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#ep=null==e?null:(0,c.accessListify)(e)}get maxFeePerBlobGas(){let e=this.#eb;return null==e&&3===this.type?d:e}set maxFeePerBlobGas(e){this.#eb=null==e?null:(0,o.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#eg;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,o.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;tObject.assign({},e))}set blobs(e){if(null==e){this.#ey=null;return}let t=[],r=[];for(let n=0;ne.data),r.map(e=>e.commitment),r.map(e=>e.proof)])]):(0,o.concat)(["0x03",(0,o.encodeRlp)(n)])}(this,r,t?this.blobs:null)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#ev(!0,!0)}get unsignedSerialized(){return this.#ev(!1,!1)}inferType(){let e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){let e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,r=null!=this.accessList,n=null!=this.#eb||this.#eg;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,o.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,o.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,o.assert)(0!==this.type||!r,"legacy transaction cannot have accessList","BAD_DATA",{value:this});let a=[];return null!=this.type?a.push(this.type):t?a.push(2):e?(a.push(1),r||a.push(0)):r?(a.push(1),a.push(2)):(n&&this.to||(a.push(0),a.push(1),a.push(2)),a.push(3)),a.sort(),a}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return _.from(this)}toJSON(){let e=e=>null==e?null:e.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(null==e)return new _;if("string"==typeof e){let t=(0,o.getBytes)(e);if(t[0]>=127)return _.from(function(e){let t=(0,o.decodeRlp)(e);(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);let r={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:m(t[3]),value:w(t[4],"value"),data:(0,o.hexlify)(t[5]),chainId:d};if(6===t.length)return r;let n=w(t[6],"v"),a=w(t[7],"r"),i=w(t[8],"s");if(a===d&&i===d)r.chainId=n;else{let e=(n-p)/l;ed),n.export(r,"solidityPackedKeccak256",()=>l),n.export(r,"solidityPackedSha256",()=>u);var a=e("../address/index.js"),i=e("../crypto/index.js"),s=e("../utils/index.js");let o=RegExp("^bytes([0-9]+)$"),c=RegExp("^(u?int)([0-9]*)$"),f=RegExp("^(.*)\\[([0-9]*)\\]$");function d(e,t){(0,s.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(function e(t,r,n){switch(t){case"address":if(n)return(0,s.getBytes)((0,s.zeroPadValue)(r,32));return(0,s.getBytes)((0,a.getAddress)(r));case"string":return(0,s.toUtf8Bytes)(r);case"bytes":return(0,s.getBytes)(r);case"bool":if(r=r?"0x01":"0x00",n)return(0,s.getBytes)((0,s.zeroPadValue)(r,32));return(0,s.getBytes)(r)}let i=t.match(c);if(i){let e="int"===i[1],a=parseInt(i[2]||"256");return(0,s.assertArgument)((!i[2]||i[2]===String(a))&&a%8==0&&0!==a&&a<=256,"invalid number type","type",t),n&&(a=256),e&&(r=(0,s.toTwos)(r,a)),(0,s.getBytes)((0,s.zeroPadValue)((0,s.toBeArray)(r),a/8))}if(i=t.match(o)){let e=parseInt(i[1]);return((0,s.assertArgument)(String(e)===i[1]&&0!==e&&e<=32,"invalid bytes type","type",t),(0,s.assertArgument)((0,s.dataLength)(r)===e,`invalid value for ${t}`,"value",r),n)?(0,s.getBytes)((0,s.zeroPadBytes)(r,32)):r}if((i=t.match(f))&&Array.isArray(r)){let n=i[1],a=parseInt(i[2]||String(r.length));(0,s.assertArgument)(a===r.length,`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(n,t,!0))}),(0,s.getBytes)((0,s.concat)(o))}(0,s.assertArgument)(!1,"invalid type","type",t)}(e,t[n]))}),(0,s.hexlify)((0,s.concat)(r))}function l(e,t){return(0,i.keccak256)(d(e,t))}function u(e,t){return(0,i.sha256)(d(e,t))}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"83bsp":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"TypedDataEncoder",()=>A),n.export(r,"verifyTypedData",()=>_);var a=e("../address/index.js"),i=e("../crypto/index.js"),s=e("../transaction/index.js"),o=e("../utils/index.js"),c=e("./id.js");let f=new Uint8Array(32);f.fill(0);let d=BigInt(-1),l=BigInt(0),u=BigInt(1),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),p=(0,o.toBeHex)(u,32),b=(0,o.toBeHex)(l,32),g={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},m=["name","version","chainId","verifyingContract","salt"];function y(e){return function(t){return(0,o.assertArgument)("string"==typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let v={name:y("name"),version:y("version"),chainId:function(e){let t=(0,o.getBigInt)(e,"domain.chainId");return((0,o.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t))?Number(t):(0,o.toQuantity)(t)},verifyingContract:function(e){try{return(0,a.getAddress)(e).toLowerCase()}catch(e){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){let t=(0,o.getBytes)(e,"domain.salt");return(0,o.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,o.hexlify)(t)}};function w(e){{let t=e.match(/^(u?)int(\d+)$/);if(t){let r=""===t[1],n=parseInt(t[2]);(0,o.assertArgument)(n%8==0&&0!==n&&n<=256&&t[2]===String(n),"invalid numeric width","type",e);let a=(0,o.mask)(h,r?n-1:n),i=r?(a+u)*d:l;return function(t){let n=(0,o.getBigInt)(t,"value");return(0,o.assertArgument)(n>=i&&n<=a,`value out-of-bounds for ${e}`,"value",n),(0,o.toBeHex)(r?(0,o.toTwos)(n,256):n,32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0,o.assertArgument)(0!==r&&r<=32&&t[1]===String(r),"invalid bytes width","type",e),function(t){let n=(0,o.getBytes)(t);return(0,o.assertArgument)(n.length===r,`invalid length for ${e}`,"value",t),function(e){let t=(0,o.getBytes)(e),r=t.length%32;return r?(0,o.concat)([t,f.slice(r)]):(0,o.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.zeroPadValue)((0,a.getAddress)(e),32)};case"bool":return function(e){return e?p:b};case"bytes":return function(e){return(0,i.keccak256)(e)};case"string":return function(e){return(0,c.id)(e)}}return null}function x(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}function E(e){let t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class A{primaryType;#ew;get types(){return JSON.parse(this.#ew)}#ex;#eE;constructor(e){this.#ex=new Map,this.#eE=new Map;let t=new Map,r=new Map,n=new Map,a={};for(let i in Object.keys(e).forEach(i=>{a[i]=e[i].map(({name:t,type:r})=>{let{base:n,index:a}=E(r);return"int"!==n||e.int||(n="int256"),"uint"!==n||e.uint||(n="uint256"),{name:t,type:n+(a||"")}}),t.set(i,new Set),r.set(i,[]),n.set(i,new Set)}),this.#ew=JSON.stringify(a),a){let n=new Set;for(let s of a[i]){(0,o.assertArgument)(!n.has(s.name),`duplicate variable name ${JSON.stringify(s.name)} in ${JSON.stringify(i)}`,"types",e),n.add(s.name);let a=E(s.type).base;(0,o.assertArgument)(a!==i,`circular type reference to ${JSON.stringify(a)}`,"types",e),w(a)||((0,o.assertArgument)(r.has(a),`unknown type ${JSON.stringify(a)}`,"types",e),r.get(a).push(i),t.get(i).add(a))}}let i=Array.from(r.keys()).filter(e=>0===r.get(e).length);for(let[s,c]of((0,o.assertArgument)(0!==i.length,"missing primary type","types",e),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,o.defineProperties)(this,{primaryType:i[0]}),!function a(i,s){for(let c of((0,o.assertArgument)(!s.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),s.add(i),t.get(i)))if(r.has(c))for(let e of(a(c,s),s))n.get(e).add(c);s.delete(i)}(this.primaryType,new Set),n)){let e=Array.from(c);e.sort(),this.#ex.set(s,x(s,a[s])+e.map(e=>x(e,a[e])).join(""))}}getEncoder(e){let t=this.#eE.get(e);return t||(t=this.#eA(e),this.#eE.set(e,t)),t}#eA(e){{let t=w(e);if(t)return t}let t=E(e).array;if(t){let e=t.prefix,r=this.getEncoder(e);return n=>{(0,o.assertArgument)(-1===t.count||t.count===n.length,`array length mismatch; expected length ${t.count}`,"value",n);let a=n.map(r);return this.#ex.has(e)&&(a=a.map(i.keccak256)),(0,i.keccak256)((0,o.concat)(a))}}let r=this.types[e];if(r){let t=(0,c.id)(this.#ex.get(e));return e=>{let n=r.map(({name:t,type:r})=>{let n=this.getEncoder(r)(e[t]);return this.#ex.has(r)?(0,i.keccak256)(n):n});return n.unshift(t),(0,o.concat)(n)}}(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){let t=this.#ex.get(e);return(0,o.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,i.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(w(e))return r(e,t);let n=E(e).array;if(n)return(0,o.assertArgument)(-1===n.count||n.count===t.length,`array length mismatch; expected length ${n.count}`,"value",t),t.map(e=>this._visit(n.prefix,e,r));let a=this.types[e];if(a)return a.reduce((e,{name:n,type:a})=>(e[n]=this._visit(a,t[n],r),e),{});(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new A(e)}static getPrimaryType(e){return A.from(e).primaryType}static hashStruct(e,t,r){return A.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){if(null==e[r])continue;let n=g[r];(0,o.assertArgument)(n,`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort((e,t)=>m.indexOf(e.name)-m.indexOf(t.name)),A.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,o.concat)(["0x1901",A.hashDomain(e),A.from(t).hash(r)])}static hash(e,t,r){return(0,i.keccak256)(A.encode(e,t,r))}static async resolveNames(e,t,r,n){for(let t in e=Object.assign({},e))null==e[t]&&delete e[t];let a={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");let i=A.from(t);for(let e in i.visit(r,(e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(a[t]="0x"),t)),a)a[e]=await n(e);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),r=i.visit(r,(e,t)=>"address"===e&&a[t]?a[t]:t),{domain:e,value:r}}static getPayload(e,t,r){A.hashDomain(e);let n={},a=[];m.forEach(t=>{let r=e[t];null!=r&&(n[t]=v[t](r),a.push({name:t,type:g[t]}))});let i=A.from(t),s=Object.assign({},t=i.types);return(0,o.assertArgument)(null==s.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),s.EIP712Domain=a,i.encode(r),{types:s,domain:n,primaryType:i.primaryType,message:i.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(t));if(e.match(/^u?int/))return(0,o.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,o.assertArgument)("string"==typeof t,"invalid string","value",t),t}(0,o.assertArgument)(!1,"unsupported type","type",e)})}}}function _(e,t,r,n){return(0,s.recoverAddress)(A.hash(e,t,r),n)}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./id.js":"kzQlS","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2PGyl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkResultErrors",()=>c.checkResultErrors),n.export(r,"Result",()=>c.Result),n.export(r,"LogDescription",()=>l),n.export(r,"TransactionDescription",()=>u),n.export(r,"ErrorDescription",()=>h),n.export(r,"Indexed",()=>p),n.export(r,"Interface",()=>m);var a=e("../crypto/index.js"),i=e("../hash/index.js"),s=e("../utils/index.js"),o=e("./abi-coder.js"),c=e("./coders/abstract-coder.js"),f=e("./fragments.js"),d=e("./typed.js");class l{fragment;name;signature;topic;args;constructor(e,t,r){let n=e.name,a=e.format();(0,s.defineProperties)(this,{fragment:e,name:n,signature:a,topic:t,args:r})}}class u{fragment;name;args;signature;selector;value;constructor(e,t,r,n){let a=e.name,i=e.format();(0,s.defineProperties)(this,{fragment:e,name:a,args:r,signature:i,selector:t,value:n})}}class h{fragment;name;args;signature;selector;constructor(e,t,r){let n=e.name,a=e.format();(0,s.defineProperties)(this,{fragment:e,name:n,args:r,signature:a,selector:t})}}class p{hash;_isIndexed;static isIndexed(e){return!!(e&&e._isIndexed)}constructor(e){(0,s.defineProperties)(this,{hash:e,_isIndexed:!0})}}let b={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"},g={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&b[e.toString()]&&(t=b[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class m{fragments;deploy;fallback;receive;#e_;#eT;#eI;#eS;constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,this.#eI=new Map,this.#e_=new Map,this.#eT=new Map;let r=[];for(let e of t)try{r.push((0,f.Fragment).from(e))}catch(t){console.log(`[Warning] Invalid Fragment ${JSON.stringify(e)}:`,t.message)}(0,s.defineProperties)(this,{fragments:Object.freeze(r)});let n=null,a=!1;this.#eS=this.getAbiCoder(),this.fragments.forEach((e,t)=>{let r;switch(e.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}(0,s.defineProperties)(this,{deploy:e});return;case"fallback":0===e.inputs.length?a=!0:((0,s.assertArgument)(!n||e.payable!==n.payable,"conflicting fallback fragments",`fragments[${t}]`,e),a=(n=e).payable);return;case"function":r=this.#eI;break;case"event":r=this.#eT;break;case"error":r=this.#e_;break;default:return}let i=e.format();r.has(i)||r.set(i,e)}),this.deploy||(0,s.defineProperties)(this,{deploy:(0,f.ConstructorFragment).from("constructor()")}),(0,s.defineProperties)(this,{fallback:n,receive:a})}format(e){let t=e?"minimal":"full";return this.fragments.map(e=>e.format(t))}formatJson(){return JSON.stringify(this.fragments.map(e=>e.format("json")).map(e=>JSON.parse(e)))}getAbiCoder(){return(0,o.AbiCoder).defaultAbiCoder()}#eC(e,t,r){if((0,s.isHexString)(e)){let t=e.toLowerCase();for(let e of this.#eI.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){let n=[];for(let[t,r]of this.#eI)t.split("(")[0]===e&&n.push(r);if(t){let e=t.length>0?t[t.length-1]:null,r=t.length,a=!0;(0,d.Typed).isTyped(e)&&"overrides"===e.type&&(a=!1,r--);for(let e=n.length-1;e>=0;e--){let t=n[e].inputs.length;t===r||a&&t===r-1||n.splice(e,1)}for(let e=n.length-1;e>=0;e--){let r=n[e].inputs;for(let a=0;a=r.length){if("overrides"===t[a].type)continue;n.splice(e,1);break}if(t[a].type!==r[a].baseType){n.splice(e,1);break}}}}if(1===n.length&&t&&t.length!==n[0].inputs.length){let e=t[t.length-1];(null==e||Array.isArray(e)||"object"!=typeof e)&&n.splice(0,1)}if(0===n.length)return null;if(n.length>1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,s.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return n[0]}return this.#eI.get((0,f.FunctionFragment).from(e).format())||null}getFunctionName(e){let t=this.#eC(e,null,!1);return(0,s.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#eC(e,null,!1)}getFunction(e,t){return this.#eC(e,t||null,!0)}forEachFunction(e){let t=Array.from(this.#eI.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r=0;e--)n[e].inputs.length=0;e--){let r=n[e].inputs;for(let a=0;a1&&r){let t=n.map(e=>JSON.stringify(e.format())).join(", ");(0,s.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return n[0]}return this.#eT.get((0,f.EventFragment).from(e).format())||null}getEventName(e){let t=this.#ek(e,null,!1);return(0,s.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#ek(e,null,!1)}getEvent(e,t){return this.#ek(e,t||null,!0)}forEachEvent(e){let t=Array.from(this.#eT.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r1){let r=t.map(e=>JSON.stringify(e.format())).join(", ");(0,s.assertArgument)(!1,`ambiguous error description (i.e. ${r})`,"name",e)}return t[0]}return"Error(string)"===(e=(0,f.ErrorFragment).from(e).format())?(0,f.ErrorFragment).from("error Error(string)"):"Panic(uint256)"===e?(0,f.ErrorFragment).from("error Panic(uint256)"):this.#e_.get(e)||null}forEachError(e){let t=Array.from(this.#e_.keys());t.sort((e,t)=>e.localeCompare(t));for(let r=0;r"string"===e.type?(0,i.id)(t):"bytes"===e.type?(0,a.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,s.toBeHex)(t):e.type.match(/^bytes/)?t=(0,s.zeroPadBytes)(t,32):"address"===e.type&&this.#eS.encode(["address"],[t]),(0,s.zeroPadValue)((0,s.hexlify)(t),32));for(t.forEach((t,a)=>{let i=e.inputs[a];if(!i.indexed){(0,s.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+i.name,t);return}null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?(0,s.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map(e=>n(i,e))):r.push(n(i,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){if("string"==typeof e){let t=this.getEvent(e);(0,s.assertArgument)(t,"unknown event","eventFragment",e),e=t}let r=[],n=[],o=[];return e.anonymous||r.push(e.topicHash),(0,s.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach((e,s)=>{let c=t[s];if(e.indexed){if("string"===e.type)r.push((0,i.id)(c));else if("bytes"===e.type)r.push((0,a.keccak256)(c));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this.#eS.encode([e.type],[c]))}else n.push(e),o.push(c)}),{data:this.#eS.encode(n,o),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e){let t=this.getEvent(e);(0,s.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=r&&!e.anonymous){let t=e.topicHash;(0,s.assertArgument)((0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",r[0]),r=r.slice(1)}let n=[],a=[],i=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push((0,f.ParamType).from({type:"bytes32",name:e.name})),i.push(!0)):(n.push(e),i.push(!1)):(a.push(e),i.push(!1))});let o=null!=r?this.#eS.decode(n,(0,s.concat)(r)):null,d=this.#eS.decode(a,t,!0),l=[],u=[],h=0,b=0;return e.inputs.forEach((e,t)=>{let r=null;if(e.indexed){if(null==o)r=new p(null);else if(i[t])r=new p(o[b++]);else try{r=o[b++]}catch(e){r=e}}else try{r=d[h++]}catch(e){r=e}l.push(r),u.push(e.name||null)}),(0,c.Result).fromItems(l,u)}parseTransaction(e){let t=(0,s.getBytes)(e.data,"tx.data"),r=(0,s.getBigInt)(null!=e.value?e.value:0,"tx.value"),n=this.getFunction((0,s.hexlify)(t.slice(0,4)));if(!n)return null;let a=this.#eS.decode(n.inputs,t.slice(4));return new u(n,n.selector,a,r)}parseCallResult(e){throw Error("@TODO")}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new l(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){let t=(0,s.hexlify)(e),r=this.getError((0,s.dataSlice)(t,0,4));if(!r)return null;let n=this.#eS.decode(r.inputs,(0,s.dataSlice)(t,4));return new h(r,r.selector,n)}static from(e){return e instanceof m?e:new m("string"==typeof e?JSON.parse(e):"function"==typeof e.formatJson?e.formatJson():"function"==typeof e.format?e.format("json"):e)}}},{"../crypto/index.js":"aHR5v","../hash/index.js":"1Ty7P","../utils/index.js":"aoZEY","./abi-coder.js":"f57tP","./coders/abstract-coder.js":"9D1CN","./fragments.js":"hSb7d","./typed.js":"3auRl","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],h4Dfe:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseContract",()=>a.BaseContract),n.export(r,"Contract",()=>a.Contract),n.export(r,"ContractFactory",()=>i.ContractFactory),n.export(r,"ContractEventPayload",()=>s.ContractEventPayload),n.export(r,"ContractUnknownEventPayload",()=>s.ContractUnknownEventPayload),n.export(r,"ContractTransactionReceipt",()=>s.ContractTransactionReceipt),n.export(r,"ContractTransactionResponse",()=>s.ContractTransactionResponse),n.export(r,"EventLog",()=>s.EventLog),n.export(r,"UndecodedEventLog",()=>s.UndecodedEventLog);var a=e("./contract.js"),i=e("./factory.js"),s=e("./wrappers.js")},{"./contract.js":"klKVF","./factory.js":"bEFFY","./wrappers.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],klKVF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"copyOverrides",()=>y),n.export(r,"resolveArgs",()=>v),n.export(r,"BaseContract",()=>R),n.export(r,"Contract",()=>B);var a=e("../abi/index.js"),i=e("../address/index.js"),s=e("../providers/provider.js"),o=e("../utils/index.js"),c=e("./wrappers.js");let f=BigInt(0);function d(e){return e&&"function"==typeof e.call}function l(e){return e&&"function"==typeof e.estimateGas}function u(e){return e&&"function"==typeof e.resolveName}function h(e){return e&&"function"==typeof e.sendTransaction}function p(e){if(null!=e){if(u(e))return e;if(e.provider)return e.provider}}class b{#eR;fragment;constructor(e,t,r){if((0,o.defineProperties)(this,{fragment:t}),t.inputs.lengthnull==r[t]?null:e.walkAsync(r[t],(e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map(e=>(0,i.resolveAddress)(e,a))):(0,i.resolveAddress)(t,a):t)));return e.interface.encodeFilterTopics(t,n)}()}getTopicFilter(){return this.#eR}}function g(e,t){return null==e?null:"function"==typeof e[t]?e:e.provider&&"function"==typeof e.provider[t]?e.provider:null}function m(e){return null==e?null:e.provider||null}async function y(e,t){let r=(0,a.Typed).dereference(e,"overrides");(0,o.assertArgument)("object"==typeof r,"invalid overrides parameter","overrides",e);let n=(0,s.copyRequest)(r);return(0,o.assertArgument)(null==n.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),(0,o.assertArgument)(null==n.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function v(e,t,r){let n=g(e,"resolveName"),s=u(n)?n:null;return await Promise.all(t.map((e,t)=>e.walkAsync(r[t],(e,t)=>(t=(0,a.Typed).dereference(t,e),"address"===e)?(0,i.resolveAddress)(t,s):t)))}let w=Symbol.for("_ethersInternal_contract"),x=new WeakMap;function E(e){return x.get(e[w])}async function A(e,t){let r;let n=null;if(Array.isArray(t)){let n=function(t){if((0,o.isHexString)(t,32))return t;let r=e.interface.getEvent(t);return(0,o.assertArgument)(r,"unknown fragment","name",t),r.topicHash};r=t.map(e=>null==e?null:Array.isArray(e)?e.map(n):n(e))}else"*"===t?r=[null]:"string"==typeof t?(0,o.isHexString)(t,32)?r=[t]:(n=e.interface.getEvent(t),(0,o.assertArgument)(n,"unknown fragment","event",t),r=[n.topicHash]):t&&"object"==typeof t&&"getTopicFilter"in t&&"function"==typeof t.getTopicFilter&&t.fragment?r=await t.getTopicFilter():"fragment"in t?r=[(n=t.fragment).topicHash]:(0,o.assertArgument)(!1,"unknown event name","event",t);return{fragment:n,tag:(r=r.map(e=>{if(null==e)return null;if(Array.isArray(e)){let t=Array.from(new Set(e.map(e=>e.toLowerCase())).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()})).map(e=>null==e?"null":Array.isArray(e)?e.join("|"):e).join("&"),topics:r}}async function _(e,t){let{subs:r}=E(e);return r.get((await A(e,t)).tag)||null}async function T(e,t,r){let n=m(e.runner);(0,o.assert)(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});let{fragment:a,tag:i,topics:s}=await A(e,r),{addr:f,subs:d}=E(e),l=d.get(i);if(!l){let t={address:f||e,topics:s},o=t=>{let n=a;if(null==n)try{n=e.interface.getEvent(t.topics[0])}catch(e){}if(n){let i=n,s=a?e.interface.decodeEventLog(a,t.data,t.topics):[];C(e,r,s,n=>new c.ContractEventPayload(e,n,r,i,t))}else C(e,r,[],n=>new c.ContractUnknownEventPayload(e,n,r,t))},u=[];l={tag:i,listeners:[],start:()=>{u.length||u.push(n.on(t,o))},stop:async()=>{if(0==u.length)return;let e=u;u=[],await Promise.all(e),n.off(t,o)}},d.set(i,l)}return l}let I=Promise.resolve();async function S(e,t,r,n){await I;let a=await _(e,t);if(!a)return!1;let i=a.listeners.length;return a.listeners=a.listeners.filter(({listener:t,once:a})=>{let i=Array.from(r);n&&i.push(n(a?null:t));try{t.call(e,...i)}catch(e){}return!a}),0===a.listeners.length&&(a.stop(),E(e).subs.delete(a.tag)),i>0}async function C(e,t,r,n){try{await I}catch(e){}let a=S(e,t,r,n);return I=a,await a}let k=["then"];class R{target;interface;runner;filters;[w];fallback;constructor(e,t,r,n){var s;let b;(0,o.assertArgument)("string"==typeof e||(0,i.isAddressable)(e),"invalid value for Contract target","target",e),null==r&&(r=null);let v=(0,a.Interface).from(t);(0,o.defineProperties)(this,{target:e,runner:r,interface:v}),Object.defineProperty(this,w,{value:{}});let A=null,_=null;if(n){let e=m(r);_=new c.ContractTransactionResponse(this.interface,e,n)}let T=new Map;if("string"==typeof e){if((0,o.isHexString)(e))A=e,b=Promise.resolve(e);else{let t=g(r,"resolveName");if(!u(t))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});b=t.resolveName(e).then(t=>{if(null==t)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return E(this).addr=t,t})}}else b=e.getAddress().then(e=>{if(null==e)throw Error("TODO");return E(this).addr=e,e});s={addrPromise:b,addr:A,deployTx:_,subs:T},x.set(this[w],s);let I=new Proxy({},{get:(e,t,r)=>{if("symbol"==typeof t||k.indexOf(t)>=0)return Reflect.get(e,t,r);try{return this.getEvent(t)}catch(e){if(!(0,o.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>k.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,o.defineProperties)(this,{filters:I}),(0,o.defineProperties)(this,{fallback:v.receive||v.fallback?function(e){let t=async function(t){let r=await y(t,["data"]);r.to=await e.getAddress(),r.from&&(r.from=await (0,i.resolveAddress)(r.from,p(e.runner)));let n=e.interface,a=(0,o.getBigInt)(r.value||f,"overrides.value")===f,s="0x"===(r.data||"0x");!n.fallback||n.fallback.payable||!n.receive||s||a||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,o.assertArgument)(n.fallback||s,"cannot send data to receive-only contract","overrides.data",r.data);let c=n.receive||n.fallback&&n.fallback.payable;return(0,o.assertArgument)(c||a,"cannot send value to non-payable fallback","overrides.value",r.value),(0,o.assertArgument)(n.fallback||s,"cannot send data to receive-only contract","overrides.data",r.data),r},r=async function(r){let n=g(e.runner,"call");(0,o.assert)(d(n),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let a=await t(r);try{return await n.call(a)}catch(t){if((0,o.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,a);throw t}},n=async function(r){let n=e.runner;(0,o.assert)(h(n),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let a=await n.sendTransaction(await t(r)),i=m(e.runner);return new c.ContractTransactionResponse(e.interface,i,a)},a=async function(r){let n=g(e.runner,"estimateGas");return(0,o.assert)(l(n),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await n.estimateGas(await t(r))},s=async e=>await n(e);return(0,o.defineProperties)(s,{_contract:e,estimateGas:a,populateTransaction:t,send:n,staticCall:r}),s}(this):null}),new Proxy(this,{get:(e,t,r)=>{if("symbol"==typeof t||t in e||k.indexOf(t)>=0)return Reflect.get(e,t,r);try{return e.getFunction(t)}catch(e){if(!(0,o.isError)(e,"INVALID_ARGUMENT")||"key"!==e.argument)throw e}},has:(e,t)=>"symbol"==typeof t||t in e||k.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new R(this.target,this.interface,e)}attach(e){return new R(e,this.interface,this.runner)}async getAddress(){return await E(this).addrPromise}async getDeployedCode(){let e=m(this.runner);(0,o.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});let t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){let e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;let t=m(this.runner);return(0,o.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((e,r)=>{let n=async()=>{try{let r=await this.getDeployedCode();if(null!=r)return e(this);t.once("block",n)}catch(e){r(e)}};n()})}deploymentTransaction(){return E(this).deployTx}getFunction(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getFunction(t,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=async function(...t){let n=r(...t),a={};if(n.inputs.length+1===t.length&&(a=await y(t.pop())).from&&(a.from=await (0,i.resolveAddress)(a.from,p(e.runner))),n.inputs.length!==t.length)throw Error("internal error: fragment inputs doesn't match arguments; should not happen");let s=await v(e.runner,n.inputs,t);return Object.assign({},a,await (0,o.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(n,s)}))},a=async function(...e){let t=await u(...e);return 1===t.length?t[0]:t},s=async function(...t){let r=e.runner;(0,o.assert)(h(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let a=await r.sendTransaction(await n(...t)),i=m(e.runner);return new c.ContractTransactionResponse(e.interface,i,a)},f=async function(...t){let r=g(e.runner,"estimateGas");return(0,o.assert)(l(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await n(...t))},u=async function(...t){let a=g(e.runner,"call");(0,o.assert)(d(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});let i=await n(...t),s="0x";try{s=await a.call(i)}catch(t){if((0,o.isCallException)(t)&&t.data)throw e.interface.makeError(t.data,i);throw t}let c=r(...t);return e.interface.decodeFunctionResult(c,s)},b=async(...e)=>r(...e).constant?await a(...e):await s(...e);return(0,o.defineProperties)(b,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:r,estimateGas:f,populateTransaction:n,send:s,staticCall:a,staticCallResult:u}),Object.defineProperty(b,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getFunction(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),b}(this,e)}getEvent(e){return"string"!=typeof e&&(e=e.format()),function(e,t){let r=function(...r){let n=e.interface.getEvent(t,r);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),n},n=function(...t){return new b(e,r(...t),t)};return(0,o.defineProperties)(n,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{let r=e.interface.getEvent(t);return(0,o.assert)(r,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),r}}),n}(this,e)}async queryTransaction(e){throw Error("@TODO")}async queryFilter(e,t,r){null==t&&(t=0),null==r&&(r="latest");let{addr:n,addrPromise:a}=E(this),i=n||await a,{fragment:f,topics:d}=await A(this,e),l={address:i,topics:d,fromBlock:t,toBlock:r},u=m(this.runner);return(0,o.assert)(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(e=>{let t=f;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(e){}if(t)try{return new c.EventLog(e,this.interface,t)}catch(t){return new c.UndecodedEventLog(e,t)}return new s.Log(e,u)})}async on(e,t){let r=await T(this,"on",e);return r.listeners.push({listener:t,once:!1}),r.start(),this}async once(e,t){let r=await T(this,"once",e);return r.listeners.push({listener:t,once:!0}),r.start(),this}async emit(e,...t){return await C(this,e,t,null)}async listenerCount(e){if(e){let t=await _(this,e);return t?t.listeners.length:0}let{subs:t}=E(this),r=0;for(let{listeners:e}of t.values())r+=e.length;return r}async listeners(e){if(e){let t=await _(this,e);return t?t.listeners.map(({listener:e})=>e):[]}let{subs:t}=E(this),r=[];for(let{listeners:e}of t.values())r=r.concat(e.map(({listener:e})=>e));return r}async off(e,t){let r=await _(this,e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return(null==t||0===r.listeners.length)&&(r.stop(),E(this).subs.delete(r.tag)),this}async removeAllListeners(e){if(e){let t=await _(this,e);if(!t)return this;t.stop(),E(this).subs.delete(t.tag)}else{let{subs:e}=E(this);for(let{tag:t,stop:r}of e.values())r(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends R{constructor(t,r=null){super(t,e,r)}}}static from(e,t,r){return null==r&&(r=null),new this(e,t,r)}}function M(){return R}class B extends M(){}},{"../abi/index.js":"4ccGG","../address/index.js":"8s6vX","../providers/provider.js":"4vLmk","../utils/index.js":"aoZEY","./wrappers.js":"g2IRK","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"4vLmk":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FeeData",()=>f),n.export(r,"copyRequest",()=>d),n.export(r,"Block",()=>l),n.export(r,"Log",()=>u),n.export(r,"TransactionReceipt",()=>h),n.export(r,"TransactionResponse",()=>p);var a=e("../utils/index.js"),i=e("../transaction/index.js");let s=BigInt(0);function o(e){return null==e?null:e}function c(e){return null==e?null:e.toString()}class f{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,r){(0,a.defineProperties)(this,{gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(r)})}toJSON(){let{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:r}=this;return{_type:"FeeData",gasPrice:c(e),maxFeePerGas:c(t),maxPriorityFeePerGas:c(r)}}}function d(e){let t={};for(let r of(e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,a.hexlify)(e.data)),"chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/)))r in e&&null!=e[r]&&(t[r]=(0,a.getBigInt)(e[r],`request.${r}`));for(let r of"type,nonce".split(/,/))r in e&&null!=e[r]&&(t[r]=(0,a.getNumber)(e[r],`request.${r}`));return e.accessList&&(t.accessList=(0,i.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map(e=>(0,a.isBytesLike)(e)?(0,a.hexlify)(e):Object.assign({},e))),t}class l{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#eM;constructor(e,t){this.#eM=e.transactions.map(e=>"string"!=typeof e?new p(e,t):e),(0,a.defineProperties)(this,{provider:t,hash:o(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:o(e.prevRandao),extraData:e.extraData,baseFeePerGas:o(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#eM.map(e=>"string"==typeof e?e:e.hash)}get prefetchedTransactions(){let e=this.#eM.slice();return 0===e.length?[]:((0,a.assert)("object"==typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){let{baseFeePerGas:e,difficulty:t,extraData:r,gasLimit:n,gasUsed:a,hash:i,miner:s,prevRandao:o,nonce:f,number:d,parentHash:l,parentBeaconBlockRoot:u,stateRoot:h,receiptsRoot:p,timestamp:b,transactions:g}=this;return{_type:"Block",baseFeePerGas:c(e),difficulty:c(t),extraData:r,gasLimit:c(n),gasUsed:c(a),blobGasUsed:c(this.blobGasUsed),excessBlobGas:c(this.excessBlobGas),hash:i,miner:s,prevRandao:o,nonce:f,number:d,parentHash:l,timestamp:b,parentBeaconBlockRoot:u,stateRoot:h,receiptsRoot:p,transactions:g}}[Symbol.iterator](){let e=0,t=this.transactions;return{next:()=>enew u(e,t)));let r=s;null!=e.effectiveGasPrice?r=e.effectiveGasPrice:null!=e.gasPrice&&(r=e.gasPrice),(0,a.defineProperties)(this,{provider:t,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,blobGasUsed:e.blobGasUsed,gasPrice:r,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#eB}toJSON(){let{to:e,from:t,contractAddress:r,hash:n,index:a,blockHash:i,blockNumber:s,logsBloom:o,logs:f,status:d,root:l}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:s,contractAddress:r,cumulativeGasUsed:c(this.cumulativeGasUsed),from:t,gasPrice:c(this.gasPrice),blobGasUsed:c(this.blobGasUsed),blobGasPrice:c(this.blobGasPrice),gasUsed:c(this.gasUsed),hash:n,index:a,logs:f,logsBloom:o,root:l,status:d,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(c)return null;let{blockNumber:e,nonce:t}=await (0,a.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t{if(null==e||0!==e.status)return e;(0,a.assert)(!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})},l=await this.provider.getTransactionReceipt(this.hash);if(0===r)return d(l);if(l){if(await l.confirmations()>=r)return d(l)}else if(await f(),0===r)return null;let u=new Promise((e,t)=>{let s=[],o=()=>{s.forEach(e=>e())};if(s.push(()=>{c=!0}),n>0){let e=setTimeout(()=>{o(),t((0,a.makeError)("wait for transaction timeout","TIMEOUT"))},n);s.push(()=>{clearTimeout(e)})}let l=async n=>{if(await n.confirmations()>=r){o();try{e(d(n))}catch(e){t(e)}}};if(s.push(()=>{this.provider.off(this.hash,l)}),this.provider.on(this.hash,l),i>=0){let e=async()=>{try{await f()}catch(e){if((0,a.isError)(e,"TRANSACTION_REPLACED")){o(),t(e);return}}c||this.provider.once("block",e)};s.push(()=>{this.provider.off("block",e)}),this.provider.once("block",e)}});return await u}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,a.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),g(this)}reorderedEvent(e){return(0,a.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,a.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),b(this,e)}replaceableTransaction(e){(0,a.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);let t=new p(this,this.provider);return t.#eP=e,t}}function b(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function g(e){return{orphan:"drop-transaction",tx:e}}},{"../utils/index.js":"aoZEY","../transaction/index.js":"6XiG7","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],g2IRK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EventLog",()=>s),n.export(r,"UndecodedEventLog",()=>o),n.export(r,"ContractTransactionReceipt",()=>c),n.export(r,"ContractTransactionResponse",()=>f),n.export(r,"ContractUnknownEventPayload",()=>d),n.export(r,"ContractEventPayload",()=>l);var a=e("../providers/provider.js"),i=e("../utils/index.js");class s extends a.Log{interface;fragment;args;constructor(e,t,r){super(e,e.provider);let n=t.decodeEventLog(r,e.data,e.topics);(0,i.defineProperties)(this,{args:n,fragment:r,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class o extends a.Log{error;constructor(e,t){super(e,e.provider),(0,i.defineProperties)(this,{error:t})}}class c extends a.TransactionReceipt{#eO;constructor(e,t,r){super(r,t),this.#eO=e}get logs(){return super.logs.map(e=>{let t=e.topics.length?this.#eO.getEvent(e.topics[0]):null;if(t)try{return new s(e,this.#eO,t)}catch(t){return new o(e,t)}return e})}}class f extends a.TransactionResponse{#eO;constructor(e,t,r){super(r,t),this.#eO=e}async wait(e,t){let r=await super.wait(e,t);return null==r?null:new c(this.#eO,this.provider,r)}}class d extends i.EventPayload{log;constructor(e,t,r,n){super(e,t,r),(0,i.defineProperties)(this,{log:n})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class l extends d{constructor(e,t,r,n,a){super(e,t,r,new s(a,e.interface,n));let o=e.interface.decodeEventLog(n,this.log.data,this.log.topics);(0,i.defineProperties)(this,{args:o,fragment:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},{"../providers/provider.js":"4vLmk","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bEFFY:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ContractFactory",()=>c);var a=e("../abi/index.js"),i=e("../address/index.js"),s=e("../utils/index.js"),o=e("./contract.js");class c{interface;bytecode;runner;constructor(e,t,r){let n=(0,a.Interface).from(e);t instanceof Uint8Array||("object"==typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,s.hexlify)((0,s.getBytes)(t)),(0,s.defineProperties)(this,{bytecode:t,interface:n,runner:r||null})}attach(e){return new o.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(...e){let t={},r=this.interface.deploy;if(r.inputs.length+1===e.length&&(t=await (0,o.copyOverrides)(e.pop())),r.inputs.length!==e.length)throw Error("incorrect number of arguments to constructor");let n=await (0,o.resolveArgs)(this.runner,r.inputs,e);return Object.assign({},t,{data:(0,s.concat)([this.bytecode,this.interface.encodeDeploy(n)])})}async deploy(...e){let t=await this.getDeployTransaction(...e);(0,s.assert)(this.runner&&"function"==typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});let r=await this.runner.sendTransaction(t),n=(0,i.getCreateAddress)(r);return new o.BaseContract(n,this.interface,this.runner,r)}connect(e){return new c(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,s.assertArgument)(null!=e,"bad compiler output","output",e),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,n="";return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}}},{"../abi/index.js":"4ccGG","../address/index.js":"8s6vX","../utils/index.js":"aoZEY","./contract.js":"klKVF","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"9o4Hd":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbstractProvider",()=>a.AbstractProvider),n.export(r,"UnmanagedSubscriber",()=>a.UnmanagedSubscriber),n.export(r,"AbstractSigner",()=>i.AbstractSigner),n.export(r,"VoidSigner",()=>i.VoidSigner),n.export(r,"showThrottleMessage",()=>s.showThrottleMessage),n.export(r,"getDefaultProvider",()=>o.getDefaultProvider),n.export(r,"EnsResolver",()=>c.EnsResolver),n.export(r,"MulticoinProviderPlugin",()=>c.MulticoinProviderPlugin),n.export(r,"Network",()=>f.Network),n.export(r,"NonceManager",()=>d.NonceManager),n.export(r,"NetworkPlugin",()=>l.NetworkPlugin),n.export(r,"GasCostPlugin",()=>l.GasCostPlugin),n.export(r,"EnsPlugin",()=>l.EnsPlugin),n.export(r,"FeeDataNetworkPlugin",()=>l.FeeDataNetworkPlugin),n.export(r,"FetchUrlFeeDataNetworkPlugin",()=>l.FetchUrlFeeDataNetworkPlugin),n.export(r,"Block",()=>u.Block),n.export(r,"FeeData",()=>u.FeeData),n.export(r,"Log",()=>u.Log),n.export(r,"TransactionReceipt",()=>u.TransactionReceipt),n.export(r,"TransactionResponse",()=>u.TransactionResponse),n.export(r,"copyRequest",()=>u.copyRequest),n.export(r,"FallbackProvider",()=>h.FallbackProvider),n.export(r,"JsonRpcApiProvider",()=>p.JsonRpcApiProvider),n.export(r,"JsonRpcProvider",()=>p.JsonRpcProvider),n.export(r,"JsonRpcSigner",()=>p.JsonRpcSigner),n.export(r,"BrowserProvider",()=>b.BrowserProvider),n.export(r,"AlchemyProvider",()=>g.AlchemyProvider),n.export(r,"AnkrProvider",()=>m.AnkrProvider),n.export(r,"CloudflareProvider",()=>y.CloudflareProvider),n.export(r,"ChainstackProvider",()=>v.ChainstackProvider),n.export(r,"EtherscanProvider",()=>w.EtherscanProvider),n.export(r,"EtherscanPlugin",()=>w.EtherscanPlugin),n.export(r,"InfuraProvider",()=>x.InfuraProvider),n.export(r,"InfuraWebSocketProvider",()=>x.InfuraWebSocketProvider),n.export(r,"PocketProvider",()=>E.PocketProvider),n.export(r,"QuickNodeProvider",()=>A.QuickNodeProvider),n.export(r,"SocketProvider",()=>T.SocketProvider),n.export(r,"WebSocketProvider",()=>I.WebSocketProvider),n.export(r,"SocketSubscriber",()=>T.SocketSubscriber),n.export(r,"SocketBlockSubscriber",()=>T.SocketBlockSubscriber),n.export(r,"SocketPendingSubscriber",()=>T.SocketPendingSubscriber),n.export(r,"SocketEventSubscriber",()=>T.SocketEventSubscriber),n.export(r,"IpcSocketProvider",()=>_.IpcSocketProvider);var a=e("./abstract-provider.js"),i=e("./abstract-signer.js"),s=e("./community.js"),o=e("./default-provider.js"),c=e("./ens-resolver.js"),f=e("./network.js"),d=e("./signer-noncemanager.js"),l=e("./plugins-network.js"),u=e("./provider.js"),h=e("./provider-fallback.js"),p=e("./provider-jsonrpc.js"),b=e("./provider-browser.js"),g=e("./provider-alchemy.js"),m=e("./provider-ankr.js"),y=e("./provider-cloudflare.js"),v=e("./provider-chainstack.js"),w=e("./provider-etherscan.js"),x=e("./provider-infura.js"),E=e("./provider-pocket.js"),A=e("./provider-quicknode.js"),_=e("./provider-ipcsocket.js"),T=e("./provider-socket.js"),I=e("./provider-websocket.js")},{"./abstract-provider.js":!1,"./abstract-signer.js":!1,"./community.js":!1,"./default-provider.js":!1,"./ens-resolver.js":!1,"./network.js":!1,"./signer-noncemanager.js":!1,"./plugins-network.js":!1,"./provider.js":!1,"./provider-fallback.js":!1,"./provider-jsonrpc.js":"bxwMu","./provider-browser.js":"IJDGj","./provider-alchemy.js":!1,"./provider-ankr.js":!1,"./provider-cloudflare.js":!1,"./provider-chainstack.js":!1,"./provider-etherscan.js":!1,"./provider-infura.js":!1,"./provider-pocket.js":!1,"./provider-quicknode.js":!1,"./provider-ipcsocket.js":!1,"./provider-socket.js":!1,"./provider-websocket.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],lcPZn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"UnmanagedSubscriber",()=>y),n.export(r,"AbstractProvider",()=>A);var a=e("../address/index.js"),i=e("../constants/index.js"),s=e("../contract/index.js"),o=e("../hash/index.js"),c=e("../transaction/index.js"),f=e("../utils/index.js"),d=e("./ens-resolver.js"),l=e("./format.js"),u=e("./network.js"),h=e("./provider.js"),p=e("./subscriber-polling.js");let b=BigInt(2);function g(e){return e&&"function"==typeof e.then}function m(e,t){return e+":"+JSON.stringify(t,(e,t)=>{if(null==t)return"null";if("bigint"==typeof t)return`bigint:${t.toString()}`;if("string"==typeof t)return t.toLowerCase();if("object"==typeof t&&!Array.isArray(t)){let e=Object.keys(t);return e.sort(),e.reduce((e,r)=>(e[r]=t[r],e),{})}return t})}class y{name;constructor(e){(0,f.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function v(e){return(e=Array.from(new Set(e).values())).sort(),e}async function w(e,t){if(null==e)throw Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"==typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,f.isHexString)(e,32)){let t=e.toLowerCase();return{type:"transaction",tag:m("tx",{hash:t}),hash:t}}if(e.orphan){let t=e;return{type:"orphan",tag:m("orphan",t),filter:JSON.parse(JSON.stringify(t))}}if(e.address||e.topics){let r=e,n={topics:(r.topics||[]).map(e=>null==e?null:Array.isArray(e)?v(e.map(e=>e.toLowerCase())):e.toLowerCase())};if(r.address){let e=[],i=[],s=r=>{(0,f.isHexString)(r)?e.push(r):i.push((async()=>{e.push(await (0,a.resolveAddress)(r,t))})())};Array.isArray(r.address)?r.address.forEach(s):s(r.address),i.length&&await Promise.all(i),n.address=v(e.map(e=>e.toLowerCase()))}return{filter:n,tag:m("event",n),type:"event"}}(0,f.assertArgument)(!1,"unknown ProviderEvent","event",e)}function x(){return new Date().getTime()}let E={cacheTimeout:250,pollingInterval:4e3};class A{#ej;#eN;#eU;#eL;#eD;#eF;#eH;#eV;#eq;#ez;#eG;#ee;constructor(e,t){if(this.#ee=Object.assign({},E,t||{}),"any"===e)this.#eF=!0,this.#eD=null;else if(e){let t=(0,u.Network).from(e);this.#eF=!1,this.#eD=Promise.resolve(t),setTimeout(()=>{this.emit("network",t,null)},0)}else this.#eF=!1,this.#eD=null;this.#eV=-1,this.#eH=new Map,this.#ej=new Map,this.#eN=new Map,this.#eU=null,this.#eL=!1,this.#eq=1,this.#ez=new Map,this.#eG=!1}get pollingInterval(){return this.#ee.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#eN.values())}attachPlugin(e){if(this.#eN.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eN.set(e.name,e.connect(this)),this}getPlugin(e){return this.#eN.get(e)||null}get disableCcipRead(){return this.#eG}set disableCcipRead(e){this.#eG=!!e}async #eK(e){let t=this.#ee.cacheTimeout;if(t<0)return await this._perform(e);let r=m(e.method,e),n=this.#eH.get(r);return n||(n=this._perform(e),this.#eH.set(r,n),setTimeout(()=>{this.#eH.get(r)===n&&this.#eH.delete(r)},t)),await n}async ccipReadFetch(e,t,r){if(this.disableCcipRead||0===r.length||null==e.to)return null;let n=e.to.toLowerCase(),a=t.toLowerCase(),i=[];for(let t=0;t=500,`response not found during CCIP fetch: ${l}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:o,errorMessage:l}}),i.push(l)}(0,f.assert)(!1,`error encountered during CCIP fetch: ${i.map(e=>JSON.stringify(e)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:r,errorMessages:i}})}_wrapBlock(e,t){return new h.Block((0,l.formatBlock)(e),this)}_wrapLog(e,t){return new h.Log((0,l.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new h.TransactionReceipt((0,l.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new h.TransactionResponse((0,l.formatTransactionResponse)(e),this)}_detectNetwork(){(0,f.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,f.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){let e=(0,f.getNumber)(await this.#eK({method:"getBlockNumber"}),"%response");return this.#eV>=0&&(this.#eV=e),e}_getAddress(e){return(0,a.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,f.isHexString)(e)?(0,f.isHexString)(e,32)?e:(0,f.toQuantity)(e):("bigint"==typeof e&&(e=(0,f.getNumber)(e,"blockTag")),"number"==typeof e)?e>=0?(0,f.toQuantity)(e):this.#eV>=0?(0,f.toQuantity)(this.#eV+e):this.getBlockNumber().then(t=>(0,f.toQuantity)(t+e)):void(0,f.assertArgument)(!1,"invalid blockTag","blockTag",e)}_getFilter(e){let t,r;let n=(e.topics||[]).map(e=>null==e?null:Array.isArray(e)?v(e.map(e=>e.toLowerCase())):e.toLowerCase()),a="blockHash"in e?e.blockHash:void 0,i=(e,t,r)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(a&&(null!=t||null!=r))throw Error("invalid filter");let s={};return i&&(s.address=i),n.length&&(s.topics=n),t&&(s.fromBlock=t),r&&(s.toBlock=r),a&&(s.blockHash=a),s},s=[];if(e.address){if(Array.isArray(e.address))for(let t of e.address)s.push(this._getAddress(t));else s.push(this._getAddress(e.address))}return"fromBlock"in e&&(t=this._getBlockTag(e.fromBlock)),("toBlock"in e&&(r=this._getBlockTag(e.toBlock)),s.filter(e=>"string"!=typeof e).length||null!=t&&"string"!=typeof t||null!=r&&"string"!=typeof r)?Promise.all([Promise.all(s),t,r]).then(e=>i(e[0],e[1],e[2])):i(s,t,r)}_getTransactionRequest(e){let t=(0,h.copyRequest)(e),r=[];if(["to","from"].forEach(e=>{if(null==t[e])return;let n=(0,a.resolveAddress)(t[e],this);g(n)?r.push(async function(){t[e]=await n}()):t[e]=n}),null!=t.blockTag){let e=this._getBlockTag(t.blockTag);g(e)?r.push(async function(){t.blockTag=await e}()):t.blockTag=e}return r.length?async function(){return await Promise.all(r),t}():t}async getNetwork(){if(null==this.#eD){let e=(async()=>{try{let e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#eD===e&&(this.#eD=null),t}})();return this.#eD=e,(await e).clone()}let e=this.#eD,[t,r]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==r.chainId&&(this.#eF?(this.emit("network",r,t),this.#eD===e&&(this.#eD=Promise.resolve(r))):(0,f.assert)(!1,`network changed: ${t.chainId} => ${r.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){let e=await this.getNetwork(),t=async()=>{let{_block:t,gasPrice:r,priorityFee:n}=await (0,f.resolveProperties)({_block:this.#eW("latest",!1),gasPrice:(async()=>{try{let e=await this.#eK({method:"getGasPrice"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{let e=await this.#eK({method:"getPriorityFee"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})()}),a=null,i=null,s=this._wrapBlock(t,e);return s&&s.baseFeePerGas&&(i=null!=n?n:BigInt("1000000000"),a=s.baseFeePerGas*b+i),new h.FeeData(r,a,i)},r=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(r){let e=new f.FetchRequest(r.url),n=await r.processFunc(t,this,e);return new h.FeeData(n.gasPrice,n.maxFeePerGas,n.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return g(t)&&(t=await t),(0,f.getBigInt)(await this.#eK({method:"estimateGas",transaction:t}),"%response")}async #e$(e,t,r){(0,f.assert)(r<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});let n=(0,h.copyRequest)(e);try{return(0,f.hexlify)(await this._perform({method:"call",transaction:n,blockTag:t}))}catch(e){if(!this.disableCcipRead&&(0,f.isCallException)(e)&&e.data&&r>=0&&"latest"===t&&null!=n.to&&"0x556f1830"===(0,f.dataSlice)(e.data,0,4)){let i;let s=e.data,o=await (0,a.resolveAddress)(n.to,this);try{i=function(e){let t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,f.assert)((0,f.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});let r=(0,f.dataSlice)(e,0,32);(0,f.assert)((0,f.dataSlice)(r,0,12)===(0,f.dataSlice)(S,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,f.dataSlice)(r,12);try{let r=[],n=(0,f.getNumber)((0,f.dataSlice)(e,32,64)),a=(0,f.getNumber)((0,f.dataSlice)(e,n,n+32)),i=(0,f.dataSlice)(e,n+32);for(let e=0;et[e]),t}((0,f.dataSlice)(e.data,4))}catch(e){(0,f.assert)(!1,e.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:n,info:{data:s}})}(0,f.assert)(i.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:s,reason:"OffchainLookup",transaction:n,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:i.errorArgs}});let c=await this.ccipReadFetch(n,i.calldata,i.urls);(0,f.assert)(null!=c,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:n,info:{data:e.data,errorArgs:i.errorArgs}});let d={to:o,data:(0,f.concat)([i.selector,function(e){let t=[],r=0;for(let n=0;nthis._wrapLog(e,r))}_getProvider(e){(0,f.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await (0,d.EnsResolver).fromName(this,e)}async getAvatar(e){let t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){let t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,a.getAddress)(e);let t=(0,o.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{let r=await (0,d.EnsResolver).getEnsAddress(this),n=new s.Contract(r,["function resolver(bytes32) view returns (address)"],this),a=await n.resolver(t);if(null==a||a===i.ZeroAddress)return null;let o=new s.Contract(a,["function name(bytes32) view returns (string)"],this),c=await o.name(t);if(await this.resolveName(c)!==e)return null;return c}catch(e){if((0,f.isError)(e,"BAD_DATA")&&"0x"===e.value||(0,f.isError)(e,"CALL_EXCEPTION"))return null;throw e}return null}async waitForTransaction(e,t,r){let n=null!=t?t:1;return 0===n?this.getTransactionReceipt(e):new Promise(async(t,a)=>{let i=null,s=async r=>{try{let a=await this.getTransactionReceipt(e);if(null!=a&&r-a.blockNumber+1>=n){t(a),i&&(clearTimeout(i),i=null);return}}catch(e){console.log("EEE",e)}this.once("block",s)};null!=r&&(i=setTimeout(()=>{null!=i&&(i=null,this.off("block",s),a((0,f.makeError)("timeout","TIMEOUT",{reason:"timeout"})))},r)),s(await this.getBlockNumber())})}async waitForBlock(e){(0,f.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){let t=this.#ez.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#ez.delete(e))}_setTimeout(e,t){null==t&&(t=0);let r=this.#eq++,n=()=>{this.#ez.delete(r),e()};if(this.paused)this.#ez.set(r,{timer:null,func:n,time:t});else{let e=setTimeout(n,t);this.#ez.set(r,{timer:e,func:n,time:x()})}return r}_forEachSubscriber(e){for(let t of this.#ej.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new y(e.type);case"block":{let e=new p.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,e.type);case"event":return new p.PollingEventSubscriber(this,e.filter);case"transaction":return new p.PollingTransactionSubscriber(this,e.hash);case"orphan":return new p.PollingOrphanSubscriber(this,e.filter)}throw Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(let r of this.#ej.values())if(r.subscriber===e){r.started&&r.subscriber.stop(),r.subscriber=t,r.started&&t.start(),null!=this.#eU&&t.pause(this.#eU);break}}async #eZ(e,t){let r=await w(e,this);return"event"===r.type&&t&&t.length>0&&!0===t[0].removed&&(r=await w({orphan:"drop-log",log:t[0]},this)),this.#ej.get(r.tag)||null}async #eX(e){let t=await w(e,this),r=t.tag,n=this.#ej.get(r);return!n&&(n={subscriber:this._getSubscriber(t),tag:r,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#ej.set(r,n)),n}async on(e,t){let r=await this.#eX(e);return r.listeners.push({listener:t,once:!1}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eU&&r.subscriber.pause(this.#eU)),this}async once(e,t){let r=await this.#eX(e);return r.listeners.push({listener:t,once:!0}),r.started||(r.subscriber.start(),r.started=!0,null!=this.#eU&&r.subscriber.pause(this.#eU)),this}async emit(e,...t){let r=await this.#eZ(e,t);if(!r||0===r.listeners.length)return!1;let n=r.listeners.length;return r.listeners=r.listeners.filter(({listener:r,once:n})=>{let a=new f.EventPayload(this,n?null:r,e);try{r.call(this,...t,a)}catch(e){}return!n}),0===r.listeners.length&&(r.started&&r.subscriber.stop(),this.#ej.delete(r.tag)),n>0}async listenerCount(e){if(e){let t=await this.#eZ(e);return t?t.listeners.length:0}let t=0;for(let{listeners:e}of this.#ej.values())t+=e.length;return t}async listeners(e){if(e){let t=await this.#eZ(e);return t?t.listeners.map(({listener:e})=>e):[]}let t=[];for(let{listeners:e}of this.#ej.values())t=t.concat(e.map(({listener:e})=>e));return t}async off(e,t){let r=await this.#eZ(e);if(!r)return this;if(t){let e=r.listeners.map(({listener:e})=>e).indexOf(t);e>=0&&r.listeners.splice(e,1)}return t&&0!==r.listeners.length||(r.started&&r.subscriber.stop(),this.#ej.delete(r.tag)),this}async removeAllListeners(e){if(e){let{tag:t,started:r,subscriber:n}=await this.#eX(e);r&&n.stop(),this.#ej.delete(t)}else for(let[e,{started:t,subscriber:r}]of this.#ej)t&&r.stop(),this.#ej.delete(e);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#eL}destroy(){for(let e of(this.removeAllListeners(),this.#ez.keys()))this._clearTimeout(e);this.#eL=!0}get paused(){return null!=this.#eU}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#eV=-1,null!=this.#eU){if(!!e==this.#eU)return;(0,f.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}for(let t of(this._forEachSubscriber(t=>t.pause(e)),this.#eU=!!e,this.#ez.values()))t.timer&&clearTimeout(t.timer),t.time=x()-t.time}resume(){if(null!=this.#eU)for(let e of(this._forEachSubscriber(e=>e.resume()),this.#eU=null,this.#ez.values())){let t=e.time;t<0&&(t=0),e.time=x(),setTimeout(e.func,t)}}}function _(e,t){if("0x"===e)return null;try{let r=(0,f.getNumber)((0,f.dataSlice)(e,t,t+32)),n=(0,f.getNumber)((0,f.dataSlice)(e,r,r+32));return(0,f.dataSlice)(e,r+32,r+32+n)}catch(e){}return null}function T(e){let t=(0,f.toBeArray)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}let I=new Uint8Array([]),S="0x0000000000000000000000000000000000000000000000000000000000000000"},{"../address/index.js":"8s6vX","../constants/index.js":"2Shkc","../contract/index.js":"h4Dfe","../hash/index.js":"1Ty7P","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./ens-resolver.js":"8aVO7","./format.js":"gkaWh","./network.js":"eVSPi","./provider.js":"4vLmk","./subscriber-polling.js":"8vA68","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8aVO7":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MulticoinProviderPlugin",()=>d),n.export(r,"BasicMulticoinProviderPlugin",()=>l),n.export(r,"EnsResolver",()=>p);var a=e("../address/index.js"),i=e("../constants/index.js"),s=e("../contract/index.js"),o=e("../hash/index.js"),c=e("../utils/index.js");function f(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,c.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class d{name;constructor(e){(0,c.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw Error("unsupported coin")}async decodeAddress(e,t){throw Error("unsupported coin")}}class l extends d{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}}let u=RegExp("^(ipfs)://(.*)$","i"),h=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),u,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class p{provider;address;name;#eY;#e0;constructor(e,t,r){(0,c.defineProperties)(this,{provider:e,address:t,name:r}),this.#eY=null,this.#e0=new s.Contract(t,["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 null==this.#eY&&(this.#eY=(async()=>{try{return await this.#e0.supportsInterface("0x9061b923")}catch(e){if((0,c.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#eY=null,e}})()),await this.#eY}async #e1(e,t){t=(t||[]).slice();let r=this.#e0.interface;t.unshift((0,o.namehash)(this.name));let n=null;await this.supportsWildcard()&&(n=r.getFunction(e),(0,c.assert)(n,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,o.dnsEncode)(this.name,255),r.encodeFunctionData(n,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{let a=await this.#e0[e](...t);if(n)return r.decodeFunctionResult(n,a)[0];return a}catch(e){if(!(0,c.isError)(e,"CALL_EXCEPTION"))throw e}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{let e=await this.#e1("addr(bytes32)");if(null==e||e===i.ZeroAddress)return null;return e}catch(e){if((0,c.isError)(e,"CALL_EXCEPTION"))return null;throw e}if(e>=0&&e<0x80000000){let t=e+0x80000000,r=await this.#e1("addr(bytes32,uint)",[t]);if((0,c.isHexString)(r,20))return(0,a.getAddress)(r)}let t=null;for(let r of this.provider.plugins)if(r instanceof d&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;let r=await this.#e1("addr(bytes32,uint)",[e]);if(null==r||"0x"===r)return null;let n=await t.decodeAddress(e,r);if(null!=n)return n;(0,c.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:r}})}async getText(e){let t=await this.#e1("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){let e=await this.#e1("contenthash(bytes32)");if(null==e||"0x"===e)return null;let t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){let e="e3010170"===t[1]?"ipfs":"ipns",r=parseInt(t[4],16);if(t[5].length===2*r)return`${e}://${(0,c.encodeBase58)("0x"+t[2])}`}let r=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(r&&64===r[1].length)return`bzz://${r[1]}`;(0,c.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){let e=[{type:"name",value:this.name}];try{let t=await this.getText("avatar");if(null==t)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:t});for(let r=0;rf),n.export(r,"arrayOf",()=>d),n.export(r,"object",()=>l),n.export(r,"formatBoolean",()=>u),n.export(r,"formatData",()=>h),n.export(r,"formatHash",()=>p),n.export(r,"formatUint256",()=>b),n.export(r,"formatLog",()=>m),n.export(r,"formatBlock",()=>v),n.export(r,"formatReceiptLog",()=>x),n.export(r,"formatTransactionReceipt",()=>A),n.export(r,"formatTransactionResponse",()=>_);var a=e("../address/index.js"),i=e("../crypto/index.js"),s=e("../transaction/index.js"),o=e("../utils/index.js");let c=BigInt(0);function f(e,t){return function(r){return null==r?t:e(r)}}function d(e,t){return r=>{if(t&&null==r)return null;if(!Array.isArray(r))throw Error("not an array");return r.map(t=>e(t))}}function l(e,t){return r=>{let n={};for(let a in e){let i=a;if(t&&a in t&&!(i in r)){for(let e of t[a])if(e in r){i=e;break}}try{let t=e[a](r[i]);void 0!==t&&(n[a]=t)}catch(t){let e=t instanceof Error?t.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${a} (${e})`,"BAD_DATA",{value:r})}}return n}}function u(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function h(e){return(0,o.assertArgument)((0,o.isHexString)(e,!0),"invalid data","value",e),e}function p(e){return(0,o.assertArgument)((0,o.isHexString)(e,32),"invalid hash","value",e),e}function b(e){if(!(0,o.isHexString)(e))throw Error("invalid uint256");return(0,o.zeroPadValue)(e,32)}let g=l({address:a.getAddress,blockHash:p,blockNumber:o.getNumber,data:h,index:o.getNumber,removed:f(u,!1),topics:d(p),transactionHash:p,transactionIndex:o.getNumber},{index:["logIndex"]});function m(e){return g(e)}let y=l({hash:f(p),parentHash:p,parentBeaconBlockRoot:f(p,null),number:o.getNumber,timestamp:o.getNumber,nonce:f(h),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:f(p,null),receiptsRoot:f(p,null),blobGasUsed:f(o.getBigInt,null),excessBlobGas:f(o.getBigInt,null),miner:f(a.getAddress),prevRandao:f(p,null),extraData:h,baseFeePerGas:f(o.getBigInt)},{prevRandao:["mixHash"]});function v(e){let t=y(e);return t.transactions=e.transactions.map(e=>"string"==typeof e?e:_(e)),t}let w=l({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:p,address:a.getAddress,topics:d(p),data:h,index:o.getNumber,blockHash:p},{index:["logIndex"]});function x(e){return w(e)}let E=l({to:f(a.getAddress,null),from:f(a.getAddress,null),contractAddress:f(a.getAddress,null),index:o.getNumber,root:f(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:f(o.getBigInt,null),logsBloom:f(h),blockHash:p,hash:p,logs:d(x),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:f(o.getBigInt),blobGasPrice:f(o.getBigInt,null),status:f(o.getNumber),type:f(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function A(e){return E(e)}function _(e){e.to&&(0,o.getBigInt)(e.to)===c&&(e.to="0x0000000000000000000000000000000000000000");let t=l({hash:p,index:f(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:f(s.accessListify,null),blobVersionedHashes:f(d(p,!0),null),blockHash:f(p,null),blockNumber:f(o.getNumber,null),transactionIndex:f(o.getNumber,null),from:a.getAddress,gasPrice:f(o.getBigInt),maxPriorityFeePerGas:f(o.getBigInt),maxFeePerGas:f(o.getBigInt),maxFeePerBlobGas:f(o.getBigInt,null),gasLimit:o.getBigInt,to:f(a.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:h,creates:f(a.getAddress,null),chainId:f(o.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,a.getCreateAddress)(t)),(1===e.type||2===e.type)&&null==e.accessList&&(t.accessList=[]),e.signature?t.signature=(0,i.Signature).from(e.signature):t.signature=(0,i.Signature).from(e),null==t.chainId){let e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,o.getBigInt)(t.blockHash)===c&&(t.blockHash=null),t}},{"../address/index.js":"8s6vX","../crypto/index.js":"aHR5v","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],eVSPi:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Network",()=>c);var a=e("../transaction/index.js"),i=e("../utils/index.js"),s=e("./plugins-network.js");let o=new Map;class c{#e2;#eu;#eN;constructor(e,t){this.#e2=e,this.#eu=(0,i.getBigInt)(t),this.#eN=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#e2}set name(e){this.#e2=e}get chainId(){return this.#eu}set chainId(e){this.#eu=(0,i.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"==typeof e){try{return this.chainId===(0,i.getBigInt)(e)}catch(e){}return this.name===e}if("number"==typeof e||"bigint"==typeof e){try{return this.chainId===(0,i.getBigInt)(e)}catch(e){}return!1}if("object"==typeof e){if(null!=e.chainId){try{return this.chainId===(0,i.getBigInt)(e.chainId)}catch(e){}return!1}if(null!=e.name)return this.name===e.name}return!1}get plugins(){return Array.from(this.#eN.values())}attachPlugin(e){if(this.#eN.get(e.name))throw Error(`cannot replace existing plugin: ${e.name} `);return this.#eN.set(e.name,e.clone()),this}getPlugin(e){return this.#eN.get(e)||null}getPlugins(e){return this.plugins.filter(t=>t.name.split("#")[0]===e)}clone(){let e=new c(this.name,this.chainId);return this.plugins.forEach(t=>{e.attachPlugin(t.clone())}),e}computeIntrinsicGas(e){let t=this.getPlugin("org.ethers.plugins.network.GasCost")||new s.GasCostPlugin,r=t.txBase;if(null==e.to&&(r+=t.txCreate),e.data)for(let n=2;n{n.attachPlugin(e)}),n};c.register(e,n),c.register(t,n),r.altNames&&r.altNames.forEach(e=>{c.register(e,n)})}}(),null==e)return c.from("mainnet");if("number"==typeof e&&(e=BigInt(e)),"string"==typeof e||"bigint"==typeof e){let t=o.get(e);if(t)return t();if("bigint"==typeof e)return new c("unknown",e);(0,i.assertArgument)(!1,"unknown network","network",e)}if("function"==typeof e.clone)return e.clone();if("object"==typeof e){(0,i.assertArgument)("string"==typeof e.name&&"number"==typeof e.chainId,"invalid network object name or chainId","network",e);let t=new c(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new s.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,i.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"==typeof e&&(e=BigInt(e));let r=o.get(e);r&&(0,i.assertArgument)(!1,`conflicting network for ${JSON.stringify(r.name)}`,"nameOrChainId",e),o.set(e,t)}}function f(e,t){let r=String(e);if(!r.match(/^[0-9.]+$/))throw Error(`invalid gwei value: ${e}`);let n=r.split(".");if(1===n.length&&n.push(""),2!==n.length)throw Error(`invalid gwei value: ${e}`);for(;n[1].length9){let e=BigInt(n[1].substring(0,9));!n[1].substring(9).match(/^0+$/)&&e++,n[1]=e.toString()}return BigInt(n[0]+n[1])}function d(e){return new s.FetchUrlFeeDataNetworkPlugin(e,async(e,t,r)=>{let n;r.setHeader("User-Agent","ethers");try{let[t,a]=await Promise.all([r.send(),e()]),i=(n=t).bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:f(i.maxFee,9),maxPriorityFeePerGas:f(i.maxPriorityFee,9)}}catch(e){(0,i.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(r.url)})`,"SERVER_ERROR",{request:r,response:n,error:e})}})}let l=!1},{"../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./plugins-network.js":"2vM8e","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2vM8e":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"NetworkPlugin",()=>s),n.export(r,"GasCostPlugin",()=>o),n.export(r,"EnsPlugin",()=>c),n.export(r,"FeeDataNetworkPlugin",()=>f),n.export(r,"FetchUrlFeeDataNetworkPlugin",()=>d);var a=e("../utils/properties.js"),i=e("../utils/index.js");class s{name;constructor(e){(0,a.defineProperties)(this,{name:e})}clone(){return new s(this.name)}}class o extends s{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);let r={effectiveBlock:e};function n(e,n){let a=(t||{})[e];null==a&&(a=n),(0,i.assertArgument)("number"==typeof a,`invalud value for ${e}`,"costs",t),r[e]=a}n("txBase",21e3),n("txCreate",32e3),n("txDataZero",4),n("txDataNonzero",16),n("txAccessListStorageKey",1900),n("txAccessListAddress",2400),(0,a.defineProperties)(this,r)}clone(){return new o(this.effectiveBlock,this)}}class c extends s{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,a.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new c(this.address,this.targetNetwork)}}class f extends s{#e5;get feeDataFunc(){return this.#e5}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#e5=e}async getFeeData(e){return await this.#e5(e)}clone(){return new f(this.#e5)}}class d extends s{#I;#e8;get url(){return this.#I}get processFunc(){return this.#e8}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#I=e,this.#e8=t}clone(){return this}}},{"../utils/properties.js":"391vO","../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8vA68":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getPollingSubscriber",()=>s),n.export(r,"PollingBlockSubscriber",()=>o),n.export(r,"OnBlockSubscriber",()=>c),n.export(r,"PollingBlockTagSubscriber",()=>f),n.export(r,"PollingOrphanSubscriber",()=>d),n.export(r,"PollingTransactionSubscriber",()=>l),n.export(r,"PollingEventSubscriber",()=>u);var a=e("../utils/index.js");function i(e){return JSON.parse(JSON.stringify(e))}function s(e,t){return"block"===t?new o(e):(0,a.isHexString)(t,32)?new l(e,t):void(0,a.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})}class o{#e3;#e4;#e9;#e7;constructor(e){this.#e3=e,this.#e4=null,this.#e9=4e3,this.#e7=-2}get pollingInterval(){return this.#e9}set pollingInterval(e){this.#e9=e}async #te(){try{let e=await this.#e3.getBlockNumber();if(-2===this.#e7){this.#e7=e;return}if(e!==this.#e7){for(let t=this.#e7+1;t<=e;t++){if(null==this.#e4)return;await this.#e3.emit("block",t)}this.#e7=e}}catch(e){}null!=this.#e4&&(this.#e4=this.#e3._setTimeout(this.#te.bind(this),this.#e9))}start(){this.#e4||(this.#e4=this.#e3._setTimeout(this.#te.bind(this),this.#e9),this.#te())}stop(){this.#e4&&(this.#e3._clearTimeout(this.#e4),this.#e4=null)}pause(e){this.stop(),e&&(this.#e7=-2)}resume(){this.start()}}class c{#e3;#te;#tt;constructor(e){this.#e3=e,this.#tt=!1,this.#te=e=>{this._poll(e,this.#e3)}}async _poll(e,t){throw Error("sub-classes must override this")}start(){this.#tt||(this.#tt=!0,this.#te(-2),this.#e3.on("block",this.#te))}stop(){this.#tt&&(this.#tt=!1,this.#e3.off("block",this.#te))}pause(e){this.stop()}resume(){this.start()}}class f extends c{#tr;#tn;constructor(e,t){super(e),this.#tr=t,this.#tn=-2}pause(e){e&&(this.#tn=-2),super.pause(e)}async _poll(e,t){let r=await t.getBlock(this.#tr);null!=r&&(-2===this.#tn?this.#tn=r.number:r.number>this.#tn&&(t.emit(this.#tr,r.number),this.#tn=r.number))}}class d extends c{#eR;constructor(e,t){super(e),this.#eR=i(t)}async _poll(e,t){throw Error("@TODO")}}class l extends c{#ta;constructor(e,t){super(e),this.#ta=t}async _poll(e,t){let r=await t.getTransactionReceipt(this.#ta);r&&t.emit(this.#ta,r)}}class u{#e3;#eR;#e4;#tt;#e7;constructor(e,t){this.#e3=e,this.#eR=i(t),this.#e4=this.#te.bind(this),this.#tt=!1,this.#e7=-2}async #te(e){if(-2===this.#e7)return;let t=i(this.#eR);t.fromBlock=this.#e7+1,t.toBlock=e;let r=await this.#e3.getLogs(t);if(0===r.length){this.#e7{this.#e7=e}),this.#e3.on("block",this.#e4))}stop(){this.#tt&&(this.#tt=!1,this.#e3.off("block",this.#e4))}pause(e){this.stop(),e&&(this.#e7=-2)}resume(){this.start()}}},{"../utils/index.js":"aoZEY","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],cDdLu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AbstractSigner",()=>d),n.export(r,"VoidSigner",()=>l);var a=e("../address/index.js"),i=e("../transaction/index.js"),s=e("../utils/index.js"),o=e("./provider.js");function c(e,t){if(e.provider)return e.provider;(0,s.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function f(e,t){let r=(0,o.copyRequest)(t);if(null!=r.to&&(r.to=(0,a.resolveAddress)(r.to,e)),null!=r.from){let t=r.from;r.from=Promise.all([e.getAddress(),(0,a.resolveAddress)(t,e)]).then(([e,t])=>((0,s.assertArgument)(e.toLowerCase()===t.toLowerCase(),"transaction from mismatch","tx.from",t),e))}else r.from=e.getAddress();return await (0,s.resolveProperties)(r)}class d{provider;constructor(e){(0,s.defineProperties)(this,{provider:e||null})}async getNonce(e){return c(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await f(this,e)}async populateTransaction(e){let t=c(this,"populateTransaction"),r=await f(this,e);null==r.nonce&&(r.nonce=await this.getNonce("pending")),null==r.gasLimit&&(r.gasLimit=await this.estimateGas(r));let n=await this.provider.getNetwork();if(null!=r.chainId){let t=(0,s.getBigInt)(r.chainId);(0,s.assertArgument)(t===n.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else r.chainId=n.chainId;let a=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas;if(null!=r.gasPrice&&(2===r.type||a)?(0,s.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e):(0===r.type||1===r.type)&&a&&(0,s.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(2===r.type||null==r.type)&&null!=r.maxFeePerGas&&null!=r.maxPriorityFeePerGas)r.type=2;else if(0===r.type||1===r.type){let e=await t.getFeeData();(0,s.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice)}else{let e=await t.getFeeData();if(null==r.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(r.type=2,null!=r.gasPrice){let e=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=e,r.maxPriorityFeePerGas=e}else null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?((0,s.assert)(!a,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=e.gasPrice),r.type=0):(0,s.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"})}else(2===r.type||3===r.type)&&(null==r.maxFeePerGas&&(r.maxFeePerGas=e.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return await (0,s.resolveProperties)(r)}async estimateGas(e){return c(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return c(this,"call").call(await this.populateCall(e))}async resolveName(e){let t=c(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){let t=c(this,"sendTransaction"),r=await this.populateTransaction(e);delete r.from;let n=(0,i.Transaction).from(r);return await t.broadcastTransaction(await this.signTransaction(n))}}class l extends d{address;constructor(e,t){super(t),(0,s.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new l(this.address,e)}#ti(e,t){(0,s.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#ti("transactions","signTransaction")}async signMessage(e){this.#ti("messages","signMessage")}async signTypedData(e,t,r){this.#ti("typed-data","signTypedData")}}},{"../address/index.js":"8s6vX","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./provider.js":"4vLmk","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bxwMu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"JsonRpcSigner",()=>v),n.export(r,"JsonRpcApiProvider",()=>w),n.export(r,"JsonRpcApiPollingProvider",()=>x),n.export(r,"JsonRpcProvider",()=>E);var a=e("../abi/index.js"),i=e("../address/index.js"),s=e("../hash/index.js"),o=e("../transaction/index.js"),c=e("../utils/index.js"),f=e("./abstract-provider.js"),d=e("./abstract-signer.js"),l=e("./network.js"),u=e("./subscriber-filterid.js"),h=e("./subscriber-polling.js");let p="bigint,boolean,function,number,string,symbol".split(/,/g);function b(e){if(null==e||p.indexOf(typeof e)>=0||"function"==typeof e.getAddress)return e;if(Array.isArray(e))return e.map(b);if("object"==typeof e)return Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),{});throw Error(`should not happen: ${e} (${typeof e})`)}function g(e){return e?e.toLowerCase():e}function m(e){return e&&"number"==typeof e.pollingInterval}let y={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1048576,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends d.AbstractSigner{address;constructor(e,t){super(e),t=(0,i.getAddress)(t),(0,c.defineProperties)(this,{address:t})}connect(e){(0,c.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){let t=b(e),r=[];if(t.from){let n=t.from;r.push((async()=>{let r=await (0,i.resolveAddress)(n,this.provider);(0,c.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r})())}else t.from=this.address;if(null==t.gasLimit&&r.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){let e=t.to;r.push((async()=>{t.to=await (0,i.resolveAddress)(e,this.provider)})())}r.length&&await Promise.all(r);let n=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[n])}async sendTransaction(e){let t=await this.provider.getBlockNumber(),r=await this.sendUncheckedTransaction(e);return await new Promise((e,n)=>{let a=[1e3,100],i=0,s=async()=>{try{let n=await this.provider.getTransaction(r);if(null!=n){e(n.replaceableTransaction(t));return}}catch(e){if((0,c.isError)(e,"CANCELLED")||(0,c.isError)(e,"BAD_DATA")||(0,c.isError)(e,"NETWORK_ERROR")||(0,c.isError)(e,"UNSUPPORTED_OPERATION")){null==e.info&&(e.info={}),e.info.sendTransactionHash=r,n(e);return}if((0,c.isError)(e,"INVALID_ARGUMENT")&&(i++,null==e.info&&(e.info={}),e.info.sendTransactionHash=r,i>10)){n(e);return}this.provider.emit("error",(0,c.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:e}))}this.provider._setTimeout(()=>{s()},a.pop()||4e3)};s()})}async signTransaction(e){let t=b(e);if(t.from){let r=await (0,i.resolveAddress)(t.from,this.provider);(0,c.assertArgument)(null!=r&&r.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=r}else t.from=this.address;let r=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[r])}async signMessage(e){let t="string"==typeof e?(0,c.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,c.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,r){let n=b(r),a=await (0,s.TypedDataEncoder).resolveNames(e,t,n,async e=>{let t=await (0,i.resolveAddress)(e);return(0,c.assertArgument)(null!=t,"TypedData does not support null address","value",e),t});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify((0,s.TypedDataEncoder).getPayload(a.domain,t,a.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){let t="string"==typeof e?(0,c.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,c.hexlify)(t)])}}class w extends f.AbstractProvider{#ee;#ts;#to;#tc;#tf;#td;#tl;#tu(){if(this.#tc)return;let e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#tc=setTimeout(()=>{this.#tc=null;let e=this.#to;for(this.#to=[];e.length;){let t=[e.shift()];for(;e.length&&t.length!==this.#ee.batchMaxCount;)if(t.push(e.shift()),JSON.stringify(t.map(e=>e.payload)).length>this.#ee.batchMaxSize){e.unshift(t.pop());break}(async()=>{let e=1===t.length?t[0].payload:t.map(e=>e.payload);this.emit("debug",{action:"sendRpcPayload",payload:e});try{let r=await this._send(e);for(let{resolve:e,reject:n,payload:a}of(this.emit("debug",{action:"receiveRpcResult",result:r}),t)){if(this.destroyed){n((0,c.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:a.method}));continue}let t=r.filter(e=>e.id===a.id)[0];if(null==t){let e=(0,c.makeError)("missing response for request","BAD_DATA",{value:r,info:{payload:a}});this.emit("error",e),n(e);continue}if("error"in t){n(this.getRpcError(a,t));continue}e(t.result)}}catch(e){for(let{reject:r}of(this.emit("debug",{action:"receiveRpcError",error:e}),t))r(e)}})()}},e)}constructor(e,t){super(e,t),this.#ts=1,this.#ee=Object.assign({},y,t||{}),this.#to=[],this.#tc=null,this.#td=null,this.#tl=null;{let e=null,t=new Promise(t=>{e=t});this.#tf={promise:t,resolve:e}}let r=this._getOption("staticNetwork");"boolean"==typeof r?((0,c.assertArgument)(!r||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),r&&null!=e&&(this.#td=(0,l.Network).from(e))):r&&((0,c.assertArgument)(null==e||r.matches(e),"staticNetwork MUST match network object","options",t),this.#td=r)}_getOption(e){return this.#ee[e]}get _network(){return(0,c.assert)(this.#td,"network is not available yet","NETWORK_ERROR"),this.#td}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,c.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){let r=await this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}let t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){let e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#td)return this.#td}return this.#tl||(this.ready?this.#tl=(async()=>{try{let e=(0,l.Network).from((0,c.getBigInt)(await this.send("eth_chainId",[])));return this.#tl=null,e}catch(e){throw this.#tl=null,e}})():this.#tl=(async()=>{let e;let t={id:this.#ts++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:t});try{e=(await this._send(t))[0],this.#tl=null}catch(e){throw this.#tl=null,this.emit("debug",{action:"receiveRpcError",error:e}),e}if(this.emit("debug",{action:"receiveRpcResult",result:e}),"result"in e)return(0,l.Network).from((0,c.getBigInt)(e.result));throw this.getRpcError(t,e)})()),await this.#tl}_start(){null!=this.#tf&&null!=this.#tf.resolve&&(this.#tf.resolve(),this.#tf=null,(async()=>{for(;null==this.#td&&!this.destroyed;)try{this.#td=await this._detectNetwork()}catch(e){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",(0,c.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await new Promise(e=>{setTimeout(e,1e3)})}this.#tu()})())}async _waitUntilReady(){if(null!=this.#tf)return await this.#tf.promise}_getSubscriber(e){return"pending"===e.type?new u.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new h.PollingEventSubscriber(this,e.filter):new u.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new f.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#tf}getRpcTransaction(e){let t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(r=>{if(null==e[r])return;let n=r;"gasLimit"===r&&(n="gas"),t[n]=(0,c.toQuantity)((0,c.getBigInt)(e[r],`tx.${r}`))}),["from","to","data"].forEach(r=>{null!=e[r]&&(t[r]=(0,c.hexlify)(e[r]))}),e.accessList&&(t.accessList=(0,o.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map(e=>e.toLowerCase())),t}getRpcRequest(e){switch(e.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:[g(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[g(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[g(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[g(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(g):e.filter.address=g(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){let{method:r}=e,{error:n}=t;if("eth_estimateGas"===r&&n.message){let t=n.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,c.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:n}})}if("eth_call"===r||"eth_estimateGas"===r){let t=function e(t){if(null==t)return null;if("string"==typeof t.message&&t.message.match(/revert/i)&&(0,c.isHexString)(t.data))return{message:t.message,data:t.data};if("object"==typeof t){for(let r in t){let n=e(t[r]);if(n)return n}return null}if("string"==typeof t)try{return e(JSON.parse(t))}catch(e){}return null}(n),i=(0,a.AbiCoder).getBuiltinCallException("eth_call"===r?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:n,payload:e},i}let i=JSON.stringify(function(e){let t=[];return!function e(t,r){if(null!=t){if("string"==typeof t.message&&r.push(t.message),"object"==typeof t)for(let n in t)e(t[n],r);if("string"==typeof t)try{return e(JSON.parse(t),r)}catch(e){}}}(e,t),t}(n));if("string"==typeof n.message&&n.message.match(/user denied|ethers-user-denied/i))return(0,c.makeError)("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"}[r]||"unknown",reason:"rejected",info:{payload:e,error:n}});if("eth_sendRawTransaction"===r||"eth_sendTransaction"===r){let t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,c.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:n}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,c.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:n}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,c.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:n}});if(i.match(/only replay-protected/i))return(0,c.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:r,info:{transaction:t,info:{error:n}}})}let s=!!i.match(/the method .* does not exist/i);return(!s&&n&&n.details&&n.details.startsWith("Unauthorized method:")&&(s=!0),s)?(0,c.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:n,payload:e}}):(0,c.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:n,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,c.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));let r=this.#ts++,n=new Promise((n,a)=>{this.#to.push({resolve:n,reject:a,payload:{method:e,params:t,id:r,jsonrpc:"2.0"}})});return this.#tu(),n}async getSigner(e){null==e&&(e=0);let t=this.send("eth_accounts",[]);if("number"==typeof e){let r=await t;if(e>=r.length)throw Error("no such account");return new v(this,r[e])}let{accounts:r}=await (0,c.resolveProperties)({network:this.getNetwork(),accounts:t});for(let t of(e=(0,i.getAddress)(e),r))if((0,i.getAddress)(t)===e)return new v(this,e);throw Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(e=>new v(this,e))}destroy(){for(let{payload:e,reject:t}of(this.#tc&&(clearTimeout(this.#tc),this.#tc=null),this.#to))t((0,c.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#to=[],super.destroy()}}class x extends w{#th;constructor(e,t){super(e,t);let r=this._getOption("pollingInterval");null==r&&(r=y.pollingInterval),this.#th=r}_getSubscriber(e){let t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#th),t}get pollingInterval(){return this.#th}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw Error("invalid interval");this.#th=e,this._forEachSubscriber(e=>{m(e)&&(e.pollingInterval=this.#th)})}}class E extends x{#tp;constructor(e,t,r){null==e&&(e="http://localhost:8545"),super(t,r),"string"==typeof e?this.#tp=new c.FetchRequest(e):this.#tp=e.clone()}_getConnection(){return this.#tp.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){let t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");let r=await t.send();r.assertOk();let n=r.bodyJson;return Array.isArray(n)||(n=[n]),n}}},{"../abi/index.js":"4ccGG","../address/index.js":"8s6vX","../hash/index.js":"1Ty7P","../transaction/index.js":"6XiG7","../utils/index.js":"aoZEY","./abstract-provider.js":"lcPZn","./abstract-signer.js":"cDdLu","./network.js":"eVSPi","./subscriber-filterid.js":"j0sPj","./subscriber-polling.js":"8vA68","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],j0sPj:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"FilterIdSubscriber",()=>s),n.export(r,"FilterIdEventSubscriber",()=>o),n.export(r,"FilterIdPendingSubscriber",()=>c);var a=e("../utils/index.js"),i=e("./subscriber-polling.js");class s{#e3;#tb;#e4;#tt;#td;#tg;constructor(e){this.#e3=e,this.#tb=null,this.#e4=this.#te.bind(this),this.#tt=!1,this.#td=null,this.#tg=!1}_subscribe(e){throw Error("subclasses must override this")}_emitResults(e,t){throw Error("subclasses must override this")}_recover(e){throw Error("subclasses must override this")}async #te(e){try{null==this.#tb&&(this.#tb=this._subscribe(this.#e3));let e=null;try{e=await this.#tb}catch(e){if(!(0,a.isError)(e,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==e.operation)throw e}if(null==e){this.#tb=null,this.#e3._recoverSubscriber(this,this._recover(this.#e3));return}let t=await this.#e3.getNetwork();if(this.#td||(this.#td=t),this.#td.chainId!==t.chainId)throw Error("chaid changed");if(this.#tg)return;let r=await this.#e3.send("eth_getFilterChanges",[e]);await this._emitResults(this.#e3,r)}catch(e){console.log("@TODO",e)}this.#e3.once("block",this.#e4)}#tm(){let e=this.#tb;e&&(this.#tb=null,e.then(e=>{this.#e3.destroyed||this.#e3.send("eth_uninstallFilter",[e])}))}start(){this.#tt||(this.#tt=!0,this.#te(-2))}stop(){this.#tt&&(this.#tt=!1,this.#tg=!0,this.#tm(),this.#e3.off("block",this.#e4))}pause(e){e&&this.#tm(),this.#e3.off("block",this.#e4)}resume(){this.start()}}class o extends s{#ty;constructor(e,t){super(e),this.#ty=JSON.parse(JSON.stringify(t))}_recover(e){return new i.PollingEventSubscriber(e,this.#ty)}async _subscribe(e){return await e.send("eth_newFilter",[this.#ty])}async _emitResults(e,t){for(let r of t)e.emit(this.#ty,e._wrapLog(r,e._network))}}class c extends s{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(let r of t)e.emit("pending",r)}}},{"../utils/index.js":"aoZEY","./subscriber-polling.js":"8vA68","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],IJDGj:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BrowserProvider",()=>s);var a=e("../utils/index.js"),i=e("./provider-jsonrpc.js");class s extends i.JsonRpcApiPollingProvider{#D;constructor(e,t,r){let n=Object.assign({},null!=r?r:{},{batchMaxCount:1});(0,a.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,n),this.#D=async(t,r)=>{let n={method:t,params:r};this.emit("debug",{action:"sendEip1193Request",payload:n});try{let t=await e.request(n);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(t){let e=Error(t.message);throw e.code=t.code,e.data=t.data,e.payload=n,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,a.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{let t=await this.#D(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);let t=await this.send("eth_accounts",[]);return"number"==typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter(t=>t.toLowerCase()===e).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#D("eth_requestAccounts",[])}catch(t){let e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}}},{"../utils/index.js":"aoZEY","./provider-jsonrpc.js":"bxwMu","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6pNUR":[function(e,t,r){!function(t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function a(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;try{l="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("e3411abd2192a251").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,a){for(var i=0,s=0,o=Math.min(e.length,r),c=t;c=49?f-49+10:f>=17?f-17+10:f,n(f>=0&&s0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;s-=3)i=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[a]|=i<>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);else if("le"===r)for(s=0,a=0;s>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,a=0;a=t;a-=2)n=o(e,t,a)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(a=(e.length-t)%2==0?t+1:t;a=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=0x3ffffff;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,s=i%n,o=Math.min(i,i-s)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var l,u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function b(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],s=a*i,o=0x3ffffff&s,c=s/0x4000000|0;r.words[0]=o;for(var f=1;f>>26,l=0x3ffffff&c,u=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=u;h++){var p=f-h|0;d+=(s=(a=0|e.words[p])*(i=0|t.words[h])+l)/0x4000000|0,l=0x3ffffff&s}r.words[f]=0|l,c=0|d}return 0!==c?r.words[f]=0|c:r.length--,r._strip()}i.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,a=0,i=0,s=0;s>>24-a&0xffffff,(a+=2)>=26&&(a-=26,s--),r=0!==i||s!==this.length-1?u[6-c.length]+c+r:c+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=h[e],d=p[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var b=l.modrn(d).toString(e);r=(l=l.idivn(d)).isZero()?b+r:u[f-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},l&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(l,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this._strip();var a=this.byteLength(),i=r||Math.max(1,a);n(a<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(i):new e(i);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,a),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,a=0,i=0;a>8&255),r>16&255),6===i?(r>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===i?(r>=0&&(e[r--]=s>>24&255),n=0,i=0):(n=s>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&0x3ffffff>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,a=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,r=e):(t=e,r=this);for(var i=0,s=0;s>26,this.words[s]=0x3ffffff&n;for(;0!==i&&s>26,this.words[s]=0x3ffffff&n;if(0===i&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],w=8191&v,x=v>>>13,E=0|s[4],A=8191&E,_=E>>>13,T=0|s[5],I=8191&T,S=T>>>13,C=0|s[6],k=8191&C,R=C>>>13,M=0|s[7],B=8191&M,P=M>>>13,O=0|s[8],j=8191&O,N=O>>>13,U=0|s[9],L=8191&U,D=U>>>13,F=0|o[0],H=8191&F,V=F>>>13,q=0|o[1],z=8191&q,G=q>>>13,K=0|o[2],W=8191&K,$=K>>>13,J=0|o[3],Q=8191&J,Z=J>>>13,X=0|o[4],Y=8191&X,ee=X>>>13,et=0|o[5],er=8191&et,en=et>>>13,ea=0|o[6],ei=8191&ea,es=ea>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,ed=0|o[8],el=8191&ed,eu=ed>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(f+(n=Math.imul(l,H))|0)+((8191&(a=(a=Math.imul(l,V))+Math.imul(u,H)|0))<<13)|0;f=((i=Math.imul(u,V))+(a>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,H),a=(a=Math.imul(p,V))+Math.imul(b,H)|0,i=Math.imul(b,V);var em=(f+(n=n+Math.imul(l,z)|0)|0)+((8191&(a=(a=a+Math.imul(l,G)|0)+Math.imul(u,z)|0))<<13)|0;f=((i=i+Math.imul(u,G)|0)+(a>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(m,H),a=(a=Math.imul(m,V))+Math.imul(y,H)|0,i=Math.imul(y,V),n=n+Math.imul(p,z)|0,a=(a=a+Math.imul(p,G)|0)+Math.imul(b,z)|0,i=i+Math.imul(b,G)|0;var ey=(f+(n=n+Math.imul(l,W)|0)|0)+((8191&(a=(a=a+Math.imul(l,$)|0)+Math.imul(u,W)|0))<<13)|0;f=((i=i+Math.imul(u,$)|0)+(a>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(w,H),a=(a=Math.imul(w,V))+Math.imul(x,H)|0,i=Math.imul(x,V),n=n+Math.imul(m,z)|0,a=(a=a+Math.imul(m,G)|0)+Math.imul(y,z)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,a=(a=a+Math.imul(p,$)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,$)|0;var ev=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(a=(a=a+Math.imul(l,Z)|0)+Math.imul(u,Q)|0))<<13)|0;f=((i=i+Math.imul(u,Z)|0)+(a>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(A,H),a=(a=Math.imul(A,V))+Math.imul(_,H)|0,i=Math.imul(_,V),n=n+Math.imul(w,z)|0,a=(a=a+Math.imul(w,G)|0)+Math.imul(x,z)|0,i=i+Math.imul(x,G)|0,n=n+Math.imul(m,W)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(y,W)|0,i=i+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0;var ew=(f+(n=n+Math.imul(l,Y)|0)|0)+((8191&(a=(a=a+Math.imul(l,ee)|0)+Math.imul(u,Y)|0))<<13)|0;f=((i=i+Math.imul(u,ee)|0)+(a>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(I,H),a=(a=Math.imul(I,V))+Math.imul(S,H)|0,i=Math.imul(S,V),n=n+Math.imul(A,z)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(_,z)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(w,W)|0,a=(a=a+Math.imul(w,$)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,$)|0,n=n+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(p,Y)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(b,Y)|0,i=i+Math.imul(b,ee)|0;var ex=(f+(n=n+Math.imul(l,er)|0)|0)+((8191&(a=(a=a+Math.imul(l,en)|0)+Math.imul(u,er)|0))<<13)|0;f=((i=i+Math.imul(u,en)|0)+(a>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(k,H),a=(a=Math.imul(k,V))+Math.imul(R,H)|0,i=Math.imul(R,V),n=n+Math.imul(I,z)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(S,z)|0,i=i+Math.imul(S,G)|0,n=n+Math.imul(A,W)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(w,Q)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(m,Y)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,a=(a=a+Math.imul(p,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0;var eE=(f+(n=n+Math.imul(l,ei)|0)|0)+((8191&(a=(a=a+Math.imul(l,es)|0)+Math.imul(u,ei)|0))<<13)|0;f=((i=i+Math.imul(u,es)|0)+(a>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,H),a=(a=Math.imul(B,V))+Math.imul(P,H)|0,i=Math.imul(P,V),n=n+Math.imul(k,z)|0,a=(a=a+Math.imul(k,G)|0)+Math.imul(R,z)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,a=(a=a+Math.imul(I,$)|0)+Math.imul(S,W)|0,i=i+Math.imul(S,$)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(m,er)|0,a=(a=a+Math.imul(m,en)|0)+Math.imul(y,er)|0,i=i+Math.imul(y,en)|0,n=n+Math.imul(p,ei)|0,a=(a=a+Math.imul(p,es)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,es)|0;var eA=(f+(n=n+Math.imul(l,ec)|0)|0)+((8191&(a=(a=a+Math.imul(l,ef)|0)+Math.imul(u,ec)|0))<<13)|0;f=((i=i+Math.imul(u,ef)|0)+(a>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(j,H),a=(a=Math.imul(j,V))+Math.imul(N,H)|0,i=Math.imul(N,V),n=n+Math.imul(B,z)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(P,z)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(k,W)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(R,W)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,Z)|0,n=n+Math.imul(A,Y)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(_,Y)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,a=(a=a+Math.imul(w,en)|0)+Math.imul(x,er)|0,i=i+Math.imul(x,en)|0,n=n+Math.imul(m,ei)|0,a=(a=a+Math.imul(m,es)|0)+Math.imul(y,ei)|0,i=i+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,a=(a=a+Math.imul(p,ef)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,ef)|0;var e_=(f+(n=n+Math.imul(l,el)|0)|0)+((8191&(a=(a=a+Math.imul(l,eu)|0)+Math.imul(u,el)|0))<<13)|0;f=((i=i+Math.imul(u,eu)|0)+(a>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(L,H),a=(a=Math.imul(L,V))+Math.imul(D,H)|0,i=Math.imul(D,V),n=n+Math.imul(j,z)|0,a=(a=a+Math.imul(j,G)|0)+Math.imul(N,z)|0,i=i+Math.imul(N,G)|0,n=n+Math.imul(B,W)|0,a=(a=a+Math.imul(B,$)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(I,Y)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(S,Y)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(A,er)|0,a=(a=a+Math.imul(A,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(w,ei)|0,a=(a=a+Math.imul(w,es)|0)+Math.imul(x,ei)|0,i=i+Math.imul(x,es)|0,n=n+Math.imul(m,ec)|0,a=(a=a+Math.imul(m,ef)|0)+Math.imul(y,ec)|0,i=i+Math.imul(y,ef)|0,n=n+Math.imul(p,el)|0,a=(a=a+Math.imul(p,eu)|0)+Math.imul(b,el)|0,i=i+Math.imul(b,eu)|0;var eT=(f+(n=n+Math.imul(l,ep)|0)|0)+((8191&(a=(a=a+Math.imul(l,eb)|0)+Math.imul(u,ep)|0))<<13)|0;f=((i=i+Math.imul(u,eb)|0)+(a>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(L,z),a=(a=Math.imul(L,G))+Math.imul(D,z)|0,i=Math.imul(D,G),n=n+Math.imul(j,W)|0,a=(a=a+Math.imul(j,$)|0)+Math.imul(N,W)|0,i=i+Math.imul(N,$)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(k,Y)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(R,Y)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(I,er)|0,a=(a=a+Math.imul(I,en)|0)+Math.imul(S,er)|0,i=i+Math.imul(S,en)|0,n=n+Math.imul(A,ei)|0,a=(a=a+Math.imul(A,es)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,es)|0,n=n+Math.imul(w,ec)|0,a=(a=a+Math.imul(w,ef)|0)+Math.imul(x,ec)|0,i=i+Math.imul(x,ef)|0,n=n+Math.imul(m,el)|0,a=(a=a+Math.imul(m,eu)|0)+Math.imul(y,el)|0,i=i+Math.imul(y,eu)|0;var eI=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(a=(a=a+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;f=((i=i+Math.imul(b,eb)|0)+(a>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(L,W),a=(a=Math.imul(L,$))+Math.imul(D,W)|0,i=Math.imul(D,$),n=n+Math.imul(j,Q)|0,a=(a=a+Math.imul(j,Z)|0)+Math.imul(N,Q)|0,i=i+Math.imul(N,Z)|0,n=n+Math.imul(B,Y)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(P,Y)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(k,er)|0,a=(a=a+Math.imul(k,en)|0)+Math.imul(R,er)|0,i=i+Math.imul(R,en)|0,n=n+Math.imul(I,ei)|0,a=(a=a+Math.imul(I,es)|0)+Math.imul(S,ei)|0,i=i+Math.imul(S,es)|0,n=n+Math.imul(A,ec)|0,a=(a=a+Math.imul(A,ef)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(w,el)|0,a=(a=a+Math.imul(w,eu)|0)+Math.imul(x,el)|0,i=i+Math.imul(x,eu)|0;var eS=(f+(n=n+Math.imul(m,ep)|0)|0)+((8191&(a=(a=a+Math.imul(m,eb)|0)+Math.imul(y,ep)|0))<<13)|0;f=((i=i+Math.imul(y,eb)|0)+(a>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(L,Q),a=(a=Math.imul(L,Z))+Math.imul(D,Q)|0,i=Math.imul(D,Z),n=n+Math.imul(j,Y)|0,a=(a=a+Math.imul(j,ee)|0)+Math.imul(N,Y)|0,i=i+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,a=(a=a+Math.imul(B,en)|0)+Math.imul(P,er)|0,i=i+Math.imul(P,en)|0,n=n+Math.imul(k,ei)|0,a=(a=a+Math.imul(k,es)|0)+Math.imul(R,ei)|0,i=i+Math.imul(R,es)|0,n=n+Math.imul(I,ec)|0,a=(a=a+Math.imul(I,ef)|0)+Math.imul(S,ec)|0,i=i+Math.imul(S,ef)|0,n=n+Math.imul(A,el)|0,a=(a=a+Math.imul(A,eu)|0)+Math.imul(_,el)|0,i=i+Math.imul(_,eu)|0;var eC=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(a=(a=a+Math.imul(w,eb)|0)+Math.imul(x,ep)|0))<<13)|0;f=((i=i+Math.imul(x,eb)|0)+(a>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(L,Y),a=(a=Math.imul(L,ee))+Math.imul(D,Y)|0,i=Math.imul(D,ee),n=n+Math.imul(j,er)|0,a=(a=a+Math.imul(j,en)|0)+Math.imul(N,er)|0,i=i+Math.imul(N,en)|0,n=n+Math.imul(B,ei)|0,a=(a=a+Math.imul(B,es)|0)+Math.imul(P,ei)|0,i=i+Math.imul(P,es)|0,n=n+Math.imul(k,ec)|0,a=(a=a+Math.imul(k,ef)|0)+Math.imul(R,ec)|0,i=i+Math.imul(R,ef)|0,n=n+Math.imul(I,el)|0,a=(a=a+Math.imul(I,eu)|0)+Math.imul(S,el)|0,i=i+Math.imul(S,eu)|0;var ek=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(a=(a=a+Math.imul(A,eb)|0)+Math.imul(_,ep)|0))<<13)|0;f=((i=i+Math.imul(_,eb)|0)+(a>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(L,er),a=(a=Math.imul(L,en))+Math.imul(D,er)|0,i=Math.imul(D,en),n=n+Math.imul(j,ei)|0,a=(a=a+Math.imul(j,es)|0)+Math.imul(N,ei)|0,i=i+Math.imul(N,es)|0,n=n+Math.imul(B,ec)|0,a=(a=a+Math.imul(B,ef)|0)+Math.imul(P,ec)|0,i=i+Math.imul(P,ef)|0,n=n+Math.imul(k,el)|0,a=(a=a+Math.imul(k,eu)|0)+Math.imul(R,el)|0,i=i+Math.imul(R,eu)|0;var eR=(f+(n=n+Math.imul(I,ep)|0)|0)+((8191&(a=(a=a+Math.imul(I,eb)|0)+Math.imul(S,ep)|0))<<13)|0;f=((i=i+Math.imul(S,eb)|0)+(a>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(L,ei),a=(a=Math.imul(L,es))+Math.imul(D,ei)|0,i=Math.imul(D,es),n=n+Math.imul(j,ec)|0,a=(a=a+Math.imul(j,ef)|0)+Math.imul(N,ec)|0,i=i+Math.imul(N,ef)|0,n=n+Math.imul(B,el)|0,a=(a=a+Math.imul(B,eu)|0)+Math.imul(P,el)|0,i=i+Math.imul(P,eu)|0;var eM=(f+(n=n+Math.imul(k,ep)|0)|0)+((8191&(a=(a=a+Math.imul(k,eb)|0)+Math.imul(R,ep)|0))<<13)|0;f=((i=i+Math.imul(R,eb)|0)+(a>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(L,ec),a=(a=Math.imul(L,ef))+Math.imul(D,ec)|0,i=Math.imul(D,ef),n=n+Math.imul(j,el)|0,a=(a=a+Math.imul(j,eu)|0)+Math.imul(N,el)|0,i=i+Math.imul(N,eu)|0;var eB=(f+(n=n+Math.imul(B,ep)|0)|0)+((8191&(a=(a=a+Math.imul(B,eb)|0)+Math.imul(P,ep)|0))<<13)|0;f=((i=i+Math.imul(P,eb)|0)+(a>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(L,el),a=(a=Math.imul(L,eu))+Math.imul(D,el)|0,i=Math.imul(D,eu);var eP=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(a=(a=a+Math.imul(j,eb)|0)+Math.imul(N,ep)|0))<<13)|0;f=((i=i+Math.imul(N,eb)|0)+(a>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff;var eO=(f+(n=Math.imul(L,ep))|0)+((8191&(a=(a=Math.imul(L,eb))+Math.imul(D,ep)|0))<<13)|0;return f=((i=Math.imul(D,eb))+(a>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,c[0]=eg,c[1]=em,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=ex,c[6]=eE,c[7]=eA,c[8]=e_,c[9]=eT,c[10]=eI,c[11]=eS,c[12]=eC,c[13]=ek,c[14]=eR,c[15]=eM,c[16]=eB,c[17]=eP,c[18]=eO,0!==f&&(c[19]=f,r.length++),r};function m(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,s&=0x3ffffff}r.words[i]=o,n=s,s=a}return 0!==n?r.words[i]=n:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(g=b),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?b(this,e,t):m(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},y.prototype.permute=function(e,t,r,n,a,i){for(var s=0;s>>=1)a++;return 1<>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s>=26,r+=(i/0x4000000|0)+(s>>>26),this.words[a]=0x3ffffff&s}return 0!==r&&(this.words[a]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>a&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,r=e%26,a=(e-r)/26,i=0x3ffffff>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var a,i=e%26,s=Math.min((e-i)/26,this.length),o=0x3ffffff^0x3ffffff>>>i<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=a);c--){var d=0|this.words[c];this.words[c]=f<<26-i|d>>>i,f=d&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[a+r]=0x3ffffff&i}for(;a>26,this.words[a+r]=0x3ffffff&i;if(0===o)return this._strip();for(n(-1===o),o=0,a=0;a>26,this.words[a]=0x3ffffff&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,a=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),a.iushln(n),o=0|s.words[s.length-1]);var c=a.length-s.length;if("mod"!==t){(r=new i(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;l--){var u=(0|a.words[s.length+l])*0x4000000+(0|a.words[s.length+l-1]);for(u=Math.min(u/o|0,0x3ffffff),a._ishlnsubmul(s,u,l);0!==a.negative;)u--,a.negative=0,a._ishlnsubmul(s,1,l),a.isZero()||(a.negative^=1);r&&(r.words[l]=u)}return r&&r._strip(),a._strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:r||null,mod:a}},i.prototype.divmod=function(e,t,r){var a,s,o;return(n(!e.isZero()),this.isZero())?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(a=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(a=o.div.neg()),{div:a,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,a=0,i=this.length-1;i>=0;i--)a=(r*a+(0|this.words[i]))%e;return t?-a:a},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+0x4000000*r;this.words[a]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),s=new i(0),o=new i(0),c=new i(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var d=r.clone(),l=t.clone();!t.isZero();){for(var u=0,h=1;(t.words[0]&h)==0&&u<26;++u,h<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(d),s.isub(l)),a.iushrn(1),s.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(d),c.isub(l)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(o),s.isub(c)):(r.isub(t),o.isub(a),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,a=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new i(1),o=new i(0),c=a.clone();r.cmpn(1)>0&&a.cmpn(1)>0;){for(var f=0,d=1;(r.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var l=0,u=1;(a.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(a.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(a)>=0?(r.isub(a),s.isub(o)):(a.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,a=1<>>26,o&=0x3ffffff,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new T(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){T.call(this,e),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)}w.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(x,w),x.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new x;else if("p224"===e)t=new E;else if("p192"===e)t=new A;else if("p25519"===e)t=new _;else throw Error("Unknown prime "+e);return v[e]=t,t},T.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},T.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);n(!a.isZero());var o=new i(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,f).cmp(c);)d.redIAdd(c);for(var l=this.pow(d,a),u=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=s;0!==h.cmp(o);){for(var b=h,g=0;0!==b.cmp(o);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],d=c-1;d>=0;d--){var l=f>>d&1;if(a!==r[0]&&(a=this.sqr(a)),0===l&&0===s){o=0;continue}s<<=1,s|=l,(4==++o||0===n&&0===d)&&(a=this.mul(a,r[s]),o=0,s=0)}c=26}return a},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new I(e)},a(I,T),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):0>a.cmpn(0)&&(i=a.iadd(this.m)),i._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):0>a.cmpn(0)&&(s=a.iadd(this.m)),s._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{e3411abd2192a251:"f68Cp"}],f68Cp:[function(e,t,r){},{}],"6ILTN":[function(e,t,r){var n=e("15178ffa8203b57b").Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let i=a(e("43ce9826854d392c")),s=a(e("88481420d84b05d8")),o="utf8";function c(e){return new Uint8Array(e)}function f(e,t=!1){let r=e.toString("hex");return t?U(r):r}function d(e){return e.toString(o)}function l(e){return e.readUIntBE(0,e.length)}function u(e){return s.default(e)}function h(e,t=!1){return f(u(e),t)}function p(e){return d(u(e))}function b(e){return l(u(e))}function g(e){return Array.from(e).map(E).join("")}function m(e){return n.from(N(e),"hex")}function y(e){return c(m(e))}function v(e){return g(y(e))}function w(e){return n.from(e,o)}function x(e){return c(w(e))}function E(e){return O((e>>>0).toString(2))}function A(e){return u(_(e))}function _(e){return new Uint8Array(B(e).map(e=>parseInt(e,2)))}function T(e,t){return h(_(e),t)}function I(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function S(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function C(e){return n.isBuffer(e)}function k(e){return i.default.strict(e)&&!C(e)}function R(e){return!k(e)&&!C(e)&&void 0!==e.byteLength}function M(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function B(e,t=8){return Array.from(O(e).match(RegExp(`.{${t}}`,"gi"))||[])}function P(e){return B(e).map(L).join("")}function O(e,t=8,r="0"){return j(e,M(e.length,t),r)}function j(e,t,r="0"){return D(e,t,!0,r)}function N(e){return e.replace(/^0x/,"")}function U(e){return e.startsWith("0x")?e:`0x${e}`}function L(e){return e.split("").reverse().join("")}function D(e,t,r,n="0"){let a=t-e.length,i=e;if(a>0){let t=n.repeat(a);i=r?t+e:e+t}return i}r.bufferToArray=c,r.bufferToHex=f,r.bufferToUtf8=d,r.bufferToNumber=l,r.bufferToBinary=function(e){return g(c(e))},r.arrayToBuffer=u,r.arrayToHex=h,r.arrayToUtf8=p,r.arrayToNumber=b,r.arrayToBinary=g,r.hexToBuffer=m,r.hexToArray=y,r.hexToUtf8=function(e){return d(m(e))},r.hexToNumber=function(e){return b(y(e))},r.hexToBinary=v,r.utf8ToBuffer=w,r.utf8ToArray=x,r.utf8ToHex=function(e,t=!1){return f(w(e),t)},r.utf8ToNumber=function(e){let t=parseInt(e,10);return function(e,t){if(!e)throw Error(t)}(void 0!==t,"Number can only safely store up to 53 bits"),t},r.utf8ToBinary=function(e){return g(x(e))},r.numberToBuffer=function(e){return A(E(e))},r.numberToArray=function(e){return _(E(e))},r.numberToHex=function(e,t){return T(E(e),t)},r.numberToUtf8=function(e){return`${e}`},r.numberToBinary=E,r.binaryToBuffer=A,r.binaryToArray=_,r.binaryToHex=T,r.binaryToUtf8=function(e){return p(_(e))},r.binaryToNumber=function(e){return b(_(e))},r.isBinaryString=I,r.isHexString=S,r.isBuffer=C,r.isTypedArray=k,r.isArrayBuffer=R,r.getType=function(e){return C(e)?"buffer":k(e)?"typed-array":R(e)?"array-buffer":Array.isArray(e)?"array":typeof e},r.getEncoding=function(e){return I(e)?"binary":S(e)?"hex":o},r.concatBuffers=function(...e){return n.concat(e)},r.concatArrays=function(...e){let t=[];return e.forEach(e=>t=t.concat(Array.from(e))),new Uint8Array([...t])},r.trimLeft=function(e,t){let r=e.length-t;return r>0&&(e=e.slice(r)),e},r.trimRight=function(e,t){return e.slice(0,t)},r.calcByteLength=M,r.splitBytes=B,r.swapBytes=P,r.swapHex=function(e){return T(P(v(e)))},r.sanitizeBytes=O,r.padLeft=j,r.padRight=function(e,t,r="0"){return D(e,t,!1,r)},r.removeHexPrefix=N,r.addHexPrefix=U,r.sanitizeHex=function(e){return(e=O(e=N(e),2))&&(e=U(e)),e},r.removeHexLeadingZeros=function(e){let t=e.startsWith("0x");return e=(e=N(e)).startsWith("0")?e.substring(1):e,t?U(e):e}},{"15178ffa8203b57b":"2tbuV","43ce9826854d392c":"g3yYX","88481420d84b05d8":"8z6LN"}],g3yYX:[function(e,t,r){t.exports=i,i.strict=s,i.loose=o;var n=Object.prototype.toString,a={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function i(e){return s(e)||o(e)}function s(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function o(e){return a[n.call(e)]}},{}],"8z6LN":[function(e,t,r){var n=e("41e769eea2c52ab4").Buffer,a=e("f05280ef50ca94e2").strict;t.exports=function(e){if(!a(e))return n.from(e);var t=n.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}},{"41e769eea2c52ab4":"2tbuV",f05280ef50ca94e2:"g3yYX"}],"5JqHI":[function(e,t,r){r.utils=e("936ed87b137cf847"),r.common=e("434a6148003f54bf"),r.sha=e("4efe643c7f05b03f"),r.ripemd=e("724a48d5099869dc"),r.hmac=e("975e05d9aa157142"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"936ed87b137cf847":"kTLRC","434a6148003f54bf":"8CKHC","4efe643c7f05b03f":"2sQ4n","724a48d5099869dc":"3rzJo","975e05d9aa157142":"7odnM"}],kTLRC:[function(e,t,r){var n=e("31e33d7e4a46655f"),a=e("cbbdf8dae0263539");function i(e){return(e>>>24|e>>>8&65280|e<<8&0xff0000|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function o(e){if(7===e.length)return"0"+e;if(6===e.length)return"00"+e;if(5===e.length)return"000"+e;if(4===e.length)return"0000"+e;if(3===e.length)return"00000"+e;if(2===e.length)return"000000"+e;if(1===e.length)return"0000000"+e;else return e}r.inherits=a,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e){if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/ig,"")).length%2!=0&&(e="0"+e),a=0;a>6|192:((i=e,s=a,(64512&i.charCodeAt(s))!=55296||s<0||s+1>=i.length?1:(64512&i.charCodeAt(s+1))!=56320)?r[n++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),r[n++]=o>>18|240,r[n++]=o>>12&63|128),r[n++]=o>>6&63|128),r[n++]=63&o|128)}}else for(a=0;a>>0;return o},r.split32=function(e,t){for(var r=Array(4*e.length),n=0,a=0;n>>24,r[a+1]=i>>>16&255,r[a+2]=i>>>8&255,r[a+3]=255&i):(r[a+3]=i>>>24,r[a+2]=i>>>16&255,r[a+1]=i>>>8&255,r[a]=255&i)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,a){return e+t+r+n+a>>>0},r.sum64=function(e,t,r,n){var a=e[t],i=n+e[t+1]>>>0;e[t]=(i>>0,e[t+1]=i},r.sum64_hi=function(e,t,r,n){return(t+n>>>0>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,a,i,s,o){var c,f=t;return e+r+a+s+(0+((f=f+n>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,n,a,i,s,o){return t+n+i+o>>>0},r.sum64_5_hi=function(e,t,r,n,a,i,s,o,c,f){var d,l=t;return e+r+a+s+c+(0+((l=l+n>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,n,a,i,s,o,c,f){return t+n+i+o+f>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{"31e33d7e4a46655f":"1eelC",cbbdf8dae0263539:"h4pQt"}],"1eelC":[function(e,t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},{}],h4pQt:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],"8CKHC":[function(e,t,r){var n=e("51dd8460814ec5be"),a=e("c6dc31c29a63abd4");function i(){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}r.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var a=0;a>>24&255,n[a++]=e>>>16&255,n[a++]=e>>>8&255,n[a++]=255&e}else for(i=8,n[a++]=255&e,n[a++]=e>>>8&255,n[a++]=e>>>16&255,n[a++]=e>>>24&255,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0;i>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"4270a367d24bc2a1":"kTLRC"}],"1DGgN":[function(e,t,r){var n=e("2dff1a4e9e4ae8"),a=e("381adda71a5f9e63");function i(){if(!(this instanceof i))return new i;a.call(this),this.h=[0xc1059ed8,0x367cd507,0x3070dd17,0xf70e5939,0xffc00b31,0x68581511,0x64f98fa7,0xbefa4fa4]}n.inherits(i,a),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"2dff1a4e9e4ae8":"kTLRC","381adda71a5f9e63":"lD46M"}],lD46M:[function(e,t,r){var n=e("78818773b353478e"),a=e("8dad44f5558259f6"),i=e("fbf5a6c26a09b352"),s=e("c85905f79ad0b96f"),o=n.sum32,c=n.sum32_4,f=n.sum32_5,d=i.ch32,l=i.maj32,u=i.s0_256,h=i.s1_256,p=i.g0_256,b=i.g1_256,g=a.BlockHash,m=[0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],this.k=m,this.W=Array(64)}n.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=new this.Hash().update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"50zjA":[function(e,t,r){var n=e("7d7ae146377696b2"),a=e("3858a48c429b727b"),i=e("41a50e51d27c7f01");r.assert=a,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(s=0;s(a>>1)-1?(a>>1)-c:c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,a=0;e.cmpn(-n)>0||t.cmpn(-a)>0;){var i,s,o,c=e.andln(3)+n&3,f=t.andln(3)+a&3;3===c&&(c=-1),3===f&&(f=-1),s=(1&c)==0?0:(3==(i=e.andln(7)+n&7)||5===i)&&2===f?-c:c,r[0].push(s),o=(1&f)==0?0:(3==(i=t.andln(7)+a&7)||5===i)&&2===c?-f:f,r[1].push(o),2*n===s+1&&(n=1-n),2*a===o+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new n(e,"hex","le")}},{"7d7ae146377696b2":"8KQBB","3858a48c429b727b":"1eelC","41a50e51d27c7f01":"ktF95"}],"8KQBB":[function(e,t,r){!function(t,r){function n(e,t){if(!e)throw Error(t||"Assertion failed")}function a(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("c448810625cd391d").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var a=0,i=Math.min(e.length,r),s=t;s=49?a+=o-49+10:o>=17?a+=o-17+10:a+=o}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return 0>e.cmp(t)?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;s-=3)i=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[a]|=i<>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);else if("le"===r)for(s=0,a=0;s>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,a++);return this.strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,a=0;a=t;a-=2)n=o(e,t,a)<=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;else for(a=(e.length-t)%2==0?t+1:t;a=18?(i-=18,s+=1,this.words[s]|=n>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,a=1;a<=0x3ffffff;a*=t)n++;n--,a=a/t|0;for(var i=e.length-r,s=i%n,o=Math.min(i,i-s)+r,f=0,d=r;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],u=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var a=0|e.words[0],i=0|t.words[0],s=a*i,o=0x3ffffff&s,c=s/0x4000000|0;r.words[0]=o;for(var f=1;f>>26,l=0x3ffffff&c,u=Math.min(f,t.length-1),h=Math.max(0,f-e.length+1);h<=u;h++){var p=f-h|0;d+=(s=(a=0|e.words[p])*(i=0|t.words[h])+l)/0x4000000|0,l=0x3ffffff&s}r.words[f]=0|l,c=0|d}return 0!==c?r.words[f]=0|c:r.length--,r.strip()}i.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,a=0,i=0,s=0;s>>24-a&0xffffff)||s!==this.length-1?d[6-c.length]+c+r:c+r,(a+=2)>=26&&(a-=26,s--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var f=l[e],h=u[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var b=p.modn(h).toString(e);r=(p=p.idivn(h)).isZero()?b+r:d[f-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n(void 0!==f),this.toArrayLike(f,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var a,i,s=this.byteLength(),o=r||Math.max(1,s);n(s<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var c=new e(o),f=this.clone();if("le"===t){for(i=0;!f.isZero();i++)a=f.andln(255),f.iushrn(8),c[i]=a;for(;i=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&0x3ffffff>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,a=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=r.length,0!==a)this.words[this.length]=a,this.length++;else if(r!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(t=this,r=e):(t=e,r=this);for(var i=0,s=0;s>26,this.words[s]=0x3ffffff&n;for(;0!==i&&s>26,this.words[s]=0x3ffffff&n;if(0===i&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,g=0|s[2],m=8191&g,y=g>>>13,v=0|s[3],w=8191&v,x=v>>>13,E=0|s[4],A=8191&E,_=E>>>13,T=0|s[5],I=8191&T,S=T>>>13,C=0|s[6],k=8191&C,R=C>>>13,M=0|s[7],B=8191&M,P=M>>>13,O=0|s[8],j=8191&O,N=O>>>13,U=0|s[9],L=8191&U,D=U>>>13,F=0|o[0],H=8191&F,V=F>>>13,q=0|o[1],z=8191&q,G=q>>>13,K=0|o[2],W=8191&K,$=K>>>13,J=0|o[3],Q=8191&J,Z=J>>>13,X=0|o[4],Y=8191&X,ee=X>>>13,et=0|o[5],er=8191&et,en=et>>>13,ea=0|o[6],ei=8191&ea,es=ea>>>13,eo=0|o[7],ec=8191&eo,ef=eo>>>13,ed=0|o[8],el=8191&ed,eu=ed>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var eg=(f+(n=Math.imul(l,H))|0)+((8191&(a=(a=Math.imul(l,V))+Math.imul(u,H)|0))<<13)|0;f=((i=Math.imul(u,V))+(a>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,H),a=(a=Math.imul(p,V))+Math.imul(b,H)|0,i=Math.imul(b,V);var em=(f+(n=n+Math.imul(l,z)|0)|0)+((8191&(a=(a=a+Math.imul(l,G)|0)+Math.imul(u,z)|0))<<13)|0;f=((i=i+Math.imul(u,G)|0)+(a>>>13)|0)+(em>>>26)|0,em&=0x3ffffff,n=Math.imul(m,H),a=(a=Math.imul(m,V))+Math.imul(y,H)|0,i=Math.imul(y,V),n=n+Math.imul(p,z)|0,a=(a=a+Math.imul(p,G)|0)+Math.imul(b,z)|0,i=i+Math.imul(b,G)|0;var ey=(f+(n=n+Math.imul(l,W)|0)|0)+((8191&(a=(a=a+Math.imul(l,$)|0)+Math.imul(u,W)|0))<<13)|0;f=((i=i+Math.imul(u,$)|0)+(a>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(w,H),a=(a=Math.imul(w,V))+Math.imul(x,H)|0,i=Math.imul(x,V),n=n+Math.imul(m,z)|0,a=(a=a+Math.imul(m,G)|0)+Math.imul(y,z)|0,i=i+Math.imul(y,G)|0,n=n+Math.imul(p,W)|0,a=(a=a+Math.imul(p,$)|0)+Math.imul(b,W)|0,i=i+Math.imul(b,$)|0;var ev=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(a=(a=a+Math.imul(l,Z)|0)+Math.imul(u,Q)|0))<<13)|0;f=((i=i+Math.imul(u,Z)|0)+(a>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(A,H),a=(a=Math.imul(A,V))+Math.imul(_,H)|0,i=Math.imul(_,V),n=n+Math.imul(w,z)|0,a=(a=a+Math.imul(w,G)|0)+Math.imul(x,z)|0,i=i+Math.imul(x,G)|0,n=n+Math.imul(m,W)|0,a=(a=a+Math.imul(m,$)|0)+Math.imul(y,W)|0,i=i+Math.imul(y,$)|0,n=n+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(b,Q)|0,i=i+Math.imul(b,Z)|0;var ew=(f+(n=n+Math.imul(l,Y)|0)|0)+((8191&(a=(a=a+Math.imul(l,ee)|0)+Math.imul(u,Y)|0))<<13)|0;f=((i=i+Math.imul(u,ee)|0)+(a>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(I,H),a=(a=Math.imul(I,V))+Math.imul(S,H)|0,i=Math.imul(S,V),n=n+Math.imul(A,z)|0,a=(a=a+Math.imul(A,G)|0)+Math.imul(_,z)|0,i=i+Math.imul(_,G)|0,n=n+Math.imul(w,W)|0,a=(a=a+Math.imul(w,$)|0)+Math.imul(x,W)|0,i=i+Math.imul(x,$)|0,n=n+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,Z)|0)+Math.imul(y,Q)|0,i=i+Math.imul(y,Z)|0,n=n+Math.imul(p,Y)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(b,Y)|0,i=i+Math.imul(b,ee)|0;var ex=(f+(n=n+Math.imul(l,er)|0)|0)+((8191&(a=(a=a+Math.imul(l,en)|0)+Math.imul(u,er)|0))<<13)|0;f=((i=i+Math.imul(u,en)|0)+(a>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(k,H),a=(a=Math.imul(k,V))+Math.imul(R,H)|0,i=Math.imul(R,V),n=n+Math.imul(I,z)|0,a=(a=a+Math.imul(I,G)|0)+Math.imul(S,z)|0,i=i+Math.imul(S,G)|0,n=n+Math.imul(A,W)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(_,W)|0,i=i+Math.imul(_,$)|0,n=n+Math.imul(w,Q)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(x,Q)|0,i=i+Math.imul(x,Z)|0,n=n+Math.imul(m,Y)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,a=(a=a+Math.imul(p,en)|0)+Math.imul(b,er)|0,i=i+Math.imul(b,en)|0;var eE=(f+(n=n+Math.imul(l,ei)|0)|0)+((8191&(a=(a=a+Math.imul(l,es)|0)+Math.imul(u,ei)|0))<<13)|0;f=((i=i+Math.imul(u,es)|0)+(a>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(B,H),a=(a=Math.imul(B,V))+Math.imul(P,H)|0,i=Math.imul(P,V),n=n+Math.imul(k,z)|0,a=(a=a+Math.imul(k,G)|0)+Math.imul(R,z)|0,i=i+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,a=(a=a+Math.imul(I,$)|0)+Math.imul(S,W)|0,i=i+Math.imul(S,$)|0,n=n+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,Z)|0)+Math.imul(_,Q)|0,i=i+Math.imul(_,Z)|0,n=n+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(m,er)|0,a=(a=a+Math.imul(m,en)|0)+Math.imul(y,er)|0,i=i+Math.imul(y,en)|0,n=n+Math.imul(p,ei)|0,a=(a=a+Math.imul(p,es)|0)+Math.imul(b,ei)|0,i=i+Math.imul(b,es)|0;var eA=(f+(n=n+Math.imul(l,ec)|0)|0)+((8191&(a=(a=a+Math.imul(l,ef)|0)+Math.imul(u,ec)|0))<<13)|0;f=((i=i+Math.imul(u,ef)|0)+(a>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(j,H),a=(a=Math.imul(j,V))+Math.imul(N,H)|0,i=Math.imul(N,V),n=n+Math.imul(B,z)|0,a=(a=a+Math.imul(B,G)|0)+Math.imul(P,z)|0,i=i+Math.imul(P,G)|0,n=n+Math.imul(k,W)|0,a=(a=a+Math.imul(k,$)|0)+Math.imul(R,W)|0,i=i+Math.imul(R,$)|0,n=n+Math.imul(I,Q)|0,a=(a=a+Math.imul(I,Z)|0)+Math.imul(S,Q)|0,i=i+Math.imul(S,Z)|0,n=n+Math.imul(A,Y)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(_,Y)|0,i=i+Math.imul(_,ee)|0,n=n+Math.imul(w,er)|0,a=(a=a+Math.imul(w,en)|0)+Math.imul(x,er)|0,i=i+Math.imul(x,en)|0,n=n+Math.imul(m,ei)|0,a=(a=a+Math.imul(m,es)|0)+Math.imul(y,ei)|0,i=i+Math.imul(y,es)|0,n=n+Math.imul(p,ec)|0,a=(a=a+Math.imul(p,ef)|0)+Math.imul(b,ec)|0,i=i+Math.imul(b,ef)|0;var e_=(f+(n=n+Math.imul(l,el)|0)|0)+((8191&(a=(a=a+Math.imul(l,eu)|0)+Math.imul(u,el)|0))<<13)|0;f=((i=i+Math.imul(u,eu)|0)+(a>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(L,H),a=(a=Math.imul(L,V))+Math.imul(D,H)|0,i=Math.imul(D,V),n=n+Math.imul(j,z)|0,a=(a=a+Math.imul(j,G)|0)+Math.imul(N,z)|0,i=i+Math.imul(N,G)|0,n=n+Math.imul(B,W)|0,a=(a=a+Math.imul(B,$)|0)+Math.imul(P,W)|0,i=i+Math.imul(P,$)|0,n=n+Math.imul(k,Q)|0,a=(a=a+Math.imul(k,Z)|0)+Math.imul(R,Q)|0,i=i+Math.imul(R,Z)|0,n=n+Math.imul(I,Y)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(S,Y)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(A,er)|0,a=(a=a+Math.imul(A,en)|0)+Math.imul(_,er)|0,i=i+Math.imul(_,en)|0,n=n+Math.imul(w,ei)|0,a=(a=a+Math.imul(w,es)|0)+Math.imul(x,ei)|0,i=i+Math.imul(x,es)|0,n=n+Math.imul(m,ec)|0,a=(a=a+Math.imul(m,ef)|0)+Math.imul(y,ec)|0,i=i+Math.imul(y,ef)|0,n=n+Math.imul(p,el)|0,a=(a=a+Math.imul(p,eu)|0)+Math.imul(b,el)|0,i=i+Math.imul(b,eu)|0;var eT=(f+(n=n+Math.imul(l,ep)|0)|0)+((8191&(a=(a=a+Math.imul(l,eb)|0)+Math.imul(u,ep)|0))<<13)|0;f=((i=i+Math.imul(u,eb)|0)+(a>>>13)|0)+(eT>>>26)|0,eT&=0x3ffffff,n=Math.imul(L,z),a=(a=Math.imul(L,G))+Math.imul(D,z)|0,i=Math.imul(D,G),n=n+Math.imul(j,W)|0,a=(a=a+Math.imul(j,$)|0)+Math.imul(N,W)|0,i=i+Math.imul(N,$)|0,n=n+Math.imul(B,Q)|0,a=(a=a+Math.imul(B,Z)|0)+Math.imul(P,Q)|0,i=i+Math.imul(P,Z)|0,n=n+Math.imul(k,Y)|0,a=(a=a+Math.imul(k,ee)|0)+Math.imul(R,Y)|0,i=i+Math.imul(R,ee)|0,n=n+Math.imul(I,er)|0,a=(a=a+Math.imul(I,en)|0)+Math.imul(S,er)|0,i=i+Math.imul(S,en)|0,n=n+Math.imul(A,ei)|0,a=(a=a+Math.imul(A,es)|0)+Math.imul(_,ei)|0,i=i+Math.imul(_,es)|0,n=n+Math.imul(w,ec)|0,a=(a=a+Math.imul(w,ef)|0)+Math.imul(x,ec)|0,i=i+Math.imul(x,ef)|0,n=n+Math.imul(m,el)|0,a=(a=a+Math.imul(m,eu)|0)+Math.imul(y,el)|0,i=i+Math.imul(y,eu)|0;var eI=(f+(n=n+Math.imul(p,ep)|0)|0)+((8191&(a=(a=a+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;f=((i=i+Math.imul(b,eb)|0)+(a>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(L,W),a=(a=Math.imul(L,$))+Math.imul(D,W)|0,i=Math.imul(D,$),n=n+Math.imul(j,Q)|0,a=(a=a+Math.imul(j,Z)|0)+Math.imul(N,Q)|0,i=i+Math.imul(N,Z)|0,n=n+Math.imul(B,Y)|0,a=(a=a+Math.imul(B,ee)|0)+Math.imul(P,Y)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(k,er)|0,a=(a=a+Math.imul(k,en)|0)+Math.imul(R,er)|0,i=i+Math.imul(R,en)|0,n=n+Math.imul(I,ei)|0,a=(a=a+Math.imul(I,es)|0)+Math.imul(S,ei)|0,i=i+Math.imul(S,es)|0,n=n+Math.imul(A,ec)|0,a=(a=a+Math.imul(A,ef)|0)+Math.imul(_,ec)|0,i=i+Math.imul(_,ef)|0,n=n+Math.imul(w,el)|0,a=(a=a+Math.imul(w,eu)|0)+Math.imul(x,el)|0,i=i+Math.imul(x,eu)|0;var eS=(f+(n=n+Math.imul(m,ep)|0)|0)+((8191&(a=(a=a+Math.imul(m,eb)|0)+Math.imul(y,ep)|0))<<13)|0;f=((i=i+Math.imul(y,eb)|0)+(a>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(L,Q),a=(a=Math.imul(L,Z))+Math.imul(D,Q)|0,i=Math.imul(D,Z),n=n+Math.imul(j,Y)|0,a=(a=a+Math.imul(j,ee)|0)+Math.imul(N,Y)|0,i=i+Math.imul(N,ee)|0,n=n+Math.imul(B,er)|0,a=(a=a+Math.imul(B,en)|0)+Math.imul(P,er)|0,i=i+Math.imul(P,en)|0,n=n+Math.imul(k,ei)|0,a=(a=a+Math.imul(k,es)|0)+Math.imul(R,ei)|0,i=i+Math.imul(R,es)|0,n=n+Math.imul(I,ec)|0,a=(a=a+Math.imul(I,ef)|0)+Math.imul(S,ec)|0,i=i+Math.imul(S,ef)|0,n=n+Math.imul(A,el)|0,a=(a=a+Math.imul(A,eu)|0)+Math.imul(_,el)|0,i=i+Math.imul(_,eu)|0;var eC=(f+(n=n+Math.imul(w,ep)|0)|0)+((8191&(a=(a=a+Math.imul(w,eb)|0)+Math.imul(x,ep)|0))<<13)|0;f=((i=i+Math.imul(x,eb)|0)+(a>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(L,Y),a=(a=Math.imul(L,ee))+Math.imul(D,Y)|0,i=Math.imul(D,ee),n=n+Math.imul(j,er)|0,a=(a=a+Math.imul(j,en)|0)+Math.imul(N,er)|0,i=i+Math.imul(N,en)|0,n=n+Math.imul(B,ei)|0,a=(a=a+Math.imul(B,es)|0)+Math.imul(P,ei)|0,i=i+Math.imul(P,es)|0,n=n+Math.imul(k,ec)|0,a=(a=a+Math.imul(k,ef)|0)+Math.imul(R,ec)|0,i=i+Math.imul(R,ef)|0,n=n+Math.imul(I,el)|0,a=(a=a+Math.imul(I,eu)|0)+Math.imul(S,el)|0,i=i+Math.imul(S,eu)|0;var ek=(f+(n=n+Math.imul(A,ep)|0)|0)+((8191&(a=(a=a+Math.imul(A,eb)|0)+Math.imul(_,ep)|0))<<13)|0;f=((i=i+Math.imul(_,eb)|0)+(a>>>13)|0)+(ek>>>26)|0,ek&=0x3ffffff,n=Math.imul(L,er),a=(a=Math.imul(L,en))+Math.imul(D,er)|0,i=Math.imul(D,en),n=n+Math.imul(j,ei)|0,a=(a=a+Math.imul(j,es)|0)+Math.imul(N,ei)|0,i=i+Math.imul(N,es)|0,n=n+Math.imul(B,ec)|0,a=(a=a+Math.imul(B,ef)|0)+Math.imul(P,ec)|0,i=i+Math.imul(P,ef)|0,n=n+Math.imul(k,el)|0,a=(a=a+Math.imul(k,eu)|0)+Math.imul(R,el)|0,i=i+Math.imul(R,eu)|0;var eR=(f+(n=n+Math.imul(I,ep)|0)|0)+((8191&(a=(a=a+Math.imul(I,eb)|0)+Math.imul(S,ep)|0))<<13)|0;f=((i=i+Math.imul(S,eb)|0)+(a>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,n=Math.imul(L,ei),a=(a=Math.imul(L,es))+Math.imul(D,ei)|0,i=Math.imul(D,es),n=n+Math.imul(j,ec)|0,a=(a=a+Math.imul(j,ef)|0)+Math.imul(N,ec)|0,i=i+Math.imul(N,ef)|0,n=n+Math.imul(B,el)|0,a=(a=a+Math.imul(B,eu)|0)+Math.imul(P,el)|0,i=i+Math.imul(P,eu)|0;var eM=(f+(n=n+Math.imul(k,ep)|0)|0)+((8191&(a=(a=a+Math.imul(k,eb)|0)+Math.imul(R,ep)|0))<<13)|0;f=((i=i+Math.imul(R,eb)|0)+(a>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(L,ec),a=(a=Math.imul(L,ef))+Math.imul(D,ec)|0,i=Math.imul(D,ef),n=n+Math.imul(j,el)|0,a=(a=a+Math.imul(j,eu)|0)+Math.imul(N,el)|0,i=i+Math.imul(N,eu)|0;var eB=(f+(n=n+Math.imul(B,ep)|0)|0)+((8191&(a=(a=a+Math.imul(B,eb)|0)+Math.imul(P,ep)|0))<<13)|0;f=((i=i+Math.imul(P,eb)|0)+(a>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(L,el),a=(a=Math.imul(L,eu))+Math.imul(D,el)|0,i=Math.imul(D,eu);var eP=(f+(n=n+Math.imul(j,ep)|0)|0)+((8191&(a=(a=a+Math.imul(j,eb)|0)+Math.imul(N,ep)|0))<<13)|0;f=((i=i+Math.imul(N,eb)|0)+(a>>>13)|0)+(eP>>>26)|0,eP&=0x3ffffff;var eO=(f+(n=Math.imul(L,ep))|0)+((8191&(a=(a=Math.imul(L,eb))+Math.imul(D,ep)|0))<<13)|0;return f=((i=Math.imul(D,eb))+(a>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,c[0]=eg,c[1]=em,c[2]=ey,c[3]=ev,c[4]=ew,c[5]=ex,c[6]=eE,c[7]=eA,c[8]=e_,c[9]=eT,c[10]=eI,c[11]=eS,c[12]=eC,c[13]=ek,c[14]=eR,c[15]=eM,c[16]=eB,c[17]=eP,c[18]=eO,0!==f&&(c[19]=f,r.length++),r};function b(e,t,r){return new g().mulp(e,t,r)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,a=0,i=0;i>>26)|0)>>>26,s&=0x3ffffff}r.words[i]=o,n=s,s=a}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):b(this,e,t)},g.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},g.prototype.permute=function(e,t,r,n,a,i){for(var s=0;s>>=1)a++;return 1<>>=13,r[2*s+1]=8191&i,i>>>=13;for(s=2*t;s>=26,t+=(a/0x4000000|0)+(i>>>26),this.words[r]=0x3ffffff&i}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>a}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,r=e%26,a=(e-r)/26,i=0x3ffffff>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var a,i=e%26,s=Math.min((e-i)/26,this.length),o=0x3ffffff^0x3ffffff>>>i<s)for(this.length-=s,c=0;c=0&&(0!==f||c>=a);c--){var d=0|this.words[c];this.words[c]=f<<26-i|d>>>i,f=d&o}return r&&0!==f&&(r.words[r.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/0x4000000|0),this.words[a+r]=0x3ffffff&i}for(;a>26,this.words[a+r]=0x3ffffff&i;if(0===o)return this.strip();for(n(-1===o),o=0,a=0;a>26,this.words[a]=0x3ffffff&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,a=this.clone(),s=e,o=0|s.words[s.length-1];0!=(n=26-this._countBits(o))&&(s=s.ushln(n),a.iushln(n),o=0|s.words[s.length-1]);var c=a.length-s.length;if("mod"!==t){(r=new i(null)).length=c+1,r.words=Array(r.length);for(var f=0;f=0;l--){var u=(0|a.words[s.length+l])*0x4000000+(0|a.words[s.length+l-1]);for(u=Math.min(u/o|0,0x3ffffff),a._ishlnsubmul(s,u,l);0!==a.negative;)u--,a.negative=0,a._ishlnsubmul(s,1,l),a.isZero()||(a.negative^=1);r&&(r.words[l]=u)}return r&&r.strip(),a.strip(),"div"!==t&&0!==n&&a.iushrn(n),{div:r||null,mod:a}},i.prototype.divmod=function(e,t,r){var a,s,o;return(n(!e.isZero()),this.isZero())?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(a=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:a,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(a=o.div.neg()),{div:a,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:o.div,mod:s}):e.length>this.length||0>this.cmp(e)?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t)},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),i=r.cmp(n);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=0x3ffffff);for(var t=0x4000000%e,r=0,a=this.length-1;a>=0;a--)r=(t*r+(0|this.words[a]))%e;return r},i.prototype.idivn=function(e){n(e<=0x3ffffff);for(var t=0,r=this.length-1;r>=0;r--){var a=(0|this.words[r])+0x4000000*t;this.words[r]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),s=new i(0),o=new i(0),c=new i(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var d=r.clone(),l=t.clone();!t.isZero();){for(var u=0,h=1;(t.words[0]&h)==0&&u<26;++u,h<<=1);if(u>0)for(t.iushrn(u);u-- >0;)(a.isOdd()||s.isOdd())&&(a.iadd(d),s.isub(l)),a.iushrn(1),s.iushrn(1);for(var p=0,b=1;(r.words[0]&b)==0&&p<26;++p,b<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(d),c.isub(l)),o.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(o),s.isub(c)):(r.isub(t),o.isub(a),c.isub(s))}return{a:o,b:c,gcd:r.iushln(f)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,a=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new i(1),o=new i(0),c=a.clone();r.cmpn(1)>0&&a.cmpn(1)>0;){for(var f=0,d=1;(r.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var l=0,u=1;(a.words[0]&u)==0&&l<26;++l,u<<=1);if(l>0)for(a.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);r.cmp(a)>=0?(r.isub(a),s.isub(o)):(a.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var a=t.cmp(r);if(a<0){var i=t;t=r,r=i}else if(0===a||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return(1&this.words[0])==0},i.prototype.isOdd=function(){return(1&this.words[0])==1},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,a=1<>>26,o&=0x3ffffff,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;r--){var n=0|this.words[r],a=0|e.words[r];if(n!==a){na&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return -1===this.cmpn(e)},i.prototype.lt=function(e){return -1===this.cmp(e)},i.prototype.lten=function(e){return 0>=this.cmpn(e)},i.prototype.lte=function(e){return 0>=this.cmp(e)},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new A(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function E(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){A.call(this,e),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)}y.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n)var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},a(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n>>22,a=i}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){var t;if(m[e])return m[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new x;else if("p25519"===e)t=new E;else throw Error("Unknown prime "+e);return m[e]=t,t},A.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},A.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var a=this.m.subn(1),s=0;!a.isZero()&&0===a.andln(1);)s++,a.iushrn(1);n(!a.isZero());var o=new i(1).toRed(this),c=o.redNeg(),f=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,f).cmp(c);)d.redIAdd(c);for(var l=this.pow(d,a),u=this.pow(e,a.addn(1).iushrn(1)),h=this.pow(e,a),p=s;0!==h.cmp(o);){for(var b=h,g=0;0!==b.cmp(o);g++)b=b.redSqr();n(g=0;n--){for(var f=t.words[n],d=c-1;d>=0;d--){var l=f>>d&1;if(a!==r[0]&&(a=this.sqr(a)),0===l&&0===s){o=0;continue}s<<=1,s|=l,(4==++o||0===n&&0===d)&&(a=this.mul(a,r[s]),o=0,s=0)}c=26}return a},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new _(e)},a(_,A),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):0>a.cmpn(0)&&(i=a.iadd(this.m)),i._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=r.isub(n).iushrn(this.shift),s=a;return a.cmp(this.m)>=0?s=a.isub(this.m):0>a.cmpn(0)&&(s=a.iadd(this.m)),s._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{c448810625cd391d:"f68Cp"}],ktF95:[function(e,t,r){function n(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r>8,s=255&a;i?r.push(i,s):r.push(s)}return r},r.zero2=n,r.toHex=a,r.encode=function(e,t){return"hex"===t?a(e):e}},{}],i20Ig:[function(e,t,r){var n;function a(e){this.rand=e}if(t.exports=function(e){return n||(n=new a(null)),n.generate(e)},t.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw Error("Not implemented")},c.prototype.validate=function(){throw Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,n,a=e._getDoubles(),s=i(t,1,this._bitLength),c=(1<=r;d--)n=(n<<1)+s[d];f.push(n)}for(var l=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=c;h>0;h--){for(r=0;r=0;f--){for(var d=0;f>=0&&0===s[f];f--)d++;if(f>=0&&d++,c=c.dblp(d),f<0)break;var l=s[f];o(0!==l),c="affine"===e.type?l>0?c.mixedAdd(a[l-1>>1]):c.mixedAdd(a[-l-1>>1].neg()):l>0?c.add(a[l-1>>1]):c.add(a[-l-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,a){var o,c,f,d=this._wnafT1,l=this._wnafT2,u=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,g=o;if(1!==d[b]||1!==d[g]){u[b]=i(r[b],d[b],this._bitLength),u[g]=i(r[g],d[g],this._bitLength),h=Math.max(u[b].length,h),h=Math.max(u[g].length,h);continue}var m=[t[b],null,null,t[g]];0===t[b].y.cmp(t[g].y)?(m[1]=t[b].add(t[g]),m[2]=t[b].toJ().mixedAdd(t[g].neg())):0===t[b].y.cmp(t[g].y.redNeg())?(m[1]=t[b].toJ().mixedAdd(t[g]),m[2]=t[b].add(t[g].neg())):(m[1]=t[b].toJ().mixedAdd(t[g]),m[2]=t[b].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[g]);for(c=0,h=Math.max(v[0].length,h),u[b]=Array(h),u[g]=Array(h);c=0;o--){for(var _=0;o>=0;){var T=!0;for(c=0;c=0&&_++,E=E.dblp(_),o<0)break;for(c=0;c0?f=l[c][I-1>>1]:I<0&&(f=l[c][-I-1>>1].neg()),E="affine"===f.type?E.mixedAdd(f):E.add(f))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,a=0;ai[0].cmp(i[1])?i[0]:i[1]).toRed(this.red)}if(e.lambda)r=new a(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?r=s[0]:(r=s[1],o(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new a(e.a,16),b:new a(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),r=new a(2).toRed(t).redInvm(),n=r.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,r,n,i,s,o,c,f,d,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=e,h=this.n.clone(),p=new a(1),b=new a(0),g=new a(0),m=new a(1),y=0;0!==u.cmpn(0);){var v=h.div(u);f=h.sub(v.mul(u)),d=g.sub(v.mul(p));var w=m.sub(v.mul(b));if(!n&&0>f.cmp(l))t=c.neg(),r=p,n=f.neg(),i=d;else if(n&&2==++y)break;c=f,h=u,u=f,g=p,p=d,m=b,b=w}s=f.neg(),o=d;var x=n.sqr().add(i.sqr());return s.sqr().add(o.sqr()).cmp(x)>=0&&(s=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:n,b:i},{a:s,b:o}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),s=a.mul(r.a),o=i.mul(n.a),c=a.mul(r.b),f=i.mul(n.b);return{k1:e.sub(s).sub(o),k2:c.add(f).neg()}},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(a).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},f.prototype.isInfinity=function(){return this.inf},f.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)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),a=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=a.redSqr().redISub(this.x.redAdd(this.x)),s=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,s)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return(e=new a(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)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],a=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(d,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new d(this,e,t,r)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=n.redSub(a),c=i.redSub(s);if(0===o.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),d=f.redMul(o),l=n.redMul(f),u=c.redSqr().redIAdd(d).redISub(l).redISub(l),h=c.redMul(l.redISub(u)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(u,h,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),s=r.redSub(n),o=a.redSub(i);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),d=r.redMul(c),l=o.redSqr().redIAdd(f).redISub(d).redISub(d),u=o.redMul(d.redISub(l)).redISub(a.redMul(f)),h=this.z.redMul(s);return this.curve.jpoint(l,u,h)},d.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t=0)return!1;if(r.redIAdd(a),0===this.x.cmp(r))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"9b7200322ea0bd41":"50zjA",e908eef846ce98f0:"8KQBB",fa489457be36c952:"h4pQt","5ee2d262e8e00c24":"04s3F"}],"9dq9F":[function(e,t,r){var n=e("cd263078fe314702"),a=e("4c5dd4b5d514f9a7"),i=e("b2892a3f844b98ca"),s=e("fac2086a481c03a0");function o(e){i.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){i.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(o,i),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},a(c,i.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new c(this,e,t)},o.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),a=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,a)},c.prototype.add=function(){throw Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(r),s=a.redMul(n),o=t.z.redMul(i.redAdd(s).redSqr()),c=t.x.redMul(i.redISub(s).redSqr());return this.curve.point(o,c)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{cd263078fe314702:"8KQBB","4c5dd4b5d514f9a7":"h4pQt",b2892a3f844b98ca:"04s3F",fac2086a481c03a0:"50zjA"}],kAB3Y:[function(e,t,r){var n=e("24036cecc5252c77"),a=e("4e39001eaec012d1"),i=e("8745c3572864ca37"),s=e("d9dc67c0dc540569"),o=n.assert;function c(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),o(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function f(e,t,r,n,i){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(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 a(t,16),this.y=new a(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(i,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()))))}i(c,s),t.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(i.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)},c.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(i.redInvm());if(0===s.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),a=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(a)},i(f,s.BasePoint),c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=n.redAdd(t),s=i.redSub(r),o=n.redSub(t),c=a.redMul(s),f=i.redMul(o),d=a.redMul(o),l=s.redMul(i);return this.curve.point(c,f,l,d)},f.prototype._projDbl=function(){var e,t,r,n,a,i,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var f=(n=this.curve._mulA(o)).redAdd(c);this.zOne?(e=s.redSub(o).redSub(c).redMul(f.redSub(this.curve.two)),t=f.redMul(n.redSub(c)),r=f.redSqr().redSub(f).redSub(f)):(a=this.z.redSqr(),i=f.redSub(a).redISub(a),e=s.redSub(o).redISub(c).redMul(i),t=f.redMul(n.redSub(c)),r=f.redMul(i))}else n=o.redAdd(c),a=this.curve._mulC(this.z).redSqr(),i=n.redSub(a).redSub(a),e=this.curve._mulC(s.redISub(n)).redMul(i),t=this.curve._mulC(n).redMul(o.redISub(c)),r=n.redMul(i);return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=r.redSub(t),s=a.redSub(n),o=a.redAdd(n),c=r.redAdd(t),f=i.redMul(s),d=o.redMul(c),l=i.redMul(c),u=s.redMul(o);return this.curve.point(f,d,u,l)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),a=n.redSqr(),i=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(i).redMul(s),c=a.redSub(o),f=a.redAdd(o),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(s),l=n.redMul(c).redMul(d);return this.curve.twisted?(t=n.redMul(f).redMul(s.redSub(this.curve._mulA(i))),r=c.redMul(f)):(t=n.redMul(f).redMul(s.redSub(i)),r=this.curve._mulC(c).redMul(f)),this.curve.point(l,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.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},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},{"24036cecc5252c77":"50zjA","4e39001eaec012d1":"8KQBB","8745c3572864ca37":"h4pQt",d9dc67c0dc540569:"04s3F"}],i9du9:[function(e,t,r){var n,a=e("fedf5c04b8ff9981"),i=e("8f6f5c3874bf6cd6"),s=e("61df58b6304696eb").assert;function o(e){"short"===e.type?this.curve=new i.short(e):"edwards"===e.type?this.curve=new i.edwards(e):this.curve=new i.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:a.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:a.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("ccbfc35a6f91384f")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{fedf5c04b8ff9981:"5JqHI","8f6f5c3874bf6cd6":"5nhG1","61df58b6304696eb":"50zjA",ccbfc35a6f91384f:"6e6Ja"}],"6e6Ja":[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],"1bkN5":[function(e,t,r){var n=e("48df900b040aa803"),a=e("be724e50700d36af"),i=e("9c3ffe98fc20486"),s=e("cb36249f40c2dd5a"),o=e("809ca270739a3325"),c=i.assert,f=e("740a0d9341512bb7"),d=e("f1769645e504a8d");function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=l,l.prototype.keyPair=function(e){return new f(this,e)},l.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}},l.prototype._truncateToN=function(e,t,r){if(n.isBN(e)||"number"==typeof e)a=(e=new n(e,16)).byteLength();else if("object"==typeof e)a=e.length,e=new n(e,16);else{var a,i=e.toString();a=i.length+1>>>1,e=new n(i,16)}"number"!=typeof r&&(r=8*a);var s=r-this.n.bitLength();return(s>0&&(e=e.ushrn(s)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},l.prototype.sign=function(e,t,r,i){if("object"==typeof r&&(i=r,r=null),i||(i={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){c("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),c(e.length>>>0===e.length);for(var s=0;s=(b=this._truncateToN(b,!0)).cmpn(1)||b.cmp(h)>=0)){var g=this.g.mul(b);if(!g.isInfinity()){var m=g.getX(),y=m.umod(this.n);if(0!==y.cmpn(0)){var v=b.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var w=(g.getY().isOdd()?1:0)|(0!==m.cmp(y)?2:0);return i.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),w^=1),new d({r:y,s:v,recoveryParam:w})}}}}}},l.prototype.verify=function(e,t,r,n,a){a||(a={}),e=this._truncateToN(e,!1,a.msgBitLength),r=this.keyFromPublic(r,n);var i,s=(t=new d(t,"hex")).r,o=t.s;if(0>s.cmpn(1)||s.cmp(this.n)>=0||0>o.cmpn(1)||o.cmp(this.n)>=0)return!1;var c=o.invm(this.n),f=c.mul(e).umod(this.n),l=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(i=this.g.jmulAdd(f,r.getPublic(),l)).isInfinity()&&i.eqXToP(s):!(i=this.g.mulAdd(f,r.getPublic(),l)).isInfinity()&&0===i.getX().umod(this.n).cmp(s)},l.prototype.recoverPubKey=function(e,t,r,a){c((3&r)===r,"The recovery param is more than two bits"),t=new d(t,a);var i=this.n,s=new n(e),o=t.r,f=t.s,l=1&r,u=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw Error("Unable to find sencond key candinate");o=u?this.curve.pointFromX(o.add(this.curve.n),l):this.curve.pointFromX(o,l);var h=t.r.invm(i),p=i.sub(s).mul(h).umod(i),b=f.mul(h).umod(i);return this.g.mulAdd(p,o,b)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new d(t,n)).recoveryParam)return t.recoveryParam;for(var a,i=0;i<4;i++){try{a=this.recoverPubKey(e,t,i)}catch(e){continue}if(a.eq(r))return i}throw Error("Unable to find valid recovery factor")}},{"48df900b040aa803":"8KQBB",be724e50700d36af:"L1oXl","9c3ffe98fc20486":"50zjA",cb36249f40c2dd5a:"i9du9","809ca270739a3325":"i20Ig","740a0d9341512bb7":"2eMx0",f1769645e504a8d:"dkfid"}],L1oXl:[function(e,t,r){var n=e("cd88b86eb6f6cf9e"),a=e("ec4d32ca8fe74b66"),i=e("ed42ab1aec14c44b");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"}},{"11716233cbf33814":"8KQBB",e12911e09f5f9b89:"50zjA"}],dkfid:[function(e,t,r){var n=e("cf5e1fe4e5915f3a"),a=e("ca9bdc007e7d27f0"),i=a.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var a=0,i=0,s=t.place;i>>=0;return!(a<=127)&&(t.place=s,a)}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}t.exports=s,s.prototype._importDER=function(e,t){e=a.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var i=c(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var s=c(e,r);if(!1===s||(128&e[r.place])!=0)return!1;var f=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var d=c(e,r);if(!1===d||e.length!==d+r.place||(128&e[r.place])!=0)return!1;var l=e.slice(r.place,d+r.place);if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(f),this.s=new n(l),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];d(n,t.length),(n=n.concat(t)).push(2),d(n,r.length);var i=n.concat(r),s=[48];return d(s,i.length),s=s.concat(i),a.encode(s,e)}},{cf5e1fe4e5915f3a:"8KQBB",ca9bdc007e7d27f0:"50zjA"}],hqEpL:[function(e,t,r){var n=e("7364edd35eeff1a"),a=e("fac0b8bcc1ade767"),i=e("1afcee14a6da8e2"),s=i.assert,o=i.parseBytes,c=e("956302d377efb972"),f=e("b8824d36685deb5a");function d(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=d,d.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),a=this.g.mul(n),i=this.encodePoint(a),s=this.hashInt(i,r.pubBytes(),e).mul(r.priv()),c=n.add(s).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:i})},d.prototype.verify=function(e,t,r){if(e=o(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),a=this.hashInt(t.Rencoded(),n.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(n.pub().mul(a)).eq(i)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;ta),n.export(r,"thirdparty",()=>i);var a=e("./hdkey.js"),i=e("./thirdparty.js"),s=e("./wallet.js");n.exportAll(s,r)},{"./hdkey.js":"a34bW","./thirdparty.js":"e1Z8L","./wallet.js":"3UJPo","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],a34bW:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"EthereumHDKey",()=>o);var a=e("ethereum-cryptography/bip39/index.js"),i=e("ethereum-cryptography/hdkey.js"),s=e("./wallet.js");class o{constructor(e){this._hdkey=e}static fromMasterSeed(e){return new o((0,i.HDKey).fromMasterSeed(e))}static fromMnemonic(e,t){return o.fromMasterSeed((0,a.mnemonicToSeedSync)(e,t))}static fromExtendedKey(e){return new o((0,i.HDKey).fromExtendedKey(e))}privateExtendedKey(){if(!this._hdkey.privateExtendedKey)throw Error("This is a public key only wallet");return this._hdkey.privateExtendedKey}publicExtendedKey(){return this._hdkey.publicExtendedKey}derivePath(e){return new o(this._hdkey.derive(e))}deriveChild(e){return new o(this._hdkey.deriveChild(e))}getWallet(){if(this._hdkey.privateKey)return(0,s.Wallet).fromPrivateKey(this._hdkey.privateKey);if(!this._hdkey.publicKey)throw Error("No hdkey");return(0,s.Wallet).fromPublicKey(this._hdkey.publicKey,!0)}}},{"ethereum-cryptography/bip39/index.js":"bX3LE","ethereum-cryptography/hdkey.js":"2aIzj","./wallet.js":"3UJPo","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bX3LE:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mnemonicToSeedSync=r.mnemonicToSeed=r.validateMnemonic=r.entropyToMnemonic=r.mnemonicToEntropy=r.generateMnemonic=void 0;var n=e("e3bdb4717155c62c");Object.defineProperty(r,"generateMnemonic",{enumerable:!0,get:function(){return n.generateMnemonic}}),Object.defineProperty(r,"mnemonicToEntropy",{enumerable:!0,get:function(){return n.mnemonicToEntropy}}),Object.defineProperty(r,"entropyToMnemonic",{enumerable:!0,get:function(){return n.entropyToMnemonic}}),Object.defineProperty(r,"validateMnemonic",{enumerable:!0,get:function(){return n.validateMnemonic}}),Object.defineProperty(r,"mnemonicToSeed",{enumerable:!0,get:function(){return n.mnemonicToSeed}}),Object.defineProperty(r,"mnemonicToSeedSync",{enumerable:!0,get:function(){return n.mnemonicToSeedSync}})},{e3bdb4717155c62c:"f147I"}],f147I:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.mnemonicToSeedSync=r.mnemonicToSeed=r.validateMnemonic=r.entropyToMnemonic=r.mnemonicToEntropy=r.generateMnemonic=void 0;/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */let n=e("f7864c4709c2384f"),a=e("4d2e3df2a136199a"),i=e("88258950a302f96a"),s=e("22611d19b6a095fb"),o=e("a9a09c9bde0655aa"),c=e("1d4da54013673758"),f=e=>"あいこくしん"===e[0];function d(e){if("string"!=typeof e)throw TypeError(`Invalid mnemonic type: ${typeof e}`);return e.normalize("NFKD")}function l(e){let t=d(e),r=t.split(" ");if(![12,15,18,21,24].includes(r.length))throw Error("Invalid mnemonic");return{nfkd:t,words:r}}function u(e){(0,n.bytes)(e,16,20,24,28,32)}r.generateMnemonic=function(e,t=128){if((0,n.number)(t),t%32!=0||t>256)throw TypeError("Invalid entropy");return g((0,o.randomBytes)(t/8),e)};let h=e=>{let t=8-e.length/4;return new Uint8Array([(0,i.sha256)(e)[0]>>t<{if("string"!=typeof e)throw Error(`Wordlist: non-string element: ${e}`)}),c.utils.chain(c.utils.checksum(1,h),c.utils.radix2(11,!0),c.utils.alphabet(e))}function b(e,t){let{words:r}=l(e),n=p(t).decode(r);return u(n),n}function g(e,t){return u(e),p(t).encode(e).join(f(t)?" ":" ")}r.mnemonicToEntropy=b,r.entropyToMnemonic=g,r.validateMnemonic=function(e,t){try{b(e,t)}catch(e){return!1}return!0};let m=e=>d(`mnemonic${e}`);r.mnemonicToSeed=function(e,t=""){return(0,a.pbkdf2Async)(s.sha512,l(e).nfkd,m(t),{c:2048,dkLen:64})},r.mnemonicToSeedSync=function(e,t=""){return(0,a.pbkdf2)(s.sha512,l(e).nfkd,m(t),{c:2048,dkLen:64})}},{f7864c4709c2384f:"8plnA","4d2e3df2a136199a":"f7C4W","88258950a302f96a":"agPjf","22611d19b6a095fb":"4aMkd",a9a09c9bde0655aa:"7z4fq","1d4da54013673758":"3fgTM"}],"8plnA":[function(e,t,r){function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function a(e){if("boolean"!=typeof e)throw Error(`boolean expected, not ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(e,...t){if(!i(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function o(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function c(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function f(e,t){s(e);let r=t.outputLen;if(e.length= 1");let d=(0,i.toBytes)(t),l=(0,i.toBytes)(r),u=new Uint8Array(c),h=a.hmac.create(e,d),p=h._cloneInto().update(l);return{c:o,dkLen:c,asyncTick:f,DK:u,PRF:h,PRFSalt:p}}function o(e,t,r,n,a){return e.destroy(),t.destroy(),n&&n.destroy(),a.fill(0),r}async function c(e,t,r,n){let a;let{c,dkLen:f,asyncTick:d,DK:l,PRF:u,PRFSalt:h}=s(e,t,r,n),p=new Uint8Array(4),b=(0,i.createView)(p),g=new Uint8Array(u.outputLen);for(let e=1,t=0;t{u._cloneInto(a).update(g).digestInto(g);for(let e=0;ei?e.create().update(r).digest():r);for(let e=0;enew i(e,t).update(r).digest(),r.hmac.create=(e,t)=>new i(e,t)},{"3db621a8d1e9ccec":"8plnA","499b5a51fbb66701":"7z4fq"}],"7z4fq":[function(e,t,r){/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(r,"__esModule",{value:!0}),r.randomBytes=r.wrapXOFConstructorWithOpts=r.wrapConstructorWithOpts=r.wrapConstructor=r.checkOpts=r.Hash=r.concatBytes=r.toBytes=r.utf8ToBytes=r.asyncLoop=r.nextTick=r.hexToBytes=r.bytesToHex=r.byteSwap32=r.byteSwapIfBE=r.byteSwap=r.isLE=r.rotl=r.rotr=r.createView=r.u32=r.u8=r.isBytes=void 0;let n=e("f3255f6f949f434c"),a=e("7ce28ac427a3c82b");r.isBytes=function(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name},r.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),r.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),r.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),r.rotr=(e,t)=>e<<32-t|e>>>t,r.rotl=(e,t)=>e<>>32-t>>>0,r.isLE=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0],r.byteSwap=e=>e<<24&0xff000000|e<<8&0xff0000|e>>>8&65280|e>>>24&255,r.byteSwapIfBE=r.isLE?e=>e:e=>(0,r.byteSwap)(e),r.byteSwap32=function(e){for(let t=0;tt.toString(16).padStart(2,"0"));r.bytesToHex=function(e){(0,a.bytes)(e);let t="";for(let r=0;r=s._0&&e<=s._9?e-s._0:e>=s._A&&e<=s._F?e-(s._A-10):e>=s._a&&e<=s._f?e-(s._a-10):void 0}r.hexToBytes=function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t{};async function f(e,t,n){let a=Date.now();for(let i=0;i=0&&ee().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},r.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},r.randomBytes=function(e=32){if(n.crypto&&"function"==typeof n.crypto.getRandomValues)return n.crypto.getRandomValues(new Uint8Array(e));throw Error("crypto.getRandomValues must be defined")}},{f3255f6f949f434c:"1lbMU","7ce28ac427a3c82b":"8plnA"}],"1lbMU":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.crypto=void 0,r.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},{}],agPjf:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sha224=r.sha256=void 0;let n=e("c75c45a88cade222"),a=e("b4d605248533e31c"),i=/* @__PURE__ */new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),s=/* @__PURE__ */new Uint32Array([0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19]),o=/* @__PURE__ */new Uint32Array(64);class c extends n.HashMD{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){let{A:e,B:t,C:r,D:n,E:a,F:i,G:s,H:o}=this;return[e,t,r,n,a,i,s,o]}set(e,t,r,n,a,i,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|a,this.F=0|i,this.G=0|s,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)o[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=o[e-15],r=o[e-2],n=(0,a.rotr)(t,7)^(0,a.rotr)(t,18)^t>>>3,i=(0,a.rotr)(r,17)^(0,a.rotr)(r,19)^r>>>10;o[e]=i+o[e-7]+n+o[e-16]|0}let{A:r,B:s,C:c,D:f,E:d,F:l,G:u,H:h}=this;for(let e=0;e<64;e++){let t=h+((0,a.rotr)(d,6)^(0,a.rotr)(d,11)^(0,a.rotr)(d,25))+(0,n.Chi)(d,l,u)+i[e]+o[e]|0,p=((0,a.rotr)(r,2)^(0,a.rotr)(r,13)^(0,a.rotr)(r,22))+(0,n.Maj)(r,s,c)|0;h=u,u=l,l=d,d=f+t|0,f=c,c=s,s=r,r=t+p|0}r=r+this.A|0,s=s+this.B|0,c=c+this.C|0,f=f+this.D|0,d=d+this.E|0,l=l+this.F|0,u=u+this.G|0,h=h+this.H|0,this.set(r,s,c,f,d,l,u,h)}roundClean(){o.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class f extends c{constructor(){super(),this.A=-0x3efa6128,this.B=0x367cd507,this.C=0x3070dd17,this.D=-0x8f1a6c7,this.E=-4191439,this.F=0x68581511,this.G=0x64f98fa7,this.H=-0x4105b05c,this.outputLen=28}}r.sha256=(0,a.wrapConstructor)(()=>new c),r.sha224=(0,a.wrapConstructor)(()=>new f)},{c75c45a88cade222:"lVY2T",b4d605248533e31c:"7z4fq"}],lVY2T:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HashMD=r.Maj=r.Chi=void 0;let n=e("3f2ffdfbb082128"),a=e("aaa88f563c4101b3");r.Chi=(e,t,r)=>e&t^~e&r,r.Maj=(e,t,r)=>e&t^e&r^t&r;class i extends a.Hash{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,n.exists)(this);let{view:t,buffer:r,blockLen:i}=this,s=(e=(0,a.toBytes)(e)).length;for(let n=0;ni-o&&(this.process(r,0),o=0);for(let e=o;e>a&i),o=Number(r&i),c=n?4:0,f=n?0:4;e.setUint32(t+c,s,n),e.setUint32(t+f,o,n)}(r,i-8,BigInt(8*this.length),s),this.process(r,0);let c=(0,a.createView)(e),f=this.outputLen;if(f%4)throw Error("_sha2: outputLen should be aligned to 32bit");let d=f/4,l=this.get();if(d>l.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;eBigInt(e))),c=/* @__PURE__ */new Uint32Array(80),f=/* @__PURE__ */new Uint32Array(80);class d extends n.HashMD{constructor(){super(128,64,16,!1),this.Ah=0x6a09e667,this.Al=-0xc4336f8,this.Bh=-0x4498517b,this.Bl=-0x7b3558c5,this.Ch=0x3c6ef372,this.Cl=-0x16b07d5,this.Dh=-0x5ab00ac6,this.Dl=0x5f1d36f1,this.Eh=0x510e527f,this.El=-0x52197d2f,this.Fh=-0x64fa9774,this.Fl=0x2b3e6c1f,this.Gh=0x1f83d9ab,this.Gl=-0x4be4295,this.Hh=0x5be0cd19,this.Hl=0x137e2179}get(){let{Ah:e,Al:t,Bh:r,Bl:n,Ch:a,Cl:i,Dh:s,Dl:o,Eh:c,El:f,Fh:d,Fl:l,Gh:u,Gl:h,Hh:p,Hl:b}=this;return[e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b]}set(e,t,r,n,a,i,s,o,c,f,d,l,u,h,p,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|r,this.Bl=0|n,this.Ch=0|a,this.Cl=0|i,this.Dh=0|s,this.Dl=0|o,this.Eh=0|c,this.El=0|f,this.Fh=0|d,this.Fl=0|l,this.Gh=0|u,this.Gl=0|h,this.Hh=0|p,this.Hl=0|b}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t),f[r]=e.getUint32(t+=4);for(let e=16;e<80;e++){let t=0|c[e-15],r=0|f[e-15],n=a.default.rotrSH(t,r,1)^a.default.rotrSH(t,r,8)^a.default.shrSH(t,r,7),i=a.default.rotrSL(t,r,1)^a.default.rotrSL(t,r,8)^a.default.shrSL(t,r,7),s=0|c[e-2],o=0|f[e-2],d=a.default.rotrSH(s,o,19)^a.default.rotrBH(s,o,61)^a.default.shrSH(s,o,6),l=a.default.rotrSL(s,o,19)^a.default.rotrBL(s,o,61)^a.default.shrSL(s,o,6),u=a.default.add4L(i,l,f[e-7],f[e-16]),h=a.default.add4H(u,n,d,c[e-7],c[e-16]);c[e]=0|h,f[e]=0|u}let{Ah:r,Al:n,Bh:i,Bl:d,Ch:l,Cl:u,Dh:h,Dl:p,Eh:b,El:g,Fh:m,Fl:y,Gh:v,Gl:w,Hh:x,Hl:E}=this;for(let e=0;e<80;e++){let t=a.default.rotrSH(b,g,14)^a.default.rotrSH(b,g,18)^a.default.rotrBH(b,g,41),A=a.default.rotrSL(b,g,14)^a.default.rotrSL(b,g,18)^a.default.rotrBL(b,g,41),_=b&m^~b&v,T=g&y^~g&w,I=a.default.add5L(E,A,T,o[e],f[e]),S=a.default.add5H(I,x,t,_,s[e],c[e]),C=0|I,k=a.default.rotrSH(r,n,28)^a.default.rotrBH(r,n,34)^a.default.rotrBH(r,n,39),R=a.default.rotrSL(r,n,28)^a.default.rotrBL(r,n,34)^a.default.rotrBL(r,n,39),M=r&i^r&l^i&l,B=n&d^n&u^d&u;x=0|v,E=0|w,v=0|m,w=0|y,m=0|b,y=0|g,({h:b,l:g}=a.default.add(0|h,0|p,0|S,0|C)),h=0|l,p=0|u,l=0|i,u=0|d,i=0|r,d=0|n;let P=a.default.add3L(C,R,B);r=a.default.add3H(P,S,k,M),n=0|P}({h:r,l:n}=a.default.add(0|this.Ah,0|this.Al,0|r,0|n)),({h:i,l:d}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|d)),({h:l,l:u}=a.default.add(0|this.Ch,0|this.Cl,0|l,0|u)),({h:h,l:p}=a.default.add(0|this.Dh,0|this.Dl,0|h,0|p)),({h:b,l:g}=a.default.add(0|this.Eh,0|this.El,0|b,0|g)),({h:m,l:y}=a.default.add(0|this.Fh,0|this.Fl,0|m,0|y)),({h:v,l:w}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:x,l:E}=a.default.add(0|this.Hh,0|this.Hl,0|x,0|E)),this.set(r,n,i,d,l,u,h,p,b,g,m,y,v,w,x,E)}roundClean(){c.fill(0),f.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)}}r.SHA512=d;class l extends d{constructor(){super(),this.Ah=-0x73c2c838,this.Al=0x19544da2,this.Bh=0x73e19966,this.Bl=-0x76232b2a,this.Ch=0x1dfab7ae,this.Cl=0x32ff9c82,this.Dh=0x679dd514,this.Dl=0x582f9fcf,this.Eh=0xf6d2b69,this.El=0x7bd44da8,this.Fh=0x77e36f73,this.Fl=0x4c48942,this.Gh=0x3f9d85a8,this.Gl=0x6a1d36c8,this.Hh=0x1112e6ad,this.Hl=-0x6e296d5f,this.outputLen=28}}class u extends d{constructor(){super(),this.Ah=0x22312194,this.Al=-0x3d408d4,this.Bh=-0x60aaa05d,this.Bl=-0x37b39b3e,this.Ch=0x2393b86b,this.Cl=0x6f53b151,this.Dh=-0x69c788e7,this.Dl=0x5940eabd,this.Eh=-0x69d7c11e,this.El=-0x5771001d,this.Fh=-0x41a1e1db,this.Fl=0x53863992,this.Gh=0x2b0199fc,this.Gl=0x2c85b8aa,this.Hh=0xeb72ddc,this.Hl=-0x7e3ad35e,this.outputLen=32}}class h extends d{constructor(){super(),this.Ah=-0x344462a3,this.Al=-0x3efa6128,this.Bh=0x629a292a,this.Bl=0x367cd507,this.Ch=-0x6ea6fea6,this.Cl=0x3070dd17,this.Dh=0x152fecd8,this.Dl=-0x8f1a6c7,this.Eh=0x67332667,this.El=-4191439,this.Fh=-0x714bb579,this.Fl=0x68581511,this.Gh=-0x24f3d1f3,this.Gl=0x64f98fa7,this.Hh=0x47b5481d,this.Hl=-0x4105b05c,this.outputLen=48}}r.sha512=(0,i.wrapConstructor)(()=>new d),r.sha512_224=(0,i.wrapConstructor)(()=>new l),r.sha512_256=(0,i.wrapConstructor)(()=>new u),r.sha384=(0,i.wrapConstructor)(()=>new h)},{f1a1671ebab97f8:"lVY2T","45afced0143a621":"6NT0D","4f8ee58a55b36a62":"7z4fq"}],"6NT0D":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.add5L=r.add5H=r.add4H=r.add4L=r.add3H=r.add3L=r.add=r.rotlBL=r.rotlBH=r.rotlSL=r.rotlSH=r.rotr32L=r.rotr32H=r.rotrBL=r.rotrBH=r.rotrSL=r.rotrSH=r.shrSL=r.shrSH=r.toBig=r.split=r.fromBig=void 0;let n=/* @__PURE__ */BigInt(0x100000000-1),a=/* @__PURE__ */BigInt(32);function i(e,t=!1){return t?{h:Number(e&n),l:Number(e>>a&n)}:{h:0|Number(e>>a&n),l:0|Number(e&n)}}function s(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let a=0;aBigInt(e>>>0)<>>0);r.toBig=o;let c=(e,t,r)=>e>>>r;r.shrSH=c;let f=(e,t,r)=>e<<32-r|t>>>r;r.shrSL=f;let d=(e,t,r)=>e>>>r|t<<32-r;r.rotrSH=d;let l=(e,t,r)=>e<<32-r|t>>>r;r.rotrSL=l;let u=(e,t,r)=>e<<64-r|t>>>r-32;r.rotrBH=u;let h=(e,t,r)=>e>>>r-32|t<<64-r;r.rotrBL=h;let p=(e,t)=>t;r.rotr32H=p;let b=(e,t)=>e;r.rotr32L=b;let g=(e,t,r)=>e<>>32-r;r.rotlSH=g;let m=(e,t,r)=>t<>>32-r;r.rotlSL=m;let y=(e,t,r)=>t<>>64-r;r.rotlBH=y;let v=(e,t,r)=>e<>>64-r;function w(e,t,r,n){let a=(t>>>0)+(n>>>0);return{h:e+r+(a/0x100000000|0)|0,l:0|a}}r.rotlBL=v,r.add=w;let x=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);r.add3L=x;let E=(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0;r.add3H=E;let A=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);r.add4L=A;let _=(e,t,r,n,a)=>t+r+n+a+(e/0x100000000|0)|0;r.add4H=_;let T=(e,t,r,n,a)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(a>>>0);r.add5L=T;let I=(e,t,r,n,a,i)=>t+r+n+a+i+(e/0x100000000|0)|0;r.add5H=I,r.default={fromBig:i,split:s,toBig:o,shrSH:c,shrSL:f,rotrSH:d,rotrSL:l,rotrBH:u,rotrBL:h,rotr32H:p,rotr32L:b,rotlSH:g,rotlSL:m,rotlBH:y,rotlBL:v,add:w,add3L:x,add3H:E,add4L:A,add4H:_,add5H:I,add5L:T}},{}],"3fgTM":[function(e,t,r){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if(!Number.isSafeInteger(e))throw Error(`Wrong integer: ${e}`)}function i(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function s(...e){let t=e=>e,r=(e,t)=>r=>e(t(r));return{encode:e.map(e=>e.encode).reduceRight(r,t),decode:e.map(e=>e.decode).reduce(r,t)}}function o(e){return{encode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("alphabet.encode input should be an array of numbers");return t.map(t=>{if(a(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})},decode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("alphabet.decode input should be array of strings");return t.map(t=>{if("string"!=typeof t)throw Error(`alphabet.decode: not string element=${t}`);let r=e.indexOf(t);if(-1===r)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return r})}}}function c(e=""){if("string"!=typeof e)throw Error("join separator should be string");return{encode:t=>{if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw Error("join.encode input should be array of strings");for(let e of t)if("string"!=typeof e)throw Error(`join.encode: non-string input=${e}`);return t.join(e)},decode:t=>{if("string"!=typeof t)throw Error("join.decode input should be string");return t.split(e)}}}function f(e,t="="){if(a(e),"string"!=typeof t)throw Error("padding chr should be string");return{encode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw Error(`padding.encode: non-string input=${e}`);for(;r.length*e%8;)r.push(t);return r},decode(r){if(!Array.isArray(r)||r.length&&"string"!=typeof r[0])throw Error("padding.encode input should be array of strings");for(let e of r)if("string"!=typeof e)throw Error(`padding.decode: non-string input=${e}`);let n=r.length;if(n*e%8)throw Error("Invalid padding: string should have whole number of bytes");for(;n>0&&r[n-1]===t;n--)if(!((n-1)*e%8))throw Error("Invalid padding: string has too much padding");return r.slice(0,n)}}}function d(e){if("function"!=typeof e)throw Error("normalize fn should be function");return{encode:e=>e,decode:t=>e(t)}}function l(e,t,r){if(t<2)throw Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);if(r<2)throw Error(`convertRadix: wrong to=${r}, base cannot be less than 2`);if(!Array.isArray(e))throw Error("convertRadix: data should be array");if(!e.length)return[];let n=0,i=[],s=Array.from(e);for(s.forEach(e=>{if(a(e),e<0||e>=t)throw Error(`Wrong integer: ${e}`)});;){let e=0,a=!0;for(let i=n;ia),n.export(r,"utils",()=>v),n.export(r,"base16",()=>w),n.export(r,"base32",()=>x),n.export(r,"base32nopad",()=>E),n.export(r,"base32hex",()=>A),n.export(r,"base32hexnopad",()=>_),n.export(r,"base32crockford",()=>T),n.export(r,"base64",()=>I),n.export(r,"base64nopad",()=>S),n.export(r,"base64url",()=>C),n.export(r,"base64urlnopad",()=>k),n.export(r,"base58",()=>M),n.export(r,"base58flickr",()=>B),n.export(r,"base58xrp",()=>P),n.export(r,"base58xmr",()=>j),n.export(r,"createBase58check",()=>N),n.export(r,"base58check",()=>U),n.export(r,"bech32",()=>q),n.export(r,"bech32m",()=>z),n.export(r,"utf8",()=>G),n.export(r,"hex",()=>K),n.export(r,"bytesToString",()=>J),n.export(r,"str",()=>Q),n.export(r,"stringToBytes",()=>Z),n.export(r,"bytes",()=>X);let u=(e,t)=>t?u(t,e%t):e,h=(e,t)=>e+(t-u(e,t));function p(e,t,r,n){if(!Array.isArray(e))throw Error("convertRadix2: data should be array");if(t<=0||t>32)throw Error(`convertRadix2: wrong from=${t}`);if(r<=0||r>32)throw Error(`convertRadix2: wrong to=${r}`);if(h(t,r)>32)throw Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${h(t,r)}`);let i=0,s=0,o=2**r-1,c=[];for(let n of e){if(a(n),n>=2**t)throw Error(`convertRadix2: invalid data word=${n} from=${t}`);if(i=i<32)throw Error(`convertRadix2: carry overflow pos=${s} from=${t}`);for(s+=t;s>=r;s-=r)c.push((i>>s-r&o)>>>0);i&=2**s-1}if(i=i<=t)throw Error("Excess padding");if(!n&&i)throw Error(`Non-zero padding: ${i}`);return n&&s>0&&c.push(i>>>0),c}function b(e){return a(e),{encode:t=>{if(!i(t))throw Error("radix.encode input should be Uint8Array");return l(Array.from(t),256,e)},decode:t=>{if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw Error("radix.decode input should be array of numbers");return Uint8Array.from(l(t,e,256))}}}function g(e,t=!1){if(a(e),e<=0||e>32)throw Error("radix2: bits should be in (0..32]");if(h(8,e)>32||h(e,8)>32)throw Error("radix2: carry overflow");return{encode:r=>{if(!i(r))throw Error("radix2.encode input should be Uint8Array");return p(Array.from(r),8,e,!t)},decode:r=>{if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw Error("radix2.decode input should be array of numbers");return Uint8Array.from(p(r,e,8,t))}}}function m(e){if("function"!=typeof e)throw Error("unsafeWrapper fn should be function");return function(...t){try{return e.apply(null,t)}catch(e){}}}function y(e,t){if(a(e),"function"!=typeof t)throw Error("checksum fn should be function");return{encode(r){if(!i(r))throw Error("checksum.encode: input should be Uint8Array");let n=t(r).slice(0,e),a=new Uint8Array(r.length+e);return a.set(r),a.set(n,r.length),a},decode(r){if(!i(r))throw Error("checksum.decode: input should be Uint8Array");let n=r.slice(0,-e),a=t(n).slice(0,e),s=r.slice(-e);for(let t=0;te.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),I=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),f(6),c("")),S=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),c("")),C=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),f(6),c("")),k=/* @__PURE__ */s(g(6),o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),c("")),R=e=>s(b(58),o(e),c("")),M=/* @__PURE__ */R("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),B=/* @__PURE__ */R("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),P=/* @__PURE__ */R("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz"),O=[0,2,3,5,6,7,9,10,11],j={encode(e){let t="";for(let r=0;rs(y(4,t=>e(e(t))),M),U=N,L=/* @__PURE__ */s(o("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),c("")),D=[0x3b6a57b2,0x26508e6d,0x1ea119fa,0x3d4233dd,0x2a1462b3];function F(e){let t=e>>25,r=(0x1ffffff&e)<<5;for(let e=0;e>e&1)==1&&(r^=D[e]);return r}function H(e,t,r=1){let n=e.length,a=1;for(let t=0;t126)throw Error(`Invalid prefix (${e})`);a=F(a)^r>>5}a=F(a);for(let t=0;tr)throw TypeError(`Wrong string length: ${e.length} (${e}). Expected (8..${r})`);let n=e.toLowerCase();if(e!==n&&e!==e.toUpperCase())throw Error("String must be lowercase or uppercase");let a=n.lastIndexOf("1");if(0===a||-1===a)throw Error('Letter "1" must be present between prefix and data only');let i=n.slice(0,a),o=n.slice(a+1);if(o.length<6)throw Error("Data must be at least 6 characters long");let c=L.decode(o).slice(0,-6),f=H(i,c,t);if(!o.endsWith(f))throw Error(`Invalid checksum in ${e}: expected "${f}"`);return{prefix:i,words:c}}let o=m(s);return{encode:function(e,r,n=90){if("string"!=typeof e)throw Error(`bech32.encode prefix should be string, not ${typeof e}`);if(!Array.isArray(r)||r.length&&"number"!=typeof r[0])throw Error(`bech32.encode words should be array of numbers, not ${typeof r}`);if(0===e.length)throw TypeError(`Invalid prefix length ${e.length}`);let a=e.length+7+r.length;if(!1!==n&&a>n)throw TypeError(`Length ${a} exceeds limit ${n}`);let i=e.toLowerCase(),s=H(i,r,t);return`${i}1${L.encode(r)}${s}`},decode:s,decodeToBytes:function(e){let{prefix:t,words:r}=s(e,!1);return{prefix:t,words:r,bytes:n(r)}},decodeUnsafe:o,fromWords:n,fromWordsUnsafe:i,toWords:a}}let q=/* @__PURE__ */V("bech32"),z=/* @__PURE__ */V("bech32m"),G={encode:e=>new TextDecoder().decode(e),decode:e=>new TextEncoder().encode(e)},K=/* @__PURE__ */s(g(4),o("0123456789abcdef"),c(""),d(e=>{if("string"!=typeof e||e.length%2)throw TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),W={utf8:G,hex:K,base16:w,base32:x,base64:I,base64url:C,base58:M,base58xmr:j},$="Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr",J=(e,t)=>{if("string"!=typeof e||!W.hasOwnProperty(e))throw TypeError($);if(!i(t))throw TypeError("bytesToString() expects Uint8Array");return W[e].encode(t)},Q=J,Z=(e,t)=>{if(!W.hasOwnProperty(e))throw TypeError($);if("string"!=typeof t)throw TypeError("stringToBytes() expects string");return W[e].decode(t)},X=Z},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2aIzj":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HDKey=r.HARDENED_OFFSET=void 0;var n=e("9ff6de7a438a4d87");Object.defineProperty(r,"HARDENED_OFFSET",{enumerable:!0,get:function(){return n.HARDENED_OFFSET}}),Object.defineProperty(r,"HDKey",{enumerable:!0,get:function(){return n.HDKey}})},{"9ff6de7a438a4d87":"5cLax"}],"5cLax":[function(e,t,r){/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"HARDENED_OFFSET",()=>y),n.export(r,"HDKey",()=>E);var a=e("@noble/hashes/hmac"),i=e("@noble/hashes/ripemd160"),s=e("@noble/hashes/sha256"),o=e("@noble/hashes/sha512"),c=e("@noble/hashes/_assert"),f=e("@noble/hashes/utils"),d=e("@noble/curves/secp256k1"),l=e("@noble/curves/abstract/modular"),u=e("@scure/base");let h=d.secp256k1.ProjectivePoint,p=(0,u.createBase58check)(s.sha256);function b(e){return BigInt(`0x${(0,f.bytesToHex)(e)}`)}let g=(0,f.utf8ToBytes)("Bitcoin seed"),m={private:0x488ade4,public:0x488b21e},y=0x80000000,v=e=>(0,i.ripemd160)((0,s.sha256)(e)),w=e=>(0,f.createView)(e).getUint32(0,!1),x=e=>{if(!Number.isSafeInteger(e)||e<0||e>0x100000000-1)throw Error(`Invalid number=${e}. Should be from 0 to 2 ** 32 - 1`);let t=new Uint8Array(4);return(0,f.createView)(t).setUint32(0,e,!1),t};class E{get fingerprint(){if(!this.pubHash)throw Error("No publicKey set!");return w(this.pubHash)}get identifier(){return this.pubHash}get pubKeyHash(){return this.pubHash}get privateKey(){return this.privKeyBytes||null}get publicKey(){return this.pubKey||null}get privateExtendedKey(){let e=this.privateKey;if(!e)throw Error("No private key");return p.encode(this.serialize(this.versions.private,(0,f.concatBytes)(new Uint8Array([0]),e)))}get publicExtendedKey(){if(!this.pubKey)throw Error("No public key");return p.encode(this.serialize(this.versions.public,this.pubKey))}static fromMasterSeed(e,t=m){if((0,c.bytes)(e),8*e.length<128||8*e.length>512)throw Error(`HDKey: wrong seed length=${e.length}. Should be between 128 and 512 bits; 256 bits is advised)`);let r=(0,a.hmac)(o.sha512,g,e);return new E({versions:t,chainCode:r.slice(32),privateKey:r.slice(0,32)})}static fromExtendedKey(e,t=m){let r=p.decode(e),n=(0,f.createView)(r),a=n.getUint32(0,!1),i={versions:t,depth:r[4],parentFingerprint:n.getUint32(5,!1),index:n.getUint32(9,!1),chainCode:r.slice(13,45)},s=r.slice(45),o=0===s[0];if(a!==t[o?"private":"public"])throw Error("Version mismatch");return new E(o?{...i,privateKey:s.slice(1)}:{...i,publicKey:s})}static fromJSON(e){return E.fromExtendedKey(e.xpriv)}constructor(e){if(this.depth=0,this.index=0,this.chainCode=null,this.parentFingerprint=0,!e||"object"!=typeof e)throw Error("HDKey.constructor must not be called directly");if(this.versions=e.versions||m,this.depth=e.depth||0,this.chainCode=e.chainCode||null,this.index=e.index||0,this.parentFingerprint=e.parentFingerprint||0,!this.depth&&(this.parentFingerprint||this.index))throw Error("HDKey: zero depth with non-zero index/parent fingerprint");if(e.publicKey&&e.privateKey)throw Error("HDKey: publicKey and privateKey at same time.");if(e.privateKey){var t;if(!(0,d.secp256k1).utils.isValidPrivateKey(e.privateKey))throw Error("Invalid private key");this.privKey="bigint"==typeof e.privateKey?e.privateKey:b(e.privateKey),this.privKeyBytes=(t=this.privKey,(0,f.hexToBytes)(t.toString(16).padStart(64,"0"))),this.pubKey=(0,d.secp256k1).getPublicKey(e.privateKey,!0)}else if(e.publicKey)this.pubKey=h.fromHex(e.publicKey).toRawBytes(!0);else throw Error("HDKey: no public or private key provided");this.pubHash=v(this.pubKey)}derive(e){if(!/^[mM]'?/.test(e))throw Error('Path must start with "m" or "M"');if(/^[mM]'?$/.test(e))return this;let t=e.replace(/^[mM]'?\//,"").split("/"),r=this;for(let e of t){let t=/^(\d+)('?)$/.exec(e),n=t&&t[1];if(!t||3!==t.length||"string"!=typeof n)throw Error(`Invalid child index: ${e}`);let a=+n;if(!Number.isSafeInteger(a)||a>=y)throw Error("Invalid index");"'"===t[2]&&(a+=y),r=r.deriveChild(a)}return r}deriveChild(e){if(!this.pubKey||!this.chainCode)throw Error("No publicKey or chainCode set");let t=x(e);if(e>=y){let e=this.privateKey;if(!e)throw Error("Could not derive hardened child key");t=(0,f.concatBytes)(new Uint8Array([0]),e,t)}else t=(0,f.concatBytes)(this.pubKey,t);let r=(0,a.hmac)(o.sha512,this.chainCode,t),n=b(r.slice(0,32)),i=r.slice(32);if(!(0,d.secp256k1).utils.isValidPrivateKey(n))throw Error("Tweak bigger than curve order");let s={versions:this.versions,chainCode:i,depth:this.depth+1,parentFingerprint:this.fingerprint,index:e};try{if(this.privateKey){let e=(0,l.mod)(this.privKey+n,d.secp256k1.CURVE.n);if(!(0,d.secp256k1).utils.isValidPrivateKey(e))throw Error("The tweak was out of range or the resulted private key is invalid");s.privateKey=e}else{let e=h.fromHex(this.pubKey).add(h.fromPrivateKey(n));if(e.equals(h.ZERO))throw Error("The tweak was equal to negative P, which made the result key invalid");s.publicKey=e.toRawBytes(!0)}return new E(s)}catch(t){return this.deriveChild(e+1)}}sign(e){if(!this.privateKey)throw Error("No privateKey set!");return(0,c.bytes)(e,32),(0,d.secp256k1).sign(e,this.privKey).toCompactRawBytes()}verify(e,t){let r;if((0,c.bytes)(e,32),(0,c.bytes)(t,64),!this.publicKey)throw Error("No publicKey set!");try{r=(0,d.secp256k1).Signature.fromCompact(t)}catch(e){return!1}return(0,d.secp256k1).verify(r,e,this.publicKey)}wipePrivateData(){return this.privKey=void 0,this.privKeyBytes&&(this.privKeyBytes.fill(0),this.privKeyBytes=void 0),this}toJSON(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}}serialize(e,t){if(!this.chainCode)throw Error("No chainCode set");return(0,c.bytes)(t,33),(0,f.concatBytes)(x(e),new Uint8Array([this.depth]),x(this.parentFingerprint),x(this.index),this.chainCode,t)}}},{"@noble/hashes/hmac":"fBg5u","@noble/hashes/ripemd160":"gjrvR","@noble/hashes/sha256":"agPjf","@noble/hashes/sha512":"4aMkd","@noble/hashes/_assert":"8plnA","@noble/hashes/utils":"7z4fq","@noble/curves/secp256k1":"3Ka9u","@noble/curves/abstract/modular":"2bsk6","@scure/base":"3fgTM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gjrvR:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ripemd160=r.RIPEMD160=void 0;let n=e("7fc4ec46c688a393"),a=e("f56f80a209147498"),i=/* @__PURE__ */new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),s=/* @__PURE__ */new Uint8Array(Array(16).fill(0).map((e,t)=>t)),o=/* @__PURE__ */s.map(e=>(9*e+5)%16),c=[s],f=[o];for(let e=0;e<4;e++)for(let t of[c,f])t.push(t[e].map(e=>i[e]));let d=/* @__PURE__ */[[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(e=>new Uint8Array(e)),l=/* @__PURE__ */c.map((e,t)=>e.map(e=>d[t][e])),u=/* @__PURE__ */f.map((e,t)=>e.map(e=>d[t][e])),h=/* @__PURE__ */new Uint32Array([0,0x5a827999,0x6ed9eba1,0x8f1bbcdc,0xa953fd4e]),p=/* @__PURE__ */new Uint32Array([0x50a28be6,0x5c4dd124,0x6d703ef3,0x7a6d76e9,0]);function b(e,t,r,n){return 0===e?t^r^n:1===e?t&r|~t&n:2===e?(t|~r)^n:3===e?t&n|r&~n:t^(r|~n)}let g=/* @__PURE__ */new Uint32Array(16);class m extends n.HashMD{constructor(){super(64,20,8,!0),this.h0=0x67452301,this.h1=-0x10325477,this.h2=-0x67452302,this.h3=0x10325476,this.h4=-0x3c2d1e10}get(){let{h0:e,h1:t,h2:r,h3:n,h4:a}=this;return[e,t,r,n,a]}set(e,t,r,n,a){this.h0=0|e,this.h1=0|t,this.h2=0|r,this.h3=0|n,this.h4=0|a}process(e,t){for(let r=0;r<16;r++,t+=4)g[r]=e.getUint32(t,!0);let r=0|this.h0,n=r,i=0|this.h1,s=i,o=0|this.h2,d=o,m=0|this.h3,y=m,v=0|this.h4,w=v;for(let e=0;e<5;e++){let t=4-e,x=h[e],E=p[e],A=c[e],_=f[e],T=l[e],I=u[e];for(let t=0;t<16;t++){let n=(0,a.rotl)(r+b(e,i,o,m)+g[A[t]]+x,T[t])+v|0;r=v,v=m,m=0|(0,a.rotl)(o,10),o=i,i=n}for(let e=0;e<16;e++){let r=(0,a.rotl)(n+b(t,s,d,y)+g[_[e]]+E,I[e])+w|0;n=w,w=y,y=0|(0,a.rotl)(d,10),d=s,s=r}}this.set(this.h1+o+y|0,this.h2+m+w|0,this.h3+v+n|0,this.h4+r+s|0,this.h0+i+d|0)}roundClean(){g.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}r.RIPEMD160=m,r.ripemd160=(0,a.wrapConstructor)(()=>new m)},{"7fc4ec46c688a393":"lVY2T",f56f80a209147498:"7z4fq"}],"3Ka9u":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encodeToCurve=r.hashToCurve=r.schnorr=r.secp256k1=void 0;/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("6a854b4117cccdd6"),a=e("d0353a800c4e9079"),i=e("95d2f6d78b78311d"),s=e("a052774cd667f9fc"),o=e("f3ff7cadd1f4231b"),c=e("3e9e09bc2b734483"),f=e("48370adfd4ec78d2"),d=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),l=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),u=BigInt(1),h=BigInt(2),p=(e,t)=>(e+t/h)/t;function b(e){let t=BigInt(3),r=BigInt(6),n=BigInt(11),a=BigInt(22),i=BigInt(23),s=BigInt(44),c=BigInt(88),f=e*e*e%d,l=f*f*e%d,u=(0,o.pow2)(l,t,d)*l%d,p=(0,o.pow2)(u,t,d)*l%d,b=(0,o.pow2)(p,h,d)*f%d,m=(0,o.pow2)(b,n,d)*b%d,y=(0,o.pow2)(m,a,d)*m%d,v=(0,o.pow2)(y,s,d)*y%d,w=(0,o.pow2)(v,c,d)*v%d,x=(0,o.pow2)(w,s,d)*y%d,E=(0,o.pow2)(x,t,d)*l%d,A=(0,o.pow2)(E,i,d)*m%d,_=(0,o.pow2)(A,r,d)*f%d,T=(0,o.pow2)(_,h,d);if(!g.eql(g.sqr(T),e))throw Error("Cannot find square root");return T}let g=(0,o.Field)(d,void 0,void 0,{sqrt:b});r.secp256k1=(0,i.createCurve)({a:BigInt(0),b:BigInt(7),Fp:g,n:l,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{let t=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-u*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),n=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),a=BigInt("0x100000000000000000000000000000000"),i=p(t*e,l),s=p(-r*e,l),c=(0,o.mod)(e-i*t-s*n,l),f=(0,o.mod)(-i*r-s*t,l),d=c>a,h=f>a;if(d&&(c=l-c),h&&(f=l-f),c>a||f>a)throw Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:d,k1:c,k2neg:h,k2:f}}}},n.sha256);let m=BigInt(0),y=e=>"bigint"==typeof e&&m"bigint"==typeof e&&me.charCodeAt(0)));r=(0,c.concatBytes)(t,t),w[e]=r}return(0,n.sha256)((0,c.concatBytes)(r,...t))}let E=e=>e.toRawBytes(!0).slice(1),A=e=>(0,c.numberToBytesBE)(e,32),_=e=>(0,o.mod)(e,d),T=e=>(0,o.mod)(e,l),I=r.secp256k1.ProjectivePoint,S=(e,t,r)=>I.BASE.multiplyAndAddUnsafe(e,t,r);function C(e){let t=r.secp256k1.utils.normPrivateKeyToScalar(e),n=I.fromPrivateKey(t);return{scalar:n.hasEvenY()?t:T(-t),bytes:E(n)}}function k(e){if(!y(e))throw Error("bad x: need 0 < x < p");let t=_(e*e),r=b(_(t*e+BigInt(7)));r%h!==m&&(r=_(-r));let n=new I(e,r,u);return n.assertValidity(),n}function R(...e){return T((0,c.bytesToNumberBE)(x("BIP0340/challenge",...e)))}function M(e,t,r){let n=(0,c.ensureBytes)("signature",e,64),a=(0,c.ensureBytes)("message",t),i=(0,c.ensureBytes)("publicKey",r,32);try{let e=k((0,c.bytesToNumberBE)(i)),t=(0,c.bytesToNumberBE)(n.subarray(0,32));if(!y(t))return!1;let r=(0,c.bytesToNumberBE)(n.subarray(32,64));if(!v(r))return!1;let s=R(A(t),E(e),a),o=S(e,r,T(-s));if(!o||!o.hasEvenY()||o.toAffine().x!==t)return!1;return!0}catch(e){return!1}}r.schnorr={getPublicKey:function(e){return C(e).bytes},sign:function(e,t,r=(0,a.randomBytes)(32)){let n=(0,c.ensureBytes)("message",e),{bytes:i,scalar:s}=C(t),o=(0,c.ensureBytes)("auxRand",r,32),f=A(s^(0,c.bytesToNumberBE)(x("BIP0340/aux",o))),d=x("BIP0340/nonce",f,i,n),l=T((0,c.bytesToNumberBE)(d));if(l===m)throw Error("sign failed: k is zero");let{bytes:u,scalar:h}=C(l),p=R(u,i,n),b=new Uint8Array(64);if(b.set(u,0),b.set(A(T(h+p*s)),32),!M(b,n,i))throw Error("sign: Invalid signature produced");return b},verify:M,utils:{randomPrivateKey:r.secp256k1.utils.randomPrivateKey,lift_x:k,pointToBytes:E,numberToBytesBE:c.numberToBytesBE,bytesToNumberBE:c.bytesToNumberBE,taggedHash:x,mod:o.mod}};let B=(0,s.isogenyMap)(g,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map(e=>e.map(e=>BigInt(e)))),P=(0,f.mapToCurveSimpleSWU)(g,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:g.create(BigInt("-11"))}),O=(0,s.createHasher)(r.secp256k1.ProjectivePoint,e=>{let{x:t,y:r}=P(g.create(e[0]));return B(t,r)},{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:g.ORDER,m:1,k:128,expand:"xmd",hash:n.sha256});r.hashToCurve=O.hashToCurve,r.encodeToCurve=O.encodeToCurve},{"6a854b4117cccdd6":"agPjf",d0353a800c4e9079:"7z4fq","95d2f6d78b78311d":"bBwSz",a052774cd667f9fc:"7Q6wD",f3ff7cadd1f4231b:"2bsk6","3e9e09bc2b734483":"lbfQ0","48370adfd4ec78d2":"bkjUQ"}],bBwSz:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getHash=s,r.createCurve=function(e,t){let r=t=>(0,i.weierstrass)({...e,...s(t)});return Object.freeze({...r(t),create:r})};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("d5828d7a2a456761"),a=e("73d26d69b2d03f5c"),i=e("22fa0b96f1544e58");function s(e){return{hash:e,hmac:(t,...r)=>(0,n.hmac)(e,t,(0,a.concatBytes)(...r)),randomBytes:a.randomBytes}}},{d5828d7a2a456761:"fBg5u","73d26d69b2d03f5c":"7z4fq","22fa0b96f1544e58":"bkjUQ"}],bkjUQ:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.DER=void 0,r.weierstrassPoints=p,r.weierstrass=function(e){let t=function(e){let t=(0,n.validateBasic)(e);return i.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:o,n:c}=t,l=o.BYTES+1,u=2*o.BYTES+1;function h(e){return a.mod(e,c)}function b(e){return a.invert(e,c)}let{ProjectivePoint:g,normPrivateKeyToScalar:m,weierstrassEquation:y,isWithinCurveOrder:v}=p({...t,toBytes(e,t,r){let n=t.toAffine(),a=o.toBytes(n.x),s=i.concatBytes;return r?s(Uint8Array.from([t.hasEvenY()?2:3]),a):s(Uint8Array.from([4]),a,o.toBytes(n.y))},fromBytes(e){let t=e.length,r=e[0],n=e.subarray(1);if(t===l&&(2===r||3===r)){let e;let t=i.bytesToNumberBE(n);if(!(fi.bytesToHex(i.numberToBytesBE(e,t.nByteLength)),x=(e,t,r)=>i.bytesToNumberBE(e.slice(t,r));class E{constructor(e,t,r){this.r=e,this.s=t,this.recovery=r,this.assertValidity()}static fromCompact(e){let r=t.nByteLength;return new E(x(e=(0,s.ensureBytes)("compactSignature",e,2*r),0,r),x(e,r,2*r))}static fromDER(e){let{r:t,s:n}=r.DER.toSig((0,s.ensureBytes)("DER",e));return new E(t,n)}assertValidity(){if(!v(this.r))throw Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){let{r,s:n,recovery:a}=this,i=T((0,s.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");let c=2===a||3===a?r+t.n:r;if(c>=o.ORDER)throw Error("recovery id 2 or 3 invalid");let f=(1&a)==0?"02":"03",d=g.fromHex(f+w(c)),l=b(c),u=h(-i*l),p=h(n*l),m=g.BASE.multiplyAndAddUnsafe(d,u,p);if(!m)throw Error("point at infinify");return m.assertValidity(),m}hasHighS(){return this.s>c>>d}normalizeS(){return this.hasHighS()?new E(this.r,h(-this.s),this.recovery):this}toDERRawBytes(){return i.hexToBytes(this.toDERHex())}toDERHex(){return r.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return i.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}function A(e){let t=i.isBytes(e),r="string"==typeof e,n=(t||r)&&e.length;return t?n===l||n===u:r?n===2*l||n===2*u:e instanceof g}let _=t.bits2int||function(e){let r=i.bytesToNumberBE(e),n=8*e.length-t.nBitLength;return n>0?r>>BigInt(n):r},T=t.bits2int_modN||function(e){return h(_(e))},I=i.bitMask(t.nBitLength);function S(e){if("bigint"!=typeof e)throw Error("bigint expected");if(!(f<=e&&ee in n))throw Error("sign() legacy options not supported");let{hash:a,randomBytes:l}=t,{lowS:u,prehash:p,extraEntropy:y}=n;null==u&&(u=!0),e=(0,s.ensureBytes)("msgHash",e),p&&(e=(0,s.ensureBytes)("prehashed msgHash",a(e)));let w=T(e),x=m(r),A=[S(x),S(w)];if(null!=y&&!1!==y){let e=!0===y?l(o.BYTES):y;A.push((0,s.ensureBytes)("extraEntropy",e))}return{seed:i.concatBytes(...A),k2sig:function(e){let t=_(e);if(!v(t))return;let r=b(t),n=g.BASE.multiply(t).toAffine(),a=h(n.x);if(a===f)return;let i=h(r*h(w+a*x));if(i===f)return;let s=(n.x===a?0:2)|Number(n.y&d),o=i;if(u&&i>c>>d)o=i>c>>d?h(-i):i,s^=1;return new E(a,o,s)}}}(e,r,n);return i.createHmacDrbg(t.hash.outputLen,t.nByteLength,t.hmac)(a,l)},verify:function(e,n,a,o=k){let c,f;if(n=(0,s.ensureBytes)("msgHash",n),a=(0,s.ensureBytes)("publicKey",a),"strict"in o)throw Error("options.strict was renamed to lowS");let{lowS:d,prehash:l}=o;try{if("string"==typeof e||i.isBytes(e))try{f=E.fromDER(e)}catch(t){if(!(t instanceof r.DER.Err))throw t;f=E.fromCompact(e)}else if("object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s){let{r:t,s:r}=e;f=new E(t,r)}else throw Error("PARSE");c=g.fromHex(a)}catch(e){if("PARSE"===e.message)throw Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(d&&f.hasHighS())return!1;l&&(n=t.hash(n));let{r:u,s:p}=f,m=T(n),y=b(p),v=h(m*y),w=h(u*y),x=g.BASE.multiplyAndAddUnsafe(c,v,w)?.toAffine();return!!x&&h(x.x)===u},ProjectivePoint:g,Signature:E,utils:{isValidPrivateKey(e){try{return m(e),!0}catch(e){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{let e=a.getMinHashLength(t.n);return a.mapHashToField(t.randomBytes(e),t.n)},precompute:(e=8,t=g.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)}}},r.SWUFpSqrtRatio=b,r.mapToCurveSimpleSWU=function(e,t){if(a.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw Error("mapToCurveSimpleSWU: invalid opts");let r=b(e,t.Z);if(!e.isOdd)throw Error("Fp.isOdd is not implemented!");return n=>{let a,i,s,o,c,f,d,l;a=e.sqr(n),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),s=e.add(i,e.ONE),s=e.mul(s,t.B),o=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),o=e.mul(o,t.A),i=e.sqr(s),f=e.sqr(o),c=e.mul(f,t.A),i=e.add(i,c),i=e.mul(i,s),f=e.mul(f,o),c=e.mul(f,t.B),i=e.add(i,c),d=e.mul(a,s);let{isValid:u,value:h}=r(i,f);l=e.mul(a,n),l=e.mul(l,h),d=e.cmov(d,s,u),l=e.cmov(l,h,u);let p=e.isOdd(n)===e.isOdd(l);return l=e.cmov(e.neg(l),l,p),{x:d=e.div(d,o),y:l}}};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("d5b3d5b65a55faa7"),a=e("661a6185eb29200c"),i=e("20654eeadb1e8d38"),s=e("20654eeadb1e8d38"),{bytesToNumberBE:o,hexToBytes:c}=i;r.DER={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(e){let{Err:t}=r.DER;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");let n=e[1],a=e.subarray(2,n+2);if(!n||a.length!==n)throw new t("Invalid signature integer: wrong length");if(128&a[0])throw new t("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:o(a),l:e.subarray(n+2)}},toSig(e){let{Err:t}=r.DER,n="string"==typeof e?c(e):e;i.abytes(n);let a=n.length;if(a<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==a-2)throw new t("Invalid signature: incorrect length");let{d:s,l:o}=r.DER._parseInt(n.subarray(2)),{d:f,l:d}=r.DER._parseInt(o);if(d.length)throw new t("Invalid signature: left bytes after parsing");return{r:s,s:f}},hexFromSig(e){let t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,r=e=>{let t=e.toString(16);return 1&t.length?`0${t}`:t},n=t(r(e.s)),a=t(r(e.r)),i=n.length/2,s=a.length/2,o=r(i),c=r(s);return`30${r(s+i+4)}02${c}${a}02${o}${n}`}};let f=BigInt(0),d=BigInt(1),l=BigInt(2),u=BigInt(3),h=BigInt(4);function p(e){let t=function(e){let t=(0,n.validateBasic)(e);i.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});let{endo:r,Fp:a,a:s}=t;if(r){if(!a.eql(s,a.ZERO))throw Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!=typeof r||"bigint"!=typeof r.beta||"function"!=typeof r.splitScalar)throw Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:r}=t,o=t.toBytes||((e,t,n)=>{let a=t.toAffine();return i.concatBytes(Uint8Array.from([4]),r.toBytes(a.x),r.toBytes(a.y))}),c=t.fromBytes||(e=>{let t=e.subarray(1);return{x:r.fromBytes(t.subarray(0,r.BYTES)),y:r.fromBytes(t.subarray(r.BYTES,2*r.BYTES))}});function l(e){let{a:n,b:a}=t,i=r.sqr(e),s=r.mul(i,e);return r.add(r.add(s,r.mul(e,n)),a)}if(!r.eql(r.sqr(t.Gy),l(t.Gx)))throw Error("bad generator point: equation left != right");function h(e){return"bigint"==typeof e&&fr.eql(e,r.ZERO);return a(t)&&a(n)?y.ZERO:new y(t,n,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)}static fromHex(e){let t=y.fromAffine(c((0,s.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,g.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!r.is0(this.py))return;throw Error("bad point: ZERO")}let{x:e,y:n}=this.toAffine();if(!r.isValid(e)||!r.isValid(n))throw Error("bad point: x or y not FE");let a=r.sqr(n),i=l(e);if(!r.eql(a,i))throw Error("bad point: equation left != right");if(!this.isTorsionFree())throw Error("bad point: not in prime-order subgroup")}hasEvenY(){let{y:e}=this.toAffine();if(r.isOdd)return!r.isOdd(e);throw Error("Field doesn't support isOdd")}equals(e){m(e);let{px:t,py:n,pz:a}=this,{px:i,py:s,pz:o}=e,c=r.eql(r.mul(t,o),r.mul(i,a)),f=r.eql(r.mul(n,o),r.mul(s,a));return c&&f}negate(){return new y(this.px,r.neg(this.py),this.pz)}double(){let{a:e,b:n}=t,a=r.mul(n,u),{px:i,py:s,pz:o}=this,c=r.ZERO,f=r.ZERO,d=r.ZERO,l=r.mul(i,i),h=r.mul(s,s),p=r.mul(o,o),b=r.mul(i,s);return b=r.add(b,b),d=r.mul(i,o),d=r.add(d,d),c=r.mul(e,d),f=r.mul(a,p),f=r.add(c,f),c=r.sub(h,f),f=r.add(h,f),f=r.mul(c,f),c=r.mul(b,c),d=r.mul(a,d),p=r.mul(e,p),b=r.sub(l,p),b=r.mul(e,b),b=r.add(b,d),d=r.add(l,l),l=r.add(d,l),l=r.add(l,p),l=r.mul(l,b),f=r.add(f,l),p=r.mul(s,o),p=r.add(p,p),l=r.mul(p,b),c=r.sub(c,l),d=r.mul(p,h),d=r.add(d,d),new y(c,f,d=r.add(d,d))}add(e){m(e);let{px:n,py:a,pz:i}=this,{px:s,py:o,pz:c}=e,f=r.ZERO,d=r.ZERO,l=r.ZERO,h=t.a,p=r.mul(t.b,u),b=r.mul(n,s),g=r.mul(a,o),v=r.mul(i,c),w=r.add(n,a),x=r.add(s,o);w=r.mul(w,x),x=r.add(b,g),w=r.sub(w,x),x=r.add(n,i);let E=r.add(s,c);return x=r.mul(x,E),E=r.add(b,v),x=r.sub(x,E),E=r.add(a,i),f=r.add(o,c),E=r.mul(E,f),f=r.add(g,v),E=r.sub(E,f),l=r.mul(h,x),f=r.mul(p,v),l=r.add(f,l),f=r.sub(g,l),l=r.add(g,l),d=r.mul(f,l),g=r.add(b,b),g=r.add(g,b),v=r.mul(h,v),x=r.mul(p,x),g=r.add(g,v),v=r.sub(b,v),v=r.mul(h,v),x=r.add(x,v),b=r.mul(g,x),d=r.add(d,b),b=r.mul(E,x),f=r.mul(w,f),f=r.sub(f,b),b=r.mul(w,g),l=r.mul(E,l),new y(f,d,l=r.add(l,b))}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return w.wNAFCached(this,g,e,e=>{let t=r.invertBatch(e.map(e=>e.pz));return e.map((e,r)=>e.toAffine(t[r])).map(y.fromAffine)})}multiplyUnsafe(e){let n=y.ZERO;if(e===f)return n;if(p(e),e===d)return this;let{endo:a}=t;if(!a)return w.unsafeLadder(this,e);let{k1neg:i,k1:s,k2neg:o,k2:c}=a.splitScalar(e),l=n,u=n,h=this;for(;s>f||c>f;)s&d&&(l=l.add(h)),c&d&&(u=u.add(h)),h=h.double(),s>>=d,c>>=d;return i&&(l=l.negate()),o&&(u=u.negate()),u=new y(r.mul(u.px,a.beta),u.py,u.pz),l.add(u)}multiply(e){let n,a;p(e);let{endo:i}=t;if(i){let{k1neg:t,k1:s,k2neg:o,k2:c}=i.splitScalar(e),{p:f,f:d}=this.wNAF(s),{p:l,f:u}=this.wNAF(c);f=w.constTimeNegate(t,f),l=w.constTimeNegate(o,l),l=new y(r.mul(l.px,i.beta),l.py,l.pz),n=f.add(l),a=d.add(u)}else{let{p:t,f:r}=this.wNAF(e);n=t,a=r}return y.normalizeZ([n,a])[0]}multiplyAndAddUnsafe(e,t,r){let n=y.BASE,a=(e,t)=>t!==f&&t!==d&&e.equals(n)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,r));return i.is0()?void 0:i}toAffine(e){let{px:t,py:n,pz:a}=this,i=this.is0();null==e&&(e=i?r.ONE:r.inv(a));let s=r.mul(t,e),o=r.mul(n,e),c=r.mul(a,e);if(i)return{x:r.ZERO,y:r.ZERO};if(!r.eql(c,r.ONE))throw Error("invZ was invalid");return{x:s,y:o}}isTorsionFree(){let{h:e,isTorsionFree:r}=t;if(e===d)return!0;if(r)return r(y,this);throw Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){let{h:e,clearCofactor:r}=t;return e===d?this:r?r(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return this.assertValidity(),o(y,this,e)}toHex(e=!0){return i.bytesToHex(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,r.ONE),y.ZERO=new y(r.ZERO,r.ONE,r.ZERO);let v=t.nBitLength,w=(0,n.wNAF)(y,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:b,weierstrassEquation:l,isWithinCurveOrder:h}}function b(e,t){let r=e.ORDER,n=f;for(let e=r-d;e%l===f;e/=l)n+=d;let a=n,i=l<{let n=b,s=e.pow(r,p),o=e.sqr(s);o=e.mul(o,r);let f=e.mul(t,o);f=e.pow(f,c),f=e.mul(f,s),s=e.mul(f,r),o=e.mul(f,t);let u=e.mul(o,s);f=e.pow(u,i);let h=e.eql(f,e.ONE);s=e.mul(o,g),f=e.mul(u,n),o=e.cmov(s,o,h),u=e.cmov(f,u,h);for(let t=a;t>d;t--){let r=t-l;r=l<{let i=e.sqr(a),s=e.mul(t,a);i=e.mul(i,s);let o=e.pow(i,r);o=e.mul(o,s);let c=e.mul(o,n),f=e.mul(e.sqr(o),a),d=e.eql(f,t),l=e.cmov(c,o,d);return{isValid:d,value:l}}}return m}},{d5b3d5b65a55faa7:"fVimh","661a6185eb29200c":"2bsk6","20654eeadb1e8d38":"lbfQ0"}],fVimh:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wNAF=function(e,t){let r=(e,t)=>{let r=t.negate();return e?r:t},n=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:r,unsafeLadder(t,r){let n=e.ZERO,a=t;for(;r>i;)r&s&&(n=n.add(a)),a=a.double(),r>>=s;return n},precomputeWindow(e,t){let{windows:r,windowSize:a}=n(t),i=[],s=e,o=s;for(let e=0;e>=h,n>c&&(n-=u,i+=s);let o=t+Math.abs(n)-1,p=e%2!=0,b=n<0;0===n?d=d.add(r(p,a[t])):f=f.add(r(b,a[o]))}return{p:f,f:d}},wNAFCached(e,t,r,n){let a=e._WINDOW_SIZE||1,i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,n(i))),this.wNAF(a,i,r)}}},r.validateBasic=function(e){return(0,n.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,n.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("62c45f0f4388c499"),a=e("7d8850da65dc3414"),i=BigInt(0),s=BigInt(1)},{"62c45f0f4388c499":"2bsk6","7d8850da65dc3414":"lbfQ0"}],"2bsk6":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isNegativeLE=void 0,r.mod=l,r.pow=u,r.pow2=function(e,t,r){let n=e;for(;t-- >a;)n*=n,n%=r;return n},r.invert=h,r.tonelliShanks=p,r.FpSqrt=b,r.validateField=function(e){let t=g.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,n.validateObject)(e,t)},r.FpPow=m,r.FpInvertBatch=y,r.FpDiv=function(e,t,r){return e.mul(t,"bigint"==typeof r?h(r,e.ORDER):e.inv(r))},r.FpIsSquare=function(e){let t=(e.ORDER-i)/s;return r=>{let n=e.pow(r,t);return e.eql(n,e.ZERO)||e.eql(n,e.ONE)}},r.nLength=v,r.Field=function(e,t,r=!1,s={}){if(e<=a)throw Error(`Expected Field ORDER > 0, got ${e}`);let{nBitLength:o,nByteLength:c}=v(e,t);if(c>2048)throw Error("Field lengths over 2048 bytes are not supported");let f=b(e),d=Object.freeze({ORDER:e,BITS:o,BYTES:c,MASK:(0,n.bitMask)(o),ZERO:a,ONE:i,create:t=>l(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error(`Invalid field element: expected bigint, got ${typeof t}`);return a<=t&&te===a,isOdd:e=>(e&i)===i,neg:t=>l(-t,e),eql:(e,t)=>e===t,sqr:t=>l(t*t,e),add:(t,r)=>l(t+r,e),sub:(t,r)=>l(t-r,e),mul:(t,r)=>l(t*r,e),pow:(e,t)=>m(d,e,t),div:(t,r)=>l(t*h(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>h(t,e),sqrt:s.sqrt||(e=>f(d,e)),invertBatch:e=>y(d,e),cmov:(e,t,r)=>r?t:e,toBytes:e=>r?(0,n.numberToBytesLE)(e,c):(0,n.numberToBytesBE)(e,c),fromBytes:e=>{if(e.length!==c)throw Error(`Fp.fromBytes: expected ${c}, got ${e.length}`);return r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e)}});return Object.freeze(d)},r.FpSqrtOdd=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?r:e.neg(r)},r.FpSqrtEven=function(e,t){if(!e.isOdd)throw Error("Field doesn't have isOdd");let r=e.sqrt(t);return e.isOdd(r)?e.neg(r):r},r.hashToPrivateScalar=function(e,t,r=!1){let a=(e=(0,n.ensureBytes)("privateHash",e)).length,s=v(t).nByteLength+8;if(s<24||a1024)throw Error(`hashToPrivateScalar: expected ${s}-1024 bytes of input, got ${a}`);return l(r?(0,n.bytesToNumberLE)(e):(0,n.bytesToNumberBE)(e),t-i)+i},r.getFieldBytesLength=w,r.getMinHashLength=x,r.mapHashToField=function(e,t,r=!1){let a=e.length,s=w(t),o=x(t);if(a<16||a1024)throw Error(`expected ${o}-1024 bytes of input, got ${a}`);let c=l(r?(0,n.bytesToNumberBE)(e):(0,n.bytesToNumberLE)(e),t-i)+i;return r?(0,n.numberToBytesLE)(c,s):(0,n.numberToBytesBE)(c,s)};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=e("cf7535c7b02a3fcc"),a=BigInt(0),i=BigInt(1),s=BigInt(2),o=BigInt(3),c=BigInt(4),f=BigInt(5),d=BigInt(8);function l(e,t){let r=e%t;return r>=a?r:t+r}function u(e,t,r){if(r<=a||t 0");if(r===i)return a;let n=i;for(;t>a;)t&i&&(n=n*e%r),e=e*e%r,t>>=i;return n}function h(e,t){if(e===a||t<=a)throw Error(`invert: expected positive integers, got n=${e} mod=${t}`);let r=l(e,t),n=t,s=a,o=i,c=i,f=a;for(;r!==a;){let e=n/r,t=n%r,a=s-c*e,i=o-f*e;n=r,r=t,s=c,o=f,c=a,f=i}if(n!==i)throw Error("invert: does not exist");return l(s,t)}function p(e){let t,r,n;let o=(e-i)/s;for(t=e-i,r=0;t%s===a;t/=s,r++);for(n=s;n(l(e,t)&i)===i;let g=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,r){if(r 0");if(r===a)return e.ONE;if(r===i)return t;let n=e.ONE,s=t;for(;r>a;)r&i&&(n=e.mul(n,s)),s=e.sqr(s),r>>=i;return n}function y(e,t){let r=Array(t.length),n=t.reduce((t,n,a)=>e.is0(n)?t:(r[a]=t,e.mul(t,n)),e.ONE),a=e.inv(n);return t.reduceRight((t,n,a)=>e.is0(n)?t:(r[a]=e.mul(t,r[a]),e.mul(t,n)),a),r}function v(e,t){let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function w(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function x(e){let t=w(e);return t+Math.ceil(t/2)}},{cf7535c7b02a3fcc:"lbfQ0"}],lbfQ0:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.bitMask=void 0,r.isBytes=s,r.abytes=o,r.bytesToHex=f,r.numberToHexUnpadded=d,r.hexToNumber=l,r.hexToBytes=p,r.bytesToNumberBE=function(e){return l(f(e))},r.bytesToNumberLE=function(e){return o(e),l(f(Uint8Array.from(e).reverse()))},r.numberToBytesBE=b,r.numberToBytesLE=function(e,t){return b(e,t).reverse()},r.numberToVarBytesBE=function(e){return p(d(e))},r.ensureBytes=function(e,t,r){let n;if("string"==typeof t)try{n=p(t)}catch(r){throw Error(`${e} must be valid hex string, got "${t}". Cause: ${r}`)}else if(s(t))n=Uint8Array.from(t);else throw Error(`${e} must be hex string or Uint8Array`);let a=n.length;if("number"==typeof r&&a!==r)throw Error(`${e} expected ${r} bytes, got ${a}`);return n},r.concatBytes=g,r.equalBytes=function(e,t){if(e.length!==t.length)return!1;let r=0;for(let n=0;nn;e>>=a,t+=1);return t},r.bitGet=function(e,t){return e>>BigInt(t)&a},r.bitSet=function(e,t,r){return e|(r?a:n)<{n.fill(1),a.fill(0),i=0},o=(...e)=>r(a,n,...e),c=(e=m())=>{a=o(y([0]),e),n=o(),0!==e.length&&(a=o(y([1]),e),n=o())},f=()=>{if(i++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e{let r;for(s(),c(e);!(r=t(f()));)c();return s(),r}},r.validateObject=function(e,t,r={}){let n=(t,r,n)=>{let a=v[r];if("function"!=typeof a)throw Error(`Invalid validator "${r}", expected function`);let i=e[t];if((!n||void 0!==i)&&!a(i,e))throw Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${r}`)};for(let[e,r]of Object.entries(t))n(e,r,!1);for(let[e,t]of Object.entries(r))n(e,t,!0);return e};/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */let n=/* @__PURE__ */BigInt(0),a=/* @__PURE__ */BigInt(1),i=/* @__PURE__ */BigInt(2);function s(e){return e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name}function o(e){if(!s(e))throw Error("Uint8Array expected")}let c=/* @__PURE__ */Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function f(e){o(e);let t="";for(let r=0;r=u._0&&e<=u._9?e-u._0:e>=u._A&&e<=u._F?e-(u._A-10):e>=u._a&&e<=u._f?e-(u._a-10):void 0}function p(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw Error("padded hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,a=0;t(i<new Uint8Array(e),y=e=>Uint8Array.from(e),v={bigint:e=>"bigint"==typeof e,function:e=>"function"==typeof e,boolean:e=>"boolean"==typeof e,string:e=>"string"==typeof e,stringOrUint8Array:e=>"string"==typeof e||s(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"==typeof e&&Number.isSafeInteger(e.outputLen)}},{}],"7Q6wD":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.expand_message_xmd=c,r.expand_message_xof=f,r.hash_to_field=d,r.isogenyMap=function(e,t){let r=t.map(e=>Array.from(e).reverse());return(t,n)=>{let[a,i,s,o]=r.map(r=>r.reduce((r,n)=>e.add(e.mul(r,t),n)));return t=e.div(a,i),n=e.mul(n,e.div(s,o)),{x:t,y:n}}},r.createHasher=function(e,t,r){if("function"!=typeof t)throw Error("mapToCurve() must be defined");return{hashToCurve(n,a){let i=d(n,2,{...r,DST:r.DST,...a}),s=e.fromAffine(t(i[0])),o=e.fromAffine(t(i[1])),c=s.add(o).clearCofactor();return c.assertValidity(),c},encodeToCurve(n,a){let i=d(n,1,{...r,DST:r.encodeDST,...a}),s=e.fromAffine(t(i[0])).clearCofactor();return s.assertValidity(),s},mapToCurve(r){if(!Array.isArray(r))throw Error("mapToCurve: expected array of bigints");for(let e of r)if("bigint"!=typeof e)throw Error(`mapToCurve: expected array of bigints, got ${e} in array`);let n=e.fromAffine(t(r)).clearCofactor();return n.assertValidity(),n}}};let n=e("d73046c8459a2b3d"),a=e("b4c3835d37428f62"),i=a.bytesToNumberBE;function s(e,t){if(e<0||e>=1<<8*t)throw Error(`bad I2OSP call: value=${e} length=${t}`);let r=Array.from({length:t}).fill(0);for(let n=t-1;n>=0;n--)r[n]=255&e,e>>>=8;return new Uint8Array(r)}function o(e){if(!Number.isSafeInteger(e))throw Error("number expected")}function c(e,t,r,n){(0,a.abytes)(e),(0,a.abytes)(t),o(r),t.length>255&&(t=n((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));let{outputLen:i,blockLen:c}=n,f=Math.ceil(r/i);if(f>255)throw Error("Invalid xmd length");let d=(0,a.concatBytes)(t,s(t.length,1)),l=s(0,c),u=s(r,2),h=Array(f),p=n((0,a.concatBytes)(l,e,u,s(0,1),d));h[0]=n((0,a.concatBytes)(p,s(1,1),d));for(let e=1;e<=f;e++){let t=[function(e,t){let r=new Uint8Array(e.length);for(let n=0;n255){let e=Math.ceil(2*n/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(r>65535||t.length>255)throw Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:r}).update(e).update(s(r,2)).update(t).update(s(t.length,1)).digest()}function d(e,t,r){let s;(0,a.validateObject)(r,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});let{p:d,k:l,m:u,hash:h,expand:p,DST:b}=r;(0,a.abytes)(e),o(t);let g="string"==typeof b?(0,a.utf8ToBytes)(b):b,m=Math.ceil((d.toString(2).length+l)/8),y=t*u*m;if("xmd"===p)s=c(e,g,y,h);else if("xof"===p)s=f(e,g,y,l,h);else if("_internal_pass"===p)s=e;else throw Error('expand must be "xmd" or "xof"');let v=Array(t);for(let e=0;eb);var a=e("@ethereumjs/util"),i=e("@scure/base"),s=e("ethereum-cryptography/aes.js"),o=e("ethereum-cryptography/keccak.js"),c=e("ethereum-cryptography/pbkdf2.js"),f=e("ethereum-cryptography/scrypt.js"),d=e("ethereum-cryptography/sha256.js"),l=e("uuid");let u=(0,i.base58check)(d.sha256);function h(e,t,r){if(t.toLowerCase().startsWith("0x")&&(t=t.slice(2)),!t&&void 0===r)return t;if(r%2)throw Error("Invalid length argument, must be an even number");if("number"==typeof r&&t.length!==r)throw Error(`Invalid ${e}, string must be ${r} hex characters`);if(!/^([0-9a-f]{2})+$/i.test(t))throw Error(`Invalid ${e}, string must be ${"number"==typeof r?r:"empty or a non-zero even number of"} hex characters`);return t}function p(e,t,r){if(!(t instanceof Uint8Array)){let t="number"==typeof r?`${2*r}`:"empty or a non-zero even number of",n="number"==typeof r?` (${r} bytes)`:"";throw Error(`Invalid ${e}, must be a string (${t} hex characters) or Uint8Array${n}`)}if("number"==typeof r&&t.length!==r)throw Error(`Invalid ${e}, Uint8Array must be ${r} bytes`);return t}class b{constructor(e,t){if(this.privateKey=e,this.publicKey=t,e&&t)throw Error("Cannot supply both a private and a public key to the constructor");if(e&&!(0,a.isValidPrivate)(e))throw Error("Private key does not satisfy the curve requirements (ie. it is invalid)");if(t&&!(0,a.isValidPublic)(t))throw Error("Invalid public key")}static generate(e=!1){if(!e)return new b((0,a.randomBytes)(32));{let e=BigInt("0x088f924eeceeda7fe92e1f5b0fffffffffffffff");for(;;){let t=(0,a.randomBytes)(32);if(BigInt("0x"+(0,a.bytesToUnprefixedHex)((0,a.privateToAddress)(t)))<=e)return new b(t)}}}static generateVanityAddress(e){for(e instanceof RegExp||(e=new RegExp(e));;){let t=(0,a.randomBytes)(32),r=(0,a.privateToAddress)(t);if(e.test((0,a.bytesToUnprefixedHex)(r)))return new b(t)}}static fromPublicKey(e,t=!1){return t&&(e=(0,a.importPublic)(e)),new b(void 0,e)}static fromExtendedPublicKey(e){if("xpub"!==e.slice(0,4))throw Error("Not an extended public key");let t=u.decode(e).subarray(45);return b.fromPublicKey(t,!0)}static fromPrivateKey(e){return new b(e)}static fromExtendedPrivateKey(e){if("xprv"!==e.slice(0,4))throw Error("Not an extended private key");let t=u.decode(e);if(0!==t[45])throw Error("Invalid extended private key");return b.fromPrivateKey(t.subarray(46))}static async fromV1(e,t){let r="object"==typeof e?e:JSON.parse(e);if("1"!==r.Version)throw Error("Not a V1 Wallet");if("scrypt"!==r.Crypto.KeyHeader.Kdf)throw Error("Unsupported key derivation scheme");let n=r.Crypto.KeyHeader.KdfParams,i=(0,a.unprefixedHexToBytes)(r.Crypto.Salt),c=await function(e,t,r){let{N:n,P:a,R:i,DkLen:s}=r;return(0,f.scrypt)(e,t,n,a,i,s)}((0,a.utf8ToBytes)(t),i,n),d=(0,a.unprefixedHexToBytes)(r.Crypto.CipherText),l=(0,o.keccak256)((0,a.concatBytes)(c.subarray(16,32),d));if((0,a.bytesToUnprefixedHex)(l)!==r.Crypto.MAC)throw Error("Key derivation failed - possibly wrong passphrase");return new b(await s.decrypt(d,(0,o.keccak256)(c.subarray(0,16)).subarray(0,16),(0,a.unprefixedHexToBytes)(r.Crypto.IV),"aes-128-cbc"))}static async fromV3(e,t,r=!1){let n,i;let d="object"==typeof e?e:JSON.parse(r?e.toLowerCase():e);if(3!==d.version)throw Error("Not a V3 wallet");if("scrypt"===d.crypto.kdf)i=d.crypto.kdfparams,n=await function(e,t){let{salt:r,n,p:i,r:s,dklen:o}=t;return(0,f.scrypt)((0,a.utf8ToBytes)(e),(0,a.unprefixedHexToBytes)(r),n,i,s,o)}(t,i);else if("pbkdf2"===d.crypto.kdf){if("hmac-sha256"!==(i=d.crypto.kdfparams).prf)throw Error("Unsupported parameters to PBKDF2");n=await (0,c.pbkdf2)((0,a.utf8ToBytes)(t),(0,a.unprefixedHexToBytes)(i.salt),i.c,i.dklen,"sha256")}else throw Error("Unsupported key derivation scheme");let l=(0,a.unprefixedHexToBytes)(d.crypto.ciphertext),u=(0,o.keccak256)((0,a.concatBytes)(n.subarray(16,32),l));if((0,a.bytesToUnprefixedHex)(u)!==d.crypto.mac)throw Error("Key derivation failed - possibly wrong passphrase");return new b(await s.decrypt(l,n.subarray(0,16),(0,a.unprefixedHexToBytes)(d.crypto.cipherparams.iv),d.crypto.cipher))}static async fromEthSale(e,t){let r="object"==typeof e?e:JSON.parse(e),n=(0,a.unprefixedHexToBytes)(r.encseed),i=(0,a.utf8ToBytes)(t),f=(await (0,c.pbkdf2)(i,i,2e3,32,"sha256")).subarray(0,16),d=await s.decrypt(n.subarray(16),f,n.subarray(0,16),"aes-128-cbc",!0),l=new b((0,o.keccak256)(d));if((0,a.bytesToUnprefixedHex)(l.getAddress())!==r.ethaddr)throw Error("Decoded key mismatch - possibly wrong passphrase");return l}get pubKey(){return(void 0===this.publicKey||null===this.publicKey)&&(this.publicKey=(0,a.privateToPublic)(this.privateKey)),this.publicKey}get privKey(){if(void 0===this.privateKey||null===this.privateKey)throw Error("This is a public key only wallet");return this.privateKey}getPrivateKey(){return this.privKey}getPrivateKeyString(){return(0,a.bytesToHex)(this.privKey)}getPublicKey(){return this.pubKey}getPublicKeyString(){return(0,a.bytesToHex)(this.getPublicKey())}getAddress(){return(0,a.publicToAddress)(this.pubKey)}getAddressString(){return(0,a.bytesToHex)(this.getAddress())}getChecksumAddressString(){return(0,a.toChecksumAddress)(this.getAddressString())}async toV3(e,t){let r,n;if(void 0===this.privateKey||null===this.privateKey)throw Error("This is a public key only wallet");let i=function(e){let t={cipher:"aes-128-ctr",kdf:"scrypt",salt:(0,a.randomBytes)(32),iv:(0,a.randomBytes)(16),uuid:(0,a.randomBytes)(16),dklen:32,c:262144,n:262144,r:8,p:1};return e?("string"==typeof e.salt&&(e.salt=(0,a.unprefixedHexToBytes)(h("salt",e.salt))),"string"==typeof e.iv&&(e.iv=(0,a.unprefixedHexToBytes)(h("iv",e.iv,32))),"string"==typeof e.uuid&&(e.uuid=(0,a.unprefixedHexToBytes)(h("uuid",e.uuid,32))),e.salt&&p("salt",e.salt),e.iv&&p("iv",e.iv,16),e.uuid&&p("uuid",e.uuid,16),{...t,...e}):t}(t);switch(i.kdf){case"pbkdf2":r={dklen:i.dklen,salt:i.salt,c:i.c,prf:"hmac-sha256"},n=await (0,c.pbkdf2)((0,a.utf8ToBytes)(e),r.salt,r.c,r.dklen,"sha256");break;case"scrypt":r={dklen:i.dklen,salt:i.salt,n:i.n,p:i.p,r:i.r},n=await function(e,t){let{salt:r,n,p:i,r:s,dklen:o}=t;return(0,f.scrypt)((0,a.utf8ToBytes)(e),r,n,i,s,o)}(e,r);break;default:throw Error("Unsupported kdf")}let d=await s.encrypt(this.privKey,n.subarray(0,16),i.iv,i.cipher,!1),u=(0,o.keccak256)((0,a.concatBytes)(n.subarray(16,32),d));return{version:3,id:(0,l.v4)({random:i.uuid}),address:(0,a.bytesToUnprefixedHex)(this.getAddress()),crypto:{ciphertext:(0,a.bytesToUnprefixedHex)(d),cipherparams:{iv:(0,a.bytesToUnprefixedHex)(i.iv)},cipher:i.cipher,kdf:i.kdf,kdfparams:{...r,salt:(0,a.bytesToUnprefixedHex)(r.salt)},mac:(0,a.bytesToUnprefixedHex)(u)}}}getV3Filename(e){return["UTC--",(void 0!==e?new Date(e):new Date).toJSON().replace(/:/g,"-"),"--",(0,a.bytesToUnprefixedHex)(this.getAddress())].join("")}async toV3String(e,t){return JSON.stringify(await this.toV3(e,t))}verifyPublicKey(e){return void 0!==this.privateKey&&(0,a.equalsBytes)((0,a.privateToPublic)(this.privateKey),e)}}},{"@ethereumjs/util":"k5vG8","@scure/base":"3fgTM","ethereum-cryptography/aes.js":"8gkvt","ethereum-cryptography/keccak.js":"jFZHZ","ethereum-cryptography/pbkdf2.js":"inPLz","ethereum-cryptography/scrypt.js":"13wBA","ethereum-cryptography/sha256.js":"6U0fs",uuid:"4DAxM","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],k5vG8:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"arrayContainsArray",()=>g.arrayContainsArray),n.export(r,"fromAscii",()=>g.fromAscii),n.export(r,"fromUtf8",()=>g.fromUtf8),n.export(r,"getBinarySize",()=>g.getBinarySize),n.export(r,"getKeys",()=>g.getKeys),n.export(r,"isHexString",()=>g.isHexString),n.export(r,"padToEven",()=>g.padToEven),n.export(r,"stripHexPrefix",()=>g.stripHexPrefix),n.export(r,"toAscii",()=>g.toAscii);var a=e("./constants.js");n.exportAll(a,r);var i=e("./units.js");n.exportAll(i,r);var s=e("./account.js");n.exportAll(s,r);var o=e("./address.js");n.exportAll(o,r);var c=e("./db.js");n.exportAll(c,r);var f=e("./withdrawal.js");n.exportAll(f,r);var d=e("./signature.js");n.exportAll(d,r);var l=e("./bytes.js");n.exportAll(l,r);var u=e("./types.js");n.exportAll(u,r);var h=e("./asyncEventEmitter.js");n.exportAll(h,r);var p=e("./blobs.js");n.exportAll(p,r);var b=e("./genesis.js");n.exportAll(b,r);var g=e("./internal.js"),m=e("./kzg.js");n.exportAll(m,r);var y=e("./lock.js");n.exportAll(y,r);var v=e("./mapDB.js");n.exportAll(v,r);var w=e("./provider.js");n.exportAll(w,r);var x=e("./requests.js");n.exportAll(x,r);var E=e("./verkle.js");n.exportAll(E,r)},{"./constants.js":"f7GxE","./units.js":"5TGV0","./account.js":"6lm25","./address.js":"9zQPg","./db.js":"cdMpl","./withdrawal.js":"fhejp","./signature.js":"bOVB9","./bytes.js":"lzhQs","./types.js":"cm4mK","./asyncEventEmitter.js":"gAEU2","./blobs.js":"89TPP","./genesis.js":"6JY8s","./internal.js":"8X0WZ","./kzg.js":"02EeG","./lock.js":"kZ6I5","./mapDB.js":"ev15B","./provider.js":"hg6Th","./requests.js":"idf1A","./verkle.js":"1xbAO","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],f7GxE:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MAX_UINT64",()=>s),n.export(r,"MAX_INTEGER",()=>o),n.export(r,"MAX_INTEGER_BIGINT",()=>c),n.export(r,"SECP256K1_ORDER",()=>f),n.export(r,"SECP256K1_ORDER_DIV_2",()=>d),n.export(r,"TWO_POW256",()=>l),n.export(r,"KECCAK256_NULL_S",()=>u),n.export(r,"KECCAK256_NULL",()=>h),n.export(r,"KECCAK256_RLP_ARRAY_S",()=>p),n.export(r,"KECCAK256_RLP_ARRAY",()=>b),n.export(r,"KECCAK256_RLP_S",()=>g),n.export(r,"KECCAK256_RLP",()=>m),n.export(r,"RLP_EMPTY_STRING",()=>y),n.export(r,"MAX_WITHDRAWALS_PER_PAYLOAD",()=>v),n.export(r,"RIPEMD160_ADDRESS_STRING",()=>w),n.export(r,"BIGINT_NEG1",()=>x),n.export(r,"BIGINT_0",()=>E),n.export(r,"BIGINT_1",()=>A),n.export(r,"BIGINT_2",()=>_),n.export(r,"BIGINT_3",()=>T),n.export(r,"BIGINT_7",()=>I),n.export(r,"BIGINT_8",()=>S),n.export(r,"BIGINT_27",()=>C),n.export(r,"BIGINT_28",()=>k),n.export(r,"BIGINT_31",()=>R),n.export(r,"BIGINT_32",()=>M),n.export(r,"BIGINT_64",()=>B),n.export(r,"BIGINT_128",()=>P),n.export(r,"BIGINT_255",()=>O),n.export(r,"BIGINT_256",()=>j),n.export(r,"BIGINT_96",()=>N),n.export(r,"BIGINT_100",()=>U),n.export(r,"BIGINT_160",()=>L),n.export(r,"BIGINT_224",()=>D),n.export(r,"BIGINT_2EXP96",()=>F),n.export(r,"BIGINT_2EXP160",()=>H),n.export(r,"BIGINT_2EXP224",()=>V),n.export(r,"BIGINT_2EXP256",()=>q);var a=e("ethereum-cryptography/secp256k1.js"),i=e("./bytes.js");let s=BigInt("0xffffffffffffffff"),o=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),c=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),f=a.secp256k1.CURVE.n,d=a.secp256k1.CURVE.n/BigInt(2),l=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),u="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",h=(0,i.hexToBytes)(u),p="0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",b=(0,i.hexToBytes)(p),g="0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",m=(0,i.hexToBytes)(g),y=Uint8Array.from([128]),v=16,w="0000000000000000000000000000000000000003",x=BigInt(-1),E=BigInt(0),A=BigInt(1),_=BigInt(2),T=BigInt(3),I=BigInt(7),S=BigInt(8),C=BigInt(27),k=BigInt(28),R=BigInt(31),M=BigInt(32),B=BigInt(64),P=BigInt(128),O=BigInt(255),j=BigInt(256),N=BigInt(96),U=BigInt(100),L=BigInt(160),D=BigInt(224),F=BigInt(7922816251426434e13),H=BigInt(1461501637330903e33),V=BigInt(2695994666715064e52),q=_**j},{"ethereum-cryptography/secp256k1.js":"kGTNz","./bytes.js":"lzhQs","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kGTNz:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.secp256k1=void 0;var n=e("c5c25f4d3b241b78");Object.defineProperty(r,"secp256k1",{enumerable:!0,get:function(){return n.secp256k1}})},{c5c25f4d3b241b78:"3Ka9u"}],lzhQs:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"bytesToUtf8",()=>i.bytesToUtf8),n.export(r,"equalsBytes",()=>i.equalsBytes),n.export(r,"utf8ToBytes",()=>i.utf8ToBytes),n.export(r,"bytesToUnprefixedHex",()=>f),n.export(r,"unprefixedHexToBytes",()=>h),n.export(r,"bytesToHex",()=>b),n.export(r,"bytesToBigInt",()=>m),n.export(r,"bytesToInt",()=>y),n.export(r,"hexToBytes",()=>v),n.export(r,"intToHex",()=>w),n.export(r,"intToBytes",()=>x),n.export(r,"bigIntToBytes",()=>E),n.export(r,"zeros",()=>A),n.export(r,"setLengthLeft",()=>T),n.export(r,"setLengthRight",()=>I),n.export(r,"unpadBytes",()=>C),n.export(r,"unpadArray",()=>k),n.export(r,"unpadHex",()=>R),n.export(r,"toBytes",()=>M),n.export(r,"fromSigned",()=>B),n.export(r,"toUnsigned",()=>P),n.export(r,"addHexPrefix",()=>O),n.export(r,"short",()=>j),n.export(r,"validateNoLeadingZeroes",()=>N),n.export(r,"bigIntToHex",()=>U),n.export(r,"bigIntMax",()=>L),n.export(r,"bigIntMin",()=>D),n.export(r,"bigIntToUnpaddedBytes",()=>F),n.export(r,"bigIntToAddressBytes",()=>H),n.export(r,"intToUnpaddedBytes",()=>V),n.export(r,"compareBytes",()=>q),n.export(r,"randomBytes",()=>z),n.export(r,"concatBytes",()=>G),n.export(r,"bytesToInt32",()=>K),n.export(r,"bytesToBigInt64",()=>W),n.export(r,"int32ToBytes",()=>$),n.export(r,"bigInt64ToBytes",()=>J),n.export(r,"hexToBigInt",()=>Q);var a=e("ethereum-cryptography/random.js"),i=e("ethereum-cryptography/utils.js"),s=e("./helpers.js"),o=e("./internal.js");let c=BigInt(0),f=i.bytesToHex,d={},l={};for(let e=0;e<16;e++){let t=e,r=16*e,n=e.toString(16).toLowerCase();l[n]=t,l[n.toUpperCase()]=t,d[n]=r,d[n.toUpperCase()]=r}function u(e){let t=e.length,r=new Uint8Array(t/2);for(let n=0;n{if("0x"!==e.slice(0,2))return u((0,o.padToEven)(e));throw Error("hex string is prefixed with 0x, should be unprefixed")},p=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),b=e=>{let t="0x";if(void 0===e||0===e.length)return t;for(let r of e)t=`${t}${p[r]}`;return t},g=[];for(let e=0;e<=65535;e++)g[e]=BigInt(e);let m=(e,t=!1)=>{t&&e.reverse();let r=b(e);return"0x"===r?c:4===r.length?g[e[0]]:6===r.length?g[256*e[0]+e[1]]:BigInt(r)},y=e=>{let t=Number(m(e));if(!Number.isSafeInteger(t))throw Error("Number exceeds 53 bits");return t},v=e=>{if("string"!=typeof e)throw Error(`hex argument type ${typeof e} must be of type string`);if(!/^0x[0-9a-fA-F]*$/.test(e))throw Error(`Input must be a 0x-prefixed hexadecimal string, got ${e}`);let t=e.slice(2);return u(t.length%2==0?t:(0,o.padToEven)(t))},w=e=>{if(!Number.isSafeInteger(e)||e<0)throw Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`},x=e=>v(w(e)),E=(e,t=!1)=>{let r=M(`0x${(0,o.padToEven)(e.toString(16))}`);return t?r.reverse():r},A=e=>new Uint8Array(e),_=(e,t,r)=>r?e.length((0,s.assertIsBytes)(e),_(e,t,!1)),I=(e,t)=>((0,s.assertIsBytes)(e),_(e,t,!0)),S=e=>{let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},C=e=>((0,s.assertIsBytes)(e),S(e)),k=e=>((0,s.assertIsArray)(e),S(e)),R=e=>((0,s.assertIsHexString)(e),`0x${S((0,o.stripHexPrefix)(e))}`),M=e=>{if(null==e)return new Uint8Array;if(Array.isArray(e)||e instanceof Uint8Array)return Uint8Array.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error(`Cannot convert string to Uint8Array. toBytes only supports 0x-prefixed hex strings and this string was given: ${e}`);return v(e)}if("number"==typeof e)return x(e);if("bigint"==typeof e){if(eBigInt.asIntN(256,m(e)),P=e=>E(BigInt.asUintN(256,e)),O=e=>"string"!=typeof e?e:(0,o.isHexString)(e)?e:`0x${e}`,j=(e,t=50)=>{let r=e instanceof Uint8Array?b(e):e,n="0x"===r.slice(0,2)?t+2:t;return r.length<=n?r:r.slice(0,n)+"…"},N=e=>{for(let[t,r]of Object.entries(e))if(void 0!==r&&r.length>0&&0===r[0])throw Error(`${t} cannot have leading zeroes, received: ${b(r)}`)},U=e=>`0x${e.toString(16)}`,L=(...e)=>e.reduce((e,t)=>t>e?t:e),D=(...e)=>e.reduce((e,t)=>tC(E(e)),H=(e,t=!0)=>{let r=E(e);if(t&&r.length>20)throw Error(`Invalid address bytes length=${r.length} strict=${t}`);return T(r,20)},V=e=>C(x(e)),q=(e,t)=>{let r=m(e),n=m(t);return r>n?1:r(0,a.getRandomBytesSync)(e),G=(...e)=>{if(1===e.length)return e[0];let t=new Uint8Array(e.reduce((e,t)=>e+t.length,0));for(let r=0,n=0;r(a.default.bytes(t),e(t))};let a=n(e("6c63c6246b444821")),i=e("6ad529a91a04044a"),s=a.default.bool;r.assertBool=s;let o=a.default.bytes;r.assertBytes=o;var c=e("6ad529a91a04044a");Object.defineProperty(r,"bytesToHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(r,"toHex",{enumerable:!0,get:function(){return c.bytesToHex}}),Object.defineProperty(r,"concatBytes",{enumerable:!0,get:function(){return c.concatBytes}}),Object.defineProperty(r,"createView",{enumerable:!0,get:function(){return c.createView}}),Object.defineProperty(r,"utf8ToBytes",{enumerable:!0,get:function(){return c.utf8ToBytes}}),r.crypto=(()=>{let e="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,r="function"==typeof t.require&&t.require.bind(t);return{node:r&&!e?r("crypto"):void 0,web:e}})()},{"6c63c6246b444821":"8plnA","6ad529a91a04044a":"7z4fq"}],f7E31:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"assertIsHexString",()=>i),n.export(r,"assertIsBytes",()=>s),n.export(r,"assertIsArray",()=>o),n.export(r,"assertIsString",()=>c);var a=e("./internal.js");let i=function(e){if(!(0,a.isHexString)(e))throw Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)},s=function(e){if(!(e instanceof Uint8Array))throw Error(`This method only supports Uint8Array but input was: ${e}`)},o=function(e){if(!Array.isArray(e))throw Error(`This method only supports number arrays but input was: ${e}`)},c=function(e){if("string"!=typeof e)throw Error(`This method only supports strings but input was: ${e}`)}},{"./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8X0WZ":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isHexString",()=>i),n.export(r,"stripHexPrefix",()=>s),n.export(r,"padToEven",()=>o),n.export(r,"getBinarySize",()=>c),n.export(r,"arrayContainsArray",()=>f),n.export(r,"toAscii",()=>d),n.export(r,"fromUtf8",()=>l),n.export(r,"fromAscii",()=>u),n.export(r,"getKeys",()=>h);var a=e("./bytes.js");function i(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(void 0===t||!(t>0)||e.length===2+2*t)}let s=e=>{if("string"!=typeof e)throw Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return i(e)?e.slice(2):e};function o(e){let t=e;if("string"!=typeof t)throw Error(`[padToEven] value must be type 'string', received ${typeof t}`);return t.length%2&&(t=`0${t}`),t}function c(e){if("string"!=typeof e)throw Error(`[getBinarySize] method requires input type 'string', received ${typeof e}`);return(0,a.utf8ToBytes)(e).byteLength}function f(e,t,r){if(!0!==Array.isArray(e))throw Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"](t=>e.indexOf(t)>=0)}function d(e){let t="",r=0,n=e.length;for("0x"===e.substring(0,2)&&(r=2);ri),n.export(r,"formatBigDecimal",()=>s);var a=e("./constants.js");let i=BigInt(1e9);function s(e,t,r){t===a.BIGINT_0&&(t=a.BIGINT_1);let n=e/t,i=(e-n*t)*r/t,s=String(r).length-1-String(i).length;return`${n}.${"0".repeat(s)}${i}`}},{"./constants.js":"f7GxE","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6lm25":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Account",()=>l),n.export(r,"isValidAddress",()=>u),n.export(r,"toChecksumAddress",()=>h),n.export(r,"isValidChecksumAddress",()=>p),n.export(r,"generateAddress",()=>b),n.export(r,"generateAddress2",()=>g),n.export(r,"isValidPrivate",()=>m),n.export(r,"isValidPublic",()=>y),n.export(r,"pubToAddress",()=>v),n.export(r,"publicToAddress",()=>w),n.export(r,"privateToPublic",()=>x),n.export(r,"privateToAddress",()=>E),n.export(r,"importPublic",()=>A),n.export(r,"zeroAddress",()=>_),n.export(r,"isZeroAddress",()=>T),n.export(r,"accountBodyFromSlim",()=>I),n.export(r,"accountBodyToSlim",()=>C),n.export(r,"accountBodyToRLP",()=>k);var a=e("@ethereumjs/rlp"),i=e("ethereum-cryptography/keccak.js"),s=e("ethereum-cryptography/secp256k1.js"),o=e("./bytes.js"),c=e("./constants.js"),f=e("./helpers.js"),d=e("./internal.js");class l{constructor(e=c.BIGINT_0,t=c.BIGINT_0,r=c.KECCAK256_RLP,n=c.KECCAK256_NULL,a=null,i=0){this._nonce=null,this._balance=null,this._storageRoot=null,this._codeHash=null,this._codeSize=null,this._version=null,this._nonce=e,this._balance=t,this._storageRoot=r,this._codeHash=n,null!==a||null===n||this.isContract()||(a=0),this._codeSize=a,this._version=i,this._validate()}get version(){if(null!==this._version)return this._version;throw Error(`version=${this._version} not loaded`)}set version(e){this._version=e}get nonce(){if(null!==this._nonce)return this._nonce;throw Error(`nonce=${this._nonce} not loaded`)}set nonce(e){this._nonce=e}get balance(){if(null!==this._balance)return this._balance;throw Error(`balance=${this._balance} not loaded`)}set balance(e){this._balance=e}get storageRoot(){if(null!==this._storageRoot)return this._storageRoot;throw Error(`storageRoot=${this._storageRoot} not loaded`)}set storageRoot(e){this._storageRoot=e}get codeHash(){if(null!==this._codeHash)return this._codeHash;throw Error(`codeHash=${this._codeHash} not loaded`)}set codeHash(e){this._codeHash=e}get codeSize(){if(null!==this._codeSize)return this._codeSize;throw Error(`codeHash=${this._codeSize} not loaded`)}set codeSize(e){this._codeSize=e}static fromAccountData(e){let{nonce:t,balance:r,storageRoot:n,codeHash:a}=e;if(null===t||null===r||null===n||null===a)throw Error("Partial fields not supported in fromAccountData");return new l(void 0!==t?(0,o.bytesToBigInt)((0,o.toBytes)(t)):void 0,void 0!==r?(0,o.bytesToBigInt)((0,o.toBytes)(r)):void 0,void 0!==n?(0,o.toBytes)(n):void 0,void 0!==a?(0,o.toBytes)(a):void 0)}static fromPartialAccountData(e){let{nonce:t,balance:r,storageRoot:n,codeHash:a,codeSize:i,version:s}=e;if(null===t&&null===r&&null===n&&null===a&&null===i&&null===s)throw Error("All partial fields null");return new l(null!=t?(0,o.bytesToBigInt)((0,o.toBytes)(t)):t,null!=r?(0,o.bytesToBigInt)((0,o.toBytes)(r)):r,null!=n?(0,o.toBytes)(n):n,null!=a?(0,o.toBytes)(a):a,null!=i?(0,o.bytesToInt)((0,o.toBytes)(i)):i,null!=s?(0,o.bytesToInt)((0,o.toBytes)(s)):s)}static fromRlpSerializedAccount(e){let t=(0,a.RLP).decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromRlpSerializedPartialAccount(e){let t=(0,a.RLP).decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");let r=null;if(Array.isArray(t[0])){let e=(0,o.bytesToInt)(t[0][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for nonce`);1===e&&(r=(0,o.bytesToBigInt)(t[0][1]))}else throw Error("Invalid partial nonce encoding. Must be array");let n=null;if(Array.isArray(t[1])){let e=(0,o.bytesToInt)(t[1][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for balance`);1===e&&(n=(0,o.bytesToBigInt)(t[1][1]))}else throw Error("Invalid partial balance encoding. Must be array");let i=null;if(Array.isArray(t[2])){let e=(0,o.bytesToInt)(t[2][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for storageRoot`);1===e&&(i=t[2][1])}else throw Error("Invalid partial storageRoot encoding. Must be array");let s=null;if(Array.isArray(t[3])){let e=(0,o.bytesToInt)(t[3][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for codeHash`);1===e&&(s=t[3][1])}else throw Error("Invalid partial codeHash encoding. Must be array");let c=null;if(Array.isArray(t[4])){let e=(0,o.bytesToInt)(t[4][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for codeSize`);1===e&&(c=(0,o.bytesToInt)(t[4][1]))}else throw Error("Invalid partial codeSize encoding. Must be array");let f=null;if(Array.isArray(t[5])){let e=(0,o.bytesToInt)(t[5][0]);if(0!==e&&1!==e)throw Error(`Invalid isNullIndicator=${e} for version`);1===e&&(f=(0,o.bytesToInt)(t[5][1]))}else throw Error("Invalid partial version encoding. Must be array");return this.fromPartialAccountData({balance:n,nonce:r,storageRoot:i,codeHash:s,codeSize:c,version:f})}static fromValuesArray(e){let[t,r,n,a]=e;return new l((0,o.bytesToBigInt)(t),(0,o.bytesToBigInt)(r),n,a)}_validate(){if(null!==this._nonce&&this._nonce=8?c+=r[e].toUpperCase():c+=r[e];return`0x${c}`},p=function(e,t){return u(e)&&h(e,t)===e},b=function(e,t){return((0,f.assertIsBytes)(e),(0,f.assertIsBytes)(t),(0,o.bytesToBigInt)(t)===c.BIGINT_0)?(0,i.keccak256)((0,a.RLP).encode([e,Uint8Array.from([])])).subarray(-20):(0,i.keccak256)((0,a.RLP).encode([e,t])).subarray(-20)},g=function(e,t,r){if((0,f.assertIsBytes)(e),(0,f.assertIsBytes)(t),(0,f.assertIsBytes)(r),20!==e.length)throw Error("Expected from to be of length 20");if(32!==t.length)throw Error("Expected salt to be of length 32");return(0,i.keccak256)((0,o.concatBytes)((0,o.hexToBytes)("0xff"),e,t,(0,i.keccak256)(r))).subarray(-20)},m=function(e){return(0,s.secp256k1).utils.isValidPrivateKey(e)},y=function(e,t=!1){if((0,f.assertIsBytes)(e),64===e.length)try{return(0,s.secp256k1).ProjectivePoint.fromHex((0,o.concatBytes)(Uint8Array.from([4]),e)),!0}catch(e){return!1}if(!t)return!1;try{return(0,s.secp256k1).ProjectivePoint.fromHex(e),!0}catch(e){return!1}},v=function(e,t=!1){if((0,f.assertIsBytes)(e),t&&64!==e.length&&(e=(0,s.secp256k1).ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),64!==e.length)throw Error("Expected pubKey to be of length 64");return(0,i.keccak256)(e).subarray(-20)},w=v,x=function(e){return(0,f.assertIsBytes)(e),(0,s.secp256k1).ProjectivePoint.fromPrivateKey(e).toRawBytes(!1).slice(1)},E=function(e){return w(x(e))},A=function(e){return(0,f.assertIsBytes)(e),64!==e.length&&(e=(0,s.secp256k1).ProjectivePoint.fromHex(e).toRawBytes(!1).slice(1)),e},_=function(){let e=(0,o.zeros)(20);return(0,o.bytesToHex)(e)},T=function(e){try{(0,f.assertIsString)(e)}catch(e){return!1}return _()===e};function I(e){let[t,r,n,a]=e;return[t,r,0===n.length?c.KECCAK256_RLP:n,0===a.length?c.KECCAK256_NULL:a]}let S=new Uint8Array(0);function C(e){let[t,r,n,a]=e;return[t,r,(0,o.equalsBytes)(n,c.KECCAK256_RLP)?S:n,(0,o.equalsBytes)(a,c.KECCAK256_NULL)?S:a]}function k(e,t=!0){let r=t?I(e):e;return(0,a.RLP).encode(r)}},{"@ethereumjs/rlp":"e2su4","ethereum-cryptography/keccak.js":"jFZHZ","ethereum-cryptography/secp256k1.js":"kGTNz","./bytes.js":"lzhQs","./constants.js":"f7GxE","./helpers.js":"f7E31","./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],e2su4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){if(Array.isArray(e)){let t=[],r=0;for(let n=0;ne.length)throw Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function s(e){if(0===e[0])throw Error("invalid RLP: extra zeros");return l(d(e))}function o(e,t){if(e<56)return Uint8Array.from([e+t]);let r=b(e),n=b(t+55+r.length/2);return Uint8Array.from(u(n+r))}function c(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);let r=function e(t){let r,n,a,o,c;let f=[],d=t[0];if(d<=127)return{data:t.slice(0,1),remainder:t.subarray(1)};if(d<=183){if(r=d-127,a=128===d?Uint8Array.from([]):i(t,1,r),2===r&&a[0]<128)throw Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:a,remainder:t.subarray(r)}}if(d<=191){if(n=d-182,t.length-1t.length)throw Error("invalid RLP: total length is larger than the data");for(o=i(t,n,a);o.length;)c=e(o),f.push(c.data),o=c.remainder;return{data:f,remainder:t.subarray(a)}}}(m(e));if(t)return{data:r.data,remainder:r.remainder.slice()};if(0!==r.remainder.length)throw Error("invalid RLP: remainder must be zero");return r.data}n.defineInteropFlag(r),n.export(r,"encode",()=>a),n.export(r,"decode",()=>c),n.export(r,"utils",()=>y),n.export(r,"RLP",()=>v);let f=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function d(e){let t="";for(let r=0;re+t.length,0));for(let r=0,n=0;r=2&&"0"===e[0]&&"x"===e[1]}function m(e){if(e instanceof Uint8Array)return e;if("string"==typeof e){if(g(e)){var t;return u((t="string"!=typeof e?e:g(e)?e.slice(2):e).length%2?`0${t}`:t)}return p(e)}if("number"==typeof e||"bigint"==typeof e)return e?u(b(e)):Uint8Array.from([]);if(null==e)return Uint8Array.from([]);throw Error("toBytes: received unsupported type "+typeof e)}let y={bytesToHex:d,concatBytes:h,hexToBytes:u,utf8ToBytes:p},v={encode:a,decode:c}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],jFZHZ:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.keccak512=r.keccak384=r.keccak256=r.keccak224=void 0;let n=e("fff221ae8f5735dd"),a=e("f5b1befb2b2c765");r.keccak224=(0,a.wrapHash)(n.keccak_224),r.keccak256=(()=>{let e=(0,a.wrapHash)(n.keccak_256);return e.create=n.keccak_256.create,e})(),r.keccak384=(0,a.wrapHash)(n.keccak_384),r.keccak512=(0,a.wrapHash)(n.keccak_512)},{fff221ae8f5735dd:"iySGL",f5b1befb2b2c765:"3lFGp"}],iySGL:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shake256=r.shake128=r.keccak_512=r.keccak_384=r.keccak_256=r.keccak_224=r.sha3_512=r.sha3_384=r.sha3_256=r.sha3_224=r.Keccak=r.keccakP=void 0;let n=e("7bdc6137be4a1400"),a=e("c896fa25cdc4e0a6"),i=e("aeb9ddcb21cf775d"),s=[],o=[],c=[],f=/* @__PURE__ */BigInt(0),d=/* @__PURE__ */BigInt(1),l=/* @__PURE__ */BigInt(2),u=/* @__PURE__ */BigInt(7),h=/* @__PURE__ */BigInt(256),p=/* @__PURE__ */BigInt(113);for(let e=0,t=d,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],s.push(2*(5*n+r)),o.push((e+1)*(e+2)/2%64);let a=f;for(let e=0;e<7;e++)(t=(t<>u)*p)%h)&l&&(a^=d<<(d<r>32?(0,a.rotlBH)(e,t,r):(0,a.rotlSH)(e,t,r),y=(e,t,r)=>r>32?(0,a.rotlBL)(e,t,r):(0,a.rotlSL)(e,t,r);function v(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,a=(t+2)%10,i=r[a],s=r[a+1],o=m(i,s,1)^r[n],c=y(i,s,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=o[r],i=m(t,a,n),c=y(t,a,n),f=s[r];t=e[f],a=e[f+1],e[f]=i,e[f+1]=c}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=b[n],e[1]^=g[n]}r.fill(0)}r.keccakP=v;class w extends i.Hash{constructor(e,t,r,a=!1,s=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=r,this.enableXOF=a,this.rounds=s,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.number)(r),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){i.isLE||(0,i.byteSwap32)(this.state32),v(this.state32,this.rounds),i.isLE||(0,i.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.exists)(this);let{blockLen:t,state:r}=this,a=(e=(0,i.toBytes)(e)).length;for(let n=0;n=r&&this.keccak();let i=Math.min(r-this.posOut,a-n);e.set(t.subarray(this.posOut,this.posOut+i),n),this.posOut+=i,n+=i}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.output)(e,this),this.finished)throw 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){let{blockLen:t,suffix:r,outputLen:n,rounds:a,enableXOF:i}=this;return e||(e=new w(t,r,n,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}r.Keccak=w;let x=(e,t,r)=>(0,i.wrapConstructor)(()=>new w(t,e,r));r.sha3_224=x(6,144,28),r.sha3_256=x(6,136,32),r.sha3_384=x(6,104,48),r.sha3_512=x(6,72,64),r.keccak_224=x(1,144,28),r.keccak_256=x(1,136,32),r.keccak_384=x(1,104,48),r.keccak_512=x(1,72,64);let E=(e,t,r)=>(0,i.wrapXOFConstructorWithOpts)((n={})=>new w(t,e,void 0===n.dkLen?r:n.dkLen,!0));r.shake128=E(31,168,16),r.shake256=E(31,136,32)},{"7bdc6137be4a1400":"8plnA",c896fa25cdc4e0a6:"6NT0D",aeb9ddcb21cf775d:"7z4fq"}],"9zQPg":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Address",()=>o);var a=e("./account.js"),i=e("./bytes.js"),s=e("./constants.js");class o{constructor(e){if(20!==e.length)throw Error("Invalid address length");this.bytes=e}static zero(){return new o((0,i.zeros)(20))}static fromString(e){if(!(0,a.isValidAddress)(e))throw Error(`Invalid address input=${e}`);return new o((0,i.hexToBytes)(e))}static fromPublicKey(e){if(!(e instanceof Uint8Array))throw Error("Public key should be Uint8Array");return new o((0,a.pubToAddress)(e))}static fromPrivateKey(e){if(!(e instanceof Uint8Array))throw Error("Private key should be Uint8Array");return new o((0,a.privateToAddress)(e))}static generate(e,t){if("bigint"!=typeof t)throw Error("Expected nonce to be a bigint");return new o((0,a.generateAddress)(e.bytes,(0,i.bigIntToBytes)(t)))}static generate2(e,t,r){if(!(t instanceof Uint8Array))throw Error("Expected salt to be a Uint8Array");if(!(r instanceof Uint8Array))throw Error("Expected initCode to be a Uint8Array");return new o((0,a.generateAddress2)(e.bytes,t,r))}equals(e){return(0,i.equalsBytes)(this.bytes,e.bytes)}isZero(){return this.equals(o.zero())}isPrecompileOrSystemAddress(){let e=(0,i.bytesToBigInt)(this.bytes),t=s.BIGINT_0,r=BigInt("0xffff");return e>=t&&e<=r}toString(){return(0,i.bytesToHex)(this.bytes)}toBytes(){return new Uint8Array(this.bytes)}}},{"./account.js":"6lm25","./bytes.js":"lzhQs","./constants.js":"f7GxE","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],cdMpl:[function(e,t,r){var n,a,i,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"KeyEncoding",()=>i),o.export(r,"ValueEncoding",()=>s),(n=i||(i={})).String="string",n.Bytes="view",n.Number="number",(a=s||(s={})).String="string",a.Bytes="view",a.JSON="json"},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],fhejp:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Withdrawal",()=>c);var a=e("./address.js"),i=e("./bytes.js"),s=e("./constants.js"),o=e("./types.js");class c{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){let{index:t,validatorIndex:r,address:n,amount:s}=e,f=(0,o.toType)(t,o.TypeOutput.BigInt);return new c(f,(0,o.toType)(r,o.TypeOutput.BigInt),n instanceof a.Address?n:new a.Address((0,i.toBytes)(n)),(0,o.toType)(s,o.TypeOutput.BigInt))}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);let[t,r,n,a]=e;return c.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:a})}static toBytesArray(e){let{index:t,validatorIndex:r,address:n,amount:i}=e,c=(0,o.toType)(t,o.TypeOutput.BigInt)===s.BIGINT_0?new Uint8Array:(0,o.toType)(t,o.TypeOutput.Uint8Array);return[c,(0,o.toType)(r,o.TypeOutput.BigInt)===s.BIGINT_0?new Uint8Array:(0,o.toType)(r,o.TypeOutput.Uint8Array),n instanceof a.Address?n.bytes:(0,o.toType)(n,o.TypeOutput.Uint8Array),(0,o.toType)(i,o.TypeOutput.BigInt)===s.BIGINT_0?new Uint8Array:(0,o.toType)(i,o.TypeOutput.Uint8Array)]}raw(){return c.toBytesArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.bytes,amount:this.amount}}toJSON(){return{index:(0,i.bigIntToHex)(this.index),validatorIndex:(0,i.bigIntToHex)(this.validatorIndex),address:(0,i.bytesToHex)(this.address.bytes),amount:(0,i.bigIntToHex)(this.amount)}}}},{"./address.js":"9zQPg","./bytes.js":"lzhQs","./constants.js":"f7GxE","./types.js":"cm4mK","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],cm4mK:[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"isNestedUint8Array",()=>function e(t){if(!Array.isArray(t))return!1;for(let r of t)if(Array.isArray(r)){if(!e(r))return!1}else if(!(r instanceof Uint8Array))return!1;return!0}),i.export(r,"TypeOutput",()=>a),i.export(r,"toType",()=>c);var s=e("./bytes.js"),o=e("./internal.js");function c(e,t){if(null===e)return null;if(void 0===e)return;if("string"!=typeof e||(0,o.isHexString)(e)){if("number"==typeof e&&!Number.isSafeInteger(e))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)")}else throw Error(`A string must be provided with a 0x-prefix, given: ${e}`);let r=(0,s.toBytes)(e);switch(t){case a.Uint8Array:return r;case a.BigInt:return(0,s.bytesToBigInt)(r);case a.Number:{let e=(0,s.bytesToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case a.PrefixedHexString:return(0,s.bytesToHex)(r);default:throw Error("unknown outputType")}}(n=a||(a={}))[n.Number=0]="Number",n[n.BigInt=1]="BigInt",n[n.Uint8Array=2]="Uint8Array",n[n.PrefixedHexString=3]="PrefixedHexString"},{"./bytes.js":"lzhQs","./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],bOVB9:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"ecsign",()=>f),n.export(r,"calculateSigRecovery",()=>d),n.export(r,"ecrecover",()=>u),n.export(r,"toRpcSig",()=>h),n.export(r,"toCompactSig",()=>p),n.export(r,"fromRpcSig",()=>b),n.export(r,"isValidSignature",()=>g),n.export(r,"hashPersonalMessage",()=>m);var a=e("ethereum-cryptography/keccak.js"),i=e("ethereum-cryptography/secp256k1.js"),s=e("./bytes.js"),o=e("./constants.js"),c=e("./helpers.js");function f(e,t,r){let n=(0,i.secp256k1).sign(e,t),a=n.toCompactRawBytes();return{r:a.slice(0,32),s:a.slice(32,64),v:void 0===r?BigInt(n.recovery+27):BigInt(n.recovery+35)+BigInt(r)*o.BIGINT_2}}function d(e,t){return e===o.BIGINT_0||e===o.BIGINT_1?e:void 0===t?e-o.BIGINT_27:e-(t*o.BIGINT_2+BigInt(35))}function l(e){return e===o.BIGINT_0||e===o.BIGINT_1}let u=function(e,t,r,n,a){let o=(0,s.concatBytes)((0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(n,32)),c=d(t,a);if(!l(c))throw Error("Invalid signature v value");return(0,i.secp256k1).Signature.fromCompact(o).addRecoveryBit(Number(c)).recoverPublicKey(e).toRawBytes(!1).slice(1)},h=function(e,t,r,n){if(!l(d(e,n)))throw Error("Invalid signature v value");return(0,s.bytesToHex)((0,s.concatBytes)((0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBytes)(e)))},p=function(e,t,r,n){if(!l(d(e,n)))throw Error("Invalid signature v value");let a=Uint8Array.from([...r]);return(e>BigInt(28)&&e%o.BIGINT_2===o.BIGINT_1||e===o.BIGINT_1||e===BigInt(28))&&(a[0]|=128),(0,s.bytesToHex)((0,s.concatBytes)((0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(a,32)))},b=function(e){let t,r,n;let a=(0,s.toBytes)(e);if(a.length>=65)t=a.subarray(0,32),r=a.subarray(32,64),n=(0,s.bytesToBigInt)(a.subarray(64));else if(64===a.length)t=a.subarray(0,32),r=a.subarray(32,64),n=BigInt((0,s.bytesToInt)(a.subarray(32,33))>>7),r[0]&=127;else throw Error("Invalid signature length");return n<27&&(n+=o.BIGINT_27),{v:n,r:t,s:r}},g=function(e,t,r,n=!0,a){if(32!==t.length||32!==r.length||!l(d(e,a)))return!1;let i=(0,s.bytesToBigInt)(t),c=(0,s.bytesToBigInt)(r);return i!==o.BIGINT_0&&!(i>=o.SECP256K1_ORDER)&&c!==o.BIGINT_0&&!(c>=o.SECP256K1_ORDER)&&(!n||!(c>=o.SECP256K1_ORDER_DIV_2))},m=function(e){(0,c.assertIsBytes)(e);let t=(0,s.utf8ToBytes)(`\u0019Ethereum Signed Message: ${e.length}`);return(0,a.keccak256)((0,s.concatBytes)(t,e))}},{"ethereum-cryptography/keccak.js":"jFZHZ","ethereum-cryptography/secp256k1.js":"kGTNz","./bytes.js":"lzhQs","./constants.js":"f7GxE","./helpers.js":"f7E31","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gAEU2:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AsyncEventEmitter",()=>s);var a=e("events");async function i(e,t,r){let n;for await(let a of t)try{a.length<2?a.call(e,r):await new Promise((t,n)=>{a.call(e,r,e=>{e?n(e):t()})})}catch(e){n=e}if(n)throw n}class s extends a.EventEmitter{emit(e,...t){let[r,n]=t,a=this._events[e]??[];return void 0===n&&"function"==typeof r&&(n=r,r=void 0),("newListener"===e||"removeListener"===e)&&(r={event:r,fn:n},n=void 0),i(this,(a=Array.isArray(a)?a:[a]).slice(),r).then(n).catch(n),this.listenerCount(e)>0}once(e,t){let r;let n=this;if("function"!=typeof t)throw TypeError("listener must be a function");return r=t.length>=2?function(a,i){n.removeListener(e,r),t(a,i)}:function(a){n.removeListener(e,r),t(a,r)},n.on(e,r),n}first(e,t){let r=this._events[e]??[];if("function"!=typeof t)throw TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(t),this}before(e,t,r){return this.beforeOrAfter(e,t,r)}after(e,t,r){return this.beforeOrAfter(e,t,r,"after")}beforeOrAfter(e,t,r,n){let a,i,s=this._events[e]??[],o="after"===n?1:0;if("function"!=typeof r)throw TypeError("listener must be a function");if("function"!=typeof t)throw TypeError("target must be a function");for(Array.isArray(s)||(this._events[e]=s=[s]),i=s.length,a=s.length;a--;)if(s[a]===t){i=a+o;break}return s.splice(i,0,r),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}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)}}},{events:"gLDS8","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],gLDS8:[function(e,t,r){var n,a="object"==typeof Reflect?Reflect:null,i=a&&"function"==typeof a.apply?a.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(e,t){return new Promise(function(r,n){var a;function i(r){e.removeListener(t,s),n(r)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}m(e,t,s,{once:!0}),"error"!==t&&(a={once:!0},"function"==typeof e.on&&m(e,"error",i,a))})},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var c=10;function f(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(f(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(a=d(e))>0&&s.length>a&&!s.warned){s.warned=!0;var a,i,s,o=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=s.length,console&&console.warn&&console.warn(o)}return e}function u(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=u.bind(n);return a.listener=r,n.wrapFn=a,a}function p(e,t,r){var n=e._events;if(void 0===n)return[];var a=n[t];return void 0===a?[]:"function"==typeof a?r?[a.listener||a]:[a]:r?function(e){for(var t=Array(e.length),r=0;r0&&(s=t[0]),s instanceof Error)throw s;var s,o=Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=a[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else for(var f=c.length,d=g(c,f),r=0;r=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,a=i;break}if(a<0)return this;0===a?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},o.prototype.listeners=function(e){return p(this,e,!0)},o.prototype.rawListeners=function(e){return p(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},o.prototype.listenerCount=b,o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],"89TPP":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getBlobs",()=>s),n.export(r,"blobsToCommitments",()=>o),n.export(r,"blobsToProofs",()=>c),n.export(r,"computeVersionedHash",()=>f),n.export(r,"commitmentsToVersionedHashes",()=>d);var a=e("ethereum-cryptography/sha256.js"),i=e("./bytes.js");let s=e=>{let t=(0,i.utf8ToBytes)(e),r=t.byteLength;if(0===r)throw Error("invalid blob data");if(r>262143)throw Error("blob data is too large");let n=Math.ceil(r/131072),a=function(e,t){let r=new Uint8Array(131072*t).fill(0);return r.set(e),r[e.byteLength]=128,r}(t,n),s=[];for(let e=0;e{let r=[];for(let n of t)r.push(e.blobToKzgCommitment(n));return r},c=(e,t,r)=>t.map((t,n)=>e.computeBlobKzgProof(t,r[n])),f=(e,t)=>{let r=new Uint8Array(32);return r.set([t],0),r.set((0,a.sha256)(e).subarray(1),1),r},d=e=>{let t=[];for(let r of e)t.push(f(r,1));return t}},{"ethereum-cryptography/sha256.js":"6U0fs","./bytes.js":"lzhQs","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"6U0fs":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.sha256=void 0;let n=e("642d45ad51190516"),a=e("1916de2ca976733b");r.sha256=(0,a.wrapHash)(n.sha256)},{"642d45ad51190516":"agPjf","1916de2ca976733b":"3lFGp"}],"6JY8s":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"parseGethGenesisState",()=>s);var a=e("./bytes.js"),i=e("./internal.js");function s(e){let t={};for(let r of Object.keys(e.alloc)){let{balance:n,code:s,storage:o,nonce:c}=e.alloc[r],f=(0,a.addHexPrefix)(r.toLowerCase());n=(0,i.isHexString)(n)?n:(0,a.bigIntToHex)(BigInt(n)),s=void 0!==s?(0,a.addHexPrefix)(s):void 0,o=void 0!==o?Object.entries(o):void 0,c=void 0!==c?(0,a.addHexPrefix)(c):void 0,t[f]=[n,s,o,c]}return t}},{"./bytes.js":"lzhQs","./internal.js":"8X0WZ","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"02EeG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t){e.loadTrustedSetup()}n.defineInteropFlag(r),n.export(r,"initKZG",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],kZ6I5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Lock",()=>a);class a{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(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;let e=this.promiseResolverQueue.shift();e&&e(!0)}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],ev15B:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"MapDB",()=>i);var a=e("./bytes.js");class i{constructor(e){this._database=e??new Map}async get(e){let t=e instanceof Uint8Array?(0,a.bytesToUnprefixedHex)(e):e.toString();return this._database.get(t)}async put(e,t){let r=e instanceof Uint8Array?(0,a.bytesToUnprefixedHex)(e):e.toString();this._database.set(r,t)}async del(e){let t=e instanceof Uint8Array?(0,a.bytesToUnprefixedHex)(e):e.toString();this._database.delete(t)}async batch(e){for(let t of e)"del"===t.type&&await this.del(t.key),"put"===t.type&&await this.put(t.key,t.value)}shallowCopy(){return new i(this._database)}open(){return Promise.resolve()}}},{"./bytes.js":"lzhQs","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],hg6Th:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fetchFromProvider",()=>a),n.export(r,"getProvider",()=>i);let a=async(e,t)=>{let r=JSON.stringify({method:t.method,params:t.params,jsonrpc:"2.0",id:1}),n=await fetch(e,{headers:{"content-type":"application/json"},method:"POST",body:r});if(!n.ok)throw Error(`JSONRpcError: ${JSON.stringify({method:t.method,status:n.status,message:await n.text().catch(()=>"Could not parse error message likely because of a network error")},null,2)}`);return(await n.json()).result},i=e=>{if("string"==typeof e)return e;if("object"==typeof e&&void 0!==e._getConnection)return e._getConnection().url;throw Error("Must provide valid provider URL or Web3Provider")}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],idf1A:[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"CLRequestType",()=>a),i.export(r,"CLRequest",()=>d),i.export(r,"DepositRequest",()=>l),i.export(r,"WithdrawalRequest",()=>u),i.export(r,"ConsolidationRequest",()=>h),i.export(r,"CLRequestFactory",()=>p);var s=e("@ethereumjs/rlp"),o=e("ethereum-cryptography/utils"),c=e("./bytes.js"),f=e("./constants.js");(n=a||(a={}))[n.Deposit=0]="Deposit",n[n.Withdrawal=1]="Withdrawal",n[n.Consolidation=2]="Consolidation";class d{constructor(e){this.type=e}}class l extends d{constructor(e,t,r,n,i){super(a.Deposit),this.pubkey=e,this.withdrawalCredentials=t,this.amount=r,this.signature=n,this.index=i}static fromRequestData(e){let{pubkey:t,withdrawalCredentials:r,amount:n,signature:a,index:i}=e;return new l(t,r,n,a,i)}static fromJSON(e){let{pubkey:t,withdrawalCredentials:r,amount:n,signature:a,index:i}=e;return this.fromRequestData({pubkey:(0,c.hexToBytes)(t),withdrawalCredentials:(0,c.hexToBytes)(r),amount:(0,c.hexToBigInt)(n),signature:(0,c.hexToBytes)(a),index:(0,c.hexToBigInt)(i)})}serialize(){let e=this.index===f.BIGINT_0?new Uint8Array:(0,c.bigIntToBytes)(this.index),t=this.amount===f.BIGINT_0?new Uint8Array:(0,c.bigIntToBytes)(this.amount);return(0,o.concatBytes)(Uint8Array.from([this.type]),(0,s.RLP).encode([this.pubkey,this.withdrawalCredentials,t,this.signature,e]))}toJSON(){return{pubkey:(0,c.bytesToHex)(this.pubkey),withdrawalCredentials:(0,c.bytesToHex)(this.withdrawalCredentials),amount:(0,c.bigIntToHex)(this.amount),signature:(0,c.bytesToHex)(this.signature),index:(0,c.bigIntToHex)(this.index)}}static deserialize(e){let[t,r,n,a,i]=(0,s.RLP).decode(e.slice(1));return this.fromRequestData({pubkey:t,withdrawalCredentials:r,amount:(0,c.bytesToBigInt)(n),signature:a,index:(0,c.bytesToBigInt)(i)})}}class u extends d{constructor(e,t,r){super(a.Withdrawal),this.sourceAddress=e,this.validatorPubkey=t,this.amount=r}static fromRequestData(e){let{sourceAddress:t,validatorPubkey:r,amount:n}=e;return new u(t,r,n)}static fromJSON(e){let{sourceAddress:t,validatorPubkey:r,amount:n}=e;return this.fromRequestData({sourceAddress:(0,c.hexToBytes)(t),validatorPubkey:(0,c.hexToBytes)(r),amount:(0,c.hexToBigInt)(n)})}serialize(){let e=this.amount===f.BIGINT_0?new Uint8Array:(0,c.bigIntToBytes)(this.amount);return(0,o.concatBytes)(Uint8Array.from([this.type]),(0,s.RLP).encode([this.sourceAddress,this.validatorPubkey,e]))}toJSON(){return{sourceAddress:(0,c.bytesToHex)(this.sourceAddress),validatorPubkey:(0,c.bytesToHex)(this.validatorPubkey),amount:(0,c.bigIntToHex)(this.amount)}}static deserialize(e){let[t,r,n]=(0,s.RLP).decode(e.slice(1));return this.fromRequestData({sourceAddress:t,validatorPubkey:r,amount:(0,c.bytesToBigInt)(n)})}}class h extends d{constructor(e,t,r){super(a.Consolidation),this.sourceAddress=e,this.sourcePubkey=t,this.targetPubkey=r}static fromRequestData(e){let{sourceAddress:t,sourcePubkey:r,targetPubkey:n}=e;return new h(t,r,n)}static fromJSON(e){let{sourceAddress:t,sourcePubkey:r,targetPubkey:n}=e;return this.fromRequestData({sourceAddress:(0,c.hexToBytes)(t),sourcePubkey:(0,c.hexToBytes)(r),targetPubkey:(0,c.hexToBytes)(n)})}serialize(){return(0,o.concatBytes)(Uint8Array.from([this.type]),(0,s.RLP).encode([this.sourceAddress,this.sourcePubkey,this.targetPubkey]))}toJSON(){return{sourceAddress:(0,c.bytesToHex)(this.sourceAddress),sourcePubkey:(0,c.bytesToHex)(this.sourcePubkey),targetPubkey:(0,c.bytesToHex)(this.targetPubkey)}}static deserialize(e){let[t,r,n]=(0,s.RLP).decode(e.slice(1));return this.fromRequestData({sourceAddress:t,sourcePubkey:r,targetPubkey:n})}}class p{static fromSerializedRequest(e){switch(e[0]){case a.Deposit:return l.deserialize(e);case a.Withdrawal:return u.deserialize(e);case a.Consolidation:return h.deserialize(e);default:throw Error(`Invalid request type=${e[0]}`)}}}},{"@ethereumjs/rlp":"e2su4","ethereum-cryptography/utils":"3lFGp","./bytes.js":"lzhQs","./constants.js":"f7GxE","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"1xbAO":[function(e,t,r){var n,a,i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getVerkleStem",()=>o),i.export(r,"verifyVerkleProof",()=>c),i.export(r,"VerkleLeafType",()=>a),i.export(r,"VERKLE_VERSION_LEAF_KEY",()=>f),i.export(r,"VERKLE_BALANCE_LEAF_KEY",()=>d),i.export(r,"VERKLE_NONCE_LEAF_KEY",()=>l),i.export(r,"VERKLE_CODE_HASH_LEAF_KEY",()=>u),i.export(r,"VERKLE_CODE_SIZE_LEAF_KEY",()=>h),i.export(r,"VERKLE_HEADER_STORAGE_OFFSET",()=>p),i.export(r,"VERKLE_CODE_OFFSET",()=>b),i.export(r,"VERKLE_NODE_WIDTH",()=>g),i.export(r,"VERKLE_MAIN_STORAGE_OFFSET",()=>m),i.export(r,"getVerkleKey",()=>y),i.export(r,"getVerkleTreeIndexesForStorageSlot",()=>v),i.export(r,"getVerkleTreeIndicesForCodeChunk",()=>w),i.export(r,"getVerkleTreeKeyForCodeChunk",()=>x),i.export(r,"chunkifyCode",()=>E),i.export(r,"getVerkleTreeKeyForStorageSlot",()=>A);var s=e("./bytes.js");function o(e,t,r=0){let n;let a=(0,s.setLengthLeft)(t.toBytes(),32);return n="number"==typeof r?(0,s.setLengthRight)((0,s.int32ToBytes)(Number(r),!0),32):(0,s.setLengthRight)((0,s.bigIntToBytes)(BigInt(r),!0).slice(0,32),32),e.getTreeKey(a,n,0).slice(0,31)}function c(e,t,r){return e.verifyExecutionWitnessPreState((0,s.bytesToHex)(t),JSON.stringify(r))}(n=a||(a={}))[n.Version=0]="Version",n[n.Balance=1]="Balance",n[n.Nonce=2]="Nonce",n[n.CodeHash=3]="CodeHash",n[n.CodeSize=4]="CodeSize";let f=(0,s.intToBytes)(a.Version),d=(0,s.intToBytes)(a.Balance),l=(0,s.intToBytes)(a.Nonce),u=(0,s.intToBytes)(a.CodeHash),h=(0,s.intToBytes)(a.CodeSize),p=64,b=128,g=256,m=BigInt(256)**BigInt(31),y=(e,t)=>{switch(t){case a.Version:return(0,s.concatBytes)(e,f);case a.Balance:return(0,s.concatBytes)(e,d);case a.Nonce:return(0,s.concatBytes)(e,l);case a.CodeHash:return(0,s.concatBytes)(e,u);case a.CodeSize:return(0,s.concatBytes)(e,h);default:return(0,s.concatBytes)(e,t)}};function v(e){let t;return{treeIndex:(t=e{let{treeIndex:n,subIndex:a}=w(t);return(0,s.concatBytes)(o(r,e,n),(0,s.toBytes)(a))},E=e=>{if(e.length%31!=0){let t=31-e.length%31;e=(0,s.setLengthRight)(e,e.length+t)}throw Error("Not implemented")},A=async(e,t,r)=>{let{treeIndex:n,subIndex:a}=v(t);return(0,s.concatBytes)(o(r,e,n),(0,s.toBytes)(a))}},{"./bytes.js":"lzhQs","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"8gkvt":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encrypt=c,r.decrypt=d;let n=e("42d38e32bc7189d3"),a=e("6bf73952ce3577f8"),i={web:n.crypto};function s(e,t,r){if(!r.startsWith("aes-"))throw Error(`AES submodule doesn't support mode ${r}`);if(16!==t.length)throw Error("AES: wrong IV length");if(r.startsWith("aes-128")&&16!==e.length||r.startsWith("aes-256")&&32!==e.length)throw Error("AES: wrong key length")}async function o(e,t,r){let n;if(!i.web)throw Error("Browser crypto not available.");if(["aes-128-cbc","aes-256-cbc"].includes(e)&&(n="cbc"),["aes-128-ctr","aes-256-ctr"].includes(e)&&(n="ctr"),!n)throw Error("AES: unsupported mode");return[await i.web.subtle.importKey("raw",t,{name:`AES-${n.toUpperCase()}`,length:8*t.length},!0,["encrypt","decrypt"]),{name:`aes-${n}`,iv:r,counter:r,length:128}]}async function c(e,t,r,n="aes-128-ctr",f=!0){if(s(t,r,n),i.web){let[a,s]=await o(n,t,r),c=new Uint8Array(await i.web.subtle.encrypt(s,a,e));return f||"aes-cbc"!==s.name||e.length%16||(c=c.slice(0,-16)),c}if(i.node){let s=i.node.createCipheriv(n,t,r);return s.setAutoPadding(f),(0,a.concatBytes)(s.update(e),s.final())}throw Error("The environment doesn't have AES module")}async function f(e,t,r,n){let a=e.slice(-16);for(let e=0;e<16;e++)a[e]^=16^r[e];return(await c(a,t,r,n)).slice(0,16)}async function d(e,t,r,n="aes-128-ctr",l=!0){if(s(t,r,n),i.web){let[s,d]=await o(n,t,r);if(!l&&"aes-cbc"===d.name){let i=await f(e,t,r,n);e=(0,a.concatBytes)(e,i)}let u=new Uint8Array(await i.web.subtle.decrypt(d,s,e));if("aes-cbc"===d.name){let i=await c(u,t,r,n);if(!(0,a.equalsBytes)(i,e))throw Error("AES: wrong padding")}return u}if(i.node){let s=i.node.createDecipheriv(n,t,r);return s.setAutoPadding(l),(0,a.concatBytes)(s.update(e),s.final())}throw Error("The environment doesn't have AES module")}},{"42d38e32bc7189d3":"1lbMU","6bf73952ce3577f8":"3lFGp"}],inPLz:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pbkdf2=o,r.pbkdf2Sync=function(e,t,r,o,c){if(!["sha256","sha512"].includes(c))throw Error("Only sha256 and sha512 are supported");return(0,s.assertBytes)(e),(0,s.assertBytes)(t),(0,n.pbkdf2)("sha256"===c?a.sha256:i.sha512,e,t,{c:r,dkLen:o})};let n=e("3564c0563dd106f6"),a=e("9bee886d352b27ed"),i=e("99a1c26752ccd851"),s=e("fae63ea26c428b5c");async function o(e,t,r,o,c){if(!["sha256","sha512"].includes(c))throw Error("Only sha256 and sha512 are supported");return(0,s.assertBytes)(e),(0,s.assertBytes)(t),(0,n.pbkdf2Async)("sha256"===c?a.sha256:i.sha512,e,t,{c:r,dkLen:o})}},{"3564c0563dd106f6":"f7C4W","9bee886d352b27ed":"agPjf","99a1c26752ccd851":"4aMkd",fae63ea26c428b5c:"3lFGp"}],"13wBA":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scrypt=i,r.scryptSync=function(e,t,r,i,s,o,c){return(0,a.assertBytes)(e),(0,a.assertBytes)(t),(0,n.scrypt)(e,t,{N:r,r:s,p:i,dkLen:o,onProgress:c})};let n=e("fd58a33a708988e1"),a=e("41ff0241e5740193");async function i(e,t,r,i,s,o,c){return(0,a.assertBytes)(e),(0,a.assertBytes)(t),(0,n.scryptAsync)(e,t,{N:r,r:s,p:i,dkLen:o,onProgress:c})}},{fd58a33a708988e1:"341km","41ff0241e5740193":"3lFGp"}],"341km":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.scryptAsync=r.scrypt=void 0;let n=e("c13bebc88cd74c51"),a=e("36acc9485f7caaa2"),i=e("906f705fcee83d7e"),s=e("765087e5b126103e");function o(e,t,r,n,a,i){let o=e[t++]^r[n++],c=e[t++]^r[n++],f=e[t++]^r[n++],d=e[t++]^r[n++],l=e[t++]^r[n++],u=e[t++]^r[n++],h=e[t++]^r[n++],p=e[t++]^r[n++],b=e[t++]^r[n++],g=e[t++]^r[n++],m=e[t++]^r[n++],y=e[t++]^r[n++],v=e[t++]^r[n++],w=e[t++]^r[n++],x=e[t++]^r[n++],E=e[t++]^r[n++],A=o,_=c,T=f,I=d,S=l,C=u,k=h,R=p,M=b,B=g,P=m,O=y,j=v,N=w,U=x,L=E;for(let e=0;e<8;e+=2)S^=(0,s.rotl)(A+j|0,7),M^=(0,s.rotl)(S+A|0,9),j^=(0,s.rotl)(M+S|0,13),A^=(0,s.rotl)(j+M|0,18),B^=(0,s.rotl)(C+_|0,7),N^=(0,s.rotl)(B+C|0,9),_^=(0,s.rotl)(N+B|0,13),C^=(0,s.rotl)(_+N|0,18),U^=(0,s.rotl)(P+k|0,7),T^=(0,s.rotl)(U+P|0,9),k^=(0,s.rotl)(T+U|0,13),P^=(0,s.rotl)(k+T|0,18),I^=(0,s.rotl)(L+O|0,7),R^=(0,s.rotl)(I+L|0,9),O^=(0,s.rotl)(R+I|0,13),L^=(0,s.rotl)(O+R|0,18),_^=(0,s.rotl)(A+I|0,7),T^=(0,s.rotl)(_+A|0,9),I^=(0,s.rotl)(T+_|0,13),A^=(0,s.rotl)(I+T|0,18),k^=(0,s.rotl)(C+S|0,7),R^=(0,s.rotl)(k+C|0,9),S^=(0,s.rotl)(R+k|0,13),C^=(0,s.rotl)(S+R|0,18),O^=(0,s.rotl)(P+B|0,7),M^=(0,s.rotl)(O+P|0,9),B^=(0,s.rotl)(M+O|0,13),P^=(0,s.rotl)(B+M|0,18),j^=(0,s.rotl)(L+U|0,7),N^=(0,s.rotl)(j+L|0,9),U^=(0,s.rotl)(N+j|0,13),L^=(0,s.rotl)(U+N|0,18);a[i++]=o+A|0,a[i++]=c+_|0,a[i++]=f+T|0,a[i++]=d+I|0,a[i++]=l+S|0,a[i++]=u+C|0,a[i++]=h+k|0,a[i++]=p+R|0,a[i++]=b+M|0,a[i++]=g+B|0,a[i++]=m+P|0,a[i++]=y+O|0,a[i++]=v+j|0,a[i++]=w+N|0,a[i++]=x+U|0,a[i++]=E+L|0}function c(e,t,r,n,a){let i=n+0,s=n+16*a;for(let n=0;n<16;n++)r[s+n]=e[t+(2*a-1)*16+n];for(let n=0;n0&&(s+=16),o(r,i,e,t+=16,r,s)}function f(e,t,r){let{N:o,r:c,p:f,dkLen:d,asyncTick:l,maxmem:u,onProgress:h}=(0,s.checkOpts)({dkLen:32,asyncTick:10,maxmem:0x40000400},r);if((0,n.number)(o),(0,n.number)(c),(0,n.number)(f),(0,n.number)(d),(0,n.number)(l),(0,n.number)(u),void 0!==h&&"function"!=typeof h)throw Error("progressCb should be function");let p=128*c,b=p/4;if(o<=1||(o&o-1)!=0||o>=2**(p/8)||o>0x100000000)throw Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(f<0||f>(0x100000000-1)*32/p)throw Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(d<0||d>(0x100000000-1)*32)throw Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");let g=p*(o+f);if(g>u)throw Error(`Scrypt: parameters too large, ${g} (128 * r * (N + p)) > ${u} (maxmem)`);let m=(0,i.pbkdf2)(a.sha256,e,t,{c:1,dkLen:p*f}),y=(0,s.u32)(m),v=(0,s.u32)(new Uint8Array(p*o)),w=(0,s.u32)(new Uint8Array(p)),x=()=>{};if(h){let e=2*o*f,t=Math.max(Math.floor(e/1e4),1),r=0;x=()=>{r++,h&&(!(r%t)||r===e)&&h(r/e)}}return{N:o,r:c,p:f,dkLen:d,blockSize32:b,V:v,B32:y,B:m,tmp:w,blockMixCb:x,asyncTick:l}}function d(e,t,r,n,s){let o=(0,i.pbkdf2)(a.sha256,e,r,{c:1,dkLen:t});return r.fill(0),n.fill(0),s.fill(0),o}async function l(e,t,r){let{N:n,r:a,p:i,dkLen:o,blockSize32:l,V:u,B32:h,B:p,tmp:b,blockMixCb:g,asyncTick:m}=f(e,t,r);s.isLE||(0,s.byteSwap32)(h);for(let e=0;e{c(u,r,u,r+=l,a),g()}),c(u,(n-1)*l,h,t,a),g(),await (0,s.asyncLoop)(n,m,()=>{let e=h[t+l-16]%n;for(let r=0;ri.default),n.export(r,"v3",()=>o.default),n.export(r,"v4",()=>f.default),n.export(r,"v5",()=>l.default),n.export(r,"NIL",()=>h.default),n.export(r,"version",()=>b.default),n.export(r,"validate",()=>m.default),n.export(r,"stringify",()=>v.default),n.export(r,"parse",()=>x.default);var a=e("./v1.js"),i=n.interopDefault(a),s=e("./v3.js"),o=n.interopDefault(s),c=e("./v4.js"),f=n.interopDefault(c),d=e("./v5.js"),l=n.interopDefault(d),u=e("./nil.js"),h=n.interopDefault(u),p=e("./version.js"),b=n.interopDefault(p),g=e("./validate.js"),m=n.interopDefault(g),y=e("./stringify.js"),v=n.interopDefault(y),w=e("./parse.js"),x=n.interopDefault(w)},{"./v1.js":!1,"./v3.js":!1,"./v4.js":"1o1vH","./v5.js":!1,"./nil.js":!1,"./version.js":!1,"./validate.js":!1,"./stringify.js":!1,"./parse.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"1o1vH":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./native.js"),i=n.interopDefault(a),s=e("./rng.js"),o=n.interopDefault(s),c=e("./stringify.js");r.default=function(e,t,r){if(i.default.randomUUID&&!t&&!e)return(0,i.default).randomUUID();let n=(e=e||{}).random||(e.rng||(0,o.default))();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return(0,c.unsafeStringify)(n)}},{"./native.js":"dPh3O","./rng.js":"3GSls","./stringify.js":"5qQRE","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],dPh3O:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);r.default={randomUUID:n}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"3GSls":[function(e,t,r){let n;var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"default",()=>s);let i=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"5qQRE":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"unsafeStringify",()=>o);var a=e("./validate.js"),i=n.interopDefault(a);let s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function o(e,t=0){return s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]}r.default=function(e,t=0){let r=o(e,t);if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":"j9iVK","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],j9iVK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r);var a=e("./regex.js"),i=n.interopDefault(a);r.default=function(e){return"string"==typeof e&&(0,i.default).test(e)}},{"./regex.js":"2CYJV","@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],"2CYJV":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=/^(?:[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},{"@parcel/transformer-js/src/esmodule-helpers.js":"6aMVc"}],e1Z8L:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"fromEtherWallet",()=>u),n.export(r,"fromEtherCamp",()=>h),n.export(r,"fromQuorumWallet",()=>p),n.export(r,"Thirdparty",()=>b);var a=e("@ethereumjs/util"),i=e("@scure/base"),s=e("ethereum-cryptography/aes.js"),o=e("ethereum-cryptography/keccak.js"),c=e("ethereum-cryptography/pbkdf2.js"),f=e("js-md5"),d=e("./wallet.js");let l={count:1,keysize:16,ivsize:16,digest:"md5"};async function u(e,t){let r;let n="object"==typeof e?e:JSON.parse(e);if(n.locked){if("string"!=typeof t)throw Error("Password required");if(t.length<7)throw Error("Password must be at least 7 characters");let e=function(e){let t=(0,i.base64).decode(e);return"Salted__"===(0,a.bytesToUtf8)(t.subarray(0,8))?{salt:t.subarray(8,16),ciphertext:t.subarray(16)}:{ciphertext:t}}(n.encrypted?n.private.slice(0,128):n.private);if(!e.salt)throw Error("Unsupported EtherWallet key format");let o=function(e,t,r){let n=r?{count:r.count??l.count,keysize:r.keysize??l.keysize,ivsize:r.ivsize??l.ivsize,digest:r.digest??l.digest}:l,i=[],s=0;for(;(0,a.concatBytes)(...i).length