diff --git a/Web/index.js b/Web/index.js index d359772..57a58fe 100644 --- a/Web/index.js +++ b/Web/index.js @@ -1,4 +1,4 @@ -!function(e,t,r,i,n){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof a[i]&&a[i],o=s.cache||{},f="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(t,r){if(!o[t]){if(!e[t]){var n="function"==typeof a[i]&&a[i];if(!r&&n)return n(t,!0);if(s)return s(t,!0);if(f&&"string"==typeof t)return f(t);var c=Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}l.resolve=function(r){var i=e[t][1][r];return null!=i?i:r},l.cache={};var u=o[t]=new d.Module(t);e[t][0].call(u.exports,l,u,u.exports,this)}return o[t].exports;function l(e){var t=l.resolve(e);return!1===t?{}:d(t)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.exports={}},d.modules=e,d.cache=o,d.parent=s,d.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(d,"root",{get:function(){return a[i]}}),a[i]=d;for(var c=0;c{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("undefined"!==window.Unity)window.Unity.call(t);else{let e="No available game callbacks to call from ImmutableSDK game-bridge";throw console.error(e),Error(e)}},w=()=>{if(null==i)throw Error("No Passport client");return i},_=e=>null!=e?(n=e,console.log("IMX provider set"),!0):(console.log("No IMX provider"),!1),M=()=>{if(null==n)throw Error("No IMX provider");return n},E=e=>null!=e?(a=e,console.log("zkEvm provider set"),!0):(console.log("No zkEvm provider"),!1),A=()=>{if(null==a)throw Error("No zkEvm provider");return a},S=e=>Date.now()-e;(0,u.track)(m,"loadedGameBridge",{sdkVersionTag:g}),window.callFunction=async e=>{console.log(`Call function ${e}`);let t=null,r=null,o=Date.now();try{let x=JSON.parse(e);t=x.fxName,r=x.requestId;let I=x.data;switch(t){case y.init:{let e=JSON.parse(I),n=e?.redirectUri,a=e?.isSilentLogout===!0?"silent":"redirect";if(!i){let t;console.log(`Connecting to ${e.environment} environment`);let r="production"===e.environment?d.Environment.PRODUCTION:d.Environment.SANDBOX,s=new d.ImmutableConfiguration({environment:r});t="dev"===e.environment||"development"===e.environment?{baseConfig:s,clientId:e.clientId,redirectUri:n??b,logoutRedirectUri:e?.logoutRedirectUri,audience:p,scope:h,crossSdkBridgeEnabled:!0,logoutMode:a,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 c.IMXClient({baseConfig:s,overrides:{immutableXConfig:c.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:n??b,logoutRedirectUri:e?.logoutRedirectUri,crossSdkBridgeEnabled:!0,logoutMode:a},i=new f.Passport(t),(0,u.trackDuration)(m,"initialisedPassport",S(o))}v({responseFor:t,requestId:r,success:!0,error:null});let{engineVersion:l}=e;s={gameBridgeTag:g,gameBridgeSha:"4f52795f78561e593faaa89d6bd39a85d9d7d05b",engine:l.engine,engineVersion:l.engineVersion,engineSdkVersion:l.engineSdkVersion??"",platform:l.platform,platformVersion:l.platformVersion,deviceModel:l.deviceModel??"N/A"},console.log(`Version check: ${JSON.stringify(s)}`),(0,u.trackDuration)(m,"completedInitGameBridge",S(o),{...s});break}case y.initDeviceFlow:{let e=await w().loginWithDeviceFlow();(0,u.trackDuration)(m,"performedInitDeviceFlow",S(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}),i=null!==e;if(!i)throw Error("Failed to re-login");(0,u.identify)({passportId:e?.sub}),(0,u.trackDuration)(m,"performedRelogin",S(o),{succeeded:i}),v({responseFor:t,requestId:r,success:null!==e,error:null});break}case y.reconnect:{let e=!1,i=await w().login({useCachedSession:!0});if(i){let t=await w().connectImx();e=_(t),(0,u.identify)({passportId:i?.sub})}if(!e)throw Error("Failed to reconnect");(0,u.trackDuration)(m,"performedReconnect",S(o),{succeeded:null!==i}),v({responseFor:t,requestId:r,success:e,error:null});break}case y.getPKCEAuthUrl:{let e=w().loginWithPKCEFlow();(0,u.trackDuration)(m,"performedGetPkceAuthUrl",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.loginPKCE:{let e=JSON.parse(I),i=await w().loginWithPKCEFlowCallback(e.authorizationCode,e.state);(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedLoginPkce",S(o)),v({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectPKCE:{let e=JSON.parse(I),i=await w().loginWithPKCEFlowCallback(e.authorizationCode,e.state),n=await w().connectImx(),a=_(n);if(!a)throw Error("Failed to connect via PKCE");(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedConnectPkce",S(o),{succeeded:a}),v({responseFor:t,requestId:r,success:a,error:null});break}case y.loginConfirmCode:{let e=JSON.parse(I),i=await w().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null);(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedLoginConfirmCode",S(o)),v({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectConfirmCode:{let e=JSON.parse(I),i=await w().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null),n=await w().connectImx(),a=_(n);if(!a)throw Error("Failed to connect via confirm code");(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedConnectConfirmCode",S(o),{succeeded:a}),v({responseFor:t,requestId:r,success:a,error:null});break}case y.logout:{let e=await w().logoutDeviceFlow();n=null,a=null,(0,u.trackDuration)(m,"performedGetLogoutUrl",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.getAccessToken:{let e=await w().getAccessToken(),i=void 0!==e;if(!i)throw Error("No access token");(0,u.trackDuration)(m,"performedGetAccessToken",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e});break}case y.getIdToken:{let e=await w().getIdToken(),i=void 0!==e;if(!i)throw Error("No ID token");(0,u.trackDuration)(m,"performedGetIdToken",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e});break}case y.getEmail:{let e=await w().getUserInfo(),i=e?.email!==void 0;if(!i)throw Error("No email");(0,u.trackDuration)(m,"performedGetEmail",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e?.email});break}case y.getPassportId:{let e=await w().getUserInfo(),i=e?.sub!==void 0;if(!i)throw Error("No Passport ID");(0,u.trackDuration)(m,"performedGetPassportId",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e?.sub});break}case y.getLinkedAddresses:{let e=await w().getLinkedAddresses();(0,u.trackDuration)(m,"performedGetLinkedAddresses",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.getAddress:{let e=await M().getAddress();(0,u.trackDuration)(m,"performedImxGetAddress",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.isRegisteredOffchain:{let e=await M().isRegisteredOffchain();(0,u.trackDuration)(m,"performedImxIsRegisteredOffchain",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.registerOffchain:{let e=await M().registerOffchain();(0,u.trackDuration)(m,"performedImxRegisterOffchain",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,...e});break}case y.imx.transfer:{let e=JSON.parse(I),i=await M().transfer(e);(0,u.trackDuration)(m,"performedImxTransfer",S(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(i)}),v({responseFor:t,requestId:r,success:!0,error:null,...i});break}case y.imx.batchNftTransfer:{let e=JSON.parse(I),i=await M().batchNftTransfer(e);(0,u.trackDuration)(m,"performedImxBatchNftTransfer",S(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(i)}),v({responseFor:t,requestId:r,success:!0,error:null,...i});break}case y.zkEvm.connectEvm:{let e=w().connectEvm(),i=E(e);if(!i)throw Error("Failed to connect to EVM");(0,u.trackDuration)(m,"performedZkevmConnectEvm",S(o),{succeeded:i}),v({responseFor:t,requestId:r,success:i,error:null});break}case y.zkEvm.sendTransaction:{let e=JSON.parse(I),i=await A().request({method:"eth_sendTransaction",params:[e]}),n=null!=i;if(!n)throw Error("Failed to send transaction");(0,u.trackDuration)(m,"performedZkevmSendTransaction",S(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:i}),v({responseFor:t,requestId:r,success:n,error:null,result:i});break}case y.zkEvm.sendTransactionWithConfirmation:{let e=JSON.parse(I),i=A(),n=new l.providers.Web3Provider(i),a=n.getSigner(),s=await a.sendTransaction(e),f=await s.wait();(0,u.trackDuration)(m,"performedZkevmSendTransactionWithConfirmation",S(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:JSON.stringify(f)}),v({responseFor:t,requestId:r,success:!0,error:null,...f});break}case y.zkEvm.requestAccounts:{let e=await A().request({method:"eth_requestAccounts"}),i=null!=e;if(!i)throw Error("Failed to request accounts");(0,u.trackDuration)(m,"performedZkevmRequestAccounts",S(o)),v({responseFor:t,requestId:r,success:i,error:null,accounts:e});break}case y.zkEvm.getBalance:{let e=JSON.parse(I),i=await A().request({method:"eth_getBalance",params:[e.address,e.blockNumberOrTag]}),n=null!=i;if(!n)throw Error("Failed to get balance");(0,u.trackDuration)(m,"performedZkevmGetBalance",S(o)),v({responseFor:t,requestId:r,success:n,error:null,result:i});break}case y.zkEvm.getTransactionReceipt:{let e=JSON.parse(I),i=await A().request({method:"eth_getTransactionReceipt",params:[e.txHash]}),n=void 0!==i;if(!n)throw Error("Failed to get transaction receipt");(0,u.trackDuration)(m,"performedZkevmGetTransactionReceipt",S(o)),v({responseFor:t,requestId:r,success:n,error:null,...i});break}case"track":{let e=JSON.parse(I),i=e.properties?JSON.parse(e.properties):{};(0,u.track)(e.moduleName,e.eventName,i),v({responseFor:t,requestId:r,success:!0,error:null})}}}catch(n){let e;console.log(`Error in callFunction: ${n}`),e=n instanceof Error?n:Error(n);let i=n instanceof f.PassportError?n?.type:void 0;(0,u.trackError)(m,t,e,{fxName:t,requestId:r,errorType:i,...s}),(0,u.trackDuration)(m,"failedCallFunction",S(o),{fxName:t,requestId:r,error:e.message}),console.log("callFunction error",e),console.log("callFunction errorType",i),v({responseFor:t,requestId:r,success:!1,error:n?.message!==null&&n?.message!==void 0?n.message:"Error",errorType:n instanceof f.PassportError?n?.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":"iPtWy","@imtbl/config":"ed8SG","@imtbl/x-client":"hV3j7","@imtbl/metrics":"dO0KB",ethers:"8wpcu"}],iPtWy:[function(e,t,r){let i;var n,a,s,o,f,d,c,u,l,h,p,b,m,g,y=e("@parcel/transformer-js/src/esmodule-helpers.js");y.defineInteropFlag(r),y.export(r,"JsonRpcError",()=>e3),y.export(r,"Passport",()=>tO),y.export(r,"PassportError",()=>z),y.export(r,"ProviderErrorCode",()=>m),y.export(r,"ProviderEvent",()=>b),y.export(r,"RpcErrorCode",()=>g);var v=e("axios"),w=y.interopDefault(v),_=e("@imtbl/generated-clients"),M=e("@imtbl/x-client"),E=e("@imtbl/config"),A=e("@imtbl/metrics"),S=e("oidc-client-ts"),x=e("crypto"),I=e("jwt-decode"),R=y.interopDefault(I),k=e("localforage"),T=y.interopDefault(k),C=e("magic-sdk"),P=e("@magic-ext/oidc"),O=e("@ethersproject/providers"),N=e("@imtbl/toolkit"),j=e("ethers"),B=e("events"),L=e("@0xsequence/abi"),D=e("@0xsequence/core"),F=e("uuid"),U=e("a7402fb880ab41a1");function q(e){return"code"in e&&"message"in e}(n=c||(c={})).AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",n.INVALID_CONFIGURATION="INVALID_CONFIGURATION",n.WALLET_CONNECTION_ERROR="WALLET_CONNECTION_ERROR",n.NOT_LOGGED_IN_ERROR="NOT_LOGGED_IN_ERROR",n.SILENT_LOGIN_ERROR="SILENT_LOGIN_ERROR",n.REFRESH_TOKEN_ERROR="REFRESH_TOKEN_ERROR",n.USER_REGISTRATION_ERROR="USER_REGISTRATION_ERROR",n.USER_NOT_REGISTERED_ERROR="USER_NOT_REGISTERED_ERROR",n.LOGOUT_ERROR="LOGOUT_ERROR",n.TRANSFER_ERROR="TRANSFER_ERROR",n.CREATE_ORDER_ERROR="CREATE_ORDER_ERROR",n.CANCEL_ORDER_ERROR="CANCEL_ORDER_ERROR",n.EXCHANGE_TRANSFER_ERROR="EXCHANGE_TRANSFER_ERROR",n.CREATE_TRADE_ERROR="CREATE_TRADE_ERROR",n.OPERATION_NOT_SUPPORTED_ERROR="OPERATION_NOT_SUPPORTED_ERROR",n.LINK_WALLET_ALREADY_LINKED_ERROR="LINK_WALLET_ALREADY_LINKED_ERROR",n.LINK_WALLET_MAX_WALLETS_LINKED_ERROR="LINK_WALLET_MAX_WALLETS_LINKED_ERROR",n.LINK_WALLET_VALIDATION_ERROR="LINK_WALLET_VALIDATION_ERROR",n.LINK_WALLET_DUPLICATE_NONCE_ERROR="LINK_WALLET_DUPLICATE_NONCE_ERROR",n.LINK_WALLET_GENERIC_ERROR="LINK_WALLET_GENERIC_ERROR";class z extends Error{type;constructor(e,t){super(e),this.type=t}}let K=async(e,t)=>{try{return await e()}catch(r){let e;throw e=(0,v.isAxiosError)(r)&&r.response?.data&&q(r.response.data)?r.response.data.message:r.message,new z(e,t)}},H="pkce_state",W="pkce_verifier";class V{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,R.default)(e),r=t.exp??0,i=Date.now()/1e3+3600;return r>i}catch(e){return!1}}savePKCEData(e){localStorage.setItem(H,e.state),localStorage.setItem(W,e.verifier)}getPKCEData(){let e=localStorage.getItem(H),t=localStorage.getItem(W);return e&&t?{state:e,verifier:t}:null}}var G={warn:(...e)=>{if(void 0===U)return;let t=U?.env?.JEST_WORKER_ID===void 0;t&&console.warn(...e)}};(a=u||(u={})).LOGGED_OUT="loggedOut",a.LOGGED_IN="loggedIn",a.ACCOUNTS_REQUESTED="accountsRequested";let J=e=>!!e.zkEvm,Z=e=>!!e.imx,X="passport-overlay",$=`${X}-close`,Y=`${X}-try-again`,Q=` +!function(e,t,r,i,n){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof a[i]&&a[i],o=s.cache||{},f="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function d(t,r){if(!o[t]){if(!e[t]){var n="function"==typeof a[i]&&a[i];if(!r&&n)return n(t,!0);if(s)return s(t,!0);if(f&&"string"==typeof t)return f(t);var c=Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}l.resolve=function(r){var i=e[t][1][r];return null!=i?i:r},l.cache={};var u=o[t]=new d.Module(t);e[t][0].call(u.exports,l,u,u.exports,this)}return o[t].exports;function l(e){var t=l.resolve(e);return!1===t?{}:d(t)}}d.isParcelRequire=!0,d.Module=function(e){this.id=e,this.bundle=d,this.exports={}},d.modules=e,d.cache=o,d.parent=s,d.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(d,"root",{get:function(){return a[i]}}),a[i]=d;for(var c=0;c{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("undefined"!==window.Unity)window.Unity.call(t);else{let e="No available game callbacks to call from ImmutableSDK game-bridge";throw console.error(e),Error(e)}},w=()=>{if(null==i)throw Error("No Passport client");return i},_=e=>null!=e?(n=e,console.log("IMX provider set"),!0):(console.log("No IMX provider"),!1),M=()=>{if(null==n)throw Error("No IMX provider");return n},E=e=>null!=e?(a=e,console.log("zkEvm provider set"),!0):(console.log("No zkEvm provider"),!1),A=()=>{if(null==a)throw Error("No zkEvm provider");return a},S=e=>Date.now()-e;(0,u.track)(m,"loadedGameBridge",{sdkVersionTag:g}),window.callFunction=async e=>{console.log(`Call function ${e}`);let t=null,r=null,o=Date.now();try{let x=JSON.parse(e);t=x.fxName,r=x.requestId;let I=x.data;switch(t){case y.init:{let e=JSON.parse(I),n=e?.redirectUri,a=e?.isSilentLogout===!0?"silent":"redirect";if(!i){let t;console.log(`Connecting to ${e.environment} environment`);let r="production"===e.environment?d.Environment.PRODUCTION:d.Environment.SANDBOX,s=new d.ImmutableConfiguration({environment:r});t="dev"===e.environment||"development"===e.environment?{baseConfig:s,clientId:e.clientId,redirectUri:n??b,logoutRedirectUri:e?.logoutRedirectUri,audience:p,scope:h,crossSdkBridgeEnabled:!0,logoutMode:a,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 c.IMXClient({baseConfig:s,overrides:{immutableXConfig:c.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:n??b,logoutRedirectUri:e?.logoutRedirectUri,crossSdkBridgeEnabled:!0,logoutMode:a},i=new f.Passport(t),(0,u.trackDuration)(m,"initialisedPassport",S(o))}v({responseFor:t,requestId:r,success:!0,error:null});let{engineVersion:l}=e;s={gameBridgeTag:g,gameBridgeSha:"b93a0ff5f8dd1fdc08f3a6596b18f4f5c198199e",engine:l.engine,engineVersion:l.engineVersion,engineSdkVersion:l.engineSdkVersion??"",platform:l.platform,platformVersion:l.platformVersion,deviceModel:l.deviceModel??"N/A"},console.log(`Version check: ${JSON.stringify(s)}`),(0,u.trackDuration)(m,"completedInitGameBridge",S(o),{...s});break}case y.initDeviceFlow:{let e=await w().loginWithDeviceFlow();(0,u.trackDuration)(m,"performedInitDeviceFlow",S(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}),i=null!==e;if(!i)throw Error("Failed to re-login");(0,u.identify)({passportId:e?.sub}),(0,u.trackDuration)(m,"performedRelogin",S(o),{succeeded:i}),v({responseFor:t,requestId:r,success:null!==e,error:null});break}case y.reconnect:{let e=!1,i=await w().login({useCachedSession:!0});if(i){let t=await w().connectImx();e=_(t),(0,u.identify)({passportId:i?.sub})}if(!e)throw Error("Failed to reconnect");(0,u.trackDuration)(m,"performedReconnect",S(o),{succeeded:null!==i}),v({responseFor:t,requestId:r,success:e,error:null});break}case y.getPKCEAuthUrl:{let e=w().loginWithPKCEFlow();(0,u.trackDuration)(m,"performedGetPkceAuthUrl",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.loginPKCE:{let e=JSON.parse(I),i=await w().loginWithPKCEFlowCallback(e.authorizationCode,e.state);(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedLoginPkce",S(o)),v({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectPKCE:{let e=JSON.parse(I),i=await w().loginWithPKCEFlowCallback(e.authorizationCode,e.state),n=await w().connectImx(),a=_(n);if(!a)throw Error("Failed to connect via PKCE");(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedConnectPkce",S(o),{succeeded:a}),v({responseFor:t,requestId:r,success:a,error:null});break}case y.loginConfirmCode:{let e=JSON.parse(I),i=await w().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null);(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedLoginConfirmCode",S(o)),v({responseFor:t,requestId:r,success:!0,error:null});break}case y.connectConfirmCode:{let e=JSON.parse(I),i=await w().loginWithDeviceFlowCallback(e.deviceCode,e.interval,e.timeoutMs??null),n=await w().connectImx(),a=_(n);if(!a)throw Error("Failed to connect via confirm code");(0,u.identify)({passportId:i.sub}),(0,u.trackDuration)(m,"performedConnectConfirmCode",S(o),{succeeded:a}),v({responseFor:t,requestId:r,success:a,error:null});break}case y.logout:{let e=await w().logoutDeviceFlow();n=null,a=null,(0,u.trackDuration)(m,"performedGetLogoutUrl",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.getAccessToken:{let e=await w().getAccessToken(),i=void 0!==e;if(!i)throw Error("No access token");(0,u.trackDuration)(m,"performedGetAccessToken",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e});break}case y.getIdToken:{let e=await w().getIdToken(),i=void 0!==e;if(!i)throw Error("No ID token");(0,u.trackDuration)(m,"performedGetIdToken",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e});break}case y.getEmail:{let e=await w().getUserInfo(),i=e?.email!==void 0;if(!i)throw Error("No email");(0,u.trackDuration)(m,"performedGetEmail",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e?.email});break}case y.getPassportId:{let e=await w().getUserInfo(),i=e?.sub!==void 0;if(!i)throw Error("No Passport ID");(0,u.trackDuration)(m,"performedGetPassportId",S(o)),v({responseFor:t,requestId:r,success:i,error:null,result:e?.sub});break}case y.getLinkedAddresses:{let e=await w().getLinkedAddresses();(0,u.trackDuration)(m,"performedGetLinkedAddresses",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.getAddress:{let e=await M().getAddress();(0,u.trackDuration)(m,"performedImxGetAddress",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.isRegisteredOffchain:{let e=await M().isRegisteredOffchain();(0,u.trackDuration)(m,"performedImxIsRegisteredOffchain",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,result:e});break}case y.imx.registerOffchain:{let e=await M().registerOffchain();(0,u.trackDuration)(m,"performedImxRegisterOffchain",S(o)),v({responseFor:t,requestId:r,success:!0,error:null,...e});break}case y.imx.transfer:{let e=JSON.parse(I),i=await M().transfer(e);(0,u.trackDuration)(m,"performedImxTransfer",S(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(i)}),v({responseFor:t,requestId:r,success:!0,error:null,...i});break}case y.imx.batchNftTransfer:{let e=JSON.parse(I),i=await M().batchNftTransfer(e);(0,u.trackDuration)(m,"performedImxBatchNftTransfer",S(o),{requestId:r,transferRequest:JSON.stringify(e),transferResponse:JSON.stringify(i)}),v({responseFor:t,requestId:r,success:!0,error:null,...i});break}case y.zkEvm.connectEvm:{let e=w().connectEvm(),i=E(e);if(!i)throw Error("Failed to connect to EVM");(0,u.trackDuration)(m,"performedZkevmConnectEvm",S(o),{succeeded:i}),v({responseFor:t,requestId:r,success:i,error:null});break}case y.zkEvm.sendTransaction:{let e=JSON.parse(I),i=await A().request({method:"eth_sendTransaction",params:[e]}),n=null!=i;if(!n)throw Error("Failed to send transaction");(0,u.trackDuration)(m,"performedZkevmSendTransaction",S(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:i}),v({responseFor:t,requestId:r,success:n,error:null,result:i});break}case y.zkEvm.sendTransactionWithConfirmation:{let e=JSON.parse(I),i=A(),n=new l.providers.Web3Provider(i),a=n.getSigner(),s=await a.sendTransaction(e),f=await s.wait();(0,u.trackDuration)(m,"performedZkevmSendTransactionWithConfirmation",S(o),{requestId:r,transactionRequest:JSON.stringify(e),transactionResponse:JSON.stringify(f)}),v({responseFor:t,requestId:r,success:!0,error:null,...f});break}case y.zkEvm.signTypedDataV4:{let e=JSON.parse(I),[i]=await A().request({method:"eth_requestAccounts"}),n=await A().request({method:"eth_signTypedData_v4",params:[i,e]}),a=null!=n;if(!a)throw Error("Failed to sign payload");(0,u.trackDuration)(m,"performedZkevmSignTypedDataV4",S(o),{requestId:r}),v({responseFor:t,requestId:r,success:a,error:null,result:n});break}case y.zkEvm.requestAccounts:{let e=await A().request({method:"eth_requestAccounts"}),i=null!=e;if(!i)throw Error("Failed to request accounts");(0,u.trackDuration)(m,"performedZkevmRequestAccounts",S(o)),v({responseFor:t,requestId:r,success:i,error:null,accounts:e});break}case y.zkEvm.getBalance:{let e=JSON.parse(I),i=await A().request({method:"eth_getBalance",params:[e.address,e.blockNumberOrTag]}),n=null!=i;if(!n)throw Error("Failed to get balance");(0,u.trackDuration)(m,"performedZkevmGetBalance",S(o)),v({responseFor:t,requestId:r,success:n,error:null,result:i});break}case y.zkEvm.getTransactionReceipt:{let e=JSON.parse(I),i=await A().request({method:"eth_getTransactionReceipt",params:[e.txHash]}),n=void 0!==i;if(!n)throw Error("Failed to get transaction receipt");(0,u.trackDuration)(m,"performedZkevmGetTransactionReceipt",S(o)),v({responseFor:t,requestId:r,success:n,error:null,...i});break}case"track":{let e=JSON.parse(I),i=e.properties?JSON.parse(e.properties):{};(0,u.track)(e.moduleName,e.eventName,i),v({responseFor:t,requestId:r,success:!0,error:null})}}}catch(n){let e;console.log(`Error in callFunction: ${n}`),e=n instanceof Error?n:Error(n);let i=n instanceof f.PassportError?n?.type:void 0;(0,u.trackError)(m,t,e,{fxName:t,requestId:r,errorType:i,...s}),(0,u.trackDuration)(m,"failedCallFunction",S(o),{fxName:t,requestId:r,error:e.message}),console.log("callFunction error",e),console.log("callFunction errorType",i),v({responseFor:t,requestId:r,success:!1,error:n?.message!==null&&n?.message!==void 0?n.message:"Error",errorType:n instanceof f.PassportError?n?.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":"iPtWy","@imtbl/config":"ed8SG","@imtbl/x-client":"hV3j7","@imtbl/metrics":"dO0KB",ethers:"8wpcu"}],iPtWy:[function(e,t,r){let i;var n,a,s,o,f,d,c,u,l,h,p,b,m,g,y=e("@parcel/transformer-js/src/esmodule-helpers.js");y.defineInteropFlag(r),y.export(r,"JsonRpcError",()=>e3),y.export(r,"Passport",()=>tO),y.export(r,"PassportError",()=>z),y.export(r,"ProviderErrorCode",()=>m),y.export(r,"ProviderEvent",()=>b),y.export(r,"RpcErrorCode",()=>g);var v=e("axios"),w=y.interopDefault(v),_=e("@imtbl/generated-clients"),M=e("@imtbl/x-client"),E=e("@imtbl/config"),A=e("@imtbl/metrics"),S=e("oidc-client-ts"),x=e("crypto"),I=e("jwt-decode"),R=y.interopDefault(I),k=e("localforage"),T=y.interopDefault(k),C=e("magic-sdk"),P=e("@magic-ext/oidc"),O=e("@ethersproject/providers"),N=e("@imtbl/toolkit"),j=e("ethers"),B=e("events"),L=e("@0xsequence/abi"),D=e("@0xsequence/core"),F=e("uuid"),U=e("a7402fb880ab41a1");function q(e){return"code"in e&&"message"in e}(n=c||(c={})).AUTHENTICATION_ERROR="AUTHENTICATION_ERROR",n.INVALID_CONFIGURATION="INVALID_CONFIGURATION",n.WALLET_CONNECTION_ERROR="WALLET_CONNECTION_ERROR",n.NOT_LOGGED_IN_ERROR="NOT_LOGGED_IN_ERROR",n.SILENT_LOGIN_ERROR="SILENT_LOGIN_ERROR",n.REFRESH_TOKEN_ERROR="REFRESH_TOKEN_ERROR",n.USER_REGISTRATION_ERROR="USER_REGISTRATION_ERROR",n.USER_NOT_REGISTERED_ERROR="USER_NOT_REGISTERED_ERROR",n.LOGOUT_ERROR="LOGOUT_ERROR",n.TRANSFER_ERROR="TRANSFER_ERROR",n.CREATE_ORDER_ERROR="CREATE_ORDER_ERROR",n.CANCEL_ORDER_ERROR="CANCEL_ORDER_ERROR",n.EXCHANGE_TRANSFER_ERROR="EXCHANGE_TRANSFER_ERROR",n.CREATE_TRADE_ERROR="CREATE_TRADE_ERROR",n.OPERATION_NOT_SUPPORTED_ERROR="OPERATION_NOT_SUPPORTED_ERROR",n.LINK_WALLET_ALREADY_LINKED_ERROR="LINK_WALLET_ALREADY_LINKED_ERROR",n.LINK_WALLET_MAX_WALLETS_LINKED_ERROR="LINK_WALLET_MAX_WALLETS_LINKED_ERROR",n.LINK_WALLET_VALIDATION_ERROR="LINK_WALLET_VALIDATION_ERROR",n.LINK_WALLET_DUPLICATE_NONCE_ERROR="LINK_WALLET_DUPLICATE_NONCE_ERROR",n.LINK_WALLET_GENERIC_ERROR="LINK_WALLET_GENERIC_ERROR";class z extends Error{type;constructor(e,t){super(e),this.type=t}}let K=async(e,t)=>{try{return await e()}catch(r){let e;throw e=(0,v.isAxiosError)(r)&&r.response?.data&&q(r.response.data)?r.response.data.message:r.message,new z(e,t)}},H="pkce_state",V="pkce_verifier";class W{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,R.default)(e),r=t.exp??0,i=Date.now()/1e3+3600;return r>i}catch(e){return!1}}savePKCEData(e){localStorage.setItem(H,e.state),localStorage.setItem(V,e.verifier)}getPKCEData(){let e=localStorage.getItem(H),t=localStorage.getItem(V);return e&&t?{state:e,verifier:t}:null}}var G={warn:(...e)=>{if(void 0===U)return;let t=U?.env?.JEST_WORKER_ID===void 0;t&&console.warn(...e)}};(a=u||(u={})).LOGGED_OUT="loggedOut",a.LOGGED_IN="loggedIn",a.ACCOUNTS_REQUESTED="accountsRequested";let J=e=>!!e.zkEvm,Z=e=>!!e.imx,X="passport-overlay",$=`${X}-close`,Y=`${X}-try-again`,Q=` - `;function eo({id:e,href:t,rel:r,crossOrigin:i}){let n=`${X}-${e}`;if(!document.getElementById(n)){let e=document.createElement("link");e.id=n,e.href=t,r&&(e.rel=r),i&&(e.crossOrigin=i),document.head.appendChild(e)}}let ef=()=>es(ei()),ed=()=>es(en());class ec{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?ef():ed(),document.body.insertAdjacentElement("beforeend",e),this.overlay=e}}updateTryAgainButton(e){let t=document.getElementById(Y);t&&(this.tryAgainListener&&t.removeEventListener("click",this.tryAgainListener),this.tryAgainListener=e,t.addEventListener("click",e))}updateCloseButton(e){let t=document.getElementById($);t&&(this.onCloseListener&&t.removeEventListener("click",this.onCloseListener),this.onCloseListener=e,t.addEventListener("click",e))}}class eu{storage;constructor(e,t){this.storage=(0,T.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)}}let el={headers:{"Content-Type":"application/x-www-form-urlencoded"}},eh="/v2/logout",ep=e=>{let t;let{authenticationDomain:r,oidcConfiguration:i}=e;t=e.crossSdkBridgeEnabled?new eu("ImmutableSDKPassport",T.default.INDEXEDDB):"undefined"!=typeof window?window.localStorage:new S.InMemoryWebStorage;let n=new S.WebStorageStateStore({store:t}),a=new URL(eh,r.replace(/^(?:https?:\/\/)?(.*)/,"https://$1"));a.searchParams.set("client_id",i.clientId),i.logoutRedirectUri&&a.searchParams.set("returnTo",i.logoutRedirectUri);let s={authority:r,redirect_uri:i.redirectUri,popup_redirect_uri:i.redirectUri,client_id:i.clientId,metadata:{authorization_endpoint:`${r}/authorize`,token_endpoint:`${r}/oauth/token`,userinfo_endpoint:`${r}/userinfo`,end_session_endpoint:a.toString()},mergeClaims:!0,automaticSilentRenew:!1,scope:i.scope,userStore:n};return i.audience&&(s.extraQueryParams={audience:i.audience}),s};function eb(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class em{userManager;deviceCredentialsManager;config;logoutMode;refreshingPromise=null;constructor(e){this.config=e,this.userManager=new S.UserManager(ep(e)),this.deviceCredentialsManager=new V,this.logoutMode=e.oidcConfiguration.logoutMode||"redirect"}static mapOidcUserToDomainModel=e=>{let t;e.id_token&&(t=R.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,R.default)(e.id_token);return new S.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 login(e){return K(async()=>{let t="passportLoginPrompt",r=async()=>this.userManager.signinPopup({extraQueryParams:{...this.userManager.settings?.extraQueryParams??{},rid:(0,A.getDetail)(A.Detail.RUNTIME_ID)||"",third_party_a_id:e||""},popupWindowFeatures:{width:410,height:450},popupWindowTarget:t});return new Promise((e,i)=>{r().then(t=>{e(em.mapOidcUserToDomainModel(t))}).catch(n=>{if(!(n instanceof Error)||"Attempted to navigate on a disposed window"!==n.message){i(n);return}let a=!1,s=new ec(this.config.popupOverlayOptions,!0);s.append(async()=>{try{if(a)window.open("",t);else{a=!0;let t=await r();s.remove(),e(em.mapOidcUserToDomainModel(t))}}catch(e){s.remove(),i(e)}},()=>{s.remove(),i(Error("Popup closed by user"))})})})},c.AUTHENTICATION_ERROR)}async getUserOrLogin(){let e=null;try{e=await this.getUser()}catch(e){G.warn("Failed to retrieve a cached user session",e)}return e||this.login()}async loginCallback(){return K(async()=>{await this.userManager.signinCallback()},c.AUTHENTICATION_ERROR)}async loginWithDeviceFlow(e){return K(async()=>{let t=await (0,w.default).post(`${this.config.authenticationDomain}/oauth/device/code`,{client_id:this.config.oidcConfiguration.clientId,scope:this.config.oidcConfiguration.scope,audience:this.config.oidcConfiguration.audience},el),r=(0,A.getDetail)(A.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}},c.AUTHENTICATION_ERROR)}async loginWithDeviceFlowCallback(e,t,r){return K(async()=>{let i=Date.now();for(;;){if(null!=r&&Date.now()-i>r)throw Error("Timed out");await function(e){return new Promise(t=>{setTimeout(t,e)})}(1e3*t);try{let t=await this.getDeviceFlowToken(e),r=em.mapDeviceTokenResponseToOidcUser(t),i=em.mapOidcUserToDomainModel(r);return await this.userManager.storeUser(r),i}catch(e){if((0,w.default).isAxiosError(e)){let t=e.response?.data;switch(t.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")},c.AUTHENTICATION_ERROR)}async getDeviceFlowToken(e){let t=await (0,w.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},el);return t.data}getPKCEAuthorizationUrl(){let e=eb(x.randomBytes(32)),t=eb(x.createHash("sha256").update(e).digest()),r=eb(x.randomBytes(32)),{redirectUri:i,scope:n,audience:a,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",i),o.searchParams.set("state",r),n&&o.searchParams.set("scope",n),a&&o.searchParams.set("audience",a),o.toString()}async loginWithPKCEFlowCallback(e,t){return K(async()=>{let r=this.deviceCredentialsManager.getPKCEData();if(!r)throw Error("No code verifier or state for PKCE");if(t!==r.state)throw Error("Provided state does not match stored state");let i=await this.getPKCEToken(e,r.verifier),n=em.mapDeviceTokenResponseToOidcUser(i),a=em.mapOidcUserToDomainModel(n);return await this.userManager.storeUser(n),a},c.AUTHENTICATION_ERROR)}async getPKCEToken(e,t){let r=await (0,w.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},el);return r.data}async logout(){return K(async()=>"silent"===this.logoutMode?this.userManager.signoutSilent():this.userManager.signoutRedirect(),c.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=>{G.warn("Failed to refresh user token",e)})}async forceUserRefresh(){return this.refreshTokenAndUpdatePromise()}async refreshTokenAndUpdatePromise(){return this.refreshingPromise||(this.refreshingPromise=new Promise(async(e,t)=>{try{let t=await this.userManager.signinSilent();if(t){e(em.mapOidcUserToDomainModel(t));return}e(null)}catch(i){let e=c.AUTHENTICATION_ERROR,r="Failed to refresh token";i instanceof S.ErrorTimeout?e=c.SILENT_LOGIN_ERROR:i instanceof S.ErrorResponse?(e=c.NOT_LOGGED_IN_ERROR,r=`${i.message}: ${i.error_description}`):i instanceof Error&&(r=i.message),t(new z(r,e))}finally{this.refreshingPromise=null}})),this.refreshingPromise}async getUser(e=e=>!0){if(this.refreshingPromise){let t=await this.refreshingPromise;return t&&e(t)?t:null}let t=await this.userManager.getUser();if(!t)return null;if(!function(e){let{id_token:t,expired:r}=e;return!!r||function(e){if(!e)return!1;let t=(0,R.default)(e),r=Math.floor(Date.now()/1e3);return t.expe().then(t),ey=e=>eg(()=>new Promise(e=>{let t=()=>{"complete"===window.document.readyState&&(e(),window.document.removeEventListener("readystatechange",t))};window.document.addEventListener("readystatechange",t),"complete"===window.document.readyState&&(e(),window.document.removeEventListener("readystatechange",t))}),e),ev=(e,t)=>{let r=(0,A.trackFlow)("passport",t);try{return e(r)}catch(e){throw e instanceof Error&&(0,A.trackError)("passport",t,e),r.addEvent("errored"),e}finally{r.addEvent("End")}},ew=async(e,t)=>{let r=(0,A.trackFlow)("passport",t);try{return await e(r)}catch(e){throw e instanceof Error&&(0,A.trackError)("passport",t,e),r.addEvent("errored"),e}finally{r.addEvent("End")}};class e_{config;lazyMagicClient;constructor(e){this.config=e,"undefined"!=typeof window&&(this.lazyMagicClient=ey(()=>{let e=new C.Magic(this.config.magicPublishableApiKey,{extensions:[new P.OpenIdExtension],network:"mainnet"});return e}))}get magicClient(){if(!this.lazyMagicClient)throw Error("Cannot perform this action outside of the browser");return this.lazyMagicClient}async login(e){return K(async()=>ew(async t=>{let r=performance.now(),i=await this.magicClient;return t.addEvent("endMagicClientInit"),await i.openid.loginWithOIDC({jwt:e,providerId:this.config.magicProviderId}),t.addEvent("endLoginWithOIDC"),(0,A.trackDuration)("passport",t.details.flowName,Math.round(performance.now()-r)),i.rpcProvider},"magicLogin"),c.WALLET_CONNECTION_ERROR)}async logout(){let e=await this.magicClient;e.user&&await e.user.logout()}}let eM=async e=>K(async()=>{let t=await (0,M.generateLegacyStarkPrivateKey)(e);return(0,M.createStarkSigner)(t)},c.WALLET_CONNECTION_ERROR);async function eE({user:e,starkSigner:t,request:r,exchangesApi:i}){return K(async()=>{let{ethAddress:n}=e.imx,a=r.amount,s=await i.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:n,token:(0,N.convertToSignableToken)(r),amount:a,receiver:r.receiver}}),o=await t.getAddress(),{payload_hash:f}=s.data,d=await t.signMessage(f),c={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:d},u={Authorization:`Bearer ${e.accessToken}`},l=await i.createExchangeTransfer({id:r.transactionID,createTransferRequest:c},{headers:u});return{sent_signature:l?.data.sent_signature,status:l?.data.status?.toString(),time:l?.data.time,transfer_id:l?.data.transfer_id}},c.EXCHANGE_TRANSFER_ERROR)}let eA="ERC721";async function eS({starkSigner:e,user:t,request:r,ordersApi:i,guardianClient:n}){return K(async()=>{let{ethAddress:a}=t.imx,s=r.sell.type===eA?"1":r.sell.amount,o=r.buy.type===eA?"1":r.buy.amount,f={Authorization:`Bearer ${t.accessToken}`},d={user:a,amount_buy:o,token_buy:(0,N.convertToSignableToken)(r.buy),amount_sell:s,token_sell:(0,N.convertToSignableToken)(r.sell),fees:r.fees,split_fees:!0,expiration_timestamp:r.expiration_timestamp},c=await i.getSignableOrder({getSignableOrderRequestV3:d},{headers:f});await n.evaluateImxTransaction({payloadHash:c.data.payload_hash});let{payload_hash:u}=c.data,l=await e.signMessage(u),h=c.data,p={createOrderRequest:{include_fees:!0,fees:r.fees,stark_signature:l,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}},b=await i.createOrderV3(p,{headers:f});return{...b.data}},c.CREATE_ORDER_ERROR)}async function ex({user:e,starkSigner:t,request:r,ordersApi:i,guardianClient:n}){return K(async()=>{let a={order_id:r.order_id},s={Authorization:`Bearer ${e.accessToken}`},o=await i.getSignableCancelOrderV3({getSignableCancelOrderRequest:a},{headers:s});await n.evaluateImxTransaction({payloadHash:o.data.payload_hash});let{payload_hash:f}=o.data,d=await t.signMessage(f),c=await i.cancelOrderV3({id:r.order_id.toString(),cancelOrderRequest:{order_id:r.order_id,stark_signature:d}},{headers:s});return{order_id:c.data.order_id,status:c.data.status}},c.CANCEL_ORDER_ERROR)}async function eI({ethSigner:e,starkSigner:t,imxApiClients:r},i){return K(async()=>{let[n,a]=await Promise.all([e.getAddress(),t.getAddress()]),s=await r.usersApi.getSignableRegistrationOffchain({getSignableRegistrationRequest:{ether_key:n,stark_key:a}}),{signable_message:o,payload_hash:f}=s.data,[d,c]=await Promise.all([(0,N.signRaw)(o,e),t.signMessage(f)]),u=await r.usersApi.registerPassportUserV2({authorization:`Bearer ${i}`,registerPassportUserRequest:{eth_signature:d,ether_key:n,stark_signature:c,stark_key:a}});return u.data},c.USER_REGISTRATION_ERROR)}async function eR({request:e,tradesApi:t,user:r,starkSigner:i,guardianClient:n}){return K(async()=>{let{ethAddress:a}=r.imx,s={expiration_timestamp:e.expiration_timestamp,fees:e.fees,order_id:e.order_id,user:a},o={Authorization:`Bearer ${r.accessToken}`},f=await t.getSignableTrade({getSignableTradeRequest:s},{headers:o});await n.evaluateImxTransaction({payloadHash:f.data.payload_hash});let{payload_hash:d}=f.data,c=await i.signMessage(d),{data:u}=f,l={createTradeRequest:{include_fees:!0,fees:e?.fees,stark_signature:c,order_id:e?.order_id,fee_info:u.fee_info,amount_buy:u.amount_buy,amount_sell:u.amount_sell,asset_id_buy:u.asset_id_buy,asset_id_sell:u.asset_id_sell,expiration_timestamp:u.expiration_timestamp,nonce:u.nonce,stark_key:u.stark_key,vault_id_buy:u.vault_id_buy,vault_id_sell:u.vault_id_sell}},{data:h}=await t.createTradeV3(l,{headers:o});return h},c.CREATE_TRADE_ERROR)}let ek="ERC721";async function eT({request:e,transfersApi:t,starkSigner:r,user:i,guardianClient:n}){return K(async()=>{let a=e.type===ek?"1":e.amount,s={sender:i.imx.ethAddress,token:(0,N.convertToSignableToken)(e),amount:a,receiver:e.receiver},o={Authorization:`Bearer ${i.accessToken}`},f=await t.getSignableTransferV1({getSignableTransferRequest:s},{headers:o});await n.evaluateImxTransaction({payloadHash:f.data.payload_hash});let d=f.data,{payload_hash:c}=d,u=await r.signMessage(c),l=await r.getAddress(),h={sender_stark_key:d.sender_stark_key||l,sender_vault_id:d.sender_vault_id,receiver_stark_key:d.receiver_stark_key,receiver_vault_id:d.receiver_vault_id,asset_id:d.asset_id,amount:d.amount,nonce:d.nonce,expiration_timestamp:d.expiration_timestamp,stark_signature:u},{data:p}=await t.createTransferV1({createTransferRequest:h},{headers:o});return{sent_signature:p.sent_signature,status:p.status?.toString(),time:p.time,transfer_id:p.transfer_id}},c.TRANSFER_ERROR)}async function eC({user:e,starkSigner:t,request:r,transfersApi:i,guardianClient:n}){return K(async()=>{let{ethAddress:a}=e.imx,s=r.map(e=>({amount:"1",token:(0,N.convertToSignableToken)({type:ek,tokenId:e.tokenId,tokenAddress:e.tokenAddress}),receiver:e.receiver})),o={Authorization:`Bearer ${e.accessToken}`},f=await i.getSignableTransfer({getSignableTransferRequestV2:{sender_ether_key:a,signable_requests:s}},{headers:o});await n.evaluateImxTransaction({payloadHash:f.data.signable_responses[0]?.payload_hash});let d=await Promise.all(f.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}})),c={sender_stark_key:f.data.sender_stark_key,requests:d},u=await i.createTransfer({createTransferRequestV2:c},{headers:o});return{transfer_ids:u?.data.transfer_ids}},c.TRANSFER_ERROR)}let eP=e=>new Promise(t=>{setTimeout(()=>t(),e)}),eO=async(e,t)=>{let{retries:r=3,interval:i=1e3,finalErr:n=Error("Retry failed"),finallyFn:a=()=>{}}=t||{};try{return await e()}catch(t){if(r<=0)return Promise.reject(n);return await eP(i),eO(e,{retries:r-1,finalErr:n,finallyFn:a})}finally{r<=0&&a()}};async function eN(e){await eO(async()=>{let t=await e.forceUserRefresh();return t?.imx?t:Promise.reject(Error("user wallet addresses not exist"))})}async function ej(e,t,r,i,n){return K(async()=>{try{let a=await eI({ethSigner:e,starkSigner:t,imxApiClients:n},r.accessToken);return await eN(i),a}catch(e){if((0,w.default).isAxiosError(e)&&e.response?.status===409)return await eN(i),{tx_hash:""};throw e}},c.USER_REGISTRATION_ERROR)}class eB{authManager;immutableXClient;guardianClient;imxApiClients;magicAdapter;signers;signerInitialisationError;constructor({authManager:e,immutableXClient:t,passportEventEmitter:r,magicAdapter:i,imxApiClients:n,guardianClient:a}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=i,this.imxApiClients=n,this.guardianClient=a,this.#e(),r.on(u.LOGGED_OUT,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=new O.Web3Provider(t),i=r.getSigner(),n=await eM(i);return{ethSigner:i,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 z("User has been logged out",c.NOT_LOGGED_IN_ERROR);return e}async #r(){let e=await this.signers;if(void 0===e){if(void 0!==this.signerInitialisationError)throw this.signerInitialisationError;throw Error("Signers failed to initialise")}return e}async #i(){let[e,t]=await Promise.all([this.#t(),this.#r()]);if(!Z(e))throw new z("User has not been registered with StarkEx",c.USER_NOT_REGISTERED_ERROR);return{user:e,starkSigner:t.starkSigner,ethSigner:t.ethSigner}}async transfer(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return eT({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxTransfer")}async registerOffchain(){return ew(async()=>{let[e,t]=await Promise.all([this.#t(),this.#r()]);return await ej(t.ethSigner,t.starkSigner,e,this.authManager,this.imxApiClients)},"imxRegisterOffchain")}async isRegisteredOffchain(){return ew(async()=>{let e=await this.#t();return!!e.imx},"imxIsRegisteredOffchain")}isRegisteredOnchain(){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}async createOrder(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return eS({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCreateOrder")}async cancelOrder(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return ex({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCancelOrder")}async createTrade(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return eR({request:e,user:t,starkSigner:r,tradesApi:this.immutableXClient.tradesApi,guardianClient:this.guardianClient})})(),"imxCreateTrade")}async batchNftTransfer(e){return ew(()=>this.guardianClient.withConfirmationScreenTask({width:480,height:784})(async()=>{let{user:t,starkSigner:r}=await this.#i();return eC({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxBatchNftTransfer")}async exchangeTransfer(e){return ew(async()=>{let{user:t,starkSigner:r}=await this.#i();return eE({request:e,user:t,starkSigner:r,exchangesApi:this.immutableXClient.exchangeApi})},"imxExchangeTransfer")}deposit(e){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}prepareWithdrawal(e){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}completeWithdrawal(e,t){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}async getAddress(){return ew(async()=>{let e=await this.#t();if(!Z(e))throw new z("User has not been registered with StarkEx",c.USER_NOT_REGISTERED_ERROR);return Promise.resolve(e.imx.ethAddress)},"imxGetAddress")}}class eL{authManager;immutableXClient;magicAdapter;passportEventEmitter;imxApiClients;guardianClient;constructor({authManager:e,immutableXClient:t,magicAdapter:r,passportEventEmitter:i,imxApiClients:n,guardianClient:a}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=r,this.passportEventEmitter=i,this.imxApiClients=n,this.guardianClient=a}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 z("Failed to initialise",c.WALLET_CONNECTION_ERROR);return new eB({authManager:this.authManager,immutableXClient:this.immutableXClient,passportEventEmitter:this.passportEventEmitter,magicAdapter:this.magicAdapter,imxApiClients:this.imxApiClients,guardianClient:this.guardianClient})}}let eD=(e,t,r)=>{let i=t.map(t=>!e[t]&&t).filter(e=>e).join(", ");if(""!==i){let e=r?`${r} - ${i} cannot be null`:`${i} cannot be null`;throw new z(e,c.INVALID_CONFIGURATION)}};class eF{authenticationDomain;passportDomain;imxPublicApiDomain;magicPublishableApiKey;magicProviderId;oidcConfiguration;baseConfig;zkEvmRpcUrl;relayerUrl;multiRollupConfig;crossSdkBridgeEnabled;forceScwDeployBeforeMessageSignature;popupOverlayOptions;constructor({baseConfig:e,overrides:t,crossSdkBridgeEnabled:r,forceScwDeployBeforeMessageSignature:i,popupOverlayOptions:n,...a}){if(eD(a,["clientId","redirectUri"]),this.oidcConfiguration=a,this.baseConfig=e,this.crossSdkBridgeEnabled=r||!1,this.forceScwDeployBeforeMessageSignature=i||!1,this.popupOverlayOptions=n||{disableGenericPopupOverlay:!1,disableBlockedPopupOverlay:!1},t)eD(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,_.createConfig)({basePath:t.indexerMrBasePath}),orderBook:(0,_.createConfig)({basePath:t.orderBookMrBasePath}),passport:(0,_.createConfig)({basePath:t.passportMrBasePath})};else switch(e.environment){case E.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,_.multiRollupConfig).getProduction();break;case E.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,_.multiRollupConfig).getSandbox()}}}(l||(l={})).CONFIRMATION_START="confirmation_start",(s=h||(h={})).CONFIRMATION_WINDOW_READY="confirmation_window_ready",s.TRANSACTION_CONFIRMED="transaction_confirmed",s.TRANSACTION_ERROR="transaction_error",s.TRANSACTION_REJECTED="transaction_rejected",s.MESSAGE_CONFIRMED="message_confirmed",s.MESSAGE_ERROR="message_error",s.MESSAGE_REJECTED="message_rejected";let eU="imx_passport_confirmation",eq=({url:e,title:t,width:r,height:i})=>{let n=Math.max(0,Math.round(window.screenX+(window.outerWidth-r)/2)),a=Math.max(0,Math.round(window.screenY+(window.outerHeight-i)/2)),s=window.open(e,t,` + `;function eo({id:e,href:t,rel:r,crossOrigin:i}){let n=`${X}-${e}`;if(!document.getElementById(n)){let e=document.createElement("link");e.id=n,e.href=t,r&&(e.rel=r),i&&(e.crossOrigin=i),document.head.appendChild(e)}}let ef=()=>es(ei()),ed=()=>es(en());class ec{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?ef():ed(),document.body.insertAdjacentElement("beforeend",e),this.overlay=e}}updateTryAgainButton(e){let t=document.getElementById(Y);t&&(this.tryAgainListener&&t.removeEventListener("click",this.tryAgainListener),this.tryAgainListener=e,t.addEventListener("click",e))}updateCloseButton(e){let t=document.getElementById($);t&&(this.onCloseListener&&t.removeEventListener("click",this.onCloseListener),this.onCloseListener=e,t.addEventListener("click",e))}}class eu{storage;constructor(e,t){this.storage=(0,T.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)}}let el={headers:{"Content-Type":"application/x-www-form-urlencoded"}},eh="/v2/logout",ep=e=>{let t;let{authenticationDomain:r,oidcConfiguration:i}=e;t=e.crossSdkBridgeEnabled?new eu("ImmutableSDKPassport",T.default.INDEXEDDB):"undefined"!=typeof window?window.localStorage:new S.InMemoryWebStorage;let n=new S.WebStorageStateStore({store:t}),a=new URL(eh,r.replace(/^(?:https?:\/\/)?(.*)/,"https://$1"));a.searchParams.set("client_id",i.clientId),i.logoutRedirectUri&&a.searchParams.set("returnTo",i.logoutRedirectUri);let s={authority:r,redirect_uri:i.redirectUri,popup_redirect_uri:i.redirectUri,client_id:i.clientId,metadata:{authorization_endpoint:`${r}/authorize`,token_endpoint:`${r}/oauth/token`,userinfo_endpoint:`${r}/userinfo`,end_session_endpoint:a.toString()},mergeClaims:!0,automaticSilentRenew:!1,scope:i.scope,userStore:n};return i.audience&&(s.extraQueryParams={audience:i.audience}),s};function eb(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class em{userManager;deviceCredentialsManager;config;logoutMode;refreshingPromise=null;constructor(e){this.config=e,this.userManager=new S.UserManager(ep(e)),this.deviceCredentialsManager=new W,this.logoutMode=e.oidcConfiguration.logoutMode||"redirect"}static mapOidcUserToDomainModel=e=>{let t;e.id_token&&(t=R.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,R.default)(e.id_token);return new S.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 login(e){return K(async()=>{let t="passportLoginPrompt",r=async()=>this.userManager.signinPopup({extraQueryParams:{...this.userManager.settings?.extraQueryParams??{},rid:(0,A.getDetail)(A.Detail.RUNTIME_ID)||"",third_party_a_id:e||""},popupWindowFeatures:{width:410,height:450},popupWindowTarget:t});return new Promise((e,i)=>{r().then(t=>{e(em.mapOidcUserToDomainModel(t))}).catch(n=>{if(!(n instanceof Error)||"Attempted to navigate on a disposed window"!==n.message){i(n);return}let a=!1,s=new ec(this.config.popupOverlayOptions,!0);s.append(async()=>{try{if(a)window.open("",t);else{a=!0;let t=await r();s.remove(),e(em.mapOidcUserToDomainModel(t))}}catch(e){s.remove(),i(e)}},()=>{s.remove(),i(Error("Popup closed by user"))})})})},c.AUTHENTICATION_ERROR)}async getUserOrLogin(){let e=null;try{e=await this.getUser()}catch(e){G.warn("Failed to retrieve a cached user session",e)}return e||this.login()}async loginCallback(){return K(async()=>{await this.userManager.signinCallback()},c.AUTHENTICATION_ERROR)}async loginWithDeviceFlow(e){return K(async()=>{let t=await (0,w.default).post(`${this.config.authenticationDomain}/oauth/device/code`,{client_id:this.config.oidcConfiguration.clientId,scope:this.config.oidcConfiguration.scope,audience:this.config.oidcConfiguration.audience},el),r=(0,A.getDetail)(A.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}},c.AUTHENTICATION_ERROR)}async loginWithDeviceFlowCallback(e,t,r){return K(async()=>{let i=Date.now();for(;;){if(null!=r&&Date.now()-i>r)throw Error("Timed out");await function(e){return new Promise(t=>{setTimeout(t,e)})}(1e3*t);try{let t=await this.getDeviceFlowToken(e),r=em.mapDeviceTokenResponseToOidcUser(t),i=em.mapOidcUserToDomainModel(r);return await this.userManager.storeUser(r),i}catch(e){if((0,w.default).isAxiosError(e)){let t=e.response?.data;switch(t.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")},c.AUTHENTICATION_ERROR)}async getDeviceFlowToken(e){let t=await (0,w.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},el);return t.data}getPKCEAuthorizationUrl(){let e=eb(x.randomBytes(32)),t=eb(x.createHash("sha256").update(e).digest()),r=eb(x.randomBytes(32)),{redirectUri:i,scope:n,audience:a,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",i),o.searchParams.set("state",r),n&&o.searchParams.set("scope",n),a&&o.searchParams.set("audience",a),o.toString()}async loginWithPKCEFlowCallback(e,t){return K(async()=>{let r=this.deviceCredentialsManager.getPKCEData();if(!r)throw Error("No code verifier or state for PKCE");if(t!==r.state)throw Error("Provided state does not match stored state");let i=await this.getPKCEToken(e,r.verifier),n=em.mapDeviceTokenResponseToOidcUser(i),a=em.mapOidcUserToDomainModel(n);return await this.userManager.storeUser(n),a},c.AUTHENTICATION_ERROR)}async getPKCEToken(e,t){let r=await (0,w.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},el);return r.data}async logout(){return K(async()=>"silent"===this.logoutMode?this.userManager.signoutSilent():this.userManager.signoutRedirect(),c.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=>{G.warn("Failed to refresh user token",e)})}async forceUserRefresh(){return this.refreshTokenAndUpdatePromise()}async refreshTokenAndUpdatePromise(){return this.refreshingPromise||(this.refreshingPromise=new Promise(async(e,t)=>{try{let t=await this.userManager.signinSilent();if(t){e(em.mapOidcUserToDomainModel(t));return}e(null)}catch(i){let e=c.AUTHENTICATION_ERROR,r="Failed to refresh token";i instanceof S.ErrorTimeout?e=c.SILENT_LOGIN_ERROR:i instanceof S.ErrorResponse?(e=c.NOT_LOGGED_IN_ERROR,r=`${i.message}: ${i.error_description}`):i instanceof Error&&(r=i.message),t(new z(r,e))}finally{this.refreshingPromise=null}})),this.refreshingPromise}async getUser(e=e=>!0){if(this.refreshingPromise){let t=await this.refreshingPromise;return t&&e(t)?t:null}let t=await this.userManager.getUser();if(!t)return null;if(!function(e){let{id_token:t,expired:r}=e;return!!r||function(e){if(!e)return!1;let t=(0,R.default)(e),r=Math.floor(Date.now()/1e3);return t.expe().then(t),ey=e=>eg(()=>new Promise(e=>{let t=()=>{"complete"===window.document.readyState&&(e(),window.document.removeEventListener("readystatechange",t))};window.document.addEventListener("readystatechange",t),"complete"===window.document.readyState&&(e(),window.document.removeEventListener("readystatechange",t))}),e),ev=(e,t)=>{let r=(0,A.trackFlow)("passport",t);try{return e(r)}catch(e){throw e instanceof Error&&(0,A.trackError)("passport",t,e),r.addEvent("errored"),e}finally{r.addEvent("End")}},ew=async(e,t)=>{let r=(0,A.trackFlow)("passport",t);try{return await e(r)}catch(e){throw e instanceof Error&&(0,A.trackError)("passport",t,e),r.addEvent("errored"),e}finally{r.addEvent("End")}};class e_{config;lazyMagicClient;constructor(e){this.config=e,"undefined"!=typeof window&&(this.lazyMagicClient=ey(()=>{let e=new C.Magic(this.config.magicPublishableApiKey,{extensions:[new P.OpenIdExtension],network:"mainnet"});return e}))}get magicClient(){if(!this.lazyMagicClient)throw Error("Cannot perform this action outside of the browser");return this.lazyMagicClient}async login(e){return K(async()=>ew(async t=>{let r=performance.now(),i=await this.magicClient;return t.addEvent("endMagicClientInit"),await i.openid.loginWithOIDC({jwt:e,providerId:this.config.magicProviderId}),t.addEvent("endLoginWithOIDC"),(0,A.trackDuration)("passport",t.details.flowName,Math.round(performance.now()-r)),i.rpcProvider},"magicLogin"),c.WALLET_CONNECTION_ERROR)}async logout(){let e=await this.magicClient;e.user&&await e.user.logout()}}let eM=async e=>K(async()=>{let t=await (0,M.generateLegacyStarkPrivateKey)(e);return(0,M.createStarkSigner)(t)},c.WALLET_CONNECTION_ERROR);async function eE({user:e,starkSigner:t,request:r,exchangesApi:i}){return K(async()=>{let{ethAddress:n}=e.imx,a=r.amount,s=await i.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:n,token:(0,N.convertToSignableToken)(r),amount:a,receiver:r.receiver}}),o=await t.getAddress(),{payload_hash:f}=s.data,d=await t.signMessage(f),c={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:d},u={Authorization:`Bearer ${e.accessToken}`},l=await i.createExchangeTransfer({id:r.transactionID,createTransferRequest:c},{headers:u});return{sent_signature:l?.data.sent_signature,status:l?.data.status?.toString(),time:l?.data.time,transfer_id:l?.data.transfer_id}},c.EXCHANGE_TRANSFER_ERROR)}let eA="ERC721";async function eS({starkSigner:e,user:t,request:r,ordersApi:i,guardianClient:n}){return K(async()=>{let{ethAddress:a}=t.imx,s=r.sell.type===eA?"1":r.sell.amount,o=r.buy.type===eA?"1":r.buy.amount,f={Authorization:`Bearer ${t.accessToken}`},d={user:a,amount_buy:o,token_buy:(0,N.convertToSignableToken)(r.buy),amount_sell:s,token_sell:(0,N.convertToSignableToken)(r.sell),fees:r.fees,split_fees:!0,expiration_timestamp:r.expiration_timestamp},c=await i.getSignableOrder({getSignableOrderRequestV3:d},{headers:f});await n.evaluateImxTransaction({payloadHash:c.data.payload_hash});let{payload_hash:u}=c.data,l=await e.signMessage(u),h=c.data,p={createOrderRequest:{include_fees:!0,fees:r.fees,stark_signature:l,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}},b=await i.createOrderV3(p,{headers:f});return{...b.data}},c.CREATE_ORDER_ERROR)}async function ex({user:e,starkSigner:t,request:r,ordersApi:i,guardianClient:n}){return K(async()=>{let a={order_id:r.order_id},s={Authorization:`Bearer ${e.accessToken}`},o=await i.getSignableCancelOrderV3({getSignableCancelOrderRequest:a},{headers:s});await n.evaluateImxTransaction({payloadHash:o.data.payload_hash});let{payload_hash:f}=o.data,d=await t.signMessage(f),c=await i.cancelOrderV3({id:r.order_id.toString(),cancelOrderRequest:{order_id:r.order_id,stark_signature:d}},{headers:s});return{order_id:c.data.order_id,status:c.data.status}},c.CANCEL_ORDER_ERROR)}async function eI({ethSigner:e,starkSigner:t,imxApiClients:r},i){return K(async()=>{let[n,a]=await Promise.all([e.getAddress(),t.getAddress()]),s=await r.usersApi.getSignableRegistrationOffchain({getSignableRegistrationRequest:{ether_key:n,stark_key:a}}),{signable_message:o,payload_hash:f}=s.data,[d,c]=await Promise.all([(0,N.signRaw)(o,e),t.signMessage(f)]),u=await r.usersApi.registerPassportUserV2({authorization:`Bearer ${i}`,registerPassportUserRequest:{eth_signature:d,ether_key:n,stark_signature:c,stark_key:a}});return u.data},c.USER_REGISTRATION_ERROR)}async function eR({request:e,tradesApi:t,user:r,starkSigner:i,guardianClient:n}){return K(async()=>{let{ethAddress:a}=r.imx,s={expiration_timestamp:e.expiration_timestamp,fees:e.fees,order_id:e.order_id,user:a},o={Authorization:`Bearer ${r.accessToken}`},f=await t.getSignableTrade({getSignableTradeRequest:s},{headers:o});await n.evaluateImxTransaction({payloadHash:f.data.payload_hash});let{payload_hash:d}=f.data,c=await i.signMessage(d),{data:u}=f,l={createTradeRequest:{include_fees:!0,fees:e?.fees,stark_signature:c,order_id:e?.order_id,fee_info:u.fee_info,amount_buy:u.amount_buy,amount_sell:u.amount_sell,asset_id_buy:u.asset_id_buy,asset_id_sell:u.asset_id_sell,expiration_timestamp:u.expiration_timestamp,nonce:u.nonce,stark_key:u.stark_key,vault_id_buy:u.vault_id_buy,vault_id_sell:u.vault_id_sell}},{data:h}=await t.createTradeV3(l,{headers:o});return h},c.CREATE_TRADE_ERROR)}let ek="ERC721";async function eT({request:e,transfersApi:t,starkSigner:r,user:i,guardianClient:n}){return K(async()=>{let a=e.type===ek?"1":e.amount,s={sender:i.imx.ethAddress,token:(0,N.convertToSignableToken)(e),amount:a,receiver:e.receiver},o={Authorization:`Bearer ${i.accessToken}`},f=await t.getSignableTransferV1({getSignableTransferRequest:s},{headers:o});await n.evaluateImxTransaction({payloadHash:f.data.payload_hash});let d=f.data,{payload_hash:c}=d,u=await r.signMessage(c),l=await r.getAddress(),h={sender_stark_key:d.sender_stark_key||l,sender_vault_id:d.sender_vault_id,receiver_stark_key:d.receiver_stark_key,receiver_vault_id:d.receiver_vault_id,asset_id:d.asset_id,amount:d.amount,nonce:d.nonce,expiration_timestamp:d.expiration_timestamp,stark_signature:u},{data:p}=await t.createTransferV1({createTransferRequest:h},{headers:o});return{sent_signature:p.sent_signature,status:p.status?.toString(),time:p.time,transfer_id:p.transfer_id}},c.TRANSFER_ERROR)}async function eC({user:e,starkSigner:t,request:r,transfersApi:i,guardianClient:n}){return K(async()=>{let{ethAddress:a}=e.imx,s=r.map(e=>({amount:"1",token:(0,N.convertToSignableToken)({type:ek,tokenId:e.tokenId,tokenAddress:e.tokenAddress}),receiver:e.receiver})),o={Authorization:`Bearer ${e.accessToken}`},f=await i.getSignableTransfer({getSignableTransferRequestV2:{sender_ether_key:a,signable_requests:s}},{headers:o});await n.evaluateImxTransaction({payloadHash:f.data.signable_responses[0]?.payload_hash});let d=await Promise.all(f.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}})),c={sender_stark_key:f.data.sender_stark_key,requests:d},u=await i.createTransfer({createTransferRequestV2:c},{headers:o});return{transfer_ids:u?.data.transfer_ids}},c.TRANSFER_ERROR)}let eP=e=>new Promise(t=>{setTimeout(()=>t(),e)}),eO=async(e,t)=>{let{retries:r=3,interval:i=1e3,finalErr:n=Error("Retry failed"),finallyFn:a=()=>{}}=t||{};try{return await e()}catch(t){if(r<=0)return Promise.reject(n);return await eP(i),eO(e,{retries:r-1,finalErr:n,finallyFn:a})}finally{r<=0&&a()}};async function eN(e){await eO(async()=>{let t=await e.forceUserRefresh();return t?.imx?t:Promise.reject(Error("user wallet addresses not exist"))})}async function ej(e,t,r,i,n){return K(async()=>{try{let a=await eI({ethSigner:e,starkSigner:t,imxApiClients:n},r.accessToken);return await eN(i),a}catch(e){if((0,w.default).isAxiosError(e)&&e.response?.status===409)return await eN(i),{tx_hash:""};throw e}},c.USER_REGISTRATION_ERROR)}class eB{authManager;immutableXClient;guardianClient;imxApiClients;magicAdapter;signers;signerInitialisationError;constructor({authManager:e,immutableXClient:t,passportEventEmitter:r,magicAdapter:i,imxApiClients:n,guardianClient:a}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=i,this.imxApiClients=n,this.guardianClient=a,this.#e(),r.on(u.LOGGED_OUT,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=new O.Web3Provider(t),i=r.getSigner(),n=await eM(i);return{ethSigner:i,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 z("User has been logged out",c.NOT_LOGGED_IN_ERROR);return e}async #r(){let e=await this.signers;if(void 0===e){if(void 0!==this.signerInitialisationError)throw this.signerInitialisationError;throw Error("Signers failed to initialise")}return e}async #i(){let[e,t]=await Promise.all([this.#t(),this.#r()]);if(!Z(e))throw new z("User has not been registered with StarkEx",c.USER_NOT_REGISTERED_ERROR);return{user:e,starkSigner:t.starkSigner,ethSigner:t.ethSigner}}async transfer(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return eT({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxTransfer")}async registerOffchain(){return ew(async()=>{let[e,t]=await Promise.all([this.#t(),this.#r()]);return await ej(t.ethSigner,t.starkSigner,e,this.authManager,this.imxApiClients)},"imxRegisterOffchain")}async isRegisteredOffchain(){return ew(async()=>{let e=await this.#t();return!!e.imx},"imxIsRegisteredOffchain")}isRegisteredOnchain(){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}async createOrder(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return eS({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCreateOrder")}async cancelOrder(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return ex({request:e,user:t,starkSigner:r,ordersApi:this.immutableXClient.ordersApi,guardianClient:this.guardianClient})})(),"imxCancelOrder")}async createTrade(e){return ew(()=>this.guardianClient.withDefaultConfirmationScreenTask(async()=>{let{user:t,starkSigner:r}=await this.#i();return eR({request:e,user:t,starkSigner:r,tradesApi:this.immutableXClient.tradesApi,guardianClient:this.guardianClient})})(),"imxCreateTrade")}async batchNftTransfer(e){return ew(()=>this.guardianClient.withConfirmationScreenTask({width:480,height:784})(async()=>{let{user:t,starkSigner:r}=await this.#i();return eC({request:e,user:t,starkSigner:r,transfersApi:this.immutableXClient.transfersApi,guardianClient:this.guardianClient})})(),"imxBatchNftTransfer")}async exchangeTransfer(e){return ew(async()=>{let{user:t,starkSigner:r}=await this.#i();return eE({request:e,user:t,starkSigner:r,exchangesApi:this.immutableXClient.exchangeApi})},"imxExchangeTransfer")}deposit(e){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}prepareWithdrawal(e){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}completeWithdrawal(e,t){throw new z("Operation not supported",c.OPERATION_NOT_SUPPORTED_ERROR)}async getAddress(){return ew(async()=>{let e=await this.#t();if(!Z(e))throw new z("User has not been registered with StarkEx",c.USER_NOT_REGISTERED_ERROR);return Promise.resolve(e.imx.ethAddress)},"imxGetAddress")}}class eL{authManager;immutableXClient;magicAdapter;passportEventEmitter;imxApiClients;guardianClient;constructor({authManager:e,immutableXClient:t,magicAdapter:r,passportEventEmitter:i,imxApiClients:n,guardianClient:a}){this.authManager=e,this.immutableXClient=t,this.magicAdapter=r,this.passportEventEmitter=i,this.imxApiClients=n,this.guardianClient=a}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 z("Failed to initialise",c.WALLET_CONNECTION_ERROR);return new eB({authManager:this.authManager,immutableXClient:this.immutableXClient,passportEventEmitter:this.passportEventEmitter,magicAdapter:this.magicAdapter,imxApiClients:this.imxApiClients,guardianClient:this.guardianClient})}}let eD=(e,t,r)=>{let i=t.map(t=>!e[t]&&t).filter(e=>e).join(", ");if(""!==i){let e=r?`${r} - ${i} cannot be null`:`${i} cannot be null`;throw new z(e,c.INVALID_CONFIGURATION)}};class eF{authenticationDomain;passportDomain;imxPublicApiDomain;magicPublishableApiKey;magicProviderId;oidcConfiguration;baseConfig;zkEvmRpcUrl;relayerUrl;multiRollupConfig;crossSdkBridgeEnabled;forceScwDeployBeforeMessageSignature;popupOverlayOptions;constructor({baseConfig:e,overrides:t,crossSdkBridgeEnabled:r,forceScwDeployBeforeMessageSignature:i,popupOverlayOptions:n,...a}){if(eD(a,["clientId","redirectUri"]),this.oidcConfiguration=a,this.baseConfig=e,this.crossSdkBridgeEnabled=r||!1,this.forceScwDeployBeforeMessageSignature=i||!1,this.popupOverlayOptions=n||{disableGenericPopupOverlay:!1,disableBlockedPopupOverlay:!1},t)eD(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,_.createConfig)({basePath:t.indexerMrBasePath}),orderBook:(0,_.createConfig)({basePath:t.orderBookMrBasePath}),passport:(0,_.createConfig)({basePath:t.passportMrBasePath})};else switch(e.environment){case E.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,_.multiRollupConfig).getProduction();break;case E.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,_.multiRollupConfig).getSandbox()}}}(l||(l={})).CONFIRMATION_START="confirmation_start",(s=h||(h={})).CONFIRMATION_WINDOW_READY="confirmation_window_ready",s.TRANSACTION_CONFIRMED="transaction_confirmed",s.TRANSACTION_ERROR="transaction_error",s.TRANSACTION_REJECTED="transaction_rejected",s.MESSAGE_CONFIRMED="message_confirmed",s.MESSAGE_ERROR="message_error",s.MESSAGE_REJECTED="message_rejected";let eU="imx_passport_confirmation",eq=({url:e,title:t,width:r,height:i})=>{let n=Math.max(0,Math.round(window.screenX+(window.outerWidth-r)/2)),a=Math.max(0,Math.round(window.screenY+(window.outerHeight-i)/2)),s=window.open(e,t,` scrollbars=yes, width=${r}, height=${i}, top=${a}, left=${n} - `);if(!s)throw Error("Failed to open confirmation screen");return s.focus(),s},ez="Confirm this transaction";class eK{config;confirmationWindow;popupOptions;overlay;overlayClosed;timer;constructor(e){this.config=e,this.overlayClosed=!1}getHref(e,t){let r=`${this.config.passportDomain}/transaction-confirmation/${e}`;if(t){let e=t?Object.keys(t).map(e=>`${e}=${t[e]}`).join("&"):"";r=`${r}?${e}`}return r}requestConfirmation(e,t,r,i){return new Promise((n,a)=>{let s=({data:e,origin:t})=>{if(t===this.config.passportDomain&&e.eventType===eU)switch(e.messageType){case h.CONFIRMATION_WINDOW_READY:this.confirmationWindow?.postMessage({eventType:eU,messageType:l.CONFIRMATION_START},this.config.passportDomain);break;case h.TRANSACTION_CONFIRMED:this.closeWindow(),n({confirmed:!0});break;case h.TRANSACTION_REJECTED:this.closeWindow(),n({confirmed:!1});break;case h.TRANSACTION_ERROR:this.closeWindow(),a(Error("Error during transaction confirmation"));break;default:this.closeWindow(),a(Error("Unsupported message type"))}},o="";o=r===_.mr.TransactionApprovalRequestChainTypeEnum.Starkex?this.getHref("transaction",{transactionId:e,etherAddress:t,chainType:r}):this.getHref("zkevm/transaction",{transactionID:e,etherAddress:t,chainType:r,chainID:i}),window.addEventListener("message",s),this.showConfirmationScreen(o,s,n)})}requestMessageConfirmation(e,t,r){return new Promise((i,n)=>{let a=({data:e,origin:t})=>{if(t===this.config.passportDomain&&e.eventType===eU)switch(e.messageType){case h.CONFIRMATION_WINDOW_READY:this.confirmationWindow?.postMessage({eventType:eU,messageType:l.CONFIRMATION_START},this.config.passportDomain);break;case h.MESSAGE_CONFIRMED:this.closeWindow(),i({confirmed:!0});break;case h.MESSAGE_REJECTED:this.closeWindow(),i({confirmed:!1});break;case h.MESSAGE_ERROR:this.closeWindow(),n(Error("Error during message confirmation"));break;default:this.closeWindow(),n(Error("Unsupported message type"))}};window.addEventListener("message",a);let s=this.getHref("zkevm/message",{messageID:e,etherAddress:t,...r?{messageType:r}:{}});this.showConfirmationScreen(s,a,i)})}loading(e){if(!this.config.crossSdkBridgeEnabled){this.popupOptions=e;try{this.confirmationWindow=eq({url:this.getHref("loading"),title:ez,width:e?.width||480,height:e?.height||720}),this.overlay=new ec(this.config.popupOverlayOptions)}catch(t){let e=t instanceof Error?t.message:String(t);(0,A.trackError)("passport","confirmationPopupDenied",Error(e)),this.overlay=new ec(this.config.popupOverlayOptions,!0)}this.overlay.append(()=>{try{this.confirmationWindow?.close(),this.confirmationWindow=eq({url:this.getHref("loading"),title:ez,width:this.popupOptions?.width||480,height:this.popupOptions?.height||720})}catch{}},()=>{this.overlayClosed=!0,this.closeWindow()})}}closeWindow(){this.confirmationWindow?.close(),this.overlay?.remove(),this.overlay=void 0}showConfirmationScreen(e,t,r){if(this.confirmationWindow&&(this.confirmationWindow.location.href=e),!this.overlay){this.overlayClosed=!1,r({confirmed:!1});return}let i=()=>{(this.confirmationWindow?.closed||this.overlayClosed)&&(clearInterval(this.timer),window.removeEventListener("message",t),r({confirmed:!1}),this.overlayClosed=!1,this.confirmationWindow=void 0)};this.timer=setInterval(i,1e3),this.overlay.update(()=>this.recreateConfirmationWindow(e,i))}recreateConfirmationWindow(e,t){try{clearInterval(this.timer),this.confirmationWindow?.close(),this.confirmationWindow=eq({url:e,title:ez,width:this.popupOptions?.width||480,height:this.popupOptions?.height||720}),this.timer=setInterval(t,1e3)}catch{}}}(o=p||(p={})).PENDING="PENDING",o.SUBMITTED="SUBMITTED",o.SUCCESSFUL="SUCCESSFUL",o.REVERTED="REVERTED",o.FAILED="FAILED",o.CANCELLED="CANCELLED",(b||(b={})).ACCOUNTS_CHANGED="accountsChanged";class eH{emitter=new B.EventEmitter;emit(e,...t){this.emitter.emit(e,...t)}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}}let eW=`tuple( + `);if(!s)throw Error("Failed to open confirmation screen");return s.focus(),s},ez="Confirm this transaction";class eK{config;confirmationWindow;popupOptions;overlay;overlayClosed;timer;constructor(e){this.config=e,this.overlayClosed=!1}getHref(e,t){let r=`${this.config.passportDomain}/transaction-confirmation/${e}`;if(t){let e=t?Object.keys(t).map(e=>`${e}=${t[e]}`).join("&"):"";r=`${r}?${e}`}return r}requestConfirmation(e,t,r,i){return new Promise((n,a)=>{let s=({data:e,origin:t})=>{if(t===this.config.passportDomain&&e.eventType===eU)switch(e.messageType){case h.CONFIRMATION_WINDOW_READY:this.confirmationWindow?.postMessage({eventType:eU,messageType:l.CONFIRMATION_START},this.config.passportDomain);break;case h.TRANSACTION_CONFIRMED:this.closeWindow(),n({confirmed:!0});break;case h.TRANSACTION_REJECTED:this.closeWindow(),n({confirmed:!1});break;case h.TRANSACTION_ERROR:this.closeWindow(),a(Error("Error during transaction confirmation"));break;default:this.closeWindow(),a(Error("Unsupported message type"))}},o="";o=r===_.mr.TransactionApprovalRequestChainTypeEnum.Starkex?this.getHref("transaction",{transactionId:e,etherAddress:t,chainType:r}):this.getHref("zkevm/transaction",{transactionID:e,etherAddress:t,chainType:r,chainID:i}),window.addEventListener("message",s),this.showConfirmationScreen(o,s,n)})}requestMessageConfirmation(e,t,r){return new Promise((i,n)=>{let a=({data:e,origin:t})=>{if(t===this.config.passportDomain&&e.eventType===eU)switch(e.messageType){case h.CONFIRMATION_WINDOW_READY:this.confirmationWindow?.postMessage({eventType:eU,messageType:l.CONFIRMATION_START},this.config.passportDomain);break;case h.MESSAGE_CONFIRMED:this.closeWindow(),i({confirmed:!0});break;case h.MESSAGE_REJECTED:this.closeWindow(),i({confirmed:!1});break;case h.MESSAGE_ERROR:this.closeWindow(),n(Error("Error during message confirmation"));break;default:this.closeWindow(),n(Error("Unsupported message type"))}};window.addEventListener("message",a);let s=this.getHref("zkevm/message",{messageID:e,etherAddress:t,...r?{messageType:r}:{}});this.showConfirmationScreen(s,a,i)})}loading(e){if(!this.config.crossSdkBridgeEnabled){this.popupOptions=e;try{this.confirmationWindow=eq({url:this.getHref("loading"),title:ez,width:e?.width||480,height:e?.height||720}),this.overlay=new ec(this.config.popupOverlayOptions)}catch(t){let e=t instanceof Error?t.message:String(t);(0,A.trackError)("passport","confirmationPopupDenied",Error(e)),this.overlay=new ec(this.config.popupOverlayOptions,!0)}this.overlay.append(()=>{try{this.confirmationWindow?.close(),this.confirmationWindow=eq({url:this.getHref("loading"),title:ez,width:this.popupOptions?.width||480,height:this.popupOptions?.height||720})}catch{}},()=>{this.overlayClosed=!0,this.closeWindow()})}}closeWindow(){this.confirmationWindow?.close(),this.overlay?.remove(),this.overlay=void 0}showConfirmationScreen(e,t,r){if(this.confirmationWindow&&(this.confirmationWindow.location.href=e),!this.overlay){this.overlayClosed=!1,r({confirmed:!1});return}let i=()=>{(this.confirmationWindow?.closed||this.overlayClosed)&&(clearInterval(this.timer),window.removeEventListener("message",t),r({confirmed:!1}),this.overlayClosed=!1,this.confirmationWindow=void 0)};this.timer=setInterval(i,1e3),this.overlay.update(()=>this.recreateConfirmationWindow(e,i))}recreateConfirmationWindow(e,t){try{clearInterval(this.timer),this.confirmationWindow?.close(),this.confirmationWindow=eq({url:e,title:ez,width:this.popupOptions?.width||480,height:this.popupOptions?.height||720}),this.timer=setInterval(t,1e3)}catch{}}}(o=p||(p={})).PENDING="PENDING",o.SUBMITTED="SUBMITTED",o.SUCCESSFUL="SUCCESSFUL",o.REVERTED="REVERTED",o.FAILED="FAILED",o.CANCELLED="CANCELLED",(b||(b={})).ACCOUNTS_CHANGED="accountsChanged";class eH{emitter=new B.EventEmitter;emit(e,...t){this.emitter.emit(e,...t)}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}}let eV=`tuple( bool delegateCall, bool revertOnError, uint256 gasLimit, address target, uint256 value, bytes data -)[]`,eV=e=>e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit??j.constants.Zero,target:e.to??j.constants.AddressZero,value:e.value??j.constants.Zero,data:e.data??[]})),eG=(e,t)=>{let r=(0,j.utils).defaultAbiCoder.encode(["uint256",eW],[e,t]);return(0,j.utils).keccak256(r)},eJ=e=>(0,j.utils).defaultAbiCoder.encode([eW],[e]),eZ=async(e,t)=>{try{let r=new j.Contract(t,L.walletContracts.mainModule.abi,e),i=await r.nonce();if(i instanceof j.BigNumber)return i}catch(e){if(e instanceof Error&&"code"in e&&e.code===j.errors.CALL_EXCEPTION)return(0,j.BigNumber).from(0);throw e}throw Error("Unexpected result from contract.nonce() call.")},eX=(e,t,r)=>(0,j.utils).solidityPack(["string","uint256","address","bytes32"],["\x19\x01",e,t,r]),e$=async(e,t,r,i,n)=>{let a=eV(e),s=eG(t,a),o=eX(r,i,s),f=(0,j.utils).keccak256(o),d=(0,j.utils).arrayify(f),c=performance.now(),u=await n.signMessage(d);(0,A.trackDuration)("passport","magicSignMessageGetSignedMetaTransactions",Math.round(performance.now()-c));let l=`${u}02`,h=(0,D.v1).signature.encodeSignature({version:1,threshold:1,signers:[{isDynamic:!1,unrecovered:!0,weight:1,signature:l}]}),p=new j.utils.Interface(L.walletContracts.mainModule.abi);return p.encodeFunctionData(p.getFunction("execute"),[a,t,h])},eY=e=>{let t=`0x0000${e}`;return(0,D.v1).signature.decodeSignature(t)},eQ=(e,t,r)=>{let i=`${e}02`,{signers:n}=eY(r),a=[...n,{isDynamic:!1,unrecovered:!0,weight:1,signature:i,address:t}],s=a.sort((e,t)=>{let r=(0,j.BigNumber).from(e.address),i=(0,j.BigNumber).from(t.address);return r.lte(i)?-1:r.eq(i)?0:1});return(0,D.v1).signature.encodeSignature({version:1,threshold:2,signers:s})},e0=async(e,t,r,i,n)=>{let a={...e.types};delete a.EIP712Domain;let{_TypedDataEncoder:s}=j.utils,o=s.hash(e.domain,a,e.message),f=eX(r,i,o),d=(0,j.utils).keccak256(f),c=(0,j.utils).arrayify(d),u=performance.now(),l=await n.signMessage(c);(0,A.trackDuration)("passport","magicSignMessageTypedData",Math.round(performance.now()-u));let h=await n.getAddress();return eQ(l,h,t)},e1=async(e,t,r,i)=>{let n=(0,j.utils).hashMessage(t),a=eX(e,i,n),s=(0,j.utils).keccak256(a),o=(0,j.utils).arrayify(s);return r.signMessage(o)},e2=e=>`eip155:${e}`;class e6{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(),i=performance.now(),n=await fetch(`${this.config.relayerUrl}/v1/transactions`,{method:"POST",headers:{Authorization:`Bearer ${r.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)});(0,A.trackDuration)("passport","postToRelayer",Math.round(performance.now()-i),{rpcMethod:e.method});let a=await n.json();if(a.error)throw a.error;return a}async ethSendTransaction(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),i={method:"eth_sendTransaction",params:[{to:e,data:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}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.detectNetwork(),i={method:"im_getFeeOptions",params:[{userAddress:e,data:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}async imSignTypedData(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),i={method:"im_signTypedData",params:[{address:e,eip712Payload:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}async imSign(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),i={method:"im_sign",params:[{address:e,message:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}}(f=m||(m={}))[f.USER_REJECTED_REQUEST=4001]="USER_REJECTED_REQUEST",f[f.UNAUTHORIZED=4100]="UNAUTHORIZED",f[f.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",f[f.DISCONNECTED=4900]="DISCONNECTED",(d=g||(g={}))[d.RPC_SERVER_ERROR=-32e3]="RPC_SERVER_ERROR",d[d.INVALID_REQUEST=-32600]="INVALID_REQUEST",d[d.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",d[d.INVALID_PARAMS=-32602]="INVALID_PARAMS",d[d.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",d[d.PARSE_ERROR=-32700]="PARSE_ERROR",d[d.TRANSACTION_REJECTED=-32003]="TRANSACTION_REJECTED";class e3 extends Error{message;code;constructor(e,t){super(t),this.message=t,this.code=e}}async function e5({authManager:e,ethSigner:t,multiRollupApiClients:r,accessToken:i,rpcProvider:n,flow:a}){let s=t.getAddress();s.then(()=>a.addEvent("endGetAddress"));let o=(0,N.signRaw)("Only sign this message from Immutable Passport",t);o.then(()=>a.addEvent("endSignRaw"));let f=n.detectNetwork();f.then(()=>a.addEvent("endDetectNetwork"));let d=r.chainsApi.listChains();d.then(()=>a.addEvent("endListChains"));let[c,u,l,h]=await Promise.all([s,o,f,d]),p=e2(l.chainId),b=h.data?.result?.find(e=>e.id===p)?.name;if(!b)throw new e3(g.INTERNAL_ERROR,`Chain name does not exist on for chain id ${l.chainId}`);try{let t=await r.passportApi.createCounterfactualAddressV2({chainName:b,createCounterfactualAddressRequest:{ethereum_address:c,ethereum_signature:u}},{headers:{Authorization:`Bearer ${i}`}});return a.addEvent("endCreateCounterfactualAddress"),e.forceUserRefreshInBackground(),t.data.counterfactual_address}catch(e){throw new e3(g.INTERNAL_ERROR,`Failed to create counterfactual address: ${e}`)}}let e8="Transaction requires confirmation but this functionality is not supported in this environment. Please contact Immutable support if you need to enable this feature.",e4=e=>(0,j.BigNumber).from(e).toString(),e7=e=>{try{return e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit?e4(e.gasLimit):"0",target:e.to??j.ethers.constants.AddressZero,value:e.value?e4(e.value):"0",data:e.data?e.data.toString():"0x"}))}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INVALID_PARAMS,`Transaction failed to parsing: ${e}`)}};class e9{guardianApi;confirmationScreen;crossSdkBridgeEnabled;authManager;constructor({confirmationScreen:e,config:t,authManager:r,guardianApi:i}){this.confirmationScreen=e,this.crossSdkBridgeEnabled=t.crossSdkBridgeEnabled,this.guardianApi=i,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 this.confirmationScreen.closeWindow(),e}}}withDefaultConfirmationScreenTask(e){return this.withConfirmationScreenTask()(e)}async evaluateImxTransaction({payloadHash:e}){let t=await this.authManager.getUserImx(),r={Authorization:`Bearer ${t.accessToken}`},i=await eO(async()=>this.guardianApi.getTransactionByID({transactionID:e,chainType:"starkex"},{headers:r}),{finallyFn:()=>{this.confirmationScreen.closeWindow()}});if(!i.data.id)throw Error("Transaction doesn't exists");let n=await this.guardianApi.evaluateTransaction({id:e,transactionEvaluationRequest:{chainType:"starkex"}},{headers:r}),{confirmationRequired:a}=n.data;if(a){if(this.crossSdkBridgeEnabled)throw Error(e8);let r=await this.confirmationScreen.requestConfirmation(e,t.imx.ethAddress,_.mr.TransactionApprovalRequestChainTypeEnum.Starkex);if(!r.confirmed)throw Error("Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let i=await this.authManager.getUserZkEvm(),n={Authorization:`Bearer ${i.accessToken}`},a=e7(r);try{let r=await this.guardianApi.evaluateTransaction({id:"evm",transactionEvaluationRequest:{chainType:"evm",chainId:e,transactionData:{nonce:t,userAddress:i.zkEvm.ethAddress,metaTransactions:a}}},{headers:n});return r.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INTERNAL_ERROR,`Transaction failed to validate with error: ${e}`)}}async validateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let i=await this.evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}),{confirmationRequired:n,transactionId:a}=i;if(n&&this.crossSdkBridgeEnabled)throw new e3(g.TRANSACTION_REJECTED,e8);if(n&&a){let t=await this.authManager.getUserZkEvm(),r=await this.confirmationScreen.requestConfirmation(a,t.zkEvm.ethAddress,_.mr.TransactionApprovalRequestChainTypeEnum.Evm,e);if(!r.confirmed)throw new e3(g.TRANSACTION_REJECTED,"Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async handleEIP712MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e3(m.UNAUTHORIZED,"User not logged in. Please log in first.");let i=await this.guardianApi.evaluateMessage({messageEvaluationRequest:{chainID:e,payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return i.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateEIP712Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:i}=await this.handleEIP712MessageEvaluation({chainID:e,payload:t});if(i&&this.crossSdkBridgeEnabled)throw new e3(g.TRANSACTION_REJECTED,e8);if(i&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"eip712");if(!t.confirmed)throw new e3(g.TRANSACTION_REJECTED,"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 e3(m.UNAUTHORIZED,"User not logged in. Please log in first.");let i=await this.guardianApi.evaluateErc191Message({eRC191MessageEvaluationRequest:{chainID:e2(e),payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return i.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateERC191Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:i}=await this.handleERC191MessageEvaluation({chainID:e,payload:t});if(i&&this.crossSdkBridgeEnabled)throw new e3(g.TRANSACTION_REJECTED,e8);if(i&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"erc191");if(!t.confirmed)throw new e3(g.TRANSACTION_REJECTED,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}}let te=async(e,t,r)=>{let i=eV([e]),n=eJ(i),a=await r.imGetFeeOptions(t,n),s=a.find(e=>"IMX"===e.tokenSymbol);if(!s)throw Error("Failed to retrieve fees for IMX token");return s},tt=async(e,t,r,i)=>{if(!e.to)throw new e3(g.INVALID_PARAMS,'eth_sendTransaction requires a "to" field');let n={to:e.to,data:e.data,nonce:(0,j.BigNumber).from(0),value:e.value,revertOnError:!0},[a,s]=await Promise.all([eZ(t,i),te(n,i,r)]),o=[{...n,nonce:a}],f=(0,j.BigNumber).from(s.tokenPrice);return f.isZero()||o.push({nonce:a,to:s.recipientAddress,value:f,revertOnError:!0}),o},tr=async(e,t,r)=>{let i=async()=>{let r=await e.imGetTransactionByHash(t);if(r.status===p.PENDING)throw Error();return r},n=await eO(i,{retries:30,interval:1e3,finalErr:new e3(g.RPC_SERVER_ERROR,"transaction hash not generated in time")});if(r.addEvent("endRetrieveRelayerTransaction"),![p.SUBMITTED,p.SUCCESSFUL].includes(n.status)){let e=`Transaction failed to submit with status ${n.status}.`;throw n.statusMessage&&(e+=` Error message: ${n.statusMessage}`),new e3(g.RPC_SERVER_ERROR,e)}return n},ti=async({transactionRequest:e,ethSigner:t,rpcProvider:r,guardianClient:i,relayerClient:n,zkEvmAddress:a,flow:s})=>{let{chainId:o}=await r.detectNetwork(),f=(0,j.BigNumber).from(o);s.addEvent("endDetectNetwork");let d=await tt(e,r,n,a);s.addEvent("endBuildMetaTransactions");let{nonce:c}=d[0];if(!c)throw Error("Failed to retrieve nonce from the smart wallet");let u=async()=>{await i.validateEVMTransaction({chainId:e2(o),nonce:e4(c),metaTransactions:d}),s.addEvent("endValidateEVMTransaction")},l=async()=>{let e=await e$(d,c,f,a,t);return s.addEvent("endGetSignedMetaTransactions"),e},[,h]=await Promise.all([u(),l()]),p=await n.ethSendTransaction(a,h);return s.addEvent("endRelayerSendTransaction"),{signedTransactions:h,relayerId:p,nonce:c}},tn=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:i,guardianClient:n,zkEvmAddress:a,flow:s})=>{let o=e[0],{relayerId:f}=await ti({transactionRequest:o,ethSigner:t,rpcProvider:r,guardianClient:n,relayerClient:i,zkEvmAddress:a,flow:s}),{hash:d}=await tr(i,f,s);return d},ta=["types","domain","primaryType","message"],ts=e=>ta.every(t=>t in e),to=(e,t)=>{let r;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new e3(g.INVALID_PARAMS,`Failed to parse typed data JSON: ${e}`)}else if("object"==typeof e)r=e;else throw new e3(g.INVALID_PARAMS,`Invalid typed data argument: ${e}`);if(!ts(r))throw new e3(g.INVALID_PARAMS,`Invalid typed data argument. The following properties are required: ${ta.join(", ")}`);let i=r.domain?.chainId;if(i&&("string"==typeof i&&(i.startsWith("0x")?r.domain.chainId=parseInt(i,16):r.domain.chainId=parseInt(i,10)),r.domain.chainId!==t))throw new e3(g.INVALID_PARAMS,`Invalid chainId, expected ${t}`);return r},tf=async({params:e,method:t,ethSigner:r,rpcProvider:i,relayerClient:n,guardianClient:a,flow:s})=>{let o=e[0],f=e[1];if(!o||!f)throw new e3(g.INVALID_PARAMS,`${t} requires an address and a typed data JSON`);let{chainId:d}=await i.detectNetwork(),c=to(f,d);s.addEvent("endDetectNetwork"),await a.evaluateEIP712Message({chainID:String(d),payload:c}),s.addEvent("endValidateMessage");let u=await n.imSignTypedData(o,c);s.addEvent("endRelayerSignTypedData");let l=await e0(c,u,(0,j.BigNumber).from(d),o,r);return s.addEvent("getSignedTypedData"),l},td=e=>{if(!e)return e;try{let t=(0,j.utils).stripZeros((0,j.utils).arrayify(e));return(0,j.utils).toUtf8String(t)}catch(t){return e}},tc=async({params:e,ethSigner:t,zkEvmAddress:r,rpcProvider:i,guardianClient:n,relayerClient:a,flow:s})=>{let o=e[0],f=e[1];if(!f||!o)throw new e3(g.INVALID_PARAMS,"personal_sign requires an address and a message");if(f.toLowerCase()!==r.toLowerCase())throw new e3(g.INVALID_PARAMS,"personal_sign requires the signer to be the from address");let d=td(o),{chainId:c}=await i.detectNetwork();s.addEvent("endDetectNetwork");let u=(0,j.BigNumber).from(c),l=e1(u,d,t,f);l.then(()=>s.addEvent("endEOASignature")),await n.evaluateERC191Message({chainID:c,payload:d}),s.addEvent("endEvaluateERC191Message");let[h,p]=await Promise.all([l,a.imSign(f,d)]);s.addEvent("endRelayerSign");let b=await t.getAddress();return s.addEvent("endGetEOAAddress"),eQ(h,b,p)},tu=e=>{switch(e){case E.Environment.SANDBOX:return"https://api.sandbox.immutable.com";case E.Environment.PRODUCTION:return"https://api.immutable.com";default:throw Error("Environment not supported")}},tl=e=>{i||(i=(0,w.default).create({baseURL:tu(e)}))};async function th(e){if(!i)throw Error("Client not initialised");return i.get("/v1/sdk/session-activity/check",{params:e}).then(e=>e.data).catch(e=>{if(404!==e.response.status)throw e})}let{getItem:tp,setItem:tb}=A.utils.localStorage,tm="sessionActivitySendCount",tg="sessionActivityDate",ty=0,tv=0,tw=!1,t_=()=>{tv=tp(tm)||0;let e=tp(tg),t=new Date().toISOString().split("T")[0];e&&e===t||(tv=0),tb(tg,t),tb(tm,tv)};t_();let tM=()=>{t_(),tb(tm,++tv),ty=0},tE=async e=>new Promise(t=>{setTimeout(t,1e3*e)}),tA=async e=>{let t;let r=e.flow||(0,A.trackFlow)("passport","sendSessionActivity");if(tw){r.addEvent("Existing Delay Early Exit");return}tw=!0;let{sendTransaction:i,environment:n}=e;if(!i)throw Error("No sendTransaction function provided");if(!n)throw Error("No environment provided");tl(n);let a=e.passportClient;if(!a)throw r.addEvent("No Passport Client ID"),Error("No Passport Client ID provided");let s=e.walletAddress;if(!s)throw r.addEvent("No Passport Wallet Address"),Error("No wallet address");try{if(r.addEvent("Fetching details"),t=await th({clientId:a,wallet:s,checkCount:ty,sendCount:tv}),ty++,r.addEvent("Fetched details",{checkCount:ty}),!t){r.addEvent("No details found");return}}catch(e){throw r.addEvent("Failed to fetch details"),Error("Failed to get details",{cause:e})}if(t&&t.contractAddress&&t.functionName){let i=new j.utils.Interface([`function ${t.functionName}()`]).encodeFunctionData(t.functionName),n=t.contractAddress;try{r.addEvent("Start Sending Transaction");let t=await e.sendTransaction([{to:n,from:s,data:i}],r);tM(),r.addEvent("Transaction Sent",{tx:t})}catch(t){r.addEvent("Failed to send Transaction");let e=Error("Failed to send transaction",{cause:t});(0,A.trackError)("passport","sessionActivityError",e)}}t&&t.delay&&t.delay>0&&(r.addEvent("Delaying Transaction",{delay:t.delay}),await tE(t.delay),setTimeout(()=>{r.addEvent("Retrying after Delay"),tw=!1,tS({...e,flow:r})},0))},tS=e=>{var t;return((...e)=>{try{let r=tA(...e);if(r instanceof Promise)return r.catch(e=>(e instanceof Error&&(0,A.trackError)("passport","sessionActivityError",e),t));return r}catch(e){return e instanceof Error&&(0,A.trackError)("passport","sessionActivityError",e),t}})(e).then(()=>{tw=!1})},tx=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:i,guardianClient:n,zkEvmAddress:a,flow:s})=>{let{relayerId:o}=await ti({transactionRequest:{to:a,value:0},ethSigner:t,rpcProvider:r,guardianClient:n,relayerClient:i,zkEvmAddress:a,flow:s});return n.withConfirmationScreen()(async()=>{let f=await tc({params:e,ethSigner:t,zkEvmAddress:a,rpcProvider:r,guardianClient:n,relayerClient:i,flow:s});return await tr(i,o,s),f})},tI=e=>"zkEvm"in e;class tR{#n;#a;#s;#o;#f;#d;#c;#u;#l;#h;#p;isPassport=!0;constructor({authManager:e,magicAdapter:t,config:r,multiRollupApiClients:i,passportEventEmitter:n,guardianClient:a}){this.#n=e,this.#c=t,this.#a=r,this.#f=a,this.#o=n,r.crossSdkBridgeEnabled?this.#d=new O.StaticJsonRpcProvider({url:this.#a.zkEvmRpcUrl,fetchOptions:{referrer:"http://imtblgamesdk.local"}}):this.#d=new O.StaticJsonRpcProvider(this.#a.zkEvmRpcUrl),this.#l=new e6({config:this.#a,rpcProvider:this.#d,authManager:this.#n}),this.#u=i,this.#s=new eH,this.#n.getUser().then(e=>{e&&(this.#b(e),tI(e)&&this.#m(e.zkEvm.ethAddress))}).catch(),n.on(u.LOGGED_IN,e=>{this.#b(e),tI(e)&&this.#m(e.zkEvm.ethAddress)}),n.on(u.LOGGED_OUT,this.#g),n.on(u.ACCOUNTS_REQUESTED,tS)}#g=()=>{this.#h=void 0,this.#s.emit(b.ACCOUNTS_CHANGED,[])};#b(e){let t=async()=>{let t=await this.#c.login(e.idToken),r=new O.Web3Provider(t);return r.getSigner()};this.#p=void 0,this.#h=new Promise(async e=>{try{e(await t())}catch(t){this.#p=t,e(void 0)}})}async #y(){let e=await this.#h;if(void 0===e){if(void 0!==this.#p)throw this.#p;throw Error("Signer failed to initialise")}return e}async #m(e){let t=async(t,r)=>{let i=await this.#y();return await tn({params:t,ethSigner:i,guardianClient:this.#f,rpcProvider:this.#d,relayerClient:this.#l,zkEvmAddress:e,flow:r})};this.#o.emit(u.ACCOUNTS_REQUESTED,{environment:this.#a.baseConfig.environment,sendTransaction:t,walletAddress:e,passportClient:this.#a.oidcConfiguration.clientId})}async #v(){try{let e=await this.#n.getUser();if(e&&tI(e))return e.zkEvm.ethAddress;return}catch{return}}async #w(e){switch(e.method){case"eth_requestAccounts":{let e=await this.#v();if(e)return[e];let t=(0,A.trackFlow)("passport","ethRequestAccounts");try{let e;let r=await this.#n.getUserOrLogin();if(t.addEvent("endGetUserOrLogin"),this.#h||this.#b(r),tI(r))e=r.zkEvm.ethAddress;else{t.addEvent("startUserRegistration");let i=await this.#y();t.addEvent("ethSignerResolved"),e=await e5({ethSigner:i,authManager:this.#n,multiRollupApiClients:this.#u,accessToken:r.accessToken,rpcProvider:this.#d,flow:t}),t.addEvent("endUserRegistration")}return this.#s.emit(b.ACCOUNTS_CHANGED,[e]),(0,A.identify)({passportId:r.profile.sub}),this.#m(e),[e]}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","ethRequestAccounts",e),t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_sendTransaction":{let t=await this.#v();if(!t)throw new e3(m.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,A.trackFlow)("passport","ethSendTransaction");try{return await this.#f.withConfirmationScreen({width:480,height:720})(async()=>{let i=await this.#y();return r.addEvent("endGetSigner"),await tn({params:e.params||[],ethSigner:i,guardianClient:this.#f,rpcProvider:this.#d,relayerClient:this.#l,zkEvmAddress:t,flow:r})})}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","eth_sendTransaction",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_accounts":{let e=await this.#v();return e?[e]:[]}case"personal_sign":{let t=await this.#v();if(!t)throw new e3(m.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,A.trackFlow)("passport","personalSign");try{return await this.#f.withConfirmationScreen({width:480,height:720})(async()=>{let i=await this.#y();if(r.addEvent("endGetSigner"),this.#a.forceScwDeployBeforeMessageSignature){let n=await eZ(this.#d,t);if(!n.gt(0))return await tx({params:e.params||[],ethSigner:i,zkEvmAddress:t,rpcProvider:this.#d,guardianClient:this.#f,relayerClient:this.#l,flow:r})}return await tc({params:e.params||[],ethSigner:i,zkEvmAddress:t,rpcProvider:this.#d,guardianClient:this.#f,relayerClient:this.#l,flow:r})})}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","personal_sign",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_signTypedData":case"eth_signTypedData_v4":{let t=await this.#v();if(!t)throw new e3(m.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,A.trackFlow)("passport","ethSignTypedDataV4");try{return await this.#f.withConfirmationScreen({width:480,height:720})(async()=>{let t=await this.#y();return r.addEvent("endGetSigner"),await tf({method:e.method,params:e.params||[],ethSigner:t,rpcProvider:this.#d,relayerClient:this.#l,guardianClient:this.#f,flow:r})})}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","eth_signTypedData",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_chainId":{let{chainId:e}=await this.#d.detectNetwork();return(0,j.utils).hexlify(e)}case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":{let[t,r]=e.params||[];return this.#d.send(e.method,[t,r||"latest"])}case"eth_getStorageAt":{let[t,r,i]=e.params||[];return this.#d.send(e.method,[t,r,i||"latest"])}case"eth_call":case"eth_estimateGas":{let[t,r]=e.params||[];return this.#d.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.#d.send(e.method,e.params||[]);default:throw new e3(m.UNSUPPORTED_METHOD,"Method not supported")}}async #_(e){let{id:t,jsonrpc:r}=e;try{let i=await this.#w(e);return{id:t,jsonrpc:r,result:i}}catch(e){return{id:t,jsonrpc:r,error:e instanceof e3?e:e instanceof Error?new e3(g.INTERNAL_ERROR,e.message):new e3(g.INTERNAL_ERROR,"Internal error")}}}async request(e){try{return this.#w(e)}catch(e){if(e instanceof e3)throw e;if(e instanceof Error)throw new e3(g.INTERNAL_ERROR,e.message);throw new e3(g.INTERNAL_ERROR,"Internal error")}}sendAsync(e,t){if(!t)throw Error("No callback provided");Array.isArray(e)?Promise.all(e.map(this.#_)).then(e=>{t(null,e)}).catch(e=>{t(e,[])}):this.#_(e).then(e=>{t(null,e)}).catch(e=>{t(e,null)})}async send(e,t,r){if("string"==typeof e)return"function"==typeof t?this.sendAsync({method:e,params:[]},t):r?this.sendAsync({method:e,params:Array.isArray(t)?t:[]},r):this.request({method:e,params:Array.isArray(t)?t:[]});if("function"==typeof t)return this.sendAsync(e,t);if(!Array.isArray(e)&&"object"==typeof e)return this.#_(e);throw new e3(g.INVALID_REQUEST,"Invalid request")}on(e,t){this.#s.on(e,t)}removeListener(e,t){this.#s.removeListener(e,t)}}let tk={icon:'data:image/svg+xml,',name:"Immutable Passport",rdns:"com.immutable.passport",uuid:(0,F.v4)()},tT=e=>e.overrides?(0,_.createConfig)({basePath:e.overrides.imxPublicApiDomain}):e.baseConfig.environment===E.Environment.SANDBOX?(0,_.imxApiConfig).getSandbox():(0,_.imxApiConfig).getProduction(),tC=e=>{if(e.overrides?.imxApiClients)return e.overrides.imxApiClients;let t=tT(e);return new _.ImxApiClients(t)},tP=e=>{let t=new eF(e),r=new em(t),i=new e_(t),n=new eK(t),a=new _.MultiRollupApiClients(t.multiRollupConfig),s=new eH,o=e.overrides?e.overrides.immutableXClient:new M.IMXClient({baseConfig:e.baseConfig}),f=new e9({confirmationScreen:n,config:t,authManager:r,guardianApi:a.guardianApi}),d=tC(e),c=new eL({authManager:r,immutableXClient:o,magicAdapter:i,passportEventEmitter:s,imxApiClients:d,guardianClient:f});return{config:t,authManager:r,magicAdapter:i,confirmationScreen:n,immutableXClient:o,multiRollupApiClients:a,passportEventEmitter:s,passportImxProviderFactory:c,guardianClient:f}};class tO{authManager;config;confirmationScreen;immutableXClient;magicAdapter;multiRollupApiClients;passportImxProviderFactory;passportEventEmitter;guardianClient;constructor(e){let t=tP(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,A.setPassportClientId)(e.clientId),(0,A.track)("passport","initialise")}async connectImxSilent(){return ew(()=>this.passportImxProviderFactory.getProviderSilent(),"connectImxSilent")}async connectImx(){return ew(()=>this.passportImxProviderFactory.getProvider(),"connectImx")}connectEvm(e={announceProvider:!0}){return ev(()=>{let t=new tR({passportEventEmitter:this.passportEventEmitter,authManager:this.authManager,magicAdapter:this.magicAdapter,config:this.config,multiRollupApiClients:this.multiRollupApiClients,guardianClient:this.guardianClient});return e?.announceProvider&&function(e){if("undefined"==typeof window)return;let t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t),window.addEventListener("eip6963:requestProvider",()=>window.dispatchEvent(t))}({info:tk,provider:t}),t},"connectEvm")}async login(e){return ew(async()=>{let{useCachedSession:t=!1,useSilentLogin:r}=e||{},i=null;try{i=await this.authManager.getUser()}catch(e){if(e instanceof Error&&(0,A.trackError)("passport","login",e),t)throw e;G.warn("Failed to retrieve a cached user session",e)}return!i&&r?i=await this.authManager.forceUserRefresh():i||t||(i=await this.authManager.login(e?.anonymousId)),i&&((0,A.identify)({passportId:i.profile.sub}),this.passportEventEmitter.emit(u.LOGGED_IN,i)),i?i.profile:null},"login")}async loginCallback(){return ew(()=>this.authManager.loginCallback(),"loginCallback")}async loginWithDeviceFlow(e){return ew(()=>this.authManager.loginWithDeviceFlow(e?.anonymousId),"loginWithDeviceFlow")}async loginWithDeviceFlowCallback(e,t,r){return ew(async()=>{let i=await this.authManager.loginWithDeviceFlowCallback(e,t,r);return this.passportEventEmitter.emit(u.LOGGED_IN,i),i.profile},"loginWithDeviceFlowCallback")}loginWithPKCEFlow(){return ev(()=>this.authManager.getPKCEAuthorizationUrl(),"loginWithPKCEFlow")}async loginWithPKCEFlowCallback(e,t){return ew(async()=>{let r=await this.authManager.loginWithPKCEFlowCallback(e,t);return this.passportEventEmitter.emit(u.LOGGED_IN,r),r.profile},"loginWithPKCEFlowCallback")}async logout(){return ew(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(u.LOGGED_OUT)},"logout")}async logoutDeviceFlow(){return ew(async()=>(await this.authManager.removeUser(),await this.magicAdapter.logout(),this.passportEventEmitter.emit(u.LOGGED_OUT),await this.authManager.getDeviceFlowEndSessionEndpoint()),"logoutDeviceFlow")}async logoutSilentCallback(e){return ew(()=>this.authManager.logoutSilentCallback(e),"logoutSilentCallback")}async getUserInfo(){return ew(async()=>{let e=await this.authManager.getUser();return e?.profile},"getUserInfo")}async getIdToken(){return ew(async()=>{let e=await this.authManager.getUser();return e?.idToken},"getIdToken")}async getAccessToken(){return ew(async()=>{let e=await this.authManager.getUser();return e?.accessToken},"getAccessToken")}async getLinkedAddresses(){return ew(async()=>{let e=await this.authManager.getUser();if(!e?.profile.sub)return[];let t={Authorization:`Bearer ${e.accessToken}`},r=await this.multiRollupApiClients.passportProfileApi.getUserInfo({headers:t});return r.data.linked_addresses},"getLinkedAddresses")}async linkExternalWallet(e){let t=(0,A.trackFlow)("passport","linkExternalWallet"),r=await this.authManager.getUser();if(!r)throw new z("User is not logged in",c.NOT_LOGGED_IN_ERROR);let i=Z(r),n=J(r);if(!i&&!n)throw new z("User has not been registered",c.USER_NOT_REGISTERED_ERROR);let a={Authorization:`Bearer ${r.accessToken}`},s={type:e.type,wallet_address:e.walletAddress,signature:e.signature,nonce:e.nonce};try{let e=await this.multiRollupApiClients.passportProfileApi.linkWalletV2({linkWalletV2Request:s},{headers:a});return{...e.data}}catch(r){if(r instanceof Error&&(0,A.trackError)("passport","linkExternalWallet",r),t.addEvent("errored"),(0,v.isAxiosError)(r)&&r.response){if(r.response.data&&q(r.response.data)){let{code:e,message:t}=r.response.data;switch(e){case"ALREADY_LINKED":throw new z(t,c.LINK_WALLET_ALREADY_LINKED_ERROR);case"MAX_WALLETS_LINKED":throw new z(t,c.LINK_WALLET_MAX_WALLETS_LINKED_ERROR);case"DUPLICATE_NONCE":throw new z(t,c.LINK_WALLET_DUPLICATE_NONCE_ERROR);case"VALIDATION_ERROR":throw new z(t,c.LINK_WALLET_VALIDATION_ERROR);default:throw new z(t,c.LINK_WALLET_GENERIC_ERROR)}}else if(r.response.status)throw new z(`Link wallet request failed with status code ${r.response.status}`,c.LINK_WALLET_GENERIC_ERROR)}let e="Link wallet request failed";throw r instanceof Error&&(e+=`: ${r.message}`),new z(e,c.LINK_WALLET_GENERIC_ERROR)}finally{t.addEvent("End")}}}},{a7402fb880ab41a1:"fg0b3",axios:"jhAcT","@imtbl/generated-clients":"2eu25","@imtbl/x-client":"hV3j7","@imtbl/config":"ed8SG","@imtbl/metrics":"dO0KB","oidc-client-ts":"eOqnc",crypto:"32wxM","jwt-decode":"dIfrw",localforage:"6uh7U","magic-sdk":"cTdgN","@magic-ext/oidc":"bCVaL","@ethersproject/providers":"lpm2Y","@imtbl/toolkit":"5Doxg",ethers:"8wpcu",events:"ikfQ0","@0xsequence/abi":"NeOck","@0xsequence/core":"hBsZJ",uuid:"hlwPQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fg0b3:[function(e,t,r){var i,n,a,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function f(){throw Error("clearTimeout has not been defined")}function d(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:f}catch(e){n=f}}();var c=[],u=!1,l=-1;function h(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=d(h);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l1)for(var r=1;ra.default),i.export(r,"Axios",()=>s),i.export(r,"AxiosError",()=>o),i.export(r,"CanceledError",()=>f),i.export(r,"isCancel",()=>d),i.export(r,"CancelToken",()=>c),i.export(r,"VERSION",()=>u),i.export(r,"all",()=>l),i.export(r,"Cancel",()=>h),i.export(r,"isAxiosError",()=>p),i.export(r,"spread",()=>b),i.export(r,"toFormData",()=>m),i.export(r,"AxiosHeaders",()=>g),i.export(r,"HttpStatusCode",()=>y),i.export(r,"formToJSON",()=>v),i.export(r,"getAdapter",()=>w),i.export(r,"mergeConfig",()=>_);var n=e("./lib/axios.js"),a=i.interopDefault(n);let{Axios:s,AxiosError:o,CanceledError:f,isCancel:d,CancelToken:c,VERSION:u,all:l,Cancel:h,isAxiosError:p,spread:b,toFormData:m,AxiosHeaders:g,HttpStatusCode:y,formToJSON:v,getAdapter:w,mergeConfig:_}=a.default},{"./lib/axios.js":"8DJLn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DJLn":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./utils.js"),a=i.interopDefault(n),s=e("./helpers/bind.js"),o=i.interopDefault(s),f=e("./core/Axios.js"),d=i.interopDefault(f),c=e("./core/mergeConfig.js"),u=i.interopDefault(c),l=e("./defaults/index.js"),h=i.interopDefault(l),p=e("./helpers/formDataToJSON.js"),b=i.interopDefault(p),m=e("./cancel/CanceledError.js"),g=i.interopDefault(m),y=e("./cancel/CancelToken.js"),v=i.interopDefault(y),w=e("./cancel/isCancel.js"),_=i.interopDefault(w),M=e("./env/data.js"),E=e("./helpers/toFormData.js"),A=i.interopDefault(E),S=e("./core/AxiosError.js"),x=i.interopDefault(S),I=e("./helpers/spread.js"),R=i.interopDefault(I),k=e("./helpers/isAxiosError.js"),T=i.interopDefault(k),C=e("./core/AxiosHeaders.js"),P=i.interopDefault(C),O=e("./adapters/adapters.js"),N=i.interopDefault(O),j=e("./helpers/HttpStatusCode.js"),B=i.interopDefault(j);let L=function e(t){let r=new d.default(t),i=(0,o.default)(d.default.prototype.request,r);return(0,a.default).extend(i,d.default.prototype,r,{allOwnKeys:!0}),(0,a.default).extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e((0,u.default)(t,r))},i}(h.default);L.Axios=d.default,L.CanceledError=g.default,L.CancelToken=v.default,L.isCancel=_.default,L.VERSION=M.VERSION,L.toFormData=A.default,L.AxiosError=x.default,L.Cancel=L.CanceledError,L.all=function(e){return Promise.all(e)},L.spread=R.default,L.isAxiosError=T.default,L.mergeConfig=u.default,L.AxiosHeaders=P.default,L.formToJSON=e=>(0,b.default)((0,a.default).isHTMLForm(e)?new FormData(e):e),L.getAdapter=N.default.getAdapter,L.HttpStatusCode=B.default,L.default=L,r.default=L},{"./utils.js":"2ioTY","./helpers/bind.js":"9mfTC","./core/Axios.js":"2wp4K","./core/mergeConfig.js":"j8Sbj","./defaults/index.js":"1GU0t","./helpers/formDataToJSON.js":"jhUur","./cancel/CanceledError.js":"judoa","./cancel/CancelToken.js":"2aN3e","./cancel/isCancel.js":"5ndsF","./env/data.js":"9ssnR","./helpers/toFormData.js":"k8OtD","./core/AxiosError.js":"hjCVQ","./helpers/spread.js":"gQxw3","./helpers/isAxiosError.js":"lE0ea","./core/AxiosHeaders.js":"1qkRX","./adapters/adapters.js":"6E0f0","./helpers/HttpStatusCode.js":"agO1h","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2ioTY":[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);"use strict";var s=e("./helpers/bind.js"),o=a.interopDefault(s),f=arguments[3];let{toString:d}=Object.prototype,{getPrototypeOf:c}=Object,u=(i=Object.create(null),e=>{let t=d.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),l=e=>(e=e.toLowerCase(),t=>u(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,b=h("undefined"),m=l("ArrayBuffer"),g=h("string"),y=h("function"),v=h("number"),w=e=>null!==e&&"object"==typeof e,_=e=>{if("object"!==u(e))return!1;let t=c(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},M=l("Date"),E=l("File"),A=l("Blob"),S=l("FileList"),x=l("URLSearchParams");function I(e,t,{allOwnKeys:r=!1}={}){let i,n;if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(i=0,n=e.length;i0;)if(t===(r=i[n]).toLowerCase())return r;return null}let k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:f,T=e=>!b(e)&&e!==k,C=(n="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>n&&e instanceof n),P=l("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=l("RegExp"),j=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};I(r,(r,n)=>{let a;!1!==(a=t(r,n,e))&&(i[n]=a||r)}),Object.defineProperties(e,i)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},F=l("AsyncFunction");r.default={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:_,isUndefined:b,isDate:M,isFile:E,isBlob:A,isRegExp:N,isFunction:y,isStream:e=>w(e)&&y(e.pipe),isURLSearchParams:x,isTypedArray:C,isFileList:S,forEach:I,merge:function e(){let{caseless:t}=T(this)&&this||{},r={},i=(i,n)=>{let a=t&&R(r,n)||n;_(r[a])&&_(i)?r[a]=e(r[a],i):_(i)?r[a]=e({},i):p(i)?r[a]=i.slice():r[a]=i};for(let e=0,t=arguments.length;e(I(t,(t,i)=>{r&&y(t)?e[i]=(0,o.default)(t,r):e[i]=t},{allOwnKeys:i}),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,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,a,s;let o={};if(t=t||{},null==e)return t;do{for(a=(n=Object.getOwnPropertyNames(e)).length;a-- >0;)s=n[a],(!i||i(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&c(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:u,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let i=e&&e[Symbol.iterator],n=i.call(e);for(;(r=n.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r;let i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:P,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let i=e[r];if(y(i)){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})})(p(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)=>Number.isFinite(e=+e)?e:t,findKey:R,global:k,isContextDefined:T,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let r="",{length:i}=t;for(;e--;)r+=t[Math.random()*i|0];return r},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,i)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;let n=p(e)?[]:{};return I(e,(e,t)=>{let a=r(e,i+1);b(a)||(n[t]=a)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(w(e)||y(e))&&y(e.then)&&y(e.catch)}},{"./helpers/bind.js":"9mfTC","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9mfTC":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cI3Jn:[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})}},{}],"2wp4K":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../helpers/buildURL.js"),o=i.interopDefault(s),f=e("./InterceptorManager.js"),d=i.interopDefault(f),c=e("./dispatchRequest.js"),u=i.interopDefault(c),l=e("./mergeConfig.js"),h=i.interopDefault(l),p=e("./buildFullPath.js"),b=i.interopDefault(p),m=e("../helpers/validator.js"),g=i.interopDefault(m),y=e("./AxiosHeaders.js"),v=i.interopDefault(y);let w=g.default.validators;class _{constructor(e){this.defaults=e,this.interceptors={request:new d.default,response:new d.default}}request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,h.default)(this.defaults,t);let{transitional:n,paramsSerializer:s,headers:o}=t;void 0!==n&&(0,g.default).assertOptions(n,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)},!1),null!=s&&((0,a.default).isFunction(s)?t.paramsSerializer={serialize:s}:(0,g.default).assertOptions(s,{encode:w.function,serialize:w.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let f=o&&(0,a.default).merge(o.common,o[t.method]);o&&(0,a.default).forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=(0,v.default).concat(f,o);let d=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,d.unshift(e.fulfilled,e.rejected))});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let p=0;if(!c){let e=[(0,u.default).bind(this),void 0];for(e.unshift.apply(e,d),e.push.apply(e,l),i=e.length,r=Promise.resolve(t);pd);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../helpers/AxiosURLSearchParams.js"),o=i.interopDefault(s);function f(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d(e,t,r){let i;if(!t)return e;let n=r&&r.encode||f,s=r&&r.serialize;if(i=s?s(t,r):(0,a.default).isURLSearchParams(t)?t.toString():new(0,o.default)(t,r).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},{"../utils.js":"2ioTY","../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],juzHK:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./toFormData.js"),a=i.interopDefault(n);function s(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,a.default)(e,this,t)}let f=o.prototype;f.append=function(e,t){this._pairs.push([e,t])},f.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":"k8OtD","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],k8OtD:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../core/AxiosError.js"),o=i.interopDefault(s),f=e("../platform/node/classes/FormData.js"),d=i.interopDefault(f),c=e("adfd9b103875c2dd").Buffer;function u(e){return(0,a.default).isPlainObject(e)||(0,a.default).isArray(e)}function l(e){return(0,a.default).endsWith(e,"[]")?e.slice(0,-2):e}function h(e,t,r){return e?e.concat(t).map(function(e,t){return e=l(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let p=(0,a.default).toFlatObject(a.default,{},null,function(e){return/^is[A-Z]/.test(e)});r.default=function(e,t,r){if(!(0,a.default).isObject(e))throw TypeError("target must be an object");t=t||new(d.default||FormData),r=(0,a.default).toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!(0,a.default).isUndefined(t[e])});let i=r.metaTokens,n=r.visitor||y,s=r.dots,f=r.indexes,b=r.Blob||"undefined"!=typeof Blob&&Blob,m=b&&(0,a.default).isSpecCompliantForm(t);if(!(0,a.default).isFunction(n))throw TypeError("visitor must be a function");function g(e){if(null===e)return"";if((0,a.default).isDate(e))return e.toISOString();if(!m&&(0,a.default).isBlob(e))throw new o.default("Blob is not supported. Use a Buffer instead.");return(0,a.default).isArrayBuffer(e)||(0,a.default).isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):c.from(e):e}function y(e,r,n){let o=e;if(e&&!n&&"object"==typeof e){if((0,a.default).endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else{var d;if((0,a.default).isArray(e)&&(d=e,(0,a.default).isArray(d)&&!d.some(u))||((0,a.default).isFileList(e)||(0,a.default).endsWith(r,"[]"))&&(o=(0,a.default).toArray(e)))return r=l(r),o.forEach(function(e,i){(0,a.default).isUndefined(e)||null===e||t.append(!0===f?h([r],i,s):null===f?r:r+"[]",g(e))}),!1}}return!!u(e)||(t.append(h(n,r,s),g(e)),!1)}let v=[],w=Object.assign(p,{defaultVisitor:y,convertValue:g,isVisitable:u});if(!(0,a.default).isObject(e))throw TypeError("data must be an object");return!function e(r,i){if(!(0,a.default).isUndefined(r)){if(-1!==v.indexOf(r))throw Error("Circular reference detected in "+i.join("."));v.push(r),(0,a.default).forEach(r,function(r,s){let o=!((0,a.default).isUndefined(r)||null===r)&&n.call(t,r,(0,a.default).isString(s)?s.trim():s,i,w);!0===o&&e(r,i?i.concat(s):[s])}),v.pop()}}(e),t}},{adfd9b103875c2dd:"2MMCE","../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","../platform/node/classes/FormData.js":"fN4B6","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2MMCE":[function(e,t,r){"use strict";let i=e("9c62938f1dccc73c"),n=e("aceacb6a4531a9d2"),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)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 c(e)}return f(e,t,r)}function f(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),i=s(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return u(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(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return l(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 o.from(i,t,r);let n=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):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(n)return n;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 d(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 c(e){return d(e),s(e<0?0:0|h(e))}function u(e){let t=e.length<0?0:0|h(e.length),r=s(t);for(let i=0;i=2147483647)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)||L(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,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(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(n)return i?-1:N(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){let n=!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 i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return -1;r=e.length-1}else if(r<0){if(!n)return -1;r=0}if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,i,n);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,i,n);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,i,n){let a,s=1,o=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,o/=2,f/=2,r/=2}function d(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){let i=-1;for(a=r;ao&&(r=o-f),a=r;a>=0;a--){let r=!0;for(let i=0;i239?4:t>223?3:t>191?2:1;if(n+s<=r){let r,i,o,f;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(r=e[n+1]))==128&&(f=(31&t)<<6|63&r)>127&&(a=f);break;case 3:r=e[n+1],i=e[n+2],(192&r)==128&&(192&i)==128&&(f=(15&t)<<12|(63&r)<<6|63&i)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:r=e[n+1],i=e[n+2],o=e[n+3],(192&r)==128&&(192&i)==128&&(192&o)==128&&(f=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&o)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),n+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",i=0;for(;ir)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,i,n,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw RangeError("Index out of range")}function M(e,t,r,i,n){T(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function E(e,t,r,i,n){T(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));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 A(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,i,a){return t=+t,r>>>=0,a||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function x(e,t,r,i,a){return t=+t,r>>>=0,a||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,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=2147483647,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 f(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(d(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 c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(L(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),L(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,i=t.length;for(let n=0,a=Math.min(r,i);ni.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else if(o.isBuffer(t))t.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=t.length}return i},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+=" ... "),""},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,i,n){if(L(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===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;let a=n-i,s=r-t,f=Math.min(a,s),d=this.slice(i,n),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let l=this.length-t;if((void 0===r||r>l)&&(r=l),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return function(e,t,r,i){let n;r=Number(r)||0;let a=e.length-r;i?(i=Number(i))>a&&(i=a):i=a;let s=t.length;for(i>s/2&&(i=s/2),n=0;n>8,n.push(r%256),n.push(i);return n}(e,this.length-c),this,c,u);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).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 i=this[e],n=1,a=0;for(;++a>>=0,t>>>=0,r||w(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},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)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=F(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=t+256*this[++e]+65536*this[++e]+16777216*this[++e],n=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(i)+(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=16777216*t+65536*this[++e]+256*this[++e]+this[++e],n=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<>>=0,t>>>=0,r||w(e,t,this.length);let i=this[e],n=1,a=0;for(;++a=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let i=t,n=1,a=this[e+--i];for(;i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},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?4294901760|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?4294901760|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=F(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<>>=0,t||w(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}let n=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}let n=r-1,a=1;for(this[t+n]=255&e;--n>=0&&(a*=256);)this[t+n]=e/a&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(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||_(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||_(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||_(this,e,t,4,4294967295,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||_(this,e,t,4,4294967295,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=F(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=F(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){let i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}let n=0,a=1,s=0;for(this[t]=255&e;++n>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){let i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}let n=r-1,a=1,s=0;for(this[t+n]=255&e;--n>=0&&(a*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(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||_(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||_(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||_(this,e,t,4,2147483647,-2147483648),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||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=F(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=F(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function T(e,t,r,i,n,a){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${(a+1)*8}${n}`:`>= -(2${n} ** ${(a+1)*8-1}${n}) and < 2 ** ${(a+1)*8-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new I.ERR_OUT_OF_RANGE("value",i,e)}C(n,"offset"),(void 0===i[n]||void 0===i[n+a])&&P(n,i.length-(a+1))}function C(e,t){if("number"!=typeof e)throw new I.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw C(e,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),R("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),R("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?n=k(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=k(n)),n+="n"),i+=` It must be ${t}. Received ${n}`},RangeError);let O=/[^+/0-9A-Za-z-_]/g;function N(e,t){let r;t=t||1/0;let i=e.length,n=null,a=[];for(let s=0;s55295&&r<57344){if(!n){if(r>56319||s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function j(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,i){let n;for(n=0;n=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let D=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function F(e){return"undefined"==typeof BigInt?U:e}function U(){throw Error("BigInt not supported")}},{"9c62938f1dccc73c":"6P4Ax",aceacb6a4531a9d2:"lPFVa"}],"6P4Ax":[function(e,t,r){"use strict";r.byteLength=function(e){var t=d(e),r=t[0],i=t[1];return(r+i)*3/4-i},r.toByteArray=function(e){var t,r,i=d(e),s=i[0],o=i[1],f=new a((s+o)*3/4-o),c=0,u=o>0?s-4:s;for(r=0;r>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,a=[],s=0,o=r-n;s>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===n?a.push(i[(t=e[r-1])>>2]+i[t<<4&63]+"=="):2===n&&a.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),a.join("")};for(var i=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,f=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},{}],lPFVa:[function(e,t,r){r.read=function(e,t,r,i,n){var a,s,o=8*n-i-1,f=(1<>1,c=-7,u=r?n-1:0,l=r?-1:1,h=e[t+u];for(u+=l,a=h&(1<<-c)-1,h>>=-c,c+=o;c>0;a=256*a+e[t+u],u+=l,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=i;c>0;s=256*s+e[t+u],u+=l,c-=8);if(0===a)a=1-d;else{if(a===f)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,i),a-=d}return(h?-1:1)*s*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var s,o,f,d=8*a-n-1,c=(1<>1,l=23===n?5960464477539062e-23:0,h=i?0:a-1,p=i?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=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+u>=1?t+=l/f:t+=l*Math.pow(2,1-u),t*f>=2&&(s++,f/=2),s+u>=c?(o=0,s=c):s+u>=1?(o=(t*f-1)*Math.pow(2,n),s+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,n),s=0));n>=8;e[r+h]=255&o,h+=p,o/=256,n-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,d-=8);e[r+h-p]|=128*b}},{}],hjCVQ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n);function s(e,t,r,i,n){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),i&&(this.request=i),n&&(this.response=n)}(0,a.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,a.default).toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let o=s.prototype,f={};["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=>{f[e]={value:e}}),Object.defineProperties(s,f),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=(e,t,r,i,n,f)=>{let d=Object.create(o);return(0,a.default).toFlatObject(e,d,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),s.call(d,e.message,t,r,i,n),d.cause=e,d.name=e.name,f&&Object.assign(d,f),d},r.default=s},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fN4B6:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5Qndl":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n);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,a.default).forEach(this.handlers,function(t){null!==t&&e(t)})}}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gTZwy:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>g);"use strict";var n=e("./transformData.js"),a=i.interopDefault(n),s=e("../cancel/isCancel.js"),o=i.interopDefault(s),f=e("../defaults/index.js"),d=i.interopDefault(f),c=e("../cancel/CanceledError.js"),u=i.interopDefault(c),l=e("../core/AxiosHeaders.js"),h=i.interopDefault(l),p=e("../adapters/adapters.js"),b=i.interopDefault(p);function m(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new u.default(null,e)}function g(e){m(e),e.headers=(0,h.default).from(e.headers),e.data=(0,a.default).call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=(0,b.default).getAdapter(e.adapter||d.default.adapter);return t(e).then(function(t){return m(e),t.data=(0,a.default).call(e,e.transformResponse,t),t.headers=(0,h.default).from(t.headers),t},function(t){return!(0,o.default)(t)&&(m(e),t&&t.response&&(t.response.data=(0,a.default).call(e,e.transformResponse,t.response),t.response.headers=(0,h.default).from(t.response.headers))),Promise.reject(t)})}},{"./transformData.js":"8H0wy","../cancel/isCancel.js":"5ndsF","../defaults/index.js":"1GU0t","../cancel/CanceledError.js":"judoa","../core/AxiosHeaders.js":"1qkRX","../adapters/adapters.js":"6E0f0","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8H0wy":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>c);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../defaults/index.js"),o=i.interopDefault(s),f=e("../core/AxiosHeaders.js"),d=i.interopDefault(f);function c(e,t){let r=this||o.default,i=t||r,n=(0,d.default).from(i.headers),s=i.data;return(0,a.default).forEach(e,function(e){s=e.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}},{"./../utils.js":"2ioTY","../defaults/index.js":"1GU0t","../core/AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1GU0t":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../core/AxiosError.js"),o=i.interopDefault(s),f=e("./transitional.js"),d=i.interopDefault(f),c=e("../helpers/toFormData.js"),u=i.interopDefault(c),l=e("../helpers/toURLEncodedForm.js"),h=i.interopDefault(l),p=e("../platform/index.js"),b=i.interopDefault(p),m=e("../helpers/formDataToJSON.js"),g=i.interopDefault(m);let y={transitional:d.default,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let i=t.getContentType()||"",n=i.indexOf("application/json")>-1,s=(0,a.default).isObject(e);s&&(0,a.default).isHTMLForm(e)&&(e=new FormData(e));let o=(0,a.default).isFormData(e);if(o)return n&&n?JSON.stringify((0,g.default)(e)):e;if((0,a.default).isArrayBuffer(e)||(0,a.default).isBuffer(e)||(0,a.default).isStream(e)||(0,a.default).isFile(e)||(0,a.default).isBlob(e))return e;if((0,a.default).isArrayBufferView(e))return e.buffer;if((0,a.default).isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return(0,h.default)(e,this.formSerializer).toString();if((r=(0,a.default).isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return(0,u.default)(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e,t,r){if((0,a.default).isString(e))try{return(0,JSON.parse)(e),(0,a.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,i="json"===this.responseType;if(e&&(0,a.default).isString(e)&&(r&&!this.responseType||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&i){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,a.default).forEach(["delete","get","head","post","put","patch"],e=>{y.headers[e]={}}),r.default=y},{"../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","./transitional.js":"lBqaD","../helpers/toFormData.js":"k8OtD","../helpers/toURLEncodedForm.js":"bgvH4","../platform/index.js":"fP1Ni","../helpers/formDataToJSON.js":"jhUur","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lBqaD:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bgvH4:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>c);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("./toFormData.js"),o=i.interopDefault(s),f=e("../platform/index.js"),d=i.interopDefault(f);function c(e,t){return(0,o.default)(e,new d.default.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,i){return d.default.isNode&&(0,a.default).isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}},{"../utils.js":"2ioTY","./toFormData.js":"k8OtD","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fP1Ni:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./node/index.js"),a=i.interopDefault(n),s=e("./common/utils.js");r.default={...s,...a.default}},{"./node/index.js":"3yghl","./common/utils.js":"dkG5V","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3yghl":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./classes/URLSearchParams.js"),a=i.interopDefault(n),s=e("./classes/FormData.js"),o=i.interopDefault(s),f=e("./classes/Blob.js"),d=i.interopDefault(f);r.default={isBrowser:!0,classes:{URLSearchParams:a.default,FormData:o.default,Blob:d.default},protocols:["http","https","file","blob","url","data"]}},{"./classes/URLSearchParams.js":"eT4YQ","./classes/FormData.js":"2389U","./classes/Blob.js":"eKMhL","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eT4YQ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../../../helpers/AxiosURLSearchParams.js"),a=i.interopDefault(n);r.default="undefined"!=typeof URLSearchParams?URLSearchParams:a.default},{"../../../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2389U":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof FormData?FormData:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eKMhL:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof Blob?Blob:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dkG5V:[function(e,t,r){var i,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);let a="undefined"!=typeof window&&"undefined"!=typeof document,s=(i="undefined"!=typeof navigator&&navigator.product,a&&0>["ReactNative","NativeScript","NS"].indexOf(i)),o="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jhUur:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n);r.default=function(e){if((0,a.default).isFormData(e)&&(0,a.default).isFunction(e.entries)){let t={};return(0,a.default).forEachEntry(e,(e,r)=>{!function e(t,r,i,n){let s=t[n++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),f=n>=t.length;if(s=!s&&(0,a.default).isArray(i)?i.length:s,f)return(0,a.default).hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o;i[s]&&(0,a.default).isObject(i[s])||(i[s]=[]);let d=e(t,r,i[s],n);return d&&(0,a.default).isArray(i[s])&&(i[s]=function(e){let t,r;let i={},n=Object.keys(e),a=n.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qkRX":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../helpers/parseHeaders.js"),o=i.interopDefault(s);let f=Symbol("internals");function d(e){return e&&String(e).trim().toLowerCase()}function c(e){return!1===e||null==e?e:(0,a.default).isArray(e)?e.map(c):String(e)}let u=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function l(e,t,r,i,n){if((0,a.default).isFunction(i))return i.call(this,t,r);if(n&&(t=r),(0,a.default).isString(t)){if((0,a.default).isString(i))return -1!==t.indexOf(i);if((0,a.default).isRegExp(i))return i.test(t)}}class h{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function n(e,t,r){let n=d(t);if(!n)throw Error("header name must be a non-empty string");let s=(0,a.default).findKey(i,n);s&&void 0!==i[s]&&!0!==r&&(void 0!==r||!1===i[s])||(i[s||t]=c(e))}let s=(e,t)=>(0,a.default).forEach(e,(e,r)=>n(e,r,t));return(0,a.default).isPlainObject(e)||e instanceof this.constructor?s(e,t):(0,a.default).isString(e)&&(e=e.trim())&&!u(e)?s((0,o.default)(e),t):null!=e&&n(t,e,r),this}get(e,t){if(e=d(e)){let r=(0,a.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),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}(e);if((0,a.default).isFunction(t))return t.call(this,e,r);if((0,a.default).isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=d(e)){let r=(0,a.default).findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||l(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function n(e){if(e=d(e)){let n=(0,a.default).findKey(r,e);n&&(!t||l(r,r[n],n,t))&&(delete r[n],i=!0)}}return(0,a.default).isArray(e)?e.forEach(n):n(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let n=t[r];(!e||l(this,this[n],n,e,!0))&&(delete this[n],i=!0)}return i}normalize(e){let t=this,r={};return(0,a.default).forEach(this,(i,n)=>{let s=(0,a.default).findKey(r,n);if(s){t[s]=c(i),delete t[n];return}let o=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(n).trim();o!==n&&delete t[n],t[o]=c(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return(0,a.default).forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&(0,a.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[f]=this[f]={accessors:{}},r=t.accessors,i=this.prototype;function n(e){let t=d(e);r[t]||(!function(e,t){let r=(0,a.default).toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}(i,e),r[t]=!0)}return(0,a.default).isArray(e)?e.forEach(n):n(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),(0,a.default).reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),(0,a.default).freezeMethods(h),r.default=h},{"../utils.js":"2ioTY","../helpers/parseHeaders.js":"aYbVO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aYbVO:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n);let s=(0,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,i;let n={};return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!t||n[t]&&s[t]||("set-cookie"===t?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5ndsF":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){return!!(e&&e.__CANCEL__)}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],judoa:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../core/AxiosError.js"),a=i.interopDefault(n),s=e("../utils.js");function o(e,t,r){(0,a.default).call(this,null==e?"canceled":e,a.default.ERR_CANCELED,t,r),this.name="CanceledError"}(0,i.interopDefault(s).default).inherits(o,a.default,{__CANCEL__:!0}),r.default=o},{"../core/AxiosError.js":"hjCVQ","../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6E0f0":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("../utils.js"),a=i.interopDefault(n),s=e("./http.js"),o=i.interopDefault(s),f=e("./xhr.js"),d=i.interopDefault(f),c=e("../core/AxiosError.js"),u=i.interopDefault(c);let l={http:o.default,xhr:d.default};(0,a.default).forEach(l,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let h=e=>`- ${e}`,p=e=>(0,a.default).isFunction(e)||null===e||!1===e;r.default={getAdapter:e=>{let t,r;e=(0,a.default).isArray(e)?e:[e];let{length:i}=e,n={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=i?e.length>1?"since :\n"+e.map(h).join("\n"):" "+h(e[0]):"as no adapter specified";throw new u.default("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:l}},{"../utils.js":"2ioTY","./http.js":"fN4B6","./xhr.js":"9qcoo","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9qcoo":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("./../core/settle.js"),o=i.interopDefault(s),f=e("./../helpers/cookies.js"),d=i.interopDefault(f),c=e("./../helpers/buildURL.js"),u=i.interopDefault(c),l=e("../core/buildFullPath.js"),h=i.interopDefault(l),p=e("./../helpers/isURLSameOrigin.js"),b=i.interopDefault(p),m=e("../defaults/transitional.js"),g=i.interopDefault(m),y=e("../core/AxiosError.js"),v=i.interopDefault(y),w=e("../cancel/CanceledError.js"),_=i.interopDefault(w),M=e("../helpers/parseProtocol.js"),E=i.interopDefault(M),A=e("../platform/index.js"),S=i.interopDefault(A),x=e("../core/AxiosHeaders.js"),I=i.interopDefault(x),R=e("../helpers/speedometer.js"),k=i.interopDefault(R);function T(e,t){let r=0,i=(0,k.default)(50,250);return n=>{let a=n.loaded,s=n.lengthComputable?n.total:void 0,o=a-r,f=i(o),d=a<=s;r=a;let c={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:f||void 0,estimated:f&&s&&d?(s-a)/f:void 0,event:n};c[t?"download":"upload"]=!0,e(c)}}let C="undefined"!=typeof XMLHttpRequest;r.default=C&&function(e){return new Promise(function(t,r){let i,n,s=e.data,f=(0,I.default).from(e.headers).normalize(),{responseType:c,withXSRFToken:l}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if((0,a.default).isFormData(s)){if(S.default.hasStandardBrowserEnv||S.default.hasStandardBrowserWebWorkerEnv)f.setContentType(!1);else if(!1!==(n=f.getContentType())){let[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];f.setContentType([e||"multipart/form-data",...t].join("; "))}}let m=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.set("Authorization","Basic "+btoa(t+":"+r))}let y=(0,h.default)(e.baseURL,e.url);function w(){if(!m)return;let i=(0,I.default).from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),n=c&&"text"!==c&&"json"!==c?m.response:m.responseText,a={data:n,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};(0,o.default)(function(e){t(e),p()},function(e){r(e),p()},a),m=null}if(m.open(e.method.toUpperCase(),(0,u.default)(y,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new v.default("Request aborted",v.default.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new v.default("Network Error",v.default.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||g.default;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new v.default(t,i.clarifyTimeoutError?v.default.ETIMEDOUT:v.default.ECONNABORTED,e,m)),m=null},S.default.hasStandardBrowserEnv&&(l&&(0,a.default).isFunction(l)&&(l=l(e)),l||!1!==l&&(0,b.default)(y))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&(0,d.default).read(e.xsrfCookieName);t&&f.set(e.xsrfHeaderName,t)}void 0===s&&f.setContentType(null),"setRequestHeader"in m&&(0,a.default).forEach(f.toJSON(),function(e,t){m.setRequestHeader(t,e)}),(0,a.default).isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),c&&"json"!==c&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",T(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",T(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{m&&(r(!t||t.type?new _.default(null,e,m):t),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));let M=(0,E.default)(y);if(M&&-1===(0,S.default).protocols.indexOf(M)){r(new v.default("Unsupported protocol "+M+":",v.default.ERR_BAD_REQUEST,e));return}m.send(s||null)})}},{"./../utils.js":"2ioTY","./../core/settle.js":"dlf0W","./../helpers/cookies.js":"lftHJ","./../helpers/buildURL.js":"aGaJq","../core/buildFullPath.js":"48uot","./../helpers/isURLSameOrigin.js":"33eDi","../defaults/transitional.js":"lBqaD","../core/AxiosError.js":"hjCVQ","../cancel/CanceledError.js":"judoa","../helpers/parseProtocol.js":"3ExDf","../platform/index.js":"fP1Ni","../core/AxiosHeaders.js":"1qkRX","../helpers/speedometer.js":"cludo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dlf0W:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>s);"use strict";var n=e("./AxiosError.js"),a=i.interopDefault(n);function s(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new a.default("Request failed with status code "+r.status,[a.default.ERR_BAD_REQUEST,a.default.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},{"./AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lftHJ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../platform/index.js"),o=i.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?{write(e,t,r,i,n,s){let o=[e+"="+encodeURIComponent(t)];(0,a.default).isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),(0,a.default).isString(i)&&o.push("path="+i),(0,a.default).isString(n)&&o.push("domain="+n),!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":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"48uot":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>f);"use strict";var n=e("../helpers/isAbsoluteURL.js"),a=i.interopDefault(n),s=e("../helpers/combineURLs.js"),o=i.interopDefault(s);function f(e,t){return e&&!(0,a.default)(t)?(0,o.default)(e,t):t}},{"../helpers/isAbsoluteURL.js":"lW14e","../helpers/combineURLs.js":"kZdZo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lW14e:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kZdZo:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"33eDi":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../platform/index.js"),o=i.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){let i=e;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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=i(window.location.href),function(t){let r=(0,a.default).isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},{"./../utils.js":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3ExDf":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cludo:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default=function(e,t){let r;e=e||10;let i=Array(e),n=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let f=Date.now(),d=n[s];r||(r=f),i[a]=o,n[a]=f;let c=s,u=0;for(;c!==a;)u+=i[c++],c%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),f-rd);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("./AxiosHeaders.js"),o=i.interopDefault(s);let f=e=>e instanceof o.default?e.toJSON():e;function d(e,t){t=t||{};let r={};function i(e,t,r){return(0,a.default).isPlainObject(e)&&(0,a.default).isPlainObject(t)?(0,a.default).merge.call({caseless:r},e,t):(0,a.default).isPlainObject(t)?(0,a.default).merge({},t):(0,a.default).isArray(t)?t.slice():t}function n(e,t,r){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:i(void 0,e,r):i(e,t,r)}function s(e,t){if(!(0,a.default).isUndefined(t))return i(void 0,t)}function o(e,t){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function d(r,n,a){return a in t?i(r,n):a in e?i(void 0,r):void 0}let c={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:d,headers:(e,t)=>n(f(e),f(t),!0)};return(0,a.default).forEach(Object.keys(Object.assign({},e,t)),function(i){let s=c[i]||n,o=s(e[i],t[i],i);(0,a.default).isUndefined(o)&&s!==d||(r[i]=o)}),r}},{"../utils.js":"2ioTY","./AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8PNBN":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";i.defineInteropFlag(r);var n=e("../env/data.js"),a=e("../core/AxiosError.js"),s=i.interopDefault(a);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 f={};o.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n.VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new s.default(i(n," has been removed"+(t?" in "+t:"")),s.default.ERR_DEPRECATED);return t&&!f[n]&&(f[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},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 i=Object.keys(e),n=i.length;for(;n-- >0;){let a=i[n],o=t[a];if(o){let t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new s.default("option "+a+" must be "+r,s.default.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new s.default("Unknown option "+a,s.default.ERR_BAD_OPTION)}},validators:o}},{"../env/data.js":"9ssnR","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9ssnR":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"VERSION",()=>n);let n="1.6.5"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aN3e":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./CanceledError.js"),a=i.interopDefault(n);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 i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new a.default(e,i,n),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)}static source(){let e;let t=new s(function(t){e=t});return{token:t,cancel:e}}}r.default=s},{"./CanceledError.js":"judoa","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gQxw3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){return function(t){return e.apply(null,t)}}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lE0ea:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>s);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n);function s(e){return(0,a.default).isObject(e)&&!0===e.isAxiosError}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],agO1h:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let i={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(i).forEach(([e,t])=>{i[t]=e}),r.default=i},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2eu25":[function(e,t,r){var i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x=e("@parcel/transformer-js/src/esmodule-helpers.js");x.defineInteropFlag(r),x.export(r,"BlockchainData",()=>tw),x.export(r,"ImxApiClients",()=>t_),x.export(r,"MultiRollupApiClients",()=>tM),x.export(r,"createConfig",()=>tA),x.export(r,"imx",()=>eU),x.export(r,"imxApiConfig",()=>tS),x.export(r,"mr",()=>tv),x.export(r,"multiRollupConfig",()=>tx);var I=e("axios"),R=x.interopDefault(I);let k="https://api.sandbox.x.immutable.com".replace(/\/+$/,""),T=class{basePath;axios;configuration;constructor(e,t=k,r=R.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}},C=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},P="https://example.com",O=function(e,t,r){if(null==r)throw new C(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},N=async function(e,t,r){if(r&&r.apiKey){let i="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=i}},j=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,i=""){"object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,i)):Object.keys(r).forEach(n=>e(t,r[n],`${i}${""!==i?".":""}${n}`)):t.has(i)?t.append(i,r):t.set(i,r)}(r,t),e.search=r.toString()},B=function(e,t,r){let i="string"!=typeof e,n=i&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):i;return n?JSON.stringify(void 0!==e?e:{}):e||""},L=function(e){return e.pathname+e.search+e.hash},D=function(e,t,r,i){return(n=t,a=r)=>{let s={...e.options,url:(i?.basePath||a)+e.url};return n.request(s)}},F=function(e){return{getAsset:async(t,r,i,n={})=>{let a;O("getAsset","tokenAddress",t),O("getAsset","tokenId",r);let s="/v1/assets/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),o=new URL(s,P);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};void 0!==i&&(d.include_fees=i),j(o,d);let c=a&&a.headers?a.headers:{};return f.headers={...c,...n.headers},{url:L(o),options:f}},listAssets:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g={})=>{let y;let v=new URL("/v1/assets",P);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==i&&(_.order_by=i),void 0!==n&&(_.direction=n),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.name=o),void 0!==f&&(_.metadata=f),void 0!==d&&(_.sell_orders=d),void 0!==c&&(_.buy_orders=c),void 0!==u&&(_.include_fees=u),void 0!==l&&(_.collection=l),void 0!==h&&(_.updated_min_timestamp=h),void 0!==p&&(_.updated_max_timestamp=p),void 0!==b&&(_.auxiliary_fee_percentages=b),void 0!==m&&(_.auxiliary_fee_recipients=m),j(v,_);let M=y&&y.headers?y.headers:{};return w.headers={...M,...g.headers},{url:L(v),options:w}}}},U=function(e){let t=F(e);return{async getAsset(r,i,n,a){let s=await t.getAsset(r,i,n,a);return D(s,R.default,k,e)},async listAssets(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y){let v=await t.listAssets(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y);return D(v,R.default,k,e)}}};class q extends T{getAsset(e,t){return U(this.configuration).getAsset(e.tokenAddress,e.tokenId,e.includeFees,t).then(e=>e(this.axios,this.basePath))}listAssets(e={},t){return U(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))}}let z=function(e){return{getBalance:async(t,r,i={})=>{let n;O("getBalance","owner",t),O("getBalance","address",r);let a="/v2/balances/{owner}/{address}".replace("{owner}",encodeURIComponent(String(t))).replace("{address}",encodeURIComponent(String(r))),s=new URL(a,P);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};j(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:L(s),options:o}},listBalances:async(t,r,i,n,a,s={})=>{let o;O("listBalances","owner",t);let f="/v2/balances/{owner}".replace("{owner}",encodeURIComponent(String(t))),d=new URL(f,P);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={};void 0!==r&&(u.page_size=r),void 0!==i&&(u.cursor=i),void 0!==n&&(u.order_by=n),void 0!==a&&(u.direction=a),j(d,u);let l=o&&o.headers?o.headers:{};return c.headers={...l,...s.headers},{url:L(d),options:c}}}},K=function(e){let t=z(e);return{async getBalance(r,i,n){let a=await t.getBalance(r,i,n);return D(a,R.default,k,e)},async listBalances(r,i,n,a,s,o){let f=await t.listBalances(r,i,n,a,s,o);return D(f,R.default,k,e)}}};class H extends T{getBalance(e,t){return K(this.configuration).getBalance(e.owner,e.address,t).then(e=>e(this.axios,this.basePath))}listBalances(e,t){return K(this.configuration).listBalances(e.owner,e.pageSize,e.cursor,e.orderBy,e.direction,t).then(e=>e(this.axios,this.basePath))}}let W=function(e){return{createCollection:async(t,r,i,n,a={})=>{let s;O("createCollection","iMXSignature",t),O("createCollection","iMXTimestamp",r),O("createCollection","createCollectionRequest",i);let o=new URL("/v1/collections",P);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=t&&(d["IMX-Signature"]=String(t)),null!=r&&(d["IMX-Timestamp"]=String(r)),null!=n&&(d["x-immutable-api-key"]=String(n)),d["Content-Type"]="application/json",j(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=B(i,f,e),{url:L(o),options:f}},getCollection:async(t,r={})=>{let i;O("getCollection","address",t);let n="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},listCollectionFilters:async(t,r,i,n={})=>{let a;O("listCollectionFilters","address",t);let s="/v1/collections/{address}/filters".replace("{address}",encodeURIComponent(String(t))),o=new URL(s,P);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};void 0!==r&&(d.page_size=r),void 0!==i&&(d.next_page_token=i),j(o,d);let c=a&&a.headers?a.headers:{};return f.headers={...c,...n.headers},{url:L(o),options:f}},listCollections:async(t,r,i,n,a,s,o,f={})=>{let d;let c=new URL("/v1/collections",P);e&&(d=e.baseOptions);let u={method:"GET",...d,...f},l={};void 0!==t&&(l.page_size=t),void 0!==r&&(l.cursor=r),void 0!==i&&(l.order_by=i),void 0!==n&&(l.direction=n),void 0!==a&&(l.blacklist=a),void 0!==s&&(l.whitelist=s),void 0!==o&&(l.keyword=o),j(c,l);let h=d&&d.headers?d.headers:{};return u.headers={...h,...f.headers},{url:L(c),options:u}},summarizeCollections:async(t,r={})=>{let i;O("summarizeCollections","user",t);let n=new URL("/v1/collections-summary",P);e&&(i=e.baseOptions);let a={method:"GET",...i,...r},s={};void 0!==t&&(s.user=t),j(n,s);let o=i&&i.headers?i.headers:{};return a.headers={...o,...r.headers},{url:L(n),options:a}},updateCollection:async(t,r,i,n,a={})=>{let s;O("updateCollection","address",t),O("updateCollection","iMXSignature",r),O("updateCollection","iMXTimestamp",i),O("updateCollection","updateCollectionRequest",n);let o="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),f=new URL(o,P);e&&(s=e.baseOptions);let d={method:"PATCH",...s,...a},c={};null!=r&&(c["IMX-Signature"]=String(r)),null!=i&&(c["IMX-Timestamp"]=String(i)),c["Content-Type"]="application/json",j(f,{});let u=s&&s.headers?s.headers:{};return d.headers={...c,...u,...a.headers},d.data=B(n,d,e),{url:L(f),options:d}}}},V=function(e){let t=W(e);return{async createCollection(r,i,n,a,s){let o=await t.createCollection(r,i,n,a,s);return D(o,R.default,k,e)},async getCollection(r,i){let n=await t.getCollection(r,i);return D(n,R.default,k,e)},async listCollectionFilters(r,i,n,a){let s=await t.listCollectionFilters(r,i,n,a);return D(s,R.default,k,e)},async listCollections(r,i,n,a,s,o,f,d){let c=await t.listCollections(r,i,n,a,s,o,f,d);return D(c,R.default,k,e)},async summarizeCollections(r,i){let n=await t.summarizeCollections(r,i);return D(n,R.default,k,e)},async updateCollection(r,i,n,a,s){let o=await t.updateCollection(r,i,n,a,s);return D(o,R.default,k,e)}}},G=class extends T{createCollection(e,t){return V(this.configuration).createCollection(e.iMXSignature,e.iMXTimestamp,e.createCollectionRequest,e.xImmutableApiKey,t).then(e=>e(this.axios,this.basePath))}getCollection(e,t){return V(this.configuration).getCollection(e.address,t).then(e=>e(this.axios,this.basePath))}listCollectionFilters(e,t){return V(this.configuration).listCollectionFilters(e.address,e.pageSize,e.nextPageToken,t).then(e=>e(this.axios,this.basePath))}listCollections(e={},t){return V(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 V(this.configuration).summarizeCollections(e.user,t).then(e=>e(this.axios,this.basePath))}updateCollection(e,t){return V(this.configuration).updateCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.updateCollectionRequest,t).then(e=>e(this.axios,this.basePath))}},J=function(e){return{getDeposit:async(t,r={})=>{let i;O("getDeposit","id",t);let n="/v1/deposits/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},getSignableDeposit:async(t,r={})=>{let i;O("getSignableDeposit","getSignableDepositRequest",t);let n=new URL("/v1/signable-deposit-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},listDeposits:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g={})=>{let y;let v=new URL("/v1/deposits",P);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==i&&(_.order_by=i),void 0!==n&&(_.direction=n),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.min_timestamp=o),void 0!==f&&(_.max_timestamp=f),void 0!==d&&(_.token_type=d),void 0!==c&&(_.token_id=c),void 0!==u&&(_.asset_id=u),void 0!==l&&(_.token_address=l),void 0!==h&&(_.token_name=h),void 0!==p&&(_.min_quantity=p),void 0!==b&&(_.max_quantity=b),void 0!==m&&(_.metadata=m),j(v,_);let M=y&&y.headers?y.headers:{};return w.headers={...M,...g.headers},{url:L(v),options:w}}}},Z=function(e){let t=J(e);return{async getDeposit(r,i){let n=await t.getDeposit(r,i);return D(n,R.default,k,e)},async getSignableDeposit(r,i){let n=await t.getSignableDeposit(r,i);return D(n,R.default,k,e)},async listDeposits(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y){let v=await t.listDeposits(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y);return D(v,R.default,k,e)}}};class X extends T{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))}}let $=function(e){return{encodeAsset:async(t,r,i={})=>{let n;O("encodeAsset","assetType",t),O("encodeAsset","encodeAssetRequest",r);let a="/v1/encode/{assetType}".replace("{assetType}",encodeURIComponent(String(t))),s=new URL(a,P);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",j(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=B(r,o,e),{url:L(s),options:o}}}},Y=function(e){let t=$(e);return{async encodeAsset(r,i,n){let a=await t.encodeAsset(r,i,n);return D(a,R.default,k,e)}}};class Q extends T{encodeAsset(e,t){return Y(this.configuration).encodeAsset(e.assetType,e.encodeAssetRequest,t).then(e=>e(this.axios,this.basePath))}}let ee=function(e){return{createExchange:async(t,r={})=>{let i;O("createExchange","createExchangeAPIRequest",t);let n=new URL("/v3/exchanges",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},createExchangeTransfer:async(t,r,i,n,a,s={})=>{let o;O("createExchangeTransfer","id",t),O("createExchangeTransfer","createTransferRequest",r);let f="/v2/exchanges/{id}/transfers".replace("{id}",encodeURIComponent(String(t))),d=new URL(f,P);e&&(o=e.baseOptions);let c={method:"POST",...o,...s},u={};null!=i&&(u["x-imx-eth-address"]=String(i)),null!=n&&(u["x-imx-eth-signature"]=String(n)),null!=a&&(u.Authorization=String(a)),u["Content-Type"]="application/json",j(d,{});let l=o&&o.headers?o.headers:{};return c.headers={...u,...l,...s.headers},c.data=B(r,c,e),{url:L(d),options:c}},getExchange:async(t,r={})=>{let i;O("getExchange","id",t);let n="/v3/exchanges/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},getExchangeSignableTransfer:async(t,r,i={})=>{let n;O("getExchangeSignableTransfer","id",t),O("getExchangeSignableTransfer","getSignableTransferRequest",r);let a="/v2/exchanges/{id}/signable-transfer-details".replace("{id}",encodeURIComponent(String(t))),s=new URL(a,P);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",j(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=B(r,o,e),{url:L(s),options:o}},getExchanges:async(t,r,i,n,a,s,o,f,d,c={})=>{let u;let l=new URL("/v3/exchanges",P);e&&(u=e.baseOptions);let h={method:"GET",...u,...c},p={};void 0!==t&&(p.page_size=t),void 0!==r&&(p.cursor=r),void 0!==i&&(p.order_by=i),void 0!==n&&(p.direction=n),void 0!==a&&(p.id=a),void 0!==s&&(p.wallet_address=s),void 0!==o&&(p.status=o),void 0!==f&&(p.provider=f),void 0!==d&&(p.transfer_id=d),j(l,p);let b=u&&u.headers?u.headers:{};return h.headers={...b,...c.headers},{url:L(l),options:h}}}},et=function(e){let t=ee(e);return{async createExchange(r,i){let n=await t.createExchange(r,i);return D(n,R.default,k,e)},async createExchangeTransfer(r,i,n,a,s,o){let f=await t.createExchangeTransfer(r,i,n,a,s,o);return D(f,R.default,k,e)},async getExchange(r,i){let n=await t.getExchange(r,i);return D(n,R.default,k,e)},async getExchangeSignableTransfer(r,i,n){let a=await t.getExchangeSignableTransfer(r,i,n);return D(a,R.default,k,e)},async getExchanges(r,i,n,a,s,o,f,d,c,u){let l=await t.getExchanges(r,i,n,a,s,o,f,d,c,u);return D(l,R.default,k,e)}}};class er extends T{createExchange(e,t){return et(this.configuration).createExchange(e.createExchangeAPIRequest,t).then(e=>e(this.axios,this.basePath))}createExchangeTransfer(e,t){return et(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 et(this.configuration).getExchange(e.id,t).then(e=>e(this.axios,this.basePath))}getExchangeSignableTransfer(e,t){return et(this.configuration).getExchangeSignableTransfer(e.id,e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getExchanges(e={},t){return et(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))}}let ei=function(e){return{addMetadataSchemaToCollection:async(t,r,i,n,a={})=>{let s;O("addMetadataSchemaToCollection","address",t),O("addMetadataSchemaToCollection","iMXSignature",r),O("addMetadataSchemaToCollection","iMXTimestamp",i),O("addMetadataSchemaToCollection","addMetadataSchemaToCollectionRequest",n);let o="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),f=new URL(o,P);e&&(s=e.baseOptions);let d={method:"POST",...s,...a},c={};null!=r&&(c["IMX-Signature"]=String(r)),null!=i&&(c["IMX-Timestamp"]=String(i)),c["Content-Type"]="application/json",j(f,{});let u=s&&s.headers?s.headers:{};return d.headers={...c,...u,...a.headers},d.data=B(n,d,e),{url:L(f),options:d}},getMetadataSchema:async(t,r={})=>{let i;O("getMetadataSchema","address",t);let n="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},updateMetadataSchemaByName:async(t,r,i,n,a,s={})=>{let o;O("updateMetadataSchemaByName","address",t),O("updateMetadataSchemaByName","name",r),O("updateMetadataSchemaByName","iMXSignature",i),O("updateMetadataSchemaByName","iMXTimestamp",n),O("updateMetadataSchemaByName","metadataSchemaRequest",a);let f="/v1/collections/{address}/metadata-schema/{name}".replace("{address}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),d=new URL(f,P);e&&(o=e.baseOptions);let c={method:"PATCH",...o,...s},u={};null!=i&&(u["IMX-Signature"]=String(i)),null!=n&&(u["IMX-Timestamp"]=String(n)),u["Content-Type"]="application/json",j(d,{});let l=o&&o.headers?o.headers:{};return c.headers={...u,...l,...s.headers},c.data=B(a,c,e),{url:L(d),options:c}}}},en=function(e){let t=ei(e);return{async addMetadataSchemaToCollection(r,i,n,a,s){let o=await t.addMetadataSchemaToCollection(r,i,n,a,s);return D(o,R.default,k,e)},async getMetadataSchema(r,i){let n=await t.getMetadataSchema(r,i);return D(n,R.default,k,e)},async updateMetadataSchemaByName(r,i,n,a,s,o){let f=await t.updateMetadataSchemaByName(r,i,n,a,s,o);return D(f,R.default,k,e)}}},ea=class extends T{addMetadataSchemaToCollection(e,t){return en(this.configuration).addMetadataSchemaToCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.addMetadataSchemaToCollectionRequest,t).then(e=>e(this.axios,this.basePath))}getMetadataSchema(e,t){return en(this.configuration).getMetadataSchema(e.address,t).then(e=>e(this.axios,this.basePath))}updateMetadataSchemaByName(e,t){return en(this.configuration).updateMetadataSchemaByName(e.address,e.name,e.iMXSignature,e.iMXTimestamp,e.metadataSchemaRequest,t).then(e=>e(this.axios,this.basePath))}},es=function(e){return{getAListOfMetadataRefreshes:async(t,r,i,n,a,s,o={})=>{let f;O("getAListOfMetadataRefreshes","xImxEthSignature",t),O("getAListOfMetadataRefreshes","xImxEthTimestamp",r),O("getAListOfMetadataRefreshes","xImxEthAddress",i);let d=new URL("/v1/metadata-refreshes",P);e&&(f=e.baseOptions);let c={method:"GET",...f,...o},u={},l={};void 0!==n&&(l.page_size=n),void 0!==a&&(l.cursor=a),void 0!==s&&(l.collection_address=s),null!=t&&(u["x-imx-eth-signature"]=String(t)),null!=r&&(u["x-imx-eth-timestamp"]=String(r)),null!=i&&(u["x-imx-eth-address"]=String(i)),j(d,l);let h=f&&f.headers?f.headers:{};return c.headers={...u,...h,...o.headers},{url:L(d),options:c}},getMetadataRefreshErrors:async(t,r,i,n,a,s,o={})=>{let f;O("getMetadataRefreshErrors","refreshId",t),O("getMetadataRefreshErrors","xImxEthSignature",r),O("getMetadataRefreshErrors","xImxEthTimestamp",i),O("getMetadataRefreshErrors","xImxEthAddress",n);let d="/v1/metadata-refreshes/{refresh_id}/errors".replace("{refresh_id}",encodeURIComponent(String(t))),c=new URL(d,P);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={},h={};void 0!==a&&(h.page_size=a),void 0!==s&&(h.cursor=s),null!=r&&(l["x-imx-eth-signature"]=String(r)),null!=i&&(l["x-imx-eth-timestamp"]=String(i)),null!=n&&(l["x-imx-eth-address"]=String(n)),j(c,h);let p=f&&f.headers?f.headers:{};return u.headers={...l,...p,...o.headers},{url:L(c),options:u}},getMetadataRefreshResults:async(t,r,i,n,a={})=>{let s;O("getMetadataRefreshResults","refreshId",t),O("getMetadataRefreshResults","xImxEthSignature",r),O("getMetadataRefreshResults","xImxEthTimestamp",i),O("getMetadataRefreshResults","xImxEthAddress",n);let o="/v1/metadata-refreshes/{refresh_id}".replace("{refresh_id}",encodeURIComponent(String(t))),f=new URL(o,P);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};null!=r&&(c["x-imx-eth-signature"]=String(r)),null!=i&&(c["x-imx-eth-timestamp"]=String(i)),null!=n&&(c["x-imx-eth-address"]=String(n)),j(f,{});let u=s&&s.headers?s.headers:{};return d.headers={...c,...u,...a.headers},{url:L(f),options:d}},requestAMetadataRefresh:async(t,r,i,n,a={})=>{let s;O("requestAMetadataRefresh","xImxEthSignature",t),O("requestAMetadataRefresh","xImxEthTimestamp",r),O("requestAMetadataRefresh","xImxEthAddress",i),O("requestAMetadataRefresh","createMetadataRefreshRequest",n);let o=new URL("/v1/metadata-refreshes",P);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=t&&(d["x-imx-eth-signature"]=String(t)),null!=r&&(d["x-imx-eth-timestamp"]=String(r)),null!=i&&(d["x-imx-eth-address"]=String(i)),d["Content-Type"]="application/json",j(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=B(n,f,e),{url:L(o),options:f}}}},eo=function(e){let t=es(e);return{async getAListOfMetadataRefreshes(r,i,n,a,s,o,f){let d=await t.getAListOfMetadataRefreshes(r,i,n,a,s,o,f);return D(d,R.default,k,e)},async getMetadataRefreshErrors(r,i,n,a,s,o,f){let d=await t.getMetadataRefreshErrors(r,i,n,a,s,o,f);return D(d,R.default,k,e)},async getMetadataRefreshResults(r,i,n,a,s){let o=await t.getMetadataRefreshResults(r,i,n,a,s);return D(o,R.default,k,e)},async requestAMetadataRefresh(r,i,n,a,s){let o=await t.requestAMetadataRefresh(r,i,n,a,s);return D(o,R.default,k,e)}}};class ef extends T{getAListOfMetadataRefreshes(e,t){return eo(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 eo(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 eo(this.configuration).getMetadataRefreshResults(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,t).then(e=>e(this.axios,this.basePath))}requestAMetadataRefresh(e,t){return eo(this.configuration).requestAMetadataRefresh(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.createMetadataRefreshRequest,t).then(e=>e(this.axios,this.basePath))}}let ed=function(e){return{getMint:async(t,r={})=>{let i;O("getMint","id",t);let n="/v1/mints/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},getMintableTokenDetailsByClientTokenId:async(t,r,i={})=>{let n;O("getMintableTokenDetailsByClientTokenId","tokenAddress",t),O("getMintableTokenDetailsByClientTokenId","tokenId",r);let a="/v1/mintable-token/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),s=new URL(a,P);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};j(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:L(s),options:o}},listMints:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m={})=>{let g;let y=new URL("/v1/mints",P);e&&(g=e.baseOptions);let v={method:"GET",...g,...m},w={};void 0!==t&&(w.page_size=t),void 0!==r&&(w.cursor=r),void 0!==i&&(w.order_by=i),void 0!==n&&(w.direction=n),void 0!==a&&(w.user=a),void 0!==s&&(w.status=s),void 0!==o&&(w.min_timestamp=o),void 0!==f&&(w.max_timestamp=f),void 0!==d&&(w.token_type=d),void 0!==c&&(w.token_id=c),void 0!==u&&(w.token_name=u),void 0!==l&&(w.token_address=l),void 0!==h&&(w.min_quantity=h),void 0!==p&&(w.max_quantity=p),void 0!==b&&(w.metadata=b),j(y,w);let _=g&&g.headers?g.headers:{};return v.headers={..._,...m.headers},{url:L(y),options:v}},mintTokens:async(t,r={})=>{let i;O("mintTokens","mintTokensRequestV2",t);let n=new URL("/v2/mints",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}}}},ec=function(e){let t=ed(e);return{async getMint(r,i){let n=await t.getMint(r,i);return D(n,R.default,k,e)},async getMintableTokenDetailsByClientTokenId(r,i,n){let a=await t.getMintableTokenDetailsByClientTokenId(r,i,n);return D(a,R.default,k,e)},async listMints(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g){let y=await t.listMints(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g);return D(y,R.default,k,e)},async mintTokens(r,i){let n=await t.mintTokens(r,i);return D(n,R.default,k,e)}}};class eu extends T{getMint(e,t){return ec(this.configuration).getMint(e.id,t).then(e=>e(this.axios,this.basePath))}getMintableTokenDetailsByClientTokenId(e,t){return ec(this.configuration).getMintableTokenDetailsByClientTokenId(e.tokenAddress,e.tokenId,t).then(e=>e(this.axios,this.basePath))}listMints(e={},t){return ec(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 ec(this.configuration).mintTokens(e.mintTokensRequestV2,t).then(e=>e(this.axios,this.basePath))}}let el=function(e){return{createNftPrimary:async(t,r={})=>{let i;O("createNftPrimary","createAPIRequest",t);let n=new URL("/v2/nft/primary",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getCurrenciesNFTCheckoutPrimary:async(t,r,i={})=>{let n;let a=new URL("/v2/nft/primary/currencies",P);e&&(n=e.baseOptions);let s={method:"GET",...n,...i},o={};void 0!==t&&(o.provider=t),void 0!==r&&(o.include_limits=r),j(a,o);let f=n&&n.headers?n.headers:{};return s.headers={...f,...i.headers},{url:L(a),options:s}},getNftPrimaryTransaction:async(t,r={})=>{let i;O("getNftPrimaryTransaction","transactionId",t);let n="/v2/nft/primary/{transaction_id}".replace("{transaction_id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},getNftPrimaryTransactions:async(t,r,i,n,a,s,o,f,d,c,u,l={})=>{let h;let p=new URL("/v2/nft/primary",P);e&&(h=e.baseOptions);let b={method:"GET",...h,...l},m={};void 0!==t&&(m.page_size=t),void 0!==r&&(m.cursor=r),void 0!==i&&(m.order_by=i),void 0!==n&&(m.direction=n),void 0!==a&&(m.transaction_id=a),void 0!==s&&(m.contract_address=s),void 0!==o&&(m.seller_wallet_address=o),void 0!==f&&(m.user_wallet_address=f),void 0!==d&&(m.status=d),void 0!==c&&(m.provider=c),void 0!==u&&(m.mint_id=u),j(p,m);let g=h&&h.headers?h.headers:{};return b.headers={...g,...l.headers},{url:L(p),options:b}},registerNftPrimarySalesContract:async(t,r={})=>{let i;O("registerNftPrimarySalesContract","createAPIRequest",t);let n=new URL("/v2/nft/primary/register",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}}}},eh=function(e){let t=el(e);return{async createNftPrimary(r,i){let n=await t.createNftPrimary(r,i);return D(n,R.default,k,e)},async getCurrenciesNFTCheckoutPrimary(r,i,n){let a=await t.getCurrenciesNFTCheckoutPrimary(r,i,n);return D(a,R.default,k,e)},async getNftPrimaryTransaction(r,i){let n=await t.getNftPrimaryTransaction(r,i);return D(n,R.default,k,e)},async getNftPrimaryTransactions(r,i,n,a,s,o,f,d,c,u,l,h){let p=await t.getNftPrimaryTransactions(r,i,n,a,s,o,f,d,c,u,l,h);return D(p,R.default,k,e)},async registerNftPrimarySalesContract(r,i){let n=await t.registerNftPrimarySalesContract(r,i);return D(n,R.default,k,e)}}};class ep extends T{createNftPrimary(e,t){return eh(this.configuration).createNftPrimary(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}getCurrenciesNFTCheckoutPrimary(e={},t){return eh(this.configuration).getCurrenciesNFTCheckoutPrimary(e.provider,e.includeLimits,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransaction(e,t){return eh(this.configuration).getNftPrimaryTransaction(e.transactionId,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransactions(e={},t){return eh(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 eh(this.configuration).registerNftPrimarySalesContract(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}}let eb=function(e){return{cancelOrderV3:async(t,r,i,n,a,s={})=>{let o;O("cancelOrderV3","id",t),O("cancelOrderV3","cancelOrderRequest",r);let f="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),d=new URL(f,P);e&&(o=e.baseOptions);let c={method:"DELETE",...o,...s},u={};null!=i&&(u["x-imx-eth-address"]=String(i)),null!=n&&(u["x-imx-eth-signature"]=String(n)),null!=a&&(u.Authorization=String(a)),u["Content-Type"]="application/json",j(d,{});let l=o&&o.headers?o.headers:{};return c.headers={...u,...l,...s.headers},c.data=B(r,c,e),{url:L(d),options:c}},createOrderV3:async(t,r,i,n,a={})=>{let s;O("createOrderV3","createOrderRequest",t);let o=new URL("/v3/orders",P);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",j(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=B(t,f,e),{url:L(o),options:f}},getOrderV3:async(t,r,i,n,a={})=>{let s;O("getOrderV3","id",t);let o="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),f=new URL(o,P);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.include_fees=r),void 0!==i&&(c.auxiliary_fee_percentages=i),void 0!==n&&(c.auxiliary_fee_recipients=n),j(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:L(f),options:d}},getSignableCancelOrderV3:async(t,r={})=>{let i;O("getSignableCancelOrderV3","getSignableCancelOrderRequest",t);let n=new URL("/v3/signable-cancel-order-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getSignableOrder:async(t,r={})=>{let i;O("getSignableOrder","getSignableOrderRequestV3",t);let n=new URL("/v3/signable-order-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},listOrdersV3:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T={})=>{let C;let O=new URL("/v3/orders",P);e&&(C=e.baseOptions);let N={method:"GET",...C,...T},B={};void 0!==t&&(B.page_size=t),void 0!==r&&(B.cursor=r),void 0!==i&&(B.order_by=i),void 0!==n&&(B.direction=n),void 0!==a&&(B.user=a),void 0!==s&&(B.status=s),void 0!==o&&(B.min_timestamp=o),void 0!==f&&(B.max_timestamp=f),void 0!==d&&(B.updated_min_timestamp=d),void 0!==c&&(B.updated_max_timestamp=c),void 0!==u&&(B.buy_token_type=u),void 0!==l&&(B.buy_token_id=l),void 0!==h&&(B.buy_asset_id=h),void 0!==p&&(B.buy_token_address=p),void 0!==b&&(B.buy_token_name=b),void 0!==m&&(B.buy_min_quantity=m),void 0!==g&&(B.buy_max_quantity=g),void 0!==y&&(B.buy_metadata=y),void 0!==v&&(B.sell_token_type=v),void 0!==w&&(B.sell_token_id=w),void 0!==_&&(B.sell_asset_id=_),void 0!==M&&(B.sell_token_address=M),void 0!==E&&(B.sell_token_name=E),void 0!==A&&(B.sell_min_quantity=A),void 0!==S&&(B.sell_max_quantity=S),void 0!==x&&(B.sell_metadata=x),void 0!==I&&(B.auxiliary_fee_percentages=I),void 0!==R&&(B.auxiliary_fee_recipients=R),void 0!==k&&(B.include_fees=k),j(O,B);let D=C&&C.headers?C.headers:{};return N.headers={...D,...T.headers},{url:L(O),options:N}}}},em=function(e){let t=eb(e);return{async cancelOrderV3(r,i,n,a,s,o){let f=await t.cancelOrderV3(r,i,n,a,s,o);return D(f,R.default,k,e)},async createOrderV3(r,i,n,a,s){let o=await t.createOrderV3(r,i,n,a,s);return D(o,R.default,k,e)},async getOrderV3(r,i,n,a,s){let o=await t.getOrderV3(r,i,n,a,s);return D(o,R.default,k,e)},async getSignableCancelOrderV3(r,i){let n=await t.getSignableCancelOrderV3(r,i);return D(n,R.default,k,e)},async getSignableOrder(r,i){let n=await t.getSignableOrder(r,i);return D(n,R.default,k,e)},async listOrdersV3(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,T,C,P,O){let N=await t.listOrdersV3(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,T,C,P,O);return D(N,R.default,k,e)}}},eg=class extends T{cancelOrderV3(e,t){return em(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 em(this.configuration).createOrderV3(e.createOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getOrderV3(e,t){return em(this.configuration).getOrderV3(e.id,e.includeFees,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}getSignableCancelOrderV3(e,t){return em(this.configuration).getSignableCancelOrderV3(e.getSignableCancelOrderRequest,t).then(e=>e(this.axios,this.basePath))}getSignableOrder(e,t){return em(this.configuration).getSignableOrder(e.getSignableOrderRequestV3,t).then(e=>e(this.axios,this.basePath))}listOrdersV3(e={},t){return em(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))}},ey=function(e){return{acceptPrimarySale:async(t,r={})=>{let i;O("acceptPrimarySale","id",t);let n="/v1/primary_sales/{id}/accept".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await N(o,"x-imx-eth-address",e),await N(o,"x-imx-eth-signature",e),j(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:L(a),options:s}},createPrimarySale:async(t,r={})=>{let i;let n=new URL("/v1/primary_sales",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await N(s,"x-imx-eth-address",e),await N(s,"x-imx-eth-signature",e),s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getPrimarySale:async(t,r={})=>{let i;O("getPrimarySale","id",t);let n="/v1/primary_sales/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},rejectPrimarySale:async(t,r={})=>{let i;O("rejectPrimarySale","id",t);let n="/v1/primary_sales/{id}/reject".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await N(o,"x-imx-eth-address",e),await N(o,"x-imx-eth-signature",e),j(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:L(a),options:s}},signableAcceptPrimarySale:async(t,r={})=>{let i;O("signableAcceptPrimarySale","id",t);let n="/v1/primary_sales/{id}/signable-accept-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"POST",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},signableCreatePrimarySale:async(t,r={})=>{let i;let n=new URL("/v1/primary_sales/signable-primary-sale-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},signableRejectPrimarySale:async(t,r={})=>{let i;O("signableRejectPrimarySale","id",t);let n="/v1/primary_sales/{id}/signable-reject-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"POST",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}}}},ev=function(e){let t=ey(e);return{async acceptPrimarySale(r,i){let n=await t.acceptPrimarySale(r,i);return D(n,R.default,k,e)},async createPrimarySale(r,i){let n=await t.createPrimarySale(r,i);return D(n,R.default,k,e)},async getPrimarySale(r,i){let n=await t.getPrimarySale(r,i);return D(n,R.default,k,e)},async rejectPrimarySale(r,i){let n=await t.rejectPrimarySale(r,i);return D(n,R.default,k,e)},async signableAcceptPrimarySale(r,i){let n=await t.signableAcceptPrimarySale(r,i);return D(n,R.default,k,e)},async signableCreatePrimarySale(r,i){let n=await t.signableCreatePrimarySale(r,i);return D(n,R.default,k,e)},async signableRejectPrimarySale(r,i){let n=await t.signableRejectPrimarySale(r,i);return D(n,R.default,k,e)}}};class ew extends T{acceptPrimarySale(e,t){return ev(this.configuration).acceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}createPrimarySale(e={},t){return ev(this.configuration).createPrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}getPrimarySale(e,t){return ev(this.configuration).getPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}rejectPrimarySale(e,t){return ev(this.configuration).rejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableAcceptPrimarySale(e,t){return ev(this.configuration).signableAcceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableCreatePrimarySale(e={},t){return ev(this.configuration).signableCreatePrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}signableRejectPrimarySale(e,t){return ev(this.configuration).signableRejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}}let e_=function(e){return{getProject:async(t,r,i,n={})=>{let a;O("getProject","id",t),O("getProject","iMXSignature",r),O("getProject","iMXTimestamp",i);let s="/v1/projects/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(s,P);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};null!=r&&(d["IMX-Signature"]=String(r)),null!=i&&(d["IMX-Timestamp"]=String(i)),j(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},{url:L(o),options:f}}}},eM=function(e){let t=e_(e);return{async getProject(r,i,n,a){let s=await t.getProject(r,i,n,a);return D(s,R.default,k,e)}}};class eE extends T{getProject(e,t){return eM(this.configuration).getProject(e.id,e.iMXSignature,e.iMXTimestamp,t).then(e=>e(this.axios,this.basePath))}}let eA=function(e){return{getToken:async(t,r={})=>{let i;O("getToken","address",t);let n="/v1/tokens/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},listTokens:async(t,r,i,n,a,s,o={})=>{let f;let d=new URL("/v1/tokens",P);e&&(f=e.baseOptions);let c={method:"GET",...f,...o},u={};void 0!==t&&(u.page_size=t),void 0!==r&&(u.cursor=r),void 0!==i&&(u.order_by=i),void 0!==n&&(u.direction=n),void 0!==a&&(u.address=a),void 0!==s&&(u.symbols=s),j(d,u);let l=f&&f.headers?f.headers:{};return c.headers={...l,...o.headers},{url:L(d),options:c}}}},eS=function(e){let t=eA(e);return{async getToken(r,i){let n=await t.getToken(r,i);return D(n,R.default,k,e)},async listTokens(r,i,n,a,s,o,f){let d=await t.listTokens(r,i,n,a,s,o,f);return D(d,R.default,k,e)}}},ex=class extends T{getToken(e,t){return eS(this.configuration).getToken(e.address,t).then(e=>e(this.axios,this.basePath))}listTokens(e={},t){return eS(this.configuration).listTokens(e.pageSize,e.cursor,e.orderBy,e.direction,e.address,e.symbols,t).then(e=>e(this.axios,this.basePath))}},eI=function(e){return{createTradeV3:async(t,r,i,n,a={})=>{let s;O("createTradeV3","createTradeRequest",t);let o=new URL("/v3/trades",P);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",j(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=B(t,f,e),{url:L(o),options:f}},getSignableTrade:async(t,r={})=>{let i;O("getSignableTrade","getSignableTradeRequest",t);let n=new URL("/v3/signable-trade-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getTradeV3:async(t,r={})=>{let i;O("getTradeV3","id",t);let n="/v3/trades/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},listTradesV3:async(t,r,i,n,a,s,o,f,d,c,u,l={})=>{let h;let p=new URL("/v3/trades",P);e&&(h=e.baseOptions);let b={method:"GET",...h,...l},m={};void 0!==t&&(m.party_a_token_type=t),void 0!==r&&(m.party_a_token_address=r),void 0!==i&&(m.party_b_token_type=i),void 0!==n&&(m.party_b_token_address=n),void 0!==a&&(m.party_b_token_id=a),void 0!==s&&(m.page_size=s),void 0!==o&&(m.cursor=o),void 0!==f&&(m.order_by=f),void 0!==d&&(m.direction=d),void 0!==c&&(m.min_timestamp=c),void 0!==u&&(m.max_timestamp=u),j(p,m);let g=h&&h.headers?h.headers:{};return b.headers={...g,...l.headers},{url:L(p),options:b}}}},eR=function(e){let t=eI(e);return{async createTradeV3(r,i,n,a,s){let o=await t.createTradeV3(r,i,n,a,s);return D(o,R.default,k,e)},async getSignableTrade(r,i){let n=await t.getSignableTrade(r,i);return D(n,R.default,k,e)},async getTradeV3(r,i){let n=await t.getTradeV3(r,i);return D(n,R.default,k,e)},async listTradesV3(r,i,n,a,s,o,f,d,c,u,l,h){let p=await t.listTradesV3(r,i,n,a,s,o,f,d,c,u,l,h);return D(p,R.default,k,e)}}};class ek extends T{createTradeV3(e,t){return eR(this.configuration).createTradeV3(e.createTradeRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTrade(e,t){return eR(this.configuration).getSignableTrade(e.getSignableTradeRequest,t).then(e=>e(this.axios,this.basePath))}getTradeV3(e,t){return eR(this.configuration).getTradeV3(e.id,t).then(e=>e(this.axios,this.basePath))}listTradesV3(e={},t){return eR(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))}}let eT=function(e){return{createTransfer:async(t,r,i,n,a={})=>{let s;O("createTransfer","createTransferRequestV2",t);let o=new URL("/v2/transfers",P);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",j(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=B(t,f,e),{url:L(o),options:f}},createTransferV1:async(t,r,i,n,a={})=>{let s;O("createTransferV1","createTransferRequest",t);let o=new URL("/v1/transfers",P);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",j(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=B(t,f,e),{url:L(o),options:f}},getSignableTransfer:async(t,r={})=>{let i;O("getSignableTransfer","getSignableTransferRequestV2",t);let n=new URL("/v2/signable-transfer-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getSignableTransferV1:async(t,r={})=>{let i;O("getSignableTransferV1","getSignableTransferRequest",t);let n=new URL("/v1/signable-transfer-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getTransfer:async(t,r={})=>{let i;O("getTransfer","id",t);let n="/v1/transfers/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},listTransfers:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y={})=>{let v;let w=new URL("/v1/transfers",P);e&&(v=e.baseOptions);let _={method:"GET",...v,...y},M={};void 0!==t&&(M.page_size=t),void 0!==r&&(M.cursor=r),void 0!==i&&(M.order_by=i),void 0!==n&&(M.direction=n),void 0!==a&&(M.user=a),void 0!==s&&(M.receiver=s),void 0!==o&&(M.status=o),void 0!==f&&(M.min_timestamp=f),void 0!==d&&(M.max_timestamp=d),void 0!==c&&(M.token_type=c),void 0!==u&&(M.token_id=u),void 0!==l&&(M.asset_id=l),void 0!==h&&(M.token_address=h),void 0!==p&&(M.token_name=p),void 0!==b&&(M.min_quantity=b),void 0!==m&&(M.max_quantity=m),void 0!==g&&(M.metadata=g),j(w,M);let E=v&&v.headers?v.headers:{};return _.headers={...E,...y.headers},{url:L(w),options:_}}}},eC=function(e){let t=eT(e);return{async createTransfer(r,i,n,a,s){let o=await t.createTransfer(r,i,n,a,s);return D(o,R.default,k,e)},async createTransferV1(r,i,n,a,s){let o=await t.createTransferV1(r,i,n,a,s);return D(o,R.default,k,e)},async getSignableTransfer(r,i){let n=await t.getSignableTransfer(r,i);return D(n,R.default,k,e)},async getSignableTransferV1(r,i){let n=await t.getSignableTransferV1(r,i);return D(n,R.default,k,e)},async getTransfer(r,i){let n=await t.getTransfer(r,i);return D(n,R.default,k,e)},async listTransfers(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v){let w=await t.listTransfers(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v);return D(w,R.default,k,e)}}};class eP extends T{createTransfer(e,t){return eC(this.configuration).createTransfer(e.createTransferRequestV2,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createTransferV1(e,t){return eC(this.configuration).createTransferV1(e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTransfer(e,t){return eC(this.configuration).getSignableTransfer(e.getSignableTransferRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableTransferV1(e,t){return eC(this.configuration).getSignableTransferV1(e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getTransfer(e,t){return eC(this.configuration).getTransfer(e.id,t).then(e=>e(this.axios,this.basePath))}listTransfers(e={},t){return eC(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))}}let eO=function(e){return{getSignableRegistration:async(t,r={})=>{let i;O("getSignableRegistration","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getSignableRegistrationOffchain:async(t,r={})=>{let i;O("getSignableRegistrationOffchain","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration-offchain",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getUsers:async(t,r={})=>{let i;O("getUsers","user",t);let n="/v1/users/{user}".replace("{user}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},registerPassportUser:async(t,r,i={})=>{let n;O("registerPassportUser","authorization",t),O("registerPassportUser","registerPassportUserRequest",r);let a=new URL("/v1/passport/users",P);e&&(n=e.baseOptions);let s={method:"POST",...n,...i},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",j(a,{});let f=n&&n.headers?n.headers:{};return s.headers={...o,...f,...i.headers},s.data=B(r,s,e),{url:L(a),options:s}},registerPassportUserV2:async(t,r,i={})=>{let n;O("registerPassportUserV2","authorization",t),O("registerPassportUserV2","registerPassportUserRequest",r);let a=new URL("/v2/passport/users",P);e&&(n=e.baseOptions);let s={method:"POST",...n,...i},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",j(a,{});let f=n&&n.headers?n.headers:{};return s.headers={...o,...f,...i.headers},s.data=B(r,s,e),{url:L(a),options:s}},registerUser:async(t,r={})=>{let i;O("registerUser","registerUserRequest",t);let n=new URL("/v1/users",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}}}},eN=function(e){let t=eO(e);return{async getSignableRegistration(r,i){let n=await t.getSignableRegistration(r,i);return D(n,R.default,k,e)},async getSignableRegistrationOffchain(r,i){let n=await t.getSignableRegistrationOffchain(r,i);return D(n,R.default,k,e)},async getUsers(r,i){let n=await t.getUsers(r,i);return D(n,R.default,k,e)},async registerPassportUser(r,i,n){let a=await t.registerPassportUser(r,i,n);return D(a,R.default,k,e)},async registerPassportUserV2(r,i,n){let a=await t.registerPassportUserV2(r,i,n);return D(a,R.default,k,e)},async registerUser(r,i){let n=await t.registerUser(r,i);return D(n,R.default,k,e)}}};class ej extends T{getSignableRegistration(e,t){return eN(this.configuration).getSignableRegistration(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getSignableRegistrationOffchain(e,t){return eN(this.configuration).getSignableRegistrationOffchain(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getUsers(e,t){return eN(this.configuration).getUsers(e.user,t).then(e=>e(this.axios,this.basePath))}registerPassportUser(e,t){return eN(this.configuration).registerPassportUser(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerPassportUserV2(e,t){return eN(this.configuration).registerPassportUserV2(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerUser(e,t){return eN(this.configuration).registerUser(e.registerUserRequest,t).then(e=>e(this.axios,this.basePath))}}let eB=function(e){return{createWithdrawal:async(t,r,i,n={})=>{let a;O("createWithdrawal","xImxEthAddress",t),O("createWithdrawal","xImxEthSignature",r),O("createWithdrawal","createWithdrawalRequest",i);let s=new URL("/v1/withdrawals",P);e&&(a=e.baseOptions);let o={method:"POST",...a,...n},f={};null!=t&&(f["x-imx-eth-address"]=String(t)),null!=r&&(f["x-imx-eth-signature"]=String(r)),f["Content-Type"]="application/json",j(s,{});let d=a&&a.headers?a.headers:{};return o.headers={...f,...d,...n.headers},o.data=B(i,o,e),{url:L(s),options:o}},createWithdrawalV2:async(t,r,i,n={})=>{let a;O("createWithdrawalV2","xImxEthAddress",t),O("createWithdrawalV2","xImxEthSignature",r),O("createWithdrawalV2","createWithdrawalRequestV2",i);let s=new URL("/v2/withdrawals",P);e&&(a=e.baseOptions);let o={method:"POST",...a,...n},f={};null!=t&&(f["x-imx-eth-address"]=String(t)),null!=r&&(f["x-imx-eth-signature"]=String(r)),f["Content-Type"]="application/json",j(s,{});let d=a&&a.headers?a.headers:{};return o.headers={...f,...d,...n.headers},o.data=B(i,o,e),{url:L(s),options:o}},getSignableWithdrawal:async(t,r={})=>{let i;O("getSignableWithdrawal","getSignableWithdrawalRequest",t);let n=new URL("/v1/signable-withdrawal-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getSignableWithdrawalV2:async(t,r={})=>{let i;O("getSignableWithdrawalV2","getSignableWithdrawalRequest",t);let n=new URL("/v2/signable-withdrawal-details",P);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",j(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=B(t,a,e),{url:L(n),options:a}},getWithdrawal:async(t,r={})=>{let i;O("getWithdrawal","id",t);let n="/v1/withdrawals/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,P);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};j(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:L(a),options:s}},listWithdrawals:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v={})=>{let w;let _=new URL("/v1/withdrawals",P);e&&(w=e.baseOptions);let M={method:"GET",...w,...v},E={};void 0!==t&&(E.withdrawn_to_wallet=t),void 0!==r&&(E.rollup_status=r),void 0!==i&&(E.page_size=i),void 0!==n&&(E.cursor=n),void 0!==a&&(E.order_by=a),void 0!==s&&(E.direction=s),void 0!==o&&(E.user=o),void 0!==f&&(E.status=f),void 0!==d&&(E.min_timestamp=d),void 0!==c&&(E.max_timestamp=c),void 0!==u&&(E.token_type=u),void 0!==l&&(E.token_id=l),void 0!==h&&(E.asset_id=h),void 0!==p&&(E.token_address=p),void 0!==b&&(E.token_name=b),void 0!==m&&(E.min_quantity=m),void 0!==g&&(E.max_quantity=g),void 0!==y&&(E.metadata=y),j(_,E);let A=w&&w.headers?w.headers:{};return M.headers={...A,...v.headers},{url:L(_),options:M}}}},eL=function(e){let t=eB(e);return{async createWithdrawal(r,i,n,a){let s=await t.createWithdrawal(r,i,n,a);return D(s,R.default,k,e)},async createWithdrawalV2(r,i,n,a){let s=await t.createWithdrawalV2(r,i,n,a);return D(s,R.default,k,e)},async getSignableWithdrawal(r,i){let n=await t.getSignableWithdrawal(r,i);return D(n,R.default,k,e)},async getSignableWithdrawalV2(r,i){let n=await t.getSignableWithdrawalV2(r,i);return D(n,R.default,k,e)},async getWithdrawal(r,i){let n=await t.getWithdrawal(r,i);return D(n,R.default,k,e)},async listWithdrawals(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w){let _=await t.listWithdrawals(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w);return D(_,R.default,k,e)}}};class eD extends T{createWithdrawal(e,t){return eL(this.configuration).createWithdrawal(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}createWithdrawalV2(e,t){return eL(this.configuration).createWithdrawalV2(e.xImxEthAddress,e.xImxEthSignature,e.createWithdrawalRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawal(e,t){return eL(this.configuration).getSignableWithdrawal(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getSignableWithdrawalV2(e,t){return eL(this.configuration).getSignableWithdrawalV2(e.getSignableWithdrawalRequest,t).then(e=>e(this.axios,this.basePath))}getWithdrawal(e,t){return eL(this.configuration).getWithdrawal(e.id,t).then(e=>e(this.axios,this.basePath))}listWithdrawals(e={},t){return eL(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))}}let eF=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())}};var eU=Object.freeze({__proto__:null,AcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},AcceptPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},AcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},AcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},AcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},AcceptPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},AcceptPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},AcceptPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},AcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},AssetsApi:q,AssetsApiAxiosParamCreator:F,AssetsApiFactory:function(e,t,r){let i=U(e);return{getAsset:(e,n,a,s)=>i.getAsset(e,n,a,s).then(e=>e(r,t)),listAssets:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v)=>i.listAssets(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v).then(e=>e(r,t))}},AssetsApiFp:U,BalancesApi:H,BalancesApiAxiosParamCreator:z,BalancesApiFactory:function(e,t,r){let i=K(e);return{getBalance:(e,n,a)=>i.getBalance(e,n,a).then(e=>e(r,t)),listBalances:(e,n,a,s,o,f)=>i.listBalances(e,n,a,s,o,f).then(e=>e(r,t))}},BalancesApiFp:K,CollectionsApi:G,CollectionsApiAxiosParamCreator:W,CollectionsApiFactory:function(e,t,r){let i=V(e);return{createCollection:(e,n,a,s,o)=>i.createCollection(e,n,a,s,o).then(e=>e(r,t)),getCollection:(e,n)=>i.getCollection(e,n).then(e=>e(r,t)),listCollectionFilters:(e,n,a,s)=>i.listCollectionFilters(e,n,a,s).then(e=>e(r,t)),listCollections:(e,n,a,s,o,f,d,c)=>i.listCollections(e,n,a,s,o,f,d,c).then(e=>e(r,t)),summarizeCollections:(e,n)=>i.summarizeCollections(e,n).then(e=>e(r,t)),updateCollection:(e,n,a,s,o)=>i.updateCollection(e,n,a,s,o).then(e=>e(r,t))}},CollectionsApiFp:V,Configuration:eF,CreateExchangeAndURLAPIRequestProviderEnum:{Moonpay:"moonpay",Layerswap:"layerswap"},CreateExchangeAndURLAPIRequestTypeEnum:{Onramp:"onramp",Offramp:"offramp"},CreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},CreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},CreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},CreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},CreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},CreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},CreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},CreateProjectGroupRequestChainTypeEnum:{Starkex:"starkex",Zkevm:"zkevm"},DepositsApi:X,DepositsApiAxiosParamCreator:J,DepositsApiFactory:function(e,t,r){let i=Z(e);return{getDeposit:(e,n)=>i.getDeposit(e,n).then(e=>e(r,t)),getSignableDeposit:(e,n)=>i.getSignableDeposit(e,n).then(e=>e(r,t)),listDeposits:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v)=>i.listDeposits(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v).then(e=>e(r,t))}},DepositsApiFp:Z,EncodeAssetRequestTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20",Erc721:"ERC721"},EncodingApi:Q,EncodingApiAxiosParamCreator:$,EncodingApiFactory:function(e,t,r){let i=Y(e);return{encodeAsset:(e,n,a)=>i.encodeAsset(e,n,a).then(e=>e(r,t))}},EncodingApiFp:Y,ExchangesApi:er,ExchangesApiAxiosParamCreator:ee,ExchangesApiFactory:function(e,t,r){let i=et(e);return{createExchange:(e,n)=>i.createExchange(e,n).then(e=>e(r,t)),createExchangeTransfer:(e,n,a,s,o,f)=>i.createExchangeTransfer(e,n,a,s,o,f).then(e=>e(r,t)),getExchange:(e,n)=>i.getExchange(e,n).then(e=>e(r,t)),getExchangeSignableTransfer:(e,n,a)=>i.getExchangeSignableTransfer(e,n,a).then(e=>e(r,t)),getExchanges:(e,n,a,s,o,f,d,c,u,l)=>i.getExchanges(e,n,a,s,o,f,d,c,u,l).then(e=>e(r,t))}},ExchangesApiFp:et,ExperimentalCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalCreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},ExperimentalCreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},ExperimentalCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalCreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},ExperimentalGetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalGetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalGetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalGetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalGetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalGetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},FeeTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20"},GetMetadataRefreshResponseStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},GetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},GetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},GetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},GetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},GetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},GetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},MetadataApi:ea,MetadataApiAxiosParamCreator:ei,MetadataApiFactory:function(e,t,r){let i=en(e);return{addMetadataSchemaToCollection:(e,n,a,s,o)=>i.addMetadataSchemaToCollection(e,n,a,s,o).then(e=>e(r,t)),getMetadataSchema:(e,n)=>i.getMetadataSchema(e,n).then(e=>e(r,t)),updateMetadataSchemaByName:(e,n,a,s,o,f)=>i.updateMetadataSchemaByName(e,n,a,s,o,f).then(e=>e(r,t))}},MetadataApiFp:en,MetadataRefreshExcludingSummaryStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},MetadataRefreshesApi:ef,MetadataRefreshesApiAxiosParamCreator:es,MetadataRefreshesApiFactory:function(e,t,r){let i=eo(e);return{getAListOfMetadataRefreshes:(e,n,a,s,o,f,d)=>i.getAListOfMetadataRefreshes(e,n,a,s,o,f,d).then(e=>e(r,t)),getMetadataRefreshErrors:(e,n,a,s,o,f,d)=>i.getMetadataRefreshErrors(e,n,a,s,o,f,d).then(e=>e(r,t)),getMetadataRefreshResults:(e,n,a,s,o)=>i.getMetadataRefreshResults(e,n,a,s,o).then(e=>e(r,t)),requestAMetadataRefresh:(e,n,a,s,o)=>i.requestAMetadataRefresh(e,n,a,s,o).then(e=>e(r,t))}},MetadataRefreshesApiFp:eo,MetadataSchemaRequestTypeEnum:{Enum:"enum",Text:"text",Boolean:"boolean",Continuous:"continuous",Discrete:"discrete"},MintsApi:eu,MintsApiAxiosParamCreator:ed,MintsApiFactory:function(e,t,r){let i=ec(e);return{getMint:(e,n)=>i.getMint(e,n).then(e=>e(r,t)),getMintableTokenDetailsByClientTokenId:(e,n,a)=>i.getMintableTokenDetailsByClientTokenId(e,n,a).then(e=>e(r,t)),listMints:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y)=>i.listMints(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y).then(e=>e(r,t)),mintTokens:(e,n)=>i.mintTokens(e,n).then(e=>e(r,t))}},MintsApiFp:ec,NftCheckoutPrimaryApi:ep,NftCheckoutPrimaryApiAxiosParamCreator:el,NftCheckoutPrimaryApiFactory:function(e,t,r){let i=eh(e);return{createNftPrimary:(e,n)=>i.createNftPrimary(e,n).then(e=>e(r,t)),getCurrenciesNFTCheckoutPrimary:(e,n,a)=>i.getCurrenciesNFTCheckoutPrimary(e,n,a).then(e=>e(r,t)),getNftPrimaryTransaction:(e,n)=>i.getNftPrimaryTransaction(e,n).then(e=>e(r,t)),getNftPrimaryTransactions:(e,n,a,s,o,f,d,c,u,l,h,p)=>i.getNftPrimaryTransactions(e,n,a,s,o,f,d,c,u,l,h,p).then(e=>e(r,t)),registerNftPrimarySalesContract:(e,n)=>i.registerNftPrimarySalesContract(e,n).then(e=>e(r,t))}},NftCheckoutPrimaryApiFp:eh,OrdersApi:eg,OrdersApiAxiosParamCreator:eb,OrdersApiFactory:function(e,t,r){let i=em(e);return{cancelOrderV3:(e,n,a,s,o,f)=>i.cancelOrderV3(e,n,a,s,o,f).then(e=>e(r,t)),createOrderV3:(e,n,a,s,o)=>i.createOrderV3(e,n,a,s,o).then(e=>e(r,t)),getOrderV3:(e,n,a,s,o)=>i.getOrderV3(e,n,a,s,o).then(e=>e(r,t)),getSignableCancelOrderV3:(e,n)=>i.getSignableCancelOrderV3(e,n).then(e=>e(r,t)),getSignableOrder:(e,n)=>i.getSignableOrder(e,n).then(e=>e(r,t)),listOrdersV3:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P)=>i.listOrdersV3(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P).then(e=>e(r,t))}},OrdersApiFp:em,PrimarySalesApi:ew,PrimarySalesApiAxiosParamCreator:ey,PrimarySalesApiFactory:function(e,t,r){let i=ev(e);return{acceptPrimarySale:(e,n)=>i.acceptPrimarySale(e,n).then(e=>e(r,t)),createPrimarySale:(e,n)=>i.createPrimarySale(e,n).then(e=>e(r,t)),getPrimarySale:(e,n)=>i.getPrimarySale(e,n).then(e=>e(r,t)),rejectPrimarySale:(e,n)=>i.rejectPrimarySale(e,n).then(e=>e(r,t)),signableAcceptPrimarySale:(e,n)=>i.signableAcceptPrimarySale(e,n).then(e=>e(r,t)),signableCreatePrimarySale:(e,n)=>i.signableCreatePrimarySale(e,n).then(e=>e(r,t)),signableRejectPrimarySale:(e,n)=>i.signableRejectPrimarySale(e,n).then(e=>e(r,t))}},PrimarySalesApiFp:ev,ProjectsApi:eE,ProjectsApiAxiosParamCreator:e_,ProjectsApiFactory:function(e,t,r){let i=eM(e);return{getProject:(e,n,a,s)=>i.getProject(e,n,a,s).then(e=>e(r,t))}},ProjectsApiFp:eM,RejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},RejectPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},RejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},RejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},RejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},RejectPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},RejectPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},RejectPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},RejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableAcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableAcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableAcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableAcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableAcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableCreatePrimarySaleOKBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},SignableRejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableRejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableRejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableRejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableRejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},TokensApi:ex,TokensApiAxiosParamCreator:eA,TokensApiFactory:function(e,t,r){let i=eS(e);return{getToken:(e,n)=>i.getToken(e,n).then(e=>e(r,t)),listTokens:(e,n,a,s,o,f,d)=>i.listTokens(e,n,a,s,o,f,d).then(e=>e(r,t))}},TokensApiFp:eS,TradesApi:ek,TradesApiAxiosParamCreator:eI,TradesApiFactory:function(e,t,r){let i=eR(e);return{createTradeV3:(e,n,a,s,o)=>i.createTradeV3(e,n,a,s,o).then(e=>e(r,t)),getSignableTrade:(e,n)=>i.getSignableTrade(e,n).then(e=>e(r,t)),getTradeV3:(e,n)=>i.getTradeV3(e,n).then(e=>e(r,t)),listTradesV3:(e,n,a,s,o,f,d,c,u,l,h,p)=>i.listTradesV3(e,n,a,s,o,f,d,c,u,l,h,p).then(e=>e(r,t))}},TradesApiFp:eR,TransfersApi:eP,TransfersApiAxiosParamCreator:eT,TransfersApiFactory:function(e,t,r){let i=eC(e);return{createTransfer:(e,n,a,s,o)=>i.createTransfer(e,n,a,s,o).then(e=>e(r,t)),createTransferV1:(e,n,a,s,o)=>i.createTransferV1(e,n,a,s,o).then(e=>e(r,t)),getSignableTransfer:(e,n)=>i.getSignableTransfer(e,n).then(e=>e(r,t)),getSignableTransferV1:(e,n)=>i.getSignableTransferV1(e,n).then(e=>e(r,t)),getTransfer:(e,n)=>i.getTransfer(e,n).then(e=>e(r,t)),listTransfers:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w)=>i.listTransfers(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w).then(e=>e(r,t))}},TransfersApiFp:eC,UsersApi:ej,UsersApiAxiosParamCreator:eO,UsersApiFactory:function(e,t,r){let i=eN(e);return{getSignableRegistration:(e,n)=>i.getSignableRegistration(e,n).then(e=>e(r,t)),getSignableRegistrationOffchain:(e,n)=>i.getSignableRegistrationOffchain(e,n).then(e=>e(r,t)),getUsers:(e,n)=>i.getUsers(e,n).then(e=>e(r,t)),registerPassportUser:(e,n,a)=>i.registerPassportUser(e,n,a).then(e=>e(r,t)),registerPassportUserV2:(e,n,a)=>i.registerPassportUserV2(e,n,a).then(e=>e(r,t)),registerUser:(e,n)=>i.registerUser(e,n).then(e=>e(r,t))}},UsersApiFp:eN,WithdrawalsApi:eD,WithdrawalsApiAxiosParamCreator:eB,WithdrawalsApiFactory:function(e,t,r){let i=eL(e);return{createWithdrawal:(e,n,a,s)=>i.createWithdrawal(e,n,a,s).then(e=>e(r,t)),createWithdrawalV2:(e,n,a,s)=>i.createWithdrawalV2(e,n,a,s).then(e=>e(r,t)),getSignableWithdrawal:(e,n)=>i.getSignableWithdrawal(e,n).then(e=>e(r,t)),getSignableWithdrawalV2:(e,n)=>i.getSignableWithdrawalV2(e,n).then(e=>e(r,t)),getWithdrawal:(e,n)=>i.getWithdrawal(e,n).then(e=>e(r,t)),listWithdrawals:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_)=>i.listWithdrawals(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_).then(e=>e(r,t))}},WithdrawalsApiFp:eL});let eq="https://api.sandbox.immutable.com".replace(/\/+$/,"");class ez{basePath;axios;configuration;constructor(e,t=eq,r=R.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class eK extends Error{field;constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let eH="https://example.com",eW=function(e,t,r){if(null==r)throw new eK(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},eV=async function(e,t,r){if(r&&r.apiKey){let i="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=i}},eG=async function(e,t){if(t&&t.accessToken){let r="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}},eJ=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,i=""){null!=r&&("object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,i)):Object.keys(r).forEach(n=>e(t,r[n],`${i}${""!==i?".":""}${n}`)):t.has(i)?t.append(i,r):t.set(i,r))}(r,t),e.search=r.toString()},eZ=function(e,t,r){let i="string"!=typeof e,n=i&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):i;return n?JSON.stringify(void 0!==e?e:{}):e||""},eX=function(e){return e.pathname+e.search+e.hash},e$=function(e,t,r,i){return(n=t,a=r)=>{let s={...e.options,url:(i?.basePath||n.defaults.baseURL||a)+e.url};return n.request(s)}},eY=function(e){return{getActivity:async(t,r,i={})=>{let n;eW("getActivity","chainName",t),eW("getActivity","activityId",r);let a="/v1/chains/{chain_name}/activities/{activity_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{activity_id}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},listActivities:async(t,r,i,n,a,s,o,f,d={})=>{let c;eW("listActivities","chainName",t);let u="/v1/chains/{chain_name}/activities".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(u,eH);e&&(c=e.baseOptions);let h={method:"GET",...c,...d},p={};void 0!==r&&(p.contract_address=r),void 0!==i&&(p.token_id=i),void 0!==n&&(p.account_address=n),void 0!==a&&(p.activity_type=a),void 0!==s&&(p.transaction_hash=s),void 0!==o&&(p.page_cursor=o),void 0!==f&&(p.page_size=f),eJ(l,p);let b=c&&c.headers?c.headers:{};return h.headers={...b,...d.headers},{url:eX(l),options:h}},listActivityHistory:async(t,r,i,n,a,s,o,f={})=>{let d;eW("listActivityHistory","chainName",t),eW("listActivityHistory","fromUpdatedAt",r);let c="/v1/chains/{chain_name}/activity-history".replace("{chain_name}",encodeURIComponent(String(t))),u=new URL(c,eH);e&&(d=e.baseOptions);let l={method:"GET",...d,...f},h={};void 0!==r&&(h.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(h.to_updated_at=i instanceof Date?i.toISOString():i),void 0!==n&&(h.contract_address=n),void 0!==a&&(h.activity_type=a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eJ(u,h);let p=d&&d.headers?d.headers:{};return l.headers={...p,...f.headers},{url:eX(u),options:l}}}},eQ=function(e){let t=eY(e);return{async getActivity(r,i,n){let a=await t.getActivity(r,i,n);return e$(a,R.default,eq,e)},async listActivities(r,i,n,a,s,o,f,d,c){let u=await t.listActivities(r,i,n,a,s,o,f,d,c);return e$(u,R.default,eq,e)},async listActivityHistory(r,i,n,a,s,o,f,d){let c=await t.listActivityHistory(r,i,n,a,s,o,f,d);return e$(c,R.default,eq,e)}}};class e0 extends ez{getActivity(e,t){return eQ(this.configuration).getActivity(e.chainName,e.activityId,t).then(e=>e(this.axios,this.basePath))}listActivities(e,t){return eQ(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 eQ(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))}}let e1=function(e){return{listChains:async(t,r,i={})=>{let n;let a=new URL("/v1/chains",eH);e&&(n=e.baseOptions);let s={method:"GET",...n,...i},o={};void 0!==t&&(o.page_cursor=t),void 0!==r&&(o.page_size=r),eJ(a,o);let f=n&&n.headers?n.headers:{};return s.headers={...f,...i.headers},{url:eX(a),options:s}}}},e2=function(e){let t=e1(e);return{async listChains(r,i,n){let a=await t.listChains(r,i,n);return e$(a,R.default,eq,e)}}};class e6 extends ez{listChains(e={},t){return e2(this.configuration).listChains(e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let e3=function(e){return{getCollection:async(t,r,i={})=>{let n;eW("getCollection","contractAddress",t),eW("getCollection","chainName",r);let a="/v1/chains/{chain_name}/collections/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},listCollections:async(t,r,i,n,a,s,o={})=>{let f;eW("listCollections","chainName",t);let d="/v1/chains/{chain_name}/collections".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(d,eH);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};r&&(l.contract_address=r),i&&(l.verification_status=i),void 0!==n&&(l.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eJ(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eX(c),options:u}},listCollectionsByNFTOwner:async(t,r,i,n,a={})=>{let s;eW("listCollectionsByNFTOwner","accountAddress",t),eW("listCollectionsByNFTOwner","chainName",r);let o="/v1/chains/{chain_name}/accounts/{account_address}/collections".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),f=new URL(o,eH);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eJ(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eX(f),options:d}},refreshCollectionMetadata:async(t,r,i,n={})=>{let a;eW("refreshCollectionMetadata","contractAddress",t),eW("refreshCollectionMetadata","chainName",r),eW("refreshCollectionMetadata","refreshCollectionMetadataRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eV(d,"x-immutable-api-key",e),await eG(d,e),d["Content-Type"]="application/json",eJ(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eZ(i,f,e),{url:eX(o),options:f}}}},e5=function(e){let t=e3(e);return{async getCollection(r,i,n){let a=await t.getCollection(r,i,n);return e$(a,R.default,eq,e)},async listCollections(r,i,n,a,s,o,f){let d=await t.listCollections(r,i,n,a,s,o,f);return e$(d,R.default,eq,e)},async listCollectionsByNFTOwner(r,i,n,a,s){let o=await t.listCollectionsByNFTOwner(r,i,n,a,s);return e$(o,R.default,eq,e)},async refreshCollectionMetadata(r,i,n,a){let s=await t.refreshCollectionMetadata(r,i,n,a);return e$(s,R.default,eq,e)}}};class e8 extends ez{getCollection(e,t){return e5(this.configuration).getCollection(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listCollections(e,t){return e5(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 e5(this.configuration).listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshCollectionMetadata(e,t){return e5(this.configuration).refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let e4=function(e){return{approvePendingERC191Message:async(t,r={})=>{let i;eW("approvePendingERC191Message","messageID",t);let n="/guardian/v1/erc191-messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,eH);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await eG(o,e),eJ(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eX(a),options:s}},approvePendingMessage:async(t,r={})=>{let i;eW("approvePendingMessage","messageID",t);let n="/guardian/v1/messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,eH);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await eG(o,e),eJ(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eX(a),options:s}},approvePendingTransaction:async(t,r,i={})=>{let n;eW("approvePendingTransaction","payloadHash",t),eW("approvePendingTransaction","transactionApprovalRequest",r);let a="/guardian/v1/transactions/{payloadHash}/approve".replace("{payloadHash}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eG(f,e),f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},evaluateErc191Message:async(t,r={})=>{let i;eW("evaluateErc191Message","eRC191MessageEvaluationRequest",t);let n=new URL("/guardian/v1/erc191-messages/evaluate",eH);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await eG(s,e),s["Content-Type"]="application/json",eJ(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=eZ(t,a,e),{url:eX(n),options:a}},evaluateMessage:async(t,r={})=>{let i;eW("evaluateMessage","messageEvaluationRequest",t);let n=new URL("/guardian/v1/messages/evaluate",eH);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await eG(s,e),s["Content-Type"]="application/json",eJ(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=eZ(t,a,e),{url:eX(n),options:a}},evaluateTransaction:async(t,r,i={})=>{let n;eW("evaluateTransaction","id",t),eW("evaluateTransaction","transactionEvaluationRequest",r);let a="/guardian/v1/transactions/{id}/evaluate".replace("{id}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eG(f,e),f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},getErc191MessageByID:async(t,r={})=>{let i;eW("getErc191MessageByID","messageID",t);let n="/guardian/v1/erc191-messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,eH);e&&(i=e.baseOptions);let s={method:"GET",...i,...r},o={};await eG(o,e),eJ(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eX(a),options:s}},getMessageByID:async(t,r={})=>{let i;eW("getMessageByID","messageID",t);let n="/guardian/v1/messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,eH);e&&(i=e.baseOptions);let s={method:"GET",...i,...r},o={};await eG(o,e),eJ(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eX(a),options:s}},getTransactionByID:async(t,r,i,n,a={})=>{let s;eW("getTransactionByID","transactionID",t),eW("getTransactionByID","chainType",r);let o="/guardian/v1/transactions/{transactionID}".replace("{transactionID}",encodeURIComponent(String(t))),f=new URL(o,eH);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={},u={};await eG(c,e),void 0!==r&&(u.chainType=r),void 0!==i&&(u.chainID=i),void 0!==n&&(u.includeSimulation=n),eJ(f,u);let l=s&&s.headers?s.headers:{};return d.headers={...c,...l,...a.headers},{url:eX(f),options:d}}}},e7=function(e){let t=e4(e);return{async approvePendingERC191Message(r,i){let n=await t.approvePendingERC191Message(r,i);return e$(n,R.default,eq,e)},async approvePendingMessage(r,i){let n=await t.approvePendingMessage(r,i);return e$(n,R.default,eq,e)},async approvePendingTransaction(r,i,n){let a=await t.approvePendingTransaction(r,i,n);return e$(a,R.default,eq,e)},async evaluateErc191Message(r,i){let n=await t.evaluateErc191Message(r,i);return e$(n,R.default,eq,e)},async evaluateMessage(r,i){let n=await t.evaluateMessage(r,i);return e$(n,R.default,eq,e)},async evaluateTransaction(r,i,n){let a=await t.evaluateTransaction(r,i,n);return e$(a,R.default,eq,e)},async getErc191MessageByID(r,i){let n=await t.getErc191MessageByID(r,i);return e$(n,R.default,eq,e)},async getMessageByID(r,i){let n=await t.getMessageByID(r,i);return e$(n,R.default,eq,e)},async getTransactionByID(r,i,n,a,s){let o=await t.getTransactionByID(r,i,n,a,s);return e$(o,R.default,eq,e)}}};class e9 extends ez{approvePendingERC191Message(e,t){return e7(this.configuration).approvePendingERC191Message(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingMessage(e,t){return e7(this.configuration).approvePendingMessage(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingTransaction(e,t){return e7(this.configuration).approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,t).then(e=>e(this.axios,this.basePath))}evaluateErc191Message(e,t){return e7(this.configuration).evaluateErc191Message(e.eRC191MessageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateMessage(e,t){return e7(this.configuration).evaluateMessage(e.messageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateTransaction(e,t){return e7(this.configuration).evaluateTransaction(e.id,e.transactionEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}getErc191MessageByID(e,t){return e7(this.configuration).getErc191MessageByID(e.messageID,t).then(e=>e(this.axios,this.basePath))}getMessageByID(e,t){return e7(this.configuration).getMessageByID(e.messageID,t).then(e=>e(this.axios,this.basePath))}getTransactionByID(e,t){return e7(this.configuration).getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,t).then(e=>e(this.axios,this.basePath))}}let te=function(e){return{getMetadata:async(t,r,i,n={})=>{let a;eW("getMetadata","chainName",t),eW("getMetadata","contractAddress",r),eW("getMetadata","metadataId",i);let s="/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(i))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"GET",...a,...n};eJ(o,{});let d=a&&a.headers?a.headers:{};return f.headers={...d,...n.headers},{url:eX(o),options:f}},listMetadata:async(t,r,i,n,a,s={})=>{let o;eW("listMetadata","chainName",t),eW("listMetadata","contractAddress",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),d=new URL(f,eH);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={};void 0!==i&&(u.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==n&&(u.page_cursor=n),void 0!==a&&(u.page_size=a),eJ(d,u);let l=o&&o.headers?o.headers:{};return c.headers={...l,...s.headers},{url:eX(d),options:c}},listMetadataForChain:async(t,r,i,n,a={})=>{let s;eW("listMetadataForChain","chainName",t);let o="/v1/chains/{chain_name}/metadata".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(o,eH);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eJ(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eX(f),options:d}},refreshMetadataByID:async(t,r,i,n={})=>{let a;eW("refreshMetadataByID","chainName",t),eW("refreshMetadataByID","contractAddress",r),eW("refreshMetadataByID","refreshMetadataByIDRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eV(d,"x-immutable-api-key",e),d["Content-Type"]="application/json",eJ(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eZ(i,f,e),{url:eX(o),options:f}},refreshNFTMetadataByTokenID:async(t,r,i,n={})=>{let a;eW("refreshNFTMetadataByTokenID","contractAddress",t),eW("refreshNFTMetadataByTokenID","chainName",r),eW("refreshNFTMetadataByTokenID","refreshNFTMetadataByTokenIDRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eV(d,"x-immutable-api-key",e),d["Content-Type"]="application/json",eJ(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eZ(i,f,e),{url:eX(o),options:f}}}},tt=function(e){let t=te(e);return{async getMetadata(r,i,n,a){let s=await t.getMetadata(r,i,n,a);return e$(s,R.default,eq,e)},async listMetadata(r,i,n,a,s,o){let f=await t.listMetadata(r,i,n,a,s,o);return e$(f,R.default,eq,e)},async listMetadataForChain(r,i,n,a,s){let o=await t.listMetadataForChain(r,i,n,a,s);return e$(o,R.default,eq,e)},async refreshMetadataByID(r,i,n,a){let s=await t.refreshMetadataByID(r,i,n,a);return e$(s,R.default,eq,e)},async refreshNFTMetadataByTokenID(r,i,n,a){let s=await t.refreshNFTMetadataByTokenID(r,i,n,a);return e$(s,R.default,eq,e)}}},tr=function(e){return{listAllNFTOwners:async(t,r,i,n,a={})=>{let s;eW("listAllNFTOwners","chainName",t);let o="/v1/chains/{chain_name}/nft-owners".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(o,eH);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eJ(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eX(f),options:d}},listNFTOwners:async(t,r,i,n,a,s={})=>{let o;eW("listNFTOwners","contractAddress",t),eW("listNFTOwners","tokenId",r),eW("listNFTOwners","chainName",i);let f="/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(i))),d=new URL(f,eH);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={};void 0!==n&&(u.page_cursor=n),void 0!==a&&(u.page_size=a),eJ(d,u);let l=o&&o.headers?o.headers:{};return c.headers={...l,...s.headers},{url:eX(d),options:c}},listOwnersByContractAddress:async(t,r,i,n,a,s,o={})=>{let f;eW("listOwnersByContractAddress","contractAddress",t),eW("listOwnersByContractAddress","chainName",r);let d="/v1/chains/{chain_name}/collections/{contract_address}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),c=new URL(d,eH);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};i&&(l.account_address=i),void 0!==n&&(l.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eJ(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eX(c),options:u}}}},ti=function(e){let t=tr(e);return{async listAllNFTOwners(r,i,n,a,s){let o=await t.listAllNFTOwners(r,i,n,a,s);return e$(o,R.default,eq,e)},async listNFTOwners(r,i,n,a,s,o){let f=await t.listNFTOwners(r,i,n,a,s,o);return e$(f,R.default,eq,e)},async listOwnersByContractAddress(r,i,n,a,s,o,f){let d=await t.listOwnersByContractAddress(r,i,n,a,s,o,f);return e$(d,R.default,eq,e)}}};class tn extends ez{listAllNFTOwners(e,t){return ti(this.configuration).listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTOwners(e,t){return ti(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 ti(this.configuration).listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let ta=function(e){return{createMintRequest:async(t,r,i,n={})=>{let a;eW("createMintRequest","contractAddress",t),eW("createMintRequest","chainName",r),eW("createMintRequest","createMintRequestRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eV(d,"x-immutable-api-key",e),d["Content-Type"]="application/json",eJ(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eZ(i,f,e),{url:eX(o),options:f}},getMintRequest:async(t,r,i,n={})=>{let a;eW("getMintRequest","contractAddress",t),eW("getMintRequest","chainName",r),eW("getMintRequest","referenceId",i);let s="/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(i))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};await eV(d,"x-immutable-api-key",e),eJ(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},{url:eX(o),options:f}},getNFT:async(t,r,i,n={})=>{let a;eW("getNFT","contractAddress",t),eW("getNFT","tokenId",r),eW("getNFT","chainName",i);let s="/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(i))),o=new URL(s,eH);e&&(a=e.baseOptions);let f={method:"GET",...a,...n};eJ(o,{});let d=a&&a.headers?a.headers:{};return f.headers={...d,...n.headers},{url:eX(o),options:f}},listAllNFTs:async(t,r,i,n,a={})=>{let s;eW("listAllNFTs","chainName",t);let o="/v1/chains/{chain_name}/nfts".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(o,eH);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eJ(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eX(f),options:d}},listMintRequests:async(t,r,i,n,a,s={})=>{let o;eW("listMintRequests","contractAddress",t),eW("listMintRequests","chainName",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),d=new URL(f,eH);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={},l={};await eV(u,"x-immutable-api-key",e),void 0!==i&&(l.page_cursor=i),void 0!==n&&(l.page_size=n),void 0!==a&&(l.status=a),eJ(d,l);let h=o&&o.headers?o.headers:{};return c.headers={...u,...h,...s.headers},{url:eX(d),options:c}},listNFTs:async(t,r,i,n,a,s,o={})=>{let f;eW("listNFTs","contractAddress",t),eW("listNFTs","chainName",r);let d="/v1/chains/{chain_name}/collections/{contract_address}/nfts".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),c=new URL(d,eH);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};i&&(l.token_id=i),void 0!==n&&(l.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eJ(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eX(c),options:u}},listNFTsByAccountAddress:async(t,r,i,n,a,s,o,f={})=>{let d;eW("listNFTsByAccountAddress","accountAddress",t),eW("listNFTsByAccountAddress","chainName",r);let c="/v1/chains/{chain_name}/accounts/{account_address}/nfts".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),u=new URL(c,eH);e&&(d=e.baseOptions);let l={method:"GET",...d,...f},h={};void 0!==i&&(h.contract_address=i),n&&(h.token_id=n),void 0!==a&&(h.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eJ(u,h);let p=d&&d.headers?d.headers:{};return l.headers={...p,...f.headers},{url:eX(u),options:l}}}},ts=function(e){let t=ta(e);return{async createMintRequest(r,i,n,a){let s=await t.createMintRequest(r,i,n,a);return e$(s,R.default,eq,e)},async getMintRequest(r,i,n,a){let s=await t.getMintRequest(r,i,n,a);return e$(s,R.default,eq,e)},async getNFT(r,i,n,a){let s=await t.getNFT(r,i,n,a);return e$(s,R.default,eq,e)},async listAllNFTs(r,i,n,a,s){let o=await t.listAllNFTs(r,i,n,a,s);return e$(o,R.default,eq,e)},async listMintRequests(r,i,n,a,s,o){let f=await t.listMintRequests(r,i,n,a,s,o);return e$(f,R.default,eq,e)},async listNFTs(r,i,n,a,s,o,f){let d=await t.listNFTs(r,i,n,a,s,o,f);return e$(d,R.default,eq,e)},async listNFTsByAccountAddress(r,i,n,a,s,o,f,d){let c=await t.listNFTsByAccountAddress(r,i,n,a,s,o,f,d);return e$(c,R.default,eq,e)}}};class to extends ez{createMintRequest(e,t){return ts(this.configuration).createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,t).then(e=>e(this.axios,this.basePath))}getMintRequest(e,t){return ts(this.configuration).getMintRequest(e.contractAddress,e.chainName,e.referenceId,t).then(e=>e(this.axios,this.basePath))}getNFT(e,t){return ts(this.configuration).getNFT(e.contractAddress,e.tokenId,e.chainName,t).then(e=>e(this.axios,this.basePath))}listAllNFTs(e,t){return ts(this.configuration).listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMintRequests(e,t){return ts(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 ts(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 ts(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))}}let tf=function(e){return{cancelOrders:async(t,r,i={})=>{let n;eW("cancelOrders","chainName",t),eW("cancelOrders","cancelOrdersRequestBody",r);let a="/v1/chains/{chain_name}/orders/cancel".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},createBid:async(t,r,i={})=>{let n;eW("createBid","chainName",t),eW("createBid","createBidRequestBody",r);let a="/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},createCollectionBid:async(t,r,i={})=>{let n;eW("createCollectionBid","chainName",t),eW("createCollectionBid","createCollectionBidRequestBody",r);let a="/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},createListing:async(t,r,i={})=>{let n;eW("createListing","chainName",t),eW("createListing","createListingRequestBody",r);let a="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},fulfillmentData:async(t,r,i={})=>{let n;eW("fulfillmentData","chainName",t),eW("fulfillmentData","fulfillmentDataRequest",r);let a="/v1/chains/{chain_name}/orders/fulfillment-data".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},getBid:async(t,r,i={})=>{let n;eW("getBid","chainName",t),eW("getBid","bidId",r);let a="/v1/chains/{chain_name}/orders/bids/{bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{bid_id}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},getCollectionBid:async(t,r,i={})=>{let n;eW("getCollectionBid","chainName",t),eW("getCollectionBid","collectionBidId",r);let a="/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{collection_bid_id}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},getListing:async(t,r,i={})=>{let n;eW("getListing","chainName",t),eW("getListing","listingId",r);let a="/v1/chains/{chain_name}/orders/listings/{listing_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{listing_id}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},getTrade:async(t,r,i={})=>{let n;eW("getTrade","chainName",t),eW("getTrade","tradeId",r);let a="/v1/chains/{chain_name}/trades/{trade_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{trade_id}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},listBids:async(t,r,i,n,a,s,o,f,d,c,u,l,h={})=>{let p;eW("listBids","chainName",t);let b="/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),m=new URL(b,eH);e&&(p=e.baseOptions);let g={method:"GET",...p,...h},y={};void 0!==r&&(y.status=r),void 0!==i&&(y.buy_item_contract_address=i),void 0!==n&&(y.sell_item_contract_address=n),void 0!==a&&(y.account_address=a),void 0!==s&&(y.buy_item_metadata_id=s),void 0!==o&&(y.buy_item_token_id=o),void 0!==f&&(y.from_updated_at=f instanceof Date?f.toISOString():f),void 0!==d&&(y.page_size=d),void 0!==c&&(y.sort_by=c),void 0!==u&&(y.sort_direction=u),void 0!==l&&(y.page_cursor=l),eJ(m,y);let v=p&&p.headers?p.headers:{};return g.headers={...v,...h.headers},{url:eX(m),options:g}},listCollectionBids:async(t,r,i,n,a,s,o,f,d,c,u={})=>{let l;eW("listCollectionBids","chainName",t);let h="/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),p=new URL(h,eH);e&&(l=e.baseOptions);let b={method:"GET",...l,...u},m={};void 0!==r&&(m.status=r),void 0!==i&&(m.buy_item_contract_address=i),void 0!==n&&(m.sell_item_contract_address=n),void 0!==a&&(m.account_address=a),void 0!==s&&(m.from_updated_at=s instanceof Date?s.toISOString():s),void 0!==o&&(m.page_size=o),void 0!==f&&(m.sort_by=f),void 0!==d&&(m.sort_direction=d),void 0!==c&&(m.page_cursor=c),eJ(p,m);let g=l&&l.headers?l.headers:{};return b.headers={...g,...u.headers},{url:eX(p),options:b}},listListings:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p={})=>{let b;eW("listListings","chainName",t);let m="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),g=new URL(m,eH);e&&(b=e.baseOptions);let y={method:"GET",...b,...p},v={};void 0!==r&&(v.status=r),void 0!==i&&(v.sell_item_contract_address=i),void 0!==n&&(v.buy_item_type=n),void 0!==a&&(v.buy_item_contract_address=a),void 0!==s&&(v.account_address=s),void 0!==o&&(v.sell_item_metadata_id=o),void 0!==f&&(v.sell_item_token_id=f),void 0!==d&&(v.from_updated_at=d instanceof Date?d.toISOString():d),void 0!==c&&(v.page_size=c),void 0!==u&&(v.sort_by=u),void 0!==l&&(v.sort_direction=l),void 0!==h&&(v.page_cursor=h),eJ(g,v);let w=b&&b.headers?b.headers:{};return y.headers={...w,...p.headers},{url:eX(g),options:y}},listTrades:async(t,r,i,n,a,s,o,f,d={})=>{let c;eW("listTrades","chainName",t);let u="/v1/chains/{chain_name}/trades".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(u,eH);e&&(c=e.baseOptions);let h={method:"GET",...c,...d},p={};void 0!==r&&(p.account_address=r),void 0!==i&&(p.sell_item_contract_address=i),void 0!==n&&(p.from_indexed_at=n instanceof Date?n.toISOString():n),void 0!==a&&(p.page_size=a),void 0!==s&&(p.sort_by=s),void 0!==o&&(p.sort_direction=o),void 0!==f&&(p.page_cursor=f),eJ(l,p);let b=c&&c.headers?c.headers:{};return h.headers={...b,...d.headers},{url:eX(l),options:h}}}},td=function(e){let t=tf(e);return{async cancelOrders(r,i,n){let a=await t.cancelOrders(r,i,n);return e$(a,R.default,eq,e)},async createBid(r,i,n){let a=await t.createBid(r,i,n);return e$(a,R.default,eq,e)},async createCollectionBid(r,i,n){let a=await t.createCollectionBid(r,i,n);return e$(a,R.default,eq,e)},async createListing(r,i,n){let a=await t.createListing(r,i,n);return e$(a,R.default,eq,e)},async fulfillmentData(r,i,n){let a=await t.fulfillmentData(r,i,n);return e$(a,R.default,eq,e)},async getBid(r,i,n){let a=await t.getBid(r,i,n);return e$(a,R.default,eq,e)},async getCollectionBid(r,i,n){let a=await t.getCollectionBid(r,i,n);return e$(a,R.default,eq,e)},async getListing(r,i,n){let a=await t.getListing(r,i,n);return e$(a,R.default,eq,e)},async getTrade(r,i,n){let a=await t.getTrade(r,i,n);return e$(a,R.default,eq,e)},async listBids(r,i,n,a,s,o,f,d,c,u,l,h,p){let b=await t.listBids(r,i,n,a,s,o,f,d,c,u,l,h,p);return e$(b,R.default,eq,e)},async listCollectionBids(r,i,n,a,s,o,f,d,c,u,l){let h=await t.listCollectionBids(r,i,n,a,s,o,f,d,c,u,l);return e$(h,R.default,eq,e)},async listListings(r,i,n,a,s,o,f,d,c,u,l,h,p,b){let m=await t.listListings(r,i,n,a,s,o,f,d,c,u,l,h,p,b);return e$(m,R.default,eq,e)},async listTrades(r,i,n,a,s,o,f,d,c){let u=await t.listTrades(r,i,n,a,s,o,f,d,c);return e$(u,R.default,eq,e)}}};class tc extends ez{cancelOrders(e,t){return td(this.configuration).cancelOrders(e.chainName,e.cancelOrdersRequestBody,t).then(e=>e(this.axios,this.basePath))}createBid(e,t){return td(this.configuration).createBid(e.chainName,e.createBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createCollectionBid(e,t){return td(this.configuration).createCollectionBid(e.chainName,e.createCollectionBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createListing(e,t){return td(this.configuration).createListing(e.chainName,e.createListingRequestBody,t).then(e=>e(this.axios,this.basePath))}fulfillmentData(e,t){return td(this.configuration).fulfillmentData(e.chainName,e.fulfillmentDataRequest,t).then(e=>e(this.axios,this.basePath))}getBid(e,t){return td(this.configuration).getBid(e.chainName,e.bidId,t).then(e=>e(this.axios,this.basePath))}getCollectionBid(e,t){return td(this.configuration).getCollectionBid(e.chainName,e.collectionBidId,t).then(e=>e(this.axios,this.basePath))}getListing(e,t){return td(this.configuration).getListing(e.chainName,e.listingId,t).then(e=>e(this.axios,this.basePath))}getTrade(e,t){return td(this.configuration).getTrade(e.chainName,e.tradeId,t).then(e=>e(this.axios,this.basePath))}listBids(e,t){return td(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 td(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 td(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 td(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))}}let tu=function(e){return{createCounterfactualAddressV2:async(t,r,i={})=>{let n;eW("createCounterfactualAddressV2","chainName",t),eW("createCounterfactualAddressV2","createCounterfactualAddressRequest",r);let a="/v2/chains/{chain_name}/passport/counterfactual-address".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eG(f,e),f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},getLinkedAddresses:async(t,r,i={})=>{let n;eW("getLinkedAddresses","userId",t),eW("getLinkedAddresses","chainName",r);let a="/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses".replace("{user_id}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i},f={};await eG(f,e),eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},{url:eX(s),options:o}},getLinkedAddressesDeprecated:async(t,r={})=>{let i;eW("getLinkedAddressesDeprecated","userId",t);let n="/passport-mr/v1/users/{userId}/linked-addresses".replace("{userId}",encodeURIComponent(String(t))),a=new URL(n,eH);e&&(i=e.baseOptions);let s={method:"GET",...i,...r},o={};await eG(o,e),eJ(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eX(a),options:s}},getTransactionMetadata:async(t,r,i={})=>{let n;eW("getTransactionMetadata","chainName",t),eW("getTransactionMetadata","getTransactionMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/transaction-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eG(f,e),f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}},getTypedDataMetadata:async(t,r,i={})=>{let n;eW("getTypedDataMetadata","chainName",t),eW("getTypedDataMetadata","getTypedDataMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/typeddata-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eG(f,e),f["Content-Type"]="application/json",eJ(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eZ(r,o,e),{url:eX(s),options:o}}}},tl=function(e){let t=tu(e);return{async createCounterfactualAddressV2(r,i,n){let a=await t.createCounterfactualAddressV2(r,i,n);return e$(a,R.default,eq,e)},async getLinkedAddresses(r,i,n){let a=await t.getLinkedAddresses(r,i,n);return e$(a,R.default,eq,e)},async getLinkedAddressesDeprecated(r,i){let n=await t.getLinkedAddressesDeprecated(r,i);return e$(n,R.default,eq,e)},async getTransactionMetadata(r,i,n){let a=await t.getTransactionMetadata(r,i,n);return e$(a,R.default,eq,e)},async getTypedDataMetadata(r,i,n){let a=await t.getTypedDataMetadata(r,i,n);return e$(a,R.default,eq,e)}}};class th extends ez{createCounterfactualAddressV2(e,t){return tl(this.configuration).createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,t).then(e=>e(this.axios,this.basePath))}getLinkedAddresses(e,t){return tl(this.configuration).getLinkedAddresses(e.userId,e.chainName,t).then(e=>e(this.axios,this.basePath))}getLinkedAddressesDeprecated(e,t){return tl(this.configuration).getLinkedAddressesDeprecated(e.userId,t).then(e=>e(this.axios,this.basePath))}getTransactionMetadata(e,t){return tl(this.configuration).getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getTypedDataMetadata(e,t){return tl(this.configuration).getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let tp=function(e){return{getUserInfo:async(t={})=>{let r;let i=new URL("/passport-profile/v1/user/info",eH);e&&(r=e.baseOptions);let n={method:"GET",...r,...t},a={};await eG(a,e),eJ(i,{});let s=r&&r.headers?r.headers:{};return n.headers={...a,...s,...t.headers},{url:eX(i),options:n}},linkWalletV2:async(t,r={})=>{let i;let n=new URL("/passport-profile/v2/linked-wallets",eH);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await eG(s,e),s["Content-Type"]="application/json",eJ(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=eZ(t,a,e),{url:eX(n),options:a}}}},tb=function(e){let t=tp(e);return{async getUserInfo(r){let i=await t.getUserInfo(r);return e$(i,R.default,eq,e)},async linkWalletV2(r,i){let n=await t.linkWalletV2(r,i);return e$(n,R.default,eq,e)}}};class tm extends ez{getUserInfo(e){return tb(this.configuration).getUserInfo(e).then(e=>e(this.axios,this.basePath))}linkWalletV2(e={},t){return tb(this.configuration).linkWalletV2(e.linkWalletV2Request,t).then(e=>e(this.axios,this.basePath))}}let tg=function(e){return{getERC20Token:async(t,r,i={})=>{let n;eW("getERC20Token","contractAddress",t),eW("getERC20Token","chainName",r);let a="/v1/chains/{chain_name}/tokens/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,eH);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eJ(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eX(s),options:o}},listERC20Tokens:async(t,r,i,n,a,s,o={})=>{let f;eW("listERC20Tokens","chainName",t);let d="/v1/chains/{chain_name}/tokens".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(d,eH);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};void 0!==r&&(l.from_updated_at=r instanceof Date?r.toISOString():r),i&&(l.verification_status=i),void 0!==n&&(l.is_canonical=n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eJ(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eX(c),options:u}}}},ty=function(e){let t=tg(e);return{async getERC20Token(r,i,n){let a=await t.getERC20Token(r,i,n);return e$(a,R.default,eq,e)},async listERC20Tokens(r,i,n,a,s,o,f){let d=await t.listERC20Tokens(r,i,n,a,s,o,f);return e$(d,R.default,eq,e)}}};var tv=Object.freeze({__proto__:null,APIError400AllOfCodeEnum:{ValidationError:"VALIDATION_ERROR"},APIError401AllOfCodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},APIError403AllOfCodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},APIError404AllOfCodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},APIError409AllOfCodeEnum:{ConflictError:"CONFLICT_ERROR"},APIError429AllOfCodeEnum:{TooManyRequestsError:"TOO_MANY_REQUESTS_ERROR"},APIError500AllOfCodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},APIError501AllOfCodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ActiveOrderStatusNameEnum:{Active:"ACTIVE"},ActivitiesApi:e0,ActivitiesApiAxiosParamCreator:eY,ActivitiesApiFactory:function(e,t,r){let i=eQ(e);return{getActivity:(e,n)=>i.getActivity(e.chainName,e.activityId,n).then(e=>e(r,t)),listActivities:(e,n)=>i.listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listActivityHistory:(e,n)=>i.listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},ActivitiesApiFp:eQ,ActivityType:{Mint:"mint",Burn:"burn",Transfer:"transfer",Sale:"sale",Deposit:"deposit",Withdrawal:"withdrawal"},AssetVerificationStatus:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},CancelledOrderStatusCancellationTypeEnum:{OnChain:"ON_CHAIN",OffChain:"OFF_CHAIN",Underfunded:"UNDERFUNDED"},CancelledOrderStatusNameEnum:{Cancelled:"CANCELLED"},ChainsApi:e6,ChainsApiAxiosParamCreator:e1,ChainsApiFactory:function(e,t,r){let i=e2(e);return{listChains:(e={},n)=>i.listChains(e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},ChainsApiFp:e2,CollectionContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},CollectionsApi:e8,CollectionsApiAxiosParamCreator:e3,CollectionsApiFactory:function(e,t,r){let i=e5(e);return{getCollection:(e,n)=>i.getCollection(e.contractAddress,e.chainName,n).then(e=>e(r,t)),listCollections:(e,n)=>i.listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listCollectionsByNFTOwner:(e,n)=>i.listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),refreshCollectionMetadata:(e,n)=>i.refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,n).then(e=>e(r,t))}},CollectionsApiFp:e5,Configuration: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())}},ERC1155CollectionItemTypeEnum:{Erc1155Collection:"ERC1155_COLLECTION"},ERC1155ItemTypeEnum:{Erc1155:"ERC1155"},ERC20ApproveMetadataTransactionTypeEnum:{Erc20Approve:"ERC20_APPROVE"},ERC20ItemTypeEnum:{Erc20:"ERC20"},ERC20TransferFromMetadataTransactionTypeEnum:{Erc20TransferFrom:"ERC20_TRANSFER_FROM"},ERC20TransferMetadataTransactionTypeEnum:{Erc20Transfer:"ERC20_TRANSFER"},ERC721ApproveMetadataTransactionTypeEnum:{Erc721Approve:"ERC721_APPROVE"},ERC721CollectionItemTypeEnum:{Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},ERC721ItemTypeEnum:{Erc721:"ERC721"},ERC721SafeTransferFromBatchMetadataTransactionTypeEnum:{Erc721SafeTransferFromBatch:"ERC721_SAFE_TRANSFER_FROM_BATCH"},ERC721TransferFromMetadataTransactionTypeEnum:{Erc721TransferFrom:"ERC721_TRANSFER_FROM"},ExpiredOrderStatusNameEnum:{Expired:"EXPIRED"},FailedOrderCancellationReasonCodeEnum:{Filled:"FILLED"},FeeTypeEnum:{Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},FilledOrderStatusNameEnum:{Filled:"FILLED"},GetTransactionByIDChainTypeEnum:{Starkex:"starkex",Evm:"evm"},GuardianApi:e9,GuardianApiAxiosParamCreator:e4,GuardianApiFactory:function(e,t,r){let i=e7(e);return{approvePendingERC191Message:(e,n)=>i.approvePendingERC191Message(e.messageID,n).then(e=>e(r,t)),approvePendingMessage:(e,n)=>i.approvePendingMessage(e.messageID,n).then(e=>e(r,t)),approvePendingTransaction:(e,n)=>i.approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,n).then(e=>e(r,t)),evaluateErc191Message:(e,n)=>i.evaluateErc191Message(e.eRC191MessageEvaluationRequest,n).then(e=>e(r,t)),evaluateMessage:(e,n)=>i.evaluateMessage(e.messageEvaluationRequest,n).then(e=>e(r,t)),evaluateTransaction:(e,n)=>i.evaluateTransaction(e.id,e.transactionEvaluationRequest,n).then(e=>e(r,t)),getErc191MessageByID:(e,n)=>i.getErc191MessageByID(e.messageID,n).then(e=>e(r,t)),getMessageByID:(e,n)=>i.getMessageByID(e.messageID,n).then(e=>e(r,t)),getTransactionByID:(e,n)=>i.getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,n).then(e=>e(r,t))}},GuardianApiFp:e7,ImmutableVerificationStatusEnum:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},InactiveOrderStatusNameEnum:{Inactive:"INACTIVE"},ListBidsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},ListBidsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListCollectionBidsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},ListCollectionBidsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListListingsBuyItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20"},ListListingsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",BuyItemAmount:"buy_item_amount"},ListListingsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListTradesSortByEnum:{IndexedAt:"indexed_at"},ListTradesSortDirectionEnum:{Asc:"asc",Desc:"desc"},MessageEvaluationResponseConfirmationMethodEnum:{Otp:"otp",Web:"web"},MetadataApi:class extends ez{getMetadata(e,t){return tt(this.configuration).getMetadata(e.chainName,e.contractAddress,e.metadataId,t).then(e=>e(this.axios,this.basePath))}listMetadata(e,t){return tt(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 tt(this.configuration).listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshMetadataByID(e,t){return tt(this.configuration).refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,t).then(e=>e(this.axios,this.basePath))}refreshNFTMetadataByTokenID(e,t){return tt(this.configuration).refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,t).then(e=>e(this.axios,this.basePath))}},MetadataApiAxiosParamCreator:te,MetadataApiFactory:function(e,t,r){let i=tt(e);return{getMetadata:(e,n)=>i.getMetadata(e.chainName,e.contractAddress,e.metadataId,n).then(e=>e(r,t)),listMetadata:(e,n)=>i.listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listMetadataForChain:(e,n)=>i.listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),refreshMetadataByID:(e,n)=>i.refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,n).then(e=>e(r,t)),refreshNFTMetadataByTokenID:(e,n)=>i.refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,n).then(e=>e(r,t))}},MetadataApiFp:tt,MintRequestStatus:{Pending:"pending",Succeeded:"succeeded",Failed:"failed"},NFTContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},NFTMetadataAttributeDisplayTypeEnum:{Number:"number",BoostPercentage:"boost_percentage",BoostNumber:"boost_number",Date:"date"},NFTSetApprovalForAllMetadataTransactionTypeEnum:{Erc721SetApprovalForAll:"ERC721_SET_APPROVAL_FOR_ALL",Erc1155SetApprovalForAll:"ERC1155_SET_APPROVAL_FOR_ALL"},NativeItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155",Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},NftOwnersApi:tn,NftOwnersApiAxiosParamCreator:tr,NftOwnersApiFactory:function(e,t,r){let i=ti(e);return{listAllNFTOwners:(e,n)=>i.listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listNFTOwners:(e,n)=>i.listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listOwnersByContractAddress:(e,n)=>i.listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},NftOwnersApiFp:ti,NftsApi:to,NftsApiAxiosParamCreator:ta,NftsApiFactory:function(e,t,r){let i=ts(e);return{createMintRequest:(e,n)=>i.createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,n).then(e=>e(r,t)),getMintRequest:(e,n)=>i.getMintRequest(e.contractAddress,e.chainName,e.referenceId,n).then(e=>e(r,t)),getNFT:(e,n)=>i.getNFT(e.contractAddress,e.tokenId,e.chainName,n).then(e=>e(r,t)),listAllNFTs:(e,n)=>i.listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listMintRequests:(e,n)=>i.listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,n).then(e=>e(r,t)),listNFTs:(e,n)=>i.listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listNFTsByAccountAddress:(e,n)=>i.listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},NftsApiFp:ts,OperatorAllowlistStatus:{Requested:"requested",Approved:"approved",Rejected:"rejected",Removed:"removed",Added:"added"},OrderStatusName:{Pending:"PENDING",Active:"ACTIVE",Inactive:"INACTIVE",Filled:"FILLED",Expired:"EXPIRED",Cancelled:"CANCELLED"},OrderTypeEnum:{Listing:"LISTING",Bid:"BID",CollectionBid:"COLLECTION_BID"},OrdersApi:tc,OrdersApiAxiosParamCreator:tf,OrdersApiFactory:function(e,t,r){let i=td(e);return{cancelOrders:(e,n)=>i.cancelOrders(e.chainName,e.cancelOrdersRequestBody,n).then(e=>e(r,t)),createBid:(e,n)=>i.createBid(e.chainName,e.createBidRequestBody,n).then(e=>e(r,t)),createCollectionBid:(e,n)=>i.createCollectionBid(e.chainName,e.createCollectionBidRequestBody,n).then(e=>e(r,t)),createListing:(e,n)=>i.createListing(e.chainName,e.createListingRequestBody,n).then(e=>e(r,t)),fulfillmentData:(e,n)=>i.fulfillmentData(e.chainName,e.fulfillmentDataRequest,n).then(e=>e(r,t)),getBid:(e,n)=>i.getBid(e.chainName,e.bidId,n).then(e=>e(r,t)),getCollectionBid:(e,n)=>i.getCollectionBid(e.chainName,e.collectionBidId,n).then(e=>e(r,t)),getListing:(e,n)=>i.getListing(e.chainName,e.listingId,n).then(e=>e(r,t)),getTrade:(e,n)=>i.getTrade(e.chainName,e.tradeId,n).then(e=>e(r,t)),listBids:(e,n)=>i.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,n).then(e=>e(r,t)),listCollectionBids:(e,n)=>i.listCollectionBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,n).then(e=>e(r,t)),listListings:(e,n)=>i.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,n).then(e=>e(r,t)),listTrades:(e,n)=>i.listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,n).then(e=>e(r,t))}},OrdersApiFp:td,OrganisationTier:{Common:"common",Uncommon:"uncommon",Rare:"rare",Epic:"epic",Legendary:"legendary"},PassportApi:th,PassportApiAxiosParamCreator:tu,PassportApiFactory:function(e,t,r){let i=tl(e);return{createCounterfactualAddressV2:(e,n)=>i.createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,n).then(e=>e(r,t)),getLinkedAddresses:(e,n)=>i.getLinkedAddresses(e.userId,e.chainName,n).then(e=>e(r,t)),getLinkedAddressesDeprecated:(e,n)=>i.getLinkedAddressesDeprecated(e.userId,n).then(e=>e(r,t)),getTransactionMetadata:(e,n)=>i.getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,n).then(e=>e(r,t)),getTypedDataMetadata:(e,n)=>i.getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,n).then(e=>e(r,t))}},PassportApiFp:tl,PassportProfileApi:tm,PassportProfileApiAxiosParamCreator:tp,PassportProfileApiFactory:function(e,t,r){let i=tb(e);return{getUserInfo:e=>i.getUserInfo(e).then(e=>e(r,t)),linkWalletV2:(e={},n)=>i.linkWalletV2(e.linkWalletV2Request,n).then(e=>e(r,t))}},PassportProfileApiFp:tb,PendingOrderStatusNameEnum:{Pending:"PENDING"},ProtocolDataOrderTypeEnum:{FullRestricted:"FULL_RESTRICTED",PartialRestricted:"PARTIAL_RESTRICTED"},SaleFeeTypeEnum:{Royalty:"ROYALTY"},SeaportCreateListingMetadataTypedDataTypeEnum:{SeaportCreateListingMetadata:"SEAPORT_CREATE_LISTING_METADATA"},SeaportERC1155ItemTypeEnum:{Erc1155:"ERC1155"},SeaportERC20ItemTypeEnum:{Erc20:"ERC20"},SeaportERC721ItemTypeEnum:{Erc721:"ERC721"},SeaportFeeTypeEnum:{Erc20:"ERC20",Native:"NATIVE"},SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum:{SeaportFulfillAvailableAdvancedOrders:"SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS"},SeaportNativeItemTypeEnum:{Native:"NATIVE"},Severity:{Malicious:"malicious",Benign:"benign",Warning:"warning",Unknown:"unknown",Info:"info"},StarkExTransactionEvaluationRequestChainTypeEnum:{Starkex:"starkex"},TokenContractType:{Erc20:"ERC20"},TokensApi:class extends ez{getERC20Token(e,t){return ty(this.configuration).getERC20Token(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listERC20Tokens(e,t){return ty(this.configuration).listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},TokensApiAxiosParamCreator:tg,TokensApiFactory:function(e,t,r){let i=ty(e);return{getERC20Token:(e,n)=>i.getERC20Token(e.contractAddress,e.chainName,n).then(e=>e(r,t)),listERC20Tokens:(e,n)=>i.listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},TokensApiFp:ty,TransactionApprovalRequestChainTypeEnum:{Starkex:"starkex",Evm:"evm"},TransactionEvaluationResponseConfirmationMethodEnum:{Otp:"otp",Web:"web"},UnknownMetadataTransactionTypeEnum:{Unknown:"UNKNOWN"},UnknownTypedDataMetadataTypedDataTypeEnum:{Unknown:"UNKNOWN"},ValidationStatus:{Success:"success",Error:"error"},VerificationRequestContractType:{Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},VerificationRequestStatus:{Completed:"completed",Pending:"pending"},ZkEvmTransactionEvaluationRequestChainTypeEnum:{Evm:"evm"}});(d||(d={})).ValidationError="VALIDATION_ERROR",(c||(c={})).UnauthorisedRequest="UNAUTHORISED_REQUEST",(u||(u={})).AuthenticationError="AUTHENTICATION_ERROR",(l||(l={})).ResourceNotFound="RESOURCE_NOT_FOUND",(h||(h={})).ConflictError="CONFLICT_ERROR",(p||(p={})).TooManyRequestsError="TOO_MANY_REQUESTS_ERROR",(b||(b={})).InternalServerError="INTERNAL_SERVER_ERROR",(m||(m={})).NotImplementedError="NOT_IMPLEMENTED_ERROR",(g||(g={})).Active="ACTIVE",(i=y||(y={})).Mint="mint",i.Burn="burn",i.Transfer="transfer",i.Sale="sale",i.Deposit="deposit",i.Withdrawal="withdrawal",(n=v||(v={})).Verified="verified",n.Unverified="unverified",n.Spam="spam",n.Inactive="inactive",(a=w||(w={})).Erc721="ERC721",a.Erc1155="ERC1155",(s=_||(_={})).Pending="pending",s.Succeeded="succeeded",s.Failed="failed",(o=M||(M={})).Erc721="ERC721",o.Erc1155="ERC1155",(f=E||(E={})).Number="number",f.BoostPercentage="boost_percentage",f.BoostNumber="boost_number",f.Date="date",(A||(A={})).Royalty="ROYALTY",(S||(S={})).Erc20="ERC20";var tw=Object.freeze({__proto__:null,get APIError400AllOfCodeEnum(){return d},get APIError401AllOfCodeEnum(){return c},get APIError403AllOfCodeEnum(){return u},get APIError404AllOfCodeEnum(){return l},get APIError409AllOfCodeEnum(){return h},get APIError429AllOfCodeEnum(){return p},get APIError500AllOfCodeEnum(){return b},get APIError501AllOfCodeEnum(){return m},get ActiveOrderStatusNameEnum(){return g},get ActivityType(){return y},get AssetVerificationStatus(){return v},get CollectionContractType(){return w},get MintRequestStatus(){return _},get NFTContractType(){return M},get NFTMetadataAttributeDisplayTypeEnum(){return E},get SaleFeeTypeEnum(){return A},get TokenContractType(){return S}});class t_{config;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;constructor(e){this.config=e,this.assetApi=new q(e),this.balanceApi=new H(e),this.collectionApi=new G(e),this.depositsApi=new X(e),this.encodingApi=new Q(e),this.exchangeApi=new er(e),this.metadataApi=new ea(e),this.metadataRefreshesApi=new ef(e),this.mintsApi=new eu(e),this.nftCheckoutPrimaryApi=new ep(e),this.ordersApi=new eg(e),this.primarySalesApi=new ew(e),this.projectsApi=new eE(e),this.tokensApi=new ex(e),this.tradesApi=new ek(e),this.transfersApi=new eP(e),this.usersApi=new ej(e),this.withdrawalsApi=new eD(e)}}class tM{config;activitiesApi;chainsApi;collectionApi;nftOwnersApi;nftsApi;ordersApi;passportApi;passportProfileApi;guardianApi;constructor(e){this.config=e,this.activitiesApi=new e0(e.indexer),this.chainsApi=new e6(e.indexer),this.collectionApi=new e8(e.indexer),this.nftOwnersApi=new tn(e.indexer),this.nftsApi=new to(e.indexer),this.ordersApi=new tc(e.orderBook),this.passportApi=new th(e.passport),this.passportProfileApi=new tm(e.passport),this.guardianApi=new e9(e.passport)}}let tE={"x-sdk-version":"ts-immutable-sdk-1.53.2"},tA=({basePath:e,headers:t})=>{if(!e.trim())throw Error("basePath can not be empty");let r={...tE,...t||{}};return new eF({basePath:e,baseOptions:{headers:r}})},tS={getProduction:()=>tA({basePath:"https://api.x.immutable.com"}),getSandbox:()=>tA({basePath:"https://api.sandbox.x.immutable.com"})},tx={getProduction:()=>({indexer:tA({basePath:"https://api.immutable.com"}),orderBook:tA({basePath:"https://api.immutable.com"}),passport:tA({basePath:"https://api.immutable.com"})}),getSandbox:()=>({indexer:tA({basePath:"https://api.sandbox.immutable.com"}),orderBook:tA({basePath:"https://api.sandbox.immutable.com"}),passport:tA({basePath:"https://api.sandbox.immutable.com"})})}},{axios:"jhAcT","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hV3j7:[function(e,t,r){var i,n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Environment",()=>s.Environment),n.export(r,"ImmutableConfiguration",()=>s.ImmutableConfiguration),n.export(r,"EthSigner",()=>_.Signer),n.export(r,"ApiConfiguration",()=>E),n.export(r,"AssetsApi",()=>eS),n.export(r,"BalancesApi",()=>ex),n.export(r,"CollectionsApi",()=>eI),n.export(r,"Contracts",()=>eA),n.export(r,"DepositsApi",()=>eR),n.export(r,"EncodingApi",()=>ek),n.export(r,"ExchangesApi",()=>eT),n.export(r,"IMXClient",()=>ec),n.export(r,"IMXError",()=>C),n.export(r,"ImmutableX",()=>eu),n.export(r,"ImxConfiguration",()=>k),n.export(r,"MetadataApi",()=>eP),n.export(r,"MetadataRefreshesApi",()=>eO),n.export(r,"MetadataSchemaRequestTypeEnum",()=>eK),n.export(r,"MintsApi",()=>eC),n.export(r,"NftCheckoutPrimaryApi",()=>eN),n.export(r,"OrdersApi",()=>ej),n.export(r,"PrimarySalesApi",()=>eB),n.export(r,"ProjectsApi",()=>eL),n.export(r,"TokensApi",()=>eD),n.export(r,"TradesApi",()=>eF),n.export(r,"TransfersApi",()=>eU),n.export(r,"UsersApi",()=>eq),n.export(r,"WithdrawalsApi",()=>ez),n.export(r,"createConfig",()=>S),n.export(r,"createImmutableXConfiguration",()=>x),n.export(r,"createStarkSigner",()=>K),n.export(r,"generateLegacyStarkPrivateKey",()=>Y),n.export(r,"generateStarkPrivateKey",()=>$),n.export(r,"imxClientConfig",()=>T),n.export(r,"imxClientCreateStarkSigner",()=>K),n.export(r,"imxClientGenerateLegacyStarkPrivateKey",()=>Y),n.export(r,"production",()=>I),n.export(r,"sandbox",()=>R),n.export(r,"serializePackedSignature",()=>er),n.export(r,"signRegisterEthAddress",()=>ei),n.export(r,"starkEcOrder",()=>G);var a=e("@imtbl/generated-clients"),s=e("@imtbl/config"),o=e("axios"),f=n.interopDefault(o),d=e("@ethersproject/keccak256"),c=e("@ethersproject/strings"),u=e("bn.js"),l=n.interopDefault(u),h=e("enc-utils"),p=e("ethers"),b=e("@ethersproject/bytes"),m=e("hash.js"),g=n.interopDefault(m),y=e("elliptic"),v=n.interopDefault(y),w=e("ethereumjs-wallet");e("assert");var _=e("@ethersproject/abstract-signer"),M=e("c745b84b96ec5443").Buffer;class E extends a.imx.Configuration{}let A={"x-sdk-version":"ts-immutable-sdk-1.53.2"},S=({coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:i,basePath:n,headers:a,sdkVersion:o,baseConfig:f})=>{if(!n.trim())throw Error("basePath can not be empty");o&&(A["x-sdk-version"]=o),a={...a||{},...s.addKeysToHeadersOverride(f,{headers:a})?.headers||{},...A};let d={basePath:n,baseOptions:{headers:a}};return{apiConfiguration:new E(d),ethConfiguration:{coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:i}}},x=({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:i,registrationV4ContractAddress:n,baseConfig:a})=>S({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:i,registrationV4ContractAddress:n,sdkVersion:"ts-immutable-sdk-1.53.2",baseConfig:a}),I=({baseConfig:e})=>x({basePath:"https://api.x.immutable.com",chainID:1,coreContractAddress:"0x5FDCCA53617f4d2b9134B29090C87D01058e27e9",registrationContractAddress:"0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c",registrationV4ContractAddress:"0xac88a57943b5BBa1ecd931F8494cAd0B7F717590",baseConfig:e}),R=({baseConfig:e})=>x({basePath:"https://api.sandbox.x.immutable.com",chainID:11155111,coreContractAddress:"0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98",registrationContractAddress:"0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97",registrationV4ContractAddress:"0xd1527c65c6287ec5ab816d328eb83bb4cb690e92",baseConfig:e});class k{immutableXConfig;baseConfig;constructor({baseConfig:e,overrides:t}){if(this.baseConfig=e,t)this.immutableXConfig=t.immutableXConfig;else switch(e.environment){case s.Environment.SANDBOX:this.immutableXConfig=R({baseConfig:e});break;case s.Environment.PRODUCTION:this.immutableXConfig=I({baseConfig:e});break;default:this.immutableXConfig=R({baseConfig:e})}}}let T=e=>{if(!e)throw Error("configOptions is required");if(-1===Object.values(s.Environment).indexOf(e.environment))throw Error(`Invalid environment: ${e.environment}`);let t={baseConfig:new s.ImmutableConfiguration(e)};return t};class C extends Error{code;details;constructor({code:e,details:t,message:r}){super(r),this.code=e,this.details=t}}function P(e){if((0,f.default).isAxiosError(e)&&e.response){let t=e.response.data;return new C(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 C({code:"unknown_error_code",message:String(e)})}let O=[["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"]],N=new l.default("800000000000011000000000000000000000000000000000000000000000001",16),j=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),B=new v.default.ec(new v.default.curves.PresetCurve({type:"short",prime:null,p:N,a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:j,hash:g.default.sha256,gRed:!1,g:O[1]}));O.map(e=>B.curve.point(new l.default(e[0],16),new l.default(e[1],16)))[0],new l.default("0"),new l.default("1"),new l.default("3"),new l.default("4"),new l.default("1000"),new l.default("1001"),new l.default("1002"),new l.default("1003"),new l.default("0"),new l.default("1"),new l.default("400000",16),new l.default("80000000",16),new l.default("8000000000000000",16),new l.default("800000000000011000000000000000000000000000000000000000000000001",16),new l.default("800000000000000000000000000000000000000000000000000000000000000",16);let L=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),D=new l.default("FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141",16);function F(e,t,r){let i=h.hexToBinary(e),n=i.slice(t,r),a=h.binaryToNumber(n);return a}function U(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}function q(e){let t=0,r=U(e,0);for(;!r.lt(D.sub(D.mod(L)));)r=U(r.toString(16),t),t=t++;return r.mod(L).toString("hex")}(i||(i={})).StarkCurveInvalidMessageLength="invalid message length";class z{privateKey;keyPair;constructor(e){this.privateKey=e,this.keyPair=B.keyFromPrivate(e,"hex")}getAddress(){let e=this.keyPair.getPublic().getX().toString("hex");return h.sanitizeHex(e)}async signMessage(e){return this.serialize(this.keyPair.sign(this.fixMsgHashLen(e)))}serialize(e){return h.addHexPrefix(h.padLeft(e.r.toString("hex"),64)+h.padLeft(e.s.toString("hex"),64))}getYCoordinate(){let e=h.sanitizeBytes(this.keyPair.getPublic().getY().toString(16),2);return Promise.resolve(e)}fixMsgHashLen(e){if(e=h.removeHexPrefix(e),(e=new(0,l.default)(e,"hex").toString("hex")).length<=62)return e;if(63!==e.length)throw Error(i.StarkCurveInvalidMessageLength);return`${e}0`}}function K(e){return new z(e)}async function H(e){try{if(e){let t=await (0,f.default).get(`https://api.x.immutable.com/v1/users/${e}`),r=t.data;if(r?.accounts&&r.accounts.length>0)return{starkPublicKey:r.accounts[0],accountNotFound:!1}}}catch(e){if((0,f.default).isAxiosError(e)&&e.response?.data.code==="account_not_found")return{starkPublicKey:"",accountNotFound:!0}}}let{curves:W,ec:V}=v.default,G=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16);new V(new W.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:G.toString("hex"),hash:g.default.sha256,gRed:!1,g:["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"]}));let J=()=>{let e=new l.default("1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000",16);return e.sub(e.mod(G))};function Z(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}async function X(e,t,r){let i=function(e,t){let r=w.hdkey.fromMasterSeed(M.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKey();return new l.default(r)}(e,t),n=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=1;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(i);if(!function(e){let t=J(),r=Z(e.toString("hex",64),0);return r.gte(t)}(i))return n;let a=await H(r);if(void 0===a)throw Error("Error fetching stark public key from IMX");if(a.accountNotFound)return n;let s=new l.default(h.removeHexPrefix(a.starkPublicKey),16),o=await K(n).getAddress();if(s.eq(new l.default(h.removeHexPrefix(o),16)))return n;let f=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=0;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(i);if(o=await K(f).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return f;let d=w.hdkey.fromMasterSeed(M.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKeyString(),c=q(d);if(o=await K(c).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return c;throw Error("Can not deterministically generate stark private key - please contact support")}function $(){let e=B.genKeyPair();return q(e.getPrivate("hex"))}async function Y(e){let t=(await e.getAddress()).toLowerCase(),r=await e.signMessage("Only sign this request if you’ve initiated an action with Immutable X."),i=(0,b.splitSignature)(r).s,n=function(e,t,r,i){let n=(0,g.default).sha256().update(e).digest("hex"),a=(0,g.default).sha256().update(t).digest("hex"),s=F(n,-31),o=F(a,-31),f=F(r,-31),d=F(r,-62,-31);return`m/2645'/${s}'/${o}'/${f}'/${d}'/1`}("starkex","immutablex",t,0),a=await X(i,n,t);return a.padStart(64,"0")}function Q(e,t=64){var r;return e=h.removeHexPrefix(e),{r:new l.default(e.substring(0,t),"hex"),s:new l.default(e.substring(t,2*t),"hex"),recoveryParam:(r=e.substring(2*t,2*t+2)).trim()?-1!==new(0,l.default)(r,16).cmp(new l.default(27))?new(0,l.default)(r,16).sub(new l.default(27)).toNumber():new(0,l.default)(r,16).toNumber():void 0}}async function ee(e,t){let r=Q(await t.signMessage(e));return h.addHexPrefix(h.padLeft(r.r.toString(16),64)+h.padLeft(r.s.toString(16),64)+h.padLeft(r.recoveryParam?.toString(16)||"",2))}async function et(e){let t=Math.floor(Date.now()/1e3).toString(),r=await ee(t,e);return{timestamp:t,signature:r}}function er(e,t){return h.sanitizeHex(h.padLeft(e.r.toString(16),64)+h.padLeft(e.s.toString(16),64,"0")+h.padLeft(new(0,l.default)(h.removeHexPrefix(t),"hex").toString(16),64,"0"))}async function ei(e,t,r){let i=(0,p.utils).solidityKeccak256(["string","address","uint256"],["UserRegistration:",t,r]),n=new l.default(h.removeHexPrefix(i),16),a=n.mod(G),s=await e.signMessage(a.toString(16)),o=Q(s),f=h.sanitizeHex(await e.getYCoordinate());return er(o,f)}async function en(e,t,r){let i=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:n}=t,a={contract_address:t.contract_address,...n&&n.length>0&&{royalties:n.map(e=>({recipient:e.recipient,percentage:e.percentage}))},users:i,auth_signature:""},s=(0,d.keccak256)((0,c.toUtf8Bytes)(JSON.stringify(a))),o=await ee(s,e),f={users:a.users.map(e=>({user:e.ether_key,tokens:e.tokens})),...n&&n.length>0&&{royalties:n},contract_address:t.contract_address,auth_signature:o},u=await r.mintTokens({mintTokensRequestV2:[f]});return u.data}async function ea({ethSigner:e,starkSigner:t,request:r,exchangesApi:i}){let n=await e.getAddress(),a=r.amount,s=await i.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:n,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:a,receiver:r.receiver}}),{signable_message:o,payload_hash:f}=s.data,d=await ee(o,e),c=await t.signMessage(f),u={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:c},l=await i.createExchangeTransfer({id:r.transactionID,createTransferRequest:u,xImxEthAddress:n,xImxEthSignature:d});return{sent_signature:l?.data.sent_signature,status:l?.data.status?.toString(),time:l?.data.time,transfer_id:l?.data.transfer_id}}async function es({ethSigner:e,starkSigner:t,request:r,primarySalesApi:i}){let n=await e.getAddress(),a=await i.signableCreatePrimarySale(r),{signable_message:s,payload_hash:o}=a.data,f=await ee(s,e),d=await t.signMessage(o),c=a.data,u={body:{buyer_ether_key:c.buyer_ether_key,buyer_stark_key:c.buyer_stark_key,buyer_vault_id:c.buyer_vault_id,studio_ether_key:c.studio_ether_key,studio_data:c.studio_data,payment_amount:c.payment_amount,payment_asset_id:c.payment_asset_id,payment_recipient_ether_key:c.payment_recipient_ether_key,payment_recipient_stark_key:c.payment_recipient_stark_key,payment_recipient_vault_id:c.payment_recipient_vault_id,items_recipient_ether_key:c.items_recipient_ether_key,expiration_timestamp:c.expiration_timestamp,fees:c.fees,nonce:c.nonce,stark_signature:d}},l=await i.createPrimarySale(u,{headers:{"x-imx-eth-address":n,"x-imx-eth-signature":f}});return{...l.data}}async function eo({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let i=await t.signableAcceptPrimarySale({id:r}),n=i.data.signable_message,a=await ee(n,e),s=await t.acceptPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}async function ef({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let i=await t.signableRejectPrimarySale({id:r}),n=i.data.signable_message,a=await ee(n,e),s=await t.rejectPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}class ed{config;mintsApi;projectsApi;collectionsApi;metadataApi;metadataRefreshesApi;exchangesApi;primarySalesApi;isChainValid(e){return e===this.config.ethConfiguration.chainID}constructor(e,t,r,i,n,a,s,o){this.config=e,this.config=e,this.collectionsApi=t,this.exchangesApi=r,this.metadataApi=i,this.metadataRefreshesApi=n,this.mintsApi=a,this.primarySalesApi=s,this.projectsApi=o}async validateChain(e){let t=await e.getChainId();if(!this.isChainValid(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,f.default).get("/starkex-contract-version",e)}async mint(e,t){return await this.validateChain(e),en(e,t,this.mintsApi)}async exchangeTransfer(e,t){return await this.validateChain(e.ethSigner),ea({...e,request:t,exchangesApi:this.exchangesApi})}async getProject(e,t){let r=await et(e);return this.projectsApi.getProject({id:t,iMXSignature:r.signature,iMXTimestamp:r.timestamp})}async createCollection(e,t){let r=await et(e);return this.collectionsApi.createCollection({iMXSignature:r.signature,iMXTimestamp:r.timestamp,createCollectionRequest:t})}async updateCollection(e,t,r){let i=await et(e);return this.collectionsApi.updateCollection({iMXSignature:i.signature,iMXTimestamp:i.timestamp,address:t,updateCollectionRequest:r})}async addMetadataSchemaToCollection(e,t,r){let i=await et(e);return this.metadataApi.addMetadataSchemaToCollection({iMXSignature:i.signature,iMXTimestamp:i.timestamp,addMetadataSchemaToCollectionRequest:r,address:t})}async updateMetadataSchemaByName(e,t,r,i){let n=await et(e);return this.metadataApi.updateMetadataSchemaByName({iMXSignature:n.signature,iMXTimestamp:n.timestamp,address:t,name:r,metadataSchemaRequest:i})}async listMetadataRefreshes(e,t,r,i){let n=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getAListOfMetadataRefreshes({xImxEthSignature:n.signature,xImxEthTimestamp:n.timestamp,xImxEthAddress:a,collectionAddress:t,pageSize:r,cursor:i})}async getMetadataRefreshErrors(e,t,r,i){let n=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshErrors({xImxEthSignature:n.signature,xImxEthTimestamp:n.timestamp,xImxEthAddress:a,refreshId:t,pageSize:r,cursor:i})}async getMetadataRefreshResults(e,t){let r=await et(e),i=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshResults({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:i,refreshId:t})}async createMetadataRefresh(e,t){let r=await et(e),i=await e.getAddress();return this.metadataRefreshesApi.requestAMetadataRefresh({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:i,createMetadataRefreshRequest:t})}async createPrimarySale(e,t){return await this.validateChain(e.ethSigner),es({...e,request:t,primarySalesApi:this.primarySalesApi})}async acceptPrimarySale(e,t){return eo({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}async rejectPrimarySale(e,t){return ef({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}}class ec{immutableX;imxConfig;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;workflows;constructor(e){this.imxConfig=new k(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.primarySalesApi=this.immutableX.primarySalesApi,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 ed(this.imxConfig.immutableXConfig,this.immutableX.collectionApi,this.immutableX.exchangeApi,this.immutableX.metadataApi,this.immutableX.metadataRefreshesApi,this.immutableX.mintsApi,this.immutableX.primarySalesApi,this.immutableX.projectsApi)}getDeposit(e){return this.depositsApi.getDeposit(e).then(e=>e.data).catch(e=>{throw P(e)})}listDeposits(e){return this.depositsApi.listDeposits(e).then(e=>e.data).catch(e=>{throw P(e)})}getUser(e){return this.usersApi.getUsers({user:e}).then(e=>e.data).catch(e=>{throw P(e)})}getAsset(e){return this.assetApi.getAsset(e).then(e=>e.data).catch(e=>{throw P(e)})}listAssets(e){return this.assetApi.listAssets(e).then(e=>e.data).catch(e=>{throw P(e)})}createCollection(e,t){return this.workflows.createCollection(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getCollection(e){return this.collectionApi.getCollection(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollectionFilters(e){return this.collectionApi.listCollectionFilters(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollections(e){return this.collectionApi.listCollections(e).then(e=>e.data).catch(e=>{throw P(e)})}updateCollection(e,t,r){return this.workflows.updateCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}addMetadataSchemaToCollection(e,t,r){return this.workflows.addMetadataSchemaToCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataSchema(e){return this.metadataApi.getMetadataSchema(e).then(e=>e.data).catch(e=>{throw P(e)})}updateMetadataSchemaByName(e,t,r,i){return this.workflows.updateMetadataSchemaByName(e,t,r,i).then(e=>e.data).catch(e=>{throw P(e)})}listMetadataRefreshes(e,t,r,i){return this.workflows.listMetadataRefreshes(e,t,r,i).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshErrors(e,t,r,i){return this.workflows.getMetadataRefreshErrors(e,t,r,i).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshResults(e,t){return this.workflows.getMetadataRefreshResults(e,t).then(e=>e.data).catch(e=>{throw P(e)})}createMetadataRefresh(e,t){return this.workflows.createMetadataRefresh(e,t).then(e=>e.data).catch(e=>{throw P(e)})}async getProject(e,t){return this.workflows.getProject(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getBalance(e){return this.balanceApi.getBalance(e).then(e=>e.data).catch(e=>{throw P(e)})}listBalances(e){return this.balanceApi.listBalances(e).then(e=>e.data).catch(e=>{throw P(e)})}getMint(e){return this.mintsApi.getMint(e).then(e=>e.data).catch(e=>{throw P(e)})}listMints(e){return this.mintsApi.listMints(e).then(e=>e.data).catch(e=>{throw P(e)})}mint(e,t){return this.workflows.mint(e,t)}listWithdrawals(e){return this.withdrawalsApi.listWithdrawals(e).then(e=>e.data).catch(e=>{throw P(e)})}getWithdrawal(e){return this.withdrawalsApi.getWithdrawal(e).then(e=>e.data).catch(e=>{throw P(e)})}getOrder(e){return this.ordersApi.getOrderV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listOrders(e){return this.ordersApi.listOrdersV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getTrade(e){return this.tradesApi.getTradeV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listTrades(e){return this.tradesApi.listTradesV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getToken(e){return this.tokensApi.getToken(e).then(e=>e.data).catch(e=>{throw P(e)})}listTokens(e){return this.tokensApi.listTokens(e).then(e=>e.data).catch(e=>{throw P(e)})}getTransfer(e){return this.transfersApi.getTransfer(e).then(e=>e.data).catch(e=>{throw P(e)})}listTransfers(e){return this.transfersApi.listTransfers(e).then(e=>e.data).catch(e=>{throw P(e)})}createExchange(e){return this.exchangeApi.createExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchange(e){return this.exchangeApi.getExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchanges(e){return this.exchangeApi.getExchanges(e).then(e=>e.data).catch(e=>{throw P(e)})}exchangeTransfer(e,t){return this.workflows.exchangeTransfer(e,t)}createNftPrimary(e){return this.nftCheckoutPrimaryApi.createNftPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getCurrenciesNFTCheckoutPrimary(e){return this.nftCheckoutPrimaryApi.getCurrenciesNFTCheckoutPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransaction(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransaction(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransactions(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransactions(e).then(e=>e.data).catch(e=>{throw P(e)})}createPrimarySale(e,t){return this.workflows.createPrimarySale(e,t).catch(e=>{throw P(e)})}acceptPrimarySale(e,t){return this.workflows.acceptPrimarySale(e,t).catch(e=>{throw P(e)})}rejectPrimarySale(e,t){return this.workflows.rejectPrimarySale(e,t).catch(e=>{throw P(e)})}}class eu extends ec{}let el=[{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"}],eh=[{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"}],ep=[{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"}],eb=[{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"}],em="0x60806040523480156200001157600080fd5b5060405162001313380380620013138339818101604052810190620000379190620000fc565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200012e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000b08262000083565b9050919050565b6000620000c482620000a3565b9050919050565b620000d681620000b7565b8114620000e257600080fd5b50565b600081519050620000f681620000cb565b92915050565b6000602082840312156200011557620001146200007e565b5b60006200012584828501620000e5565b91505092915050565b6111d5806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634280d50a1161005b5780634280d50a146100ff5780634627d5981461011b578063579a698814610137578063ea864adf1461016757610088565b80630a9c3beb1461008d5780630f08025f146100a95780631259cc6c146100c7578063352eb84c146100e3575b600080fd5b6100a760048036038101906100a29190610a72565b610183565b005b6100b16102ae565b6040516100be9190610b8d565b60405180910390f35b6100e160048036038101906100dc9190610ba8565b6102d2565b005b6100fd60048036038101906100f89190610c57565b6103fd565b005b61011960048036038101906101149190610cf1565b610525565b005b61013560048036038101906101309190610da0565b610650565b005b610151600480360381019061014c9190610e3a565b610778565b60405161015e9190610e82565b60405180910390f35b610181600480360381019061017c9190610e9d565b61084a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016101e29493929190610fa1565b600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016102739493929190610fe1565b600060405180830381600087803b15801561028d57600080fd5b505af11580156102a1573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016103319493929190610fa1565b600060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebef0fd0878585856040518563ffffffff1660e01b81526004016103c29493929190611021565b600060405180830381600087803b1580156103dc57600080fd5b505af11580156103f0573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b815260040161045c9493929190610fa1565b600060405180830381600087803b15801561047657600080fd5b505af115801561048a573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016104eb93929190611066565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b50505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016105849493929190610fa1565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae1cdde6878585856040518563ffffffff1660e01b8152600401610615949392919061109d565b600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b81526004016106af9493929190610fa1565b600060405180830381600087803b1580156106c957600080fd5b505af11580156106dd573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314cd70e48684846040518463ffffffff1660e01b815260040161073e939291906110e2565b600060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b50505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016107ea9190611119565b602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611149565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4868686866040518563ffffffff1660e01b81526004016108a99493929190610fa1565b600060405180830381600087803b1580156108c357600080fd5b505af11580156108d7573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663441a3e7085836040518363ffffffff1660e01b8152600401610936929190611176565b600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b505050505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109a482610979565b9050919050565b6109b481610999565b81146109bf57600080fd5b50565b6000813590506109d1816109ab565b92915050565b6000819050919050565b6109ea816109d7565b81146109f557600080fd5b50565b600081359050610a07816109e1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3257610a31610a0d565b5b8235905067ffffffffffffffff811115610a4f57610a4e610a12565b5b602083019150836001820283011115610a6b57610a6a610a17565b5b9250929050565b600080600080600080600060a0888a031215610a9157610a9061096f565b5b6000610a9f8a828b016109c2565b9750506020610ab08a828b016109f8565b965050604088013567ffffffffffffffff811115610ad157610ad0610974565b5b610add8a828b01610a1c565b95509550506060610af08a828b016109f8565b935050608088013567ffffffffffffffff811115610b1157610b10610974565b5b610b1d8a828b01610a1c565b925092505092959891949750929550565b6000819050919050565b6000610b53610b4e610b4984610979565b610b2e565b610979565b9050919050565b6000610b6582610b38565b9050919050565b6000610b7782610b5a565b9050919050565b610b8781610b6c565b82525050565b6000602082019050610ba26000830184610b7e565b92915050565b600080600080600080600060c0888a031215610bc757610bc661096f565b5b6000610bd58a828b016109c2565b9750506020610be68a828b016109f8565b965050604088013567ffffffffffffffff811115610c0757610c06610974565b5b610c138a828b01610a1c565b95509550506060610c268a828b016109f8565b9350506080610c378a828b016109f8565b92505060a0610c488a828b016109c2565b91505092959891949750929550565b60008060008060008060a08789031215610c7457610c7361096f565b5b6000610c8289828a016109c2565b9650506020610c9389828a016109f8565b955050604087013567ffffffffffffffff811115610cb457610cb3610974565b5b610cc089828a01610a1c565b94509450506060610cd389828a016109f8565b9250506080610ce489828a016109f8565b9150509295509295509295565b600080600080600080600060c0888a031215610d1057610d0f61096f565b5b6000610d1e8a828b016109c2565b9750506020610d2f8a828b016109f8565b965050604088013567ffffffffffffffff811115610d5057610d4f610974565b5b610d5c8a828b01610a1c565b95509550506060610d6f8a828b016109f8565b9350506080610d808a828b016109f8565b92505060a0610d918a828b016109f8565b91505092959891949750929550565b60008060008060008060a08789031215610dbd57610dbc61096f565b5b6000610dcb89828a016109c2565b9650506020610ddc89828a016109f8565b955050604087013567ffffffffffffffff811115610dfd57610dfc610974565b5b610e0989828a01610a1c565b94509450506060610e1c89828a016109f8565b9250506080610e2d89828a016109c2565b9150509295509295509295565b600060208284031215610e5057610e4f61096f565b5b6000610e5e848285016109f8565b91505092915050565b60008115159050919050565b610e7c81610e67565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600080600080600060808688031215610eb957610eb861096f565b5b6000610ec7888289016109c2565b9550506020610ed8888289016109f8565b945050604086013567ffffffffffffffff811115610ef957610ef8610974565b5b610f0588828901610a1c565b93509350506060610f18888289016109f8565b9150509295509295909350565b610f2e81610999565b82525050565b610f3d816109d7565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610f808385610f43565b9350610f8d838584610f54565b610f9683610f63565b840190509392505050565b6000606082019050610fb66000830187610f25565b610fc36020830186610f34565b8181036040830152610fd6818486610f74565b905095945050505050565b6000606082019050610ff66000830187610f34565b6110036020830186610f34565b8181036040830152611016818486610f74565b905095945050505050565b60006080820190506110366000830187610f34565b6110436020830186610f34565b6110506040830185610f34565b61105d6060830184610f25565b95945050505050565b600060608201905061107b6000830186610f34565b6110886020830185610f34565b6110956040830184610f34565b949350505050565b60006080820190506110b26000830187610f34565b6110bf6020830186610f34565b6110cc6040830185610f34565b6110d96060830184610f34565b95945050505050565b60006060820190506110f76000830186610f34565b6111046020830185610f34565b6111116040830184610f25565b949350505050565b600060208201905061112e6000830184610f34565b92915050565b600081519050611143816109ab565b92915050565b60006020828403121561115f5761115e61096f565b5b600061116d84828501611134565b91505092915050565b600060408201905061118b6000830185610f34565b6111986020830184610f34565b939250505056fea2646970667358221220ec3495278afe78566e74b538d48e94b094c110ca38b03493e90e5e382cc99d0264736f6c63430008130033",eg=e=>e.length>1;class ey extends p.ContractFactory{constructor(...e){eg(e)?super(...e):super(eb,em,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=em;static abi=eb;static createInterface(){return new p.utils.Interface(eb)}static connect(e,t){return new p.Contract(e,eb,t)}}let ev=[{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"}],ew=[{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"}],e_="0x60a06040523480156200001157600080fd5b50604051620012bc380380620012bc8339818101604052810190620000379190620000dc565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000a48262000077565b9050919050565b620000b68162000097565b8114620000c257600080fd5b50565b600081519050620000d681620000ab565b92915050565b600060208284031215620000f557620000f462000072565b5b60006200010584828501620000c5565b91505092915050565b608051611145620001776000396000818161016d01528181610229015281816102c2015281816102f30152818161038501528181610429015281816104bb0152818161056e01528181610629015281816106c9015281816107c4015261085b01526111456000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063352eb84c1161005b578063352eb84c146100da57806343fa186d146100f6578063579a698814610112578063d2fc99b5146101425761007d565b8063022cabbc146100825780630d8e6e2c1461009e5780630f08025f146100bc575b600080fd5b61009c600480360381019061009791906109fb565b61015e565b005b6100a6610225565b6040516100b39190610b13565b60405180910390f35b6100c46102c0565b6040516100d19190610b94565b60405180910390f35b6100f460048036038101906100ef9190610baf565b6102e4565b005b610110600480360381019061010b9190610c49565b61041a565b005b61012c60048036038101906101279190610d05565b610553565b6040516101399190610d4d565b60405180910390f35b61015c60048036038101906101579190610d68565b610625565b005b61016784610553565b6101fd577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187868686866040518563ffffffff1660e01b81526004016101ca9493929190610e26565b600060405180830381600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050505b61021e8573ffffffffffffffffffffffffffffffffffffffff168583610625565b5050505050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610292573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906102bb9190610f87565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102ed85610553565b610383577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187878787876040518563ffffffff1660e01b81526004016103509493929190610e26565b600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016103e093929190610fd0565b600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b50505050505050505050565b61042386610553565b6104b9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187888888886040518563ffffffff1660e01b81526004016104869493929190610e26565b600060405180830381600087803b1580156104a057600080fd5b505af11580156104b4573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016105189493929190611007565b600060405180830381600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b5050505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016105c59190611047565b602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106069190611077565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085846040518363ffffffff1660e01b81526004016106829291906110a4565b602060405180830381865afa15801561069f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c391906110e2565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085856040518363ffffffff1660e01b81526004016107229291906110a4565b602060405180830381865afa15801561073f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906110e2565b90506000821480156107755750600081145b156107b95784846040517f1362cdf20000000000000000000000000000000000000000000000000000000081526004016107b09291906110a4565b60405180910390fd5b6000821115610850577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7086856040518363ffffffff1660e01b815260040161081d9291906110a4565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b505050505b60008111156108e7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7085856040518363ffffffff1660e01b81526004016108b49291906110a4565b600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061092d82610902565b9050919050565b61093d81610922565b811461094857600080fd5b50565b60008135905061095a81610934565b92915050565b6000819050919050565b61097381610960565b811461097e57600080fd5b50565b6000813590506109908161096a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126109bb576109ba610996565b5b8235905067ffffffffffffffff8111156109d8576109d761099b565b5b6020830191508360018202830111156109f4576109f36109a0565b5b9250929050565b600080600080600060808688031215610a1757610a166108f8565b5b6000610a258882890161094b565b9550506020610a3688828901610981565b945050604086013567ffffffffffffffff811115610a5757610a566108fd565b5b610a63888289016109a5565b93509350506060610a7688828901610981565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b83811015610abd578082015181840152602081019050610aa2565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ae582610a83565b610aef8185610a8e565b9350610aff818560208601610a9f565b610b0881610ac9565b840191505092915050565b60006020820190508181036000830152610b2d8184610ada565b905092915050565b6000819050919050565b6000610b5a610b55610b5084610902565b610b35565b610902565b9050919050565b6000610b6c82610b3f565b9050919050565b6000610b7e82610b61565b9050919050565b610b8e81610b73565b82525050565b6000602082019050610ba96000830184610b85565b92915050565b60008060008060008060a08789031215610bcc57610bcb6108f8565b5b6000610bda89828a0161094b565b9650506020610beb89828a01610981565b955050604087013567ffffffffffffffff811115610c0c57610c0b6108fd565b5b610c1889828a016109a5565b94509450506060610c2b89828a01610981565b9250506080610c3c89828a01610981565b9150509295509295509295565b600080600080600080600060a0888a031215610c6857610c676108f8565b5b6000610c768a828b0161094b565b9750506020610c878a828b01610981565b965050604088013567ffffffffffffffff811115610ca857610ca76108fd565b5b610cb48a828b016109a5565b95509550506060610cc78a828b01610981565b935050608088013567ffffffffffffffff811115610ce857610ce76108fd565b5b610cf48a828b016109a5565b925092505092959891949750929550565b600060208284031215610d1b57610d1a6108f8565b5b6000610d2984828501610981565b91505092915050565b60008115159050919050565b610d4781610d32565b82525050565b6000602082019050610d626000830184610d3e565b92915050565b600080600060608486031215610d8157610d806108f8565b5b6000610d8f86828701610981565b9350506020610da086828701610981565b9250506040610db186828701610981565b9150509250925092565b610dc481610922565b82525050565b610dd381610960565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000610e058385610dd9565b9350610e12838584610dea565b610e1b83610ac9565b840190509392505050565b6000606082019050610e3b6000830187610dbb565b610e486020830186610dca565b8181036040830152610e5b818486610df9565b905095945050505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610ea382610ac9565b810181811067ffffffffffffffff82111715610ec257610ec1610e6b565b5b80604052505050565b6000610ed56108ee565b9050610ee18282610e9a565b919050565b600067ffffffffffffffff821115610f0157610f00610e6b565b5b610f0a82610ac9565b9050602081019050919050565b6000610f2a610f2584610ee6565b610ecb565b905082815260208101848484011115610f4657610f45610e66565b5b610f51848285610a9f565b509392505050565b600082601f830112610f6e57610f6d610996565b5b8151610f7e848260208601610f17565b91505092915050565b600060208284031215610f9d57610f9c6108f8565b5b600082015167ffffffffffffffff811115610fbb57610fba6108fd565b5b610fc784828501610f59565b91505092915050565b6000606082019050610fe56000830186610dca565b610ff26020830185610dca565b610fff6040830184610dca565b949350505050565b600060608201905061101c6000830187610dca565b6110296020830186610dca565b818103604083015261103c818486610df9565b905095945050505050565b600060208201905061105c6000830184610dca565b92915050565b60008151905061107181610934565b92915050565b60006020828403121561108d5761108c6108f8565b5b600061109b84828501611062565b91505092915050565b60006040820190506110b96000830185610dca565b6110c66020830184610dca565b9392505050565b6000815190506110dc8161096a565b92915050565b6000602082840312156110f8576110f76108f8565b5b6000611106848285016110cd565b9150509291505056fea2646970667358221220c33e1830b470bf1e012ac831ec80242d6268e5e6e990b7e1574a230f71533ebd64736f6c63430008130033",eM=e=>e.length>1;class eE extends p.ContractFactory{constructor(...e){eM(e)?super(...e):super(ew,e_,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=e_;static abi=ew;static createInterface(){return new p.utils.Interface(ew)}static connect(e,t){return new p.Contract(e,ew,t)}}var eA=Object.freeze({__proto__:null,Core:class{static abi=ep;static createInterface(){return new p.utils.Interface(ep)}static connect(e,t){return new p.Contract(e,ep,t)}},CoreV4:class{static abi=ev;static createInterface(){return new p.utils.Interface(ev)}static connect(e,t){return new p.Contract(e,ev,t)}},IERC20:class{static abi=el;static createInterface(){return new p.utils.Interface(el)}static connect(e,t){return new p.Contract(e,el,t)}},IERC721:class{static abi=eh;static createInterface(){return new p.utils.Interface(eh)}static connect(e,t){return new p.Contract(e,eh,t)}},Registration:ey,RegistrationV4:eE});class eS extends a.imx.AssetsApi{}class ex extends a.imx.BalancesApi{}class eI extends a.imx.CollectionsApi{}class eR extends a.imx.DepositsApi{}class ek extends a.imx.EncodingApi{}class eT extends a.imx.ExchangesApi{}class eC extends a.imx.MintsApi{}class eP extends a.imx.MetadataApi{}class eO extends a.imx.MetadataRefreshesApi{}class eN extends a.imx.NftCheckoutPrimaryApi{}class ej extends a.imx.OrdersApi{}class eB extends a.imx.PrimarySalesApi{}class eL extends a.imx.ProjectsApi{}class eD extends a.imx.TokensApi{}class eF extends a.imx.TradesApi{}class eU extends a.imx.TransfersApi{}class eq extends a.imx.UsersApi{}class ez extends a.imx.WithdrawalsApi{}let eK=a.imx.MetadataSchemaRequestTypeEnum},{c745b84b96ec5443:"2MMCE","@imtbl/generated-clients":"2eu25","@imtbl/config":"ed8SG",axios:"jhAcT","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","bn.js":"lXPno","enc-utils":"hJwty",ethers:"8wpcu","@ethersproject/bytes":"19SwW","hash.js":"2Tlxk",elliptic:"gHKeo","ethereumjs-wallet":"3EQrb",assert:"aeMhE","@ethersproject/abstract-signer":"j6EbC","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ed8SG:[function(e,t,r){var i,n,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"Environment",()=>a),o.export(r,"ImmutableConfiguration",()=>d),o.export(r,"KeyHeaders",()=>s),o.export(r,"addKeysToHeadersOverride",()=>c);var f=e("@imtbl/metrics");(i=a||(a={})).PRODUCTION="production",i.SANDBOX="sandbox",(n=s||(s={})).API_KEY="x-immutable-api-key",n.PUBLISHABLE_KEY="x-immutable-publishable-key",n.RATE_LIMITING_KEY="x-api-key";class d{environment;rateLimitingKey;apiKey;publishableKey;constructor(e){this.environment=e.environment,this.publishableKey=e.publishableKey,this.apiKey=e.apiKey,this.rateLimitingKey=e.rateLimitingKey,(0,f.setEnvironment)(e.environment),(0,f.track)("config","created_imtbl_config")}}let c=(e,t)=>{if(!e||!e.apiKey&&!e.publishableKey&&!e.rateLimitingKey)return t;let r={};return(e.apiKey&&(r[s.API_KEY]=e.apiKey),e.publishableKey&&(r[s.PUBLISHABLE_KEY]=e.publishableKey,(0,f.setPublishableApiKey)(e.publishableKey)),e.rateLimitingKey&&(r[s.RATE_LIMITING_KEY]=e.rateLimitingKey),t&&t.headers)?{...t,headers:{...r,...t.headers}}:{...t,headers:r}}},{"@imtbl/metrics":"dO0KB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dO0KB:[function(e,t,r){let i,n;var a,s,o,f,d=e("@parcel/transformer-js/src/esmodule-helpers.js");d.defineInteropFlag(r),d.export(r,"Detail",()=>o),d.export(r,"getDetail",()=>ed),d.export(r,"identify",()=>ea),d.export(r,"setEnvironment",()=>es),d.export(r,"setPassportClientId",()=>eo),d.export(r,"setPublishableApiKey",()=>ef),d.export(r,"track",()=>V),d.export(r,"trackDuration",()=>$),d.export(r,"trackError",()=>ei),d.export(r,"trackFlow",()=>er),d.export(r,"utils",()=>ec);var c=e("axios"),u=d.interopDefault(c),l=e("lru-memorise"),h=e("global-const"),p=e("6a0bfe3548874972").Buffer;e("15cbbe915ba0ee1");let b=()=>"undefined"==typeof window,m=()=>!b(),g=()=>m()&&window.localStorage,y=e=>{if(null!==e)try{return JSON.parse(e)}catch(t){return e}},v=e=>"string"==typeof e?e:JSON.stringify(e),w=e=>`__IMX-${e}`;function _(e){if(g())return y(window.localStorage.getItem(w(e)))}let M=(e,t)=>!!g()&&(window.localStorage.setItem(w(e),v(t)),!0);var E=Object.freeze({__proto__:null,deleteItem:e=>!!g()&&(window.localStorage.removeItem(w(e)),!0),getItem:_,setItem:M});let A=0,S=e=>{let t=1e3*parseInt(e,10),r=new Date(t),i=new Date;return A=r.getTime()-i.getTime()},x=()=>{let e=new Date().getTime()+A,t=new Date(e).toISOString();return t};async function I(e,t){let r=(0,u.default).create({baseURL:"https://api.immutable.com"}),i=JSON.stringify(t),n={payload:p.from(i).toString("base64")},a=await r.post(e,n);return a.data}(a=o||(o={})).RUNTIME_ID="rid",a.PASSPORT_CLIENT_ID="passportClientId",a.ENVIRONMENT="env",a.PUBLISHABLE_API_KEY="pak",a.IDENTITY="uid",a.DOMAIN="domain",a.SDK_VERSION="sdkVersion",(s=f||(f={})).EVENTS="metrics-events",s.RUNTIME="metrics-runtime",i=_(f.EVENTS)||[],n=_(f.RUNTIME)||{};let R=(e,t)=>{n={...n,[e]:t},M(f.RUNTIME,n)},k=e=>{if(void 0!==n[e])return n[e]},T=()=>n,C=()=>i,P=e=>{i.push(e),M(f.EVENTS,i)},O=e=>{i=i.slice(e),M(f.EVENTS,i)},N=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},j="1.53.2",B=()=>b()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",L=()=>{let e;if(b())return"";try{window.self!==window.top&&(e=B())}catch(e){}return e||(e=window.location.hostname),e},D=()=>{if(R(o.SDK_VERSION,j),b())return{browser:"nodejs",sdkVersion:j};let e=L();return e&&R(o.DOMAIN,e),{sdkVersion:j,browser:window.navigator.userAgent,domain:e,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},F=!1,U=()=>F,q=async()=>{F=!0;try{let e=N(D()),t=k(o.RUNTIME_ID),r=k(o.IDENTITY),i=await I("/v1/sdk/initialise",{version:1,data:{runtimeDetails:e,runtimeId:t,uId:r}}),{runtimeId:n,sTime:a}=i;R(o.RUNTIME_ID,n),S(a)}catch(e){F=!1}};function z(e,t){return(...r)=>{try{let i=e(...r);if(i instanceof Promise)return i.catch(()=>t);return i}catch(e){return t}}}let K=z(function(){return!m()&&!1},!1),H="imtbl__metrics",W=(e,t)=>(0,h.getGlobalisedValue)(H,e,t),V=z(((e,t)=>{let r=(0,l.memorise)(t,{lruOptions:{ttl:5e3,max:1e3}});return(0,h.getGlobalisedValue)(H,e,r)})("track",(e,t,r)=>{let i={event:`${e}.${t}`,time:x(),...r&&{properties:N(r)}};P(i)})),G=async()=>{if(!1===U()){await q();return}let e=C();if(0===e.length)return;let t=e.length,r=T(),i=await I("/v1/sdk/metrics",{version:1,data:{events:e,details:r}});i instanceof Error||O(t)},J=z(G),Z=async()=>{await J(),setTimeout(Z,5e3)},X=!1;K()||z(W("startFlushing",()=>{X||(X=!0,Z())}))();let $=(e,t,r,i)=>V(e,t,{...i||{},duration:Math.round(r)}),Y=()=>{let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`},Q=(...e)=>{let t=e.some(e=>!!e);if(!t)return{};let r={};return e.forEach(e=>{e&&(r={...r,...e})}),r},ee=e=>e.replace(/[^a-zA-Z0-9\s\-_]/g,""),et=(e,t)=>`${e}_${ee(t)}`,er=z((e,t,r)=>{let i=Y(),n=Date.now(),a=0,s=0,o={},f=(...e)=>Q(o,...e,{flowId:i,flowName:t});o=f(r);let d=(r,i)=>{let n=et(t,r),o=0,d=performance.now();a>0&&(o=d-s);let c=f(i,{flowEventName:r,flowStep:a});$(e,n,o,c),a++,s=d};return d("Start"),{details:{moduleName:e,flowName:t,flowId:i,flowStartTime:n},addEvent:z(d),addFlowProperties:z(e=>{e&&(o=f(e))})}}),ei=z((e,t,r,i)=>{let{message:n}=r,a=r.stack||"",{cause:s}=r;s instanceof Error&&(a=`${a} +)[]`,eW=e=>e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit??j.constants.Zero,target:e.to??j.constants.AddressZero,value:e.value??j.constants.Zero,data:e.data??[]})),eG=(e,t)=>{let r=(0,j.utils).defaultAbiCoder.encode(["uint256",eV],[e,t]);return(0,j.utils).keccak256(r)},eJ=e=>(0,j.utils).defaultAbiCoder.encode([eV],[e]),eZ=async(e,t)=>{try{let r=new j.Contract(t,L.walletContracts.mainModule.abi,e),i=await r.nonce();if(i instanceof j.BigNumber)return i}catch(e){if(e instanceof Error&&"code"in e&&e.code===j.errors.CALL_EXCEPTION)return(0,j.BigNumber).from(0);throw e}throw Error("Unexpected result from contract.nonce() call.")},eX=(e,t,r)=>(0,j.utils).solidityPack(["string","uint256","address","bytes32"],["\x19\x01",e,t,r]),e$=async(e,t,r,i,n)=>{let a=eW(e),s=eG(t,a),o=eX(r,i,s),f=(0,j.utils).keccak256(o),d=(0,j.utils).arrayify(f),c=performance.now(),u=await n.signMessage(d);(0,A.trackDuration)("passport","magicSignMessageGetSignedMetaTransactions",Math.round(performance.now()-c));let l=`${u}02`,h=(0,D.v1).signature.encodeSignature({version:1,threshold:1,signers:[{isDynamic:!1,unrecovered:!0,weight:1,signature:l}]}),p=new j.utils.Interface(L.walletContracts.mainModule.abi);return p.encodeFunctionData(p.getFunction("execute"),[a,t,h])},eY=e=>{let t=`0x0000${e}`;return(0,D.v1).signature.decodeSignature(t)},eQ=(e,t,r)=>{let i=`${e}02`,{signers:n}=eY(r),a=[...n,{isDynamic:!1,unrecovered:!0,weight:1,signature:i,address:t}],s=a.sort((e,t)=>{let r=(0,j.BigNumber).from(e.address),i=(0,j.BigNumber).from(t.address);return r.lte(i)?-1:r.eq(i)?0:1});return(0,D.v1).signature.encodeSignature({version:1,threshold:2,signers:s})},e0=async(e,t,r,i,n)=>{let a={...e.types};delete a.EIP712Domain;let{_TypedDataEncoder:s}=j.utils,o=s.hash(e.domain,a,e.message),f=eX(r,i,o),d=(0,j.utils).keccak256(f),c=(0,j.utils).arrayify(d),u=performance.now(),l=await n.signMessage(c);(0,A.trackDuration)("passport","magicSignMessageTypedData",Math.round(performance.now()-u));let h=await n.getAddress();return eQ(l,h,t)},e1=async(e,t,r,i)=>{let n=(0,j.utils).hashMessage(t),a=eX(e,i,n),s=(0,j.utils).keccak256(a),o=(0,j.utils).arrayify(s);return r.signMessage(o)},e2=e=>`eip155:${e}`;class e6{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(),i=performance.now(),n=await fetch(`${this.config.relayerUrl}/v1/transactions`,{method:"POST",headers:{Authorization:`Bearer ${r.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify(t)});(0,A.trackDuration)("passport","postToRelayer",Math.round(performance.now()-i),{rpcMethod:e.method});let a=await n.json();if(a.error)throw a.error;return a}async ethSendTransaction(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),i={method:"eth_sendTransaction",params:[{to:e,data:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}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.detectNetwork(),i={method:"im_getFeeOptions",params:[{userAddress:e,data:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}async imSignTypedData(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),i={method:"im_signTypedData",params:[{address:e,eip712Payload:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}async imSign(e,t){let{chainId:r}=await this.rpcProvider.detectNetwork(),i={method:"im_sign",params:[{address:e,message:t,chainId:e2(r)}]},{result:n}=await this.postToRelayer(i);return n}}(f=m||(m={}))[f.USER_REJECTED_REQUEST=4001]="USER_REJECTED_REQUEST",f[f.UNAUTHORIZED=4100]="UNAUTHORIZED",f[f.UNSUPPORTED_METHOD=4200]="UNSUPPORTED_METHOD",f[f.DISCONNECTED=4900]="DISCONNECTED",(d=g||(g={}))[d.RPC_SERVER_ERROR=-32e3]="RPC_SERVER_ERROR",d[d.INVALID_REQUEST=-32600]="INVALID_REQUEST",d[d.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",d[d.INVALID_PARAMS=-32602]="INVALID_PARAMS",d[d.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",d[d.PARSE_ERROR=-32700]="PARSE_ERROR",d[d.TRANSACTION_REJECTED=-32003]="TRANSACTION_REJECTED";class e3 extends Error{message;code;constructor(e,t){super(t),this.message=t,this.code=e}}async function e5({authManager:e,ethSigner:t,multiRollupApiClients:r,accessToken:i,rpcProvider:n,flow:a}){let s=t.getAddress();s.then(()=>a.addEvent("endGetAddress"));let o=(0,N.signRaw)("Only sign this message from Immutable Passport",t);o.then(()=>a.addEvent("endSignRaw"));let f=n.detectNetwork();f.then(()=>a.addEvent("endDetectNetwork"));let d=r.chainsApi.listChains();d.then(()=>a.addEvent("endListChains"));let[c,u,l,h]=await Promise.all([s,o,f,d]),p=e2(l.chainId),b=h.data?.result?.find(e=>e.id===p)?.name;if(!b)throw new e3(g.INTERNAL_ERROR,`Chain name does not exist on for chain id ${l.chainId}`);try{let t=await r.passportApi.createCounterfactualAddressV2({chainName:b,createCounterfactualAddressRequest:{ethereum_address:c,ethereum_signature:u}},{headers:{Authorization:`Bearer ${i}`}});return a.addEvent("endCreateCounterfactualAddress"),e.forceUserRefreshInBackground(),t.data.counterfactual_address}catch(e){throw new e3(g.INTERNAL_ERROR,`Failed to create counterfactual address: ${e}`)}}let e8="Transaction requires confirmation but this functionality is not supported in this environment. Please contact Immutable support if you need to enable this feature.",e4=e=>(0,j.BigNumber).from(e).toString(),e7=e=>{try{return e.map(e=>({delegateCall:!0===e.delegateCall,revertOnError:!0===e.revertOnError,gasLimit:e.gasLimit?e4(e.gasLimit):"0",target:e.to??j.ethers.constants.AddressZero,value:e.value?e4(e.value):"0",data:e.data?e.data.toString():"0x"}))}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INVALID_PARAMS,`Transaction failed to parsing: ${e}`)}};class e9{guardianApi;confirmationScreen;crossSdkBridgeEnabled;authManager;constructor({confirmationScreen:e,config:t,authManager:r,guardianApi:i}){this.confirmationScreen=e,this.crossSdkBridgeEnabled=t.crossSdkBridgeEnabled,this.guardianApi=i,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 this.confirmationScreen.closeWindow(),e}}}withDefaultConfirmationScreenTask(e){return this.withConfirmationScreenTask()(e)}async evaluateImxTransaction({payloadHash:e}){let t=await this.authManager.getUserImx(),r={Authorization:`Bearer ${t.accessToken}`},i=await eO(async()=>this.guardianApi.getTransactionByID({transactionID:e,chainType:"starkex"},{headers:r}),{finallyFn:()=>{this.confirmationScreen.closeWindow()}});if(!i.data.id)throw Error("Transaction doesn't exists");let n=await this.guardianApi.evaluateTransaction({id:e,transactionEvaluationRequest:{chainType:"starkex"}},{headers:r}),{confirmationRequired:a}=n.data;if(a){if(this.crossSdkBridgeEnabled)throw Error(e8);let r=await this.confirmationScreen.requestConfirmation(e,t.imx.ethAddress,_.mr.TransactionApprovalRequestChainTypeEnum.Starkex);if(!r.confirmed)throw Error("Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let i=await this.authManager.getUserZkEvm(),n={Authorization:`Bearer ${i.accessToken}`},a=e7(r);try{let r=await this.guardianApi.evaluateTransaction({id:"evm",transactionEvaluationRequest:{chainType:"evm",chainId:e,transactionData:{nonce:t,userAddress:i.zkEvm.ethAddress,metaTransactions:a}}},{headers:n});return r.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INTERNAL_ERROR,`Transaction failed to validate with error: ${e}`)}}async validateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}){let i=await this.evaluateEVMTransaction({chainId:e,nonce:t,metaTransactions:r}),{confirmationRequired:n,transactionId:a}=i;if(n&&this.crossSdkBridgeEnabled)throw new e3(g.TRANSACTION_REJECTED,e8);if(n&&a){let t=await this.authManager.getUserZkEvm(),r=await this.confirmationScreen.requestConfirmation(a,t.zkEvm.ethAddress,_.mr.TransactionApprovalRequestChainTypeEnum.Evm,e);if(!r.confirmed)throw new e3(g.TRANSACTION_REJECTED,"Transaction rejected by user")}else this.confirmationScreen.closeWindow()}async handleEIP712MessageEvaluation({chainID:e,payload:t}){try{let r=await this.authManager.getUserZkEvm();if(null===r)throw new e3(m.UNAUTHORIZED,"User not logged in. Please log in first.");let i=await this.guardianApi.evaluateMessage({messageEvaluationRequest:{chainID:e,payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return i.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateEIP712Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:i}=await this.handleEIP712MessageEvaluation({chainID:e,payload:t});if(i&&this.crossSdkBridgeEnabled)throw new e3(g.TRANSACTION_REJECTED,e8);if(i&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"eip712");if(!t.confirmed)throw new e3(g.TRANSACTION_REJECTED,"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 e3(m.UNAUTHORIZED,"User not logged in. Please log in first.");let i=await this.guardianApi.evaluateErc191Message({eRC191MessageEvaluationRequest:{chainID:e2(e),payload:t}},{headers:{Authorization:`Bearer ${r.accessToken}`}});return i.data}catch(t){let e=t instanceof Error?t.message:String(t);throw new e3(g.INTERNAL_ERROR,`Message failed to validate with error: ${e}`)}}async evaluateERC191Message({chainID:e,payload:t}){let{messageId:r,confirmationRequired:i}=await this.handleERC191MessageEvaluation({chainID:e,payload:t});if(i&&this.crossSdkBridgeEnabled)throw new e3(g.TRANSACTION_REJECTED,e8);if(i&&r){let e=await this.authManager.getUserZkEvm(),t=await this.confirmationScreen.requestMessageConfirmation(r,e.zkEvm.ethAddress,"erc191");if(!t.confirmed)throw new e3(g.TRANSACTION_REJECTED,"Signature rejected by user")}else this.confirmationScreen.closeWindow()}}let te=async(e,t,r)=>{let i=eW([e]),n=eJ(i),a=await r.imGetFeeOptions(t,n),s=a.find(e=>"IMX"===e.tokenSymbol);if(!s)throw Error("Failed to retrieve fees for IMX token");return s},tt=async(e,t,r,i)=>{if(!e.to)throw new e3(g.INVALID_PARAMS,'eth_sendTransaction requires a "to" field');let n={to:e.to,data:e.data,nonce:(0,j.BigNumber).from(0),value:e.value,revertOnError:!0},[a,s]=await Promise.all([eZ(t,i),te(n,i,r)]),o=[{...n,nonce:a}],f=(0,j.BigNumber).from(s.tokenPrice);return f.isZero()||o.push({nonce:a,to:s.recipientAddress,value:f,revertOnError:!0}),o},tr=async(e,t,r)=>{let i=async()=>{let r=await e.imGetTransactionByHash(t);if(r.status===p.PENDING)throw Error();return r},n=await eO(i,{retries:30,interval:1e3,finalErr:new e3(g.RPC_SERVER_ERROR,"transaction hash not generated in time")});if(r.addEvent("endRetrieveRelayerTransaction"),![p.SUBMITTED,p.SUCCESSFUL].includes(n.status)){let e=`Transaction failed to submit with status ${n.status}.`;throw n.statusMessage&&(e+=` Error message: ${n.statusMessage}`),new e3(g.RPC_SERVER_ERROR,e)}return n},ti=async({transactionRequest:e,ethSigner:t,rpcProvider:r,guardianClient:i,relayerClient:n,zkEvmAddress:a,flow:s})=>{let{chainId:o}=await r.detectNetwork(),f=(0,j.BigNumber).from(o);s.addEvent("endDetectNetwork");let d=await tt(e,r,n,a);s.addEvent("endBuildMetaTransactions");let{nonce:c}=d[0];if(!c)throw Error("Failed to retrieve nonce from the smart wallet");let u=async()=>{await i.validateEVMTransaction({chainId:e2(o),nonce:e4(c),metaTransactions:d}),s.addEvent("endValidateEVMTransaction")},l=async()=>{let e=await e$(d,c,f,a,t);return s.addEvent("endGetSignedMetaTransactions"),e},[,h]=await Promise.all([u(),l()]),p=await n.ethSendTransaction(a,h);return s.addEvent("endRelayerSendTransaction"),{signedTransactions:h,relayerId:p,nonce:c}},tn=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:i,guardianClient:n,zkEvmAddress:a,flow:s})=>{let o=e[0],{relayerId:f}=await ti({transactionRequest:o,ethSigner:t,rpcProvider:r,guardianClient:n,relayerClient:i,zkEvmAddress:a,flow:s}),{hash:d}=await tr(i,f,s);return d},ta=["types","domain","primaryType","message"],ts=e=>ta.every(t=>t in e),to=(e,t)=>{let r;if("string"==typeof e)try{r=JSON.parse(e)}catch(e){throw new e3(g.INVALID_PARAMS,`Failed to parse typed data JSON: ${e}`)}else if("object"==typeof e)r=e;else throw new e3(g.INVALID_PARAMS,`Invalid typed data argument: ${e}`);if(!ts(r))throw new e3(g.INVALID_PARAMS,`Invalid typed data argument. The following properties are required: ${ta.join(", ")}`);let i=r.domain?.chainId;if(i&&("string"==typeof i&&(i.startsWith("0x")?r.domain.chainId=parseInt(i,16):r.domain.chainId=parseInt(i,10)),r.domain.chainId!==t))throw new e3(g.INVALID_PARAMS,`Invalid chainId, expected ${t}`);return r},tf=async({params:e,method:t,ethSigner:r,rpcProvider:i,relayerClient:n,guardianClient:a,flow:s})=>{let o=e[0],f=e[1];if(!o||!f)throw new e3(g.INVALID_PARAMS,`${t} requires an address and a typed data JSON`);let{chainId:d}=await i.detectNetwork(),c=to(f,d);s.addEvent("endDetectNetwork"),await a.evaluateEIP712Message({chainID:String(d),payload:c}),s.addEvent("endValidateMessage");let u=await n.imSignTypedData(o,c);s.addEvent("endRelayerSignTypedData");let l=await e0(c,u,(0,j.BigNumber).from(d),o,r);return s.addEvent("getSignedTypedData"),l},td=e=>{if(!e)return e;try{let t=(0,j.utils).stripZeros((0,j.utils).arrayify(e));return(0,j.utils).toUtf8String(t)}catch(t){return e}},tc=async({params:e,ethSigner:t,zkEvmAddress:r,rpcProvider:i,guardianClient:n,relayerClient:a,flow:s})=>{let o=e[0],f=e[1];if(!f||!o)throw new e3(g.INVALID_PARAMS,"personal_sign requires an address and a message");if(f.toLowerCase()!==r.toLowerCase())throw new e3(g.INVALID_PARAMS,"personal_sign requires the signer to be the from address");let d=td(o),{chainId:c}=await i.detectNetwork();s.addEvent("endDetectNetwork");let u=(0,j.BigNumber).from(c),l=e1(u,d,t,f);l.then(()=>s.addEvent("endEOASignature")),await n.evaluateERC191Message({chainID:c,payload:d}),s.addEvent("endEvaluateERC191Message");let[h,p]=await Promise.all([l,a.imSign(f,d)]);s.addEvent("endRelayerSign");let b=await t.getAddress();return s.addEvent("endGetEOAAddress"),eQ(h,b,p)},tu=e=>{switch(e){case E.Environment.SANDBOX:return"https://api.sandbox.immutable.com";case E.Environment.PRODUCTION:return"https://api.immutable.com";default:throw Error("Environment not supported")}},tl=e=>{i||(i=(0,w.default).create({baseURL:tu(e)}))};async function th(e){if(!i)throw Error("Client not initialised");return i.get("/v1/sdk/session-activity/check",{params:e}).then(e=>e.data).catch(e=>{if(404!==e.response.status)throw e})}let{getItem:tp,setItem:tb}=A.utils.localStorage,tm="sessionActivitySendCount",tg="sessionActivityDate",ty=0,tv=0,tw=!1,t_=()=>{tv=tp(tm)||0;let e=tp(tg),t=new Date().toISOString().split("T")[0];e&&e===t||(tv=0),tb(tg,t),tb(tm,tv)};t_();let tM=()=>{t_(),tb(tm,++tv),ty=0},tE=async e=>new Promise(t=>{setTimeout(t,1e3*e)}),tA=async e=>{let t;let r=e.flow||(0,A.trackFlow)("passport","sendSessionActivity");if(tw){r.addEvent("Existing Delay Early Exit");return}tw=!0;let{sendTransaction:i,environment:n}=e;if(!i)throw Error("No sendTransaction function provided");if(!n)throw Error("No environment provided");tl(n);let a=e.passportClient;if(!a)throw r.addEvent("No Passport Client ID"),Error("No Passport Client ID provided");let s=e.walletAddress;if(!s)throw r.addEvent("No Passport Wallet Address"),Error("No wallet address");try{if(r.addEvent("Fetching details"),t=await th({clientId:a,wallet:s,checkCount:ty,sendCount:tv}),ty++,r.addEvent("Fetched details",{checkCount:ty}),!t){r.addEvent("No details found");return}}catch(e){throw r.addEvent("Failed to fetch details"),Error("Failed to get details",{cause:e})}if(t&&t.contractAddress&&t.functionName){let i=new j.utils.Interface([`function ${t.functionName}()`]).encodeFunctionData(t.functionName),n=t.contractAddress;try{r.addEvent("Start Sending Transaction");let t=await e.sendTransaction([{to:n,from:s,data:i}],r);tM(),r.addEvent("Transaction Sent",{tx:t})}catch(t){r.addEvent("Failed to send Transaction");let e=Error("Failed to send transaction",{cause:t});(0,A.trackError)("passport","sessionActivityError",e)}}t&&t.delay&&t.delay>0&&(r.addEvent("Delaying Transaction",{delay:t.delay}),await tE(t.delay),setTimeout(()=>{r.addEvent("Retrying after Delay"),tw=!1,tS({...e,flow:r})},0))},tS=e=>{var t;return((...e)=>{try{let r=tA(...e);if(r instanceof Promise)return r.catch(e=>(e instanceof Error&&(0,A.trackError)("passport","sessionActivityError",e),t));return r}catch(e){return e instanceof Error&&(0,A.trackError)("passport","sessionActivityError",e),t}})(e).then(()=>{tw=!1})},tx=async({params:e,ethSigner:t,rpcProvider:r,relayerClient:i,guardianClient:n,zkEvmAddress:a,flow:s})=>{let{relayerId:o}=await ti({transactionRequest:{to:a,value:0},ethSigner:t,rpcProvider:r,guardianClient:n,relayerClient:i,zkEvmAddress:a,flow:s});return n.withConfirmationScreen()(async()=>{let f=await tc({params:e,ethSigner:t,zkEvmAddress:a,rpcProvider:r,guardianClient:n,relayerClient:i,flow:s});return await tr(i,o,s),f})},tI=e=>"zkEvm"in e;class tR{#n;#a;#s;#o;#f;#d;#c;#u;#l;#h;#p;isPassport=!0;constructor({authManager:e,magicAdapter:t,config:r,multiRollupApiClients:i,passportEventEmitter:n,guardianClient:a}){this.#n=e,this.#c=t,this.#a=r,this.#f=a,this.#o=n,r.crossSdkBridgeEnabled?this.#d=new O.StaticJsonRpcProvider({url:this.#a.zkEvmRpcUrl,fetchOptions:{referrer:"http://imtblgamesdk.local"}}):this.#d=new O.StaticJsonRpcProvider(this.#a.zkEvmRpcUrl),this.#l=new e6({config:this.#a,rpcProvider:this.#d,authManager:this.#n}),this.#u=i,this.#s=new eH,this.#n.getUser().then(e=>{e&&(this.#b(e),tI(e)&&this.#m(e.zkEvm.ethAddress))}).catch(),n.on(u.LOGGED_IN,e=>{this.#b(e),tI(e)&&this.#m(e.zkEvm.ethAddress)}),n.on(u.LOGGED_OUT,this.#g),n.on(u.ACCOUNTS_REQUESTED,tS)}#g=()=>{this.#h=void 0,this.#s.emit(b.ACCOUNTS_CHANGED,[])};#b(e){let t=async()=>{let t=await this.#c.login(e.idToken),r=new O.Web3Provider(t);return r.getSigner()};this.#p=void 0,this.#h=new Promise(async e=>{try{e(await t())}catch(t){this.#p=t,e(void 0)}})}async #y(){let e=await this.#h;if(void 0===e){if(void 0!==this.#p)throw this.#p;throw Error("Signer failed to initialise")}return e}async #m(e){let t=async(t,r)=>{let i=await this.#y();return await tn({params:t,ethSigner:i,guardianClient:this.#f,rpcProvider:this.#d,relayerClient:this.#l,zkEvmAddress:e,flow:r})};this.#o.emit(u.ACCOUNTS_REQUESTED,{environment:this.#a.baseConfig.environment,sendTransaction:t,walletAddress:e,passportClient:this.#a.oidcConfiguration.clientId})}async #v(){try{let e=await this.#n.getUser();if(e&&tI(e))return e.zkEvm.ethAddress;return}catch{return}}async #w(e){switch(e.method){case"eth_requestAccounts":{let e=await this.#v();if(e)return[e];let t=(0,A.trackFlow)("passport","ethRequestAccounts");try{let e;let r=await this.#n.getUserOrLogin();if(t.addEvent("endGetUserOrLogin"),this.#h||this.#b(r),tI(r))e=r.zkEvm.ethAddress;else{t.addEvent("startUserRegistration");let i=await this.#y();t.addEvent("ethSignerResolved"),e=await e5({ethSigner:i,authManager:this.#n,multiRollupApiClients:this.#u,accessToken:r.accessToken,rpcProvider:this.#d,flow:t}),t.addEvent("endUserRegistration")}return this.#s.emit(b.ACCOUNTS_CHANGED,[e]),(0,A.identify)({passportId:r.profile.sub}),this.#m(e),[e]}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","ethRequestAccounts",e),t.addEvent("errored"),e}finally{t.addEvent("End")}}case"eth_sendTransaction":{let t=await this.#v();if(!t)throw new e3(m.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,A.trackFlow)("passport","ethSendTransaction");try{return await this.#f.withConfirmationScreen({width:480,height:720})(async()=>{let i=await this.#y();return r.addEvent("endGetSigner"),await tn({params:e.params||[],ethSigner:i,guardianClient:this.#f,rpcProvider:this.#d,relayerClient:this.#l,zkEvmAddress:t,flow:r})})}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","eth_sendTransaction",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_accounts":{let e=await this.#v();return e?[e]:[]}case"personal_sign":{let t=await this.#v();if(!t)throw new e3(m.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,A.trackFlow)("passport","personalSign");try{return await this.#f.withConfirmationScreen({width:480,height:720})(async()=>{let i=await this.#y();if(r.addEvent("endGetSigner"),this.#a.forceScwDeployBeforeMessageSignature){let n=await eZ(this.#d,t);if(!n.gt(0))return await tx({params:e.params||[],ethSigner:i,zkEvmAddress:t,rpcProvider:this.#d,guardianClient:this.#f,relayerClient:this.#l,flow:r})}return await tc({params:e.params||[],ethSigner:i,zkEvmAddress:t,rpcProvider:this.#d,guardianClient:this.#f,relayerClient:this.#l,flow:r})})}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","personal_sign",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_signTypedData":case"eth_signTypedData_v4":{let t=await this.#v();if(!t)throw new e3(m.UNAUTHORIZED,"Unauthorised - call eth_requestAccounts first");let r=(0,A.trackFlow)("passport","ethSignTypedDataV4");try{return await this.#f.withConfirmationScreen({width:480,height:720})(async()=>{let t=await this.#y();return r.addEvent("endGetSigner"),await tf({method:e.method,params:e.params||[],ethSigner:t,rpcProvider:this.#d,relayerClient:this.#l,guardianClient:this.#f,flow:r})})}catch(e){throw e instanceof Error&&(0,A.trackError)("passport","eth_signTypedData",e),r.addEvent("errored"),e}finally{r.addEvent("End")}}case"eth_chainId":{let{chainId:e}=await this.#d.detectNetwork();return(0,j.utils).hexlify(e)}case"eth_getBalance":case"eth_getCode":case"eth_getTransactionCount":{let[t,r]=e.params||[];return this.#d.send(e.method,[t,r||"latest"])}case"eth_getStorageAt":{let[t,r,i]=e.params||[];return this.#d.send(e.method,[t,r,i||"latest"])}case"eth_call":case"eth_estimateGas":{let[t,r]=e.params||[];return this.#d.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.#d.send(e.method,e.params||[]);default:throw new e3(m.UNSUPPORTED_METHOD,"Method not supported")}}async #_(e){let{id:t,jsonrpc:r}=e;try{let i=await this.#w(e);return{id:t,jsonrpc:r,result:i}}catch(e){return{id:t,jsonrpc:r,error:e instanceof e3?e:e instanceof Error?new e3(g.INTERNAL_ERROR,e.message):new e3(g.INTERNAL_ERROR,"Internal error")}}}async request(e){try{return this.#w(e)}catch(e){if(e instanceof e3)throw e;if(e instanceof Error)throw new e3(g.INTERNAL_ERROR,e.message);throw new e3(g.INTERNAL_ERROR,"Internal error")}}sendAsync(e,t){if(!t)throw Error("No callback provided");Array.isArray(e)?Promise.all(e.map(this.#_)).then(e=>{t(null,e)}).catch(e=>{t(e,[])}):this.#_(e).then(e=>{t(null,e)}).catch(e=>{t(e,null)})}async send(e,t,r){if("string"==typeof e)return"function"==typeof t?this.sendAsync({method:e,params:[]},t):r?this.sendAsync({method:e,params:Array.isArray(t)?t:[]},r):this.request({method:e,params:Array.isArray(t)?t:[]});if("function"==typeof t)return this.sendAsync(e,t);if(!Array.isArray(e)&&"object"==typeof e)return this.#_(e);throw new e3(g.INVALID_REQUEST,"Invalid request")}on(e,t){this.#s.on(e,t)}removeListener(e,t){this.#s.removeListener(e,t)}}let tk={icon:'data:image/svg+xml,',name:"Immutable Passport",rdns:"com.immutable.passport",uuid:(0,F.v4)()},tT=e=>e.overrides?(0,_.createConfig)({basePath:e.overrides.imxPublicApiDomain}):e.baseConfig.environment===E.Environment.SANDBOX?(0,_.imxApiConfig).getSandbox():(0,_.imxApiConfig).getProduction(),tC=e=>{if(e.overrides?.imxApiClients)return e.overrides.imxApiClients;let t=tT(e);return new _.ImxApiClients(t)},tP=e=>{let t=new eF(e),r=new em(t),i=new e_(t),n=new eK(t),a=new _.MultiRollupApiClients(t.multiRollupConfig),s=new eH,o=e.overrides?e.overrides.immutableXClient:new M.IMXClient({baseConfig:e.baseConfig}),f=new e9({confirmationScreen:n,config:t,authManager:r,guardianApi:a.guardianApi}),d=tC(e),c=new eL({authManager:r,immutableXClient:o,magicAdapter:i,passportEventEmitter:s,imxApiClients:d,guardianClient:f});return{config:t,authManager:r,magicAdapter:i,confirmationScreen:n,immutableXClient:o,multiRollupApiClients:a,passportEventEmitter:s,passportImxProviderFactory:c,guardianClient:f}};class tO{authManager;config;confirmationScreen;immutableXClient;magicAdapter;multiRollupApiClients;passportImxProviderFactory;passportEventEmitter;guardianClient;constructor(e){let t=tP(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,A.setPassportClientId)(e.clientId),(0,A.track)("passport","initialise")}async connectImxSilent(){return ew(()=>this.passportImxProviderFactory.getProviderSilent(),"connectImxSilent")}async connectImx(){return ew(()=>this.passportImxProviderFactory.getProvider(),"connectImx")}connectEvm(e={announceProvider:!0}){return ev(()=>{let t=new tR({passportEventEmitter:this.passportEventEmitter,authManager:this.authManager,magicAdapter:this.magicAdapter,config:this.config,multiRollupApiClients:this.multiRollupApiClients,guardianClient:this.guardianClient});return e?.announceProvider&&function(e){if("undefined"==typeof window)return;let t=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(e)});window.dispatchEvent(t),window.addEventListener("eip6963:requestProvider",()=>window.dispatchEvent(t))}({info:tk,provider:t}),t},"connectEvm")}async login(e){return ew(async()=>{let{useCachedSession:t=!1,useSilentLogin:r}=e||{},i=null;try{i=await this.authManager.getUser()}catch(e){if(e instanceof Error&&(0,A.trackError)("passport","login",e),t)throw e;G.warn("Failed to retrieve a cached user session",e)}return!i&&r?i=await this.authManager.forceUserRefresh():i||t||(i=await this.authManager.login(e?.anonymousId)),i&&((0,A.identify)({passportId:i.profile.sub}),this.passportEventEmitter.emit(u.LOGGED_IN,i)),i?i.profile:null},"login")}async loginCallback(){return ew(()=>this.authManager.loginCallback(),"loginCallback")}async loginWithDeviceFlow(e){return ew(()=>this.authManager.loginWithDeviceFlow(e?.anonymousId),"loginWithDeviceFlow")}async loginWithDeviceFlowCallback(e,t,r){return ew(async()=>{let i=await this.authManager.loginWithDeviceFlowCallback(e,t,r);return this.passportEventEmitter.emit(u.LOGGED_IN,i),i.profile},"loginWithDeviceFlowCallback")}loginWithPKCEFlow(){return ev(()=>this.authManager.getPKCEAuthorizationUrl(),"loginWithPKCEFlow")}async loginWithPKCEFlowCallback(e,t){return ew(async()=>{let r=await this.authManager.loginWithPKCEFlowCallback(e,t);return this.passportEventEmitter.emit(u.LOGGED_IN,r),r.profile},"loginWithPKCEFlowCallback")}async logout(){return ew(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(u.LOGGED_OUT)},"logout")}async logoutDeviceFlow(){return ew(async()=>(await this.authManager.removeUser(),await this.magicAdapter.logout(),this.passportEventEmitter.emit(u.LOGGED_OUT),await this.authManager.getDeviceFlowEndSessionEndpoint()),"logoutDeviceFlow")}async logoutSilentCallback(e){return ew(()=>this.authManager.logoutSilentCallback(e),"logoutSilentCallback")}async getUserInfo(){return ew(async()=>{let e=await this.authManager.getUser();return e?.profile},"getUserInfo")}async getIdToken(){return ew(async()=>{let e=await this.authManager.getUser();return e?.idToken},"getIdToken")}async getAccessToken(){return ew(async()=>{let e=await this.authManager.getUser();return e?.accessToken},"getAccessToken")}async getLinkedAddresses(){return ew(async()=>{let e=await this.authManager.getUser();if(!e?.profile.sub)return[];let t={Authorization:`Bearer ${e.accessToken}`},r=await this.multiRollupApiClients.passportProfileApi.getUserInfo({headers:t});return r.data.linked_addresses},"getLinkedAddresses")}async linkExternalWallet(e){let t=(0,A.trackFlow)("passport","linkExternalWallet"),r=await this.authManager.getUser();if(!r)throw new z("User is not logged in",c.NOT_LOGGED_IN_ERROR);let i=Z(r),n=J(r);if(!i&&!n)throw new z("User has not been registered",c.USER_NOT_REGISTERED_ERROR);let a={Authorization:`Bearer ${r.accessToken}`},s={type:e.type,wallet_address:e.walletAddress,signature:e.signature,nonce:e.nonce};try{let e=await this.multiRollupApiClients.passportProfileApi.linkWalletV2({linkWalletV2Request:s},{headers:a});return{...e.data}}catch(r){if(r instanceof Error&&(0,A.trackError)("passport","linkExternalWallet",r),t.addEvent("errored"),(0,v.isAxiosError)(r)&&r.response){if(r.response.data&&q(r.response.data)){let{code:e,message:t}=r.response.data;switch(e){case"ALREADY_LINKED":throw new z(t,c.LINK_WALLET_ALREADY_LINKED_ERROR);case"MAX_WALLETS_LINKED":throw new z(t,c.LINK_WALLET_MAX_WALLETS_LINKED_ERROR);case"DUPLICATE_NONCE":throw new z(t,c.LINK_WALLET_DUPLICATE_NONCE_ERROR);case"VALIDATION_ERROR":throw new z(t,c.LINK_WALLET_VALIDATION_ERROR);default:throw new z(t,c.LINK_WALLET_GENERIC_ERROR)}}else if(r.response.status)throw new z(`Link wallet request failed with status code ${r.response.status}`,c.LINK_WALLET_GENERIC_ERROR)}let e="Link wallet request failed";throw r instanceof Error&&(e+=`: ${r.message}`),new z(e,c.LINK_WALLET_GENERIC_ERROR)}finally{t.addEvent("End")}}}},{a7402fb880ab41a1:"fg0b3",axios:"jhAcT","@imtbl/generated-clients":"2eu25","@imtbl/x-client":"hV3j7","@imtbl/config":"ed8SG","@imtbl/metrics":"dO0KB","oidc-client-ts":"eOqnc",crypto:"32wxM","jwt-decode":"dIfrw",localforage:"6uh7U","magic-sdk":"cTdgN","@magic-ext/oidc":"bCVaL","@ethersproject/providers":"lpm2Y","@imtbl/toolkit":"5Doxg",ethers:"8wpcu",events:"ikfQ0","@0xsequence/abi":"NeOck","@0xsequence/core":"hBsZJ",uuid:"hlwPQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fg0b3:[function(e,t,r){var i,n,a,s=t.exports={};function o(){throw Error("setTimeout has not been defined")}function f(){throw Error("clearTimeout has not been defined")}function d(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:f}catch(e){n=f}}();var c=[],u=!1,l=-1;function h(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=d(h);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l1)for(var r=1;ra.default),i.export(r,"Axios",()=>s),i.export(r,"AxiosError",()=>o),i.export(r,"CanceledError",()=>f),i.export(r,"isCancel",()=>d),i.export(r,"CancelToken",()=>c),i.export(r,"VERSION",()=>u),i.export(r,"all",()=>l),i.export(r,"Cancel",()=>h),i.export(r,"isAxiosError",()=>p),i.export(r,"spread",()=>b),i.export(r,"toFormData",()=>m),i.export(r,"AxiosHeaders",()=>g),i.export(r,"HttpStatusCode",()=>y),i.export(r,"formToJSON",()=>v),i.export(r,"getAdapter",()=>w),i.export(r,"mergeConfig",()=>_);var n=e("./lib/axios.js"),a=i.interopDefault(n);let{Axios:s,AxiosError:o,CanceledError:f,isCancel:d,CancelToken:c,VERSION:u,all:l,Cancel:h,isAxiosError:p,spread:b,toFormData:m,AxiosHeaders:g,HttpStatusCode:y,formToJSON:v,getAdapter:w,mergeConfig:_}=a.default},{"./lib/axios.js":"8DJLn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DJLn":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./utils.js"),a=i.interopDefault(n),s=e("./helpers/bind.js"),o=i.interopDefault(s),f=e("./core/Axios.js"),d=i.interopDefault(f),c=e("./core/mergeConfig.js"),u=i.interopDefault(c),l=e("./defaults/index.js"),h=i.interopDefault(l),p=e("./helpers/formDataToJSON.js"),b=i.interopDefault(p),m=e("./cancel/CanceledError.js"),g=i.interopDefault(m),y=e("./cancel/CancelToken.js"),v=i.interopDefault(y),w=e("./cancel/isCancel.js"),_=i.interopDefault(w),M=e("./env/data.js"),E=e("./helpers/toFormData.js"),A=i.interopDefault(E),S=e("./core/AxiosError.js"),x=i.interopDefault(S),I=e("./helpers/spread.js"),R=i.interopDefault(I),k=e("./helpers/isAxiosError.js"),T=i.interopDefault(k),C=e("./core/AxiosHeaders.js"),P=i.interopDefault(C),O=e("./adapters/adapters.js"),N=i.interopDefault(O),j=e("./helpers/HttpStatusCode.js"),B=i.interopDefault(j);let L=function e(t){let r=new d.default(t),i=(0,o.default)(d.default.prototype.request,r);return(0,a.default).extend(i,d.default.prototype,r,{allOwnKeys:!0}),(0,a.default).extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e((0,u.default)(t,r))},i}(h.default);L.Axios=d.default,L.CanceledError=g.default,L.CancelToken=v.default,L.isCancel=_.default,L.VERSION=M.VERSION,L.toFormData=A.default,L.AxiosError=x.default,L.Cancel=L.CanceledError,L.all=function(e){return Promise.all(e)},L.spread=R.default,L.isAxiosError=T.default,L.mergeConfig=u.default,L.AxiosHeaders=P.default,L.formToJSON=e=>(0,b.default)((0,a.default).isHTMLForm(e)?new FormData(e):e),L.getAdapter=N.default.getAdapter,L.HttpStatusCode=B.default,L.default=L,r.default=L},{"./utils.js":"2ioTY","./helpers/bind.js":"9mfTC","./core/Axios.js":"2wp4K","./core/mergeConfig.js":"j8Sbj","./defaults/index.js":"1GU0t","./helpers/formDataToJSON.js":"jhUur","./cancel/CanceledError.js":"judoa","./cancel/CancelToken.js":"2aN3e","./cancel/isCancel.js":"5ndsF","./env/data.js":"9ssnR","./helpers/toFormData.js":"k8OtD","./core/AxiosError.js":"hjCVQ","./helpers/spread.js":"gQxw3","./helpers/isAxiosError.js":"lE0ea","./core/AxiosHeaders.js":"1qkRX","./adapters/adapters.js":"6E0f0","./helpers/HttpStatusCode.js":"agO1h","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2ioTY":[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);"use strict";var s=e("./helpers/bind.js"),o=a.interopDefault(s),f=arguments[3];let{toString:d}=Object.prototype,{getPrototypeOf:c}=Object,u=(i=Object.create(null),e=>{let t=d.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),l=e=>(e=e.toLowerCase(),t=>u(t)===e),h=e=>t=>typeof t===e,{isArray:p}=Array,b=h("undefined"),m=l("ArrayBuffer"),g=h("string"),y=h("function"),v=h("number"),w=e=>null!==e&&"object"==typeof e,_=e=>{if("object"!==u(e))return!1;let t=c(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},M=l("Date"),E=l("File"),A=l("Blob"),S=l("FileList"),x=l("URLSearchParams");function I(e,t,{allOwnKeys:r=!1}={}){let i,n;if(null!=e){if("object"!=typeof e&&(e=[e]),p(e))for(i=0,n=e.length;i0;)if(t===(r=i[n]).toLowerCase())return r;return null}let k="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:f,T=e=>!b(e)&&e!==k,C=(n="undefined"!=typeof Uint8Array&&c(Uint8Array),e=>n&&e instanceof n),P=l("HTMLFormElement"),O=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),N=l("RegExp"),j=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};I(r,(r,n)=>{let a;!1!==(a=t(r,n,e))&&(i[n]=a||r)}),Object.defineProperties(e,i)},B="abcdefghijklmnopqrstuvwxyz",L="0123456789",D={DIGIT:L,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+L},F=l("AsyncFunction");r.default={isArray:p,isArrayBuffer:m,isBuffer:function(e){return null!==e&&!b(e)&&null!==e.constructor&&!b(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||y(e.append)&&("formdata"===(t=u(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&m(e.buffer)},isString:g,isNumber:v,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:_,isUndefined:b,isDate:M,isFile:E,isBlob:A,isRegExp:N,isFunction:y,isStream:e=>w(e)&&y(e.pipe),isURLSearchParams:x,isTypedArray:C,isFileList:S,forEach:I,merge:function e(){let{caseless:t}=T(this)&&this||{},r={},i=(i,n)=>{let a=t&&R(r,n)||n;_(r[a])&&_(i)?r[a]=e(r[a],i):_(i)?r[a]=e({},i):p(i)?r[a]=i.slice():r[a]=i};for(let e=0,t=arguments.length;e(I(t,(t,i)=>{r&&y(t)?e[i]=(0,o.default)(t,r):e[i]=t},{allOwnKeys:i}),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,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,i)=>{let n,a,s;let o={};if(t=t||{},null==e)return t;do{for(a=(n=Object.getOwnPropertyNames(e)).length;a-- >0;)s=n[a],(!i||i(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=!1!==r&&c(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:u,kindOfTest:l,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return -1!==i&&i===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!v(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let i=e&&e[Symbol.iterator],n=i.call(e);for(;(r=n.next())&&!r.done;){let i=r.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let r;let i=[];for(;null!==(r=e.exec(t));)i.push(r);return i},isHTMLForm:P,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:j,freezeMethods:e=>{j(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let i=e[r];if(y(i)){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})})(p(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)=>Number.isFinite(e=+e)?e:t,findKey:R,global:k,isContextDefined:T,ALPHABET:D,generateString:(e=16,t=D.ALPHA_DIGIT)=>{let r="",{length:i}=t;for(;e--;)r+=t[Math.random()*i|0];return r},isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,i)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;let n=p(e)?[]:{};return I(e,(e,t)=>{let a=r(e,i+1);b(a)||(n[t]=a)}),t[i]=void 0,n}}return e};return r(e,0)},isAsyncFn:F,isThenable:e=>e&&(w(e)||y(e))&&y(e.then)&&y(e.catch)}},{"./helpers/bind.js":"9mfTC","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9mfTC":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cI3Jn:[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})}},{}],"2wp4K":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../helpers/buildURL.js"),o=i.interopDefault(s),f=e("./InterceptorManager.js"),d=i.interopDefault(f),c=e("./dispatchRequest.js"),u=i.interopDefault(c),l=e("./mergeConfig.js"),h=i.interopDefault(l),p=e("./buildFullPath.js"),b=i.interopDefault(p),m=e("../helpers/validator.js"),g=i.interopDefault(m),y=e("./AxiosHeaders.js"),v=i.interopDefault(y);let w=g.default.validators;class _{constructor(e){this.defaults=e,this.interceptors={request:new d.default,response:new d.default}}request(e,t){let r,i;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=(0,h.default)(this.defaults,t);let{transitional:n,paramsSerializer:s,headers:o}=t;void 0!==n&&(0,g.default).assertOptions(n,{silentJSONParsing:w.transitional(w.boolean),forcedJSONParsing:w.transitional(w.boolean),clarifyTimeoutError:w.transitional(w.boolean)},!1),null!=s&&((0,a.default).isFunction(s)?t.paramsSerializer={serialize:s}:(0,g.default).assertOptions(s,{encode:w.function,serialize:w.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let f=o&&(0,a.default).merge(o.common,o[t.method]);o&&(0,a.default).forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=(0,v.default).concat(f,o);let d=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,d.unshift(e.fulfilled,e.rejected))});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let p=0;if(!c){let e=[(0,u.default).bind(this),void 0];for(e.unshift.apply(e,d),e.push.apply(e,l),i=e.length,r=Promise.resolve(t);pd);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../helpers/AxiosURLSearchParams.js"),o=i.interopDefault(s);function f(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function d(e,t,r){let i;if(!t)return e;let n=r&&r.encode||f,s=r&&r.serialize;if(i=s?s(t,r):(0,a.default).isURLSearchParams(t)?t.toString():new(0,o.default)(t,r).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},{"../utils.js":"2ioTY","../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],juzHK:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./toFormData.js"),a=i.interopDefault(n);function s(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function o(e,t){this._pairs=[],e&&(0,a.default)(e,this,t)}let f=o.prototype;f.append=function(e,t){this._pairs.push([e,t])},f.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":"k8OtD","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],k8OtD:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../core/AxiosError.js"),o=i.interopDefault(s),f=e("../platform/node/classes/FormData.js"),d=i.interopDefault(f),c=e("adfd9b103875c2dd").Buffer;function u(e){return(0,a.default).isPlainObject(e)||(0,a.default).isArray(e)}function l(e){return(0,a.default).endsWith(e,"[]")?e.slice(0,-2):e}function h(e,t,r){return e?e.concat(t).map(function(e,t){return e=l(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let p=(0,a.default).toFlatObject(a.default,{},null,function(e){return/^is[A-Z]/.test(e)});r.default=function(e,t,r){if(!(0,a.default).isObject(e))throw TypeError("target must be an object");t=t||new(d.default||FormData),r=(0,a.default).toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!(0,a.default).isUndefined(t[e])});let i=r.metaTokens,n=r.visitor||y,s=r.dots,f=r.indexes,b=r.Blob||"undefined"!=typeof Blob&&Blob,m=b&&(0,a.default).isSpecCompliantForm(t);if(!(0,a.default).isFunction(n))throw TypeError("visitor must be a function");function g(e){if(null===e)return"";if((0,a.default).isDate(e))return e.toISOString();if(!m&&(0,a.default).isBlob(e))throw new o.default("Blob is not supported. Use a Buffer instead.");return(0,a.default).isArrayBuffer(e)||(0,a.default).isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):c.from(e):e}function y(e,r,n){let o=e;if(e&&!n&&"object"==typeof e){if((0,a.default).endsWith(r,"{}"))r=i?r:r.slice(0,-2),e=JSON.stringify(e);else{var d;if((0,a.default).isArray(e)&&(d=e,(0,a.default).isArray(d)&&!d.some(u))||((0,a.default).isFileList(e)||(0,a.default).endsWith(r,"[]"))&&(o=(0,a.default).toArray(e)))return r=l(r),o.forEach(function(e,i){(0,a.default).isUndefined(e)||null===e||t.append(!0===f?h([r],i,s):null===f?r:r+"[]",g(e))}),!1}}return!!u(e)||(t.append(h(n,r,s),g(e)),!1)}let v=[],w=Object.assign(p,{defaultVisitor:y,convertValue:g,isVisitable:u});if(!(0,a.default).isObject(e))throw TypeError("data must be an object");return!function e(r,i){if(!(0,a.default).isUndefined(r)){if(-1!==v.indexOf(r))throw Error("Circular reference detected in "+i.join("."));v.push(r),(0,a.default).forEach(r,function(r,s){let o=!((0,a.default).isUndefined(r)||null===r)&&n.call(t,r,(0,a.default).isString(s)?s.trim():s,i,w);!0===o&&e(r,i?i.concat(s):[s])}),v.pop()}}(e),t}},{adfd9b103875c2dd:"2MMCE","../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","../platform/node/classes/FormData.js":"fN4B6","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2MMCE":[function(e,t,r){"use strict";let i=e("9c62938f1dccc73c"),n=e("aceacb6a4531a9d2"),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)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 c(e)}return f(e,t,r)}function f(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),i=s(r),n=i.write(e,t);return n!==r&&(i=i.slice(0,n)),i}(e,t);if(ArrayBuffer.isView(e))return function(e){if(L(e,Uint8Array)){let t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return u(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(L(e,ArrayBuffer)||e&&L(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(L(e,SharedArrayBuffer)||e&&L(e.buffer,SharedArrayBuffer)))return l(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 o.from(i,t,r);let n=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):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(n)return n;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 d(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 c(e){return d(e),s(e<0?0:0|h(e))}function u(e){let t=e.length<0?0:0|h(e.length),r=s(t);for(let i=0;i=2147483647)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)||L(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,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(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(n)return i?-1:N(e).length;t=(""+t).toLowerCase(),n=!0}}function b(e,t,r){let n=!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 i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);let n="";for(let i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(a=r=+r)!=a&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return -1;r=e.length-1}else if(r<0){if(!n)return -1;r=0}if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:y(e,t,r,i,n);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,i,n);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,i,n){let a,s=1,o=e.length,f=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;s=2,o/=2,f/=2,r/=2}function d(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(n){let i=-1;for(a=r;ao&&(r=o-f),a=r;a>=0;a--){let r=!0;for(let i=0;i239?4:t>223?3:t>191?2:1;if(n+s<=r){let r,i,o,f;switch(s){case 1:t<128&&(a=t);break;case 2:(192&(r=e[n+1]))==128&&(f=(31&t)<<6|63&r)>127&&(a=f);break;case 3:r=e[n+1],i=e[n+2],(192&r)==128&&(192&i)==128&&(f=(15&t)<<12|(63&r)<<6|63&i)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:r=e[n+1],i=e[n+2],o=e[n+3],(192&r)==128&&(192&i)==128&&(192&o)==128&&(f=(15&t)<<18|(63&r)<<12|(63&i)<<6|63&o)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|1023&a),i.push(a),n+=s}return function(e){let t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);let r="",i=0;for(;ir)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,i,n,a){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||te.length)throw RangeError("Index out of range")}function M(e,t,r,i,n){T(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,r}function E(e,t,r,i,n){T(t,i,n,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a>>=8,e[r+6]=a,a>>=8,e[r+5]=a,a>>=8,e[r+4]=a;let s=Number(t>>BigInt(32)&BigInt(4294967295));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 A(e,t,r,i,n,a){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function S(e,t,r,i,a){return t=+t,r>>>=0,a||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function x(e,t,r,i,a){return t=+t,r>>>=0,a||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,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=2147483647,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 f(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(d(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 c(e)},o.allocUnsafeSlow=function(e){return c(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(L(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),L(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,i=t.length;for(let n=0,a=Math.min(r,i);ni.length?(o.isBuffer(t)||(t=o.from(t)),t.copy(i,n)):Uint8Array.prototype.set.call(i,t,n);else if(o.isBuffer(t))t.copy(i,n);else throw TypeError('"list" argument must be an Array of Buffers');n+=t.length}return i},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+=" ... "),""},a&&(o.prototype[a]=o.prototype.inspect),o.prototype.compare=function(e,t,r,i,n){if(L(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===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;let a=n-i,s=r-t,f=Math.min(a,s),d=this.slice(i,n),c=e.slice(t,r);for(let e=0;e>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let l=this.length-t;if((void 0===r||r>l)&&(r=l),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let h=!1;for(;;)switch(i){case"hex":return function(e,t,r,i){let n;r=Number(r)||0;let a=e.length-r;i?(i=Number(i))>a&&(i=a):i=a;let s=t.length;for(i>s/2&&(i=s/2),n=0;n>8,n.push(r%256),n.push(i);return n}(e,this.length-c),this,c,u);default:if(h)throw TypeError("Unknown encoding: "+i);i=(""+i).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 i=this[e],n=1,a=0;for(;++a>>=0,t>>>=0,r||w(e,t,this.length);let i=this[e+--t],n=1;for(;t>0&&(n*=256);)i+=this[e+--t]*n;return i},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)+16777216*this[e+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readBigUInt64LE=F(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=t+256*this[++e]+65536*this[++e]+16777216*this[++e],n=this[++e]+256*this[++e]+65536*this[++e]+16777216*r;return BigInt(i)+(BigInt(n)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=16777216*t+65536*this[++e]+256*this[++e]+this[++e],n=16777216*this[++e]+65536*this[++e]+256*this[++e]+r;return(BigInt(i)<>>=0,t>>>=0,r||w(e,t,this.length);let i=this[e],n=1,a=0;for(;++a=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);let i=t,n=1,a=this[e+--i];for(;i>0&&(n*=256);)a+=this[e+--i]*n;return a>=(n*=128)&&(a-=Math.pow(2,8*t)),a},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?4294901760|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?4294901760|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=F(function(e){C(e>>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(i)<>>=0,"offset");let t=this[e],r=this[e+7];(void 0===t||void 0===r)&&P(e,this.length-8);let i=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(i)<>>=0,t||w(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(e,t,r,i){if(e=+e,t>>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}let n=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!i){let i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}let n=r-1,a=1;for(this[t+n]=255&e;--n>=0&&(a*=256);)this[t+n]=e/a&255;return t+r},o.prototype.writeUint8=o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||_(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||_(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||_(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||_(this,e,t,4,4294967295,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||_(this,e,t,4,4294967295,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=F(function(e,t=0){return M(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=F(function(e,t=0){return E(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(e,t,r,i){if(e=+e,t>>>=0,!i){let i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}let n=0,a=1,s=0;for(this[t]=255&e;++n>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,i){if(e=+e,t>>>=0,!i){let i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}let n=r-1,a=1,s=0;for(this[t+n]=255&e;--n>=0&&(a*=256);)e<0&&0===s&&0!==this[t+n+1]&&(s=1),this[t+n]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||_(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||_(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||_(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||_(this,e,t,4,2147483647,-2147483648),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||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeBigInt64LE=F(function(e,t=0){return M(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=F(function(e,t=0){return E(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeFloatLE=function(e,t,r){return S(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return S(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n=i+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function T(e,t,r,i,n,a){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${(a+1)*8}${n}`:`>= -(2${n} ** ${(a+1)*8-1}${n}) and < 2 ** ${(a+1)*8-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new I.ERR_OUT_OF_RANGE("value",i,e)}C(n,"offset"),(void 0===i[n]||void 0===i[n+a])&&P(n,i.length-(a+1))}function C(e,t){if("number"!=typeof e)throw new I.ERR_INVALID_ARG_TYPE(t,"number",e)}function P(e,t,r){if(Math.floor(e)!==e)throw C(e,r),new I.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new I.ERR_BUFFER_OUT_OF_BOUNDS;throw new I.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}R("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),R("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),R("ERR_OUT_OF_RANGE",function(e,t,r){let i=`The value of "${e}" is out of range.`,n=r;return Number.isInteger(r)&&Math.abs(r)>4294967296?n=k(String(r)):"bigint"==typeof r&&(n=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(n=k(n)),n+="n"),i+=` It must be ${t}. Received ${n}`},RangeError);let O=/[^+/0-9A-Za-z-_]/g;function N(e,t){let r;t=t||1/0;let i=e.length,n=null,a=[];for(let s=0;s55295&&r<57344){if(!n){if(r>56319||s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&a.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function j(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,i){let n;for(n=0;n=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function L(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}let D=function(){let e="0123456789abcdef",t=Array(256);for(let r=0;r<16;++r){let i=16*r;for(let n=0;n<16;++n)t[i+n]=e[r]+e[n]}return t}();function F(e){return"undefined"==typeof BigInt?U:e}function U(){throw Error("BigInt not supported")}},{"9c62938f1dccc73c":"6P4Ax",aceacb6a4531a9d2:"lPFVa"}],"6P4Ax":[function(e,t,r){"use strict";r.byteLength=function(e){var t=d(e),r=t[0],i=t[1];return(r+i)*3/4-i},r.toByteArray=function(e){var t,r,i=d(e),s=i[0],o=i[1],f=new a((s+o)*3/4-o),c=0,u=o>0?s-4:s;for(r=0;r>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===o&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===o&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,a=[],s=0,o=r-n;s>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return a.join("")}(e,s,s+16383>o?o:s+16383));return 1===n?a.push(i[(t=e[r-1])>>2]+i[t<<4&63]+"=="):2===n&&a.push(i[(t=(e[r-2]<<8)+e[r-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),a.join("")};for(var i=[],n=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,f=s.length;o0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},{}],lPFVa:[function(e,t,r){r.read=function(e,t,r,i,n){var a,s,o=8*n-i-1,f=(1<>1,c=-7,u=r?n-1:0,l=r?-1:1,h=e[t+u];for(u+=l,a=h&(1<<-c)-1,h>>=-c,c+=o;c>0;a=256*a+e[t+u],u+=l,c-=8);for(s=a&(1<<-c)-1,a>>=-c,c+=i;c>0;s=256*s+e[t+u],u+=l,c-=8);if(0===a)a=1-d;else{if(a===f)return s?NaN:(h?-1:1)*(1/0);s+=Math.pow(2,i),a-=d}return(h?-1:1)*s*Math.pow(2,a-i)},r.write=function(e,t,r,i,n,a){var s,o,f,d=8*a-n-1,c=(1<>1,l=23===n?5960464477539062e-23:0,h=i?0:a-1,p=i?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=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+u>=1?t+=l/f:t+=l*Math.pow(2,1-u),t*f>=2&&(s++,f/=2),s+u>=c?(o=0,s=c):s+u>=1?(o=(t*f-1)*Math.pow(2,n),s+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,n),s=0));n>=8;e[r+h]=255&o,h+=p,o/=256,n-=8);for(s=s<0;e[r+h]=255&s,h+=p,s/=256,d-=8);e[r+h-p]|=128*b}},{}],hjCVQ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n);function s(e,t,r,i,n){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),i&&(this.request=i),n&&(this.response=n)}(0,a.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,a.default).toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let o=s.prototype,f={};["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=>{f[e]={value:e}}),Object.defineProperties(s,f),Object.defineProperty(o,"isAxiosError",{value:!0}),s.from=(e,t,r,i,n,f)=>{let d=Object.create(o);return(0,a.default).toFlatObject(e,d,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),s.call(d,e.message,t,r,i,n),d.cause=e,d.name=e.name,f&&Object.assign(d,f),d},r.default=s},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fN4B6:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5Qndl":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n);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,a.default).forEach(this.handlers,function(t){null!==t&&e(t)})}}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gTZwy:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>g);"use strict";var n=e("./transformData.js"),a=i.interopDefault(n),s=e("../cancel/isCancel.js"),o=i.interopDefault(s),f=e("../defaults/index.js"),d=i.interopDefault(f),c=e("../cancel/CanceledError.js"),u=i.interopDefault(c),l=e("../core/AxiosHeaders.js"),h=i.interopDefault(l),p=e("../adapters/adapters.js"),b=i.interopDefault(p);function m(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new u.default(null,e)}function g(e){m(e),e.headers=(0,h.default).from(e.headers),e.data=(0,a.default).call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=(0,b.default).getAdapter(e.adapter||d.default.adapter);return t(e).then(function(t){return m(e),t.data=(0,a.default).call(e,e.transformResponse,t),t.headers=(0,h.default).from(t.headers),t},function(t){return!(0,o.default)(t)&&(m(e),t&&t.response&&(t.response.data=(0,a.default).call(e,e.transformResponse,t.response),t.response.headers=(0,h.default).from(t.response.headers))),Promise.reject(t)})}},{"./transformData.js":"8H0wy","../cancel/isCancel.js":"5ndsF","../defaults/index.js":"1GU0t","../cancel/CanceledError.js":"judoa","../core/AxiosHeaders.js":"1qkRX","../adapters/adapters.js":"6E0f0","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8H0wy":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>c);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../defaults/index.js"),o=i.interopDefault(s),f=e("../core/AxiosHeaders.js"),d=i.interopDefault(f);function c(e,t){let r=this||o.default,i=t||r,n=(0,d.default).from(i.headers),s=i.data;return(0,a.default).forEach(e,function(e){s=e.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}},{"./../utils.js":"2ioTY","../defaults/index.js":"1GU0t","../core/AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1GU0t":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../core/AxiosError.js"),o=i.interopDefault(s),f=e("./transitional.js"),d=i.interopDefault(f),c=e("../helpers/toFormData.js"),u=i.interopDefault(c),l=e("../helpers/toURLEncodedForm.js"),h=i.interopDefault(l),p=e("../platform/index.js"),b=i.interopDefault(p),m=e("../helpers/formDataToJSON.js"),g=i.interopDefault(m);let y={transitional:d.default,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let i=t.getContentType()||"",n=i.indexOf("application/json")>-1,s=(0,a.default).isObject(e);s&&(0,a.default).isHTMLForm(e)&&(e=new FormData(e));let o=(0,a.default).isFormData(e);if(o)return n&&n?JSON.stringify((0,g.default)(e)):e;if((0,a.default).isArrayBuffer(e)||(0,a.default).isBuffer(e)||(0,a.default).isStream(e)||(0,a.default).isFile(e)||(0,a.default).isBlob(e))return e;if((0,a.default).isArrayBufferView(e))return e.buffer;if((0,a.default).isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return(0,h.default)(e,this.formSerializer).toString();if((r=(0,a.default).isFileList(e))||i.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return(0,u.default)(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||n?(t.setContentType("application/json",!1),function(e,t,r){if((0,a.default).isString(e))try{return(0,JSON.parse)(e),(0,a.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,i="json"===this.responseType;if(e&&(0,a.default).isString(e)&&(r&&!this.responseType||i)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&i){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,a.default).forEach(["delete","get","head","post","put","patch"],e=>{y.headers[e]={}}),r.default=y},{"../utils.js":"2ioTY","../core/AxiosError.js":"hjCVQ","./transitional.js":"lBqaD","../helpers/toFormData.js":"k8OtD","../helpers/toURLEncodedForm.js":"bgvH4","../platform/index.js":"fP1Ni","../helpers/formDataToJSON.js":"jhUur","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lBqaD:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bgvH4:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>c);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("./toFormData.js"),o=i.interopDefault(s),f=e("../platform/index.js"),d=i.interopDefault(f);function c(e,t){return(0,o.default)(e,new d.default.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,i){return d.default.isNode&&(0,a.default).isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}},{"../utils.js":"2ioTY","./toFormData.js":"k8OtD","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fP1Ni:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./node/index.js"),a=i.interopDefault(n),s=e("./common/utils.js");r.default={...s,...a.default}},{"./node/index.js":"3yghl","./common/utils.js":"dkG5V","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3yghl":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./classes/URLSearchParams.js"),a=i.interopDefault(n),s=e("./classes/FormData.js"),o=i.interopDefault(s),f=e("./classes/Blob.js"),d=i.interopDefault(f);r.default={isBrowser:!0,classes:{URLSearchParams:a.default,FormData:o.default,Blob:d.default},protocols:["http","https","file","blob","url","data"]}},{"./classes/URLSearchParams.js":"eT4YQ","./classes/FormData.js":"2389U","./classes/Blob.js":"eKMhL","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eT4YQ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../../../helpers/AxiosURLSearchParams.js"),a=i.interopDefault(n);r.default="undefined"!=typeof URLSearchParams?URLSearchParams:a.default},{"../../../helpers/AxiosURLSearchParams.js":"juzHK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2389U":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof FormData?FormData:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eKMhL:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default="undefined"!=typeof Blob?Blob:null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dkG5V:[function(e,t,r){var i,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);let a="undefined"!=typeof window&&"undefined"!=typeof document,s=(i="undefined"!=typeof navigator&&navigator.product,a&&0>["ReactNative","NativeScript","NS"].indexOf(i)),o="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jhUur:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n);r.default=function(e){if((0,a.default).isFormData(e)&&(0,a.default).isFunction(e.entries)){let t={};return(0,a.default).forEachEntry(e,(e,r)=>{!function e(t,r,i,n){let s=t[n++];if("__proto__"===s)return!0;let o=Number.isFinite(+s),f=n>=t.length;if(s=!s&&(0,a.default).isArray(i)?i.length:s,f)return(0,a.default).hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o;i[s]&&(0,a.default).isObject(i[s])||(i[s]=[]);let d=e(t,r,i[s],n);return d&&(0,a.default).isArray(i[s])&&(i[s]=function(e){let t,r;let i={},n=Object.keys(e),a=n.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null}},{"../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qkRX":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("../helpers/parseHeaders.js"),o=i.interopDefault(s);let f=Symbol("internals");function d(e){return e&&String(e).trim().toLowerCase()}function c(e){return!1===e||null==e?e:(0,a.default).isArray(e)?e.map(c):String(e)}let u=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function l(e,t,r,i,n){if((0,a.default).isFunction(i))return i.call(this,t,r);if(n&&(t=r),(0,a.default).isString(t)){if((0,a.default).isString(i))return -1!==t.indexOf(i);if((0,a.default).isRegExp(i))return i.test(t)}}class h{constructor(e){e&&this.set(e)}set(e,t,r){let i=this;function n(e,t,r){let n=d(t);if(!n)throw Error("header name must be a non-empty string");let s=(0,a.default).findKey(i,n);s&&void 0!==i[s]&&!0!==r&&(void 0!==r||!1===i[s])||(i[s||t]=c(e))}let s=(e,t)=>(0,a.default).forEach(e,(e,r)=>n(e,r,t));return(0,a.default).isPlainObject(e)||e instanceof this.constructor?s(e,t):(0,a.default).isString(e)&&(e=e.trim())&&!u(e)?s((0,o.default)(e),t):null!=e&&n(t,e,r),this}get(e,t){if(e=d(e)){let r=(0,a.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),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)r[t[1]]=t[2];return r}(e);if((0,a.default).isFunction(t))return t.call(this,e,r);if((0,a.default).isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=d(e)){let r=(0,a.default).findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||l(this,this[r],r,t)))}return!1}delete(e,t){let r=this,i=!1;function n(e){if(e=d(e)){let n=(0,a.default).findKey(r,e);n&&(!t||l(r,r[n],n,t))&&(delete r[n],i=!0)}}return(0,a.default).isArray(e)?e.forEach(n):n(e),i}clear(e){let t=Object.keys(this),r=t.length,i=!1;for(;r--;){let n=t[r];(!e||l(this,this[n],n,e,!0))&&(delete this[n],i=!0)}return i}normalize(e){let t=this,r={};return(0,a.default).forEach(this,(i,n)=>{let s=(0,a.default).findKey(r,n);if(s){t[s]=c(i),delete t[n];return}let o=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(n).trim();o!==n&&delete t[n],t[o]=c(i),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return(0,a.default).forEach(this,(r,i)=>{null!=r&&!1!==r&&(t[i]=e&&(0,a.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[f]=this[f]={accessors:{}},r=t.accessors,i=this.prototype;function n(e){let t=d(e);r[t]||(!function(e,t){let r=(0,a.default).toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(e,r,n){return this[i].call(this,t,e,r,n)},configurable:!0})})}(i,e),r[t]=!0)}return(0,a.default).isArray(e)?e.forEach(n):n(e),this}}h.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),(0,a.default).reduceDescriptors(h.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),(0,a.default).freezeMethods(h),r.default=h},{"../utils.js":"2ioTY","../helpers/parseHeaders.js":"aYbVO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aYbVO:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n);let s=(0,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,i;let n={};return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),t=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!t||n[t]&&s[t]||("set-cookie"===t?n[t]?n[t].push(r):n[t]=[r]:n[t]=n[t]?n[t]+", "+r:r)}),n}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5ndsF":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){return!!(e&&e.__CANCEL__)}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],judoa:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("../core/AxiosError.js"),a=i.interopDefault(n),s=e("../utils.js");function o(e,t,r){(0,a.default).call(this,null==e?"canceled":e,a.default.ERR_CANCELED,t,r),this.name="CanceledError"}(0,i.interopDefault(s).default).inherits(o,a.default,{__CANCEL__:!0}),r.default=o},{"../core/AxiosError.js":"hjCVQ","../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6E0f0":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("../utils.js"),a=i.interopDefault(n),s=e("./http.js"),o=i.interopDefault(s),f=e("./xhr.js"),d=i.interopDefault(f),c=e("../core/AxiosError.js"),u=i.interopDefault(c);let l={http:o.default,xhr:d.default};(0,a.default).forEach(l,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let h=e=>`- ${e}`,p=e=>(0,a.default).isFunction(e)||null===e||!1===e;r.default={getAdapter:e=>{let t,r;e=(0,a.default).isArray(e)?e:[e];let{length:i}=e,n={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=i?e.length>1?"since :\n"+e.map(h).join("\n"):" "+h(e[0]):"as no adapter specified";throw new u.default("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:l}},{"../utils.js":"2ioTY","./http.js":"fN4B6","./xhr.js":"9qcoo","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9qcoo":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("./../core/settle.js"),o=i.interopDefault(s),f=e("./../helpers/cookies.js"),d=i.interopDefault(f),c=e("./../helpers/buildURL.js"),u=i.interopDefault(c),l=e("../core/buildFullPath.js"),h=i.interopDefault(l),p=e("./../helpers/isURLSameOrigin.js"),b=i.interopDefault(p),m=e("../defaults/transitional.js"),g=i.interopDefault(m),y=e("../core/AxiosError.js"),v=i.interopDefault(y),w=e("../cancel/CanceledError.js"),_=i.interopDefault(w),M=e("../helpers/parseProtocol.js"),E=i.interopDefault(M),A=e("../platform/index.js"),S=i.interopDefault(A),x=e("../core/AxiosHeaders.js"),I=i.interopDefault(x),R=e("../helpers/speedometer.js"),k=i.interopDefault(R);function T(e,t){let r=0,i=(0,k.default)(50,250);return n=>{let a=n.loaded,s=n.lengthComputable?n.total:void 0,o=a-r,f=i(o),d=a<=s;r=a;let c={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:f||void 0,estimated:f&&s&&d?(s-a)/f:void 0,event:n};c[t?"download":"upload"]=!0,e(c)}}let C="undefined"!=typeof XMLHttpRequest;r.default=C&&function(e){return new Promise(function(t,r){let i,n,s=e.data,f=(0,I.default).from(e.headers).normalize(),{responseType:c,withXSRFToken:l}=e;function p(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if((0,a.default).isFormData(s)){if(S.default.hasStandardBrowserEnv||S.default.hasStandardBrowserWebWorkerEnv)f.setContentType(!1);else if(!1!==(n=f.getContentType())){let[e,...t]=n?n.split(";").map(e=>e.trim()).filter(Boolean):[];f.setContentType([e||"multipart/form-data",...t].join("; "))}}let m=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";f.set("Authorization","Basic "+btoa(t+":"+r))}let y=(0,h.default)(e.baseURL,e.url);function w(){if(!m)return;let i=(0,I.default).from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),n=c&&"text"!==c&&"json"!==c?m.response:m.responseText,a={data:n,status:m.status,statusText:m.statusText,headers:i,config:e,request:m};(0,o.default)(function(e){t(e),p()},function(e){r(e),p()},a),m=null}if(m.open(e.method.toUpperCase(),(0,u.default)(y,e.params,e.paramsSerializer),!0),m.timeout=e.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(r(new v.default("Request aborted",v.default.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new v.default("Network Error",v.default.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||g.default;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new v.default(t,i.clarifyTimeoutError?v.default.ETIMEDOUT:v.default.ECONNABORTED,e,m)),m=null},S.default.hasStandardBrowserEnv&&(l&&(0,a.default).isFunction(l)&&(l=l(e)),l||!1!==l&&(0,b.default)(y))){let t=e.xsrfHeaderName&&e.xsrfCookieName&&(0,d.default).read(e.xsrfCookieName);t&&f.set(e.xsrfHeaderName,t)}void 0===s&&f.setContentType(null),"setRequestHeader"in m&&(0,a.default).forEach(f.toJSON(),function(e,t){m.setRequestHeader(t,e)}),(0,a.default).isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),c&&"json"!==c&&(m.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&m.addEventListener("progress",T(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",T(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{m&&(r(!t||t.type?new _.default(null,e,m):t),m.abort(),m=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));let M=(0,E.default)(y);if(M&&-1===(0,S.default).protocols.indexOf(M)){r(new v.default("Unsupported protocol "+M+":",v.default.ERR_BAD_REQUEST,e));return}m.send(s||null)})}},{"./../utils.js":"2ioTY","./../core/settle.js":"dlf0W","./../helpers/cookies.js":"lftHJ","./../helpers/buildURL.js":"aGaJq","../core/buildFullPath.js":"48uot","./../helpers/isURLSameOrigin.js":"33eDi","../defaults/transitional.js":"lBqaD","../core/AxiosError.js":"hjCVQ","../cancel/CanceledError.js":"judoa","../helpers/parseProtocol.js":"3ExDf","../platform/index.js":"fP1Ni","../core/AxiosHeaders.js":"1qkRX","../helpers/speedometer.js":"cludo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dlf0W:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>s);"use strict";var n=e("./AxiosError.js"),a=i.interopDefault(n);function s(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new a.default("Request failed with status code "+r.status,[a.default.ERR_BAD_REQUEST,a.default.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},{"./AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lftHJ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../platform/index.js"),o=i.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?{write(e,t,r,i,n,s){let o=[e+"="+encodeURIComponent(t)];(0,a.default).isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),(0,a.default).isString(i)&&o.push("path="+i),(0,a.default).isString(n)&&o.push("domain="+n),!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":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"48uot":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>f);"use strict";var n=e("../helpers/isAbsoluteURL.js"),a=i.interopDefault(n),s=e("../helpers/combineURLs.js"),o=i.interopDefault(s);function f(e,t){return e&&!(0,a.default)(t)?(0,o.default)(e,t):t}},{"../helpers/isAbsoluteURL.js":"lW14e","../helpers/combineURLs.js":"kZdZo","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lW14e:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kZdZo:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"33eDi":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n),s=e("../platform/index.js"),o=i.interopDefault(s);r.default=o.default.hasStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){let i=e;return t&&(r.setAttribute("href",i),i=r.href),r.setAttribute("href",i),{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=i(window.location.href),function(t){let r=(0,a.default).isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},{"./../utils.js":"2ioTY","../platform/index.js":"fP1Ni","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3ExDf":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cludo:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);"use strict";r.default=function(e,t){let r;e=e||10;let i=Array(e),n=Array(e),a=0,s=0;return t=void 0!==t?t:1e3,function(o){let f=Date.now(),d=n[s];r||(r=f),i[a]=o,n[a]=f;let c=s,u=0;for(;c!==a;)u+=i[c++],c%=e;if((a=(a+1)%e)===s&&(s=(s+1)%e),f-rd);"use strict";var n=e("../utils.js"),a=i.interopDefault(n),s=e("./AxiosHeaders.js"),o=i.interopDefault(s);let f=e=>e instanceof o.default?e.toJSON():e;function d(e,t){t=t||{};let r={};function i(e,t,r){return(0,a.default).isPlainObject(e)&&(0,a.default).isPlainObject(t)?(0,a.default).merge.call({caseless:r},e,t):(0,a.default).isPlainObject(t)?(0,a.default).merge({},t):(0,a.default).isArray(t)?t.slice():t}function n(e,t,r){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:i(void 0,e,r):i(e,t,r)}function s(e,t){if(!(0,a.default).isUndefined(t))return i(void 0,t)}function o(e,t){return(0,a.default).isUndefined(t)?(0,a.default).isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function d(r,n,a){return a in t?i(r,n):a in e?i(void 0,r):void 0}let c={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:d,headers:(e,t)=>n(f(e),f(t),!0)};return(0,a.default).forEach(Object.keys(Object.assign({},e,t)),function(i){let s=c[i]||n,o=s(e[i],t[i],i);(0,a.default).isUndefined(o)&&s!==d||(r[i]=o)}),r}},{"../utils.js":"2ioTY","./AxiosHeaders.js":"1qkRX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8PNBN":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";i.defineInteropFlag(r);var n=e("../env/data.js"),a=e("../core/AxiosError.js"),s=i.interopDefault(a);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 f={};o.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n.VERSION+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,n,a)=>{if(!1===e)throw new s.default(i(n," has been removed"+(t?" in "+t:"")),s.default.ERR_DEPRECATED);return t&&!f[n]&&(f[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},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 i=Object.keys(e),n=i.length;for(;n-- >0;){let a=i[n],o=t[a];if(o){let t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new s.default("option "+a+" must be "+r,s.default.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new s.default("Unknown option "+a,s.default.ERR_BAD_OPTION)}},validators:o}},{"../env/data.js":"9ssnR","../core/AxiosError.js":"hjCVQ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9ssnR":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"VERSION",()=>n);let n="1.6.5"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aN3e":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);"use strict";var n=e("./CanceledError.js"),a=i.interopDefault(n);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 i=new Promise(e=>{r.subscribe(e),t=e}).then(e);return i.cancel=function(){r.unsubscribe(t)},i},e(function(e,i,n){r.reason||(r.reason=new a.default(e,i,n),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)}static source(){let e;let t=new s(function(t){e=t});return{token:t,cancel:e}}}r.default=s},{"./CanceledError.js":"judoa","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gQxw3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){return function(t){return e.apply(null,t)}}i.defineInteropFlag(r),i.export(r,"default",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lE0ea:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"default",()=>s);"use strict";var n=e("./../utils.js"),a=i.interopDefault(n);function s(e){return(0,a.default).isObject(e)&&!0===e.isAxiosError}},{"./../utils.js":"2ioTY","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],agO1h:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let i={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(i).forEach(([e,t])=>{i[t]=e}),r.default=i},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2eu25":[function(e,t,r){var i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A=e("@parcel/transformer-js/src/esmodule-helpers.js");A.defineInteropFlag(r),A.export(r,"BlockchainData",()=>tw),A.export(r,"ImxApiClients",()=>t_),A.export(r,"MultiRollupApiClients",()=>tM),A.export(r,"createConfig",()=>tA),A.export(r,"imx",()=>eD),A.export(r,"imxApiConfig",()=>tS),A.export(r,"mr",()=>tv),A.export(r,"multiRollupConfig",()=>tx);var S=e("axios"),x=A.interopDefault(S);let I="https://api.sandbox.x.immutable.com".replace(/\/+$/,""),R=class{basePath;axios;configuration;constructor(e,t=I,r=x.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}},k=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},T="https://example.com",C=function(e,t,r){if(null==r)throw new k(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},P=async function(e,t,r){if(r&&r.apiKey){let i="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=i}},O=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,i=""){"object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,i)):Object.keys(r).forEach(n=>e(t,r[n],`${i}${""!==i?".":""}${n}`)):t.has(i)?t.append(i,r):t.set(i,r)}(r,t),e.search=r.toString()},N=function(e,t,r){let i="string"!=typeof e,n=i&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):i;return n?JSON.stringify(void 0!==e?e:{}):e||""},j=function(e){return e.pathname+e.search+e.hash},B=function(e,t,r,i){return(n=t,a=r)=>{let s={...e.options,url:(i?.basePath||a)+e.url};return n.request(s)}},L=function(e){return{getAsset:async(t,r,i,n={})=>{let a;C("getAsset","tokenAddress",t),C("getAsset","tokenId",r);let s="/v1/assets/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),o=new URL(s,T);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};void 0!==i&&(d.include_fees=i),O(o,d);let c=a&&a.headers?a.headers:{};return f.headers={...c,...n.headers},{url:j(o),options:f}},listAssets:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g={})=>{let y;let v=new URL("/v1/assets",T);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==i&&(_.order_by=i),void 0!==n&&(_.direction=n),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.name=o),void 0!==f&&(_.metadata=f),void 0!==d&&(_.sell_orders=d),void 0!==c&&(_.buy_orders=c),void 0!==u&&(_.include_fees=u),void 0!==l&&(_.collection=l),void 0!==h&&(_.updated_min_timestamp=h),void 0!==p&&(_.updated_max_timestamp=p),void 0!==b&&(_.auxiliary_fee_percentages=b),void 0!==m&&(_.auxiliary_fee_recipients=m),O(v,_);let M=y&&y.headers?y.headers:{};return w.headers={...M,...g.headers},{url:j(v),options:w}}}},D=function(e){let t=L(e);return{async getAsset(r,i,n,a){let s=await t.getAsset(r,i,n,a);return B(s,x.default,I,e)},async listAssets(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y){let v=await t.listAssets(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y);return B(v,x.default,I,e)}}};class F 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))}}let U=function(e){return{getBalance:async(t,r,i={})=>{let n;C("getBalance","owner",t),C("getBalance","address",r);let a="/v2/balances/{owner}/{address}".replace("{owner}",encodeURIComponent(String(t))).replace("{address}",encodeURIComponent(String(r))),s=new URL(a,T);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};O(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:j(s),options:o}},listBalances:async(t,r,i,n,a,s={})=>{let o;C("listBalances","owner",t);let f="/v2/balances/{owner}".replace("{owner}",encodeURIComponent(String(t))),d=new URL(f,T);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={};void 0!==r&&(u.page_size=r),void 0!==i&&(u.cursor=i),void 0!==n&&(u.order_by=n),void 0!==a&&(u.direction=a),O(d,u);let l=o&&o.headers?o.headers:{};return c.headers={...l,...s.headers},{url:j(d),options:c}}}},q=function(e){let t=U(e);return{async getBalance(r,i,n){let a=await t.getBalance(r,i,n);return B(a,x.default,I,e)},async listBalances(r,i,n,a,s,o){let f=await t.listBalances(r,i,n,a,s,o);return B(f,x.default,I,e)}}};class z 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))}}let K=function(e){return{createCollection:async(t,r,i,n,a={})=>{let s;C("createCollection","iMXSignature",t),C("createCollection","iMXTimestamp",r),C("createCollection","createCollectionRequest",i);let o=new URL("/v1/collections",T);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=t&&(d["IMX-Signature"]=String(t)),null!=r&&(d["IMX-Timestamp"]=String(r)),null!=n&&(d["x-immutable-api-key"]=String(n)),d["Content-Type"]="application/json",O(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=N(i,f,e),{url:j(o),options:f}},getCollection:async(t,r={})=>{let i;C("getCollection","address",t);let n="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},listCollectionFilters:async(t,r,i,n={})=>{let a;C("listCollectionFilters","address",t);let s="/v1/collections/{address}/filters".replace("{address}",encodeURIComponent(String(t))),o=new URL(s,T);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};void 0!==r&&(d.page_size=r),void 0!==i&&(d.next_page_token=i),O(o,d);let c=a&&a.headers?a.headers:{};return f.headers={...c,...n.headers},{url:j(o),options:f}},listCollections:async(t,r,i,n,a,s,o,f={})=>{let d;let c=new URL("/v1/collections",T);e&&(d=e.baseOptions);let u={method:"GET",...d,...f},l={};void 0!==t&&(l.page_size=t),void 0!==r&&(l.cursor=r),void 0!==i&&(l.order_by=i),void 0!==n&&(l.direction=n),void 0!==a&&(l.blacklist=a),void 0!==s&&(l.whitelist=s),void 0!==o&&(l.keyword=o),O(c,l);let h=d&&d.headers?d.headers:{};return u.headers={...h,...f.headers},{url:j(c),options:u}},summarizeCollections:async(t,r={})=>{let i;C("summarizeCollections","user",t);let n=new URL("/v1/collections-summary",T);e&&(i=e.baseOptions);let a={method:"GET",...i,...r},s={};void 0!==t&&(s.user=t),O(n,s);let o=i&&i.headers?i.headers:{};return a.headers={...o,...r.headers},{url:j(n),options:a}},updateCollection:async(t,r,i,n,a={})=>{let s;C("updateCollection","address",t),C("updateCollection","iMXSignature",r),C("updateCollection","iMXTimestamp",i),C("updateCollection","updateCollectionRequest",n);let o="/v1/collections/{address}".replace("{address}",encodeURIComponent(String(t))),f=new URL(o,T);e&&(s=e.baseOptions);let d={method:"PATCH",...s,...a},c={};null!=r&&(c["IMX-Signature"]=String(r)),null!=i&&(c["IMX-Timestamp"]=String(i)),c["Content-Type"]="application/json",O(f,{});let u=s&&s.headers?s.headers:{};return d.headers={...c,...u,...a.headers},d.data=N(n,d,e),{url:j(f),options:d}}}},H=function(e){let t=K(e);return{async createCollection(r,i,n,a,s){let o=await t.createCollection(r,i,n,a,s);return B(o,x.default,I,e)},async getCollection(r,i){let n=await t.getCollection(r,i);return B(n,x.default,I,e)},async listCollectionFilters(r,i,n,a){let s=await t.listCollectionFilters(r,i,n,a);return B(s,x.default,I,e)},async listCollections(r,i,n,a,s,o,f,d){let c=await t.listCollections(r,i,n,a,s,o,f,d);return B(c,x.default,I,e)},async summarizeCollections(r,i){let n=await t.summarizeCollections(r,i);return B(n,x.default,I,e)},async updateCollection(r,i,n,a,s){let o=await t.updateCollection(r,i,n,a,s);return B(o,x.default,I,e)}}},V=class extends R{createCollection(e,t){return H(this.configuration).createCollection(e.iMXSignature,e.iMXTimestamp,e.createCollectionRequest,e.xImmutableApiKey,t).then(e=>e(this.axios,this.basePath))}getCollection(e,t){return H(this.configuration).getCollection(e.address,t).then(e=>e(this.axios,this.basePath))}listCollectionFilters(e,t){return H(this.configuration).listCollectionFilters(e.address,e.pageSize,e.nextPageToken,t).then(e=>e(this.axios,this.basePath))}listCollections(e={},t){return H(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 H(this.configuration).summarizeCollections(e.user,t).then(e=>e(this.axios,this.basePath))}updateCollection(e,t){return H(this.configuration).updateCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.updateCollectionRequest,t).then(e=>e(this.axios,this.basePath))}},W=function(e){return{getDeposit:async(t,r={})=>{let i;C("getDeposit","id",t);let n="/v1/deposits/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},getSignableDeposit:async(t,r={})=>{let i;C("getSignableDeposit","getSignableDepositRequest",t);let n=new URL("/v1/signable-deposit-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},listDeposits:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g={})=>{let y;let v=new URL("/v1/deposits",T);e&&(y=e.baseOptions);let w={method:"GET",...y,...g},_={};void 0!==t&&(_.page_size=t),void 0!==r&&(_.cursor=r),void 0!==i&&(_.order_by=i),void 0!==n&&(_.direction=n),void 0!==a&&(_.user=a),void 0!==s&&(_.status=s),void 0!==o&&(_.min_timestamp=o),void 0!==f&&(_.max_timestamp=f),void 0!==d&&(_.token_type=d),void 0!==c&&(_.token_id=c),void 0!==u&&(_.asset_id=u),void 0!==l&&(_.token_address=l),void 0!==h&&(_.token_name=h),void 0!==p&&(_.min_quantity=p),void 0!==b&&(_.max_quantity=b),void 0!==m&&(_.metadata=m),O(v,_);let M=y&&y.headers?y.headers:{};return w.headers={...M,...g.headers},{url:j(v),options:w}}}},G=function(e){let t=W(e);return{async getDeposit(r,i){let n=await t.getDeposit(r,i);return B(n,x.default,I,e)},async getSignableDeposit(r,i){let n=await t.getSignableDeposit(r,i);return B(n,x.default,I,e)},async listDeposits(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y){let v=await t.listDeposits(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y);return B(v,x.default,I,e)}}};class J extends R{getDeposit(e,t){return G(this.configuration).getDeposit(e.id,t).then(e=>e(this.axios,this.basePath))}getSignableDeposit(e,t){return G(this.configuration).getSignableDeposit(e.getSignableDepositRequest,t).then(e=>e(this.axios,this.basePath))}listDeposits(e={},t){return G(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))}}let Z=function(e){return{encodeAsset:async(t,r,i={})=>{let n;C("encodeAsset","assetType",t),C("encodeAsset","encodeAssetRequest",r);let a="/v1/encode/{assetType}".replace("{assetType}",encodeURIComponent(String(t))),s=new URL(a,T);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",O(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=N(r,o,e),{url:j(s),options:o}}}},X=function(e){let t=Z(e);return{async encodeAsset(r,i,n){let a=await t.encodeAsset(r,i,n);return B(a,x.default,I,e)}}};class $ extends R{encodeAsset(e,t){return X(this.configuration).encodeAsset(e.assetType,e.encodeAssetRequest,t).then(e=>e(this.axios,this.basePath))}}let Y=function(e){return{createExchange:async(t,r={})=>{let i;C("createExchange","createExchangeAPIRequest",t);let n=new URL("/v3/exchanges",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},createExchangeTransfer:async(t,r,i,n,a,s={})=>{let o;C("createExchangeTransfer","id",t),C("createExchangeTransfer","createTransferRequest",r);let f="/v2/exchanges/{id}/transfers".replace("{id}",encodeURIComponent(String(t))),d=new URL(f,T);e&&(o=e.baseOptions);let c={method:"POST",...o,...s},u={};null!=i&&(u["x-imx-eth-address"]=String(i)),null!=n&&(u["x-imx-eth-signature"]=String(n)),null!=a&&(u.Authorization=String(a)),u["Content-Type"]="application/json",O(d,{});let l=o&&o.headers?o.headers:{};return c.headers={...u,...l,...s.headers},c.data=N(r,c,e),{url:j(d),options:c}},getExchange:async(t,r={})=>{let i;C("getExchange","id",t);let n="/v3/exchanges/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},getExchangeSignableTransfer:async(t,r,i={})=>{let n;C("getExchangeSignableTransfer","id",t),C("getExchangeSignableTransfer","getSignableTransferRequest",r);let a="/v2/exchanges/{id}/signable-transfer-details".replace("{id}",encodeURIComponent(String(t))),s=new URL(a,T);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",O(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=N(r,o,e),{url:j(s),options:o}},getExchanges:async(t,r,i,n,a,s,o,f,d,c={})=>{let u;let l=new URL("/v3/exchanges",T);e&&(u=e.baseOptions);let h={method:"GET",...u,...c},p={};void 0!==t&&(p.page_size=t),void 0!==r&&(p.cursor=r),void 0!==i&&(p.order_by=i),void 0!==n&&(p.direction=n),void 0!==a&&(p.id=a),void 0!==s&&(p.wallet_address=s),void 0!==o&&(p.status=o),void 0!==f&&(p.provider=f),void 0!==d&&(p.transfer_id=d),O(l,p);let b=u&&u.headers?u.headers:{};return h.headers={...b,...c.headers},{url:j(l),options:h}}}},Q=function(e){let t=Y(e);return{async createExchange(r,i){let n=await t.createExchange(r,i);return B(n,x.default,I,e)},async createExchangeTransfer(r,i,n,a,s,o){let f=await t.createExchangeTransfer(r,i,n,a,s,o);return B(f,x.default,I,e)},async getExchange(r,i){let n=await t.getExchange(r,i);return B(n,x.default,I,e)},async getExchangeSignableTransfer(r,i,n){let a=await t.getExchangeSignableTransfer(r,i,n);return B(a,x.default,I,e)},async getExchanges(r,i,n,a,s,o,f,d,c,u){let l=await t.getExchanges(r,i,n,a,s,o,f,d,c,u);return B(l,x.default,I,e)}}};class ee extends R{createExchange(e,t){return Q(this.configuration).createExchange(e.createExchangeAPIRequest,t).then(e=>e(this.axios,this.basePath))}createExchangeTransfer(e,t){return Q(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 Q(this.configuration).getExchange(e.id,t).then(e=>e(this.axios,this.basePath))}getExchangeSignableTransfer(e,t){return Q(this.configuration).getExchangeSignableTransfer(e.id,e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getExchanges(e={},t){return Q(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))}}let et=function(e){return{addMetadataSchemaToCollection:async(t,r,i,n,a={})=>{let s;C("addMetadataSchemaToCollection","address",t),C("addMetadataSchemaToCollection","iMXSignature",r),C("addMetadataSchemaToCollection","iMXTimestamp",i),C("addMetadataSchemaToCollection","addMetadataSchemaToCollectionRequest",n);let o="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),f=new URL(o,T);e&&(s=e.baseOptions);let d={method:"POST",...s,...a},c={};null!=r&&(c["IMX-Signature"]=String(r)),null!=i&&(c["IMX-Timestamp"]=String(i)),c["Content-Type"]="application/json",O(f,{});let u=s&&s.headers?s.headers:{};return d.headers={...c,...u,...a.headers},d.data=N(n,d,e),{url:j(f),options:d}},getMetadataSchema:async(t,r={})=>{let i;C("getMetadataSchema","address",t);let n="/v1/collections/{address}/metadata-schema".replace("{address}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},updateMetadataSchemaByName:async(t,r,i,n,a,s={})=>{let o;C("updateMetadataSchemaByName","address",t),C("updateMetadataSchemaByName","name",r),C("updateMetadataSchemaByName","iMXSignature",i),C("updateMetadataSchemaByName","iMXTimestamp",n),C("updateMetadataSchemaByName","metadataSchemaRequest",a);let f="/v1/collections/{address}/metadata-schema/{name}".replace("{address}",encodeURIComponent(String(t))).replace("{name}",encodeURIComponent(String(r))),d=new URL(f,T);e&&(o=e.baseOptions);let c={method:"PATCH",...o,...s},u={};null!=i&&(u["IMX-Signature"]=String(i)),null!=n&&(u["IMX-Timestamp"]=String(n)),u["Content-Type"]="application/json",O(d,{});let l=o&&o.headers?o.headers:{};return c.headers={...u,...l,...s.headers},c.data=N(a,c,e),{url:j(d),options:c}}}},er=function(e){let t=et(e);return{async addMetadataSchemaToCollection(r,i,n,a,s){let o=await t.addMetadataSchemaToCollection(r,i,n,a,s);return B(o,x.default,I,e)},async getMetadataSchema(r,i){let n=await t.getMetadataSchema(r,i);return B(n,x.default,I,e)},async updateMetadataSchemaByName(r,i,n,a,s,o){let f=await t.updateMetadataSchemaByName(r,i,n,a,s,o);return B(f,x.default,I,e)}}},ei=class extends R{addMetadataSchemaToCollection(e,t){return er(this.configuration).addMetadataSchemaToCollection(e.address,e.iMXSignature,e.iMXTimestamp,e.addMetadataSchemaToCollectionRequest,t).then(e=>e(this.axios,this.basePath))}getMetadataSchema(e,t){return er(this.configuration).getMetadataSchema(e.address,t).then(e=>e(this.axios,this.basePath))}updateMetadataSchemaByName(e,t){return er(this.configuration).updateMetadataSchemaByName(e.address,e.name,e.iMXSignature,e.iMXTimestamp,e.metadataSchemaRequest,t).then(e=>e(this.axios,this.basePath))}},en=function(e){return{getAListOfMetadataRefreshes:async(t,r,i,n,a,s,o={})=>{let f;C("getAListOfMetadataRefreshes","xImxEthSignature",t),C("getAListOfMetadataRefreshes","xImxEthTimestamp",r),C("getAListOfMetadataRefreshes","xImxEthAddress",i);let d=new URL("/v1/metadata-refreshes",T);e&&(f=e.baseOptions);let c={method:"GET",...f,...o},u={},l={};void 0!==n&&(l.page_size=n),void 0!==a&&(l.cursor=a),void 0!==s&&(l.collection_address=s),null!=t&&(u["x-imx-eth-signature"]=String(t)),null!=r&&(u["x-imx-eth-timestamp"]=String(r)),null!=i&&(u["x-imx-eth-address"]=String(i)),O(d,l);let h=f&&f.headers?f.headers:{};return c.headers={...u,...h,...o.headers},{url:j(d),options:c}},getMetadataRefreshErrors:async(t,r,i,n,a,s,o={})=>{let f;C("getMetadataRefreshErrors","refreshId",t),C("getMetadataRefreshErrors","xImxEthSignature",r),C("getMetadataRefreshErrors","xImxEthTimestamp",i),C("getMetadataRefreshErrors","xImxEthAddress",n);let d="/v1/metadata-refreshes/{refresh_id}/errors".replace("{refresh_id}",encodeURIComponent(String(t))),c=new URL(d,T);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={},h={};void 0!==a&&(h.page_size=a),void 0!==s&&(h.cursor=s),null!=r&&(l["x-imx-eth-signature"]=String(r)),null!=i&&(l["x-imx-eth-timestamp"]=String(i)),null!=n&&(l["x-imx-eth-address"]=String(n)),O(c,h);let p=f&&f.headers?f.headers:{};return u.headers={...l,...p,...o.headers},{url:j(c),options:u}},getMetadataRefreshResults:async(t,r,i,n,a={})=>{let s;C("getMetadataRefreshResults","refreshId",t),C("getMetadataRefreshResults","xImxEthSignature",r),C("getMetadataRefreshResults","xImxEthTimestamp",i),C("getMetadataRefreshResults","xImxEthAddress",n);let o="/v1/metadata-refreshes/{refresh_id}".replace("{refresh_id}",encodeURIComponent(String(t))),f=new URL(o,T);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};null!=r&&(c["x-imx-eth-signature"]=String(r)),null!=i&&(c["x-imx-eth-timestamp"]=String(i)),null!=n&&(c["x-imx-eth-address"]=String(n)),O(f,{});let u=s&&s.headers?s.headers:{};return d.headers={...c,...u,...a.headers},{url:j(f),options:d}},requestAMetadataRefresh:async(t,r,i,n,a={})=>{let s;C("requestAMetadataRefresh","xImxEthSignature",t),C("requestAMetadataRefresh","xImxEthTimestamp",r),C("requestAMetadataRefresh","xImxEthAddress",i),C("requestAMetadataRefresh","createMetadataRefreshRequest",n);let o=new URL("/v1/metadata-refreshes",T);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=t&&(d["x-imx-eth-signature"]=String(t)),null!=r&&(d["x-imx-eth-timestamp"]=String(r)),null!=i&&(d["x-imx-eth-address"]=String(i)),d["Content-Type"]="application/json",O(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=N(n,f,e),{url:j(o),options:f}}}},ea=function(e){let t=en(e);return{async getAListOfMetadataRefreshes(r,i,n,a,s,o,f){let d=await t.getAListOfMetadataRefreshes(r,i,n,a,s,o,f);return B(d,x.default,I,e)},async getMetadataRefreshErrors(r,i,n,a,s,o,f){let d=await t.getMetadataRefreshErrors(r,i,n,a,s,o,f);return B(d,x.default,I,e)},async getMetadataRefreshResults(r,i,n,a,s){let o=await t.getMetadataRefreshResults(r,i,n,a,s);return B(o,x.default,I,e)},async requestAMetadataRefresh(r,i,n,a,s){let o=await t.requestAMetadataRefresh(r,i,n,a,s);return B(o,x.default,I,e)}}};class es extends R{getAListOfMetadataRefreshes(e,t){return ea(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 ea(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 ea(this.configuration).getMetadataRefreshResults(e.refreshId,e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,t).then(e=>e(this.axios,this.basePath))}requestAMetadataRefresh(e,t){return ea(this.configuration).requestAMetadataRefresh(e.xImxEthSignature,e.xImxEthTimestamp,e.xImxEthAddress,e.createMetadataRefreshRequest,t).then(e=>e(this.axios,this.basePath))}}let eo=function(e){return{getMint:async(t,r={})=>{let i;C("getMint","id",t);let n="/v1/mints/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},getMintableTokenDetailsByClientTokenId:async(t,r,i={})=>{let n;C("getMintableTokenDetailsByClientTokenId","tokenAddress",t),C("getMintableTokenDetailsByClientTokenId","tokenId",r);let a="/v1/mintable-token/{token_address}/{token_id}".replace("{token_address}",encodeURIComponent(String(t))).replace("{token_id}",encodeURIComponent(String(r))),s=new URL(a,T);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};O(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:j(s),options:o}},listMints:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m={})=>{let g;let y=new URL("/v1/mints",T);e&&(g=e.baseOptions);let v={method:"GET",...g,...m},w={};void 0!==t&&(w.page_size=t),void 0!==r&&(w.cursor=r),void 0!==i&&(w.order_by=i),void 0!==n&&(w.direction=n),void 0!==a&&(w.user=a),void 0!==s&&(w.status=s),void 0!==o&&(w.min_timestamp=o),void 0!==f&&(w.max_timestamp=f),void 0!==d&&(w.token_type=d),void 0!==c&&(w.token_id=c),void 0!==u&&(w.token_name=u),void 0!==l&&(w.token_address=l),void 0!==h&&(w.min_quantity=h),void 0!==p&&(w.max_quantity=p),void 0!==b&&(w.metadata=b),O(y,w);let _=g&&g.headers?g.headers:{};return v.headers={..._,...m.headers},{url:j(y),options:v}},mintTokens:async(t,r={})=>{let i;C("mintTokens","mintTokensRequestV2",t);let n=new URL("/v2/mints",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}}}},ef=function(e){let t=eo(e);return{async getMint(r,i){let n=await t.getMint(r,i);return B(n,x.default,I,e)},async getMintableTokenDetailsByClientTokenId(r,i,n){let a=await t.getMintableTokenDetailsByClientTokenId(r,i,n);return B(a,x.default,I,e)},async listMints(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g){let y=await t.listMints(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g);return B(y,x.default,I,e)},async mintTokens(r,i){let n=await t.mintTokens(r,i);return B(n,x.default,I,e)}}};class ed extends R{getMint(e,t){return ef(this.configuration).getMint(e.id,t).then(e=>e(this.axios,this.basePath))}getMintableTokenDetailsByClientTokenId(e,t){return ef(this.configuration).getMintableTokenDetailsByClientTokenId(e.tokenAddress,e.tokenId,t).then(e=>e(this.axios,this.basePath))}listMints(e={},t){return ef(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 ef(this.configuration).mintTokens(e.mintTokensRequestV2,t).then(e=>e(this.axios,this.basePath))}}let ec=function(e){return{createNftPrimary:async(t,r={})=>{let i;C("createNftPrimary","createAPIRequest",t);let n=new URL("/v2/nft/primary",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getCurrenciesNFTCheckoutPrimary:async(t,r,i={})=>{let n;let a=new URL("/v2/nft/primary/currencies",T);e&&(n=e.baseOptions);let s={method:"GET",...n,...i},o={};void 0!==t&&(o.provider=t),void 0!==r&&(o.include_limits=r),O(a,o);let f=n&&n.headers?n.headers:{};return s.headers={...f,...i.headers},{url:j(a),options:s}},getNftPrimaryTransaction:async(t,r={})=>{let i;C("getNftPrimaryTransaction","transactionId",t);let n="/v2/nft/primary/{transaction_id}".replace("{transaction_id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},getNftPrimaryTransactions:async(t,r,i,n,a,s,o,f,d,c,u,l={})=>{let h;let p=new URL("/v2/nft/primary",T);e&&(h=e.baseOptions);let b={method:"GET",...h,...l},m={};void 0!==t&&(m.page_size=t),void 0!==r&&(m.cursor=r),void 0!==i&&(m.order_by=i),void 0!==n&&(m.direction=n),void 0!==a&&(m.transaction_id=a),void 0!==s&&(m.contract_address=s),void 0!==o&&(m.seller_wallet_address=o),void 0!==f&&(m.user_wallet_address=f),void 0!==d&&(m.status=d),void 0!==c&&(m.provider=c),void 0!==u&&(m.mint_id=u),O(p,m);let g=h&&h.headers?h.headers:{};return b.headers={...g,...l.headers},{url:j(p),options:b}},registerNftPrimarySalesContract:async(t,r={})=>{let i;C("registerNftPrimarySalesContract","createAPIRequest",t);let n=new URL("/v2/nft/primary/register",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}}}},eu=function(e){let t=ec(e);return{async createNftPrimary(r,i){let n=await t.createNftPrimary(r,i);return B(n,x.default,I,e)},async getCurrenciesNFTCheckoutPrimary(r,i,n){let a=await t.getCurrenciesNFTCheckoutPrimary(r,i,n);return B(a,x.default,I,e)},async getNftPrimaryTransaction(r,i){let n=await t.getNftPrimaryTransaction(r,i);return B(n,x.default,I,e)},async getNftPrimaryTransactions(r,i,n,a,s,o,f,d,c,u,l,h){let p=await t.getNftPrimaryTransactions(r,i,n,a,s,o,f,d,c,u,l,h);return B(p,x.default,I,e)},async registerNftPrimarySalesContract(r,i){let n=await t.registerNftPrimarySalesContract(r,i);return B(n,x.default,I,e)}}};class el extends R{createNftPrimary(e,t){return eu(this.configuration).createNftPrimary(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}getCurrenciesNFTCheckoutPrimary(e={},t){return eu(this.configuration).getCurrenciesNFTCheckoutPrimary(e.provider,e.includeLimits,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransaction(e,t){return eu(this.configuration).getNftPrimaryTransaction(e.transactionId,t).then(e=>e(this.axios,this.basePath))}getNftPrimaryTransactions(e={},t){return eu(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 eu(this.configuration).registerNftPrimarySalesContract(e.createAPIRequest,t).then(e=>e(this.axios,this.basePath))}}let eh=function(e){return{cancelOrderV3:async(t,r,i,n,a,s={})=>{let o;C("cancelOrderV3","id",t),C("cancelOrderV3","cancelOrderRequest",r);let f="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),d=new URL(f,T);e&&(o=e.baseOptions);let c={method:"DELETE",...o,...s},u={};null!=i&&(u["x-imx-eth-address"]=String(i)),null!=n&&(u["x-imx-eth-signature"]=String(n)),null!=a&&(u.Authorization=String(a)),u["Content-Type"]="application/json",O(d,{});let l=o&&o.headers?o.headers:{};return c.headers={...u,...l,...s.headers},c.data=N(r,c,e),{url:j(d),options:c}},createOrderV3:async(t,r,i,n,a={})=>{let s;C("createOrderV3","createOrderRequest",t);let o=new URL("/v3/orders",T);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",O(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=N(t,f,e),{url:j(o),options:f}},getOrderV3:async(t,r,i,n,a={})=>{let s;C("getOrderV3","id",t);let o="/v3/orders/{id}".replace("{id}",encodeURIComponent(String(t))),f=new URL(o,T);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.include_fees=r),void 0!==i&&(c.auxiliary_fee_percentages=i),void 0!==n&&(c.auxiliary_fee_recipients=n),O(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:j(f),options:d}},getSignableCancelOrderV3:async(t,r={})=>{let i;C("getSignableCancelOrderV3","getSignableCancelOrderRequest",t);let n=new URL("/v3/signable-cancel-order-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getSignableOrder:async(t,r={})=>{let i;C("getSignableOrder","getSignableOrderRequestV3",t);let n=new URL("/v3/signable-order-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},listOrdersV3:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,C={})=>{let P;let N=new URL("/v3/orders",T);e&&(P=e.baseOptions);let B={method:"GET",...P,...C},L={};void 0!==t&&(L.page_size=t),void 0!==r&&(L.cursor=r),void 0!==i&&(L.order_by=i),void 0!==n&&(L.direction=n),void 0!==a&&(L.user=a),void 0!==s&&(L.status=s),void 0!==o&&(L.min_timestamp=o),void 0!==f&&(L.max_timestamp=f),void 0!==d&&(L.updated_min_timestamp=d),void 0!==c&&(L.updated_max_timestamp=c),void 0!==u&&(L.buy_token_type=u),void 0!==l&&(L.buy_token_id=l),void 0!==h&&(L.buy_asset_id=h),void 0!==p&&(L.buy_token_address=p),void 0!==b&&(L.buy_token_name=b),void 0!==m&&(L.buy_min_quantity=m),void 0!==g&&(L.buy_max_quantity=g),void 0!==y&&(L.buy_metadata=y),void 0!==v&&(L.sell_token_type=v),void 0!==w&&(L.sell_token_id=w),void 0!==_&&(L.sell_asset_id=_),void 0!==M&&(L.sell_token_address=M),void 0!==E&&(L.sell_token_name=E),void 0!==A&&(L.sell_min_quantity=A),void 0!==S&&(L.sell_max_quantity=S),void 0!==x&&(L.sell_metadata=x),void 0!==I&&(L.auxiliary_fee_percentages=I),void 0!==R&&(L.auxiliary_fee_recipients=R),void 0!==k&&(L.include_fees=k),O(N,L);let D=P&&P.headers?P.headers:{};return B.headers={...D,...C.headers},{url:j(N),options:B}}}},ep=function(e){let t=eh(e);return{async cancelOrderV3(r,i,n,a,s,o){let f=await t.cancelOrderV3(r,i,n,a,s,o);return B(f,x.default,I,e)},async createOrderV3(r,i,n,a,s){let o=await t.createOrderV3(r,i,n,a,s);return B(o,x.default,I,e)},async getOrderV3(r,i,n,a,s){let o=await t.getOrderV3(r,i,n,a,s);return B(o,x.default,I,e)},async getSignableCancelOrderV3(r,i){let n=await t.getSignableCancelOrderV3(r,i);return B(n,x.default,I,e)},async getSignableOrder(r,i){let n=await t.getSignableOrder(r,i);return B(n,x.default,I,e)},async listOrdersV3(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,R,k,T,C,P,O){let N=await t.listOrdersV3(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,R,k,T,C,P,O);return B(N,x.default,I,e)}}},eb=class extends R{cancelOrderV3(e,t){return ep(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 ep(this.configuration).createOrderV3(e.createOrderRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getOrderV3(e,t){return ep(this.configuration).getOrderV3(e.id,e.includeFees,e.auxiliaryFeePercentages,e.auxiliaryFeeRecipients,t).then(e=>e(this.axios,this.basePath))}getSignableCancelOrderV3(e,t){return ep(this.configuration).getSignableCancelOrderV3(e.getSignableCancelOrderRequest,t).then(e=>e(this.axios,this.basePath))}getSignableOrder(e,t){return ep(this.configuration).getSignableOrder(e.getSignableOrderRequestV3,t).then(e=>e(this.axios,this.basePath))}listOrdersV3(e={},t){return ep(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))}},em=function(e){return{acceptPrimarySale:async(t,r={})=>{let i;C("acceptPrimarySale","id",t);let n="/v1/primary_sales/{id}/accept".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await P(o,"x-imx-eth-address",e),await P(o,"x-imx-eth-signature",e),O(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:j(a),options:s}},createPrimarySale:async(t,r={})=>{let i;let n=new URL("/v1/primary_sales",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await P(s,"x-imx-eth-address",e),await P(s,"x-imx-eth-signature",e),s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getPrimarySale:async(t,r={})=>{let i;C("getPrimarySale","id",t);let n="/v1/primary_sales/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},rejectPrimarySale:async(t,r={})=>{let i;C("rejectPrimarySale","id",t);let n="/v1/primary_sales/{id}/reject".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await P(o,"x-imx-eth-address",e),await P(o,"x-imx-eth-signature",e),O(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:j(a),options:s}},signableAcceptPrimarySale:async(t,r={})=>{let i;C("signableAcceptPrimarySale","id",t);let n="/v1/primary_sales/{id}/signable-accept-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"POST",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},signableCreatePrimarySale:async(t,r={})=>{let i;let n=new URL("/v1/primary_sales/signable-primary-sale-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},signableRejectPrimarySale:async(t,r={})=>{let i;C("signableRejectPrimarySale","id",t);let n="/v1/primary_sales/{id}/signable-reject-details".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"POST",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}}}},eg=function(e){let t=em(e);return{async acceptPrimarySale(r,i){let n=await t.acceptPrimarySale(r,i);return B(n,x.default,I,e)},async createPrimarySale(r,i){let n=await t.createPrimarySale(r,i);return B(n,x.default,I,e)},async getPrimarySale(r,i){let n=await t.getPrimarySale(r,i);return B(n,x.default,I,e)},async rejectPrimarySale(r,i){let n=await t.rejectPrimarySale(r,i);return B(n,x.default,I,e)},async signableAcceptPrimarySale(r,i){let n=await t.signableAcceptPrimarySale(r,i);return B(n,x.default,I,e)},async signableCreatePrimarySale(r,i){let n=await t.signableCreatePrimarySale(r,i);return B(n,x.default,I,e)},async signableRejectPrimarySale(r,i){let n=await t.signableRejectPrimarySale(r,i);return B(n,x.default,I,e)}}};class ey extends R{acceptPrimarySale(e,t){return eg(this.configuration).acceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}createPrimarySale(e={},t){return eg(this.configuration).createPrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}getPrimarySale(e,t){return eg(this.configuration).getPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}rejectPrimarySale(e,t){return eg(this.configuration).rejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableAcceptPrimarySale(e,t){return eg(this.configuration).signableAcceptPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}signableCreatePrimarySale(e={},t){return eg(this.configuration).signableCreatePrimarySale(e.body,t).then(e=>e(this.axios,this.basePath))}signableRejectPrimarySale(e,t){return eg(this.configuration).signableRejectPrimarySale(e.id,t).then(e=>e(this.axios,this.basePath))}}let ev=function(e){return{getProject:async(t,r,i,n={})=>{let a;C("getProject","id",t),C("getProject","iMXSignature",r),C("getProject","iMXTimestamp",i);let s="/v1/projects/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(s,T);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};null!=r&&(d["IMX-Signature"]=String(r)),null!=i&&(d["IMX-Timestamp"]=String(i)),O(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},{url:j(o),options:f}}}},ew=function(e){let t=ev(e);return{async getProject(r,i,n,a){let s=await t.getProject(r,i,n,a);return B(s,x.default,I,e)}}};class e_ extends R{getProject(e,t){return ew(this.configuration).getProject(e.id,e.iMXSignature,e.iMXTimestamp,t).then(e=>e(this.axios,this.basePath))}}let eM=function(e){return{getToken:async(t,r={})=>{let i;C("getToken","address",t);let n="/v1/tokens/{address}".replace("{address}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},listTokens:async(t,r,i,n,a,s,o={})=>{let f;let d=new URL("/v1/tokens",T);e&&(f=e.baseOptions);let c={method:"GET",...f,...o},u={};void 0!==t&&(u.page_size=t),void 0!==r&&(u.cursor=r),void 0!==i&&(u.order_by=i),void 0!==n&&(u.direction=n),void 0!==a&&(u.address=a),void 0!==s&&(u.symbols=s),O(d,u);let l=f&&f.headers?f.headers:{};return c.headers={...l,...o.headers},{url:j(d),options:c}}}},eE=function(e){let t=eM(e);return{async getToken(r,i){let n=await t.getToken(r,i);return B(n,x.default,I,e)},async listTokens(r,i,n,a,s,o,f){let d=await t.listTokens(r,i,n,a,s,o,f);return B(d,x.default,I,e)}}},eA=class extends R{getToken(e,t){return eE(this.configuration).getToken(e.address,t).then(e=>e(this.axios,this.basePath))}listTokens(e={},t){return eE(this.configuration).listTokens(e.pageSize,e.cursor,e.orderBy,e.direction,e.address,e.symbols,t).then(e=>e(this.axios,this.basePath))}},eS=function(e){return{createTradeV3:async(t,r,i,n,a={})=>{let s;C("createTradeV3","createTradeRequest",t);let o=new URL("/v3/trades",T);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",O(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=N(t,f,e),{url:j(o),options:f}},getSignableTrade:async(t,r={})=>{let i;C("getSignableTrade","getSignableTradeRequest",t);let n=new URL("/v3/signable-trade-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getTradeV3:async(t,r={})=>{let i;C("getTradeV3","id",t);let n="/v3/trades/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},listTradesV3:async(t,r,i,n,a,s,o,f,d,c,u,l={})=>{let h;let p=new URL("/v3/trades",T);e&&(h=e.baseOptions);let b={method:"GET",...h,...l},m={};void 0!==t&&(m.party_a_token_type=t),void 0!==r&&(m.party_a_token_address=r),void 0!==i&&(m.party_b_token_type=i),void 0!==n&&(m.party_b_token_address=n),void 0!==a&&(m.party_b_token_id=a),void 0!==s&&(m.page_size=s),void 0!==o&&(m.cursor=o),void 0!==f&&(m.order_by=f),void 0!==d&&(m.direction=d),void 0!==c&&(m.min_timestamp=c),void 0!==u&&(m.max_timestamp=u),O(p,m);let g=h&&h.headers?h.headers:{};return b.headers={...g,...l.headers},{url:j(p),options:b}}}},ex=function(e){let t=eS(e);return{async createTradeV3(r,i,n,a,s){let o=await t.createTradeV3(r,i,n,a,s);return B(o,x.default,I,e)},async getSignableTrade(r,i){let n=await t.getSignableTrade(r,i);return B(n,x.default,I,e)},async getTradeV3(r,i){let n=await t.getTradeV3(r,i);return B(n,x.default,I,e)},async listTradesV3(r,i,n,a,s,o,f,d,c,u,l,h){let p=await t.listTradesV3(r,i,n,a,s,o,f,d,c,u,l,h);return B(p,x.default,I,e)}}};class eI extends R{createTradeV3(e,t){return ex(this.configuration).createTradeV3(e.createTradeRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTrade(e,t){return ex(this.configuration).getSignableTrade(e.getSignableTradeRequest,t).then(e=>e(this.axios,this.basePath))}getTradeV3(e,t){return ex(this.configuration).getTradeV3(e.id,t).then(e=>e(this.axios,this.basePath))}listTradesV3(e={},t){return ex(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))}}let eR=function(e){return{createTransfer:async(t,r,i,n,a={})=>{let s;C("createTransfer","createTransferRequestV2",t);let o=new URL("/v2/transfers",T);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",O(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=N(t,f,e),{url:j(o),options:f}},createTransferV1:async(t,r,i,n,a={})=>{let s;C("createTransferV1","createTransferRequest",t);let o=new URL("/v1/transfers",T);e&&(s=e.baseOptions);let f={method:"POST",...s,...a},d={};null!=r&&(d["x-imx-eth-address"]=String(r)),null!=i&&(d["x-imx-eth-signature"]=String(i)),null!=n&&(d.Authorization=String(n)),d["Content-Type"]="application/json",O(o,{});let c=s&&s.headers?s.headers:{};return f.headers={...d,...c,...a.headers},f.data=N(t,f,e),{url:j(o),options:f}},getSignableTransfer:async(t,r={})=>{let i;C("getSignableTransfer","getSignableTransferRequestV2",t);let n=new URL("/v2/signable-transfer-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getSignableTransferV1:async(t,r={})=>{let i;C("getSignableTransferV1","getSignableTransferRequest",t);let n=new URL("/v1/signable-transfer-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getTransfer:async(t,r={})=>{let i;C("getTransfer","id",t);let n="/v1/transfers/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},listTransfers:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y={})=>{let v;let w=new URL("/v1/transfers",T);e&&(v=e.baseOptions);let _={method:"GET",...v,...y},M={};void 0!==t&&(M.page_size=t),void 0!==r&&(M.cursor=r),void 0!==i&&(M.order_by=i),void 0!==n&&(M.direction=n),void 0!==a&&(M.user=a),void 0!==s&&(M.receiver=s),void 0!==o&&(M.status=o),void 0!==f&&(M.min_timestamp=f),void 0!==d&&(M.max_timestamp=d),void 0!==c&&(M.token_type=c),void 0!==u&&(M.token_id=u),void 0!==l&&(M.asset_id=l),void 0!==h&&(M.token_address=h),void 0!==p&&(M.token_name=p),void 0!==b&&(M.min_quantity=b),void 0!==m&&(M.max_quantity=m),void 0!==g&&(M.metadata=g),O(w,M);let E=v&&v.headers?v.headers:{};return _.headers={...E,...y.headers},{url:j(w),options:_}}}},ek=function(e){let t=eR(e);return{async createTransfer(r,i,n,a,s){let o=await t.createTransfer(r,i,n,a,s);return B(o,x.default,I,e)},async createTransferV1(r,i,n,a,s){let o=await t.createTransferV1(r,i,n,a,s);return B(o,x.default,I,e)},async getSignableTransfer(r,i){let n=await t.getSignableTransfer(r,i);return B(n,x.default,I,e)},async getSignableTransferV1(r,i){let n=await t.getSignableTransferV1(r,i);return B(n,x.default,I,e)},async getTransfer(r,i){let n=await t.getTransfer(r,i);return B(n,x.default,I,e)},async listTransfers(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v){let w=await t.listTransfers(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v);return B(w,x.default,I,e)}}};class eT extends R{createTransfer(e,t){return ek(this.configuration).createTransfer(e.createTransferRequestV2,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}createTransferV1(e,t){return ek(this.configuration).createTransferV1(e.createTransferRequest,e.xImxEthAddress,e.xImxEthSignature,e.authorization,t).then(e=>e(this.axios,this.basePath))}getSignableTransfer(e,t){return ek(this.configuration).getSignableTransfer(e.getSignableTransferRequestV2,t).then(e=>e(this.axios,this.basePath))}getSignableTransferV1(e,t){return ek(this.configuration).getSignableTransferV1(e.getSignableTransferRequest,t).then(e=>e(this.axios,this.basePath))}getTransfer(e,t){return ek(this.configuration).getTransfer(e.id,t).then(e=>e(this.axios,this.basePath))}listTransfers(e={},t){return ek(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))}}let eC=function(e){return{getSignableRegistration:async(t,r={})=>{let i;C("getSignableRegistration","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getSignableRegistrationOffchain:async(t,r={})=>{let i;C("getSignableRegistrationOffchain","getSignableRegistrationRequest",t);let n=new URL("/v1/signable-registration-offchain",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getUsers:async(t,r={})=>{let i;C("getUsers","user",t);let n="/v1/users/{user}".replace("{user}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},registerPassportUser:async(t,r,i={})=>{let n;C("registerPassportUser","authorization",t),C("registerPassportUser","registerPassportUserRequest",r);let a=new URL("/v1/passport/users",T);e&&(n=e.baseOptions);let s={method:"POST",...n,...i},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",O(a,{});let f=n&&n.headers?n.headers:{};return s.headers={...o,...f,...i.headers},s.data=N(r,s,e),{url:j(a),options:s}},registerPassportUserV2:async(t,r,i={})=>{let n;C("registerPassportUserV2","authorization",t),C("registerPassportUserV2","registerPassportUserRequest",r);let a=new URL("/v2/passport/users",T);e&&(n=e.baseOptions);let s={method:"POST",...n,...i},o={};null!=t&&(o.Authorization=String(t)),o["Content-Type"]="application/json",O(a,{});let f=n&&n.headers?n.headers:{};return s.headers={...o,...f,...i.headers},s.data=N(r,s,e),{url:j(a),options:s}},registerUser:async(t,r={})=>{let i;C("registerUser","registerUserRequest",t);let n=new URL("/v1/users",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}}}},eP=function(e){let t=eC(e);return{async getSignableRegistration(r,i){let n=await t.getSignableRegistration(r,i);return B(n,x.default,I,e)},async getSignableRegistrationOffchain(r,i){let n=await t.getSignableRegistrationOffchain(r,i);return B(n,x.default,I,e)},async getUsers(r,i){let n=await t.getUsers(r,i);return B(n,x.default,I,e)},async registerPassportUser(r,i,n){let a=await t.registerPassportUser(r,i,n);return B(a,x.default,I,e)},async registerPassportUserV2(r,i,n){let a=await t.registerPassportUserV2(r,i,n);return B(a,x.default,I,e)},async registerUser(r,i){let n=await t.registerUser(r,i);return B(n,x.default,I,e)}}};class eO extends R{getSignableRegistration(e,t){return eP(this.configuration).getSignableRegistration(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getSignableRegistrationOffchain(e,t){return eP(this.configuration).getSignableRegistrationOffchain(e.getSignableRegistrationRequest,t).then(e=>e(this.axios,this.basePath))}getUsers(e,t){return eP(this.configuration).getUsers(e.user,t).then(e=>e(this.axios,this.basePath))}registerPassportUser(e,t){return eP(this.configuration).registerPassportUser(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerPassportUserV2(e,t){return eP(this.configuration).registerPassportUserV2(e.authorization,e.registerPassportUserRequest,t).then(e=>e(this.axios,this.basePath))}registerUser(e,t){return eP(this.configuration).registerUser(e.registerUserRequest,t).then(e=>e(this.axios,this.basePath))}}let eN=function(e){return{createWithdrawal:async(t,r,i,n={})=>{let a;C("createWithdrawal","xImxEthAddress",t),C("createWithdrawal","xImxEthSignature",r),C("createWithdrawal","createWithdrawalRequest",i);let s=new URL("/v1/withdrawals",T);e&&(a=e.baseOptions);let o={method:"POST",...a,...n},f={};null!=t&&(f["x-imx-eth-address"]=String(t)),null!=r&&(f["x-imx-eth-signature"]=String(r)),f["Content-Type"]="application/json",O(s,{});let d=a&&a.headers?a.headers:{};return o.headers={...f,...d,...n.headers},o.data=N(i,o,e),{url:j(s),options:o}},createWithdrawalV2:async(t,r,i,n={})=>{let a;C("createWithdrawalV2","xImxEthAddress",t),C("createWithdrawalV2","xImxEthSignature",r),C("createWithdrawalV2","createWithdrawalRequestV2",i);let s=new URL("/v2/withdrawals",T);e&&(a=e.baseOptions);let o={method:"POST",...a,...n},f={};null!=t&&(f["x-imx-eth-address"]=String(t)),null!=r&&(f["x-imx-eth-signature"]=String(r)),f["Content-Type"]="application/json",O(s,{});let d=a&&a.headers?a.headers:{};return o.headers={...f,...d,...n.headers},o.data=N(i,o,e),{url:j(s),options:o}},getSignableWithdrawal:async(t,r={})=>{let i;C("getSignableWithdrawal","getSignableWithdrawalRequest",t);let n=new URL("/v1/signable-withdrawal-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getSignableWithdrawalV2:async(t,r={})=>{let i;C("getSignableWithdrawalV2","getSignableWithdrawalRequest",t);let n=new URL("/v2/signable-withdrawal-details",T);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};s["Content-Type"]="application/json",O(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=N(t,a,e),{url:j(n),options:a}},getWithdrawal:async(t,r={})=>{let i;C("getWithdrawal","id",t);let n="/v1/withdrawals/{id}".replace("{id}",encodeURIComponent(String(t))),a=new URL(n,T);e&&(i=e.baseOptions);let s={method:"GET",...i,...r};O(a,{});let o=i&&i.headers?i.headers:{};return s.headers={...o,...r.headers},{url:j(a),options:s}},listWithdrawals:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v={})=>{let w;let _=new URL("/v1/withdrawals",T);e&&(w=e.baseOptions);let M={method:"GET",...w,...v},E={};void 0!==t&&(E.withdrawn_to_wallet=t),void 0!==r&&(E.rollup_status=r),void 0!==i&&(E.page_size=i),void 0!==n&&(E.cursor=n),void 0!==a&&(E.order_by=a),void 0!==s&&(E.direction=s),void 0!==o&&(E.user=o),void 0!==f&&(E.status=f),void 0!==d&&(E.min_timestamp=d),void 0!==c&&(E.max_timestamp=c),void 0!==u&&(E.token_type=u),void 0!==l&&(E.token_id=l),void 0!==h&&(E.asset_id=h),void 0!==p&&(E.token_address=p),void 0!==b&&(E.token_name=b),void 0!==m&&(E.min_quantity=m),void 0!==g&&(E.max_quantity=g),void 0!==y&&(E.metadata=y),O(_,E);let A=w&&w.headers?w.headers:{};return M.headers={...A,...v.headers},{url:j(_),options:M}}}},ej=function(e){let t=eN(e);return{async createWithdrawal(r,i,n,a){let s=await t.createWithdrawal(r,i,n,a);return B(s,x.default,I,e)},async createWithdrawalV2(r,i,n,a){let s=await t.createWithdrawalV2(r,i,n,a);return B(s,x.default,I,e)},async getSignableWithdrawal(r,i){let n=await t.getSignableWithdrawal(r,i);return B(n,x.default,I,e)},async getSignableWithdrawalV2(r,i){let n=await t.getSignableWithdrawalV2(r,i);return B(n,x.default,I,e)},async getWithdrawal(r,i){let n=await t.getWithdrawal(r,i);return B(n,x.default,I,e)},async listWithdrawals(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w){let _=await t.listWithdrawals(r,i,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w);return B(_,x.default,I,e)}}};class eB 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))}}let eL=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())}};var eD=Object.freeze({__proto__:null,AcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},AcceptPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},AcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},AcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},AcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},AcceptPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},AcceptPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},AcceptPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},AcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},AssetsApi:F,AssetsApiAxiosParamCreator:L,AssetsApiFactory:function(e,t,r){let i=D(e);return{getAsset:(e,n,a,s)=>i.getAsset(e,n,a,s).then(e=>e(r,t)),listAssets:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v)=>i.listAssets(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v).then(e=>e(r,t))}},AssetsApiFp:D,BalancesApi:z,BalancesApiAxiosParamCreator:U,BalancesApiFactory:function(e,t,r){let i=q(e);return{getBalance:(e,n,a)=>i.getBalance(e,n,a).then(e=>e(r,t)),listBalances:(e,n,a,s,o,f)=>i.listBalances(e,n,a,s,o,f).then(e=>e(r,t))}},BalancesApiFp:q,CollectionsApi:V,CollectionsApiAxiosParamCreator:K,CollectionsApiFactory:function(e,t,r){let i=H(e);return{createCollection:(e,n,a,s,o)=>i.createCollection(e,n,a,s,o).then(e=>e(r,t)),getCollection:(e,n)=>i.getCollection(e,n).then(e=>e(r,t)),listCollectionFilters:(e,n,a,s)=>i.listCollectionFilters(e,n,a,s).then(e=>e(r,t)),listCollections:(e,n,a,s,o,f,d,c)=>i.listCollections(e,n,a,s,o,f,d,c).then(e=>e(r,t)),summarizeCollections:(e,n)=>i.summarizeCollections(e,n).then(e=>e(r,t)),updateCollection:(e,n,a,s,o)=>i.updateCollection(e,n,a,s,o).then(e=>e(r,t))}},CollectionsApiFp:H,Configuration:eL,CreateExchangeAndURLAPIRequestProviderEnum:{Moonpay:"moonpay",Layerswap:"layerswap"},CreateExchangeAndURLAPIRequestTypeEnum:{Onramp:"onramp",Offramp:"offramp"},CreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},CreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},CreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},CreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},CreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},CreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},CreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},CreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},CreateProjectGroupRequestChainTypeEnum:{Starkex:"starkex",Zkevm:"zkevm"},DepositsApi:J,DepositsApiAxiosParamCreator:W,DepositsApiFactory:function(e,t,r){let i=G(e);return{getDeposit:(e,n)=>i.getDeposit(e,n).then(e=>e(r,t)),getSignableDeposit:(e,n)=>i.getSignableDeposit(e,n).then(e=>e(r,t)),listDeposits:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v)=>i.listDeposits(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v).then(e=>e(r,t))}},DepositsApiFp:G,EncodeAssetRequestTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20",Erc721:"ERC721"},EncodingApi:$,EncodingApiAxiosParamCreator:Z,EncodingApiFactory:function(e,t,r){let i=X(e);return{encodeAsset:(e,n,a)=>i.encodeAsset(e,n,a).then(e=>e(r,t))}},EncodingApiFp:X,ExchangesApi:ee,ExchangesApiAxiosParamCreator:Y,ExchangesApiFactory:function(e,t,r){let i=Q(e);return{createExchange:(e,n)=>i.createExchange(e,n).then(e=>e(r,t)),createExchangeTransfer:(e,n,a,s,o,f)=>i.createExchangeTransfer(e,n,a,s,o,f).then(e=>e(r,t)),getExchange:(e,n)=>i.getExchange(e,n).then(e=>e(r,t)),getExchangeSignableTransfer:(e,n,a)=>i.getExchangeSignableTransfer(e,n,a).then(e=>e(r,t)),getExchanges:(e,n,a,s,o,f,d,c,u,l)=>i.getExchanges(e,n,a,s,o,f,d,c,u,l).then(e=>e(r,t))}},ExchangesApiFp:Q,ExperimentalCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalCreatePrimarySaleCreatedBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleCreatedBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},ExperimentalCreatePrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},ExperimentalCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalCreatePrimarySaleParamsBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalCreatePrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},ExperimentalGetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},ExperimentalGetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},ExperimentalGetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},ExperimentalGetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ExperimentalGetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},ExperimentalGetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Rejected:"REJECTED",Expired:"EXPIRED"},FeeTokenTypeEnum:{Eth:"ETH",Erc20:"ERC20"},GetMetadataRefreshResponseStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},GetPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},GetPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},GetPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},GetPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},GetPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},GetPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},MetadataApi:ei,MetadataApiAxiosParamCreator:et,MetadataApiFactory:function(e,t,r){let i=er(e);return{addMetadataSchemaToCollection:(e,n,a,s,o)=>i.addMetadataSchemaToCollection(e,n,a,s,o).then(e=>e(r,t)),getMetadataSchema:(e,n)=>i.getMetadataSchema(e,n).then(e=>e(r,t)),updateMetadataSchemaByName:(e,n,a,s,o,f)=>i.updateMetadataSchemaByName(e,n,a,s,o,f).then(e=>e(r,t))}},MetadataApiFp:er,MetadataRefreshExcludingSummaryStatusEnum:{Queued:"queued",InProgress:"in_progress",Completed:"completed"},MetadataRefreshesApi:es,MetadataRefreshesApiAxiosParamCreator:en,MetadataRefreshesApiFactory:function(e,t,r){let i=ea(e);return{getAListOfMetadataRefreshes:(e,n,a,s,o,f,d)=>i.getAListOfMetadataRefreshes(e,n,a,s,o,f,d).then(e=>e(r,t)),getMetadataRefreshErrors:(e,n,a,s,o,f,d)=>i.getMetadataRefreshErrors(e,n,a,s,o,f,d).then(e=>e(r,t)),getMetadataRefreshResults:(e,n,a,s,o)=>i.getMetadataRefreshResults(e,n,a,s,o).then(e=>e(r,t)),requestAMetadataRefresh:(e,n,a,s,o)=>i.requestAMetadataRefresh(e,n,a,s,o).then(e=>e(r,t))}},MetadataRefreshesApiFp:ea,MetadataSchemaRequestTypeEnum:{Enum:"enum",Text:"text",Boolean:"boolean",Continuous:"continuous",Discrete:"discrete"},MintsApi:ed,MintsApiAxiosParamCreator:eo,MintsApiFactory:function(e,t,r){let i=ef(e);return{getMint:(e,n)=>i.getMint(e,n).then(e=>e(r,t)),getMintableTokenDetailsByClientTokenId:(e,n,a)=>i.getMintableTokenDetailsByClientTokenId(e,n,a).then(e=>e(r,t)),listMints:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y)=>i.listMints(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y).then(e=>e(r,t)),mintTokens:(e,n)=>i.mintTokens(e,n).then(e=>e(r,t))}},MintsApiFp:ef,NftCheckoutPrimaryApi:el,NftCheckoutPrimaryApiAxiosParamCreator:ec,NftCheckoutPrimaryApiFactory:function(e,t,r){let i=eu(e);return{createNftPrimary:(e,n)=>i.createNftPrimary(e,n).then(e=>e(r,t)),getCurrenciesNFTCheckoutPrimary:(e,n,a)=>i.getCurrenciesNFTCheckoutPrimary(e,n,a).then(e=>e(r,t)),getNftPrimaryTransaction:(e,n)=>i.getNftPrimaryTransaction(e,n).then(e=>e(r,t)),getNftPrimaryTransactions:(e,n,a,s,o,f,d,c,u,l,h,p)=>i.getNftPrimaryTransactions(e,n,a,s,o,f,d,c,u,l,h,p).then(e=>e(r,t)),registerNftPrimarySalesContract:(e,n)=>i.registerNftPrimarySalesContract(e,n).then(e=>e(r,t))}},NftCheckoutPrimaryApiFp:eu,OrdersApi:eb,OrdersApiAxiosParamCreator:eh,OrdersApiFactory:function(e,t,r){let i=ep(e);return{cancelOrderV3:(e,n,a,s,o,f)=>i.cancelOrderV3(e,n,a,s,o,f).then(e=>e(r,t)),createOrderV3:(e,n,a,s,o)=>i.createOrderV3(e,n,a,s,o).then(e=>e(r,t)),getOrderV3:(e,n,a,s,o)=>i.getOrderV3(e,n,a,s,o).then(e=>e(r,t)),getSignableCancelOrderV3:(e,n)=>i.getSignableCancelOrderV3(e,n).then(e=>e(r,t)),getSignableOrder:(e,n)=>i.getSignableOrder(e,n).then(e=>e(r,t)),listOrdersV3:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P)=>i.listOrdersV3(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P).then(e=>e(r,t))}},OrdersApiFp:ep,PrimarySalesApi:ey,PrimarySalesApiAxiosParamCreator:em,PrimarySalesApiFactory:function(e,t,r){let i=eg(e);return{acceptPrimarySale:(e,n)=>i.acceptPrimarySale(e,n).then(e=>e(r,t)),createPrimarySale:(e,n)=>i.createPrimarySale(e,n).then(e=>e(r,t)),getPrimarySale:(e,n)=>i.getPrimarySale(e,n).then(e=>e(r,t)),rejectPrimarySale:(e,n)=>i.rejectPrimarySale(e,n).then(e=>e(r,t)),signableAcceptPrimarySale:(e,n)=>i.signableAcceptPrimarySale(e,n).then(e=>e(r,t)),signableCreatePrimarySale:(e,n)=>i.signableCreatePrimarySale(e,n).then(e=>e(r,t)),signableRejectPrimarySale:(e,n)=>i.signableRejectPrimarySale(e,n).then(e=>e(r,t))}},PrimarySalesApiFp:eg,ProjectsApi:e_,ProjectsApiAxiosParamCreator:ev,ProjectsApiFactory:function(e,t,r){let i=ew(e);return{getProject:(e,n,a,s)=>i.getProject(e,n,a,s).then(e=>e(r,t))}},ProjectsApiFp:ew,RejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},RejectPrimarySaleForbiddenBodyAllOf1CodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},RejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},RejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},RejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},RejectPrimarySaleOKBodyResultFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},RejectPrimarySaleOKBodyResultStatusEnum:{Pending:"PENDING",Active:"ACTIVE",Invalid:"INVALID",InProgress:"IN_PROGRESS",Accepted:"ACCEPTED",Failed:"FAILED",Rejected:"REJECTED",Expired:"EXPIRED"},RejectPrimarySaleUnauthorizedBodyAllOf1CodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},RejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableAcceptPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableAcceptPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableAcceptPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableAcceptPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableAcceptPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},SignableCreatePrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableCreatePrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableCreatePrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableCreatePrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableCreatePrimarySaleOKBodyFeesItemsTypeEnum:{Ecosystem:"ECOSYSTEM",Protocol:"PROTOCOL"},SignableRejectPrimarySaleBadRequestBodyAllOf1CodeEnum:{ValidationError:"VALIDATION_ERROR"},SignableRejectPrimarySaleInternalServerErrorBodyAllOf1CodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},SignableRejectPrimarySaleNotFoundBodyAllOf1CodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},SignableRejectPrimarySaleNotImplementedBodyAllOf1CodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},SignableRejectPrimarySaleUnprocessableEntityBodyAllOf1CodeEnum:{UnprocessableEntityError:"UNPROCESSABLE_ENTITY_ERROR"},TokensApi:eA,TokensApiAxiosParamCreator:eM,TokensApiFactory:function(e,t,r){let i=eE(e);return{getToken:(e,n)=>i.getToken(e,n).then(e=>e(r,t)),listTokens:(e,n,a,s,o,f,d)=>i.listTokens(e,n,a,s,o,f,d).then(e=>e(r,t))}},TokensApiFp:eE,TradesApi:eI,TradesApiAxiosParamCreator:eS,TradesApiFactory:function(e,t,r){let i=ex(e);return{createTradeV3:(e,n,a,s,o)=>i.createTradeV3(e,n,a,s,o).then(e=>e(r,t)),getSignableTrade:(e,n)=>i.getSignableTrade(e,n).then(e=>e(r,t)),getTradeV3:(e,n)=>i.getTradeV3(e,n).then(e=>e(r,t)),listTradesV3:(e,n,a,s,o,f,d,c,u,l,h,p)=>i.listTradesV3(e,n,a,s,o,f,d,c,u,l,h,p).then(e=>e(r,t))}},TradesApiFp:ex,TransfersApi:eT,TransfersApiAxiosParamCreator:eR,TransfersApiFactory:function(e,t,r){let i=ek(e);return{createTransfer:(e,n,a,s,o)=>i.createTransfer(e,n,a,s,o).then(e=>e(r,t)),createTransferV1:(e,n,a,s,o)=>i.createTransferV1(e,n,a,s,o).then(e=>e(r,t)),getSignableTransfer:(e,n)=>i.getSignableTransfer(e,n).then(e=>e(r,t)),getSignableTransferV1:(e,n)=>i.getSignableTransferV1(e,n).then(e=>e(r,t)),getTransfer:(e,n)=>i.getTransfer(e,n).then(e=>e(r,t)),listTransfers:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w)=>i.listTransfers(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w).then(e=>e(r,t))}},TransfersApiFp:ek,UsersApi:eO,UsersApiAxiosParamCreator:eC,UsersApiFactory:function(e,t,r){let i=eP(e);return{getSignableRegistration:(e,n)=>i.getSignableRegistration(e,n).then(e=>e(r,t)),getSignableRegistrationOffchain:(e,n)=>i.getSignableRegistrationOffchain(e,n).then(e=>e(r,t)),getUsers:(e,n)=>i.getUsers(e,n).then(e=>e(r,t)),registerPassportUser:(e,n,a)=>i.registerPassportUser(e,n,a).then(e=>e(r,t)),registerPassportUserV2:(e,n,a)=>i.registerPassportUserV2(e,n,a).then(e=>e(r,t)),registerUser:(e,n)=>i.registerUser(e,n).then(e=>e(r,t))}},UsersApiFp:eP,WithdrawalsApi:eB,WithdrawalsApiAxiosParamCreator:eN,WithdrawalsApiFactory:function(e,t,r){let i=ej(e);return{createWithdrawal:(e,n,a,s)=>i.createWithdrawal(e,n,a,s).then(e=>e(r,t)),createWithdrawalV2:(e,n,a,s)=>i.createWithdrawalV2(e,n,a,s).then(e=>e(r,t)),getSignableWithdrawal:(e,n)=>i.getSignableWithdrawal(e,n).then(e=>e(r,t)),getSignableWithdrawalV2:(e,n)=>i.getSignableWithdrawalV2(e,n).then(e=>e(r,t)),getWithdrawal:(e,n)=>i.getWithdrawal(e,n).then(e=>e(r,t)),listWithdrawals:(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_)=>i.listWithdrawals(e,n,a,s,o,f,d,c,u,l,h,p,b,m,g,y,v,w,_).then(e=>e(r,t))}},WithdrawalsApiFp:ej});let eF="https://api.sandbox.immutable.com".replace(/\/+$/,"");class eU{basePath;axios;configuration;constructor(e,t=eF,r=x.default){this.basePath=t,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class eq extends Error{field;constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}let ez="https://example.com",eK=function(e,t,r){if(null==r)throw new eq(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},eH=async function(e,t,r){if(r&&r.apiKey){let i="function"==typeof r.apiKey?await r.apiKey(t):await r.apiKey;e[t]=i}},eV=async function(e,t){if(t&&t.accessToken){let r="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}},eW=function(e,...t){let r=new URLSearchParams(e.search);!function e(t,r,i=""){null!=r&&("object"==typeof r?Array.isArray(r)?r.forEach(r=>e(t,r,i)):Object.keys(r).forEach(n=>e(t,r[n],`${i}${""!==i?".":""}${n}`)):t.has(i)?t.append(i,r):t.set(i,r))}(r,t),e.search=r.toString()},eG=function(e,t,r){let i="string"!=typeof e,n=i&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):i;return n?JSON.stringify(void 0!==e?e:{}):e||""},eJ=function(e){return e.pathname+e.search+e.hash},eZ=function(e,t,r,i){return(n=t,a=r)=>{let s={...e.options,url:(i?.basePath||n.defaults.baseURL||a)+e.url};return n.request(s)}},eX=function(e){return{getActivity:async(t,r,i={})=>{let n;eK("getActivity","chainName",t),eK("getActivity","activityId",r);let a="/v1/chains/{chain_name}/activities/{activity_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{activity_id}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},listActivities:async(t,r,i,n,a,s,o,f,d={})=>{let c;eK("listActivities","chainName",t);let u="/v1/chains/{chain_name}/activities".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(u,ez);e&&(c=e.baseOptions);let h={method:"GET",...c,...d},p={};void 0!==r&&(p.contract_address=r),void 0!==i&&(p.token_id=i),void 0!==n&&(p.account_address=n),void 0!==a&&(p.activity_type=a),void 0!==s&&(p.transaction_hash=s),void 0!==o&&(p.page_cursor=o),void 0!==f&&(p.page_size=f),eW(l,p);let b=c&&c.headers?c.headers:{};return h.headers={...b,...d.headers},{url:eJ(l),options:h}},listActivityHistory:async(t,r,i,n,a,s,o,f={})=>{let d;eK("listActivityHistory","chainName",t),eK("listActivityHistory","fromUpdatedAt",r);let c="/v1/chains/{chain_name}/activity-history".replace("{chain_name}",encodeURIComponent(String(t))),u=new URL(c,ez);e&&(d=e.baseOptions);let l={method:"GET",...d,...f},h={};void 0!==r&&(h.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(h.to_updated_at=i instanceof Date?i.toISOString():i),void 0!==n&&(h.contract_address=n),void 0!==a&&(h.activity_type=a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eW(u,h);let p=d&&d.headers?d.headers:{};return l.headers={...p,...f.headers},{url:eJ(u),options:l}}}},e$=function(e){let t=eX(e);return{async getActivity(r,i,n){let a=await t.getActivity(r,i,n);return eZ(a,x.default,eF,e)},async listActivities(r,i,n,a,s,o,f,d,c){let u=await t.listActivities(r,i,n,a,s,o,f,d,c);return eZ(u,x.default,eF,e)},async listActivityHistory(r,i,n,a,s,o,f,d){let c=await t.listActivityHistory(r,i,n,a,s,o,f,d);return eZ(c,x.default,eF,e)}}};class eY extends eU{getActivity(e,t){return e$(this.configuration).getActivity(e.chainName,e.activityId,t).then(e=>e(this.axios,this.basePath))}listActivities(e,t){return e$(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 e$(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))}}let eQ=function(e){return{listChains:async(t,r,i={})=>{let n;let a=new URL("/v1/chains",ez);e&&(n=e.baseOptions);let s={method:"GET",...n,...i},o={};void 0!==t&&(o.page_cursor=t),void 0!==r&&(o.page_size=r),eW(a,o);let f=n&&n.headers?n.headers:{};return s.headers={...f,...i.headers},{url:eJ(a),options:s}}}},e0=function(e){let t=eQ(e);return{async listChains(r,i,n){let a=await t.listChains(r,i,n);return eZ(a,x.default,eF,e)}}};class e1 extends eU{listChains(e={},t){return e0(this.configuration).listChains(e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let e2=function(e){return{getCollection:async(t,r,i={})=>{let n;eK("getCollection","contractAddress",t),eK("getCollection","chainName",r);let a="/v1/chains/{chain_name}/collections/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},listCollections:async(t,r,i,n,a,s,o={})=>{let f;eK("listCollections","chainName",t);let d="/v1/chains/{chain_name}/collections".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(d,ez);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};r&&(l.contract_address=r),i&&(l.verification_status=i),void 0!==n&&(l.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eW(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eJ(c),options:u}},listCollectionsByNFTOwner:async(t,r,i,n,a={})=>{let s;eK("listCollectionsByNFTOwner","accountAddress",t),eK("listCollectionsByNFTOwner","chainName",r);let o="/v1/chains/{chain_name}/accounts/{account_address}/collections".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),f=new URL(o,ez);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eW(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eJ(f),options:d}},refreshCollectionMetadata:async(t,r,i,n={})=>{let a;eK("refreshCollectionMetadata","contractAddress",t),eK("refreshCollectionMetadata","chainName",r),eK("refreshCollectionMetadata","refreshCollectionMetadataRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eH(d,"x-immutable-api-key",e),await eV(d,e),d["Content-Type"]="application/json",eW(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eG(i,f,e),{url:eJ(o),options:f}}}},e6=function(e){let t=e2(e);return{async getCollection(r,i,n){let a=await t.getCollection(r,i,n);return eZ(a,x.default,eF,e)},async listCollections(r,i,n,a,s,o,f){let d=await t.listCollections(r,i,n,a,s,o,f);return eZ(d,x.default,eF,e)},async listCollectionsByNFTOwner(r,i,n,a,s){let o=await t.listCollectionsByNFTOwner(r,i,n,a,s);return eZ(o,x.default,eF,e)},async refreshCollectionMetadata(r,i,n,a){let s=await t.refreshCollectionMetadata(r,i,n,a);return eZ(s,x.default,eF,e)}}};class e3 extends eU{getCollection(e,t){return e6(this.configuration).getCollection(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listCollections(e,t){return e6(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 e6(this.configuration).listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshCollectionMetadata(e,t){return e6(this.configuration).refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let e5=function(e){return{signCraftingPayload:async(t,r,i={})=>{let n;eK("signCraftingPayload","chainName",t),eK("signCraftingPayload","signCraftingRequest",r);let a="/v1/chains/{chain_name}/crafting/sign".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eH(f,"x-immutable-api-key",e),f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}}}},e8=function(e){let t=e5(e);return{async signCraftingPayload(r,i,n){let a=await t.signCraftingPayload(r,i,n);return eZ(a,x.default,eF,e)}}},e4=function(e){return{approvePendingERC191Message:async(t,r={})=>{let i;eK("approvePendingERC191Message","messageID",t);let n="/guardian/v1/erc191-messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,ez);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await eV(o,e),eW(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eJ(a),options:s}},approvePendingMessage:async(t,r={})=>{let i;eK("approvePendingMessage","messageID",t);let n="/guardian/v1/messages/{messageID}/approve".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,ez);e&&(i=e.baseOptions);let s={method:"POST",...i,...r},o={};await eV(o,e),eW(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eJ(a),options:s}},approvePendingTransaction:async(t,r,i={})=>{let n;eK("approvePendingTransaction","payloadHash",t),eK("approvePendingTransaction","transactionApprovalRequest",r);let a="/guardian/v1/transactions/{payloadHash}/approve".replace("{payloadHash}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eV(f,e),f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},evaluateErc191Message:async(t,r={})=>{let i;eK("evaluateErc191Message","eRC191MessageEvaluationRequest",t);let n=new URL("/guardian/v1/erc191-messages/evaluate",ez);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await eV(s,e),s["Content-Type"]="application/json",eW(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=eG(t,a,e),{url:eJ(n),options:a}},evaluateMessage:async(t,r={})=>{let i;eK("evaluateMessage","messageEvaluationRequest",t);let n=new URL("/guardian/v1/messages/evaluate",ez);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await eV(s,e),s["Content-Type"]="application/json",eW(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=eG(t,a,e),{url:eJ(n),options:a}},evaluateTransaction:async(t,r,i={})=>{let n;eK("evaluateTransaction","id",t),eK("evaluateTransaction","transactionEvaluationRequest",r);let a="/guardian/v1/transactions/{id}/evaluate".replace("{id}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eV(f,e),f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},getErc191MessageByID:async(t,r={})=>{let i;eK("getErc191MessageByID","messageID",t);let n="/guardian/v1/erc191-messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,ez);e&&(i=e.baseOptions);let s={method:"GET",...i,...r},o={};await eV(o,e),eW(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eJ(a),options:s}},getMessageByID:async(t,r={})=>{let i;eK("getMessageByID","messageID",t);let n="/guardian/v1/messages/{messageID}".replace("{messageID}",encodeURIComponent(String(t))),a=new URL(n,ez);e&&(i=e.baseOptions);let s={method:"GET",...i,...r},o={};await eV(o,e),eW(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eJ(a),options:s}},getTransactionByID:async(t,r,i,n,a={})=>{let s;eK("getTransactionByID","transactionID",t),eK("getTransactionByID","chainType",r);let o="/guardian/v1/transactions/{transactionID}".replace("{transactionID}",encodeURIComponent(String(t))),f=new URL(o,ez);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={},u={};await eV(c,e),void 0!==r&&(u.chainType=r),void 0!==i&&(u.chainID=i),void 0!==n&&(u.includeSimulation=n),eW(f,u);let l=s&&s.headers?s.headers:{};return d.headers={...c,...l,...a.headers},{url:eJ(f),options:d}}}},e7=function(e){let t=e4(e);return{async approvePendingERC191Message(r,i){let n=await t.approvePendingERC191Message(r,i);return eZ(n,x.default,eF,e)},async approvePendingMessage(r,i){let n=await t.approvePendingMessage(r,i);return eZ(n,x.default,eF,e)},async approvePendingTransaction(r,i,n){let a=await t.approvePendingTransaction(r,i,n);return eZ(a,x.default,eF,e)},async evaluateErc191Message(r,i){let n=await t.evaluateErc191Message(r,i);return eZ(n,x.default,eF,e)},async evaluateMessage(r,i){let n=await t.evaluateMessage(r,i);return eZ(n,x.default,eF,e)},async evaluateTransaction(r,i,n){let a=await t.evaluateTransaction(r,i,n);return eZ(a,x.default,eF,e)},async getErc191MessageByID(r,i){let n=await t.getErc191MessageByID(r,i);return eZ(n,x.default,eF,e)},async getMessageByID(r,i){let n=await t.getMessageByID(r,i);return eZ(n,x.default,eF,e)},async getTransactionByID(r,i,n,a,s){let o=await t.getTransactionByID(r,i,n,a,s);return eZ(o,x.default,eF,e)}}};class e9 extends eU{approvePendingERC191Message(e,t){return e7(this.configuration).approvePendingERC191Message(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingMessage(e,t){return e7(this.configuration).approvePendingMessage(e.messageID,t).then(e=>e(this.axios,this.basePath))}approvePendingTransaction(e,t){return e7(this.configuration).approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,t).then(e=>e(this.axios,this.basePath))}evaluateErc191Message(e,t){return e7(this.configuration).evaluateErc191Message(e.eRC191MessageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateMessage(e,t){return e7(this.configuration).evaluateMessage(e.messageEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}evaluateTransaction(e,t){return e7(this.configuration).evaluateTransaction(e.id,e.transactionEvaluationRequest,t).then(e=>e(this.axios,this.basePath))}getErc191MessageByID(e,t){return e7(this.configuration).getErc191MessageByID(e.messageID,t).then(e=>e(this.axios,this.basePath))}getMessageByID(e,t){return e7(this.configuration).getMessageByID(e.messageID,t).then(e=>e(this.axios,this.basePath))}getTransactionByID(e,t){return e7(this.configuration).getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,t).then(e=>e(this.axios,this.basePath))}}let te=function(e){return{getMetadata:async(t,r,i,n={})=>{let a;eK("getMetadata","chainName",t),eK("getMetadata","contractAddress",r),eK("getMetadata","metadataId",i);let s="/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(i))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"GET",...a,...n};eW(o,{});let d=a&&a.headers?a.headers:{};return f.headers={...d,...n.headers},{url:eJ(o),options:f}},listMetadata:async(t,r,i,n,a,s={})=>{let o;eK("listMetadata","chainName",t),eK("listMetadata","contractAddress",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),d=new URL(f,ez);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={};void 0!==i&&(u.from_updated_at=i instanceof Date?i.toISOString():i),void 0!==n&&(u.page_cursor=n),void 0!==a&&(u.page_size=a),eW(d,u);let l=o&&o.headers?o.headers:{};return c.headers={...l,...s.headers},{url:eJ(d),options:c}},listMetadataForChain:async(t,r,i,n,a={})=>{let s;eK("listMetadataForChain","chainName",t);let o="/v1/chains/{chain_name}/metadata".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(o,ez);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eW(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eJ(f),options:d}},refreshMetadataByID:async(t,r,i,n={})=>{let a;eK("refreshMetadataByID","chainName",t),eK("refreshMetadataByID","contractAddress",r),eK("refreshMetadataByID","refreshMetadataByIDRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/metadata/refresh-metadata".replace("{chain_name}",encodeURIComponent(String(t))).replace("{contract_address}",encodeURIComponent(String(r))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eH(d,"x-immutable-api-key",e),d["Content-Type"]="application/json",eW(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eG(i,f,e),{url:eJ(o),options:f}},refreshNFTMetadataByTokenID:async(t,r,i,n={})=>{let a;eK("refreshNFTMetadataByTokenID","contractAddress",t),eK("refreshNFTMetadataByTokenID","chainName",r),eK("refreshNFTMetadataByTokenID","refreshNFTMetadataByTokenIDRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/refresh-metadata".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eH(d,"x-immutable-api-key",e),d["Content-Type"]="application/json",eW(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eG(i,f,e),{url:eJ(o),options:f}}}},tt=function(e){let t=te(e);return{async getMetadata(r,i,n,a){let s=await t.getMetadata(r,i,n,a);return eZ(s,x.default,eF,e)},async listMetadata(r,i,n,a,s,o){let f=await t.listMetadata(r,i,n,a,s,o);return eZ(f,x.default,eF,e)},async listMetadataForChain(r,i,n,a,s){let o=await t.listMetadataForChain(r,i,n,a,s);return eZ(o,x.default,eF,e)},async refreshMetadataByID(r,i,n,a){let s=await t.refreshMetadataByID(r,i,n,a);return eZ(s,x.default,eF,e)},async refreshNFTMetadataByTokenID(r,i,n,a){let s=await t.refreshNFTMetadataByTokenID(r,i,n,a);return eZ(s,x.default,eF,e)}}},tr=function(e){return{listAllNFTOwners:async(t,r,i,n,a={})=>{let s;eK("listAllNFTOwners","chainName",t);let o="/v1/chains/{chain_name}/nft-owners".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(o,ez);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eW(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eJ(f),options:d}},listNFTOwners:async(t,r,i,n,a,s={})=>{let o;eK("listNFTOwners","contractAddress",t),eK("listNFTOwners","tokenId",r),eK("listNFTOwners","chainName",i);let f="/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(i))),d=new URL(f,ez);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={};void 0!==n&&(u.page_cursor=n),void 0!==a&&(u.page_size=a),eW(d,u);let l=o&&o.headers?o.headers:{};return c.headers={...l,...s.headers},{url:eJ(d),options:c}},listOwnersByContractAddress:async(t,r,i,n,a,s,o={})=>{let f;eK("listOwnersByContractAddress","contractAddress",t),eK("listOwnersByContractAddress","chainName",r);let d="/v1/chains/{chain_name}/collections/{contract_address}/owners".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),c=new URL(d,ez);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};i&&(l.account_address=i),void 0!==n&&(l.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eW(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eJ(c),options:u}}}},ti=function(e){let t=tr(e);return{async listAllNFTOwners(r,i,n,a,s){let o=await t.listAllNFTOwners(r,i,n,a,s);return eZ(o,x.default,eF,e)},async listNFTOwners(r,i,n,a,s,o){let f=await t.listNFTOwners(r,i,n,a,s,o);return eZ(f,x.default,eF,e)},async listOwnersByContractAddress(r,i,n,a,s,o,f){let d=await t.listOwnersByContractAddress(r,i,n,a,s,o,f);return eZ(d,x.default,eF,e)}}};class tn extends eU{listAllNFTOwners(e,t){return ti(this.configuration).listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listNFTOwners(e,t){return ti(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 ti(this.configuration).listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}}let ta=function(e){return{createMintRequest:async(t,r,i,n={})=>{let a;eK("createMintRequest","contractAddress",t),eK("createMintRequest","chainName",r),eK("createMintRequest","createMintRequestRequest",i);let s="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"POST",...a,...n},d={};await eH(d,"x-immutable-api-key",e),d["Content-Type"]="application/json",eW(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},f.data=eG(i,f,e),{url:eJ(o),options:f}},getMintRequest:async(t,r,i,n={})=>{let a;eK("getMintRequest","contractAddress",t),eK("getMintRequest","chainName",r),eK("getMintRequest","referenceId",i);let s="/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(i))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"GET",...a,...n},d={};await eH(d,"x-immutable-api-key",e),eW(o,{});let c=a&&a.headers?a.headers:{};return f.headers={...d,...c,...n.headers},{url:eJ(o),options:f}},getNFT:async(t,r,i,n={})=>{let a;eK("getNFT","contractAddress",t),eK("getNFT","tokenId",r),eK("getNFT","chainName",i);let s="/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(i))),o=new URL(s,ez);e&&(a=e.baseOptions);let f={method:"GET",...a,...n};eW(o,{});let d=a&&a.headers?a.headers:{};return f.headers={...d,...n.headers},{url:eJ(o),options:f}},listAllNFTs:async(t,r,i,n,a={})=>{let s;eK("listAllNFTs","chainName",t);let o="/v1/chains/{chain_name}/nfts".replace("{chain_name}",encodeURIComponent(String(t))),f=new URL(o,ez);e&&(s=e.baseOptions);let d={method:"GET",...s,...a},c={};void 0!==r&&(c.from_updated_at=r instanceof Date?r.toISOString():r),void 0!==i&&(c.page_cursor=i),void 0!==n&&(c.page_size=n),eW(f,c);let u=s&&s.headers?s.headers:{};return d.headers={...u,...a.headers},{url:eJ(f),options:d}},listMintRequests:async(t,r,i,n,a,s={})=>{let o;eK("listMintRequests","contractAddress",t),eK("listMintRequests","chainName",r);let f="/v1/chains/{chain_name}/collections/{contract_address}/nfts/mint-requests".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),d=new URL(f,ez);e&&(o=e.baseOptions);let c={method:"GET",...o,...s},u={},l={};await eH(u,"x-immutable-api-key",e),void 0!==i&&(l.page_cursor=i),void 0!==n&&(l.page_size=n),void 0!==a&&(l.status=a),eW(d,l);let h=o&&o.headers?o.headers:{};return c.headers={...u,...h,...s.headers},{url:eJ(d),options:c}},listNFTs:async(t,r,i,n,a,s,o={})=>{let f;eK("listNFTs","contractAddress",t),eK("listNFTs","chainName",r);let d="/v1/chains/{chain_name}/collections/{contract_address}/nfts".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),c=new URL(d,ez);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};i&&(l.token_id=i),void 0!==n&&(l.from_updated_at=n instanceof Date?n.toISOString():n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eW(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eJ(c),options:u}},listNFTsByAccountAddress:async(t,r,i,n,a,s,o,f={})=>{let d;eK("listNFTsByAccountAddress","accountAddress",t),eK("listNFTsByAccountAddress","chainName",r);let c="/v1/chains/{chain_name}/accounts/{account_address}/nfts".replace("{account_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),u=new URL(c,ez);e&&(d=e.baseOptions);let l={method:"GET",...d,...f},h={};void 0!==i&&(h.contract_address=i),n&&(h.token_id=n),void 0!==a&&(h.from_updated_at=a instanceof Date?a.toISOString():a),void 0!==s&&(h.page_cursor=s),void 0!==o&&(h.page_size=o),eW(u,h);let p=d&&d.headers?d.headers:{};return l.headers={...p,...f.headers},{url:eJ(u),options:l}}}},ts=function(e){let t=ta(e);return{async createMintRequest(r,i,n,a){let s=await t.createMintRequest(r,i,n,a);return eZ(s,x.default,eF,e)},async getMintRequest(r,i,n,a){let s=await t.getMintRequest(r,i,n,a);return eZ(s,x.default,eF,e)},async getNFT(r,i,n,a){let s=await t.getNFT(r,i,n,a);return eZ(s,x.default,eF,e)},async listAllNFTs(r,i,n,a,s){let o=await t.listAllNFTs(r,i,n,a,s);return eZ(o,x.default,eF,e)},async listMintRequests(r,i,n,a,s,o){let f=await t.listMintRequests(r,i,n,a,s,o);return eZ(f,x.default,eF,e)},async listNFTs(r,i,n,a,s,o,f){let d=await t.listNFTs(r,i,n,a,s,o,f);return eZ(d,x.default,eF,e)},async listNFTsByAccountAddress(r,i,n,a,s,o,f,d){let c=await t.listNFTsByAccountAddress(r,i,n,a,s,o,f,d);return eZ(c,x.default,eF,e)}}};class to extends eU{createMintRequest(e,t){return ts(this.configuration).createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,t).then(e=>e(this.axios,this.basePath))}getMintRequest(e,t){return ts(this.configuration).getMintRequest(e.contractAddress,e.chainName,e.referenceId,t).then(e=>e(this.axios,this.basePath))}getNFT(e,t){return ts(this.configuration).getNFT(e.contractAddress,e.tokenId,e.chainName,t).then(e=>e(this.axios,this.basePath))}listAllNFTs(e,t){return ts(this.configuration).listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}listMintRequests(e,t){return ts(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 ts(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 ts(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))}}let tf=function(e){return{cancelOrders:async(t,r,i={})=>{let n;eK("cancelOrders","chainName",t),eK("cancelOrders","cancelOrdersRequestBody",r);let a="/v1/chains/{chain_name}/orders/cancel".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},createBid:async(t,r,i={})=>{let n;eK("createBid","chainName",t),eK("createBid","createBidRequestBody",r);let a="/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},createCollectionBid:async(t,r,i={})=>{let n;eK("createCollectionBid","chainName",t),eK("createCollectionBid","createCollectionBidRequestBody",r);let a="/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},createListing:async(t,r,i={})=>{let n;eK("createListing","chainName",t),eK("createListing","createListingRequestBody",r);let a="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},fulfillmentData:async(t,r,i={})=>{let n;eK("fulfillmentData","chainName",t),eK("fulfillmentData","fulfillmentDataRequest",r);let a="/v1/chains/{chain_name}/orders/fulfillment-data".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},getBid:async(t,r,i={})=>{let n;eK("getBid","chainName",t),eK("getBid","bidId",r);let a="/v1/chains/{chain_name}/orders/bids/{bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{bid_id}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},getCollectionBid:async(t,r,i={})=>{let n;eK("getCollectionBid","chainName",t),eK("getCollectionBid","collectionBidId",r);let a="/v1/chains/{chain_name}/orders/collection-bids/{collection_bid_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{collection_bid_id}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},getListing:async(t,r,i={})=>{let n;eK("getListing","chainName",t),eK("getListing","listingId",r);let a="/v1/chains/{chain_name}/orders/listings/{listing_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{listing_id}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},getTrade:async(t,r,i={})=>{let n;eK("getTrade","chainName",t),eK("getTrade","tradeId",r);let a="/v1/chains/{chain_name}/trades/{trade_id}".replace("{chain_name}",encodeURIComponent(String(t))).replace("{trade_id}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},listBids:async(t,r,i,n,a,s,o,f,d,c,u,l,h={})=>{let p;eK("listBids","chainName",t);let b="/v1/chains/{chain_name}/orders/bids".replace("{chain_name}",encodeURIComponent(String(t))),m=new URL(b,ez);e&&(p=e.baseOptions);let g={method:"GET",...p,...h},y={};void 0!==r&&(y.status=r),void 0!==i&&(y.buy_item_contract_address=i),void 0!==n&&(y.sell_item_contract_address=n),void 0!==a&&(y.account_address=a),void 0!==s&&(y.buy_item_metadata_id=s),void 0!==o&&(y.buy_item_token_id=o),void 0!==f&&(y.from_updated_at=f instanceof Date?f.toISOString():f),void 0!==d&&(y.page_size=d),void 0!==c&&(y.sort_by=c),void 0!==u&&(y.sort_direction=u),void 0!==l&&(y.page_cursor=l),eW(m,y);let v=p&&p.headers?p.headers:{};return g.headers={...v,...h.headers},{url:eJ(m),options:g}},listCollectionBids:async(t,r,i,n,a,s,o,f,d,c,u={})=>{let l;eK("listCollectionBids","chainName",t);let h="/v1/chains/{chain_name}/orders/collection-bids".replace("{chain_name}",encodeURIComponent(String(t))),p=new URL(h,ez);e&&(l=e.baseOptions);let b={method:"GET",...l,...u},m={};void 0!==r&&(m.status=r),void 0!==i&&(m.buy_item_contract_address=i),void 0!==n&&(m.sell_item_contract_address=n),void 0!==a&&(m.account_address=a),void 0!==s&&(m.from_updated_at=s instanceof Date?s.toISOString():s),void 0!==o&&(m.page_size=o),void 0!==f&&(m.sort_by=f),void 0!==d&&(m.sort_direction=d),void 0!==c&&(m.page_cursor=c),eW(p,m);let g=l&&l.headers?l.headers:{};return b.headers={...g,...u.headers},{url:eJ(p),options:b}},listListings:async(t,r,i,n,a,s,o,f,d,c,u,l,h,p={})=>{let b;eK("listListings","chainName",t);let m="/v1/chains/{chain_name}/orders/listings".replace("{chain_name}",encodeURIComponent(String(t))),g=new URL(m,ez);e&&(b=e.baseOptions);let y={method:"GET",...b,...p},v={};void 0!==r&&(v.status=r),void 0!==i&&(v.sell_item_contract_address=i),void 0!==n&&(v.buy_item_type=n),void 0!==a&&(v.buy_item_contract_address=a),void 0!==s&&(v.account_address=s),void 0!==o&&(v.sell_item_metadata_id=o),void 0!==f&&(v.sell_item_token_id=f),void 0!==d&&(v.from_updated_at=d instanceof Date?d.toISOString():d),void 0!==c&&(v.page_size=c),void 0!==u&&(v.sort_by=u),void 0!==l&&(v.sort_direction=l),void 0!==h&&(v.page_cursor=h),eW(g,v);let w=b&&b.headers?b.headers:{};return y.headers={...w,...p.headers},{url:eJ(g),options:y}},listTrades:async(t,r,i,n,a,s,o,f,d={})=>{let c;eK("listTrades","chainName",t);let u="/v1/chains/{chain_name}/trades".replace("{chain_name}",encodeURIComponent(String(t))),l=new URL(u,ez);e&&(c=e.baseOptions);let h={method:"GET",...c,...d},p={};void 0!==r&&(p.account_address=r),void 0!==i&&(p.sell_item_contract_address=i),void 0!==n&&(p.from_indexed_at=n instanceof Date?n.toISOString():n),void 0!==a&&(p.page_size=a),void 0!==s&&(p.sort_by=s),void 0!==o&&(p.sort_direction=o),void 0!==f&&(p.page_cursor=f),eW(l,p);let b=c&&c.headers?c.headers:{};return h.headers={...b,...d.headers},{url:eJ(l),options:h}}}},td=function(e){let t=tf(e);return{async cancelOrders(r,i,n){let a=await t.cancelOrders(r,i,n);return eZ(a,x.default,eF,e)},async createBid(r,i,n){let a=await t.createBid(r,i,n);return eZ(a,x.default,eF,e)},async createCollectionBid(r,i,n){let a=await t.createCollectionBid(r,i,n);return eZ(a,x.default,eF,e)},async createListing(r,i,n){let a=await t.createListing(r,i,n);return eZ(a,x.default,eF,e)},async fulfillmentData(r,i,n){let a=await t.fulfillmentData(r,i,n);return eZ(a,x.default,eF,e)},async getBid(r,i,n){let a=await t.getBid(r,i,n);return eZ(a,x.default,eF,e)},async getCollectionBid(r,i,n){let a=await t.getCollectionBid(r,i,n);return eZ(a,x.default,eF,e)},async getListing(r,i,n){let a=await t.getListing(r,i,n);return eZ(a,x.default,eF,e)},async getTrade(r,i,n){let a=await t.getTrade(r,i,n);return eZ(a,x.default,eF,e)},async listBids(r,i,n,a,s,o,f,d,c,u,l,h,p){let b=await t.listBids(r,i,n,a,s,o,f,d,c,u,l,h,p);return eZ(b,x.default,eF,e)},async listCollectionBids(r,i,n,a,s,o,f,d,c,u,l){let h=await t.listCollectionBids(r,i,n,a,s,o,f,d,c,u,l);return eZ(h,x.default,eF,e)},async listListings(r,i,n,a,s,o,f,d,c,u,l,h,p,b){let m=await t.listListings(r,i,n,a,s,o,f,d,c,u,l,h,p,b);return eZ(m,x.default,eF,e)},async listTrades(r,i,n,a,s,o,f,d,c){let u=await t.listTrades(r,i,n,a,s,o,f,d,c);return eZ(u,x.default,eF,e)}}};class tc extends eU{cancelOrders(e,t){return td(this.configuration).cancelOrders(e.chainName,e.cancelOrdersRequestBody,t).then(e=>e(this.axios,this.basePath))}createBid(e,t){return td(this.configuration).createBid(e.chainName,e.createBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createCollectionBid(e,t){return td(this.configuration).createCollectionBid(e.chainName,e.createCollectionBidRequestBody,t).then(e=>e(this.axios,this.basePath))}createListing(e,t){return td(this.configuration).createListing(e.chainName,e.createListingRequestBody,t).then(e=>e(this.axios,this.basePath))}fulfillmentData(e,t){return td(this.configuration).fulfillmentData(e.chainName,e.fulfillmentDataRequest,t).then(e=>e(this.axios,this.basePath))}getBid(e,t){return td(this.configuration).getBid(e.chainName,e.bidId,t).then(e=>e(this.axios,this.basePath))}getCollectionBid(e,t){return td(this.configuration).getCollectionBid(e.chainName,e.collectionBidId,t).then(e=>e(this.axios,this.basePath))}getListing(e,t){return td(this.configuration).getListing(e.chainName,e.listingId,t).then(e=>e(this.axios,this.basePath))}getTrade(e,t){return td(this.configuration).getTrade(e.chainName,e.tradeId,t).then(e=>e(this.axios,this.basePath))}listBids(e,t){return td(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 td(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 td(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 td(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))}}let tu=function(e){return{createCounterfactualAddressV2:async(t,r,i={})=>{let n;eK("createCounterfactualAddressV2","chainName",t),eK("createCounterfactualAddressV2","createCounterfactualAddressRequest",r);let a="/v2/chains/{chain_name}/passport/counterfactual-address".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eV(f,e),f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},getLinkedAddresses:async(t,r,i={})=>{let n;eK("getLinkedAddresses","userId",t),eK("getLinkedAddresses","chainName",r);let a="/v1/chains/{chain_name}/passport/users/{user_id}/linked-addresses".replace("{user_id}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i},f={};await eV(f,e),eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},{url:eJ(s),options:o}},getLinkedAddressesDeprecated:async(t,r={})=>{let i;eK("getLinkedAddressesDeprecated","userId",t);let n="/passport-mr/v1/users/{userId}/linked-addresses".replace("{userId}",encodeURIComponent(String(t))),a=new URL(n,ez);e&&(i=e.baseOptions);let s={method:"GET",...i,...r},o={};await eV(o,e),eW(a,{});let f=i&&i.headers?i.headers:{};return s.headers={...o,...f,...r.headers},{url:eJ(a),options:s}},getTransactionMetadata:async(t,r,i={})=>{let n;eK("getTransactionMetadata","chainName",t),eK("getTransactionMetadata","getTransactionMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/transaction-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eV(f,e),f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}},getTypedDataMetadata:async(t,r,i={})=>{let n;eK("getTypedDataMetadata","chainName",t),eK("getTypedDataMetadata","getTypedDataMetadataRequest",r);let a="/v1/chains/{chain_name}/passport/typeddata-metadata".replace("{chain_name}",encodeURIComponent(String(t))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"POST",...n,...i},f={};await eV(f,e),f["Content-Type"]="application/json",eW(s,{});let d=n&&n.headers?n.headers:{};return o.headers={...f,...d,...i.headers},o.data=eG(r,o,e),{url:eJ(s),options:o}}}},tl=function(e){let t=tu(e);return{async createCounterfactualAddressV2(r,i,n){let a=await t.createCounterfactualAddressV2(r,i,n);return eZ(a,x.default,eF,e)},async getLinkedAddresses(r,i,n){let a=await t.getLinkedAddresses(r,i,n);return eZ(a,x.default,eF,e)},async getLinkedAddressesDeprecated(r,i){let n=await t.getLinkedAddressesDeprecated(r,i);return eZ(n,x.default,eF,e)},async getTransactionMetadata(r,i,n){let a=await t.getTransactionMetadata(r,i,n);return eZ(a,x.default,eF,e)},async getTypedDataMetadata(r,i,n){let a=await t.getTypedDataMetadata(r,i,n);return eZ(a,x.default,eF,e)}}};class th extends eU{createCounterfactualAddressV2(e,t){return tl(this.configuration).createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,t).then(e=>e(this.axios,this.basePath))}getLinkedAddresses(e,t){return tl(this.configuration).getLinkedAddresses(e.userId,e.chainName,t).then(e=>e(this.axios,this.basePath))}getLinkedAddressesDeprecated(e,t){return tl(this.configuration).getLinkedAddressesDeprecated(e.userId,t).then(e=>e(this.axios,this.basePath))}getTransactionMetadata(e,t){return tl(this.configuration).getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,t).then(e=>e(this.axios,this.basePath))}getTypedDataMetadata(e,t){return tl(this.configuration).getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,t).then(e=>e(this.axios,this.basePath))}}let tp=function(e){return{getUserInfo:async(t={})=>{let r;let i=new URL("/passport-profile/v1/user/info",ez);e&&(r=e.baseOptions);let n={method:"GET",...r,...t},a={};await eV(a,e),eW(i,{});let s=r&&r.headers?r.headers:{};return n.headers={...a,...s,...t.headers},{url:eJ(i),options:n}},linkWalletV2:async(t,r={})=>{let i;let n=new URL("/passport-profile/v2/linked-wallets",ez);e&&(i=e.baseOptions);let a={method:"POST",...i,...r},s={};await eV(s,e),s["Content-Type"]="application/json",eW(n,{});let o=i&&i.headers?i.headers:{};return a.headers={...s,...o,...r.headers},a.data=eG(t,a,e),{url:eJ(n),options:a}}}},tb=function(e){let t=tp(e);return{async getUserInfo(r){let i=await t.getUserInfo(r);return eZ(i,x.default,eF,e)},async linkWalletV2(r,i){let n=await t.linkWalletV2(r,i);return eZ(n,x.default,eF,e)}}};class tm extends eU{getUserInfo(e){return tb(this.configuration).getUserInfo(e).then(e=>e(this.axios,this.basePath))}linkWalletV2(e={},t){return tb(this.configuration).linkWalletV2(e.linkWalletV2Request,t).then(e=>e(this.axios,this.basePath))}}let tg=function(e){return{getERC20Token:async(t,r,i={})=>{let n;eK("getERC20Token","contractAddress",t),eK("getERC20Token","chainName",r);let a="/v1/chains/{chain_name}/tokens/{contract_address}".replace("{contract_address}",encodeURIComponent(String(t))).replace("{chain_name}",encodeURIComponent(String(r))),s=new URL(a,ez);e&&(n=e.baseOptions);let o={method:"GET",...n,...i};eW(s,{});let f=n&&n.headers?n.headers:{};return o.headers={...f,...i.headers},{url:eJ(s),options:o}},listERC20Tokens:async(t,r,i,n,a,s,o={})=>{let f;eK("listERC20Tokens","chainName",t);let d="/v1/chains/{chain_name}/tokens".replace("{chain_name}",encodeURIComponent(String(t))),c=new URL(d,ez);e&&(f=e.baseOptions);let u={method:"GET",...f,...o},l={};void 0!==r&&(l.from_updated_at=r instanceof Date?r.toISOString():r),i&&(l.verification_status=i),void 0!==n&&(l.is_canonical=n),void 0!==a&&(l.page_cursor=a),void 0!==s&&(l.page_size=s),eW(c,l);let h=f&&f.headers?f.headers:{};return u.headers={...h,...o.headers},{url:eJ(c),options:u}}}},ty=function(e){let t=tg(e);return{async getERC20Token(r,i,n){let a=await t.getERC20Token(r,i,n);return eZ(a,x.default,eF,e)},async listERC20Tokens(r,i,n,a,s,o,f){let d=await t.listERC20Tokens(r,i,n,a,s,o,f);return eZ(d,x.default,eF,e)}}};var tv=Object.freeze({__proto__:null,APIError400AllOfCodeEnum:{ValidationError:"VALIDATION_ERROR"},APIError401AllOfCodeEnum:{UnauthorisedRequest:"UNAUTHORISED_REQUEST"},APIError403AllOfCodeEnum:{AuthenticationError:"AUTHENTICATION_ERROR"},APIError404AllOfCodeEnum:{ResourceNotFound:"RESOURCE_NOT_FOUND"},APIError409AllOfCodeEnum:{ConflictError:"CONFLICT_ERROR"},APIError429AllOfCodeEnum:{TooManyRequestsError:"TOO_MANY_REQUESTS_ERROR"},APIError500AllOfCodeEnum:{InternalServerError:"INTERNAL_SERVER_ERROR"},APIError501AllOfCodeEnum:{NotImplementedError:"NOT_IMPLEMENTED_ERROR"},ActiveOrderStatusNameEnum:{Active:"ACTIVE"},ActivitiesApi:eY,ActivitiesApiAxiosParamCreator:eX,ActivitiesApiFactory:function(e,t,r){let i=e$(e);return{getActivity:(e,n)=>i.getActivity(e.chainName,e.activityId,n).then(e=>e(r,t)),listActivities:(e,n)=>i.listActivities(e.chainName,e.contractAddress,e.tokenId,e.accountAddress,e.activityType,e.transactionHash,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listActivityHistory:(e,n)=>i.listActivityHistory(e.chainName,e.fromUpdatedAt,e.toUpdatedAt,e.contractAddress,e.activityType,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},ActivitiesApiFp:e$,ActivityType:{Mint:"mint",Burn:"burn",Transfer:"transfer",Sale:"sale",Deposit:"deposit",Withdrawal:"withdrawal"},AssetVerificationStatus:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},CancelledOrderStatusCancellationTypeEnum:{OnChain:"ON_CHAIN",OffChain:"OFF_CHAIN",Underfunded:"UNDERFUNDED"},CancelledOrderStatusNameEnum:{Cancelled:"CANCELLED"},ChainsApi:e1,ChainsApiAxiosParamCreator:eQ,ChainsApiFactory:function(e,t,r){let i=e0(e);return{listChains:(e={},n)=>i.listChains(e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},ChainsApiFp:e0,CollectionContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},CollectionsApi:e3,CollectionsApiAxiosParamCreator:e2,CollectionsApiFactory:function(e,t,r){let i=e6(e);return{getCollection:(e,n)=>i.getCollection(e.contractAddress,e.chainName,n).then(e=>e(r,t)),listCollections:(e,n)=>i.listCollections(e.chainName,e.contractAddress,e.verificationStatus,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listCollectionsByNFTOwner:(e,n)=>i.listCollectionsByNFTOwner(e.accountAddress,e.chainName,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),refreshCollectionMetadata:(e,n)=>i.refreshCollectionMetadata(e.contractAddress,e.chainName,e.refreshCollectionMetadataRequest,n).then(e=>e(r,t))}},CollectionsApiFp:e6,Configuration: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())}},CraftingApi:class extends eU{signCraftingPayload(e,t){return e8(this.configuration).signCraftingPayload(e.chainName,e.signCraftingRequest,t).then(e=>e(this.axios,this.basePath))}},CraftingApiAxiosParamCreator:e5,CraftingApiFactory:function(e,t,r){let i=e8(e);return{signCraftingPayload:(e,n)=>i.signCraftingPayload(e.chainName,e.signCraftingRequest,n).then(e=>e(r,t))}},CraftingApiFp:e8,ERC1155CollectionItemTypeEnum:{Erc1155Collection:"ERC1155_COLLECTION"},ERC1155ItemTypeEnum:{Erc1155:"ERC1155"},ERC20ApproveMetadataTransactionTypeEnum:{Erc20Approve:"ERC20_APPROVE"},ERC20ItemTypeEnum:{Erc20:"ERC20"},ERC20TransferFromMetadataTransactionTypeEnum:{Erc20TransferFrom:"ERC20_TRANSFER_FROM"},ERC20TransferMetadataTransactionTypeEnum:{Erc20Transfer:"ERC20_TRANSFER"},ERC721ApproveMetadataTransactionTypeEnum:{Erc721Approve:"ERC721_APPROVE"},ERC721CollectionItemTypeEnum:{Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},ERC721ItemTypeEnum:{Erc721:"ERC721"},ERC721SafeTransferFromBatchMetadataTransactionTypeEnum:{Erc721SafeTransferFromBatch:"ERC721_SAFE_TRANSFER_FROM_BATCH"},ERC721TransferFromMetadataTransactionTypeEnum:{Erc721TransferFrom:"ERC721_TRANSFER_FROM"},ExpiredOrderStatusNameEnum:{Expired:"EXPIRED"},FailedOrderCancellationReasonCodeEnum:{Filled:"FILLED"},FeeTypeEnum:{Royalty:"ROYALTY",MakerEcosystem:"MAKER_ECOSYSTEM",TakerEcosystem:"TAKER_ECOSYSTEM",Protocol:"PROTOCOL"},FilledOrderStatusNameEnum:{Filled:"FILLED"},GetTransactionByIDChainTypeEnum:{Starkex:"starkex",Evm:"evm"},GuardianApi:e9,GuardianApiAxiosParamCreator:e4,GuardianApiFactory:function(e,t,r){let i=e7(e);return{approvePendingERC191Message:(e,n)=>i.approvePendingERC191Message(e.messageID,n).then(e=>e(r,t)),approvePendingMessage:(e,n)=>i.approvePendingMessage(e.messageID,n).then(e=>e(r,t)),approvePendingTransaction:(e,n)=>i.approvePendingTransaction(e.payloadHash,e.transactionApprovalRequest,n).then(e=>e(r,t)),evaluateErc191Message:(e,n)=>i.evaluateErc191Message(e.eRC191MessageEvaluationRequest,n).then(e=>e(r,t)),evaluateMessage:(e,n)=>i.evaluateMessage(e.messageEvaluationRequest,n).then(e=>e(r,t)),evaluateTransaction:(e,n)=>i.evaluateTransaction(e.id,e.transactionEvaluationRequest,n).then(e=>e(r,t)),getErc191MessageByID:(e,n)=>i.getErc191MessageByID(e.messageID,n).then(e=>e(r,t)),getMessageByID:(e,n)=>i.getMessageByID(e.messageID,n).then(e=>e(r,t)),getTransactionByID:(e,n)=>i.getTransactionByID(e.transactionID,e.chainType,e.chainID,e.includeSimulation,n).then(e=>e(r,t))}},GuardianApiFp:e7,ImmutableVerificationStatusEnum:{Verified:"verified",Unverified:"unverified",Spam:"spam",Inactive:"inactive"},InactiveOrderStatusNameEnum:{Inactive:"INACTIVE"},ListBidsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},ListBidsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListCollectionBidsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",SellItemAmount:"sell_item_amount"},ListCollectionBidsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListListingsBuyItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20"},ListListingsSortByEnum:{CreatedAt:"created_at",UpdatedAt:"updated_at",BuyItemAmount:"buy_item_amount"},ListListingsSortDirectionEnum:{Asc:"asc",Desc:"desc"},ListTradesSortByEnum:{IndexedAt:"indexed_at"},ListTradesSortDirectionEnum:{Asc:"asc",Desc:"desc"},MessageEvaluationResponseConfirmationMethodEnum:{Otp:"otp",Web:"web"},MetadataApi:class extends eU{getMetadata(e,t){return tt(this.configuration).getMetadata(e.chainName,e.contractAddress,e.metadataId,t).then(e=>e(this.axios,this.basePath))}listMetadata(e,t){return tt(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 tt(this.configuration).listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}refreshMetadataByID(e,t){return tt(this.configuration).refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,t).then(e=>e(this.axios,this.basePath))}refreshNFTMetadataByTokenID(e,t){return tt(this.configuration).refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,t).then(e=>e(this.axios,this.basePath))}},MetadataApiAxiosParamCreator:te,MetadataApiFactory:function(e,t,r){let i=tt(e);return{getMetadata:(e,n)=>i.getMetadata(e.chainName,e.contractAddress,e.metadataId,n).then(e=>e(r,t)),listMetadata:(e,n)=>i.listMetadata(e.chainName,e.contractAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listMetadataForChain:(e,n)=>i.listMetadataForChain(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),refreshMetadataByID:(e,n)=>i.refreshMetadataByID(e.chainName,e.contractAddress,e.refreshMetadataByIDRequest,n).then(e=>e(r,t)),refreshNFTMetadataByTokenID:(e,n)=>i.refreshNFTMetadataByTokenID(e.contractAddress,e.chainName,e.refreshNFTMetadataByTokenIDRequest,n).then(e=>e(r,t))}},MetadataApiFp:tt,MintRequestStatus:{Pending:"pending",Succeeded:"succeeded",Failed:"failed"},NFTContractType:{Erc721:"ERC721",Erc1155:"ERC1155"},NFTMetadataAttributeDisplayTypeEnum:{Number:"number",BoostPercentage:"boost_percentage",BoostNumber:"boost_number",Date:"date"},NFTSetApprovalForAllMetadataTransactionTypeEnum:{Erc721SetApprovalForAll:"ERC721_SET_APPROVAL_FOR_ALL",Erc1155SetApprovalForAll:"ERC1155_SET_APPROVAL_FOR_ALL"},NativeItemTypeEnum:{Native:"NATIVE",Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155",Erc721Collection:"ERC721_COLLECTION",Erc1155Collection:"ERC1155_COLLECTION"},NftOwnersApi:tn,NftOwnersApiAxiosParamCreator:tr,NftOwnersApiFactory:function(e,t,r){let i=ti(e);return{listAllNFTOwners:(e,n)=>i.listAllNFTOwners(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listNFTOwners:(e,n)=>i.listNFTOwners(e.contractAddress,e.tokenId,e.chainName,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listOwnersByContractAddress:(e,n)=>i.listOwnersByContractAddress(e.contractAddress,e.chainName,e.accountAddress,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},NftOwnersApiFp:ti,NftsApi:to,NftsApiAxiosParamCreator:ta,NftsApiFactory:function(e,t,r){let i=ts(e);return{createMintRequest:(e,n)=>i.createMintRequest(e.contractAddress,e.chainName,e.createMintRequestRequest,n).then(e=>e(r,t)),getMintRequest:(e,n)=>i.getMintRequest(e.contractAddress,e.chainName,e.referenceId,n).then(e=>e(r,t)),getNFT:(e,n)=>i.getNFT(e.contractAddress,e.tokenId,e.chainName,n).then(e=>e(r,t)),listAllNFTs:(e,n)=>i.listAllNFTs(e.chainName,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listMintRequests:(e,n)=>i.listMintRequests(e.contractAddress,e.chainName,e.pageCursor,e.pageSize,e.status,n).then(e=>e(r,t)),listNFTs:(e,n)=>i.listNFTs(e.contractAddress,e.chainName,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t)),listNFTsByAccountAddress:(e,n)=>i.listNFTsByAccountAddress(e.accountAddress,e.chainName,e.contractAddress,e.tokenId,e.fromUpdatedAt,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},NftsApiFp:ts,OperatorAllowlistStatus:{Requested:"requested",Approved:"approved",Rejected:"rejected",Removed:"removed",Added:"added"},OrderStatusName:{Pending:"PENDING",Active:"ACTIVE",Inactive:"INACTIVE",Filled:"FILLED",Expired:"EXPIRED",Cancelled:"CANCELLED"},OrderTypeEnum:{Listing:"LISTING",Bid:"BID",CollectionBid:"COLLECTION_BID"},OrdersApi:tc,OrdersApiAxiosParamCreator:tf,OrdersApiFactory:function(e,t,r){let i=td(e);return{cancelOrders:(e,n)=>i.cancelOrders(e.chainName,e.cancelOrdersRequestBody,n).then(e=>e(r,t)),createBid:(e,n)=>i.createBid(e.chainName,e.createBidRequestBody,n).then(e=>e(r,t)),createCollectionBid:(e,n)=>i.createCollectionBid(e.chainName,e.createCollectionBidRequestBody,n).then(e=>e(r,t)),createListing:(e,n)=>i.createListing(e.chainName,e.createListingRequestBody,n).then(e=>e(r,t)),fulfillmentData:(e,n)=>i.fulfillmentData(e.chainName,e.fulfillmentDataRequest,n).then(e=>e(r,t)),getBid:(e,n)=>i.getBid(e.chainName,e.bidId,n).then(e=>e(r,t)),getCollectionBid:(e,n)=>i.getCollectionBid(e.chainName,e.collectionBidId,n).then(e=>e(r,t)),getListing:(e,n)=>i.getListing(e.chainName,e.listingId,n).then(e=>e(r,t)),getTrade:(e,n)=>i.getTrade(e.chainName,e.tradeId,n).then(e=>e(r,t)),listBids:(e,n)=>i.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,n).then(e=>e(r,t)),listCollectionBids:(e,n)=>i.listCollectionBids(e.chainName,e.status,e.buyItemContractAddress,e.sellItemContractAddress,e.accountAddress,e.fromUpdatedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,n).then(e=>e(r,t)),listListings:(e,n)=>i.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,n).then(e=>e(r,t)),listTrades:(e,n)=>i.listTrades(e.chainName,e.accountAddress,e.sellItemContractAddress,e.fromIndexedAt,e.pageSize,e.sortBy,e.sortDirection,e.pageCursor,n).then(e=>e(r,t))}},OrdersApiFp:td,OrganisationTier:{Common:"common",Uncommon:"uncommon",Rare:"rare",Epic:"epic",Legendary:"legendary"},PassportApi:th,PassportApiAxiosParamCreator:tu,PassportApiFactory:function(e,t,r){let i=tl(e);return{createCounterfactualAddressV2:(e,n)=>i.createCounterfactualAddressV2(e.chainName,e.createCounterfactualAddressRequest,n).then(e=>e(r,t)),getLinkedAddresses:(e,n)=>i.getLinkedAddresses(e.userId,e.chainName,n).then(e=>e(r,t)),getLinkedAddressesDeprecated:(e,n)=>i.getLinkedAddressesDeprecated(e.userId,n).then(e=>e(r,t)),getTransactionMetadata:(e,n)=>i.getTransactionMetadata(e.chainName,e.getTransactionMetadataRequest,n).then(e=>e(r,t)),getTypedDataMetadata:(e,n)=>i.getTypedDataMetadata(e.chainName,e.getTypedDataMetadataRequest,n).then(e=>e(r,t))}},PassportApiFp:tl,PassportProfileApi:tm,PassportProfileApiAxiosParamCreator:tp,PassportProfileApiFactory:function(e,t,r){let i=tb(e);return{getUserInfo:e=>i.getUserInfo(e).then(e=>e(r,t)),linkWalletV2:(e={},n)=>i.linkWalletV2(e.linkWalletV2Request,n).then(e=>e(r,t))}},PassportProfileApiFp:tb,PendingOrderStatusNameEnum:{Pending:"PENDING"},ProtocolDataOrderTypeEnum:{FullRestricted:"FULL_RESTRICTED",PartialRestricted:"PARTIAL_RESTRICTED"},SaleFeeTypeEnum:{Royalty:"ROYALTY"},SeaportCreateListingMetadataTypedDataTypeEnum:{SeaportCreateListingMetadata:"SEAPORT_CREATE_LISTING_METADATA"},SeaportERC1155CollectionItemTypeEnum:{Erc1155Collection:"ERC1155Collection"},SeaportERC1155ItemTypeEnum:{Erc1155:"ERC1155"},SeaportERC20ItemTypeEnum:{Erc20:"ERC20"},SeaportERC721CollectionItemTypeEnum:{Erc721Collection:"ERC721Collection"},SeaportERC721ItemTypeEnum:{Erc721:"ERC721"},SeaportFeeTypeEnum:{Erc20:"ERC20",Native:"NATIVE"},SeaportFulfillAvailableAdvancedOrdersMetadataTransactionTypeEnum:{SeaportFulfillAvailableAdvancedOrders:"SEAPORT_FULFILL_AVAILABLE_ADVANCED_ORDERS"},SeaportNativeItemTypeEnum:{Native:"NATIVE"},Severity:{Malicious:"malicious",Benign:"benign",Warning:"warning",Unknown:"unknown",Info:"info"},StarkExTransactionEvaluationRequestChainTypeEnum:{Starkex:"starkex"},TokenContractType:{Erc20:"ERC20"},TokensApi:class extends eU{getERC20Token(e,t){return ty(this.configuration).getERC20Token(e.contractAddress,e.chainName,t).then(e=>e(this.axios,this.basePath))}listERC20Tokens(e,t){return ty(this.configuration).listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,t).then(e=>e(this.axios,this.basePath))}},TokensApiAxiosParamCreator:tg,TokensApiFactory:function(e,t,r){let i=ty(e);return{getERC20Token:(e,n)=>i.getERC20Token(e.contractAddress,e.chainName,n).then(e=>e(r,t)),listERC20Tokens:(e,n)=>i.listERC20Tokens(e.chainName,e.fromUpdatedAt,e.verificationStatus,e.isCanonical,e.pageCursor,e.pageSize,n).then(e=>e(r,t))}},TokensApiFp:ty,TransactionApprovalRequestChainTypeEnum:{Starkex:"starkex",Evm:"evm"},TransactionEvaluationResponseConfirmationMethodEnum:{Otp:"otp",Web:"web"},UnknownMetadataTransactionTypeEnum:{Unknown:"UNKNOWN"},UnknownTypedDataMetadataTypedDataTypeEnum:{Unknown:"UNKNOWN"},ValidationStatus:{Success:"success",Error:"error"},VerificationRequestContractType:{Erc20:"ERC20",Erc721:"ERC721",Erc1155:"ERC1155"},VerificationRequestStatus:{Completed:"completed",Pending:"pending"},ZkEvmTransactionEvaluationRequestChainTypeEnum:{Evm:"evm"}});(d||(d={})).ValidationError="VALIDATION_ERROR",(c||(c={})).UnauthorisedRequest="UNAUTHORISED_REQUEST",(u||(u={})).AuthenticationError="AUTHENTICATION_ERROR",(l||(l={})).ResourceNotFound="RESOURCE_NOT_FOUND",(h||(h={})).ConflictError="CONFLICT_ERROR",(p||(p={})).TooManyRequestsError="TOO_MANY_REQUESTS_ERROR",(b||(b={})).InternalServerError="INTERNAL_SERVER_ERROR",(i=m||(m={})).Mint="mint",i.Burn="burn",i.Transfer="transfer",i.Sale="sale",i.Deposit="deposit",i.Withdrawal="withdrawal",(n=g||(g={})).Verified="verified",n.Unverified="unverified",n.Spam="spam",n.Inactive="inactive",(a=y||(y={})).Erc721="ERC721",a.Erc1155="ERC1155",(s=v||(v={})).Pending="pending",s.Succeeded="succeeded",s.Failed="failed",(o=w||(w={})).Erc721="ERC721",o.Erc1155="ERC1155",(f=_||(_={})).Number="number",f.BoostPercentage="boost_percentage",f.BoostNumber="boost_number",f.Date="date",(M||(M={})).Royalty="ROYALTY",(E||(E={})).Erc20="ERC20";var tw=Object.freeze({__proto__:null,get APIError400AllOfCodeEnum(){return d},get APIError401AllOfCodeEnum(){return c},get APIError403AllOfCodeEnum(){return u},get APIError404AllOfCodeEnum(){return l},get APIError409AllOfCodeEnum(){return h},get APIError429AllOfCodeEnum(){return p},get APIError500AllOfCodeEnum(){return b},get ActivityType(){return m},get AssetVerificationStatus(){return g},get CollectionContractType(){return y},get MintRequestStatus(){return v},get NFTContractType(){return w},get NFTMetadataAttributeDisplayTypeEnum(){return _},get SaleFeeTypeEnum(){return M},get TokenContractType(){return E}});class t_{config;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;constructor(e){this.config=e,this.assetApi=new F(e),this.balanceApi=new z(e),this.collectionApi=new V(e),this.depositsApi=new J(e),this.encodingApi=new $(e),this.exchangeApi=new ee(e),this.metadataApi=new ei(e),this.metadataRefreshesApi=new es(e),this.mintsApi=new ed(e),this.nftCheckoutPrimaryApi=new el(e),this.ordersApi=new eb(e),this.primarySalesApi=new ey(e),this.projectsApi=new e_(e),this.tokensApi=new eA(e),this.tradesApi=new eI(e),this.transfersApi=new eT(e),this.usersApi=new eO(e),this.withdrawalsApi=new eB(e)}}class tM{config;activitiesApi;chainsApi;collectionApi;nftOwnersApi;nftsApi;ordersApi;passportApi;passportProfileApi;guardianApi;constructor(e){this.config=e,this.activitiesApi=new eY(e.indexer),this.chainsApi=new e1(e.indexer),this.collectionApi=new e3(e.indexer),this.nftOwnersApi=new tn(e.indexer),this.nftsApi=new to(e.indexer),this.ordersApi=new tc(e.orderBook),this.passportApi=new th(e.passport),this.passportProfileApi=new tm(e.passport),this.guardianApi=new e9(e.passport)}}let tE={"x-sdk-version":"ts-immutable-sdk-1.56.0"},tA=({basePath:e,headers:t})=>{if(!e.trim())throw Error("basePath can not be empty");let r={...tE,...t||{}};return new eL({basePath:e,baseOptions:{headers:r}})},tS={getProduction:()=>tA({basePath:"https://api.x.immutable.com"}),getSandbox:()=>tA({basePath:"https://api.sandbox.x.immutable.com"})},tx={getProduction:()=>({indexer:tA({basePath:"https://api.immutable.com"}),orderBook:tA({basePath:"https://api.immutable.com"}),passport:tA({basePath:"https://api.immutable.com"})}),getSandbox:()=>({indexer:tA({basePath:"https://api.sandbox.immutable.com"}),orderBook:tA({basePath:"https://api.sandbox.immutable.com"}),passport:tA({basePath:"https://api.sandbox.immutable.com"})})}},{axios:"jhAcT","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hV3j7:[function(e,t,r){var i,n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Environment",()=>s.Environment),n.export(r,"ImmutableConfiguration",()=>s.ImmutableConfiguration),n.export(r,"EthSigner",()=>_.Signer),n.export(r,"ApiConfiguration",()=>E),n.export(r,"AssetsApi",()=>eS),n.export(r,"BalancesApi",()=>ex),n.export(r,"CollectionsApi",()=>eI),n.export(r,"Contracts",()=>eA),n.export(r,"DepositsApi",()=>eR),n.export(r,"EncodingApi",()=>ek),n.export(r,"ExchangesApi",()=>eT),n.export(r,"IMXClient",()=>ec),n.export(r,"IMXError",()=>C),n.export(r,"ImmutableX",()=>eu),n.export(r,"ImxConfiguration",()=>k),n.export(r,"MetadataApi",()=>eP),n.export(r,"MetadataRefreshesApi",()=>eO),n.export(r,"MetadataSchemaRequestTypeEnum",()=>eK),n.export(r,"MintsApi",()=>eC),n.export(r,"NftCheckoutPrimaryApi",()=>eN),n.export(r,"OrdersApi",()=>ej),n.export(r,"PrimarySalesApi",()=>eB),n.export(r,"ProjectsApi",()=>eL),n.export(r,"TokensApi",()=>eD),n.export(r,"TradesApi",()=>eF),n.export(r,"TransfersApi",()=>eU),n.export(r,"UsersApi",()=>eq),n.export(r,"WithdrawalsApi",()=>ez),n.export(r,"createConfig",()=>S),n.export(r,"createImmutableXConfiguration",()=>x),n.export(r,"createStarkSigner",()=>K),n.export(r,"generateLegacyStarkPrivateKey",()=>Y),n.export(r,"generateStarkPrivateKey",()=>$),n.export(r,"imxClientConfig",()=>T),n.export(r,"imxClientCreateStarkSigner",()=>K),n.export(r,"imxClientGenerateLegacyStarkPrivateKey",()=>Y),n.export(r,"production",()=>I),n.export(r,"sandbox",()=>R),n.export(r,"serializePackedSignature",()=>er),n.export(r,"signRegisterEthAddress",()=>ei),n.export(r,"starkEcOrder",()=>G);var a=e("@imtbl/generated-clients"),s=e("@imtbl/config"),o=e("axios"),f=n.interopDefault(o),d=e("@ethersproject/keccak256"),c=e("@ethersproject/strings"),u=e("bn.js"),l=n.interopDefault(u),h=e("enc-utils"),p=e("ethers"),b=e("@ethersproject/bytes"),m=e("hash.js"),g=n.interopDefault(m),y=e("elliptic"),v=n.interopDefault(y),w=e("ethereumjs-wallet");e("assert");var _=e("@ethersproject/abstract-signer"),M=e("c745b84b96ec5443").Buffer;class E extends a.imx.Configuration{}let A={"x-sdk-version":"ts-immutable-sdk-1.56.0"},S=({coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:i,basePath:n,headers:a,sdkVersion:o,baseConfig:f})=>{if(!n.trim())throw Error("basePath can not be empty");o&&(A["x-sdk-version"]=o),a={...a||{},...s.addKeysToHeadersOverride(f,{headers:a})?.headers||{},...A};let d={basePath:n,baseOptions:{headers:a}};return{apiConfiguration:new E(d),ethConfiguration:{coreContractAddress:e,registrationContractAddress:t,registrationV4ContractAddress:r,chainID:i}}},x=({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:i,registrationV4ContractAddress:n,baseConfig:a})=>S({basePath:e,chainID:t,coreContractAddress:r,registrationContractAddress:i,registrationV4ContractAddress:n,sdkVersion:"ts-immutable-sdk-1.56.0",baseConfig:a}),I=({baseConfig:e})=>x({basePath:"https://api.x.immutable.com",chainID:1,coreContractAddress:"0x5FDCCA53617f4d2b9134B29090C87D01058e27e9",registrationContractAddress:"0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c",registrationV4ContractAddress:"0xac88a57943b5BBa1ecd931F8494cAd0B7F717590",baseConfig:e}),R=({baseConfig:e})=>x({basePath:"https://api.sandbox.x.immutable.com",chainID:11155111,coreContractAddress:"0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98",registrationContractAddress:"0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97",registrationV4ContractAddress:"0xd1527c65c6287ec5ab816d328eb83bb4cb690e92",baseConfig:e});class k{immutableXConfig;baseConfig;constructor({baseConfig:e,overrides:t}){if(this.baseConfig=e,t)this.immutableXConfig=t.immutableXConfig;else switch(e.environment){case s.Environment.SANDBOX:this.immutableXConfig=R({baseConfig:e});break;case s.Environment.PRODUCTION:this.immutableXConfig=I({baseConfig:e});break;default:this.immutableXConfig=R({baseConfig:e})}}}let T=e=>{if(!e)throw Error("configOptions is required");if(-1===Object.values(s.Environment).indexOf(e.environment))throw Error(`Invalid environment: ${e.environment}`);let t={baseConfig:new s.ImmutableConfiguration(e)};return t};class C extends Error{code;details;constructor({code:e,details:t,message:r}){super(r),this.code=e,this.details=t}}function P(e){if((0,f.default).isAxiosError(e)&&e.response){let t=e.response.data;return new C(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 C({code:"unknown_error_code",message:String(e)})}let O=[["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"]],N=new l.default("800000000000011000000000000000000000000000000000000000000000001",16),j=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),B=new v.default.ec(new v.default.curves.PresetCurve({type:"short",prime:null,p:N,a:"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001",b:"06f21413 efbe40de 150e596d 72f7a8c5 609ad26c 15c915c1 f4cdfcb9 9cee9e89",n:j,hash:g.default.sha256,gRed:!1,g:O[1]}));O.map(e=>B.curve.point(new l.default(e[0],16),new l.default(e[1],16)))[0],new l.default("0"),new l.default("1"),new l.default("3"),new l.default("4"),new l.default("1000"),new l.default("1001"),new l.default("1002"),new l.default("1003"),new l.default("0"),new l.default("1"),new l.default("400000",16),new l.default("80000000",16),new l.default("8000000000000000",16),new l.default("800000000000011000000000000000000000000000000000000000000000001",16),new l.default("800000000000000000000000000000000000000000000000000000000000000",16);let L=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16),D=new l.default("FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141",16);function F(e,t,r){let i=h.hexToBinary(e),n=i.slice(t,r),a=h.binaryToNumber(n);return a}function U(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}function q(e){let t=0,r=U(e,0);for(;!r.lt(D.sub(D.mod(L)));)r=U(r.toString(16),t),t=t++;return r.mod(L).toString("hex")}(i||(i={})).StarkCurveInvalidMessageLength="invalid message length";class z{privateKey;keyPair;constructor(e){this.privateKey=e,this.keyPair=B.keyFromPrivate(e,"hex")}getAddress(){let e=this.keyPair.getPublic().getX().toString("hex");return h.sanitizeHex(e)}async signMessage(e){return this.serialize(this.keyPair.sign(this.fixMsgHashLen(e)))}serialize(e){return h.addHexPrefix(h.padLeft(e.r.toString("hex"),64)+h.padLeft(e.s.toString("hex"),64))}getYCoordinate(){let e=h.sanitizeBytes(this.keyPair.getPublic().getY().toString(16),2);return Promise.resolve(e)}fixMsgHashLen(e){if(e=h.removeHexPrefix(e),(e=new(0,l.default)(e,"hex").toString("hex")).length<=62)return e;if(63!==e.length)throw Error(i.StarkCurveInvalidMessageLength);return`${e}0`}}function K(e){return new z(e)}async function H(e){try{if(e){let t=await (0,f.default).get(`https://api.x.immutable.com/v1/users/${e}`),r=t.data;if(r?.accounts&&r.accounts.length>0)return{starkPublicKey:r.accounts[0],accountNotFound:!1}}}catch(e){if((0,f.default).isAxiosError(e)&&e.response?.data.code==="account_not_found")return{starkPublicKey:"",accountNotFound:!0}}}let{curves:V,ec:W}=v.default,G=new l.default("08000000 00000010 ffffffff ffffffff b781126d cae7b232 1e66a241 adc64d2f",16);new W(new V.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:G.toString("hex"),hash:g.default.sha256,gRed:!1,g:["1ef15c18599971b7beced415a40f0c7deacfd9b0d1819e03d723d8bc943cfca","5668060aa49730b7be4801df46ec62de53ecd11abe43a32873000c36e8dc1f"]}));let J=()=>{let e=new l.default("1 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000",16);return e.sub(e.mod(G))};function Z(e,t){return new l.default((0,g.default).sha256().update(h.hexToBuffer(h.removeHexPrefix(e)+h.sanitizeBytes(h.numberToHex(t),2))).digest("hex"),16)}async function X(e,t,r){let i=function(e,t){let r=w.hdkey.fromMasterSeed(M.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKey();return new l.default(r)}(e,t),n=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=1;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(i);if(!function(e){let t=J(),r=Z(e.toString("hex",64),0);return r.gte(t)}(i))return n;let a=await H(r);if(void 0===a)throw Error("Error fetching stark public key from IMX");if(a.accountNotFound)return n;let s=new l.default(h.removeHexPrefix(a.starkPublicKey),16),o=await K(n).getAddress();if(s.eq(new l.default(h.removeHexPrefix(o),16)))return n;let f=function(e){let t=J(),r=Z(e.toString("hex",64),0);for(let e=0;r.gte(t);e++)r=Z(r.toString("hex"),e);return r.umod(G).toString("hex")}(i);if(o=await K(f).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return f;let d=w.hdkey.fromMasterSeed(M.from(e.slice(2),"hex")).derivePath(t).getWallet().getPrivateKeyString(),c=q(d);if(o=await K(c).getAddress(),s.eq(new l.default(h.removeHexPrefix(o),16)))return c;throw Error("Can not deterministically generate stark private key - please contact support")}function $(){let e=B.genKeyPair();return q(e.getPrivate("hex"))}async function Y(e){let t=(await e.getAddress()).toLowerCase(),r=await e.signMessage("Only sign this request if you’ve initiated an action with Immutable X."),i=(0,b.splitSignature)(r).s,n=function(e,t,r,i){let n=(0,g.default).sha256().update(e).digest("hex"),a=(0,g.default).sha256().update(t).digest("hex"),s=F(n,-31),o=F(a,-31),f=F(r,-31),d=F(r,-62,-31);return`m/2645'/${s}'/${o}'/${f}'/${d}'/1`}("starkex","immutablex",t,0),a=await X(i,n,t);return a.padStart(64,"0")}function Q(e,t=64){var r;return e=h.removeHexPrefix(e),{r:new l.default(e.substring(0,t),"hex"),s:new l.default(e.substring(t,2*t),"hex"),recoveryParam:(r=e.substring(2*t,2*t+2)).trim()?-1!==new(0,l.default)(r,16).cmp(new l.default(27))?new(0,l.default)(r,16).sub(new l.default(27)).toNumber():new(0,l.default)(r,16).toNumber():void 0}}async function ee(e,t){let r=Q(await t.signMessage(e));return h.addHexPrefix(h.padLeft(r.r.toString(16),64)+h.padLeft(r.s.toString(16),64)+h.padLeft(r.recoveryParam?.toString(16)||"",2))}async function et(e){let t=Math.floor(Date.now()/1e3).toString(),r=await ee(t,e);return{timestamp:t,signature:r}}function er(e,t){return h.sanitizeHex(h.padLeft(e.r.toString(16),64)+h.padLeft(e.s.toString(16),64,"0")+h.padLeft(new(0,l.default)(h.removeHexPrefix(t),"hex").toString(16),64,"0"))}async function ei(e,t,r){let i=(0,p.utils).solidityKeccak256(["string","address","uint256"],["UserRegistration:",t,r]),n=new l.default(h.removeHexPrefix(i),16),a=n.mod(G),s=await e.signMessage(a.toString(16)),o=Q(s),f=h.sanitizeHex(await e.getYCoordinate());return er(o,f)}async function en(e,t,r){let i=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:n}=t,a={contract_address:t.contract_address,...n&&n.length>0&&{royalties:n.map(e=>({recipient:e.recipient,percentage:e.percentage}))},users:i,auth_signature:""},s=(0,d.keccak256)((0,c.toUtf8Bytes)(JSON.stringify(a))),o=await ee(s,e),f={users:a.users.map(e=>({user:e.ether_key,tokens:e.tokens})),...n&&n.length>0&&{royalties:n},contract_address:t.contract_address,auth_signature:o},u=await r.mintTokens({mintTokensRequestV2:[f]});return u.data}async function ea({ethSigner:e,starkSigner:t,request:r,exchangesApi:i}){let n=await e.getAddress(),a=r.amount,s=await i.getExchangeSignableTransfer({id:r.transactionID,getSignableTransferRequest:{sender:n,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:a,receiver:r.receiver}}),{signable_message:o,payload_hash:f}=s.data,d=await ee(o,e),c=await t.signMessage(f),u={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:c},l=await i.createExchangeTransfer({id:r.transactionID,createTransferRequest:u,xImxEthAddress:n,xImxEthSignature:d});return{sent_signature:l?.data.sent_signature,status:l?.data.status?.toString(),time:l?.data.time,transfer_id:l?.data.transfer_id}}async function es({ethSigner:e,starkSigner:t,request:r,primarySalesApi:i}){let n=await e.getAddress(),a=await i.signableCreatePrimarySale(r),{signable_message:s,payload_hash:o}=a.data,f=await ee(s,e),d=await t.signMessage(o),c=a.data,u={body:{buyer_ether_key:c.buyer_ether_key,buyer_stark_key:c.buyer_stark_key,buyer_vault_id:c.buyer_vault_id,studio_ether_key:c.studio_ether_key,studio_data:c.studio_data,payment_amount:c.payment_amount,payment_asset_id:c.payment_asset_id,payment_recipient_ether_key:c.payment_recipient_ether_key,payment_recipient_stark_key:c.payment_recipient_stark_key,payment_recipient_vault_id:c.payment_recipient_vault_id,items_recipient_ether_key:c.items_recipient_ether_key,expiration_timestamp:c.expiration_timestamp,fees:c.fees,nonce:c.nonce,stark_signature:d}},l=await i.createPrimarySale(u,{headers:{"x-imx-eth-address":n,"x-imx-eth-signature":f}});return{...l.data}}async function eo({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let i=await t.signableAcceptPrimarySale({id:r}),n=i.data.signable_message,a=await ee(n,e),s=await t.acceptPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}async function ef({ethSigner:e,primarySalesApi:t,primarySaleId:r}){let i=await t.signableRejectPrimarySale({id:r}),n=i.data.signable_message,a=await ee(n,e),s=await t.rejectPrimarySale({id:r},{headers:{"x-imx-eth-address":await e.getAddress(),"x-imx-eth-signature":a}});return{...s.data}}class ed{config;mintsApi;projectsApi;collectionsApi;metadataApi;metadataRefreshesApi;exchangesApi;primarySalesApi;isChainValid(e){return e===this.config.ethConfiguration.chainID}constructor(e,t,r,i,n,a,s,o){this.config=e,this.config=e,this.collectionsApi=t,this.exchangesApi=r,this.metadataApi=i,this.metadataRefreshesApi=n,this.mintsApi=a,this.primarySalesApi=s,this.projectsApi=o}async validateChain(e){let t=await e.getChainId();if(!this.isChainValid(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,f.default).get("/starkex-contract-version",e)}async mint(e,t){return await this.validateChain(e),en(e,t,this.mintsApi)}async exchangeTransfer(e,t){return await this.validateChain(e.ethSigner),ea({...e,request:t,exchangesApi:this.exchangesApi})}async getProject(e,t){let r=await et(e);return this.projectsApi.getProject({id:t,iMXSignature:r.signature,iMXTimestamp:r.timestamp})}async createCollection(e,t){let r=await et(e);return this.collectionsApi.createCollection({iMXSignature:r.signature,iMXTimestamp:r.timestamp,createCollectionRequest:t})}async updateCollection(e,t,r){let i=await et(e);return this.collectionsApi.updateCollection({iMXSignature:i.signature,iMXTimestamp:i.timestamp,address:t,updateCollectionRequest:r})}async addMetadataSchemaToCollection(e,t,r){let i=await et(e);return this.metadataApi.addMetadataSchemaToCollection({iMXSignature:i.signature,iMXTimestamp:i.timestamp,addMetadataSchemaToCollectionRequest:r,address:t})}async updateMetadataSchemaByName(e,t,r,i){let n=await et(e);return this.metadataApi.updateMetadataSchemaByName({iMXSignature:n.signature,iMXTimestamp:n.timestamp,address:t,name:r,metadataSchemaRequest:i})}async listMetadataRefreshes(e,t,r,i){let n=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getAListOfMetadataRefreshes({xImxEthSignature:n.signature,xImxEthTimestamp:n.timestamp,xImxEthAddress:a,collectionAddress:t,pageSize:r,cursor:i})}async getMetadataRefreshErrors(e,t,r,i){let n=await et(e),a=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshErrors({xImxEthSignature:n.signature,xImxEthTimestamp:n.timestamp,xImxEthAddress:a,refreshId:t,pageSize:r,cursor:i})}async getMetadataRefreshResults(e,t){let r=await et(e),i=await e.getAddress();return this.metadataRefreshesApi.getMetadataRefreshResults({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:i,refreshId:t})}async createMetadataRefresh(e,t){let r=await et(e),i=await e.getAddress();return this.metadataRefreshesApi.requestAMetadataRefresh({xImxEthSignature:r.signature,xImxEthTimestamp:r.timestamp,xImxEthAddress:i,createMetadataRefreshRequest:t})}async createPrimarySale(e,t){return await this.validateChain(e.ethSigner),es({...e,request:t,primarySalesApi:this.primarySalesApi})}async acceptPrimarySale(e,t){return eo({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}async rejectPrimarySale(e,t){return ef({ethSigner:e,primarySaleId:t,primarySalesApi:this.primarySalesApi})}}class ec{immutableX;imxConfig;assetApi;balanceApi;collectionApi;depositsApi;encodingApi;exchangeApi;metadataApi;metadataRefreshesApi;mintsApi;nftCheckoutPrimaryApi;ordersApi;primarySalesApi;projectsApi;tokensApi;tradesApi;transfersApi;usersApi;withdrawalsApi;workflows;constructor(e){this.imxConfig=new k(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.primarySalesApi=this.immutableX.primarySalesApi,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 ed(this.imxConfig.immutableXConfig,this.immutableX.collectionApi,this.immutableX.exchangeApi,this.immutableX.metadataApi,this.immutableX.metadataRefreshesApi,this.immutableX.mintsApi,this.immutableX.primarySalesApi,this.immutableX.projectsApi)}getDeposit(e){return this.depositsApi.getDeposit(e).then(e=>e.data).catch(e=>{throw P(e)})}listDeposits(e){return this.depositsApi.listDeposits(e).then(e=>e.data).catch(e=>{throw P(e)})}getUser(e){return this.usersApi.getUsers({user:e}).then(e=>e.data).catch(e=>{throw P(e)})}getAsset(e){return this.assetApi.getAsset(e).then(e=>e.data).catch(e=>{throw P(e)})}listAssets(e){return this.assetApi.listAssets(e).then(e=>e.data).catch(e=>{throw P(e)})}createCollection(e,t){return this.workflows.createCollection(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getCollection(e){return this.collectionApi.getCollection(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollectionFilters(e){return this.collectionApi.listCollectionFilters(e).then(e=>e.data).catch(e=>{throw P(e)})}listCollections(e){return this.collectionApi.listCollections(e).then(e=>e.data).catch(e=>{throw P(e)})}updateCollection(e,t,r){return this.workflows.updateCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}addMetadataSchemaToCollection(e,t,r){return this.workflows.addMetadataSchemaToCollection(e,t,r).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataSchema(e){return this.metadataApi.getMetadataSchema(e).then(e=>e.data).catch(e=>{throw P(e)})}updateMetadataSchemaByName(e,t,r,i){return this.workflows.updateMetadataSchemaByName(e,t,r,i).then(e=>e.data).catch(e=>{throw P(e)})}listMetadataRefreshes(e,t,r,i){return this.workflows.listMetadataRefreshes(e,t,r,i).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshErrors(e,t,r,i){return this.workflows.getMetadataRefreshErrors(e,t,r,i).then(e=>e.data).catch(e=>{throw P(e)})}getMetadataRefreshResults(e,t){return this.workflows.getMetadataRefreshResults(e,t).then(e=>e.data).catch(e=>{throw P(e)})}createMetadataRefresh(e,t){return this.workflows.createMetadataRefresh(e,t).then(e=>e.data).catch(e=>{throw P(e)})}async getProject(e,t){return this.workflows.getProject(e,t).then(e=>e.data).catch(e=>{throw P(e)})}getBalance(e){return this.balanceApi.getBalance(e).then(e=>e.data).catch(e=>{throw P(e)})}listBalances(e){return this.balanceApi.listBalances(e).then(e=>e.data).catch(e=>{throw P(e)})}getMint(e){return this.mintsApi.getMint(e).then(e=>e.data).catch(e=>{throw P(e)})}listMints(e){return this.mintsApi.listMints(e).then(e=>e.data).catch(e=>{throw P(e)})}mint(e,t){return this.workflows.mint(e,t)}listWithdrawals(e){return this.withdrawalsApi.listWithdrawals(e).then(e=>e.data).catch(e=>{throw P(e)})}getWithdrawal(e){return this.withdrawalsApi.getWithdrawal(e).then(e=>e.data).catch(e=>{throw P(e)})}getOrder(e){return this.ordersApi.getOrderV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listOrders(e){return this.ordersApi.listOrdersV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getTrade(e){return this.tradesApi.getTradeV3(e).then(e=>e.data).catch(e=>{throw P(e)})}listTrades(e){return this.tradesApi.listTradesV3(e).then(e=>e.data).catch(e=>{throw P(e)})}getToken(e){return this.tokensApi.getToken(e).then(e=>e.data).catch(e=>{throw P(e)})}listTokens(e){return this.tokensApi.listTokens(e).then(e=>e.data).catch(e=>{throw P(e)})}getTransfer(e){return this.transfersApi.getTransfer(e).then(e=>e.data).catch(e=>{throw P(e)})}listTransfers(e){return this.transfersApi.listTransfers(e).then(e=>e.data).catch(e=>{throw P(e)})}createExchange(e){return this.exchangeApi.createExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchange(e){return this.exchangeApi.getExchange(e).then(e=>e.data).catch(e=>{throw P(e)})}getExchanges(e){return this.exchangeApi.getExchanges(e).then(e=>e.data).catch(e=>{throw P(e)})}exchangeTransfer(e,t){return this.workflows.exchangeTransfer(e,t)}createNftPrimary(e){return this.nftCheckoutPrimaryApi.createNftPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getCurrenciesNFTCheckoutPrimary(e){return this.nftCheckoutPrimaryApi.getCurrenciesNFTCheckoutPrimary(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransaction(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransaction(e).then(e=>e.data).catch(e=>{throw P(e)})}getNftPrimaryTransactions(e){return this.nftCheckoutPrimaryApi.getNftPrimaryTransactions(e).then(e=>e.data).catch(e=>{throw P(e)})}createPrimarySale(e,t){return this.workflows.createPrimarySale(e,t).catch(e=>{throw P(e)})}acceptPrimarySale(e,t){return this.workflows.acceptPrimarySale(e,t).catch(e=>{throw P(e)})}rejectPrimarySale(e,t){return this.workflows.rejectPrimarySale(e,t).catch(e=>{throw P(e)})}}class eu extends ec{}let el=[{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"}],eh=[{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"}],ep=[{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"}],eb=[{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"}],em="0x60806040523480156200001157600080fd5b5060405162001313380380620013138339818101604052810190620000379190620000fc565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506200012e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000b08262000083565b9050919050565b6000620000c482620000a3565b9050919050565b620000d681620000b7565b8114620000e257600080fd5b50565b600081519050620000f681620000cb565b92915050565b6000602082840312156200011557620001146200007e565b5b60006200012584828501620000e5565b91505092915050565b6111d5806200013e6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80634280d50a1161005b5780634280d50a146100ff5780634627d5981461011b578063579a698814610137578063ea864adf1461016757610088565b80630a9c3beb1461008d5780630f08025f146100a95780631259cc6c146100c7578063352eb84c146100e3575b600080fd5b6100a760048036038101906100a29190610a72565b610183565b005b6100b16102ae565b6040516100be9190610b8d565b60405180910390f35b6100e160048036038101906100dc9190610ba8565b6102d2565b005b6100fd60048036038101906100f89190610c57565b6103fd565b005b61011960048036038101906101149190610cf1565b610525565b005b61013560048036038101906101309190610da0565b610650565b005b610151600480360381019061014c9190610e3a565b610778565b60405161015e9190610e82565b60405180910390f35b610181600480360381019061017c9190610e9d565b61084a565b005b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016101e29493929190610fa1565b600060405180830381600087803b1580156101fc57600080fd5b505af1158015610210573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016102739493929190610fe1565b600060405180830381600087803b15801561028d57600080fd5b505af11580156102a1573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016103319493929190610fa1565b600060405180830381600087803b15801561034b57600080fd5b505af115801561035f573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ebef0fd0878585856040518563ffffffff1660e01b81526004016103c29493929190611021565b600060405180830381600087803b1580156103dc57600080fd5b505af11580156103f0573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b815260040161045c9493929190610fa1565b600060405180830381600087803b15801561047657600080fd5b505af115801561048a573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016104eb93929190611066565b600060405180830381600087803b15801561050557600080fd5b505af1158015610519573d6000803e3d6000fd5b50505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4888888886040518563ffffffff1660e01b81526004016105849493929190610fa1565b600060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ae1cdde6878585856040518563ffffffff1660e01b8152600401610615949392919061109d565b600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b5050505050505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4878787876040518563ffffffff1660e01b81526004016106af9493929190610fa1565b600060405180830381600087803b1580156106c957600080fd5b505af11580156106dd573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166314cd70e48684846040518463ffffffff1660e01b815260040161073e939291906110e2565b600060405180830381600087803b15801561075857600080fd5b505af115801561076c573d6000803e3d6000fd5b50505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff1660008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016107ea9190611119565b602060405180830381865afa158015610807573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082b9190611149565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dd2414d4868686866040518563ffffffff1660e01b81526004016108a99493929190610fa1565b600060405180830381600087803b1580156108c357600080fd5b505af11580156108d7573d6000803e3d6000fd5b5050505060008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663441a3e7085836040518363ffffffff1660e01b8152600401610936929190611176565b600060405180830381600087803b15801561095057600080fd5b505af1158015610964573d6000803e3d6000fd5b505050505050505050565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006109a482610979565b9050919050565b6109b481610999565b81146109bf57600080fd5b50565b6000813590506109d1816109ab565b92915050565b6000819050919050565b6109ea816109d7565b81146109f557600080fd5b50565b600081359050610a07816109e1565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112610a3257610a31610a0d565b5b8235905067ffffffffffffffff811115610a4f57610a4e610a12565b5b602083019150836001820283011115610a6b57610a6a610a17565b5b9250929050565b600080600080600080600060a0888a031215610a9157610a9061096f565b5b6000610a9f8a828b016109c2565b9750506020610ab08a828b016109f8565b965050604088013567ffffffffffffffff811115610ad157610ad0610974565b5b610add8a828b01610a1c565b95509550506060610af08a828b016109f8565b935050608088013567ffffffffffffffff811115610b1157610b10610974565b5b610b1d8a828b01610a1c565b925092505092959891949750929550565b6000819050919050565b6000610b53610b4e610b4984610979565b610b2e565b610979565b9050919050565b6000610b6582610b38565b9050919050565b6000610b7782610b5a565b9050919050565b610b8781610b6c565b82525050565b6000602082019050610ba26000830184610b7e565b92915050565b600080600080600080600060c0888a031215610bc757610bc661096f565b5b6000610bd58a828b016109c2565b9750506020610be68a828b016109f8565b965050604088013567ffffffffffffffff811115610c0757610c06610974565b5b610c138a828b01610a1c565b95509550506060610c268a828b016109f8565b9350506080610c378a828b016109f8565b92505060a0610c488a828b016109c2565b91505092959891949750929550565b60008060008060008060a08789031215610c7457610c7361096f565b5b6000610c8289828a016109c2565b9650506020610c9389828a016109f8565b955050604087013567ffffffffffffffff811115610cb457610cb3610974565b5b610cc089828a01610a1c565b94509450506060610cd389828a016109f8565b9250506080610ce489828a016109f8565b9150509295509295509295565b600080600080600080600060c0888a031215610d1057610d0f61096f565b5b6000610d1e8a828b016109c2565b9750506020610d2f8a828b016109f8565b965050604088013567ffffffffffffffff811115610d5057610d4f610974565b5b610d5c8a828b01610a1c565b95509550506060610d6f8a828b016109f8565b9350506080610d808a828b016109f8565b92505060a0610d918a828b016109f8565b91505092959891949750929550565b60008060008060008060a08789031215610dbd57610dbc61096f565b5b6000610dcb89828a016109c2565b9650506020610ddc89828a016109f8565b955050604087013567ffffffffffffffff811115610dfd57610dfc610974565b5b610e0989828a01610a1c565b94509450506060610e1c89828a016109f8565b9250506080610e2d89828a016109c2565b9150509295509295509295565b600060208284031215610e5057610e4f61096f565b5b6000610e5e848285016109f8565b91505092915050565b60008115159050919050565b610e7c81610e67565b82525050565b6000602082019050610e976000830184610e73565b92915050565b600080600080600060808688031215610eb957610eb861096f565b5b6000610ec7888289016109c2565b9550506020610ed8888289016109f8565b945050604086013567ffffffffffffffff811115610ef957610ef8610974565b5b610f0588828901610a1c565b93509350506060610f18888289016109f8565b9150509295509295909350565b610f2e81610999565b82525050565b610f3d816109d7565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000601f19601f8301169050919050565b6000610f808385610f43565b9350610f8d838584610f54565b610f9683610f63565b840190509392505050565b6000606082019050610fb66000830187610f25565b610fc36020830186610f34565b8181036040830152610fd6818486610f74565b905095945050505050565b6000606082019050610ff66000830187610f34565b6110036020830186610f34565b8181036040830152611016818486610f74565b905095945050505050565b60006080820190506110366000830187610f34565b6110436020830186610f34565b6110506040830185610f34565b61105d6060830184610f25565b95945050505050565b600060608201905061107b6000830186610f34565b6110886020830185610f34565b6110956040830184610f34565b949350505050565b60006080820190506110b26000830187610f34565b6110bf6020830186610f34565b6110cc6040830185610f34565b6110d96060830184610f34565b95945050505050565b60006060820190506110f76000830186610f34565b6111046020830185610f34565b6111116040830184610f25565b949350505050565b600060208201905061112e6000830184610f34565b92915050565b600081519050611143816109ab565b92915050565b60006020828403121561115f5761115e61096f565b5b600061116d84828501611134565b91505092915050565b600060408201905061118b6000830185610f34565b6111986020830184610f34565b939250505056fea2646970667358221220ec3495278afe78566e74b538d48e94b094c110ca38b03493e90e5e382cc99d0264736f6c63430008130033",eg=e=>e.length>1;class ey extends p.ContractFactory{constructor(...e){eg(e)?super(...e):super(eb,em,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=em;static abi=eb;static createInterface(){return new p.utils.Interface(eb)}static connect(e,t){return new p.Contract(e,eb,t)}}let ev=[{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"}],ew=[{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"}],e_="0x60a06040523480156200001157600080fd5b50604051620012bc380380620012bc8339818101604052810190620000379190620000dc565b8073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1681525050506200010e565b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000620000a48262000077565b9050919050565b620000b68162000097565b8114620000c257600080fd5b50565b600081519050620000d681620000ab565b92915050565b600060208284031215620000f557620000f462000072565b5b60006200010584828501620000c5565b91505092915050565b608051611145620001776000396000818161016d01528181610229015281816102c2015281816102f30152818161038501528181610429015281816104bb0152818161056e01528181610629015281816106c9015281816107c4015261085b01526111456000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063352eb84c1161005b578063352eb84c146100da57806343fa186d146100f6578063579a698814610112578063d2fc99b5146101425761007d565b8063022cabbc146100825780630d8e6e2c1461009e5780630f08025f146100bc575b600080fd5b61009c600480360381019061009791906109fb565b61015e565b005b6100a6610225565b6040516100b39190610b13565b60405180910390f35b6100c46102c0565b6040516100d19190610b94565b60405180910390f35b6100f460048036038101906100ef9190610baf565b6102e4565b005b610110600480360381019061010b9190610c49565b61041a565b005b61012c60048036038101906101279190610d05565b610553565b6040516101399190610d4d565b60405180910390f35b61015c60048036038101906101579190610d68565b610625565b005b61016784610553565b6101fd577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187868686866040518563ffffffff1660e01b81526004016101ca9493929190610e26565b600060405180830381600087803b1580156101e457600080fd5b505af11580156101f8573d6000803e3d6000fd5b505050505b61021e8573ffffffffffffffffffffffffffffffffffffffff168583610625565b5050505050565b60607f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ffa1ad746040518163ffffffff1660e01b8152600401600060405180830381865afa158015610292573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906102bb9190610f87565b905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b6102ed85610553565b610383577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187878787876040518563ffffffff1660e01b81526004016103509493929190610e26565b600060405180830381600087803b15801561036a57600080fd5b505af115801561037e573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663019b417a8684846040518463ffffffff1660e01b81526004016103e093929190610fd0565b600060405180830381600087803b1580156103fa57600080fd5b505af115801561040e573d6000803e3d6000fd5b50505050505050505050565b61042386610553565b6104b9577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bea84187888888886040518563ffffffff1660e01b81526004016104869493929190610e26565b600060405180830381600087803b1580156104a057600080fd5b505af11580156104b4573d6000803e3d6000fd5b505050505b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663d91443b7878585856040518563ffffffff1660e01b81526004016105189493929190611007565b600060405180830381600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b5050505050505050505050565b60008073ffffffffffffffffffffffffffffffffffffffff167f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16631dbd1da7846040518263ffffffff1660e01b81526004016105c59190611047565b602060405180830381865afa1580156105e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106069190611077565b73ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085846040518363ffffffff1660e01b81526004016106829291906110a4565b602060405180830381865afa15801561069f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106c391906110e2565b905060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663ec3161b085856040518363ffffffff1660e01b81526004016107229291906110a4565b602060405180830381865afa15801561073f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076391906110e2565b90506000821480156107755750600081145b156107b95784846040517f1362cdf20000000000000000000000000000000000000000000000000000000081526004016107b09291906110a4565b60405180910390fd5b6000821115610850577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7086856040518363ffffffff1660e01b815260040161081d9291906110a4565b600060405180830381600087803b15801561083757600080fd5b505af115801561084b573d6000803e3d6000fd5b505050505b60008111156108e7577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663441a3e7085856040518363ffffffff1660e01b81526004016108b49291906110a4565b600060405180830381600087803b1580156108ce57600080fd5b505af11580156108e2573d6000803e3d6000fd5b505050505b5050505050565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061092d82610902565b9050919050565b61093d81610922565b811461094857600080fd5b50565b60008135905061095a81610934565b92915050565b6000819050919050565b61097381610960565b811461097e57600080fd5b50565b6000813590506109908161096a565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126109bb576109ba610996565b5b8235905067ffffffffffffffff8111156109d8576109d761099b565b5b6020830191508360018202830111156109f4576109f36109a0565b5b9250929050565b600080600080600060808688031215610a1757610a166108f8565b5b6000610a258882890161094b565b9550506020610a3688828901610981565b945050604086013567ffffffffffffffff811115610a5757610a566108fd565b5b610a63888289016109a5565b93509350506060610a7688828901610981565b9150509295509295909350565b600081519050919050565b600082825260208201905092915050565b60005b83811015610abd578082015181840152602081019050610aa2565b60008484015250505050565b6000601f19601f8301169050919050565b6000610ae582610a83565b610aef8185610a8e565b9350610aff818560208601610a9f565b610b0881610ac9565b840191505092915050565b60006020820190508181036000830152610b2d8184610ada565b905092915050565b6000819050919050565b6000610b5a610b55610b5084610902565b610b35565b610902565b9050919050565b6000610b6c82610b3f565b9050919050565b6000610b7e82610b61565b9050919050565b610b8e81610b73565b82525050565b6000602082019050610ba96000830184610b85565b92915050565b60008060008060008060a08789031215610bcc57610bcb6108f8565b5b6000610bda89828a0161094b565b9650506020610beb89828a01610981565b955050604087013567ffffffffffffffff811115610c0c57610c0b6108fd565b5b610c1889828a016109a5565b94509450506060610c2b89828a01610981565b9250506080610c3c89828a01610981565b9150509295509295509295565b600080600080600080600060a0888a031215610c6857610c676108f8565b5b6000610c768a828b0161094b565b9750506020610c878a828b01610981565b965050604088013567ffffffffffffffff811115610ca857610ca76108fd565b5b610cb48a828b016109a5565b95509550506060610cc78a828b01610981565b935050608088013567ffffffffffffffff811115610ce857610ce76108fd565b5b610cf48a828b016109a5565b925092505092959891949750929550565b600060208284031215610d1b57610d1a6108f8565b5b6000610d2984828501610981565b91505092915050565b60008115159050919050565b610d4781610d32565b82525050565b6000602082019050610d626000830184610d3e565b92915050565b600080600060608486031215610d8157610d806108f8565b5b6000610d8f86828701610981565b9350506020610da086828701610981565b9250506040610db186828701610981565b9150509250925092565b610dc481610922565b82525050565b610dd381610960565b82525050565b600082825260208201905092915050565b82818337600083830152505050565b6000610e058385610dd9565b9350610e12838584610dea565b610e1b83610ac9565b840190509392505050565b6000606082019050610e3b6000830187610dbb565b610e486020830186610dca565b8181036040830152610e5b818486610df9565b905095945050505050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610ea382610ac9565b810181811067ffffffffffffffff82111715610ec257610ec1610e6b565b5b80604052505050565b6000610ed56108ee565b9050610ee18282610e9a565b919050565b600067ffffffffffffffff821115610f0157610f00610e6b565b5b610f0a82610ac9565b9050602081019050919050565b6000610f2a610f2584610ee6565b610ecb565b905082815260208101848484011115610f4657610f45610e66565b5b610f51848285610a9f565b509392505050565b600082601f830112610f6e57610f6d610996565b5b8151610f7e848260208601610f17565b91505092915050565b600060208284031215610f9d57610f9c6108f8565b5b600082015167ffffffffffffffff811115610fbb57610fba6108fd565b5b610fc784828501610f59565b91505092915050565b6000606082019050610fe56000830186610dca565b610ff26020830185610dca565b610fff6040830184610dca565b949350505050565b600060608201905061101c6000830187610dca565b6110296020830186610dca565b818103604083015261103c818486610df9565b905095945050505050565b600060208201905061105c6000830184610dca565b92915050565b60008151905061107181610934565b92915050565b60006020828403121561108d5761108c6108f8565b5b600061109b84828501611062565b91505092915050565b60006040820190506110b96000830185610dca565b6110c66020830184610dca565b9392505050565b6000815190506110dc8161096a565b92915050565b6000602082840312156110f8576110f76108f8565b5b6000611106848285016110cd565b9150509291505056fea2646970667358221220c33e1830b470bf1e012ac831ec80242d6268e5e6e990b7e1574a230f71533ebd64736f6c63430008130033",eM=e=>e.length>1;class eE extends p.ContractFactory{constructor(...e){eM(e)?super(...e):super(ew,e_,e[0])}deploy(e,t){return super.deploy(e,t||{})}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}attach(e){return super.attach(e)}connect(e){return super.connect(e)}static bytecode=e_;static abi=ew;static createInterface(){return new p.utils.Interface(ew)}static connect(e,t){return new p.Contract(e,ew,t)}}var eA=Object.freeze({__proto__:null,Core:class{static abi=ep;static createInterface(){return new p.utils.Interface(ep)}static connect(e,t){return new p.Contract(e,ep,t)}},CoreV4:class{static abi=ev;static createInterface(){return new p.utils.Interface(ev)}static connect(e,t){return new p.Contract(e,ev,t)}},IERC20:class{static abi=el;static createInterface(){return new p.utils.Interface(el)}static connect(e,t){return new p.Contract(e,el,t)}},IERC721:class{static abi=eh;static createInterface(){return new p.utils.Interface(eh)}static connect(e,t){return new p.Contract(e,eh,t)}},Registration:ey,RegistrationV4:eE});class eS extends a.imx.AssetsApi{}class ex extends a.imx.BalancesApi{}class eI extends a.imx.CollectionsApi{}class eR extends a.imx.DepositsApi{}class ek extends a.imx.EncodingApi{}class eT extends a.imx.ExchangesApi{}class eC extends a.imx.MintsApi{}class eP extends a.imx.MetadataApi{}class eO extends a.imx.MetadataRefreshesApi{}class eN extends a.imx.NftCheckoutPrimaryApi{}class ej extends a.imx.OrdersApi{}class eB extends a.imx.PrimarySalesApi{}class eL extends a.imx.ProjectsApi{}class eD extends a.imx.TokensApi{}class eF extends a.imx.TradesApi{}class eU extends a.imx.TransfersApi{}class eq extends a.imx.UsersApi{}class ez extends a.imx.WithdrawalsApi{}let eK=a.imx.MetadataSchemaRequestTypeEnum},{c745b84b96ec5443:"2MMCE","@imtbl/generated-clients":"2eu25","@imtbl/config":"ed8SG",axios:"jhAcT","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","bn.js":"lXPno","enc-utils":"hJwty",ethers:"8wpcu","@ethersproject/bytes":"19SwW","hash.js":"2Tlxk",elliptic:"gHKeo","ethereumjs-wallet":"3EQrb",assert:"aeMhE","@ethersproject/abstract-signer":"j6EbC","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ed8SG:[function(e,t,r){var i,n,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"Environment",()=>a),o.export(r,"ImmutableConfiguration",()=>d),o.export(r,"KeyHeaders",()=>s),o.export(r,"addKeysToHeadersOverride",()=>c);var f=e("@imtbl/metrics");(i=a||(a={})).PRODUCTION="production",i.SANDBOX="sandbox",(n=s||(s={})).API_KEY="x-immutable-api-key",n.PUBLISHABLE_KEY="x-immutable-publishable-key",n.RATE_LIMITING_KEY="x-api-key";class d{environment;rateLimitingKey;apiKey;publishableKey;constructor(e){this.environment=e.environment,this.publishableKey=e.publishableKey,this.apiKey=e.apiKey,this.rateLimitingKey=e.rateLimitingKey,(0,f.setEnvironment)(e.environment),(0,f.track)("config","created_imtbl_config")}}let c=(e,t)=>{if(!e||!e.apiKey&&!e.publishableKey&&!e.rateLimitingKey)return t;let r={};return(e.apiKey&&(r[s.API_KEY]=e.apiKey),e.publishableKey&&(r[s.PUBLISHABLE_KEY]=e.publishableKey,(0,f.setPublishableApiKey)(e.publishableKey)),e.rateLimitingKey&&(r[s.RATE_LIMITING_KEY]=e.rateLimitingKey),t&&t.headers)?{...t,headers:{...r,...t.headers}}:{...t,headers:r}}},{"@imtbl/metrics":"dO0KB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dO0KB:[function(e,t,r){let i,n;var a,s,o,f,d=e("@parcel/transformer-js/src/esmodule-helpers.js");d.defineInteropFlag(r),d.export(r,"Detail",()=>o),d.export(r,"getDetail",()=>ed),d.export(r,"identify",()=>ea),d.export(r,"setEnvironment",()=>es),d.export(r,"setPassportClientId",()=>eo),d.export(r,"setPublishableApiKey",()=>ef),d.export(r,"track",()=>W),d.export(r,"trackDuration",()=>$),d.export(r,"trackError",()=>ei),d.export(r,"trackFlow",()=>er),d.export(r,"utils",()=>ec);var c=e("axios"),u=d.interopDefault(c),l=e("lru-memorise"),h=e("global-const"),p=e("6a0bfe3548874972").Buffer;e("15cbbe915ba0ee1");let b=()=>"undefined"==typeof window,m=()=>!b(),g=()=>m()&&window.localStorage,y=e=>{if(null!==e)try{return JSON.parse(e)}catch(t){return e}},v=e=>"string"==typeof e?e:JSON.stringify(e),w=e=>`__IMX-${e}`;function _(e){if(g())return y(window.localStorage.getItem(w(e)))}let M=(e,t)=>!!g()&&(window.localStorage.setItem(w(e),v(t)),!0);var E=Object.freeze({__proto__:null,deleteItem:e=>!!g()&&(window.localStorage.removeItem(w(e)),!0),getItem:_,setItem:M});let A=0,S=e=>{let t=1e3*parseInt(e,10),r=new Date(t),i=new Date;return A=r.getTime()-i.getTime()},x=()=>{let e=new Date().getTime()+A,t=new Date(e).toISOString();return t};async function I(e,t){let r=(0,u.default).create({baseURL:"https://api.immutable.com"}),i=JSON.stringify(t),n={payload:p.from(i).toString("base64")},a=await r.post(e,n);return a.data}(a=o||(o={})).RUNTIME_ID="rid",a.PASSPORT_CLIENT_ID="passportClientId",a.ENVIRONMENT="env",a.PUBLISHABLE_API_KEY="pak",a.IDENTITY="uid",a.DOMAIN="domain",a.SDK_VERSION="sdkVersion",(s=f||(f={})).EVENTS="metrics-events",s.RUNTIME="metrics-runtime",i=_(f.EVENTS)||[],n=_(f.RUNTIME)||{};let R=(e,t)=>{n={...n,[e]:t},M(f.RUNTIME,n)},k=e=>{if(void 0!==n[e])return n[e]},T=()=>n,C=()=>i,P=e=>{i.push(e),M(f.EVENTS,i)},O=e=>{i=i.slice(e),M(f.EVENTS,i)},N=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},j="1.56.0",B=()=>b()?"":window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?new URL(window.location.ancestorOrigins[0]).hostname:document.referrer?new URL(window.document.referrer).hostname:"",L=()=>{let e;if(b())return"";try{window.self!==window.top&&(e=B())}catch(e){}return e||(e=window.location.hostname),e},D=()=>{if(R(o.SDK_VERSION,j),b())return{browser:"nodejs",sdkVersion:j};let e=L();return e&&R(o.DOMAIN,e),{sdkVersion:j,browser:window.navigator.userAgent,domain:e,tz:Intl.DateTimeFormat().resolvedOptions().timeZone,screen:`${window.screen.width}x${window.screen.height}`}},F=!1,U=()=>F,q=async()=>{F=!0;try{let e=N(D()),t=k(o.RUNTIME_ID),r=k(o.IDENTITY),i=await I("/v1/sdk/initialise",{version:1,data:{runtimeDetails:e,runtimeId:t,uId:r}}),{runtimeId:n,sTime:a}=i;R(o.RUNTIME_ID,n),S(a)}catch(e){F=!1}};function z(e,t){return(...r)=>{try{let i=e(...r);if(i instanceof Promise)return i.catch(()=>t);return i}catch(e){return t}}}let K=z(function(){return!m()&&!1},!1),H="imtbl__metrics",V=(e,t)=>(0,h.getGlobalisedValue)(H,e,t),W=z(((e,t)=>{let r=(0,l.memorise)(t,{lruOptions:{ttl:5e3,max:1e3}});return(0,h.getGlobalisedValue)(H,e,r)})("track",(e,t,r)=>{let i={event:`${e}.${t}`,time:x(),...r&&{properties:N(r)}};P(i)})),G=async()=>{if(!1===U()){await q();return}let e=C();if(0===e.length)return;let t=e.length,r=T(),i=await I("/v1/sdk/metrics",{version:1,data:{events:e,details:r}});i instanceof Error||O(t)},J=z(G),Z=async()=>{await J(),setTimeout(Z,5e3)},X=!1;K()||z(V("startFlushing",()=>{X||(X=!0,Z())}))();let $=(e,t,r,i)=>W(e,t,{...i||{},duration:Math.round(r)}),Y=()=>{let e=()=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`},Q=(...e)=>{let t=e.some(e=>!!e);if(!t)return{};let r={};return e.forEach(e=>{e&&(r={...r,...e})}),r},ee=e=>e.replace(/[^a-zA-Z0-9\s\-_]/g,""),et=(e,t)=>`${e}_${ee(t)}`,er=z((e,t,r)=>{let i=Y(),n=Date.now(),a=0,s=0,o={},f=(...e)=>Q(o,...e,{flowId:i,flowName:t});o=f(r);let d=(r,i)=>{let n=et(t,r),o=0,d=performance.now();a>0&&(o=d-s);let c=f(i,{flowEventName:r,flowStep:a});$(e,n,o,c),a++,s=d};return d("Start"),{details:{moduleName:e,flowName:t,flowId:i,flowStartTime:n},addEvent:z(d),addFlowProperties:z(e=>{e&&(o=f(e))})}}),ei=z((e,t,r,i)=>{let{message:n}=r,a=r.stack||"",{cause:s}=r;s instanceof Error&&(a=`${a} Cause: ${s.message} - ${s.stack}`),V(e,`trackError_${t}`,{...i||{},errorMessage:n,errorStack:a,isTrackError:!0})}),en=e=>{if(e.passportId){let t=`passport:${e.passportId.toLowerCase()}`;return t}if(e.ethAddress){let t=`ethAddress:${e.ethAddress.toLowerCase()}`;return t}throw Error("invalid_identity")},ea=z(e=>{let t=en(e);t&&(R(o.IDENTITY,t),V("metrics","identify",e.traits))}),es=z(W("setEnvironment",e=>{R(o.ENVIRONMENT,e)})),eo=z(W("setPassportClientId",e=>{R(o.PASSPORT_CLIENT_ID,e)})),ef=z(W("setPublishableApiKey",e=>{R(o.PUBLISHABLE_API_KEY,e)})),ed=z(W("getDetail",k)),ec={localStorage:E}},{"6a0bfe3548874972":"2MMCE","15cbbe915ba0ee1":"fg0b3",axios:"jhAcT","lru-memorise":"h26r2","global-const":"5eChp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h26r2:[function(e,t,r){!function(e){"use strict";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,i=this.resetTtl){let n;if(r||this.has(e)){if((n=this.items[e]).value=t,!1===r&&i&&(n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==n){let e=this.last,t=n.next,r=n.prev;this.first===n&&(this.first=n.next),n.next=null,n.prev=this.last,e.next=n,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),n=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=n:this.last.next=n;return this.last=n,this}values(e=this.keys()){return e.map(e=>this.get(e))}}let r={max:1e3},i=(e,i={})=>{let{cache:a,cacheKeyResolver:s=n,onHit:o,lruOptions:f={}}=i,d={...r,...f},c=a||function(e=1e3,r=0,i=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(r)||r<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof i)throw TypeError("Invalid resetTtl value");return new t(e,r,i)}(d.max,d.ttl);function u(...t){let r=s(...t),i=c.get(r);if(c.has(r))return o&&o(r,i,c),i;let n=e.apply(this,t);return c.set(r,n),n}return u._cache=c,u},n=(...e)=>0===e.length?"no-args":e.map(e=>void 0===e?"undefined":null===e?"null":Array.isArray(e)?`[${n(...e)}]`:"object"==typeof e?`{${n(...a(e))}}`:JSON.stringify(e)).join(","),a=e=>Object.entries(e).sort((e,t)=>e[0]"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:i,a=(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=n(),r=s(e);return t[r]||(t[r]={}),t[r]},f=(e,t)=>{let r=o(e);return r[t]||void 0},d=(e,t,r)=>{let i=o(e);i[t]=r};r.getGlobalisedValue=(e,t,r)=>{a(e,t);let i=f(e,t);return void 0!==i?i:(d(e,t,r),r)},r.clearGlobalNamespace=e=>{let t=n(),r=s(e);void 0!==t[r]&&delete t[r]}},{}],eWtzg:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"keccak256",()=>o);"use strict";var n=e("js-sha3"),a=i.interopDefault(n),s=e("@ethersproject/bytes");function o(e){return"0x"+(0,a.default).keccak_256((0,s.arrayify)(e))}},{"js-sha3":"l9ad0","@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],l9ad0:[function(e,t,r){var i=e("5defb539e98cbde3"),n=arguments[3];!function(){"use strict";var e="input is invalid type",r="object"==typeof window,a=r?window:{};a.JS_SHA3_NO_WINDOW&&(r=!1);var s=!r&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=n:s&&(a=self);var o=!a.JS_SHA3_NO_COMMON_JS&&t.exports,f="function"==typeof define&&define.amd,d=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),u=[4,1024,262144,67108864],l=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],p=[224,256,384,512],b=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),d&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var y=function(e,t,r){return function(i){return new O(e,t,e).update(i)[r]()}},v=function(e,t,r){return function(i,n){return new O(e,t,n).update(i)[r]()}},w=function(e,t,r){return function(t,i,n,a){return S["cshake"+e].update(t,i,n,a)[r]()}},_=function(e,t,r){return function(t,i,n,a){return S["kmac"+e].update(t,i,n,a)[r]()}},M=function(e,t,r,i){for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function N(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var r,i=typeof t;if("string"!==i){if("object"===i){if(null===t)throw Error(e);if(d&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!d||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}for(var n,a,s=this.blocks,o=this.byteCount,f=t.length,c=this.blockCount,u=0,h=this.s;u>2]|=t[u]<>2]|=a<>2]|=(192|a>>6)<=57344?s[n>>2]|=(224|a>>12)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=o){for(this.start=n-o,this.block=s[c],n=0;n>=8,r=255&e;r>0;)n.unshift(r),e>>=8,r=255&e,++i;return t?n.push(i):n.unshift(i),this.update(n),n.length},O.prototype.encodeString=function(t){var r,i=typeof t;if("string"!==i){if("object"===i){if(null===t)throw Error(e);if(d&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!d||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}var n=0,a=t.length;if(r)n=a;else for(var s=0;s=57344?n+=3:(o=65536+((1023&o)<<10|1023&t.charCodeAt(++s)),n+=4)}return n+=this.encode(8*n),this.update(t),n},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),i=0;i>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t>4&15]+c[15&e]+c[e>>12&15]+c[e>>8&15]+c[e>>20&15]+c[e>>16&15]+c[e>>28&15]+c[e>>24&15];s%t==0&&(j(r),a=0)}return n&&(o+=c[(e=r[a])>>4&15]+c[15&e],n>1&&(o+=c[e>>12&15]+c[e>>8&15]),n>2&&(o+=c[e>>20&15]+c[e>>16&15])),o},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,a=0,s=0,o=this.outputBits>>3;e=new ArrayBuffer(n?i+1<<2:o);for(var f=new Uint32Array(e);s>8&255,f[e+2]=t>>16&255,f[e+3]=t>>24&255;o%r==0&&j(i)}return a&&(e=o<<2,t=i[s],f[e]=255&t,a>1&&(f[e+1]=t>>8&255),a>2&&(f[e+2]=t>>16&255)),f},N.prototype=new O,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var j=function(e){var t,r,i,n,a,s,o,f,d,c,u,l,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P,O,N,j,B,L,D,F,U,q,z,K,H,W,V,G,J,Z,X,$,Y,Q,ee,et,er,ei,en,ea,es,eo,ef,ed,ec;for(i=0;i<48;i+=2)n=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=l^(s<<1|o>>>31),r=p^(o<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=n^(f<<1|d>>>31),r=a^(d<<1|f>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(c<<1|u>>>31),r=o^(u<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=f^(l<<1|p>>>31),r=d^(p<<1|l>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(n<<1|a>>>31),r=u^(a<<1|n>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,b=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,k=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,eo=e[31]<<9|e[30]>>>23,ef=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,C=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ed=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,$=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,x=e[7]<<28|e[6]>>>4,ei=e[17]<<23|e[16]>>>9,en=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,M=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,W=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,I=e[18]<<20|e[19]>>>12,R=e[19]<<20|e[18]>>>12,ea=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=b^~g&v,e[1]=m^~y&w,e[10]=S^~I&k,e[11]=x^~R&T,e[20]=j^~L&F,e[21]=B^~D&U,e[30]=W^~G&Z,e[31]=V^~J&X,e[40]=et^~ei&ea,e[41]=er^~en&es,e[2]=g^~v&_,e[3]=y^~w&M,e[12]=I^~k&C,e[13]=R^~T&P,e[22]=L^~F&q,e[23]=D^~U&z,e[32]=G^~Z&$,e[33]=J^~X&Y,e[42]=ei^~ea&eo,e[43]=en^~es&ef,e[4]=v^~_&E,e[5]=w^~M&A,e[14]=k^~C&O,e[15]=T^~P&N,e[24]=F^~q&K,e[25]=U^~z&H,e[34]=Z^~$&Q,e[35]=X^~Y&ee,e[44]=ea^~eo&ed,e[45]=es^~ef&ec,e[6]=_^~E&b,e[7]=M^~A&m,e[16]=C^~O&S,e[17]=P^~N&x,e[26]=q^~K&j,e[27]=z^~H&B,e[36]=$^~Q&W,e[37]=Y^~ee&V,e[46]=eo^~ed&et,e[47]=ef^~ec&er,e[8]=E^~b&g,e[9]=A^~m&y,e[18]=O^~S&I,e[19]=N^~x&R,e[28]=K^~j&L,e[29]=H^~B&D,e[38]=Q^~W&G,e[39]=ee^~V&J,e[48]=ed^~et&ei,e[49]=ec^~er&en,e[0]^=h[i],e[1]^=h[i+1]};if(o)t.exports=S;else{for(I=0;Id),i.export(r,"isBytes",()=>u),i.export(r,"arrayify",()=>l),i.export(r,"concat",()=>h),i.export(r,"stripZeros",()=>p),i.export(r,"zeroPad",()=>b),i.export(r,"isHexString",()=>m),i.export(r,"hexlify",()=>y),i.export(r,"hexDataLength",()=>v),i.export(r,"hexDataSlice",()=>w),i.export(r,"hexConcat",()=>_),i.export(r,"hexValue",()=>M),i.export(r,"hexStripZeros",()=>E),i.export(r,"hexZeroPad",()=>A),i.export(r,"splitSignature",()=>S),i.export(r,"joinSignature",()=>x);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=new n.Logger(a.version);function o(e){return!!e.toHexString}function f(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function d(e){return m(e)&&!(e.length%2)||u(e)}function c(e){return"number"==typeof e&&e==e&&e%1==0}function u(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!c(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),f(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),m(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":s.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let e=0;el(e)),r=t.reduce((e,t)=>e+t.length,0),i=new Uint8Array(r);return t.reduce((e,t)=>(i.set(t,e),e+t.length),0),f(i)}function p(e){let t=l(e);if(0===t.length)return t;let r=0;for(;rt&&s.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),f(r)}function m(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let g="0123456789abcdef";function y(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=g[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(m(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":s.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(u(e)){let t="0x";for(let r=0;r>4]+g[15&i]}return t}return s.throwArgumentError("invalid hexlify value","value",e)}function v(e){if("string"!=typeof e)e=y(e);else if(!m(e)||e.length%2)return null;return(e.length-2)/2}function w(e,t,r){return("string"!=typeof e?e=y(e):(!m(e)||e.length%2)&&s.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function _(e){let t="0x";return e.forEach(e=>{t+=y(e).substring(2)}),t}function M(e){let t=E(y(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function E(e){"string"!=typeof e&&(e=y(e)),m(e)||s.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&s.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function S(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(d(e)){let r=l(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64))):65===r.length?(t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64)),t.v=r[64]):s.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:s.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=y(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=b(l(t._vs),32);t._vs=y(r);let i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&s.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let n=y(r);null==t.s?t.s=n:t.s!==n&&s.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?s.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&s.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&m(t.r)?t.r=A(t.r,32):s.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&m(t.s)?t.s=A(t.s,32):s.throwArgumentError("signature missing or invalid s","signature",e);let r=l(t.s);r[0]>=128&&s.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let i=y(r);t._vs&&(m(t._vs)||s.throwArgumentError("signature invalid _vs","signature",e),t._vs=A(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&s.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function x(e){return y(h([(e=S(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},{"@ethersproject/logger":"6NWvR","./_version":"gnsK7","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6NWvR":[function(e,t,r){var i,n,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"LogLevel",()=>a),o.export(r,"ErrorCode",()=>s),o.export(r,"Logger",()=>m);"use strict";var f=e("./_version");let d=!1,c=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=2,h=null,p=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(i=a||(a={})).DEBUG="DEBUG",i.INFO="INFO",i.WARNING="WARNING",i.ERROR="ERROR",i.OFF="OFF",(n=s||(s={})).UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED";let b="0123456789abcdef";class m{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",e),l>u[r]||console.log.apply(console,t)}debug(...e){this._log(m.levels.DEBUG,e)}info(...e){this._log(m.levels.INFO,e)}warn(...e){this._log(m.levels.WARNING,e)}makeError(e,t,r){if(c)return this.makeError("censored error",t,{});t||(t=m.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4]+b[15&t[e]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(r[e].toString()))}}),i.push(`code=${t}`),i.push(`version=${this.version}`);let n=e,a="";switch(t){case s.NUMERIC_FAULT:{a="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case s.CALL_EXCEPTION:case s.INSUFFICIENT_FUNDS:case s.MISSING_NEW:case s.NONCE_EXPIRED:case s.REPLACEMENT_UNDERPRICED:case s.TRANSACTION_REPLACED:case s.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");let o=Error(e);return o.reason=n,o.code=t,Object.keys(r).forEach(function(e){o[e]=r[e]}),o}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,m.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,i){e||this.throwError(t,r,i)}assertArgument(e,t,r,i){e||this.throwArgumentError(t,r,i)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),p&&this.throwError("platform missing String.prototype.normalize",m.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,m.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,m.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,m.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",m.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",m.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",m.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return h||(h=new m(f.version)),h}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",m.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),d){if(!e)return;this.globalLogger().throwError("error censorship permanent",m.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}c=!!e,d=!!t}static setLogLevel(e){let t=u[e.toLowerCase()];if(null==t){m.globalLogger().warn("invalid log level - "+e);return}l=t}static from(e){return new m(e)}}m.errors=s,m.levels=a},{"./_version":"aDnFn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aDnFn:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="logger/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gnsK7:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="bytes/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],edSy2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"_toEscapedUtf8String",()=>s._toEscapedUtf8String),i.export(r,"toUtf8Bytes",()=>s.toUtf8Bytes),i.export(r,"toUtf8CodePoints",()=>s.toUtf8CodePoints),i.export(r,"toUtf8String",()=>s.toUtf8String),i.export(r,"Utf8ErrorFuncs",()=>s.Utf8ErrorFuncs),i.export(r,"Utf8ErrorReason",()=>s.Utf8ErrorReason),i.export(r,"UnicodeNormalizationForm",()=>s.UnicodeNormalizationForm),i.export(r,"formatBytes32String",()=>n.formatBytes32String),i.export(r,"parseBytes32String",()=>n.parseBytes32String),i.export(r,"nameprep",()=>a.nameprep);"use strict";var n=e("./bytes32"),a=e("./idna"),s=e("./utf8")},{"./bytes32":"5F91f","./idna":"kkxaO","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5F91f":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"formatBytes32String",()=>o),i.export(r,"parseBytes32String",()=>f);"use strict";var n=e("@ethersproject/constants"),a=e("@ethersproject/bytes"),s=e("./utf8");function o(e){let t=(0,s.toUtf8Bytes)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,n.HashZero]).slice(0,32))}function f(e){let t=(0,a.arrayify)(e);if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,s.toUtf8String)(t.slice(0,r))}},{"@ethersproject/constants":"cSsuf","@ethersproject/bytes":"19SwW","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cSsuf:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AddressZero",()=>n.AddressZero),i.export(r,"NegativeOne",()=>a.NegativeOne),i.export(r,"Zero",()=>a.Zero),i.export(r,"One",()=>a.One),i.export(r,"Two",()=>a.Two),i.export(r,"WeiPerEther",()=>a.WeiPerEther),i.export(r,"MaxUint256",()=>a.MaxUint256),i.export(r,"MinInt256",()=>a.MinInt256),i.export(r,"MaxInt256",()=>a.MaxInt256),i.export(r,"HashZero",()=>s.HashZero),i.export(r,"EtherSymbol",()=>o.EtherSymbol);"use strict";var n=e("./addresses"),a=e("./bignumbers"),s=e("./hashes"),o=e("./strings")},{"./addresses":"3I8he","./bignumbers":"4GaKw","./hashes":"iRbHe","./strings":"ex5EG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3I8he":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AddressZero",()=>n);let n="0x0000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4GaKw":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NegativeOne",()=>a),i.export(r,"Zero",()=>s),i.export(r,"One",()=>o),i.export(r,"Two",()=>f),i.export(r,"WeiPerEther",()=>d),i.export(r,"MaxUint256",()=>c),i.export(r,"MinInt256",()=>u),i.export(r,"MaxInt256",()=>l);var n=e("@ethersproject/bignumber");let a=(0,n.BigNumber).from(-1),s=(0,n.BigNumber).from(0),o=(0,n.BigNumber).from(1),f=(0,n.BigNumber).from(2),d=(0,n.BigNumber).from("1000000000000000000"),c=(0,n.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),u=(0,n.BigNumber).from("-0x8000000000000000000000000000000000000000000000000000000000000000"),l=(0,n.BigNumber).from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},{"@ethersproject/bignumber":"hIcBX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hIcBX:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BigNumber",()=>n.BigNumber),i.export(r,"formatFixed",()=>a.formatFixed),i.export(r,"FixedFormat",()=>a.FixedFormat),i.export(r,"FixedNumber",()=>a.FixedNumber),i.export(r,"parseFixed",()=>a.parseFixed),i.export(r,"_base16To36",()=>n._base16To36),i.export(r,"_base36To16",()=>n._base36To16);var n=e("./bignumber"),a=e("./fixednumber")},{"./bignumber":"ha6R2","./fixednumber":"7GQTq","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ha6R2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"isBigNumberish",()=>l),i.export(r,"BigNumber",()=>p),i.export(r,"_base36To16",()=>v),i.export(r,"_base16To36",()=>w);"use strict";var n=e("bn.js"),a=i.interopDefault(n),s=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),f=e("./_version"),d=a.default.BN;let c=new o.Logger(f.version),u={};function l(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.isHexString)(e)||"bigint"==typeof e||(0,s.isBytes)(e))}let h=!1;class p{constructor(e,t){e!==u&&c.throwError("cannot call constructor directly; use BigNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(g(this).fromTwos(e))}toTwos(e){return m(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return m(g(this).add(g(e)))}sub(e){return m(g(this).sub(g(e)))}div(e){let t=p.from(e);return t.isZero()&&y("division-by-zero","div"),m(g(this).div(g(e)))}mul(e){return m(g(this).mul(g(e)))}mod(e){let t=g(e);return t.isNeg()&&y("division-by-zero","mod"),m(g(this).umod(t))}pow(e){let t=g(e);return t.isNeg()&&y("negative-power","pow"),m(g(this).pow(t))}and(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),m(g(this).and(t))}or(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),m(g(this).or(t))}xor(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),m(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),m(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),m(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),m(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",o.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Logger.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",o.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(u,b(e)):e.match(/^-?[0-9]+$/)?new p(u,b(new d(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&y("overflow","BigNumber.from",e),p.from(String(e));if("bigint"==typeof e)return p.from(e.toString());if((0,s.isBytes)(e))return p.from((0,s.hexlify)(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return p.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&((0,s.isHexString)(t)||"-"===t[0]&&(0,s.isHexString)(t.substring(1))))return p.from(t)}}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function b(e){if("string"!=typeof e)return b(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=b(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return p.from(b(e))}function g(e){let t=p.from(e).toHexString();return"-"===t[0]?new d("-"+t.substring(3),16):new d(t.substring(2),16)}function y(e,t,r){let i={fault:e,operation:t};return null!=r&&(i.value=r),c.throwError(e,o.Logger.errors.NUMERIC_FAULT,i)}function v(e){return new d(e,36).toString(16)}function w(e){return new d(e,16).toString(36)}},{"bn.js":"lXPno","@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lXPno:[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{u="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("bd440367abe2ded7").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 i(!1,"Invalid character in "+e)}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,n){for(var a=0,s=0,o=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,i(d>=0&&s0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){a.prototype.inspect=c}else a.prototype.inspect=c;function c(){return(this.red?""}var u,l=["","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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),r=0!==a||s!==this.length-1?l[6-f.length]+f+r:f+r}for(0!==a&&(r=a.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 d=h[e],c=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(c).toString(e);r=(u=u.idivn(c)).isZero()?b+r:l[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},u&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(u,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),a=r||Math.max(1,n);i(n<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(a):new e(a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,n),s},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,a=0;n>8&255),r>16&255),6===a?(r>24&255),i=0,a=0):(i=s>>>24,a+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===a?(r>=0&&(e[r--]=s>>24&255),i=0,a=0):(i=s>>>24,a+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(m=b),a.prototype.mulTo=function(e,t){var r,i=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):i<63?b(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},y.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,r+=(a/67108864|0)+(s>>>26),this.words[n]=67108863&s}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this._strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=67108864%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*r;this.words[n]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(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 a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(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 i=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)},n(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},_.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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new E;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return v[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(d(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.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)},S.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},S.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)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},n(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{bd440367abe2ded7:"3eno3"}],"3eno3":[function(e,t,r){},{}],FsnUp:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="bignumber/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7GQTq":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"formatFixed",()=>b),i.export(r,"parseFixed",()=>m),i.export(r,"FixedFormat",()=>g),i.export(r,"FixedNumber",()=>y);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./bignumber");let f=new a.Logger(s.version),d={},c=(0,o.BigNumber).from(0),u=(0,o.BigNumber).from(-1);function l(e,t,r,i){let n={fault:t,operation:r};return void 0!==i&&(n.value=i),f.throwError(e,a.Logger.errors.NUMERIC_FAULT,n)}let h="0";for(;h.length<256;)h+=h;function p(e){if("number"!=typeof e)try{e=(0,o.BigNumber).from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):f.throwArgumentError("invalid decimal size","decimals",e)}function b(e,t){null==t&&(t=0);let r=p(t);e=(0,o.BigNumber).from(e);let i=e.lt(c);i&&(e=e.mul(u));let n=e.mod(r).toString();for(;n.length2&&f.throwArgumentError("too many decimal points","value",e);let a=n[0],s=n[1];for(a||(a="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?i:(typeof e[t]!==r&&f.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=n("signed","boolean",t),r=n("width","number",r),i=n("decimals","number",i)}return r%8&&f.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&f.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new g(d,t,r,i)}}class y{constructor(e,t,r,i){e!==d&&f.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&f.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(v.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(v.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&f.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=y.from("1"+h.substring(0,e),this.format),i=w.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&f.throwArgumentError("invalid byte width","width",e);let t=(0,o.BigNumber).from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.hexZeroPad)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,o.isBigNumberish)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),y.fromString(b(e,t),g.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=g.from(t),i=m(e,r.decimals);!r.signed&&i.lt(c)&&l("unsigned value cannot be negative","overflow","value",e);let a=null;r.signed?a=i.toTwos(r.width).toHexString():(a=i.toHexString(),a=(0,n.hexZeroPad)(a,r.width/8));let s=b(i,r.decimals);return new y(d,a,s,r)}static fromBytes(e,t){null==t&&(t="fixed");let r=g.from(t);if((0,n.arrayify)(e).length>r.width/8)throw Error("overflow");let i=(0,o.BigNumber).from(e);r.signed&&(i=i.fromTwos(r.width));let a=i.toTwos((r.signed?0:1)+r.width).toHexString(),s=b(i,r.decimals);return new y(d,a,s,r)}static from(e,t){if("string"==typeof e)return y.fromString(e,t);if((0,n.isBytes)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==a.Logger.errors.INVALID_ARGUMENT)throw e}return f.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let v=y.from(1),w=y.from("0.5")},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","./bignumber":"ha6R2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iRbHe:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"HashZero",()=>n);let n="0x0000000000000000000000000000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ex5EG:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"EtherSymbol",()=>n);let n="Ξ"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4E82p":[function(e,t,r){var i,n,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";o.defineInteropFlag(r),o.export(r,"UnicodeNormalizationForm",()=>a),o.export(r,"Utf8ErrorReason",()=>s),o.export(r,"Utf8ErrorFuncs",()=>h),o.export(r,"toUtf8Bytes",()=>b),o.export(r,"_toEscapedUtf8String",()=>g),o.export(r,"_toUtf8String",()=>y),o.export(r,"toUtf8String",()=>v),o.export(r,"toUtf8CodePoints",()=>w);var f=e("@ethersproject/bytes"),d=e("@ethersproject/logger"),c=e("./_version");let u=new d.Logger(c.version);function l(e,t,r,i,n){if(e===s.BAD_PREFIX||e===s.UNEXPECTED_CONTINUE){let e=0;for(let i=t+1;i>6==2;i++)e++;return e}return e===s.OVERRUN?r.length-t-1:0}(i=a||(a={})).current="",i.NFC="NFC",i.NFD="NFD",i.NFKC="NFKC",i.NFKD="NFKD",(n=s||(s={})).UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation";let h=Object.freeze({error:function(e,t,r,i,n){return u.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:l,replace:function(e,t,r,i,n){return e===s.OVERLONG?(i.push(n),0):(i.push(65533),l(e,t,r,i,n))}});function p(e,t){null==t&&(t=h.error),e=(0,f.arrayify)(e);let r=[],i=0;for(;i>7==0){r.push(n);continue}let a=null,o=null;if((224&n)==192)a=1,o=127;else if((240&n)==224)a=2,o=2047;else if((248&n)==240)a=3,o=65535;else{(192&n)==128?i+=t(s.UNEXPECTED_CONTINUE,i-1,e,r):i+=t(s.BAD_PREFIX,i-1,e,r);continue}if(i-1+a>=e.length){i+=t(s.OVERRUN,i-1,e,r);continue}let f=n&(1<<8-a-1)-1;for(let n=0;n1114111){i+=t(s.OUT_OF_RANGE,i-1-a,e,r,f);continue}if(f>=55296&&f<=57343){i+=t(s.UTF16_SURROGATE,i-1-a,e,r,f);continue}if(f<=o){i+=t(s.OVERLONG,i-1-a,e,r,f);continue}r.push(f)}}return r}function b(e,t=a.current){t!=a.current&&(u.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t>6|192),r.push(63&i|128);else if((64512&i)==55296){t++;let n=e.charCodeAt(t);if(t>=e.length||(64512&n)!=56320)throw Error("invalid utf-8 string");let a=65536+((1023&i)<<10)+(1023&n);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return(0,f.arrayify)(r)}function m(e){let t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function g(e,t){return'"'+p(e,t).map(e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?m(e):m(((e-=65536)>>10&1023)+55296)+m((1023&e)+56320)}).join("")+'"'}function y(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function v(e,t){return y(p(e,t))}function w(e,t=a.current){return p(b(e,t))}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"mEQno","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],mEQno:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="strings/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kkxaO:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"_nameprepTableA1",()=>b),i.export(r,"_nameprepTableB2",()=>m),i.export(r,"_nameprepTableC",()=>g),i.export(r,"nameprep",()=>y);"use strict";var n=e("./utf8");function a(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,i={};return e.split(",").forEach(e=>{let n=e.split(":");i[r+=parseInt(n[0],16)]=t(n[1])}),i}function s(e){let t=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}})}function o(e,t){let r=0;for(let i=0;i=(r+=n.l)&&e<=r+n.h&&(e-r)%(n.d||1)==0){if(n.e&&-1!==n.e.indexOf(e-r))continue;return n}}return null}let f=s("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),d="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],u=a("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),l=a("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),h=a("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(e){if(e.length%4!=0)throw Error("bad data");let t=[];for(let r=0;rd.indexOf(e)>=0||e>=65024&&e<=65039?[]:m(e)||[e]).reduce((e,t)=>(t.forEach(t=>{e.push(t)}),e),[]),(t=(0,n.toUtf8CodePoints)((0,n._toUtf8String)(t),n.UnicodeNormalizationForm.NFKC)).forEach(e=>{if(g(e))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(e=>{if(b(e))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,n._toUtf8String)(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}},{"./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hJwty:[function(e,t,r){"use strict";var i=e("37da3353fb0fa7ff").Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let a=n(e("d4e65179c0f8f385")),s=n(e("532aa29a5036ee04")),o="utf8";function f(e){return new Uint8Array(e)}function d(e,t=!1){let r=e.toString("hex");return t?L(r):r}function c(e){return e.toString(o)}function u(e){return e.readUIntBE(0,e.length)}function l(e){return s.default(e)}function h(e,t=!1){return d(l(e),t)}function p(e){return c(l(e))}function b(e){return u(l(e))}function m(e){return Array.from(e).map(M).join("")}function g(e){return i.from(B(e),"hex")}function y(e){return f(g(e))}function v(e){return m(y(e))}function w(e){return i.from(e,o)}function _(e){return f(w(e))}function M(e){let t=(e>>>0).toString(2);return N(t)}function E(e){return l(A(e))}function A(e){return new Uint8Array(P(e).map(e=>parseInt(e,2)))}function S(e,t){return h(A(e),t)}function x(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function I(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function R(e){return i.isBuffer(e)}function k(e){return a.default.strict(e)&&!R(e)}function T(e){return!k(e)&&!R(e)&&void 0!==e.byteLength}function C(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function P(e,t=8){let r=N(e).match(RegExp(`.{${t}}`,"gi"));return Array.from(r||[])}function O(e){return P(e).map(D).join("")}function N(e,t=8,r="0"){return j(e,C(e.length,t),r)}function j(e,t,r="0"){return F(e,t,!0,r)}function B(e){return e.replace(/^0x/,"")}function L(e){return e.startsWith("0x")?e:`0x${e}`}function D(e){return e.split("").reverse().join("")}function F(e,t,r,i="0"){let n=t-e.length,a=e;if(n>0){let t=i.repeat(n);a=r?t+e:e+t}return a}r.bufferToArray=f,r.bufferToHex=d,r.bufferToUtf8=c,r.bufferToNumber=u,r.bufferToBinary=function(e){return m(f(e))},r.arrayToBuffer=l,r.arrayToHex=h,r.arrayToUtf8=p,r.arrayToNumber=b,r.arrayToBinary=m,r.hexToBuffer=g,r.hexToArray=y,r.hexToUtf8=function(e){return c(g(e))},r.hexToNumber=function(e){return b(y(e))},r.hexToBinary=v,r.utf8ToBuffer=w,r.utf8ToArray=_,r.utf8ToHex=function(e,t=!1){return d(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 m(_(e))},r.numberToBuffer=function(e){return E(M(e))},r.numberToArray=function(e){return A(M(e))},r.numberToHex=function(e,t){return S(M(e),t)},r.numberToUtf8=function(e){return`${e}`},r.numberToBinary=M,r.binaryToBuffer=E,r.binaryToArray=A,r.binaryToHex=S,r.binaryToUtf8=function(e){return p(A(e))},r.binaryToNumber=function(e){return b(A(e))},r.isBinaryString=x,r.isHexString=I,r.isBuffer=R,r.isTypedArray=k,r.isArrayBuffer=T,r.getType=function(e){return R(e)?"buffer":k(e)?"typed-array":T(e)?"array-buffer":Array.isArray(e)?"array":typeof e},r.getEncoding=function(e){return x(e)?"binary":I(e)?"hex":o},r.concatBuffers=function(...e){let t=i.concat(e);return t},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=C,r.splitBytes=P,r.swapBytes=O,r.swapHex=function(e){return S(O(v(e)))},r.sanitizeBytes=N,r.padLeft=j,r.padRight=function(e,t,r="0"){return F(e,t,!1,r)},r.removeHexPrefix=B,r.addHexPrefix=L,r.sanitizeHex=function(e){return(e=N(e=B(e),2))&&(e=L(e)),e},r.removeHexLeadingZeros=function(e){let t=e.startsWith("0x");return e=(e=B(e)).startsWith("0")?e.substring(1):e,t?L(e):e}},{"37da3353fb0fa7ff":"2MMCE",d4e65179c0f8f385:"69hwL","532aa29a5036ee04":"4JDy2"}],"69hwL":[function(e,t,r){t.exports=a,a.strict=s,a.loose=o;var i=Object.prototype.toString,n={"[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 a(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 n[i.call(e)]}},{}],"4JDy2":[function(e,t,r){var i=e("1a78dd7d8c10fe5c").Buffer,n=e("dfcbed822b77bad7").strict;t.exports=function(e){if(!n(e))return i.from(e);var t=i.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}},{"1a78dd7d8c10fe5c":"2MMCE",dfcbed822b77bad7:"69hwL"}],"8wpcu":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Signer",()=>n.Signer),i.export(r,"Wallet",()=>n.Wallet),i.export(r,"VoidSigner",()=>n.VoidSigner),i.export(r,"getDefaultProvider",()=>n.getDefaultProvider),i.export(r,"providers",()=>n.providers),i.export(r,"BaseContract",()=>n.BaseContract),i.export(r,"Contract",()=>n.Contract),i.export(r,"ContractFactory",()=>n.ContractFactory),i.export(r,"BigNumber",()=>n.BigNumber),i.export(r,"FixedNumber",()=>n.FixedNumber),i.export(r,"constants",()=>n.constants),i.export(r,"errors",()=>n.errors),i.export(r,"logger",()=>n.logger),i.export(r,"utils",()=>n.utils),i.export(r,"wordlists",()=>n.wordlists),i.export(r,"version",()=>n.version),i.export(r,"Wordlist",()=>n.Wordlist),i.export(r,"ethers",()=>n);var n=e("./ethers");"use strict";try{let e=window;null==e._ethers&&(e._ethers=n)}catch(e){}},{"./ethers":"gFgxE","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gFgxE:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Signer",()=>s.Signer),i.export(r,"Wallet",()=>o.Wallet),i.export(r,"VoidSigner",()=>s.VoidSigner),i.export(r,"getDefaultProvider",()=>d.getDefaultProvider),i.export(r,"providers",()=>d),i.export(r,"BaseContract",()=>n.BaseContract),i.export(r,"Contract",()=>n.Contract),i.export(r,"ContractFactory",()=>n.ContractFactory),i.export(r,"BigNumber",()=>a.BigNumber),i.export(r,"FixedNumber",()=>a.FixedNumber),i.export(r,"constants",()=>f),i.export(r,"errors",()=>l.ErrorCode),i.export(r,"logger",()=>p),i.export(r,"utils",()=>u),i.export(r,"wordlists",()=>c.wordlists),i.export(r,"version",()=>h.version),i.export(r,"Wordlist",()=>c.Wordlist);"use strict";var n=e("@ethersproject/contracts"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/wallet"),f=e("@ethersproject/constants"),d=e("@ethersproject/providers"),c=e("@ethersproject/wordlists"),u=e("./utils"),l=e("@ethersproject/logger"),h=e("./_version");let p=new l.Logger(h.version)},{"@ethersproject/contracts":"bmZzW","@ethersproject/bignumber":"hIcBX","@ethersproject/abstract-signer":"j6EbC","@ethersproject/wallet":"euBMB","@ethersproject/constants":"cSsuf","@ethersproject/providers":"lpm2Y","@ethersproject/wordlists":"a2daz","./utils":"7jy5m","@ethersproject/logger":"6NWvR","./_version":"lHxZw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bmZzW:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BaseContract",()=>R),i.export(r,"Contract",()=>k),i.export(r,"ContractFactory",()=>T);"use strict";var n=e("@ethersproject/abi"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/address"),f=e("@ethersproject/bignumber"),d=e("@ethersproject/bytes"),c=e("@ethersproject/properties"),u=e("@ethersproject/transactions"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let b=new l.Logger(h.version),m={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function g(e,t){return p(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&b.throwArgumentError("invalid address or ENS name","name",r);try{return(0,o.getAddress)(r)}catch(e){}e||b.throwError("a provider or signer is needed to resolve ENS names",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let i=yield e.resolveName(r);return null==i&&b.throwArgumentError("resolver or addr is not configured for ENS name","name",r),i})}function y(e,t,r){return p(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,i)=>y(e,Array.isArray(t)?t[i]:t[r.name],r))):"address"===r.type?yield g(e,t):"tuple"===r.type?yield y(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>y(e,t,r.arrayChildren))):Promise.reject(b.makeError("invalid value for array",l.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function v(e,t,r){return p(this,void 0,void 0,function*(){let i={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(i=(0,c.shallowCopy)(r.pop())),b.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?i.from?i.from=(0,c.resolveProperties)({override:g(e.signer,i.from),signer:e.signer.getAddress()}).then(e=>p(this,void 0,void 0,function*(){return(0,o.getAddress)(e.signer)!==e.override&&b.throwError("Contract with a Signer cannot override from",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):i.from=e.signer.getAddress():i.from&&(i.from=g(e.provider,i.from));let n=yield(0,c.resolveProperties)({args:y(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,c.resolveProperties)(i)||{}}),a=e.interface.encodeFunctionData(t,n.args),s={data:a,to:n.address},h=n.overrides;if(null!=h.nonce&&(s.nonce=(0,f.BigNumber).from(h.nonce).toNumber()),null!=h.gasLimit&&(s.gasLimit=(0,f.BigNumber).from(h.gasLimit)),null!=h.gasPrice&&(s.gasPrice=(0,f.BigNumber).from(h.gasPrice)),null!=h.maxFeePerGas&&(s.maxFeePerGas=(0,f.BigNumber).from(h.maxFeePerGas)),null!=h.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=(0,f.BigNumber).from(h.maxPriorityFeePerGas)),null!=h.from&&(s.from=h.from),null!=h.type&&(s.type=h.type),null!=h.accessList&&(s.accessList=(0,u.accessListify)(h.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3,r=(0,d.arrayify)(a);for(let t=0;tnull!=i[e]);return m.length&&b.throwError(`cannot override ${m.map(e=>JSON.stringify(e)).join(",")}`,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:m}),s})}function w(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let i=(0,c.deepCopy)(r),n=null;try{n=e.interface.parseLog(r)}catch(e){}return n&&(i.args=n.args,i.decode=(t,r)=>e.interface.decodeEventLog(n.eventFragment,t,r),i.event=n.name,i.eventSignature=n.signature),i.removeListener=()=>e.provider,i.getBlock=()=>e.provider.getBlock(t.blockHash),i.getTransaction=()=>e.provider.getTransaction(t.transactionHash),i.getTransactionReceipt=()=>Promise.resolve(t),i}),t))}function _(e,t,r){let i=e.signer||e.provider;return function(...n){return p(this,void 0,void 0,function*(){let a;if(n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]){let e=(0,c.shallowCopy)(n.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,n.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let s=yield v(e,t,n),o=yield i.call(s,a);try{let i=e.interface.decodeFunctionResult(t,o);return r&&1===t.outputs.length&&(i=i[0]),i}catch(t){throw t.code===l.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=n,t.transaction=s),t}})}}function M(e,t,r){return t.constant?_(e,t,r):function(...r){return p(this,void 0,void 0,function*(){e.signer||b.throwError("sending a transaction requires a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let i=yield v(e,t,r),n=yield e.signer.sendTransaction(i);return w(e,n),n})}}function E(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class A{constructor(e,t){(0,c.defineReadOnly)(this,"tag",e),(0,c.defineReadOnly)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class S extends A{constructor(){super("error",null)}}class x extends A{constructor(e,t,r,i){let n={address:e},a=t.getEventTopic(r);i?(a!==i[0]&&b.throwArgumentError("topic mismatch","topics",i),n.topics=i.slice()):n.topics=[a],super(E(n),n),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",t),(0,c.defineReadOnly)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){let t=(0,n.checkResultErrors)(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class I extends A{constructor(e,t){super("*",{address:e}),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class R{constructor(e,t,r){(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(t)),null==r?((0,c.defineReadOnly)(this,"provider",null),(0,c.defineReadOnly)(this,"signer",null)):(0,s.Signer).isSigner(r)?((0,c.defineReadOnly)(this,"provider",r.provider||null),(0,c.defineReadOnly)(this,"signer",r)):(0,a.Provider).isProvider(r)?((0,c.defineReadOnly)(this,"provider",r),(0,c.defineReadOnly)(this,"signer",null)):b.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,c.defineReadOnly)(this,"callStatic",{}),(0,c.defineReadOnly)(this,"estimateGas",{}),(0,c.defineReadOnly)(this,"functions",{}),(0,c.defineReadOnly)(this,"populateTransaction",{}),(0,c.defineReadOnly)(this,"filters",{});{let e={};Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,c.defineReadOnly)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,c.defineReadOnly)(this.filters,t,this.filters[r[0]]):b.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,c.defineReadOnly)(this,"_runningEvents",{}),(0,c.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&b.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,c.defineReadOnly)(this,"address",e),this.provider)(0,c.defineReadOnly)(this,"resolvedAddress",g(this.provider,e));else try{(0,c.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,o.getAddress)(e)))}catch(e){b.throwError("provider is required to use ENS name as contract address",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let i={},n={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(n[e]){b.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}n[e]=!0;{let r=t.name;i[`%${r}`]||(i[`%${r}`]=[]),i[`%${r}`].push(e)}if(null==this[e]&&(0,c.defineReadOnly)(this,e,M(this,t,!0)),null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,M(this,t,!1)),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,_(this,t,!0)),null==this.populateTransaction[e]){var r;(0,c.defineReadOnly)(this.populateTransaction,e,(r=this,function(...e){return v(r,t,e)}))}null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...i){return p(this,void 0,void 0,function*(){r||b.throwError("estimate require a provider or signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let n=yield v(e,t,i);return yield r.estimateGas(n)})}}(this,t))}),Object.keys(i).forEach(e=>{let t=i[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,c.defineReadOnly)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,c.defineReadOnly)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getInterface(e){return(0,n.Interface).isInterface(e)?e:new n.Interface(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&b.throwError("contract not deployed",l.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||b.throwError("sending a transactions require a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,c.shallowCopy)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&b.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new s.VoidSigner(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,c.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return(0,n.Indexed).isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new S);if("event"===e)return this._normalizeRunningEvent(new A("event",null));if("*"===e)return this._normalizeRunningEvent(new I(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new x(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new x(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new A(E(t),t))}return this._normalizeRunningEvent(new I(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let i=(0,c.deepCopy)(t);return i.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(t.blockHash),i.getTransaction=()=>this.provider.getTransaction(t.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(i),i}_addEventListener(e,t,r){if(this.provider||b.throwError("events require a provider or a signer with a provider",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let i=this._wrapEvent(e,r,t);if(null==i.decodeError)try{let t=e.getEmit(i);this.emit(e.filter,...t)}catch(e){i.decodeError=e.error}null!=e.filter&&this.emit("event",i),null!=i.decodeError&&this.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let i=this._getRunningEvent(e),n=(0,c.shallowCopy)(i.filter);return"string"==typeof t&&(0,d.isHexString)(t,32)?(null!=r&&b.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),n.blockHash=t):(n.fromBlock=null!=t?t:0,n.toBlock=null!=r?r:"latest"),this.provider.getLogs(n).then(e=>e.map(e=>this._wrapEvent(i,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),i=r.run(t)>0;return this._checkRunningEvents(r),i}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class k extends R{}class T{constructor(e,t,r){let i=null;"0x"!==(i="string"==typeof t?t:(0,d.isBytes)(t)?(0,d.hexlify)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(i="0x"+i),(!(0,d.isHexString)(i)||i.length%2)&&b.throwArgumentError("invalid bytecode","bytecode",t),r&&!(0,s.Signer).isSigner(r)&&b.throwArgumentError("invalid signer","signer",r),(0,c.defineReadOnly)(this,"bytecode",i),(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(e)),(0,c.defineReadOnly)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in t=(0,c.shallowCopy)(e.pop()))if(!m[r])throw Error("unknown transaction override "+r)}if(["data","from","to"].forEach(e=>{null!=t[e]&&b.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.value){let e=(0,f.BigNumber).from(t.value);e.isZero()||this.interface.deploy.payable||b.throwError("non-payable constructor cannot override value",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return b.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,d.hexlify)((0,d.concat)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return p(this,void 0,void 0,function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),b.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield y(this.signer,e,this.interface.deploy.inputs);r.push(t);let i=this.getDeployTransaction(...r),n=yield this.signer.sendTransaction(i),a=(0,c.getStatic)(this.constructor,"getContractAddress")(n),s=(0,c.getStatic)(this.constructor,"getContract")(a,this.interface,this.signer);return w(s,n),(0,c.defineReadOnly)(s,"deployTransaction",n),s})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&b.throwError("missing compiler output",l.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,i=null;return e.bytecode?i=e.bytecode:e.evm&&e.evm.bytecode&&(i=e.evm.bytecode),new this(r,i,t)}static getInterface(e){return k.getInterface(e)}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getContract(e,t,r){return new k(e,t,r)}}},{"@ethersproject/abi":"gbtNr","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"liyH3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gbtNr:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ConstructorFragment",()=>n.ConstructorFragment),i.export(r,"ErrorFragment",()=>n.ErrorFragment),i.export(r,"EventFragment",()=>n.EventFragment),i.export(r,"Fragment",()=>n.Fragment),i.export(r,"FunctionFragment",()=>n.FunctionFragment),i.export(r,"ParamType",()=>n.ParamType),i.export(r,"FormatTypes",()=>n.FormatTypes),i.export(r,"AbiCoder",()=>a.AbiCoder),i.export(r,"defaultAbiCoder",()=>a.defaultAbiCoder),i.export(r,"Interface",()=>s.Interface),i.export(r,"Indexed",()=>s.Indexed),i.export(r,"checkResultErrors",()=>s.checkResultErrors),i.export(r,"LogDescription",()=>s.LogDescription),i.export(r,"TransactionDescription",()=>s.TransactionDescription);"use strict";var n=e("./fragments"),a=e("./abi-coder"),s=e("./interface")},{"./fragments":"2aRQ2","./abi-coder":"eiswb","./interface":"gOFir","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aRQ2":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"FormatTypes",()=>p),i.export(r,"ParamType",()=>m),i.export(r,"Fragment",()=>y),i.export(r,"EventFragment",()=>v),i.export(r,"ConstructorFragment",()=>E),i.export(r,"FunctionFragment",()=>A),i.export(r,"ErrorFragment",()=>x);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let f=new s.Logger(o.version),d={},c={calldata:!0,memory:!0,storage:!0},u={calldata:!0,memory:!0};function l(e,t){if("bytes"===e||"string"===e){if(c[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&u[t])return!0;return(c[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function h(e,t){for(let r in t)(0,a.defineReadOnly)(e,r,t[r])}let p=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),b=new RegExp(/^(.*)\[([0-9]*)\]$/);class m{constructor(e,t){e!==d&&f.throwError("use fromString",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),h(this,t);let r=this.type.match(b);r?h(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:m.fromObject({type:r[1],components:this.components}),baseType:"array"}):h(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?t+=this.arrayChildren.format(e)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(e!==p.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===p.full?", ":",")+")"):t+=this.type,e!==p.sighash&&(!0===this.indexed&&(t+=" indexed"),e===p.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?m.fromString(e,t):m.fromObject(e)}static fromObject(e){return m.isParamType(e)?e:new m(d,{name:e.name||null,type:I(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(m.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function i(t){f.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function n(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let a={type:"",name:"",state:{allowType:!0}},s=a;for(let r=0;rm.fromString(e,t))}class y{constructor(e,t){e!==d&&f.throwError("use a static from method",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),h(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return y.isFragment(e)?e:"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isFragment(e))return e;switch(e.type){case"function":return A.fromObject(e);case"event":return v.fromObject(e);case"constructor":return E.fromObject(e);case"error":return x.fromObject(e);case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?v.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?A.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?E.fromString(e.trim()):"error"===e.split(" ")[0]?x.fromString(e.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class v extends y{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==p.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?v.fromString(e):v.fromObject(e)}static fromObject(e){if(v.isEventFragment(e))return e;"event"!==e.type&&f.throwArgumentError("invalid event object","value",e);let t={name:k(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(m.fromObject):[],type:"event"};return new v(d,t)}static fromString(e){let t=e.match(T);t||f.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:f.warn("unknown modifier: "+e)}}),v.fromObject({name:t[1].trim(),anonymous:r,inputs:g(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function w(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=(0,n.BigNumber).from(r[1]),r[0]):e}function _(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function M(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}class E extends y{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===p.sighash&&f.throwError("cannot format a constructor for sighash",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?E.fromString(e):E.fromObject(e)}static fromObject(e){if(E.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);let t=M(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);let r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(m.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,n.BigNumber).from(e.gas):null};return new E(d,r)}static fromString(e){let t={type:"constructor"},r=(e=w(e,t)).match(T);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=g(r[2].trim(),!1),_(r[3].trim(),t),E.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class A extends E{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():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 e!==p.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?A.fromString(e):A.fromObject(e)}static fromObject(e){if(A.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);let t=M(e),r={type:e.type,name:k(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(m.fromObject):[],outputs:e.outputs?e.outputs.map(m.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,n.BigNumber).from(e.gas):null};return new A(d,r)}static fromString(e){let t={type:"function"},r=(e=w(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);let i=r[0].match(T);if(i||f.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&k(t.name),t.inputs=g(i[2],!1),_(i[3].trim(),t),r.length>1){let i=r[1].match(T);(""!=i[1].trim()||""!=i[3].trim())&&f.throwArgumentError("unexpected tokens","value",e),t.outputs=g(i[2],!1)}else t.outputs=[];return A.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function S(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&f.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class x extends y{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==p.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?x.fromString(e):x.fromObject(e)}static fromObject(e){if(x.isErrorFragment(e))return e;"error"!==e.type&&f.throwArgumentError("invalid error object","value",e);let t={type:e.type,name:k(e.name),inputs:e.inputs?e.inputs.map(m.fromObject):[]};return S(new x(d,t))}static fromString(e){let t={type:"error"},r=e.match(T);return r||f.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&k(t.name),t.inputs=g(r[2],!1),S(x.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function I(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let R=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function k(e){return e&&e.match(R)||f.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let T=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dmdV5:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"defineReadOnly",()=>o),i.export(r,"getStatic",()=>f),i.export(r,"resolveProperties",()=>d),i.export(r,"checkProperties",()=>c),i.export(r,"shallowCopy",()=>u),i.export(r,"deepCopy",()=>h),i.export(r,"Description",()=>p);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=new n.Logger(a.version);function o(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function f(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function d(e){var t,r,i,n;return t=this,r=void 0,i=void 0,n=function*(){let t=Object.keys(e).map(t=>{let r=e[t];return Promise.resolve(r).then(e=>({key:t,value:e}))}),r=yield Promise.all(t);return r.reduce((e,t)=>(e[t.key]=t.value,e),{})},new(i||(i=Promise))(function(e,a){function s(e){try{f(n.next(e))}catch(e){a(e)}}function o(e){try{f(n.throw(e))}catch(e){a(e)}}function f(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,o)}f((n=n.apply(t,r||[])).next())})}function c(e,t){e&&"object"==typeof e||s.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function u(e){let t={};for(let r in e)t[r]=e[r];return t}let l={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function h(e){return function(e){if(function e(t){if(null==t||l[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let i=0;ih(e)));if("object"==typeof e){let t={};for(let r in e){let i=e[r];void 0!==i&&o(t,r,h(i))}return t}return s.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}class p{constructor(e){for(let t in e)this[t]=h(e[t])}}},{"@ethersproject/logger":"6NWvR","./_version":"bVRqv","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bVRqv:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="properties/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6avgg":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="abi/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eiswb:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AbiCoder",()=>M),i.export(r,"defaultAbiCoder",()=>E);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version"),f=e("./coders/abstract-coder"),d=e("./coders/address"),c=e("./coders/array"),u=e("./coders/boolean"),l=e("./coders/bytes"),h=e("./coders/fixed-bytes"),p=e("./coders/null"),b=e("./coders/number"),m=e("./coders/string"),g=e("./coders/tuple"),y=e("./fragments");let v=new s.Logger(o.version),w=new RegExp(/^bytes([0-9]*)$/),_=new RegExp(/^(u?int)([0-9]*)$/);class M{constructor(e){(0,a.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new d.AddressCoder(e.name);case"bool":return new u.BooleanCoder(e.name);case"string":return new m.StringCoder(e.name);case"bytes":return new l.BytesCoder(e.name);case"array":return new c.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new g.TupleCoder((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new p.NullCoder(e.name)}let t=e.type.match(_);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&v.throwArgumentError("invalid "+t[1]+" bit length","param",e),new b.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(w)){let r=parseInt(t[1]);return(0===r||r>32)&&v.throwArgumentError("invalid bytes length","param",e),new h.FixedBytesCoder(r,e.name)}return v.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new f.Reader(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new f.Writer(this._getWordSize())}getDefaultValue(e){let t=e.map(e=>this._getCoder((0,y.ParamType).from(e))),r=new g.TupleCoder(t,"_");return r.defaultValue()}encode(e,t){e.length!==t.length&&v.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=e.map(e=>this._getCoder((0,y.ParamType).from(e))),i=new g.TupleCoder(r,"_"),n=this._getWriter();return i.encode(n,t),n.data}decode(e,t,r){let i=e.map(e=>this._getCoder((0,y.ParamType).from(e))),a=new g.TupleCoder(i,"_");return a.decode(this._getReader((0,n.arrayify)(t),r))}}let E=new M},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","./coders/abstract-coder":"9TMyg","./coders/address":"gmOQs","./coders/array":"2wlJw","./coders/boolean":"euYzQ","./coders/bytes":"kOE2A","./coders/fixed-bytes":"dNFj2","./coders/null":"2639x","./coders/number":"lHQpm","./coders/string":"44r1i","./coders/tuple":"90ORK","./fragments":"2aRQ2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9TMyg":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"checkResultErrors",()=>c),i.export(r,"Coder",()=>u),i.export(r,"Writer",()=>l),i.export(r,"Reader",()=>h);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),f=e("../_version");let d=new o.Logger(f.version);function c(e){let t=[],r=function(e,i){if(Array.isArray(i))for(let n in i){let a=e.slice();a.push(n);try{r(a,i[n])}catch(e){t.push({path:a,error:e})}}};return r([],e),t}class u{constructor(e,t,r,i){this.name=e,this.type=t,this.localName=r,this.dynamic=i}_throwError(e,t){d.throwArgumentError(e,this.localName,t)}}class l{constructor(e){(0,s.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,n.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,n.concat)(e._data))}writeBytes(e){let t=(0,n.arrayify)(e),r=t.length%this.wordSize;return r&&(t=(0,n.concat)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,n.arrayify)((0,a.BigNumber).from(e));return t.length>this.wordSize&&d.throwError("value out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.concat)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class h{constructor(e,t,r,i){(0,s.defineReadOnly)(this,"_data",(0,n.arrayify)(e)),(0,s.defineReadOnly)(this,"wordSize",t||32),(0,s.defineReadOnly)(this,"_coerceFunc",r),(0,s.defineReadOnly)(this,"allowLoose",i),this._offset=0}get data(){return(0,n.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):h.coerce(e,t)}_peekBytes(e,t,r){let i=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?i=t:d.throwError("data out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new h(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return(0,a.BigNumber).from(this.readBytes(this.wordSize))}}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","../_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gmOQs:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AddressCoder",()=>o);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/bytes"),s=e("./abstract-coder");class o extends s.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,n.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,n.getAddress)((0,a.hexZeroPad)(e.readValue().toHexString(),20))}}},{"@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BZuS":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getAddress",()=>b),i.export(r,"isAddress",()=>m),i.export(r,"getIcapAddress",()=>g),i.export(r,"getContractAddress",()=>y),i.export(r,"getCreate2Address",()=>v);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/rlp"),f=e("@ethersproject/logger"),d=e("./_version");let c=new f.Logger(d.version);function u(e){(0,n.isHexString)(e,20)||c.throwArgumentError("invalid address","address",e),e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.arrayify)((0,s.keccak256)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let l={};for(let e=0;e<10;e++)l[String(e)]=String(e);for(let e=0;e<26;e++)l[String.fromCharCode(65+e)]=String(10+e);let h=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function p(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>l[e]).join("");for(;t.length>=h;){let e=t.substring(0,h);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}function b(e){let t=null;if("string"!=typeof e&&c.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&c.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==p(e)&&c.throwArgumentError("bad icap checksum","address",e),t=(0,a._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else c.throwArgumentError("invalid address","address",e);return t}function m(e){try{return b(e),!0}catch(e){}return!1}function g(e){let t=(0,a._base16To36)(b(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function y(e){let t=null;try{t=b(e.from)}catch(t){c.throwArgumentError("missing from address","transaction",e)}let r=(0,n.stripZeros)((0,n.arrayify)((0,a.BigNumber).from(e.nonce).toHexString()));return b((0,n.hexDataSlice)((0,s.keccak256)((0,o.encode)([t,r])),12))}function v(e,t,r){return 32!==(0,n.hexDataLength)(t)&&c.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.hexDataLength)(r)&&c.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),b((0,n.hexDataSlice)((0,s.keccak256)((0,n.concat)(["0xff",b(e),t,r])),12))}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/keccak256":"eWtzg","@ethersproject/rlp":"1wlks","@ethersproject/logger":"6NWvR","./_version":"cclNm","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1wlks":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"encode",()=>c),i.export(r,"decode",()=>h);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);function f(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function d(e,t,r){let i=0;for(let n=0;nt+1+i&&o.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:n}}function l(e,t){if(0===e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=d(e,t+1,r);return t+1+r+i>e.length&&o.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+r,r+i)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=d(e,t+1,r);t+1+r+i>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let s=(0,n.hexlify)(e.slice(t+1+r,t+1+r+i));return{consumed:1+r+i,result:s}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=(0,n.hexlify)(e.slice(t+1,t+1+r));return{consumed:1+r,result:i}}return{consumed:1,result:(0,n.hexlify)(e[t])}}function h(e){let t=(0,n.arrayify)(e),r=l(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"AiPnh","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],AiPnh:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="rlp/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cclNm:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="address/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2wlJw":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"pack",()=>d),i.export(r,"unpack",()=>c),i.export(r,"ArrayCoder",()=>u);"use strict";var n=e("@ethersproject/logger"),a=e("../_version"),s=e("./abstract-coder"),o=e("./anonymous");let f=new n.Logger(a.version);function d(e,t,r){let i=null;if(Array.isArray(r))i=r;else if(r&&"object"==typeof r){let e={};i=t.map(t=>{let i=t.localName;return i||f.throwError("cannot encode object for signature with missing names",n.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[i]&&f.throwError("cannot encode object for signature with duplicate names",n.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[i]=!0,r[i]})}else f.throwArgumentError("invalid tuple value","tuple",r);t.length!==i.length&&f.throwArgumentError("types/value length mismatch","tuple",r);let a=new s.Writer(e.wordSize),o=new s.Writer(e.wordSize),d=[];return t.forEach((e,t)=>{let r=i[t];if(e.dynamic){let t=o.length;e.encode(o,r);let i=a.writeUpdatableValue();d.push(e=>{i(e+t)})}else e.encode(a,r)}),d.forEach(e=>{e(a.length)}),e.appendWriter(a)+e.appendWriter(o)}function c(e,t){let r=[],i=e.subReader(0);t.forEach(t=>{let a=null;if(t.dynamic){let r=e.readValue(),s=i.subReader(r.toNumber());try{a=t.decode(s)}catch(e){if(e.code===n.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if(e.code===n.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}void 0!=a&&r.push(a)});let a=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let i=e.localName;if(!i||1!==a[i]||("length"===i&&(i="_length"),null!=r[i]))return;let n=r[t];n instanceof Error?Object.defineProperty(r,i,{enumerable:!0,get:()=>{throw n}}):r[i]=n});for(let e=0;e{throw t}})}return Object.freeze(r)}class u extends s.Coder{constructor(e,t,r){let i=e.type+"["+(t>=0?t:"")+"]",n=-1===t||e.dynamic;super("array",i,r,n),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&f.throwError("insufficient data length",n.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;ea);var n=e("./abstract-coder");"use strict";class a extends n.Coder{constructor(e){super(e.name,e.type,void 0,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":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euYzQ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BooleanCoder",()=>a);var n=e("./abstract-coder");"use strict";class a extends n.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kOE2A:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"DynamicBytesCoder",()=>s),i.export(r,"BytesCoder",()=>o);"use strict";var n=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,n.arrayify)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class o extends s{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,n.hexlify)(super.decode(e)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dNFj2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"FixedBytesCoder",()=>s);"use strict";var n=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,n.hexlify)(e.readBytes(this.size)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2639x":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NullCoder",()=>a);var n=e("./abstract-coder");"use strict";class a extends n.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHQpm:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NumberCoder",()=>o);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/constants"),s=e("./abstract-coder");class o extends s.Coder{constructor(e,t,r){let i=(t?"int":"uint")+8*e;super(i,i,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=(0,n.BigNumber).from(t),i=(0,a.MaxUint256).mask(8*e.wordSize);if(this.signed){let e=i.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(a.One).mul(a.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(a.Zero)||r.gt(i.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/constants":"cSsuf","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"44r1i":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"StringCoder",()=>s);"use strict";var n=e("@ethersproject/strings"),a=e("./bytes");class s extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,n.toUtf8Bytes)(t))}decode(e){return(0,n.toUtf8String)(super.decode(e))}}},{"@ethersproject/strings":"edSy2","./bytes":"kOE2A","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"90ORK":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"TupleCoder",()=>s);"use strict";var n=e("./abstract-coder"),a=e("./array");class s extends n.Coder{constructor(e,t){let r=!1,i=[];e.forEach(e=>{e.dynamic&&(r=!0),i.push(e.type)});let n="tuple("+i.join(",")+")";super("tuple",n,t,r),this.coders=e}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,i)=>{let n=r.localName;n&&1===t[n]&&("length"===n&&(n="_length"),null==e[n]&&(e[n]=e[i]))}),Object.freeze(e)}encode(e,t){return(0,a.pack)(e,this.coders,t)}decode(e){return e.coerce(this.name,(0,a.unpack)(e,this.coders))}}},{"./abstract-coder":"9TMyg","./array":"2wlJw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gOFir:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"checkResultErrors",()=>u.checkResultErrors),i.export(r,"LogDescription",()=>m),i.export(r,"TransactionDescription",()=>g),i.export(r,"ErrorDescription",()=>y),i.export(r,"Indexed",()=>v),i.export(r,"Interface",()=>M);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),f=e("@ethersproject/keccak256"),d=e("@ethersproject/properties"),c=e("./abi-coder"),u=e("./coders/abstract-coder"),l=e("./fragments"),h=e("@ethersproject/logger"),p=e("./_version");let b=new h.Logger(p.version);class m extends d.Description{}class g extends d.Description{}class y extends d.Description{}class v extends d.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}let w={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function _(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class M{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,d.defineReadOnly)(this,"fragments",t.map(e=>(0,l.Fragment).from(e)).filter(e=>null!=e)),(0,d.defineReadOnly)(this,"_abiCoder",(0,d.getStatic)(new.target,"getAbiCoder")()),(0,d.defineReadOnly)(this,"functions",{}),(0,d.defineReadOnly)(this,"errors",{}),(0,d.defineReadOnly)(this,"events",{}),(0,d.defineReadOnly)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy){b.warn("duplicate definition - constructor");return}(0,d.defineReadOnly)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();if(t[r]){b.warn("duplicate definition - "+r);return}t[r]=e}),this.deploy||(0,d.defineReadOnly)(this,"deploy",(0,l.ConstructorFragment).from({payable:!1,type:"constructor"})),(0,d.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=l.FormatTypes.full),e===l.FormatTypes.sighash&&b.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===l.FormatTypes.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return c.defaultAbiCoder}static getAddress(e){return(0,n.getAddress)(e)}static getSighash(e){return(0,s.hexDataSlice)((0,o.id)(e.format()),0,4)}static getEventTopic(e){return(0,o.id)(e.format())}getFunction(e){if((0,s.isHexString)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];b.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?b.throwArgumentError("no matching function","name",t):r.length>1&&b.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[(0,l.FunctionFragment).fromString(e).format()];return t||b.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,s.isHexString)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];b.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?b.throwArgumentError("no matching event","name",t):r.length>1&&b.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[(0,l.EventFragment).fromString(e).format()];return t||b.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,s.isHexString)(e)){let t=(0,d.getStatic)(this.constructor,"getSighash");for(let r in this.errors){let i=this.errors[r];if(e===t(i))return this.errors[r]}b.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?b.throwArgumentError("no matching error","name",t):r.length>1&&b.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[(0,l.FunctionFragment).fromString(e).format()];return t||b.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,d.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,d.getStatic)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&b.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&b.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t),i=null,n="",a=null,o=null,f=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,s.hexlify)(r.slice(0,4)),t=w[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,f=t.signature,t.reason&&(i=a[0]),"Error"===o?n=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===o&&(n=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,f=t.format()}catch(e){}}}return b.throwError("call revert exception"+n,h.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.hexlify)(t),errorArgs:a,errorName:o,errorSignature:f,reason:i})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&b.throwError("too many arguments for "+e.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let i=(e,t)=>"string"===e.type?(0,o.id)(t):"bytes"===e.type?(0,f.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=(0,a.BigNumber).from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,s.hexZeroPad)((0,s.hexlify)(t),32));for(t.forEach((t,n)=>{let a=e.inputs[n];if(!a.indexed){null!=t&&b.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,t);return}null==t?r.push(null):"array"===a.baseType||"tuple"===a.baseType?b.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?r.push(t.map(e=>i(a,e))):r.push(i(a,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],i=[],n=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&b.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,a)=>{let s=t[a];if(e.indexed){if("string"===e.type)r.push((0,o.id)(s));else if("bytes"===e.type)r.push((0,f.keccak256)(s));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[s]))}else i.push(e),n.push(s)}),{data:this._abiCoder.encode(i,n),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t||b.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let i=[],n=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push((0,l.ParamType).fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(n.push(e),a.push(!1))});let o=null!=r?this._abiCoder.decode(i,(0,s.concat)(r)):null,f=this._abiCoder.decode(n,t,!0),d=[],c=0,u=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==o)d[t]=new v({_isIndexed:!0,hash:null});else if(a[t])d[t]=new v({_isIndexed:!0,hash:o[u++]});else try{d[t]=o[u++]}catch(e){d[t]=e}}else try{d[t]=f[c++]}catch(e){d[t]=e}if(e.name&&null==d[e.name]){let r=d[t];r instanceof Error?Object.defineProperty(d,e.name,{enumerable:!0,get:()=>{throw _(`property ${JSON.stringify(e.name)}`,r)}}):d[e.name]=r}});for(let e=0;e{throw _(`index ${e}`,t)}})}return Object.freeze(d)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new g({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:(0,a.BigNumber).from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new m({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,s.hexlify)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new y({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","./abi-coder":"eiswb","./coders/abstract-coder":"9TMyg","./fragments":"2aRQ2","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLDfB:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"id",()=>n.id),i.export(r,"dnsEncode",()=>a.dnsEncode),i.export(r,"namehash",()=>a.namehash),i.export(r,"isValidName",()=>a.isValidName),i.export(r,"ensNormalize",()=>a.ensNormalize),i.export(r,"messagePrefix",()=>s.messagePrefix),i.export(r,"hashMessage",()=>s.hashMessage),i.export(r,"_TypedDataEncoder",()=>o.TypedDataEncoder);"use strict";var n=e("./id"),a=e("./namehash"),s=e("./message"),o=e("./typed-data")},{"./id":"h8d98","./namehash":"85tDg","./message":"dncJF","./typed-data":"keHK9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h8d98:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"id",()=>s);var n=e("@ethersproject/keccak256"),a=e("@ethersproject/strings");function s(e){return(0,n.keccak256)((0,a.toUtf8Bytes)(e))}},{"@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"85tDg":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ensNormalize",()=>p),i.export(r,"isValidName",()=>b),i.export(r,"namehash",()=>m),i.export(r,"dnsEncode",()=>g);var n=e("@ethersproject/bytes"),a=e("@ethersproject/strings"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/logger"),f=e("./_version"),d=e("./ens-normalize/lib");let c=new o.Logger(f.version),u=new Uint8Array(32);function l(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function h(e){let t=(0,a.toUtf8Bytes)((0,d.ens_normalize)(e)),r=[];if(0===e.length)return r;let i=0;for(let e=0;e=t.length)throw Error("invalid ENS name; empty component");return r.push(l(t.slice(i))),r}function p(e){return h(e).map(e=>(0,a.toUtf8String)(e)).join(".")}function b(e){try{return 0!==h(e).length}catch(e){}return!1}function m(e){"string"!=typeof e&&c.throwArgumentError("invalid ENS name; not a string","name",e);let t=u,r=h(e);for(;r.length;)t=(0,s.keccak256)((0,n.concat)([t,(0,s.keccak256)(r.pop())]));return(0,n.hexlify)(t)}function g(e){return(0,n.hexlify)((0,n.concat)(h(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}u.fill(0)},{"@ethersproject/bytes":"19SwW","@ethersproject/strings":"edSy2","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./ens-normalize/lib":"gBi5u","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kPmfv:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="hash/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gBi5u:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ens_normalize_post_check",()=>p),i.export(r,"ens_normalize",()=>b);var n=e("@ethersproject/strings"),a=e("./include.js"),s=e("./decoder.js");let o=(0,a.getData)(),f=new Set((0,s.read_member_array)(o)),d=new Set((0,s.read_member_array)(o)),c=(0,s.read_mapped_map)(o),u=(0,s.read_emoji_trie)(o);function l(e){return(0,n.toUtf8CodePoints)(e)}function h(e){return e.filter(e=>65039!=e)}function p(e){for(let t of e.split(".")){let e=l(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}function b(e){return p(function(e,t){let r=l(e).reverse(),i=[];for(;r.length;){let e=function(e,t){var r;let i,n;let a=u,s=[],o=e.length;for(t&&(t.length=0);o;){let f=e[--o];if(!(a=null===(r=a.branches.find(e=>e.set.has(f)))||void 0===r?void 0:r.node))break;if(a.save)n=f;else if(a.check&&f===n)break;s.push(f),a.fe0f&&(s.push(65039),o>0&&65039==e[o-1]&&o--),a.valid&&(i=s.slice(),2==a.valid&&i.splice(1,1),t&&t.push(...e.slice(o).reverse()),e.length=o)}return i}(r);if(e){i.push(...t(e));continue}let n=r.pop();if(f.has(n)){i.push(n);continue}if(d.has(n))continue;let a=c[n];if(a){i.push(...a);continue}throw Error(`Disallowed codepoint: 0x${n.toString(16).toUpperCase()}`)}return p(String.fromCodePoint(...i).normalize("NFC"))}(e,h))}},{"@ethersproject/strings":"edSy2","./include.js":"1Wgfv","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1Wgfv":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getData",()=>s);var n=e("@ethersproject/base64"),a=e("./decoder.js");function s(){return(0,a.read_compressed_payload)((0,n.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}},{"@ethersproject/base64":"dIiCi","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dIiCi:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"decode",()=>n.decode),i.export(r,"encode",()=>n.encode);var n=e("./base64");"use strict"},{"./base64":"14I0X","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"14I0X":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"decode",()=>a),i.export(r,"encode",()=>s);var n=e("@ethersproject/bytes");"use strict";function a(e){e=atob(e);let t=[];for(let r=0;r0&&Array.isArray(e)?n(e,t-1):r.push(e)})};return n(e,t),r}function a(e){let t=0;function r(){return e[t++]<<8|e[t++]}let i=r(),n=1,a=[0,1];for(let e=1;e>--f&1}let u=0;for(let e=0;e<31;e++)u=u<<1|c();let l=[],h=0,p=2147483648;for(;;){let e=Math.floor(((u-h+1)*n-1)/p),t=0,r=i;for(;r-t>1;){let i=t+r>>>1;e{switch(t-b){case 3:return b+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return b+256+(e[o++]<<8|e[o++]);case 1:return b+e[o++];default:return t-1}})}function s(e){let t=0;return()=>e[t++]}function o(e){return s(a(e))}function f(e){return 1&e?~e>>1:e>>1}function d(e,t){let r=Array(e);for(let i=0,n=-1;it[e]):r}function u(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),i=t(),a=l(t);return n(h(a.length,1+e,t).map((e,t)=>{let n=e[0],s=e.slice(1);return Array(a[t]).fill(void 0).map((e,t)=>{let a=t*i;return[n+t*r,s.map(e=>e+a)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(h(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r[]);for(let n=0;ni[t].push(e));return i}function p(e){let t=c(e).sort((e,t)=>e-t);return function r(){let i=[];for(;;){let n=c(e,t);if(0==n.length)break;i.push({set:new Set(n),node:r()})}i.sort((e,t)=>t.set.size-e.set.size);let n=e();return{branches:i,valid:n%3,fe0f:!!(1&(n=n/3|0)),save:1==(n>>=1),check:2==n}}()}i.defineInteropFlag(r),i.export(r,"decode_arithmetic",()=>a),i.export(r,"read_payload",()=>s),i.export(r,"read_compressed_payload",()=>o),i.export(r,"signed",()=>f),i.export(r,"read_member_array",()=>c),i.export(r,"read_mapped_map",()=>u),i.export(r,"read_zero_terminated_array",()=>l),i.export(r,"read_emoji_trie",()=>p)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dncJF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"messagePrefix",()=>o),i.export(r,"hashMessage",()=>f);var n=e("@ethersproject/bytes"),a=e("@ethersproject/keccak256"),s=e("@ethersproject/strings");let o="\x19Ethereum Signed Message:\n";function f(e){return"string"==typeof e&&(e=(0,s.toUtf8Bytes)(e)),(0,a.keccak256)((0,n.concat)([(0,s.toUtf8Bytes)(o),(0,s.toUtf8Bytes)(String(e.length)),e]))}},{"@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],keHK9:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"TypedDataEncoder",()=>x);var n=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/keccak256"),f=e("@ethersproject/properties"),d=e("@ethersproject/logger"),c=e("./_version"),u=e("./id");let l=new d.Logger(c.version),h=new Uint8Array(32);h.fill(0);let p=(0,a.BigNumber).from(-1),b=(0,a.BigNumber).from(0),m=(0,a.BigNumber).from(1),g=(0,a.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),y=(0,s.hexZeroPad)(m.toHexString(),32),v=(0,s.hexZeroPad)(b.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function M(e){return function(t){return"string"!=typeof t&&l.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let E={name:M("name"),version:M("version"),chainId:function(e){try{return(0,a.BigNumber).from(e).toString()}catch(e){}return l.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,n.getAddress)(e).toLowerCase()}catch(e){}return l.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,s.arrayify)(e);if(32!==t.length)throw Error("bad length");return(0,s.hexlify)(t)}catch(e){}return l.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function A(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],i=parseInt(t[2]||"256");(i%8!=0||i>256||t[2]&&t[2]!==String(i))&&l.throwArgumentError("invalid numeric width","type",e);let n=g.mask(r?i-1:i),o=r?n.add(m).mul(p):b;return function(t){let r=(0,a.BigNumber).from(t);return(r.lt(o)||r.gt(n))&&l.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,s.hexZeroPad)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&l.throwArgumentError("invalid bytes width","type",e),function(t){let i=(0,s.arrayify)(t);return i.length!==r&&l.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){let t=(0,s.arrayify)(e),r=t.length%32;return r?(0,s.hexConcat)([t,h.slice(r)]):(0,s.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,s.hexZeroPad)((0,n.getAddress)(e),32)};case"bool":return function(e){return e?y:v};case"bytes":return function(e){return(0,o.keccak256)(e)};case"string":return function(e){return(0,u.id)(e)}}return null}function S(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class x{constructor(e){(0,f.defineReadOnly)(this,"types",Object.freeze((0,f.deepCopy)(e))),(0,f.defineReadOnly)(this,"_encoderCache",{}),(0,f.defineReadOnly)(this,"_types",{});let t={},r={},i={};for(let n in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],i[e]={}}),e){let i={};e[n].forEach(a=>{i[a.name]&&l.throwArgumentError(`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(n)}`,"types",e),i[a.name]=!0;let s=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===n&&l.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);let o=A(s);o||(r[s]||l.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(n),t[n][s]=!0)})}let n=Object.keys(r).filter(e=>0===r[e].length);for(let a in 0===n.length?l.throwArgumentError("missing primary type","types",e):n.length>1&&l.throwArgumentError(`ambiguous primary types or unused types: ${n.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,f.defineReadOnly)(this,"primaryType",n[0]),!function n(a,s){s[a]&&l.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),s[a]=!0,Object.keys(t[a]).forEach(e=>{r[e]&&(n(e,s),Object.keys(s).forEach(t=>{i[t][e]=!0}))}),delete s[a]}(this.primaryType,{}),i){let t=Object.keys(i[a]);t.sort(),this._types[a]=S(a,e[a])+t.map(t=>S(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=A(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),i=parseInt(t[3]);return t=>{i>=0&&t.length!==i&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let n=t.map(r);return this._types[e]&&(n=n.map(o.keccak256)),(0,o.keccak256)((0,s.hexConcat)(n))}}let r=this.types[e];if(r){let t=(0,u.id)(this._types[e]);return e=>{let i=r.map(({name:t,type:r})=>{let i=this.getEncoder(r)(e[t]);return this._types[r]?(0,o.keccak256)(i):i});return i.unshift(t),(0,s.hexConcat)(i)}}return l.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||l.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,o.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){{let i=A(e);if(i)return r(e,t)}let i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){let e=i[1],n=parseInt(i[3]);return n>=0&&t.length!==n&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let n=this.types[e];return n?n.reduce((e,{name:i,type:n})=>(e[i]=this._visit(n,t[i],r),e),{}):l.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new x(e)}static getPrimaryType(e){return x.from(e).primaryType}static hashStruct(e,t,r){return x.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let i=w[r];i||l.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:i})}return t.sort((e,t)=>_.indexOf(e.name)-_.indexOf(t.name)),x.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,s.hexConcat)(["0x1901",x.hashDomain(e),x.from(t).hash(r)])}static hash(e,t,r){return(0,o.keccak256)(x.encode(e,t,r))}static resolveNames(e,t,r,i){var n,a,o,d;return n=this,a=void 0,o=void 0,d=function*(){e=(0,f.shallowCopy)(e);let n={};e.verifyingContract&&!(0,s.isHexString)(e.verifyingContract,20)&&(n[e.verifyingContract]="0x");let a=x.from(t);for(let e in a.visit(r,(e,t)=>("address"!==e||(0,s.isHexString)(t,20)||(n[t]="0x"),t)),n)n[e]=yield i(e);return e.verifyingContract&&n[e.verifyingContract]&&(e.verifyingContract=n[e.verifyingContract]),{domain:e,value:r=a.visit(r,(e,t)=>"address"===e&&n[t]?n[t]:t)}},new(o||(o=Promise))(function(e,t){function r(e){try{s(d.next(e))}catch(e){t(e)}}function i(e){try{s(d.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(r,i)}s((d=d.apply(n,a||[])).next())})}static getPayload(e,t,r){x.hashDomain(e);let i={},n=[];_.forEach(t=>{let r=e[t];null!=r&&(i[t]=E[t](r),n.push({name:t,type:w[t]}))});let o=x.from(t),d=(0,f.shallowCopy)(t);return d.EIP712Domain?l.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):d.EIP712Domain=n,o.encode(r),{types:d,domain:i,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.arrayify)(t));if(e.match(/^u?int/))return(0,a.BigNumber).from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&l.throwArgumentError("invalid string","value",t),t}return l.throwArgumentError("unsupported type","type",e)})}}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./id":"h8d98","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],imf57:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ForkEvent",()=>c),i.export(r,"BlockForkEvent",()=>u),i.export(r,"TransactionForkEvent",()=>l),i.export(r,"TransactionOrderForkEvent",()=>h),i.export(r,"Provider",()=>p);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),f=e("./_version");let d=new o.Logger(f.version);class c extends s.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class u extends c{constructor(e,t){(0,a.isHexString)(e,32)||d.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:t||0,blockHash:e})}}class l extends c{constructor(e,t){(0,a.isHexString)(e,32)||d.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:t||0,hash:e})}}class h extends c{constructor(e,t,r){(0,a.isHexString)(e,32)||d.throwArgumentError("invalid transaction hash","beforeHash",e),(0,a.isHexString)(t,32)||d.throwArgumentError("invalid transaction hash","afterHash",t),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:r||0,beforeHash:e,afterHash:t})}}class p{constructor(){d.checkAbstract(new.target,p),(0,s.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){var e,t,r,i;return e=this,t=void 0,r=void 0,i=function*(){let{block:e,gasPrice:t}=yield(0,s.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,i=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=(0,n.BigNumber).from("1500000000"),i=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:i,maxPriorityFeePerGas:a,gasPrice:t}},new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"4ztCP","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4ztCP":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="abstract-provider/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],j6EbC:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Signer",()=>u),i.export(r,"VoidSigner",()=>l);"use strict";var n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let f=new a.Logger(s.version),d=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],c=[a.Logger.errors.INSUFFICIENT_FUNDS,a.Logger.errors.NONCE_EXPIRED,a.Logger.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){f.checkAbstract(new.target,u),(0,n.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return o(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,n.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return o(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,n.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return o(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return o(this,void 0,void 0,function*(){this._checkProvider("getChainId");let e=yield this.provider.getNetwork();return e.chainId})}getGasPrice(){return o(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return o(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return o(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===d.indexOf(t)&&f.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,n.shallowCopy)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&f.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return o(this,void 0,void 0,function*(){let t=yield(0,n.resolveProperties)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>o(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&f.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?f.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&f.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&f.throwError("network does not support EIP-1559",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):f.throwError("failed to get consistent fee data",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(c.indexOf(e.code)>=0)throw e;return f.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",a.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&f.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,n.resolveProperties)(t)})}_checkProvider(e){this.provider||f.throwError("missing provider",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class l extends u{constructor(e,t){super(),(0,n.defineReadOnly)(this,"address",e),(0,n.defineReadOnly)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{f.throwError(e,a.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new l(this.address,e)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"9OQFK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9OQFK":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="abstract-signer/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ctBdV:[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"TransactionTypes",()=>n),a.export(r,"computeAddress",()=>_),a.export(r,"recoverAddress",()=>M),a.export(r,"accessListify",()=>S),a.export(r,"serialize",()=>k),a.export(r,"parse",()=>C);"use strict";var s=e("@ethersproject/address"),o=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),d=e("@ethersproject/constants"),c=e("@ethersproject/keccak256"),u=e("@ethersproject/properties"),l=e("@ethersproject/rlp"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/logger"),b=e("./_version");let m=new p.Logger(b.version);function g(e){return"0x"===e?null:(0,s.getAddress)(e)}function y(e){return"0x"===e?d.Zero:(0,o.BigNumber).from(e)}(i=n||(n={}))[i.legacy=0]="legacy",i[i.eip2930=1]="eip2930",i[i.eip1559=2]="eip1559";let v=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function _(e){let t=(0,h.computePublicKey)(e);return(0,s.getAddress)((0,f.hexDataSlice)((0,c.keccak256)((0,f.hexDataSlice)(t,1)),12))}function M(e,t){return _((0,h.recoverPublicKey)((0,f.arrayify)(e),t))}function E(e,t){let r=(0,f.stripZeros)((0,o.BigNumber).from(e).toHexString());return r.length>32&&m.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function A(e,t){return{address:(0,s.getAddress)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,f.hexDataLength)(t)&&m.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function S(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&m.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),A(e[0],e[1])):A(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return A(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function x(e){return S(e).map(e=>[e.address,e.storageKeys])}function I(e,t){if(null!=e.gasPrice){let t=(0,o.BigNumber).from(e.gasPrice),r=(0,o.BigNumber).from(e.maxFeePerGas||0);t.eq(r)||m.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[E(e.chainId||0,"chainId"),E(e.nonce||0,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",E(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,f.splitSignature)(t);r.push(E(e.recoveryParam,"recoveryParam")),r.push((0,f.stripZeros)(e.r)),r.push((0,f.stripZeros)(e.s))}return(0,f.hexConcat)(["0x02",l.encode(r)])}function R(e,t){let r=[E(e.chainId||0,"chainId"),E(e.nonce||0,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",E(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,f.splitSignature)(t);r.push(E(e.recoveryParam,"recoveryParam")),r.push((0,f.stripZeros)(e.r)),r.push((0,f.stripZeros)(e.s))}return(0,f.hexConcat)(["0x01",l.encode(r)])}function k(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&m.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.checkProperties)(e,w);let r=[];v.forEach(function(t){let i=e[t.name]||[],n={};t.numeric&&(n.hexPad="left"),i=(0,f.arrayify)((0,f.hexlify)(i,n)),t.length&&i.length!==t.length&&i.length>0&&m.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,i),t.maxLength&&(i=(0,f.stripZeros)(i)).length>t.maxLength&&m.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,i),r.push((0,f.hexlify)(i))});let i=0;if(null!=e.chainId?"number"!=typeof(i=e.chainId)&&m.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,f.isBytesLike)(t)&&t.v>28&&(i=Math.floor((t.v-35)/2)),0!==i&&(r.push((0,f.hexlify)(i)),r.push("0x"),r.push("0x")),!t)return l.encode(r);let n=(0,f.splitSignature)(t),a=27+n.recoveryParam;return 0!==i?(r.pop(),r.pop(),r.pop(),a+=2*i+8,n.v>28&&n.v!==a&&m.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):n.v!==a&&m.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,f.hexlify)(a)),r.push((0,f.stripZeros)((0,f.arrayify)(n.r))),r.push((0,f.stripZeros)((0,f.arrayify)(n.s))),l.encode(r)}(e,t);switch(e.type){case 1:return R(e,t);case 2:return I(e,t)}return m.throwError(`unsupported transaction type: ${e.type}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function T(e,t,r){try{let r=y(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){m.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,f.hexZeroPad)(t[1],32),e.s=(0,f.hexZeroPad)(t[2],32);try{let t=(0,c.keccak256)(r(e));e.from=M(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){let t=(0,f.arrayify)(e);if(t[0]>127)return function(e){let t=l.decode(e);9!==t.length&&6!==t.length&&m.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:y(t[0]).toNumber(),gasPrice:y(t[1]),gasLimit:y(t[2]),to:g(t[3]),value:y(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=(0,o.BigNumber).from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,f.hexZeroPad)(t[7],32),r.s=(0,f.hexZeroPad)(t[8],32),(0,o.BigNumber).from(r.r).isZero()&&(0,o.BigNumber).from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27,n=t.slice(0,6);0!==r.chainId&&(n.push((0,f.hexlify)(r.chainId)),n.push("0x"),n.push("0x"),i-=2*r.chainId+8);let a=(0,c.keccak256)(l.encode(n));try{r.from=M(a,{r:(0,f.hexlify)(r.r),s:(0,f.hexlify)(r.s),recoveryParam:i})}catch(e){}r.hash=(0,c.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=l.decode(e.slice(1));8!==t.length&&11!==t.length&&m.throwArgumentError("invalid component count for transaction type: 1","payload",(0,f.hexlify)(e));let r={type:1,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),gasPrice:y(t[2]),gasLimit:y(t[3]),to:g(t[4]),value:y(t[5]),data:t[6],accessList:S(t[7])};return 8===t.length||(r.hash=(0,c.keccak256)(e),T(r,t.slice(8),R)),r}(t);case 2:return function(e){let t=l.decode(e.slice(1));9!==t.length&&12!==t.length&&m.throwArgumentError("invalid component count for transaction type: 2","payload",(0,f.hexlify)(e));let r=y(t[2]),i=y(t[3]),n={type:2,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:i,gasPrice:null,gasLimit:y(t[4]),to:g(t[5]),value:y(t[6]),data:t[7],accessList:S(t[8])};return 9===t.length||(n.hash=(0,c.keccak256)(e),T(n,t.slice(9),I)),n}(t)}return m.throwError(`unsupported transaction type: ${t[0]}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/logger":"6NWvR","./_version":"iFVyl","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a8JOx:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"SigningKey",()=>l),i.export(r,"recoverPublicKey",()=>h),i.export(r,"computePublicKey",()=>p);"use strict";var n=e("./elliptic"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),f=e("./_version");let d=new o.Logger(f.version),c=null;function u(){return c||(c=new n.EC("secp256k1")),c}class l{constructor(e){(0,s.defineReadOnly)(this,"curve","secp256k1"),(0,s.defineReadOnly)(this,"privateKey",(0,a.hexlify)(e)),32!==(0,a.hexDataLength)(this.privateKey)&&d.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=u().keyFromPrivate((0,a.arrayify)(this.privateKey));(0,s.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,s.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,s.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){let t=u().keyFromPublic((0,a.arrayify)(this.publicKey)),r=u().keyFromPublic((0,a.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let t=u().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=(0,a.arrayify)(e);32!==r.length&&d.throwArgumentError("bad digest length","digest",e);let i=t.sign(r,{canonical:!0});return(0,a.splitSignature)({recoveryParam:i.recoveryParam,r:(0,a.hexZeroPad)("0x"+i.r.toString(16),32),s:(0,a.hexZeroPad)("0x"+i.s.toString(16),32)})}computeSharedSecret(e){let t=u().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=u().keyFromPublic((0,a.arrayify)(p(e)));return(0,a.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function h(e,t){let r=(0,a.splitSignature)(t),i={r:(0,a.arrayify)(r.r),s:(0,a.arrayify)(r.s)};return"0x"+u().recoverPubKey((0,a.arrayify)(e),i,r.recoveryParam).encode("hex",!1)}function p(e,t){let r=(0,a.arrayify)(e);if(32===r.length){let e=new l(r);return t?"0x"+u().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,a.hexlify)(r):"0x"+u().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+u().keyFromPublic(r).getPublic(!0,"hex"):(0,a.hexlify)(r):d.throwArgumentError("invalid public or private key","key","[REDACTED]")}},{"./elliptic":"aoN5l","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"eg49z","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aoN5l:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"EC",()=>D);var n=e("bn.js"),a=i.interopDefault(n),s=e("hash.js"),o=i.interopDefault(s),f=arguments[3];function d(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?r.path:t)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==f||"undefined"!=typeof self&&self;var c=u;function u(e,t){if(!e)throw Error(t||"Assertion failed")}"use strict";u.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var l=d(function(e,t){"use strict";function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",i=0;i>8,s=255&n;a?r.push(a,s):r.push(s)}return r},t.zero2=r,t.toHex=i,t.encode=function(e,t){return"hex"===t?i(e):e}}),h=d(function(e,t){"use strict";t.assert=c,t.toArray=l.toArray,t.zero2=l.zero2,t.toHex=l.toHex,t.encode=l.encode,t.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new a.default(e,"hex","le")}}),p=h.getNAF,b=h.getJSF,m=h.assert;function g(e,t){this.type=e,this.p=new a.default(t.p,16),this.red=t.prime?(0,a.default).red(t.prime):(0,a.default).mont(this.p),this.zero=new(0,a.default)(0).toRed(this.red),this.one=new(0,a.default)(1).toRed(this.red),this.two=new(0,a.default)(2).toRed(this.red),this.n=t.n&&new a.default(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function y(e,t){this.curve=e,this.type=t,this.precomputed=null}"use strict";g.prototype.point=function(){throw Error("Not implemented")},g.prototype.validate=function(){throw Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){m(e.precomputed);var r,i,n=e._getDoubles(),a=p(t,1,this._bitLength),s=(1<=r;f--)i=(i<<1)+a[f];o.push(i)}for(var d=this.jpoint(null,null,null),c=this.jpoint(null,null,null),u=s;u>0;u--){for(r=0;r=0;o--){for(var f=0;o>=0&&0===a[o];o--)f++;if(o>=0&&f++,s=s.dblp(f),o<0)break;var d=a[o];m(0!==d),s="affine"===e.type?d>0?s.mixedAdd(n[d-1>>1]):s.mixedAdd(n[-d-1>>1].neg()):d>0?s.add(n[d-1>>1]):s.add(n[-d-1>>1].neg())}return"affine"===e.type?s.toP():s},g.prototype._wnafMulAdd=function(e,t,r,i,n){var a,s,o,f=this._wnafT1,d=this._wnafT2,c=this._wnafT3,u=0;for(a=0;a=1;a-=2){var h=a-1,m=a;if(1!==f[h]||1!==f[m]){c[h]=p(r[h],f[h],this._bitLength),c[m]=p(r[m],f[m],this._bitLength),u=Math.max(c[h].length,u),u=Math.max(c[m].length,u);continue}var g=[t[h],null,null,t[m]];0===t[h].y.cmp(t[m].y)?(g[1]=t[h].add(t[m]),g[2]=t[h].toJ().mixedAdd(t[m].neg())):0===t[h].y.cmp(t[m].y.redNeg())?(g[1]=t[h].toJ().mixedAdd(t[m]),g[2]=t[h].add(t[m].neg())):(g[1]=t[h].toJ().mixedAdd(t[m]),g[2]=t[h].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=b(r[h],r[m]);for(s=0,u=Math.max(v[0].length,u),c[h]=Array(u),c[m]=Array(u);s=0;a--){for(var A=0;a>=0;){var S=!0;for(s=0;s=0&&A++,M=M.dblp(A),a<0)break;for(s=0;s0?o=d[s][x-1>>1]:x<0&&(o=d[s][-x-1>>1].neg()),M="affine"===o.type?M.mixedAdd(o):M.add(o))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;nn[0].cmp(n[1])?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new a.default(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],w(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return i=e.basis?e.basis.map(function(e){return{a:new a.default(e.a,16),b:new a.default(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},_.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:(0,a.default).mont(e),r=new(0,a.default)(2).toRed(t).redInvm(),i=r.redNeg(),n=new(0,a.default)(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},_.prototype._getEndoBasis=function(e){for(var t,r,i,n,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new a.default(1),b=new a.default(0),m=new a.default(0),g=new a.default(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),n=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(n.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),n=n.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:n},{a:s,b:o}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},_.prototype.pointFromX=function(e,t){(e=new a.default(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},_.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},M.prototype.isInfinity=function(){return this.inf},M.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},M.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(e){return(e=new a.default(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)},M.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},M.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},M.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))},M.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(E,g.BasePoint),_.prototype.jpoint=function(e,t,r){return new E(this,e,t,r)},E.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},E.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},E.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(n),0===this.x.cmp(r))return!0}},E.prototype.inspect=function(){return this.isInfinity()?"":""},E.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var A=d(function(e,t){"use strict";t.base=g,t.short=_,t.mont=null,t.edwards=null}),S=d(function(e,t){"use strict";var r,i=h.assert;function n(e){"short"===e.type?this.curve=new A.short(e):"edwards"===e.type?this.curve=new A.edwards(e):this.curve=new A.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var i=new n(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:i}),i}})}t.PresetCurve=n,a("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:o.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:o.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:o.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:o.default.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"]}),a("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:o.default.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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.default.sha256,gRed:!1,g:["9"]}),a("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:o.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}a("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:o.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function x(e){if(!(this instanceof x))return new x(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=l.toArray(e.entropy,e.entropyEnc||"hex"),r=l.toArray(e.nonce,e.nonceEnc||"hex"),i=l.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}"use strict";x.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},x.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=l.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length"};var k=h.assert;function T(e,t){if(e instanceof T)return e;this._importDER(e,t)||(k(e.r&&e.s,"Signature without r or s"),this.r=new a.default(e.r,16),this.s=new a.default(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function C(){this.place=0}function P(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function O(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)}"use strict";T.prototype._importDER=function(e,t){e=h.toArray(e,t);var r=new C;if(48!==e[r.place++])return!1;var i=P(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var n=P(e,r);if(!1===n)return!1;var s=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=P(e,r);if(!1===o||e.length!==o+r.place)return!1;var f=e.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new a.default(s),this.s=new a.default(f),this.recoveryParam=null,!0},T.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=O(t),r=O(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];N(i,t.length),(i=i.concat(t)).push(2),N(i,r.length);var n=i.concat(r),a=[48];return N(a,n.length),a=a.concat(n),h.encode(a,e)};var j=function(){throw Error("unsupported")},B=h.assert;function L(e){if(!(this instanceof L))return new L(e);"string"==typeof e&&(B(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}L.prototype.keyPair=function(e){return new R(this,e)},L.prototype.keyFromPrivate=function(e,t){return R.fromPrivate(this,e,t)},L.prototype.keyFromPublic=function(e,t){return R.fromPublic(this,e,t)},L.prototype.genKeyPair=function(e){e||(e={});for(var t=new x({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||j(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new a.default(2));;){var n=new a.default(t.generate(r));if(!(n.cmp(i)>0))return n.iaddn(1),this.keyFromPrivate(n)}},L.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},L.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new a.default(e,16));for(var n=this.n.byteLength(),s=t.getPrivate().toArray("be",n),o=e.toArray("be",n),f=new x({hash:this.hash,entropy:s,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new a.default(1)),c=0;;c++){var u=i.k?i.k(c):new a.default(f.generate(this.n.byteLength()));if(!(0>=(u=this._truncateToN(u,!0)).cmpn(1)||u.cmp(d)>=0)){var l=this.g.mul(u);if(!l.isInfinity()){var h=l.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var b=u.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var m=(l.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return i.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),m^=1),new T({r:p,s:b,recoveryParam:m})}}}}}},L.prototype.verify=function(e,t,r,i){e=this._truncateToN(new a.default(e,16)),r=this.keyFromPublic(r,i);var n,s=(t=new T(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),c=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(n=this.g.jmulAdd(d,r.getPublic(),c)).isInfinity()&&n.eqXToP(s):!(n=this.g.mulAdd(d,r.getPublic(),c)).isInfinity()&&0===n.getX().umod(this.n).cmp(s)},L.prototype.recoverPubKey=function(e,t,r,i){B((3&r)===r,"The recovery param is more than two bits"),t=new T(t,i);var n=this.n,s=new a.default(e),o=t.r,f=t.s,d=1&r,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw Error("Unable to find sencond key candinate");o=c?this.curve.pointFromX(o.add(this.curve.n),d):this.curve.pointFromX(o,d);var u=t.r.invm(n),l=n.sub(s).mul(u).umod(n),h=f.mul(u).umod(n);return this.g.mulAdd(l,o,h)},L.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new T(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")};var D=d(function(e,t){"use strict";t.version="6.5.4",t.utils=h,t.rand=function(){throw Error("unsupported")},t.curve=A,t.curves=S,t.ec=L,t.eddsa=null}).ec},{"bn.js":"lXPno","hash.js":"2Tlxk","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2Tlxk":[function(e,t,r){r.utils=e("38593959f18bd562"),r.common=e("31a457752237e8ad"),r.sha=e("3e37816d2a2fd68d"),r.ripemd=e("ce5a13b5bd10f171"),r.hmac=e("c32fbac97a361580"),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},{"38593959f18bd562":"aKzpJ","31a457752237e8ad":"gjeCy","3e37816d2a2fd68d":"gVBgh",ce5a13b5bd10f171:"1GX8J",c32fbac97a361580:"3Q7qa"}],aKzpJ:[function(e,t,r){"use strict";var i=e("6002b0feade022a4"),n=e("d4826c9d0ff1b1f");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(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=n,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),n=0;n>6|192:((a=e,s=n,(64512&a.charCodeAt(s))!=55296||s<0||s+1>=a.length?1:(64512&a.charCodeAt(s+1))!=56320)?r[i++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++n)),r[i++]=o>>18|240,r[i++]=o>>12&63|128),r[i++]=o>>6&63|128),r[i++]=63&o|128)}}else for(n=0;n>>0;return o},r.split32=function(e,t){for(var r=Array(4*e.length),i=0,n=0;i>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}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,i){return e+t+r+i>>>0},r.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},r.sum64=function(e,t,r,i){var n=e[t],a=i+e[t+1]>>>0;e[t]=(a>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},r.sum64_lo=function(e,t,r,i){return t+i>>>0},r.sum64_4_hi=function(e,t,r,i,n,a,s,o){var f,d=t;return e+r+n+s+(0+((d=d+i>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,i,n,a,s,o){return t+i+a+o>>>0},r.sum64_5_hi=function(e,t,r,i,n,a,s,o,f,d){var c,u=t;return e+r+n+s+f+(0+((u=u+i>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,i,n,a,s,o,f,d){return t+i+a+o+d>>>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}},{"6002b0feade022a4":"h59lk",d4826c9d0ff1b1f:"cJ2FP"}],h59lk:[function(e,t,r){function i(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=i,i.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},{}],cJ2FP:[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}}},{}],gjeCy:[function(e,t,r){"use strict";var i=e("e9291abdfb47ee4f"),n=e("ea8841b701712638");function a(){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=a,a.prototype.update=function(e,t){if(e=i.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=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(a=8,i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0;a>>3},r.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},{f0fb61f828bacd0f:"aKzpJ"}],d8IVH:[function(e,t,r){"use strict";var i=e("fe5acd040463c159"),n=e("fa3503eda3738d05");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(a,n),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},{fe5acd040463c159:"aKzpJ",fa3503eda3738d05:"27b3b"}],"27b3b":[function(e,t,r){"use strict";var i=e("32ad3e510bd41f2a"),n=e("469ad88ad505772a"),a=e("fffa7d1ddf1f0b43"),s=e("126369f57b5225ed"),o=i.sum32,f=i.sum32_4,d=i.sum32_5,c=a.ch32,u=a.maj32,l=a.s0_256,h=a.s1_256,p=a.g0_256,b=a.g1_256,m=n.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=Array(64)}i.inherits(y,m),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,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;tn);let n="signing-key/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iFVyl:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="transactions/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],liyH3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="contracts/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euBMB:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Wallet",()=>w),i.export(r,"verifyMessage",()=>_),i.export(r,"verifyTypedData",()=>M);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/bytes"),f=e("@ethersproject/hash"),d=e("@ethersproject/hdnode"),c=e("@ethersproject/keccak256"),u=e("@ethersproject/properties"),l=e("@ethersproject/random"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/json-wallets"),b=e("@ethersproject/transactions"),m=e("@ethersproject/logger"),g=e("./_version"),y=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let v=new m.Logger(g.version);class w extends s.Signer{constructor(e,t){var r;if(super(),null!=(r=e)&&(0,o.isHexString)(r.privateKey,32)&&null!=r.address){let t=new h.SigningKey(e.privateKey);if((0,u.defineReadOnly)(this,"_signingKey",()=>t),(0,u.defineReadOnly)(this,"address",(0,b.computeAddress)(this.publicKey)),this.address!==(0,n.getAddress)(e.address)&&v.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){let t=e.mnemonic;return t&&t.phrase}(e)){let t=e.mnemonic;(0,u.defineReadOnly)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||d.defaultPath,locale:t.locale||"en"}));let r=this.mnemonic,i=(0,d.HDNode).fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,b.computeAddress)(i.privateKey)!==this.address&&v.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,u.defineReadOnly)(this,"_mnemonic",()=>null)}else{if((0,h.SigningKey).isSigningKey(e))"secp256k1"!==e.curve&&v.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,u.defineReadOnly)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);let t=new h.SigningKey(e);(0,u.defineReadOnly)(this,"_signingKey",()=>t)}(0,u.defineReadOnly)(this,"_mnemonic",()=>null),(0,u.defineReadOnly)(this,"address",(0,b.computeAddress)(this.publicKey))}t&&!(0,a.Provider).isProvider(t)&&v.throwArgumentError("invalid provider","provider",t),(0,u.defineReadOnly)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new w(this,e)}signTransaction(e){return(0,u.resolveProperties)(e).then(t=>{null!=t.from&&((0,n.getAddress)(t.from)!==this.address&&v.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);let r=this._signingKey().signDigest((0,c.keccak256)((0,b.serialize)(t)));return(0,b.serialize)(t,r)})}signMessage(e){return y(this,void 0,void 0,function*(){return(0,o.joinSignature)(this._signingKey().signDigest((0,f.hashMessage)(e)))})}_signTypedData(e,t,r){return y(this,void 0,void 0,function*(){let i=yield(0,f._TypedDataEncoder).resolveNames(e,t,r,e=>(null==this.provider&&v.throwError("cannot resolve ENS names without a provider",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return(0,o.joinSignature)(this._signingKey().signDigest((0,f._TypedDataEncoder).hash(i.domain,t,i.value)))})}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw Error("invalid callback");return t||(t={}),(0,p.encryptKeystore)(this,e,t,r)}static createRandom(e){let t=(0,l.randomBytes)(16);e||(e={}),e.extraEntropy&&(t=(0,o.arrayify)((0,o.hexDataSlice)((0,c.keccak256)((0,o.concat)([t,e.extraEntropy])),0,16)));let r=(0,d.entropyToMnemonic)(t,e.locale);return w.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return(0,p.decryptJsonWallet)(e,t,r).then(e=>new w(e))}static fromEncryptedJsonSync(e,t){return new w((0,p.decryptJsonWalletSync)(e,t))}static fromMnemonic(e,t,r){return t||(t=d.defaultPath),new w((0,d.HDNode).fromMnemonic(e,null,r).derivePath(t))}}function _(e,t){return(0,b.recoverAddress)((0,f.hashMessage)(e),t)}function M(e,t,r,i){return(0,b.recoverAddress)((0,f._TypedDataEncoder).hash(e,t,r),i)}},{"@ethersproject/address":"7BZuS","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/signing-key":"a8JOx","@ethersproject/json-wallets":"7BEU7","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"2nczW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2zCqF":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"defaultPath",()=>A),i.export(r,"HDNode",()=>S),i.export(r,"mnemonicToSeed",()=>x),i.export(r,"mnemonicToEntropy",()=>I),i.export(r,"entropyToMnemonic",()=>R),i.export(r,"isValidMnemonic",()=>k),i.export(r,"getAccountPath",()=>T);"use strict";var n=e("@ethersproject/basex"),a=e("@ethersproject/bytes"),s=e("@ethersproject/bignumber"),o=e("@ethersproject/strings"),f=e("@ethersproject/pbkdf2"),d=e("@ethersproject/properties"),c=e("@ethersproject/signing-key"),u=e("@ethersproject/sha2"),l=e("@ethersproject/transactions"),h=e("@ethersproject/wordlists"),p=e("@ethersproject/logger"),b=e("./_version");let m=new p.Logger(b.version),g=(0,s.BigNumber).from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),y=(0,o.toUtf8Bytes)("Bitcoin seed");function v(e){return(1<=256)throw Error("Depth too large!");return _((0,a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,a.hexlify)(this.depth),this.parentFingerprint,(0,a.hexZeroPad)((0,a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,a.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new S(E,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));let r=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,a.arrayify)(this.privateKey),1),t&&(t+="'")}else r.set((0,a.arrayify)(this.publicKey));for(let t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;let i=(0,a.arrayify)((0,u.computeHmac)(u.SupportedAlgorithm.sha512,this.chainCode,r)),n=i.slice(0,32),o=i.slice(32),f=null,d=null;if(this.privateKey)f=w((0,s.BigNumber).from(n).add(this.privateKey).mod(g));else{let e=new c.SigningKey((0,a.hexlify)(n));d=e._addPoint(this.publicKey)}let l=t,h=this.mnemonic;return h&&(l=Object.freeze({phrase:h.phrase,path:t,locale:h.locale||"en"})),new S(E,f,d,this.fingerprint,w(o),e,this.depth+1,l)}derivePath(e){let t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let e=0;e=2147483648)throw Error("invalid path index - "+i);r=r._derive(2147483648+e)}else if(i.match(/^[0-9]+$/)){let e=parseInt(i);if(e>=2147483648)throw Error("invalid path index - "+i);r=r._derive(e)}else throw Error("invalid path component - "+i)}return r}static _fromSeed(e,t){let r=(0,a.arrayify)(e);if(r.length<16||r.length>64)throw Error("invalid seed");let i=(0,a.arrayify)((0,u.computeHmac)(u.SupportedAlgorithm.sha512,y,r));return new S(E,w(i.slice(0,32)),null,"0x00000000",w(i.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=R(I(e,r=M(r)),r),S._fromSeed(x(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return S._fromSeed(e,null)}static fromExtendedKey(e){let t=(0,n.Base58).decode(e);(82!==t.length||_(t.slice(0,78))!==e)&&m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=t[4],i=(0,a.hexlify)(t.slice(5,9)),s=parseInt((0,a.hexlify)(t.slice(9,13)).substring(2),16),o=(0,a.hexlify)(t.slice(13,45)),f=t.slice(45,78);switch((0,a.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new S(E,null,(0,a.hexlify)(f),i,o,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==f[0])break;return new S(E,(0,a.hexlify)(f.slice(1)),null,i,o,s,r,null)}return m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function x(e,t){t||(t="");let r=(0,o.toUtf8Bytes)("mnemonic"+t,o.UnicodeNormalizationForm.NFKD);return(0,f.pbkdf2)((0,o.toUtf8Bytes)(e,o.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}function I(e,t){t=M(t),m.checkNormalize();let r=t.split(e);if(r.length%3!=0)throw Error("invalid mnemonic");let i=(0,a.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),n=0;for(let e=0;e>3]|=1<<7-n%8),n++}let s=32*r.length/3,o=r.length/3,f=v(o),d=(0,a.arrayify)((0,u.sha256)(i.slice(0,s/8)))[0]&f;if(d!==(i[i.length-1]&f))throw Error("invalid checksum");return(0,a.hexlify)(i.slice(0,s/8))}function R(e,t){if(t=M(t),(e=(0,a.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw Error("invalid entropy");let r=[0],i=11;for(let t=0;t8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],i-=8):(r[r.length-1]<<=i,r[r.length-1]|=e[t]>>8-i,r.push(e[t]&(1<<8-i)-1),i+=3);let n=e.length/4,s=(0,a.arrayify)((0,u.sha256)(e))[0]&v(n);return r[r.length-1]<<=n,r[r.length-1]|=s>>8-n,t.join(r.map(e=>t.getWord(e)))}function k(e,t){try{return I(e,t),!0}catch(e){}return!1}function T(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&m.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},{"@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/strings":"edSy2","@ethersproject/pbkdf2":"53AfG","@ethersproject/properties":"dmdV5","@ethersproject/signing-key":"a8JOx","@ethersproject/sha2":"bznen","@ethersproject/transactions":"ctBdV","@ethersproject/wordlists":"a2daz","@ethersproject/logger":"6NWvR","./_version":"iqxFg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],Pygpe:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BaseX",()=>s),i.export(r,"Base32",()=>o),i.export(r,"Base58",()=>f);var n=e("@ethersproject/bytes"),a=e("@ethersproject/properties");class s{constructor(e){(0,a.defineReadOnly)(this,"alphabet",e),(0,a.defineReadOnly)(this,"base",e.length),(0,a.defineReadOnly)(this,"_alphabetMap",{}),(0,a.defineReadOnly)(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(i%this.base),i=i/this.base|0}let i="";for(let e=0;0===t[e]&&e=0;--e)i+=this.alphabet[r[e]];return i}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;n>0;)t.push(255&n),n>>=8}for(let r=0;e[r]===this._leader&&rn.pbkdf2);var n=e("./pbkdf2")},{"./pbkdf2":"iSJTG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iSJTG:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"pbkdf2",()=>s);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/sha2");function s(e,t,r,i,s){let o,f,d;e=(0,n.arrayify)(e),t=(0,n.arrayify)(t);let c=1,u=new Uint8Array(i),l=new Uint8Array(t.length+4);l.set(t);for(let h=1;h<=c;h++){l[t.length]=h>>24&255,l[t.length+1]=h>>16&255,l[t.length+2]=h>>8&255,l[t.length+3]=255&h;let p=(0,n.arrayify)((0,a.computeHmac)(s,e,l));o||(o=p.length,d=new Uint8Array(o),c=Math.ceil(i/o),f=i-(c-1)*o),d.set(p);for(let t=1;tn.computeHmac),i.export(r,"ripemd160",()=>n.ripemd160),i.export(r,"sha256",()=>n.sha256),i.export(r,"sha512",()=>n.sha512),i.export(r,"SupportedAlgorithm",()=>a.SupportedAlgorithm);var n=e("./sha2"),a=e("./types")},{"./sha2":"fjz4b","./types":"cObmA","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fjz4b:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ripemd160",()=>u),i.export(r,"sha256",()=>l),i.export(r,"sha512",()=>h),i.export(r,"computeHmac",()=>p);"use strict";var n=e("hash.js"),a=i.interopDefault(n),s=e("@ethersproject/bytes"),o=e("./types"),f=e("@ethersproject/logger"),d=e("./_version");let c=new f.Logger(d.version);function u(e){return"0x"+(0,a.default).ripemd160().update((0,s.arrayify)(e)).digest("hex")}function l(e){return"0x"+(0,a.default).sha256().update((0,s.arrayify)(e)).digest("hex")}function h(e){return"0x"+(0,a.default).sha512().update((0,s.arrayify)(e)).digest("hex")}function p(e,t,r){return o.SupportedAlgorithm[e]||c.throwError("unsupported algorithm "+e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+(0,a.default).hmac(a.default[e],(0,s.arrayify)(t)).update((0,s.arrayify)(r)).digest("hex")}},{"hash.js":"2Tlxk","@ethersproject/bytes":"19SwW","./types":"cObmA","@ethersproject/logger":"6NWvR","./_version":"3pnD5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cObmA:[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"SupportedAlgorithm",()=>n),(i=n||(n={})).sha256="sha256",i.sha512="sha512"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3pnD5":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="sha2/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a2daz:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"logger",()=>n.logger),i.export(r,"Wordlist",()=>n.Wordlist),i.export(r,"wordlists",()=>a.wordlists);"use strict";var n=e("./wordlist"),a=e("./wordlists")},{"./wordlist":"kQd0Q","./wordlists":"bk3n1","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kQd0Q:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"logger",()=>f),i.export(r,"Wordlist",()=>d);"use strict";var n=e("@ethersproject/hash"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let f=new s.Logger(o.version);class d{constructor(e){f.checkAbstract(new.target,d),(0,a.defineReadOnly)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){let t=[];for(let r=0;r<2048;r++){let i=e.getWord(r);if(r!==e.getWordIndex(i))return"0x";t.push(i)}return(0,n.id)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},{"@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"V1tr9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],V1tr9:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="wordlists/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bk3n1:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"wordlists",()=>a);var n=e("./lang-en");"use strict";let a={en:n.langEn}},{"./lang-en":"3iB3I","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3iB3I":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"langEn",()=>f);var n=e("./wordlist");"use strict";let a=null;function s(e){if(null==a&&(a="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==(0,n.Wordlist).check(e)))throw a=null,Error("BIP39 Wordlist for en (English) FAILED")}class o extends n.Wordlist{constructor(){super("en")}getWord(e){return s(this),a[e]}getWordIndex(e){return s(this),a.indexOf(e)}}let f=new o;(0,n.Wordlist).register(f)},{"./wordlist":"kQd0Q","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iqxFg:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="hdnode/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5x4el":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"randomBytes",()=>n.randomBytes),i.export(r,"shuffled",()=>a.shuffled);"use strict";var n=e("./random"),a=e("./shuffle")},{"./random":"7eRII","./shuffle":"9bV5K","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7eRII":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"randomBytes",()=>u);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=arguments[3];let f=new a.Logger(s.version),d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o)return o;throw Error("unable to locate global object")}(),c=d.crypto||d.msCrypto;function u(e){(e<=0||e>1024||e%1||e!=e)&&f.throwArgumentError("invalid length","length",e);let t=new Uint8Array(e);return c.getRandomValues(t),(0,n.arrayify)(t)}c&&c.getRandomValues||(f.warn("WARNING: Missing strong random number source"),c={getRandomValues:function(e){return f.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"4vVYi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4vVYi":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="random/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9bV5K":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){e=e.slice();for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}return e}i.defineInteropFlag(r),i.export(r,"shuffled",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BEU7":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"decryptCrowdsale",()=>n.decrypt),i.export(r,"decryptKeystore",()=>s.decrypt),i.export(r,"decryptKeystoreSync",()=>s.decryptSync),i.export(r,"encryptKeystore",()=>s.encrypt),i.export(r,"isCrowdsaleWallet",()=>a.isCrowdsaleWallet),i.export(r,"isKeystoreWallet",()=>a.isKeystoreWallet),i.export(r,"getJsonWalletAddress",()=>a.getJsonWalletAddress),i.export(r,"decryptJsonWallet",()=>o),i.export(r,"decryptJsonWalletSync",()=>f);"use strict";var n=e("./crowdsale"),a=e("./inspect"),s=e("./keystore");function o(e,t,r){if((0,a.isCrowdsaleWallet)(e)){r&&r(0);let i=(0,n.decrypt)(e,t);return r&&r(1),Promise.resolve(i)}return(0,a.isKeystoreWallet)(e)?(0,s.decrypt)(e,t,r):Promise.reject(Error("invalid JSON wallet"))}function f(e,t){if((0,a.isCrowdsaleWallet)(e))return(0,n.decrypt)(e,t);if((0,a.isKeystoreWallet)(e))return(0,s.decryptSync)(e,t);throw Error("invalid JSON wallet")}},{"./crowdsale":"jecLC","./inspect":"f0RP9","./keystore":"lvmQF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jecLC:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"CrowdsaleAccount",()=>m),i.export(r,"decrypt",()=>g);"use strict";var n=e("aes-js"),a=i.interopDefault(n),s=e("@ethersproject/address"),o=e("@ethersproject/bytes"),f=e("@ethersproject/keccak256"),d=e("@ethersproject/pbkdf2"),c=e("@ethersproject/strings"),u=e("@ethersproject/properties"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./utils");let b=new l.Logger(h.version);class m extends u.Description{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function g(e,t){let r=JSON.parse(e);t=(0,p.getPassword)(t);let i=(0,s.getAddress)((0,p.searchPath)(r,"ethaddr")),n=(0,p.looseArrayify)((0,p.searchPath)(r,"encseed"));n&&n.length%16==0||b.throwArgumentError("invalid encseed","json",e);let u=(0,o.arrayify)((0,d.pbkdf2)(t,t,2e3,32,"sha256")).slice(0,16),l=n.slice(0,16),h=n.slice(16),g=new a.default.ModeOfOperation.cbc(u,l),y=(0,a.default).padding.pkcs7.strip((0,o.arrayify)(g.decrypt(h))),v="";for(let e=0;e255)return!1;return!0}function n(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&i(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,i,n){(null!=i||null!=n)&&(e=e.slice?e.slice(i,n):Array.prototype.slice.call(e,i,n)),t.set(e,r)}var o,f=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&i])}return t.join("")}}),d={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],u=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=n[t],this._Kd[e-a][t%4]=n[t];for(var a,s,o=0,f=i;f>16&255]<<24^u[s>>8&255]<<16^u[255&s]<<8^u[s>>24&255]^c[o]<<24,o+=1,8!=i)for(var t=1;t>8&255]<<8^u[s>>16&255]<<16^u[s>>24&255]<<24;for(var t=i/2+1;t>2,h=f%4,this._Ke[l][h]=n[t],this._Kd[e-l][h]=n[t++],f++}for(var l=1;l>24&255]^M[s>>16&255]^E[s>>8&255]^A[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Ke[0][n];for(var s=1;s>24&255]^p[i[(n+1)%4]>>16&255]^b[i[(n+2)%4]>>8&255]^m[255&i[(n+3)%4]]^this._Ke[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Ke[t][n],f[4*n]=(u[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(u[i[(n+1)%4]>>16&255]^o>>16)&255,f[4*n+2]=(u[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(u[255&i[(n+3)%4]]^o)&255;return f},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Kd[0][n];for(var s=1;s>24&255]^y[i[(n+3)%4]>>16&255]^v[i[(n+2)%4]>>8&255]^w[255&i[(n+1)%4]]^this._Kd[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Kd[t][n],f[4*n]=(l[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(l[i[(n+3)%4]>>16&255]^o>>16)&255,f[4*n+2]=(l[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(l[255&i[(n+1)%4]]^o)&255;return f};var I=function(e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};I.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),i=0;i=0;--t)this._counter[t]=e%256,e>>=8},C.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r191&&i<224?(t.push(String.fromCharCode((31&i)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&i)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=n(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var i=e.length;i16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,i=0;in);let n="json-wallets/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fbe9v:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"looseArrayify",()=>s),i.export(r,"zpad",()=>o),i.export(r,"getPassword",()=>f),i.export(r,"searchPath",()=>d),i.export(r,"uuidV4",()=>c);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/strings");function s(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,n.arrayify)(e)}function o(e,t){for(e=String(e);e.lengtha),i.export(r,"isKeystoreWallet",()=>s),i.export(r,"getJsonWalletAddress",()=>o);var n=e("@ethersproject/address");"use strict";function a(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function s(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!!t.version&&parseInt(t.version)===t.version&&3===parseInt(t.version)}function o(e){if(a(e))try{return(0,n.getAddress)(JSON.parse(e).ethaddr)}catch(e){return null}if(s(e))try{return(0,n.getAddress)(JSON.parse(e).address)}catch(e){}return null}},{"@ethersproject/address":"7BZuS","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lvmQF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"KeystoreAccount",()=>_),i.export(r,"decryptSync",()=>x),i.export(r,"decrypt",()=>I),i.export(r,"encrypt",()=>R);"use strict";var n=e("aes-js"),a=i.interopDefault(n),s=e("scrypt-js"),o=i.interopDefault(s),f=e("@ethersproject/address"),d=e("@ethersproject/bytes"),c=e("@ethersproject/hdnode"),u=e("@ethersproject/keccak256"),l=e("@ethersproject/pbkdf2"),h=e("@ethersproject/random"),p=e("@ethersproject/properties"),b=e("@ethersproject/transactions"),m=e("./utils"),g=e("@ethersproject/logger"),y=e("./_version");let v=new g.Logger(y.version);function w(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class _ extends p.Description{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function M(e,t){let r=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/ciphertext")),i=(0,d.hexlify)((0,u.keccak256)((0,d.concat)([t.slice(16,32),r]))).substring(2);if(i!==(0,m.searchPath)(e,"crypto/mac").toLowerCase())throw Error("invalid password");let n=function(e,t,r){let i=(0,m.searchPath)(e,"crypto/cipher");if("aes-128-ctr"===i){let i=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/cipherparams/iv")),n=new a.default.Counter(i),s=new a.default.ModeOfOperation.ctr(t,n);return(0,d.arrayify)(s.decrypt(r))}return null}(e,t.slice(0,16),r);n||v.throwError("unsupported cipher",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let s=t.slice(32,64),o=(0,b.computeAddress)(n);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),(0,f.getAddress)(t)!==o)throw Error("address mismatch")}let l={_isKeystoreAccount:!0,address:o,privateKey:(0,d.hexlify)(n)};if("0.1"===(0,m.searchPath)(e,"x-ethers/version")){let t=(0,m.looseArrayify)((0,m.searchPath)(e,"x-ethers/mnemonicCiphertext")),r=(0,m.looseArrayify)((0,m.searchPath)(e,"x-ethers/mnemonicCounter")),i=new a.default.Counter(r),n=new a.default.ModeOfOperation.ctr(s,i),o=(0,m.searchPath)(e,"x-ethers/path")||c.defaultPath,f=(0,m.searchPath)(e,"x-ethers/locale")||"en",u=(0,d.arrayify)(n.decrypt(t));try{let e=(0,c.entropyToMnemonic)(u,f),t=(0,c.HDNode).fromMnemonic(e,null,f).derivePath(o);if(t.privateKey!=l.privateKey)throw Error("mnemonic mismatch");l.mnemonic=t.mnemonic}catch(e){if(e.code!==g.Logger.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new _(l)}function E(e,t,r,i,n){return(0,d.arrayify)((0,l.pbkdf2)(e,t,r,i,n))}function A(e,t,r,i,n){return Promise.resolve(E(e,t,r,i,n))}function S(e,t,r,i,n){let a=(0,m.getPassword)(t),s=(0,m.searchPath)(e,"crypto/kdf");if(s&&"string"==typeof s){let t=function(e,t){return v.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===s.toLowerCase()){let r=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/kdfparams/salt")),o=parseInt((0,m.searchPath)(e,"crypto/kdfparams/n")),f=parseInt((0,m.searchPath)(e,"crypto/kdfparams/r")),d=parseInt((0,m.searchPath)(e,"crypto/kdfparams/p"));o&&f&&d||t("kdf",s),(o&o-1)!=0&&t("N",o);let c=parseInt((0,m.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==c&&t("dklen",c),i(a,r,o,f,d,64,n)}if("pbkdf2"===s.toLowerCase()){let i=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/kdfparams/salt")),n=null,s=(0,m.searchPath)(e,"crypto/kdfparams/prf");"hmac-sha256"===s?n="sha256":"hmac-sha512"===s?n="sha512":t("prf",s);let o=parseInt((0,m.searchPath)(e,"crypto/kdfparams/c")),f=parseInt((0,m.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==f&&t("dklen",f),r(a,i,o,f,n)}}return v.throwArgumentError("unsupported key-derivation function","kdf",s)}function x(e,t){let r=JSON.parse(e),i=S(r,t,E,o.default.syncScrypt);return M(r,i)}function I(e,t,r){var i,n,a,s;return i=this,n=void 0,a=void 0,s=function*(){let i=JSON.parse(e),n=yield S(i,t,A,o.default.scrypt,r);return M(i,n)},new(a||(a=Promise))(function(e,t){function r(e){try{f(s.next(e))}catch(e){t(e)}}function o(e){try{f(s.throw(e))}catch(e){t(e)}}function f(t){var i;t.done?e(t.value):((i=t.value)instanceof a?i:new a(function(e){e(i)})).then(r,o)}f((s=s.apply(i,n||[])).next())})}function R(e,t,r,i){try{if((0,f.getAddress)(e.address)!==(0,b.computeAddress)(e.privateKey))throw Error("address/privateKey mismatch");if(w(e)){let t=e.mnemonic,r=(0,c.HDNode).fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||c.defaultPath);if(r.privateKey!=e.privateKey)throw Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||i||(i=r,r={}),r||(r={});let n=(0,d.arrayify)(e.privateKey),s=(0,m.getPassword)(t),l=null,p=null,g=null;if(w(e)){let t=e.mnemonic;l=(0,d.arrayify)((0,c.mnemonicToEntropy)(t.phrase,t.locale||"en")),p=t.path||c.defaultPath,g=t.locale||"en"}let y=r.client;y||(y="ethers.js");let v=null;v=r.salt?(0,d.arrayify)(r.salt):(0,h.randomBytes)(32);let _=null;if(r.iv){if(16!==(_=(0,d.arrayify)(r.iv)).length)throw Error("invalid iv")}else _=(0,h.randomBytes)(16);let M=null;if(r.uuid){if(16!==(M=(0,d.arrayify)(r.uuid)).length)throw Error("invalid uuid")}else M=(0,h.randomBytes)(16);let E=131072,A=8,S=1;return r.scrypt&&(r.scrypt.N&&(E=r.scrypt.N),r.scrypt.r&&(A=r.scrypt.r),r.scrypt.p&&(S=r.scrypt.p)),(0,o.default).scrypt(s,v,E,A,S,64,i).then(t=>{t=(0,d.arrayify)(t);let r=t.slice(0,16),i=t.slice(16,32),s=t.slice(32,64),o=new a.default.Counter(_),f=new a.default.ModeOfOperation.ctr(r,o),c=(0,d.arrayify)(f.encrypt(n)),b=(0,u.keccak256)((0,d.concat)([i,c])),w={address:e.address.substring(2).toLowerCase(),id:(0,m.uuidV4)(M),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,d.hexlify)(_).substring(2)},ciphertext:(0,d.hexlify)(c).substring(2),kdf:"scrypt",kdfparams:{salt:(0,d.hexlify)(v).substring(2),n:E,dklen:32,p:S,r:A},mac:b.substring(2)}};if(l){let e=(0,h.randomBytes)(16),t=new a.default.Counter(e),r=new a.default.ModeOfOperation.ctr(s,t),i=(0,d.arrayify)(r.encrypt(l)),n=new Date,o=n.getUTCFullYear()+"-"+(0,m.zpad)(n.getUTCMonth()+1,2)+"-"+(0,m.zpad)(n.getUTCDate(),2)+"T"+(0,m.zpad)(n.getUTCHours(),2)+"-"+(0,m.zpad)(n.getUTCMinutes(),2)+"-"+(0,m.zpad)(n.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:y,gethFilename:"UTC--"+o+"--"+w.address,mnemonicCounter:(0,d.hexlify)(e).substring(2),mnemonicCiphertext:(0,d.hexlify)(i).substring(2),path:p,locale:g,version:"0.1"}}return JSON.stringify(w)})}},{"aes-js":"3oDF6","scrypt-js":"81Ky2","@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/pbkdf2":"53AfG","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","./utils":"fbe9v","@ethersproject/logger":"6NWvR","./_version":"giv5t","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"81Ky2":[function(e,t,r){"use strict";!function(e){function i(e){let t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=1779033703,i=3144134277,n=1013904242,a=2773480762,s=1359893119,o=2600822924,f=528734635,d=1541459225,c=new Uint32Array(64);function u(e){let u=0,l=e.length;for(;l>=64;){let h=r,p=i,b=n,m=a,g=s,y=o,v=f,w=d,_,M,E,A,S;for(M=0;M<16;M++)E=u+4*M,c[M]=(255&e[E])<<24|(255&e[E+1])<<16|(255&e[E+2])<<8|255&e[E+3];for(M=16;M<64;M++)A=((_=c[M-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,S=((_=c[M-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,c[M]=(A+c[M-7]|0)+(S+c[M-16]|0)|0;for(M=0;M<64;M++)A=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&y^~g&v)|0)+(w+(t[M]+c[M]|0)|0)|0,S=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&b^p&b)|0,w=v,v=y,y=g,g=m+A|0,m=b,b=p,p=h,h=A+S|0;r=r+h|0,i=i+p|0,n=n+b|0,a=a+m|0,s=s+g|0,o=o+y|0,f=f+v|0,d=d+w|0,u+=64,l-=64}}u(e);let l,h=e.length%64,p=e.length/536870912|0,b=e.length<<3,m=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),l=h+1;l>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(b>>>24&255),g.push(b>>>16&255),g.push(b>>>8&255),g.push(b>>>0&255),u(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,d>>>24&255,d>>>16&255,d>>>8&255,d>>>0&255]}function n(e,t,r){let n;e=e.length<=64?e:i(e);let a=64+t.length+4,s=Array(a),o=Array(64),f=[];for(n=0;n<64;n++)s[n]=54;for(n=0;n=a-4;e--){if(s[e]++,s[e]<=255)return;s[e]=0}}for(;r>=32;)d(),f=f.concat(i(o.concat(i(s)))),r-=32;return r>0&&(d(),f=f.concat(i(o.concat(i(s))).slice(0,r))),f}function a(e,t,r,i,n){let a;for(f(e,(2*r-1)*16,n,0,16),a=0;a<2*r;a++)o(e,16*a,n,16),function(e,t){f(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}(n,i),f(n,0,e,t+16*a,16);for(a=0;a>>32-t}function o(e,t,r,i){for(let n=0;n=256)return!1}return!0}function c(e,t){if("number"!=typeof e||e%1)throw Error("invalid "+t);return e}function u(e,t,r,i,s,u,l){let h;if(r=c(r,"N"),i=c(i,"r"),s=c(s,"p"),u=c(u,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/i)throw Error("N too large");if(i>2147483647/128/s)throw Error("r too large");if(!d(e))throw Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!d(t))throw Error("salt must be an array or buffer");let p=n(e,t=Array.prototype.slice.call(t),128*s*i),b=new Uint32Array(32*s*i);for(let e=0;eR&&(t=R);for(let e=0;eR&&(t=R);for(let e=0;e>0&255),p.push(b[e]>>8&255),p.push(b[e]>>16&255),p.push(b[e]>>24&255);let d=n(e,p,u);return l&&l(null,1,d),d}l&&k(T)};if(!l)for(;;){let e=T();if(void 0!=e)return e}T()}let l={scrypt:function(e,t,r,i,n,a,s){return new Promise(function(o,f){let d=0;s&&s(0),u(e,t,r,i,n,a,function(e,t,r){if(e)f(e);else if(r)s&&1!==d&&s(1),o(new Uint8Array(r));else if(s&&t!==d)return d=t,s(t)})})},syncScrypt:function(e,t,r,i,n,a){return new Uint8Array(u(e,t,r,i,n,a))}};void 0!==r?t.exports=l:"function"==typeof define&&define.amd?define(l):e&&(e.scrypt&&(e._scrypt=e.scrypt),e.scrypt=l)}(this)},{}],"2nczW":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="wallet/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lpm2Y:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Provider",()=>n.Provider),i.export(r,"BaseProvider",()=>s.BaseProvider),i.export(r,"Resolver",()=>s.Resolver),i.export(r,"UrlJsonRpcProvider",()=>y.UrlJsonRpcProvider),i.export(r,"FallbackProvider",()=>u.FallbackProvider),i.export(r,"AlchemyProvider",()=>o.AlchemyProvider),i.export(r,"AlchemyWebSocketProvider",()=>o.AlchemyWebSocketProvider),i.export(r,"AnkrProvider",()=>f.AnkrProvider),i.export(r,"CloudflareProvider",()=>d.CloudflareProvider),i.export(r,"EtherscanProvider",()=>c.EtherscanProvider),i.export(r,"InfuraProvider",()=>h.InfuraProvider),i.export(r,"InfuraWebSocketProvider",()=>h.InfuraWebSocketProvider),i.export(r,"JsonRpcProvider",()=>p.JsonRpcProvider),i.export(r,"JsonRpcBatchProvider",()=>b.JsonRpcBatchProvider),i.export(r,"NodesmithProvider",()=>m.NodesmithProvider),i.export(r,"PocketProvider",()=>g.PocketProvider),i.export(r,"StaticJsonRpcProvider",()=>y.StaticJsonRpcProvider),i.export(r,"Web3Provider",()=>v.Web3Provider),i.export(r,"WebSocketProvider",()=>w.WebSocketProvider),i.export(r,"IpcProvider",()=>l.IpcProvider),i.export(r,"JsonRpcSigner",()=>p.JsonRpcSigner),i.export(r,"getDefaultProvider",()=>S),i.export(r,"getNetwork",()=>a.getNetwork),i.export(r,"isCommunityResource",()=>_.isCommunityResource),i.export(r,"isCommunityResourcable",()=>_.isCommunityResourcable),i.export(r,"showThrottleMessage",()=>_.showThrottleMessage),i.export(r,"Formatter",()=>_.Formatter);"use strict";var n=e("@ethersproject/abstract-provider"),a=e("@ethersproject/networks"),s=e("./base-provider"),o=e("./alchemy-provider"),f=e("./ankr-provider"),d=e("./cloudflare-provider"),c=e("./etherscan-provider"),u=e("./fallback-provider"),l=e("./ipc-provider"),h=e("./infura-provider"),p=e("./json-rpc-provider"),b=e("./json-rpc-batch-provider"),m=e("./nodesmith-provider"),g=e("./pocket-provider"),y=e("./url-json-rpc-provider"),v=e("./web3-provider"),w=e("./websocket-provider"),_=e("./formatter"),M=e("@ethersproject/logger"),E=e("./_version");let A=new M.Logger(E.version);function S(e,t){if(null==e&&(e="homestead"),"string"==typeof e){let t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new p.JsonRpcProvider(e);case"ws":case"wss":return new w.WebSocketProvider(e);default:A.throwArgumentError("unsupported URL scheme","network",e)}}let r=(0,a.getNetwork)(e);return r&&r._defaultProvider||A.throwError("unsupported getDefaultProvider network",M.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:u.FallbackProvider,AlchemyProvider:o.AlchemyProvider,AnkrProvider:f.AnkrProvider,CloudflareProvider:d.CloudflareProvider,EtherscanProvider:c.EtherscanProvider,InfuraProvider:h.InfuraProvider,JsonRpcProvider:p.JsonRpcProvider,NodesmithProvider:m.NodesmithProvider,PocketProvider:g.PocketProvider,Web3Provider:v.Web3Provider,IpcProvider:l.IpcProvider},t)}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/networks":"acQbn","./base-provider":"lEHz5","./alchemy-provider":"dBSgv","./ankr-provider":"afy2f","./cloudflare-provider":"1qhut","./etherscan-provider":"fduCf","./fallback-provider":"LdkdG","./ipc-provider":"8DeRN","./infura-provider":"8Bo5e","./json-rpc-provider":"7x7oZ","./json-rpc-batch-provider":"aCNcD","./nodesmith-provider":"19g4w","./pocket-provider":"dwl0t","./url-json-rpc-provider":"bwHu3","./web3-provider":"2aAfb","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],acQbn:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getNetwork",()=>h);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=new n.Logger(a.version);function o(e){let t=function(t,r){null==r&&(r={});let i=[];if(t.InfuraProvider&&"-"!==r.infura)try{i.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{i.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{i.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket)try{let n=new t.PocketProvider(e,r.pocket);n.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(n.network.name)&&i.push(n)}catch(e){}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{i.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let n=new t.AnkrProvider(e,r.ankr);n.network&&-1===["ropsten"].indexOf(n.network.name)&&i.push(n)}catch(e){}if(0===i.length)return null;if(t.FallbackProvider){let n=1;return null!=r.quorum?n=r.quorum:"homestead"===e&&(n=2),new t.FallbackProvider(i,n)}return i[0]};return t.renetwork=function(e){return o(e)},t}function f(e,t){let r=function(r,i){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return f(e,t)},r}let d={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},c={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:f("https://www.ethercluster.com/mordor","classicMordor")},l={unspecified:{chainId:0,name:"unspecified"},homestead:d,mainnet:d,morden:{chainId:2,name:"morden"},ropsten:c,testnet:c,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:f("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:f("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function h(e){if(null==e)return null;if("number"==typeof e){for(let t in l){let r=l[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){let t=l[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=l[e.name];if(!t)return"number"!=typeof e.chainId&&s.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&s.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var i;r=(i=t._defaultProvider)&&"function"==typeof i.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}},{"@ethersproject/logger":"6NWvR","./_version":"jSIn2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jSIn2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="networks/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lEHz5:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Event",()=>k),i.export(r,"Resolver",()=>U),i.export(r,"BaseProvider",()=>K);"use strict";var n=e("@ethersproject/abstract-provider"),a=e("@ethersproject/base64"),s=e("@ethersproject/basex"),o=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),d=e("@ethersproject/constants"),c=e("@ethersproject/hash"),u=e("@ethersproject/networks"),l=e("@ethersproject/properties"),h=e("@ethersproject/sha2"),p=e("@ethersproject/strings"),b=e("@ethersproject/web"),m=e("bech32"),g=i.interopDefault(m),y=e("@ethersproject/logger"),v=e("./_version"),w=e("./formatter"),_=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let M=new y.Logger(v.version);function E(e){return null==e?"null":(32!==(0,f.hexDataLength)(e)&&M.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function A(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return E(e);{let t={};e.forEach(e=>{t[E(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function S(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,f.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+A(e);else if((0,n.ForkEvent).isForkEvent(e))throw M.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+A(e.topics||[]);throw Error("invalid event - "+e)}function x(){return new Date().getTime()}function I(e){return new Promise(t=>{setTimeout(t,e)})}let R=["block","network","pending","poll"];class k{constructor(e,t,r){(0,l.defineReadOnly)(this,"tag",e),(0,l.defineReadOnly)(this,"listener",t),(0,l.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(":");if("filter"!==t[0])return null;let r=t[1],i=""===(e=t[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t}),n={};return i.length>0&&(n.topics=i),r&&"*"!==r&&(n.address=r),n}pollable(){return this.tag.indexOf(":")>=0||R.indexOf(this.tag)>=0}}let T={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function C(e){return(0,f.hexZeroPad)((0,o.BigNumber).from(e).toHexString(),32)}function P(e){return(0,s.Base58).encode((0,f.concat)([e,(0,f.hexDataSlice)((0,h.sha256)((0,h.sha256)(e)),0,4)]))}let O=RegExp("^(ipfs)://(.*)$","i"),N=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),O,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function j(e,t){try{return(0,p.toUtf8String)(B(e,t))}catch(e){}return null}function B(e,t){if("0x"===e)return null;let r=(0,o.BigNumber).from((0,f.hexDataSlice)(e,t,t+32)).toNumber(),i=(0,o.BigNumber).from((0,f.hexDataSlice)(e,r,r+32)).toNumber();return(0,f.hexDataSlice)(e,r+32,r+32+i)}function L(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):M.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function D(e){let t=(0,f.arrayify)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function F(e){let t=[],r=0;for(let i=0;i(0,o.BigNumber).from(e).eq(1)).catch(e=>{if(e.code===y.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return _(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,f.hexConcat)([e,(0,c.namehash)(this.name),t||"0x"])},i=!1;(yield this.supportsWildcard())&&(i=!0,r.data=(0,f.hexConcat)(["0x9061b923",F([(0,c.dnsEncode)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,f.arrayify)(e).length%32==4&&M.throwError("resolver threw error",y.Logger.errors.CALL_EXCEPTION,{transaction:r,data:e}),i&&(e=B(e,0)),e}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return _(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?B(r,0):null})}_getAddress(e,t){let r=T[String(e)];if(null==r&&M.throwError(`unsupported coin type: ${e}`,y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let i=(0,f.arrayify)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,f.concat)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,f.concat)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=i[1],t=i[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&i.length===2+e&&e>=1&&e<=75){let e=(0,g.default).toWords(i.slice(2));return e.unshift(t),(0,g.default).encode(r.prefix,e)}}return null}getAddress(e){return _(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===d.HashZero)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",C(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&M.throwError("invalid or unsupported coin data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return _(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]);return"sia://"+t}return M.throwError("invalid or unsupported content hash data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return _(this,void 0,void 0,function*(){let t=(0,p.toUtf8Bytes)(e);(t=(0,f.concat)([C(64),C(t.length),t])).length%32!=0&&(t=(0,f.concat)([t,(0,f.hexZeroPad)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,f.hexlify)(t));return null==r||"0x"===r?null:(0,p.toUtf8String)(r)})}}let q=null,z=1;class K extends n.Provider{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,l.defineReadOnly)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,l.getStatic)(new.target,"getNetwork")(e);t?((0,l.defineReadOnly)(this,"_network",t),this.emit("network",t,null)):M.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return _(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||M.throwError("no network detected",y.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,l.defineReadOnly)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return(0,b.poll)(()=>this._ready().then(e=>e,e=>{if(e.code!==y.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==q&&(q=new w.Formatter),q}static getNetwork(e){return(0,u.getNetwork)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return _(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let i=e.to.toLowerCase(),n=t.toLowerCase(),a=[];for(let e=0;e=0?null:JSON.stringify({data:n,sender:i}),f=yield(0,b.fetchJson)({url:s,errorPassThrough:!0},o,(e,t)=>(e.status=t.statusCode,e));if(f.data)return f.data;let d=f.message||"unknown error";if(f.status>=400&&f.status<500)return M.throwError(`response not found during CCIP fetch: ${d}`,y.Logger.errors.SERVER_ERROR,{url:t,errorMessage:d});a.push(d)}return M.throwError(`error encountered during CCIP fetch: ${a.map(e=>JSON.stringify(e)).join(", ")}`,y.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(e){return _(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(x()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=x(),r=(0,l.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:i})=>{if(i)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),i;let n=x();return(e=(0,o.BigNumber).from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return _(this,void 0,void 0,function*(){let e=z++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)M.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",M.makeError("network block skew detected",y.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;let t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{let r=e.hash,i=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit("error",e)});t.push(i);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let i=e.filter;i.fromBlock=e._lastBlockNumber+1,i.toBlock=r;let n=i.toBlock-this._maxFilterBlockRange;n>i.fromBlock&&(i.fromBlock=n),i.fromBlock<0&&(i.fromBlock=0);let a=this.getLogs(i).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(i,t)})}).catch(t=>{this.emit("error",t),e._inflight=!1});t.push(a)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return _(this,void 0,void 0,function*(){return M.throwError("provider does not support network detection",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return _(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield I(0),this._network;let r=M.makeError("underlying network changed",y.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=x();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return _(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,i){return _(this,void 0,void 0,function*(){let n=yield this.getTransactionReceipt(e);return(n?n.confirmations:0)>=t?n:new Promise((n,a)=>{let s=[],o=!1,f=function(){return!!o||(o=!0,s.forEach(e=>{e()}),!1)},d=e=>{!(e.confirmations{this.removeListener(e,d)}),i){let r=i.startBlock,n=null,d=s=>_(this,void 0,void 0,function*(){o||(yield I(1e3),this.getTransactionCount(i.from).then(c=>_(this,void 0,void 0,function*(){if(!o){if(c<=i.nonce)r=s;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==n&&(n=r-3){o||this.once("block",d)}))});if(o)return;this.once("block",d),s.push(()=>{this.removeListener("block",d)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{f()||a(M.makeError("timeout exceeded",y.Logger.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return _(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return _(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return(0,o.BigNumber).from(e)}catch(t){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getBalance",r);try{return(0,o.BigNumber).from(i)}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:e})}})}getTransactionCount(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getTransactionCount",r);try{return(0,o.BigNumber).from(i).toNumber()}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:e})}})}getCode(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getCode",r);try{return(0,f.hexlify)(i)}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:e})}})}getStorageAt(e,t,r){return _(this,void 0,void 0,function*(){yield this.getNetwork();let i=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,f.hexValue)(e))}),n=yield this.perform("getStorageAt",i);try{return(0,f.hexlify)(n)}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:n,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,f.hexDataLength)(t))throw Error("invalid response - sendTransaction");return null!=t&&e.hash!==t&&M.throwError("Transaction hash mismatch from Provider.sendTransaction.",y.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,i)=>_(this,void 0,void 0,function*(){let n;null==t&&(t=1),null==i&&(i=0),0!==t&&null!=r&&(n={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let a=yield this._waitForTransaction(e.hash,t,i,n);return null==a&&0===t?null:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&M.throwError("transaction failed",y.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)}),e}sendTransaction(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,f.hexlify)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,i)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return _(this,void 0,void 0,function*(){let t=yield e,r={};return["from","to"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,o.BigNumber).from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,f.hexlify)(e):null))}),this.formatter.transactionRequest((yield(0,l.resolveProperties)(r)))})}_getFilter(e){return _(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,l.resolveProperties)(t)))})}_call(e,t,r){return _(this,void 0,void 0,function*(){r>=10&&M.throwError("CCIP read exceeded maximum redirections",y.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e});let i=e.to,n=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===n.substring(0,10)&&(0,f.hexDataLength)(n)%32==4)try{let a=(0,f.hexDataSlice)(n,4),s=(0,f.hexDataSlice)(a,0,32);(0,o.BigNumber).from(s).eq(i)||M.throwError("CCIP Read sender did not match",y.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:n});let d=[],c=(0,o.BigNumber).from((0,f.hexDataSlice)(a,32,64)).toNumber(),u=(0,o.BigNumber).from((0,f.hexDataSlice)(a,c,c+32)).toNumber(),l=(0,f.hexDataSlice)(a,c+32);for(let t=0;t_(this,void 0,void 0,function*(){let e=yield this.perform("getBlock",i);if(null==e)return null!=i.blockHash&&null==this._emitted["b:"+i.blockHash]||null!=i.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;rthis._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,b.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let i=this.formatter.transactionResponse(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval),t=e-i.blockNumber+1;t<=0&&(t=1),i.confirmations=t}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,b.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let i=this.formatter.receipt(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval),t=e-i.blockNumber+1;t<=0&&(t=1),i.confirmations=t}return i}),{oncePoll:this})})}getLogs(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,l.resolveProperties)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),(0,w.Formatter).arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return _(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return _(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&M.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return _(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let i=new U(this,r,e);if(t!==e&&!(yield i.supportsWildcard()))return null;return i}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return _(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||M.throwError("network does not support ENS",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,c.namehash)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return _(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,f.isHexString)(e))throw t}"string"!=typeof e&&M.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return _(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);let t=e.substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let i=j((yield this.call({to:r,data:"0x691f3431"+(0,c.namehash)(t).substring(2)})),0),n=yield this.resolveName(i);return n!=e?null:i})}getAvatar(e){return _(this,void 0,void 0,function*(){let t=null;if((0,f.isHexString)(e)){let r=this.formatter.address(e),i=r.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(i,"getAvatar");if(!n)return null;t=new U(this,n,i);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e}try{let e=j((yield this.call({to:n,data:"0x691f3431"+(0,c.namehash)(i).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return M.throwError(e+" not implemented",y.Logger.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let i=new k(S(e),t,r);return this._events.push(i),this._startEvent(i),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,i=[],n=S(e);return this._events=this._events.filter(e=>e.tag!==n||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(i.push(e),!1))),i.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=S(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=S(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],i=!1,n=S(e);return this._events=this._events.filter(e=>e.tag!==n||e.listener!=t||!!i||(i=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=S(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/hash":"jLDfB","@ethersproject/networks":"acQbn","@ethersproject/properties":"dmdV5","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/web":"5uH8k",bech32:"jLLEl","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./formatter":"7RPp2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5uH8k":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"_fetchData",()=>p),i.export(r,"fetchJson",()=>b),i.export(r,"poll",()=>m);"use strict";var n=e("@ethersproject/base64"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/strings"),f=e("@ethersproject/logger"),d=e("./_version"),c=e("./geturl");let u=new f.Logger(d.version);function l(e){return new Promise(t=>{setTimeout(t,e)})}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,a.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,o.toUtf8String)(e)}catch(e){}return(0,a.hexlify)(e)}return e}function p(e,t,r){let i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;u.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);let a="object"==typeof e?e.throttleCallback:null,d="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;u.assertArgument(d>0&&d%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",d);let p="object"==typeof e&&!!e.errorPassThrough,b={},m=null,g={method:"GET"},y=!1,v=12e4;if("string"==typeof e)m=e;else if("object"==typeof e){if((null==e||null==e.url)&&u.throwArgumentError("missing URL","connection.url",e),m=e.url,"number"==typeof e.timeout&&e.timeout>0&&(v=e.timeout),e.headers)for(let t in e.headers)b[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(y=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==m.substring(0,6)&&!0!==e.allowInsecureAuthentication&&u.throwError("basic authentication requires a secure https url",f.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:m,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;b.authorization={key:"Authorization",value:"Basic "+(0,n.encode)((0,o.toUtf8Bytes)(t))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,s.shallowCopy)(e.fetchOptions))}let w=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_=m?m.match(w):null;if(_)try{var M;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":_[1]||"text/plain"},body:_[2]?(0,n.decode)(_[3]):(M=_[3],(0,o.toUtf8Bytes)(M.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){u.throwError("processing response error",f.Logger.errors.SERVER_ERROR,{body:h(_[1],_[2]),error:e,requestBody:null,requestMethod:"GET",url:m})}t&&(g.method="POST",g.body=t,null==b["content-type"]&&(b["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==b["content-length"]&&(b["content-length"]={key:"Content-Length",value:String(t.length)}));let E={};Object.keys(b).forEach(e=>{let t=b[e];E[t.key]=t.value}),g.headers=E;let A=function(){let e=null,t=new Promise(function(t,r){v&&(e=setTimeout(()=>{null!=e&&(e=null,r(u.makeError("timeout",f.Logger.errors.TIMEOUT,{requestBody:h(g.body,E["content-type"]),requestMethod:g.method,timeout:v,url:m})))},v))});return{promise:t,cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),S=function(){var e,t,n,s;return e=this,t=void 0,n=void 0,s=function*(){for(let e=0;e=300)&&(A.cancel(),u.throwError("bad response",f.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(n,t.headers?t.headers["content-type"]:null),requestBody:h(g.body,E["content-type"]),requestMethod:g.method,url:m})),r)try{let e=yield r(n,t);return A.cancel(),e}catch(r){if(r.throttleRetry&&e"content-type"===e.toLowerCase()).length;e||(r.headers=(0,s.shallowCopy)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return p(e,i,(e,t)=>{let i=null;if(null!=e)try{i=JSON.parse((0,o.toUtf8String)(e))}catch(t){u.throwError("invalid JSON",f.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(i=r(i,t)),i})}function m(e,t){return t||(t={}),null==(t=(0,s.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,i){let n=null,a=!1,s=()=>!a&&(a=!0,n&&clearTimeout(n),!0);t.timeout&&(n=setTimeout(()=>{s()&&i(Error("timeout"))},t.timeout));let o=t.retryLimit,f=0;!function n(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",n);else if(t.onceBlock)t.onceBlock.once("block",n);else if(!a){if(++f>o){s()&&i(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,f)));et.ceiling&&(e=t.ceiling),setTimeout(n,e)}return null},function(e){s()&&i(e)})}()})}},{"@ethersproject/base64":"dIiCi","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"bPRgl","./geturl":"aerdi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bPRgl:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="web/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aerdi:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getUrl",()=>a);var n=e("@ethersproject/bytes");"use strict";function a(e,t){var r,i,a,s;return r=this,i=void 0,a=void 0,s=function*(){null==t&&(t={});let r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let i=yield fetch(e,r),a=yield i.arrayBuffer(),s={};return i.headers.forEach?i.headers.forEach((e,t)=>{s[t.toLowerCase()]=e}):i.headers.keys().forEach(e=>{s[e.toLowerCase()]=i.headers.get(e)}),{headers:s,statusCode:i.status,statusMessage:i.statusText,body:(0,n.arrayify)(new Uint8Array(a))}},new(a||(a=Promise))(function(e,t){function n(e){try{f(s.next(e))}catch(e){t(e)}}function o(e){try{f(s.throw(e))}catch(e){t(e)}}function f(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,o)}f((s=s.apply(r,i||[])).next())})}},{"@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLLEl:[function(e,t,r){"use strict";for(var i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},a=0;a>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function f(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=o(t)^i>>5}for(r=0,t=o(t);rt)return"Exceeds length limit";var r=e.toLowerCase(),i=e.toUpperCase();if(e!==r&&e!==i)return"Mixed-case string "+e;var a=(e=r).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var s=e.slice(0,a),d=e.slice(a+1);if(d.length<6)return"Data too short";var c=f(s);if("string"==typeof c)return c;for(var u=[],l=0;l=d.length||u.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:s,words:u}}function c(e,t,r,i){for(var n=0,a=0,s=(1<=r;)o.push(n>>(a-=r)&s);if(i)a>0&&o.push(n<=t)return"Excess padding";if(n<r)throw TypeError("Exceeds length limit");var n=f(e=e.toLowerCase());if("string"==typeof n)throw Error(n);for(var a=e+"1",s=0;s>5!=0)throw Error("Non 5-bit word");n=o(n)^d,a+=i.charAt(d)}for(s=0;s<6;++s)n=o(n);for(n^=1,s=0;s<6;++s){var c=n>>(5-s)*5&31;a+=i.charAt(c)}return a},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},{}],"1LO7N":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="providers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7RPp2":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Formatter",()=>h),i.export(r,"isCommunityResourcable",()=>p),i.export(r,"isCommunityResource",()=>b),i.export(r,"showThrottleMessage",()=>g);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/constants"),f=e("@ethersproject/properties"),d=e("@ethersproject/transactions"),c=e("@ethersproject/logger"),u=e("./_version");let l=new c.Logger(u.version);class h{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),i=this.blockTag.bind(this),n=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),o=this.number.bind(this),d=this.type.bind(this);return e.transaction={hash:a,type:d,accessList:h.allowNull(this.accessList.bind(this),null),blockHash:h.allowNull(a,null),blockNumber:h.allowNull(o,null),transactionIndex:h.allowNull(o,null),confirmations:h.allowNull(o,null),from:t,gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),gasLimit:r,to:h.allowNull(t,null),value:r,nonce:o,data:n,r:h.allowNull(this.uint256),s:h.allowNull(this.uint256),v:h.allowNull(o),creates:h.allowNull(t,null),raw:h.allowNull(n)},e.transactionRequest={from:h.allowNull(t),nonce:h.allowNull(o),gasLimit:h.allowNull(r),gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),to:h.allowNull(t),value:h.allowNull(r),data:h.allowNull(e=>this.data(e,!0)),type:h.allowNull(o),accessList:h.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:o,blockNumber:o,transactionHash:a,address:t,topics:h.arrayOf(a),data:n,logIndex:o,blockHash:a},e.receipt={to:h.allowNull(this.address,null),from:h.allowNull(this.address,null),contractAddress:h.allowNull(t,null),transactionIndex:o,root:h.allowNull(s),gasUsed:r,logsBloom:h.allowNull(n),blockHash:a,transactionHash:a,logs:h.arrayOf(this.receiptLog.bind(this)),blockNumber:o,confirmations:h.allowNull(o,null),cumulativeGasUsed:r,effectiveGasPrice:h.allowNull(r),status:h.allowNull(o),type:d},e.block={hash:h.allowNull(a),parentHash:a,number:o,timestamp:o,nonce:h.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:h.allowNull(t),extraData:n,transactions:h.allowNull(h.arrayOf(a)),baseFeePerGas:h.allowNull(r)},e.blockWithTransactions=(0,f.shallowCopy)(e.block),e.blockWithTransactions.transactions=h.allowNull(h.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:h.allowNull(i,void 0),toBlock:h.allowNull(i,void 0),blockHash:h.allowNull(a,void 0),address:h.allowNull(t,void 0),topics:h.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:h.allowNull(o),blockHash:h.allowNull(a),transactionIndex:o,removed:h.allowNull(this.boolean.bind(this)),address:t,data:h.allowFalsish(n,"0x"),topics:h.arrayOf(a),transactionHash:a,logIndex:o},e}accessList(e){return(0,d.accessListify)(e||[])}number(e){return"0x"===e?0:(0,a.BigNumber).from(e).toNumber()}type(e){return"0x"===e||null==e?0:(0,a.BigNumber).from(e).toNumber()}bigNumber(e){return(0,a.BigNumber).from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,s.isHexString)(e))?e.toLowerCase():l.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,n.getAddress)(e)}callAddress(e){if(!(0,s.isHexString)(e,32))return null;let t=(0,n.getAddress)((0,s.hexDataSlice)(e,12));return t===o.AddressZero?null:t}contractAddress(e){return(0,n.getContractAddress)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,s.isHexString)(e))return(0,s.hexValue)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,s.hexDataLength)(r)?l.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=(0,a.BigNumber).from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,s.isHexString)(e))throw Error("invalid uint256");return(0,s.hexZeroPad)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,i=h.check(t,e);return i._difficulty=null==r?null:(0,a.BigNumber).from(r),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return h.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&(0,a.BigNumber).from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=h.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,d.parse)(e)}receiptLog(e){return h.check(this.formats.receiptLog,e)}receipt(e){let t=h.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=(0,a.BigNumber).from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&l.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):l.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&l.throwArgumentError("invalid root hash","value.root",t.root)}return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return h.check(this.formats.filter,e)}filterLog(e){return h.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let i in e)try{let n=e[i](t[i]);void 0!==n&&(r[i]=n)}catch(e){throw e.checkKey=i,e.checkValue=t[i],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}function p(e){return e&&"function"==typeof e.isCommunityResource}function b(e){return p(e)&&e.isCommunityResource()}let m=!1;function g(){m||(m=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dBSgv:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AlchemyWebSocketProvider",()=>l),i.export(r,"AlchemyProvider",()=>h);"use strict";var n=e("@ethersproject/properties"),a=e("./formatter"),s=e("./websocket-provider"),o=e("@ethersproject/logger"),f=e("./_version"),d=e("./url-json-rpc-provider");let c=new o.Logger(f.version),u="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class l extends s.WebSocketProvider{constructor(e,t){let r=new h(e,t),i=r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(i,r.network),(0,n.defineReadOnly)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===u}}class h extends d.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){return null==e?u:(e&&"string"!=typeof e&&c.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:c.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===u&&(0,a.showThrottleMessage)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===u}}},{"@ethersproject/properties":"dmdV5","./formatter":"7RPp2","./websocket-provider":"83spj","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"83spj":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"WebSocketProvider",()=>h);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("./json-rpc-provider"),o=e("./ws"),f=e("@ethersproject/logger"),d=e("./_version"),c=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let u=new f.Logger(d.version),l=1;class h extends s.JsonRpcProvider{constructor(e,t){"any"===t&&u.throwError("WebSocketProvider does not support 'any' network yet",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,t):super("_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,a.defineReadOnly)(this,"_websocket",new o.WebSocket(this.connection.url)):(0,a.defineReadOnly)(this,"_websocket",e),(0,a.defineReadOnly)(this,"_requests",{}),(0,a.defineReadOnly)(this,"_subs",{}),(0,a.defineReadOnly)(this,"_subIds",{}),(0,a.defineReadOnly)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(e=>{this.websocket.send(this._requests[e].payload)})},this.websocket.onmessage=e=>{let t=e.data,r=JSON.parse(t);if(null!=r.id){let e=String(r.id),i=this._requests[e];if(delete this._requests[e],void 0!==r.result)i.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(i.payload),response:r.result,provider:this});else{let e=null;r.error?(e=Error(r.error.message||"unknown error"),(0,a.defineReadOnly)(e,"code",r.error.code||null),(0,a.defineReadOnly)(e,"response",t)):e=Error("unknown error"),i.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(i.payload),provider:this})}}else if("eth_subscription"===r.method){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){u.throwError("cannot reset events block on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){u.throwError("cannot set polling interval on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return c(this,void 0,void 0,function*(){return null})}set polling(e){e&&u.throwError("cannot set polling on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){let r=l++;return new Promise((i,n)=>{let a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(a),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?n(e):i(t)},payload:a},this._wsReady&&this.websocket.send(a)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return c(this,void 0,void 0,function*(){let i=this._subIds[e];null==i&&(i=Promise.all(t).then(e=>this.send("eth_subscribe",e)),this._subIds[e]=i);let n=yield i;this._subs[n]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let t=(0,n.BigNumber).from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>{this.emit("pending",e)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))});break;case"tx":{let t=e=>{let t=e.hash;this.getTransactionReceipt(t).then(e=>{e&&this.emit(t,e)})};t(e),this._subscribe("tx",["newHeads"],e=>{this._events.filter(e=>"tx"===e.type).forEach(t)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter(e=>"tx"===e.type).length)return;t="tx"}else if(this.listenerCount(e.event))return;let r=this._subIds[t];r&&(delete this._subIds[t],r.then(e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))}))}destroy(){return c(this,void 0,void 0,function*(){this.websocket.readyState===o.WebSocket.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","./json-rpc-provider":"7x7oZ","./ws":"7S9K4","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7x7oZ":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"JsonRpcSigner",()=>A),i.export(r,"JsonRpcProvider",()=>I);"use strict";var n=e("@ethersproject/abstract-signer"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),f=e("@ethersproject/properties"),d=e("@ethersproject/strings"),c=e("@ethersproject/transactions"),u=e("@ethersproject/web"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./base-provider"),b=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let m=new l.Logger(h.version),g=["call","estimateGas"];function y(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,s.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let i=y(e[r],t);if(i)return i}return null}if("string"==typeof e)try{return y(JSON.parse(e),t)}catch(e){}return null}function v(e,t,r){let i=r.transaction||r.signedTransaction;if("call"===e){let e=y(t,!0);if(e)return e.data;m.throwError("missing revert data in call exception; Transaction reverted without a reason string",l.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:i,error:t})}if("estimateGas"===e){let r=y(t.body,!1);null==r&&(r=y(t,!1)),r&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:i,error:t})}let n=t.message;throw t.code===l.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText),(n=(n||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&m.throwError("insufficient funds for intrinsic transaction cost",l.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:i}),n.match(/nonce (is )?too low/i)&&m.throwError("nonce has already been used",l.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:i}),n.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&m.throwError("replacement fee too low",l.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:i}),n.match(/only replay-protected/i)&&m.throwError("legacy pre-eip-155 transactions not supported",l.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:i}),g.indexOf(e)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:i}),t}function w(e){return new Promise(function(t){setTimeout(t,e)})}function _(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function M(e){return e?e.toLowerCase():e}let E={};class A extends n.Signer{constructor(e,t,r){if(super(),e!==E)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,f.defineReadOnly)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,f.defineReadOnly)(this,"_address",this.provider.formatter.address(r)),(0,f.defineReadOnly)(this,"_index",null)):"number"==typeof r?((0,f.defineReadOnly)(this,"_index",r),(0,f.defineReadOnly)(this,"_address",null)):m.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return m.throwError("cannot alter JSON-RPC Signer connection",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new S(E,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&m.throwError("unknown account #"+this._index,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,f.shallowCopy)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,f.shallowCopy)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>b(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&m.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,f.resolveProperties)({tx:(0,f.resolveProperties)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&m.throwArgumentError("from address mismatch","transaction",e):t.from=r;let i=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected transaction",l.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),v("sendTransaction",e,i)))})}signTransaction(e){return m.throwError("signing transactions is unsupported",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return b(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,u.poll)(()=>b(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return b(this,void 0,void 0,function*(){let t="string"==typeof e?(0,d.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,s.hexlify)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&m.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return b(this,void 0,void 0,function*(){let t="string"==typeof e?(0,d.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,s.hexlify)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&m.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return b(this,void 0,void 0,function*(){let i=yield(0,o._TypedDataEncoder).resolveNames(e,t,r,e=>this.provider.resolveName(e)),n=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[n.toLowerCase(),JSON.stringify((0,o._TypedDataEncoder).getPayload(i.domain,t,i.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:n,messageData:{domain:i.domain,types:t,value:i.value}}),e}})}unlock(e){return b(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class S extends A{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let x={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class I extends p.BaseProvider{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,f.getStatic)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,f.defineReadOnly)(this,"connection",Object.freeze({url:e})):(0,f.defineReadOnly)(this,"connection",Object.freeze((0,f.shallowCopy)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return b(this,void 0,void 0,function*(){yield w(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,f.getStatic)(this.constructor,"getNetwork");try{return t((0,a.BigNumber).from(e).toNumber())}catch(t){return m.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return m.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new A(E,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,f.deepCopy)(r),provider:this});let i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];let n=(0,u.fetchJson)(this.connection,JSON.stringify(r),_).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return i&&(this._cache[e]=n,setTimeout(()=>{this._cache[e]=null},0)),n}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[M(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[M(t.address),t.blockTag]];case"getCode":return["eth_getCode",[M(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[M(t.address),(0,s.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":{let e=(0,f.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[e(t.transaction,{from:!0}),t.blockTag]]}case"estimateGas":{let e=(0,f.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[e(t.transaction,{from:!0})]]}case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=M(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return b(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&(0,a.BigNumber).from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,f.shallowCopy)(t)).transaction=(0,f.shallowCopy)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&m.throwError(e+" not implemented",l.Logger.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return v(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){return function i(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;let i=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",i=i.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),i.then(function(){return w(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){i()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,f.shallowCopy)(x);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,f.checkProperties)(e,r);let i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,s.hexValue)((0,a.BigNumber).from(e[t]));"gasLimit"===t&&(t="gas"),i[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(i[t]=(0,s.hexlify)(e[t]))}),e.accessList&&(i.accessList=(0,c.accessListify)(e.accessList)),i}}},{"@ethersproject/abstract-signer":"j6EbC","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7S9K4":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"WebSocket",()=>s);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=null;try{if(s=WebSocket,null==s)throw Error("inject please")}catch(t){let e=new n.Logger(a.version);s=function(){e.throwError("WebSockets not supported in this environment",n.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bwHu3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"StaticJsonRpcProvider",()=>d),i.export(r,"UrlJsonRpcProvider",()=>c);"use strict";var n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let f=new a.Logger(s.version);class d extends o.JsonRpcProvider{detectNetwork(){var e,t,r,i;let s=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,i=function*(){let e=this.network;return null==e&&((e=yield s.detectNetwork.call(this))||f.throwError("no network detected",a.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,n.defineReadOnly)(this,"_network",e),this.emit("network",e,null))),e},new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})}}class c extends d{constructor(e,t){f.checkAbstract(new.target,c),e=(0,n.getStatic)(new.target,"getNetwork")(e),t=(0,n.getStatic)(new.target,"getApiKey")(t);let r=(0,n.getStatic)(new.target,"getUrl")(e,t);super(r,e),"string"==typeof t?(0,n.defineReadOnly)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e=>{(0,n.defineReadOnly)(this,e,t[e])})}_startPending(){f.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return f.throwError("API provider does not support signing",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return f.throwError("not implemented; sub-classes must override getUrl",a.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],afy2f:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AnkrProvider",()=>c);var n=e("./formatter"),a=e("./url-json-rpc-provider"),s=e("@ethersproject/logger"),o=e("./_version");let f=new s.Logger(o.version),d="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends a.UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===d}static getApiKey(e){return null==e?d:e}static getUrl(e,t){null==t&&(t=d);let r={allowGzip:!0,url:"https://"+function(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return f.throwArgumentError("unsupported network","name",e)}(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===d&&(0,n.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}},{"./formatter":"7RPp2","./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qhut":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"CloudflareProvider",()=>f);"use strict";var n=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class f extends n.UrlJsonRpcProvider{static getApiKey(e){return null!=e&&o.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":o.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,t){var r,i,n,a;let s=Object.create(null,{perform:{get:()=>super.perform}});return r=this,i=void 0,n=void 0,a=function*(){if("getBlockNumber"===e){let e=yield s.perform.call(this,"getBlock",{blockTag:"latest"});return e.number}return s.perform.call(this,e,t)},new(n||(n=Promise))(function(e,t){function s(e){try{f(a.next(e))}catch(e){t(e)}}function o(e){try{f(a.throw(e))}catch(e){t(e)}}function f(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,o)}f((a=a.apply(r,i||[])).next())})}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fduCf:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"EtherscanProvider",()=>v);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/transactions"),o=e("@ethersproject/web"),f=e("./formatter"),d=e("@ethersproject/logger"),c=e("./_version"),u=e("./base-provider"),l=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let h=new d.Logger(c.version);function p(e){let t={};for(let r in e){if(null==e[r])continue;let i=e[r];("type"!==r||0!==i)&&(i=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[r]?(0,n.hexValue)((0,n.hexlify)(i)):"accessList"===r?"["+(0,s.accessListify)(i).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,n.hexlify)(i),t[r]=i)}return t}function b(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){let t=Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function m(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let t=Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){let t=Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){let t=Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function g(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function y(e,t,r){if("call"===e&&t.code===d.Logger.errors.SERVER_ERROR){let e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,n.isHexString)(r))return r;h.throwError("missing revert data in call exception",d.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let i=t.message;throw t.code===d.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&h.throwError("insufficient funds for intrinsic transaction cost",d.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&h.throwError("nonce has already been used",d.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/another transaction with same nonce/)&&h.throwError("replacement fee too low",d.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/execution failed due to an exception|execution reverted/)&&h.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class v extends u.BaseProvider{constructor(e,t){super(e),(0,a.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,a.defineReadOnly)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return h.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let i=t[r];return null!=i&&(e+=`&${r}=${i}`),e},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${i}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return l(this,void 0,void 0,function*(){let i=r?this.getPostUrl():this.getUrl(e,t),n=r?this.getPostData(e,t):null,s="proxy"===e?m:b;this.emit("debug",{action:"request",request:i,provider:this});let d={url:i,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,f.showThrottleMessage)(),Promise.resolve(!0))},c=null;n&&(d.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(n).map(e=>`${e}=${n[e]}`).join("&"));let u=yield(0,o.fetchJson)(d,c,s||m);return this.emit("debug",{action:"response",request:i,response:(0,a.deepCopy)(u),provider:this}),u})}detectNetwork(){return l(this,void 0,void 0,function*(){return this.network})}perform(e,t){let r=Object.create(null,{perform:{get:()=>super.perform}});return l(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(e=>y("sendTransaction",e,t.signedTransaction));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let e=p(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("call",e,t.transaction)}}case"estimateGas":{let e=p(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("estimateGas",e,t.transaction)}}case"getLogs":{let e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=g(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=g(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&h.throwError("unsupported topic count",d.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){let r=t.filter.topics[0];("string"!=typeof r||66!==r.length)&&h.throwError("unsupported topic format",d.Logger.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}let r=yield this.fetch("logs",e),i={};for(let e=0;e{["contractAddress","to"].forEach(function(t){""==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})})}isCommunityResource(){return null==this.apiKey}}},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],LdkdG:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"FallbackProvider",()=>x);"use strict";var n=e("@ethersproject/abstract-provider"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/properties"),f=e("@ethersproject/random"),d=e("@ethersproject/web"),c=e("./base-provider"),u=e("./formatter"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let b=new l.Logger(h.version);function m(){return new Date().getTime()}function g(e){let t=null;for(let r=0;rt?null:(i+n)/2}function v(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if((0,a.BigNumber).isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>v(e)));if("object"==typeof e){let t=Object.keys(e);return t.sort(),"{"+t.map(t=>{let r=e[t];return r="function"==typeof r?"[function]":v(r),JSON.stringify(t)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof e)}let w=1;function _(e){let t=null,r=null,i=new Promise(i=>{r=setTimeout(t=function(){r&&(clearTimeout(r),r=null),i()},e)});return{cancel:t,getPromise:function(){return i},wait:e=>i=i.then(e)}}let M=[l.Logger.errors.CALL_EXCEPTION,l.Logger.errors.INSUFFICIENT_FUNDS,l.Logger.errors.NONCE_EXPIRED,l.Logger.errors.REPLACEMENT_UNDERPRICED,l.Logger.errors.UNPREDICTABLE_GAS_LIMIT],E=["address","args","errorArgs","errorSignature","method","transaction"];function A(e,t){let r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function S(e,t){return p(this,void 0,void 0,function*(){let r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,d.poll)(()=>new Promise((i,n)=>{setTimeout(function(){return r.blockNumber>=t?i(r):e.cancelled?i(null):i(void 0)},0)}),{oncePoll:r})})}class x extends c.BaseProvider{constructor(e,t){0===e.length&&b.throwArgumentError("missing providers","providers",e);let r=e.map((e,t)=>{if((0,n.Provider).isProvider(e)){let t=(0,u.isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:1})}let r=(0,o.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,u.isCommunityResource)(e)?2e3:750),null==r.weight&&(r.weight=1);let i=r.weight;return(i%1||i>512||i<1)&&b.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,i),Object.freeze(r)}),i=r.reduce((e,t)=>e+t.weight,0);null==t?t=i/2:t>i&&b.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let a=g(r.map(e=>e.provider.network));null==a&&(a=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(e,t)},0)})),super(a),(0,o.defineReadOnly)(this,"providerConfigs",Object.freeze(r)),(0,o.defineReadOnly)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return p(this,void 0,void 0,function*(){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()));return g(e)})}perform(e,t){return p(this,void 0,void 0,function*(){if("sendTransaction"===e){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(t.signedTransaction).then(e=>e.hash,e=>e)));for(let t=0;te.result),i=y(t.map(e=>e.result),2);if(null!=i)return i=Math.ceil(i),r.indexOf(i+1)>=0&&i++,i>=e._highestBlockNumber&&(e._highestBlockNumber=i),e._highestBlockNumber};case"getGasPrice":return function(e){let t=e.map(e=>e.result);return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return y(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":a=function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).confirmations=-1,v(e))};break;case"getBlock":a=r.includeTransactions?function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).transactions=e.transactions.map(e=>((e=(0,o.shallowCopy)(e)).confirmations=-1,e)),v(e))}:function(e){return null==e?null:v(e)};break;default:throw Error("unknown method: "+t)}return i=a,n=e.quorum,function(e){let t={};e.forEach(e=>{let r=i(e.result);t[r]||(t[r]={count:0,result:e.result}),t[r].count++});let r=Object.keys(t);for(let e=0;e=n)return i.result}}}(this,e,t),i=(0,f.shuffled)(this.providerConfigs.map(o.shallowCopy));i.sort((e,t)=>e.priority-t.priority);let n=this._highestBlockNumber,a=0,d=!0;for(;;){let f=m(),c=i.filter(e=>e.runner&&f-e.starte+t.weight,0);for(;c{r.staller=null}),r.runner=(function(e,t,r,i){return p(this,void 0,void 0,function*(){let n=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return n[r]();case"getEtherPrice":if(n.getEtherPrice)return n.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),n[r](i.address,i.blockTag||"latest");case"getStorageAt":return i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),n.getStorageAt(i.address,i.position,i.blockTag||"latest");case"getBlock":return i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),n[i.includeTransactions?"getBlockWithTransactions":"getBlock"](i.blockTag||i.blockHash);case"call":case"estimateGas":if(i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),"call"===r&&i.blockTag)return n[r](i.transaction,i.blockTag);return n[r](i.transaction);case"getTransaction":case"getTransactionReceipt":return n[r](i.transactionHash);case"getLogs":{let r=i.filter;return(r.fromBlock&&(0,s.isHexString)(r.fromBlock)||r.toBlock&&(0,s.isHexString)(r.toBlock))&&(n=yield S(e,t)),n.getLogs(r)}}return b.throwError("unknown method error",l.Logger.errors.UNKNOWN_ERROR,{method:r,params:i})})})(r,n,e,t).then(i=>{r.done=!0,r.result=i,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:A(r,m()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})},i=>{r.done=!0,r.error=i,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:A(r,m()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:A(r,null),request:{method:e,params:(0,o.deepCopy)(t)},provider:this}),c+=r.weight}let u=[];i.forEach(e=>{!e.done&&e.runner&&(u.push(e.runner),e.staller&&u.push(e.staller.getPromise()))}),u.length&&(yield Promise.race(u));let h=i.filter(e=>e.done&&null==e.error);if(h.length>=this.quorum){let e=r(h);if(void 0!==e)return i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;d||(yield _(100).getPromise()),d=!1}let g=i.reduce((e,t)=>{if(!t.done||null==t.error)return e;let r=t.error.code;return M.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e},{});if(Object.keys(g).forEach(e=>{let t=g[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0});let r=t.error,n={};E.forEach(e=>{null!=r[e]&&(n[e]=r[e])}),b.throwError(r.reason||r.message,e,n)}),0===i.filter(e=>!e.done).length)break}return i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),b.throwError("failed to meet quorum",l.Logger.errors.SERVER_ERROR,{method:e,params:t,results:i.map(e=>A(e)),provider:this})})}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/web":"5uH8k","./base-provider":"lEHz5","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DeRN":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";i.defineInteropFlag(r),i.export(r,"IpcProvider",()=>n);let n=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8Bo5e":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"InfuraWebSocketProvider",()=>l),i.export(r,"InfuraProvider",()=>h);"use strict";var n=e("@ethersproject/properties"),a=e("./websocket-provider"),s=e("./formatter"),o=e("@ethersproject/logger"),f=e("./_version"),d=e("./url-json-rpc-provider");let c=new o.Logger(f.version),u="84842078b09946638c03157f83405213";class l extends a.WebSocketProvider{constructor(e,t){let r=new h(e,t),i=r.connection;i.password&&c.throwError("INFURA WebSocket project secrets unsupported",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});let a=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(a,e),(0,n.defineReadOnly)(this,"apiKey",r.projectId),(0,n.defineReadOnly)(this,"projectId",r.projectId),(0,n.defineReadOnly)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===u}}class h extends d.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){let t={apiKey:u,projectId:u,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(c.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),c.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:c.throwError("unsupported network",o.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===u&&(0,s.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(i.user="",i.password=t.projectSecret),i}isCommunityResource(){return this.projectId===u}}},{"@ethersproject/properties":"dmdV5","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aCNcD:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"JsonRpcBatchProvider",()=>o);var n=e("@ethersproject/properties"),a=e("@ethersproject/web"),s=e("./json-rpc-provider");class o extends s.JsonRpcProvider{send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let i={request:r,resolve:null,reject:null},s=new Promise((e,t)=>{i.resolve=e,i.reject=t});return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,n.deepCopy)(t),provider:this}),(0,a.fetchJson)(this.connection,JSON.stringify(t)).then(r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach((e,t)=>{let i=r[t];if(i.error){let t=Error(i.error.message);t.code=i.error.code,t.data=i.error.data,e.reject(t)}else e.resolve(i.result)})},r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach(e=>{e.reject(r)})})},10)),s}}},{"@ethersproject/properties":"dmdV5","@ethersproject/web":"5uH8k","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"19g4w":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NodesmithProvider",()=>f);"use strict";var n=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class f extends n.UrlJsonRpcProvider{static getApiKey(e){return e&&"string"!=typeof e&&o.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){o.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:o.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dwl0t:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"PocketProvider",()=>d);"use strict";var n=e("@ethersproject/logger"),a=e("./_version"),s=e("./url-json-rpc-provider");let o=new n.Logger(a.version),f="62e1ad51b37b8e00394bda3b";class d extends s.UrlJsonRpcProvider{static getApiKey(e){let t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=f:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:o.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:o.throwError("unsupported network",n.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i=`https://${r}/v1/lb/${t.applicationId}`,a={headers:{},url:i};return null!=t.applicationSecretKey&&(a.user="",a.password=t.applicationSecretKey),a}isCommunityResource(){return this.applicationId===f}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aAfb":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Web3Provider",()=>u);"use strict";var n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let f=new a.Logger(s.version),d=1;function c(e,t){let r="Web3LegacyFetcher";return function(e,i){let a={method:e,params:i,id:d++,jsonrpc:"2.0"};return new Promise((e,i)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,n.deepCopy)(a),provider:this}),t(a,(t,n)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:a,provider:this}),i(t);if(this.emit("debug",{action:"response",fetcher:r,request:a,response:n,provider:this}),n.error){let e=Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,i(e)}e(n.result)})})}}class u extends o.JsonRpcProvider{constructor(e,t){null==e&&f.throwArgumentError("missing provider","provider",e);let r=null,i=null,a=null;"function"==typeof e?(r="unknown:",i=e):(((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),a=e,e.request)?(""===r&&(r="eip-1193:"),i=function(t,r){null==r&&(r=[]);let i={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,n.deepCopy)(i),provider:this}),e.request(i).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:this}),e})}):e.sendAsync?i=c(e,e.sendAsync.bind(e)):e.send?i=c(e,e.send.bind(e)):f.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,n.defineReadOnly)(this,"jsonRpcFetchFunc",i),(0,n.defineReadOnly)(this,"provider",a)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7jy5m":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AbiCoder",()=>n.AbiCoder),i.export(r,"defaultAbiCoder",()=>n.defaultAbiCoder),i.export(r,"Fragment",()=>n.Fragment),i.export(r,"ConstructorFragment",()=>n.ConstructorFragment),i.export(r,"ErrorFragment",()=>n.ErrorFragment),i.export(r,"EventFragment",()=>n.EventFragment),i.export(r,"FunctionFragment",()=>n.FunctionFragment),i.export(r,"ParamType",()=>n.ParamType),i.export(r,"FormatTypes",()=>n.FormatTypes),i.export(r,"checkResultErrors",()=>n.checkResultErrors),i.export(r,"Logger",()=>h.Logger),i.export(r,"RLP",()=>y),i.export(r,"_fetchData",()=>A._fetchData),i.export(r,"fetchJson",()=>A.fetchJson),i.export(r,"poll",()=>A.poll),i.export(r,"checkProperties",()=>g.checkProperties),i.export(r,"deepCopy",()=>g.deepCopy),i.export(r,"defineReadOnly",()=>g.defineReadOnly),i.export(r,"getStatic",()=>g.getStatic),i.export(r,"resolveProperties",()=>g.resolveProperties),i.export(r,"shallowCopy",()=>g.shallowCopy),i.export(r,"arrayify",()=>f.arrayify),i.export(r,"concat",()=>f.concat),i.export(r,"stripZeros",()=>f.stripZeros),i.export(r,"zeroPad",()=>f.zeroPad),i.export(r,"isBytes",()=>f.isBytes),i.export(r,"isBytesLike",()=>f.isBytesLike),i.export(r,"defaultPath",()=>c.defaultPath),i.export(r,"HDNode",()=>c.HDNode),i.export(r,"SigningKey",()=>v.SigningKey),i.export(r,"Interface",()=>n.Interface),i.export(r,"LogDescription",()=>n.LogDescription),i.export(r,"TransactionDescription",()=>n.TransactionDescription),i.export(r,"base58",()=>o.Base58),i.export(r,"base64",()=>s),i.export(r,"hexlify",()=>f.hexlify),i.export(r,"isHexString",()=>f.isHexString),i.export(r,"hexConcat",()=>f.hexConcat),i.export(r,"hexStripZeros",()=>f.hexStripZeros),i.export(r,"hexValue",()=>f.hexValue),i.export(r,"hexZeroPad",()=>f.hexZeroPad),i.export(r,"hexDataLength",()=>f.hexDataLength),i.export(r,"hexDataSlice",()=>f.hexDataSlice),i.export(r,"nameprep",()=>w.nameprep),i.export(r,"_toEscapedUtf8String",()=>w._toEscapedUtf8String),i.export(r,"toUtf8Bytes",()=>w.toUtf8Bytes),i.export(r,"toUtf8CodePoints",()=>w.toUtf8CodePoints),i.export(r,"toUtf8String",()=>w.toUtf8String),i.export(r,"Utf8ErrorFuncs",()=>w.Utf8ErrorFuncs),i.export(r,"formatBytes32String",()=>w.formatBytes32String),i.export(r,"parseBytes32String",()=>w.parseBytes32String),i.export(r,"dnsEncode",()=>d.dnsEncode),i.export(r,"hashMessage",()=>d.hashMessage),i.export(r,"namehash",()=>d.namehash),i.export(r,"isValidName",()=>d.isValidName),i.export(r,"id",()=>d.id),i.export(r,"_TypedDataEncoder",()=>d._TypedDataEncoder),i.export(r,"getAddress",()=>a.getAddress),i.export(r,"getIcapAddress",()=>a.getIcapAddress),i.export(r,"getContractAddress",()=>a.getContractAddress),i.export(r,"getCreate2Address",()=>a.getCreate2Address),i.export(r,"isAddress",()=>a.isAddress),i.export(r,"formatEther",()=>M.formatEther),i.export(r,"parseEther",()=>M.parseEther),i.export(r,"formatUnits",()=>M.formatUnits),i.export(r,"parseUnits",()=>M.parseUnits),i.export(r,"commify",()=>M.commify),i.export(r,"computeHmac",()=>p.computeHmac),i.export(r,"keccak256",()=>l.keccak256),i.export(r,"ripemd160",()=>p.ripemd160),i.export(r,"sha256",()=>p.sha256),i.export(r,"sha512",()=>p.sha512),i.export(r,"randomBytes",()=>m.randomBytes),i.export(r,"shuffled",()=>m.shuffled),i.export(r,"solidityPack",()=>b.pack),i.export(r,"solidityKeccak256",()=>b.keccak256),i.export(r,"soliditySha256",()=>b.sha256),i.export(r,"splitSignature",()=>f.splitSignature),i.export(r,"joinSignature",()=>f.joinSignature),i.export(r,"accessListify",()=>_.accessListify),i.export(r,"parseTransaction",()=>_.parse),i.export(r,"serializeTransaction",()=>_.serialize),i.export(r,"TransactionTypes",()=>_.TransactionTypes),i.export(r,"getJsonWalletAddress",()=>u.getJsonWalletAddress),i.export(r,"computeAddress",()=>_.computeAddress),i.export(r,"recoverAddress",()=>_.recoverAddress),i.export(r,"computePublicKey",()=>v.computePublicKey),i.export(r,"recoverPublicKey",()=>v.recoverPublicKey),i.export(r,"verifyMessage",()=>E.verifyMessage),i.export(r,"verifyTypedData",()=>E.verifyTypedData),i.export(r,"getAccountPath",()=>c.getAccountPath),i.export(r,"mnemonicToEntropy",()=>c.mnemonicToEntropy),i.export(r,"entropyToMnemonic",()=>c.entropyToMnemonic),i.export(r,"isValidMnemonic",()=>c.isValidMnemonic),i.export(r,"mnemonicToSeed",()=>c.mnemonicToSeed),i.export(r,"SupportedAlgorithm",()=>p.SupportedAlgorithm),i.export(r,"UnicodeNormalizationForm",()=>w.UnicodeNormalizationForm),i.export(r,"Utf8ErrorReason",()=>w.Utf8ErrorReason),i.export(r,"Indexed",()=>n.Indexed);"use strict";var n=e("@ethersproject/abi"),a=e("@ethersproject/address"),s=e("@ethersproject/base64"),o=e("@ethersproject/basex"),f=e("@ethersproject/bytes"),d=e("@ethersproject/hash"),c=e("@ethersproject/hdnode"),u=e("@ethersproject/json-wallets"),l=e("@ethersproject/keccak256"),h=e("@ethersproject/logger"),p=e("@ethersproject/sha2"),b=e("@ethersproject/solidity"),m=e("@ethersproject/random"),g=e("@ethersproject/properties"),y=e("@ethersproject/rlp"),v=e("@ethersproject/signing-key"),w=e("@ethersproject/strings"),_=e("@ethersproject/transactions"),M=e("@ethersproject/units"),E=e("@ethersproject/wallet"),A=e("@ethersproject/web")},{"@ethersproject/abi":"gbtNr","@ethersproject/address":"7BZuS","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/json-wallets":"7BEU7","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","@ethersproject/sha2":"bznen","@ethersproject/solidity":"fUvC2","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/units":"atzpk","@ethersproject/wallet":"euBMB","@ethersproject/web":"5uH8k","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fUvC2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"pack",()=>b),i.export(r,"keccak256",()=>m),i.export(r,"sha256",()=>g);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/sha2"),f=e("@ethersproject/strings"),d=e("@ethersproject/logger"),c=e("./_version");let u=RegExp("^bytes([0-9]+)$"),l=RegExp("^(u?int)([0-9]*)$"),h=RegExp("^(.*)\\[([0-9]*)\\]$"),p=new d.Logger(c.version);function b(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,i){r.push(function e(t,r,i){switch(t){case"address":if(i)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r);case"string":return(0,f.toUtf8Bytes)(r);case"bytes":return(0,a.arrayify)(r);case"bool":if(r=r?"0x01":"0x00",i)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r)}let s=t.match(l);if(s){let e=parseInt(s[2]||"256");return(s[2]&&String(e)!==s[2]||e%8!=0||0===e||e>256)&&p.throwArgumentError("invalid number type","type",t),i&&(e=256),r=(0,n.BigNumber).from(r).toTwos(e),(0,a.zeroPad)(r,e/8)}if(s=t.match(u)){let e=parseInt(s[1]);return((String(e)!==s[1]||0===e||e>32)&&p.throwArgumentError("invalid bytes type","type",t),(0,a.arrayify)(r).byteLength!==e&&p.throwArgumentError(`invalid value for ${t}`,"value",r),i)?(0,a.arrayify)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((s=t.match(h))&&Array.isArray(r)){let i=s[1],n=parseInt(s[2]||String(r.length));n!=r.length&&p.throwArgumentError(`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(i,t,!0))}),(0,a.concat)(o)}return p.throwArgumentError("invalid type","type",t)}(e,t[i]))}),(0,a.hexlify)((0,a.concat)(r))}function m(e,t){return(0,s.keccak256)(b(e,t))}function g(e,t){return(0,o.sha256)(b(e,t))}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"csbL3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],csbL3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="solidity/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],atzpk:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"commify",()=>d),i.export(r,"formatUnits",()=>c),i.export(r,"parseUnits",()=>u),i.export(r,"formatEther",()=>l),i.export(r,"parseEther",()=>h);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version),f=["wei","kwei","mwei","gwei","szabo","finney","ether"];function d(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&o.throwArgumentError("invalid value","value",e);let r=t[0],i="";for("-"===r.substring(0,1)&&(i="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let n="";for(2===t.length&&(n="."+(t[1]||"0"));n.length>2&&"0"===n[n.length-1];)n=n.substring(0,n.length-1);let a=[];for(;r.length;)if(r.length<=3){a.unshift(r);break}else{let e=r.length-3;a.unshift(r.substring(e)),r=r.substring(0,e)}return i+a.join(",")+n}function c(e,t){if("string"==typeof t){let e=f.indexOf(t);-1!==e&&(t=3*e)}return(0,n.formatFixed)(e,null!=t?t:18)}function u(e,t){if("string"!=typeof e&&o.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=f.indexOf(t);-1!==e&&(t=3*e)}return(0,n.parseFixed)(e,null!=t?t:18)}function l(e){return c(e,18)}function h(e){return u(e,18)}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/logger":"6NWvR","./_version":"fmwkF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fmwkF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="units/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHxZw:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="ethers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gHKeo:[function(e,t,r){"use strict";r.version=e("e6672bc3ba1c9961").version,r.utils=e("5bc72f89931ad0f5"),r.rand=e("7f90d752a36f35cf"),r.curve=e("d11da69c91421223"),r.curves=e("6845bad4ed92c3e4"),r.ec=e("b5f2e1f615acc4b"),r.eddsa=e("79ae761761517980")},{e6672bc3ba1c9961:"3Zkz7","5bc72f89931ad0f5":"3rt5D","7f90d752a36f35cf":"dpC9B",d11da69c91421223:"2kHkA","6845bad4ed92c3e4":"kwPzC",b5f2e1f615acc4b:"eyBGo","79ae761761517980":"axOwW"}],"3Zkz7":[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.7","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"3rt5D":[function(e,t,r){"use strict";var i=e("f4cbcf6f6eb25ca0"),n=e("d8ee30463f95a0fd"),a=e("997429d6bbd82d59");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);for(s=0;s(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{f4cbcf6f6eb25ca0:"2gemu",d8ee30463f95a0fd:"h59lk","997429d6bbd82d59":"6lUA8"}],"2gemu":[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1cf9b8cfa268aab5").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1cf9b8cfa268aab5":"3eno3"}],"6lUA8":[function(e,t,r){"use strict";function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",r=0;r>8,s=255&n;a?r.push(a,s):r.push(s)}return r},r.zero2=i,r.toHex=n,r.encode=function(e,t){return"hex"===t?n(e):e}},{}],dpC9B:[function(e,t,r){var i;function n(e){this.rand=e}if(t.exports=function(e){return i||(i=new n(null)),i.generate(e)},t.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.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 d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"89f794ef417dc31c":"3rt5D",c314b0ac30b69c4a:"2gemu","6ac4d7c73f24ab9c":"cJ2FP","6e622edb7498c94":"8aa6K"}],"8aBJF":[function(e,t,r){"use strict";var i=e("ebdf19f04f3ed250"),n=e("cb5bb4841a749f68"),a=e("51280941230b3f98"),s=e("ea7949a80be00261");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{ebdf19f04f3ed250:"2gemu",cb5bb4841a749f68:"cJ2FP","51280941230b3f98":"8aa6K",ea7949a80be00261:"3rt5D"}],g6imV:[function(e,t,r){"use strict";var i=e("7bd66a4710450b08"),n=e("ccef46dcf03d45c6"),a=e("19937272cbe23c92"),s=e("108c8ead5f54502b"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{"7bd66a4710450b08":"3rt5D",ccef46dcf03d45c6:"2gemu","19937272cbe23c92":"cJ2FP","108c8ead5f54502b":"8aa6K"}],kwPzC:[function(e,t,r){"use strict";var i,n=e("1c9db357c0845afa"),a=e("47ec78745540f875"),s=e("e30b16e4a47a5405").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("9eada5f7049e7dfd")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"1c9db357c0845afa":"2Tlxk","47ec78745540f875":"2kHkA",e30b16e4a47a5405:"3rt5D","9eada5f7049e7dfd":"i8FLx"}],i8FLx:[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"]]}}},{}],eyBGo:[function(e,t,r){"use strict";var i=e("2e69183faf5285a1"),n=e("b0cb641292e4911d"),a=e("eab3e45147b180ba"),s=e("a5ce61d26ce01c4c"),o=e("f6342f89ac472937"),f=a.assert,d=e("eb5ba559e423f6e9"),c=e("7c5e2c76c574ce41");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"2e69183faf5285a1":"2gemu",b0cb641292e4911d:"eo8Xm",eab3e45147b180ba:"3rt5D",a5ce61d26ce01c4c:"kwPzC",f6342f89ac472937:"dpC9B",eb5ba559e423f6e9:"4fq9t","7c5e2c76c574ce41":"5Epmh"}],eo8Xm:[function(e,t,r){"use strict";var i=e("629972fec592198f"),n=e("c20531edfb274a2c"),a=e("43ff1863ab3fce20");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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}t.exports=s,s.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n=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,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var a=[];a.length"}},{"55cc33a33cda153d":"2gemu",bda8b1ff480a7f3:"3rt5D"}],"5Epmh":[function(e,t,r){"use strict";var i=e("a7ae8f0fe39990e7"),n=e("5df7da4811374387"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4||0===e[t.place])return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s||(128&e[r.place])!=0)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place||(128&e[r.place])!=0)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{a7ae8f0fe39990e7:"2gemu","5df7da4811374387":"3rt5D"}],axOwW:[function(e,t,r){"use strict";var i=e("50f9bfa8a484d5d8"),n=e("68956d27442d6321"),a=e("99ec52641eff141d"),s=a.assert,o=a.parseBytes,f=e("2ad2982d76b37f15"),d=e("76c25a1d63d10c1b");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.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 i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]4294967295)throw RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0){if(e>65536)for(var i=0;i>>32-t}function d(e,t,r,i,n,a,s){return f(e+(t&r|~t&i)+n+a|0,s)+t|0}function c(e,t,r,i,n,a,s){return f(e+(t&i|r&~i)+n+a|0,s)+t|0}function u(e,t,r,i,n,a,s){return f(e+(t^r^i)+n+a|0,s)+t|0}function l(e,t,r,i,n,a,s){return f(e+(r^(t|~i))+n+a|0,s)+t|0}i(o,n),o.prototype._update=function(){for(var e=0;e<16;++e)s[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,i=this._c,n=this._d;t=d(t,r,i,n,s[0],3614090360,7),n=d(n,t,r,i,s[1],3905402710,12),i=d(i,n,t,r,s[2],606105819,17),r=d(r,i,n,t,s[3],3250441966,22),t=d(t,r,i,n,s[4],4118548399,7),n=d(n,t,r,i,s[5],1200080426,12),i=d(i,n,t,r,s[6],2821735955,17),r=d(r,i,n,t,s[7],4249261313,22),t=d(t,r,i,n,s[8],1770035416,7),n=d(n,t,r,i,s[9],2336552879,12),i=d(i,n,t,r,s[10],4294925233,17),r=d(r,i,n,t,s[11],2304563134,22),t=d(t,r,i,n,s[12],1804603682,7),n=d(n,t,r,i,s[13],4254626195,12),i=d(i,n,t,r,s[14],2792965006,17),r=d(r,i,n,t,s[15],1236535329,22),t=c(t,r,i,n,s[1],4129170786,5),n=c(n,t,r,i,s[6],3225465664,9),i=c(i,n,t,r,s[11],643717713,14),r=c(r,i,n,t,s[0],3921069994,20),t=c(t,r,i,n,s[5],3593408605,5),n=c(n,t,r,i,s[10],38016083,9),i=c(i,n,t,r,s[15],3634488961,14),r=c(r,i,n,t,s[4],3889429448,20),t=c(t,r,i,n,s[9],568446438,5),n=c(n,t,r,i,s[14],3275163606,9),i=c(i,n,t,r,s[3],4107603335,14),r=c(r,i,n,t,s[8],1163531501,20),t=c(t,r,i,n,s[13],2850285829,5),n=c(n,t,r,i,s[2],4243563512,9),i=c(i,n,t,r,s[7],1735328473,14),r=c(r,i,n,t,s[12],2368359562,20),t=u(t,r,i,n,s[5],4294588738,4),n=u(n,t,r,i,s[8],2272392833,11),i=u(i,n,t,r,s[11],1839030562,16),r=u(r,i,n,t,s[14],4259657740,23),t=u(t,r,i,n,s[1],2763975236,4),n=u(n,t,r,i,s[4],1272893353,11),i=u(i,n,t,r,s[7],4139469664,16),r=u(r,i,n,t,s[10],3200236656,23),t=u(t,r,i,n,s[13],681279174,4),n=u(n,t,r,i,s[0],3936430074,11),i=u(i,n,t,r,s[3],3572445317,16),r=u(r,i,n,t,s[6],76029189,23),t=u(t,r,i,n,s[9],3654602809,4),n=u(n,t,r,i,s[12],3873151461,11),i=u(i,n,t,r,s[15],530742520,16),r=u(r,i,n,t,s[2],3299628645,23),t=l(t,r,i,n,s[0],4096336452,6),n=l(n,t,r,i,s[7],1126891415,10),i=l(i,n,t,r,s[14],2878612391,15),r=l(r,i,n,t,s[5],4237533241,21),t=l(t,r,i,n,s[12],1700485571,6),n=l(n,t,r,i,s[3],2399980690,10),i=l(i,n,t,r,s[10],4293915773,15),r=l(r,i,n,t,s[1],2240044497,21),t=l(t,r,i,n,s[8],1873313359,6),n=l(n,t,r,i,s[15],4264355552,10),i=l(i,n,t,r,s[6],2734768916,15),r=l(r,i,n,t,s[13],1309151649,21),t=l(t,r,i,n,s[4],4149444226,6),n=l(n,t,r,i,s[11],3174756917,10),i=l(i,n,t,r,s[2],718787259,15),r=l(r,i,n,t,s[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+n|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"634114d48656c754":"cJ2FP","4b170874b4cb8d4e":"6UiEZ","72d4e45c6a42a2da":"6CY3D"}],"6UiEZ":[function(e,t,r){"use strict";var i=e("27eaec8a721206a5").Buffer,n=e("c5aab47d8f1d340a").Transform;function a(e){n.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("91e9fa68d440541e")(a,n),a.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=o,(o=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*o);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a},{"27eaec8a721206a5":"6CY3D",c5aab47d8f1d340a:"1mxOP","91e9fa68d440541e":"cJ2FP"}],"1mxOP":[function(e,t,r){(r=t.exports=e("68bb3bdae87803ec")).Stream=r,r.Readable=r,r.Writable=e("74167f79b688eaf7"),r.Duplex=e("84600f6783428a47"),r.Transform=e("23bee5f697448a0"),r.PassThrough=e("e0ec4b8e438dbbd"),r.finished=e("6cc0f9af7147cdbc"),r.pipeline=e("f90db22d01d3c3d1")},{"68bb3bdae87803ec":"5GpgS","74167f79b688eaf7":"7gwGj","84600f6783428a47":"3r5YV","23bee5f697448a0":"fVIBO",e0ec4b8e438dbbd:"kVosf","6cc0f9af7147cdbc":"10aVq",f90db22d01d3c3d1:"i7EMx"}],"5GpgS":[function(e,t,r){"use strict";var i,n,a,s,o,f=arguments[3],d=e("896ff8d56553f7a");t.exports=x,x.ReadableState=S,e("16782d660ac22e0c").EventEmitter;var c=function(e,t){return e.listeners(t).length},u=e("9a34f23fa53f83f7"),l=e("fb95ecaa88342eae").Buffer,h=(void 0!==f?f:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=e("a4a723b7297c7152");n=p&&p.debuglog?p.debuglog("stream"):function(){};var b=e("7a14cc1689b8c63e"),m=e("efa8155386cc4283"),g=e("994c984d08c7bbf2").getHighWaterMark,y=e("8de60461b822641b").codes,v=y.ERR_INVALID_ARG_TYPE,w=y.ERR_STREAM_PUSH_AFTER_EOF,_=y.ERR_METHOD_NOT_IMPLEMENTED,M=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("19affa8ce41f090d")(x,u);var E=m.errorOrDestroy,A=["error","close","destroy","pause","resume"];function S(t,r,n){i=i||e("f1c95f846e94e4eb"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=e("6392acd10886f115").StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function x(t){if(i=i||e("f1c95f846e94e4eb"),!(this instanceof x))return new x(t);var r=this instanceof i;this._readableState=new S(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function I(e,t,r,i,a){n("readableAddChunk",t);var s,o,f,d,c,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(n("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,u);else{if(a||(s=u,o=t,l.isBuffer(o)||o instanceof h||"string"==typeof o||void 0===o||s.objectMode||(f=new v("chunk",["string","Buffer","Uint8Array"],o)),c=f),c)E(e,c);else if(u.objectMode||t&&t.length>0){if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===l.prototype||(d=t,t=l.from(d)),i)u.endEmitted?E(e,new M):R(e,u,t,!0);else if(u.ended)E(e,new w);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?R(e,u,t,!1):P(e,u)):R(e,u,t,!1)}}else i||(u.reading=!1,P(e,u))}return!u.ended&&(u.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function T(e){var t=e._readableState;n("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(n("emitReadable",t.flowing),t.emittedReadable=!0,d.nextTick(C,e))}function C(e){var t=e._readableState;n("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function P(e,t){t.readingMore||(t.readingMore=!0,d.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){n("readable nexttick read 0"),e.read(0)}function B(e,t){n("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(n("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function F(e){var t=e._readableState;n("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,d.nextTick(U,t,e))}function U(e,t){if(n("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return n("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?F(this):T(this),null;if(0===(e=k(e,r))&&r.ended)return 0===r.length&&F(this),null;var a=r.needReadable;return n("need readable",a),(0===r.length||r.length-e0?D(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&F(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){E(this,new _("_read()"))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,n("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===d.stdout||e===d.stderr?b:s;function s(){n("onend"),e.end()}i.endEmitted?d.nextTick(a):r.once("end",a),e.on("unpipe",function t(a,d){n("onunpipe"),a===r&&d&&!1===d.hasUnpiped&&(d.hasUnpiped=!0,n("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",o),e.removeListener("error",l),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",b),r.removeListener("data",u),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o())});var o=function(){var e=r._readableState;n("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,L(r))};e.on("drain",o);var f=!1;function u(t){n("ondata");var a=e.write(t);n("dest.write",a),!1===a&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!f&&(n("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function l(t){n("onerror",t),b(),e.removeListener("error",l),0===c(e,"error")&&E(e,t)}function h(){e.removeListener("finish",p),b()}function p(){n("onfinish"),e.removeListener("close",h),b()}function b(){n("unpipe"),r.unpipe(e)}return r.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(n("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,n("on readable",i.length,i.reading),i.length?T(this):i.reading||d.nextTick(j,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&d.nextTick(N,this),r},x.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&d.nextTick(N,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(n("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,d.nextTick(B,this,e))),e.paused=!1,this},x.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var a in e.on("end",function(){if(n("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){n("wrapped data"),r.decoder&&(a=r.decoder.write(a)),(!r.objectMode||null!=a)&&(r.objectMode||a&&a.length)&&(t.push(a)||(i=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var s=0;s0&&s.length>n&&!s.warned){s.warned=!0;var n,a,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 l(){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 i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=l.bind(i);return n.listener=r,i.wrapFn=n,n}function p(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]: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 f=n[e];if(void 0===f)return!1;if("function"==typeof f)a(f,this,t);else for(var d=f.length,c=m(f,d),r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,n=a;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);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?i(this._events):[]}},{}],"8Ppiy":[function(e,t,r){t.exports=e("ed88fc9aa73f911").EventEmitter},{ed88fc9aa73f911:"ikfQ0"}],hhdWi:[function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,i=o.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=n.data,r=a,o.prototype.copy.call(t,i,r),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(e,t){var r;return en.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0==(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(a));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return f(this,n(n({},t),{},{depth:0,customInspect:!1}))}}],a(r.prototype,e),t&&a(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}()},{"59f5d0111b7fa075":"2MMCE",eef6a677577349b8:"3eno3"}],cAa69:[function(e,t,r){var i=e("4284522496af5dfb");"use strict";function n(e,t){s(e,t),a(e)}function a(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return o||f?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(s,this,e)):i.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?i.nextTick(a,r):(r._writableState.errorEmitted=!0,i.nextTick(n,r,e)):i.nextTick(n,r,e):t?(i.nextTick(a,r),t(e)):i.nextTick(a,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},{"4284522496af5dfb":"fg0b3"}],"5eEoF":[function(e,t,r){"use strict";var i=e("4e508d569e2117ef").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,n){var a=null!=t.highWaterMark?t.highWaterMark:n?t[r]:null;if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=n?r:"highWaterMark";throw new i(s,a)}return Math.floor(a)}return e.objectMode?16:16384}}},{"4e508d569e2117ef":"kdXiL"}],kdXiL:[function(e,t,r){"use strict";var i={};function n(e,t,r){r||(r=Error);var n=function(e){function r(r,i,n){return e.call(this,"string"==typeof t?t:t(r,i,n))||this}return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,r}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(i="not ",t.substr(!n||n<0?0:+n,i.length)===i)?(d="must not be",t=t.replace(/^not /,"")):d="must be",s=" argument",(void 0===o||o>e.length)&&(o=e.length),e.substring(o-s.length,o)===s)c="The ".concat(e," ").concat(d," ").concat(a(t,"type"));else{var i,n,s,o,f,d,c,u=("number"!=typeof f&&(f=0),f+1>e.length||-1===e.indexOf(".",f))?"argument":"property";c='The "'.concat(e,'" ').concat(u," ").concat(d," ").concat(a(t,"type"))}return c+". Received type ".concat(typeof r)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},{}],"3r5YV":[function(e,t,r){"use strict";var i=e("2ab1115635c50a9f"),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var a=e("68a7582259cd5865"),s=e("93d042f8bb80078e");e("aa7b11ba5bf4defc")(c,a);for(var o=n(s.prototype),f=0;f-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new m("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var i,n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(i=r,n.ending=!0,P(this,n),i&&(n.finished?s.nextTick(i):this.once("finish",i)),n.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}},{f05a2a5a09d4d8b0:"fg0b3",dc51171b07b54af1:"eje3w","44a3cc22ec64fcd3":"8Ppiy",de8f7fb7ccda8086:"2MMCE",acf48fb5d9dc6204:"cAa69","9d146cd974da0f53":"5eEoF","3c574b8881abcf86":"kdXiL","10dad555ffe77dde":"cJ2FP",c5e7171d6f58d3c0:"3r5YV"}],eje3w:[function(e,t,r){var i=arguments[3];function n(e){try{if(!i.localStorage)return!1}catch(e){return!1}var t=i.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},{}],"2c7F5":[function(e,t,r){"use strict";var i=e("2a29807c689a070a").Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=d,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=u,t=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(n>0&&(e.lastNeed=n-1),n):--i=0?(n>0&&(e.lastNeed=n-2),n):--i=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"2a29807c689a070a":"6CY3D"}],"58qfu":[function(e,t,r){"use strict";var i,n=e("96b869862a96261a");function a(e,t,r){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=e("745a3cd8f6469ed5"),o=Symbol("lastResolve"),f=Symbol("lastReject"),d=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[u]=null,e[o]=null,e[f]=null,t(p(r,!1)))}}function m(e){n.nextTick(b,e)}var g=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((a(i={get stream(){return this[h]},next:function(){var e,t,r=this,i=this[d];if(null!==i)return Promise.reject(i);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[d]?t(r[d]):e(p(void 0,!0))})});var a=this[u];if(a)t=new Promise((e=this,function(t,r){a.then(function(){if(e[c]){t(p(void 0,!0));return}e[l](t,r)},r)}));else{var s=this[h].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[l])}return this[u]=t,t}},Symbol.asyncIterator,function(){return this}),a(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),i),g);t.exports=function(e){var t,r=Object.create(y,(a(t={},h,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,f,{value:null,writable:!0}),a(t,d,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,l,{value:function(e,t){var i=r[h].read();i?(r[u]=null,r[o]=null,r[f]=null,e(p(i,!1))):(r[o]=e,r[f]=t)},writable:!0}),t));return r[u]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];null!==t&&(r[u]=null,r[o]=null,r[f]=null,t(e)),r[d]=e;return}var i=r[o];null!==i&&(r[u]=null,r[o]=null,r[f]=null,i(p(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}},{"96b869862a96261a":"fg0b3","745a3cd8f6469ed5":"10aVq"}],"10aVq":[function(e,t,r){"use strict";var i=e("d35458f585bdd360").codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),s=a||n,o=!1,a=function(){if(!o){o=!0;for(var e=arguments.length,t=Array(e),r=0;r0},function(e){if(e)return a(e);u=!0,a()}),p=!1,function(e){if(!u&&!p){if(p=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();a(e||new s("pipe"))}}});return c.reduce(d)}},{"6ba21bd580ac7d57":"kdXiL",dd7fd89dd81b8674:"10aVq"}],f4Xy3:[function(e,t,r){"use strict";var i=e("c813c8075bcf823e").Buffer,n=e("84928993e7c3934b"),a=e("4b3519823770a56d"),s=Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function u(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function l(e,t){return e<>>32-t}n(u,a),u.prototype._update=function(){for(var e,t,r,i,n,a,u,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P,O,N,j,B,L,D,F,U,q,z,K,H,W,V,G,J,Z,X,$,Y,Q,ee,et,er,ei,en,ea,es,eo,ef,ed,ec,eu,el,eh,ep,eb,em,eg,ey,ev,ew,e_,eM,eE,eA=0;eA<16;++eA)s[eA]=this._block.readInt32LE(4*eA);for(var eS=0|this._a,ex=0|this._b,eI=0|this._c,eR=0|this._d,ek=0|this._e,eT=0|this._a,eC=0|this._b,eP=0|this._c,eO=0|this._d,eN=0|this._e,ej=0;ej<80;ej+=1)ej<16?(e=eS,t=ex,r=eI,i=eR,n=ek,eM=l(e+(t^r^i)+s[o[ej]]+0|0,d[ej])+n|0,h=eT,p=eC,b=eP,m=eO,g=eN,eE=l(h+(p^(b|~m))+s[f[ej]]+1352829926|0,c[ej])+g|0):ej<32?(w=eS,_=ex,M=eI,E=eR,A=ek,eM=l(w+(_&M|~_&E)+s[o[ej]]+1518500249|0,d[ej])+A|0,I=eT,R=eC,k=eP,T=eO,C=eN,eE=l(I+(R&T|k&~T)+s[f[ej]]+1548603684|0,c[ej])+C|0):ej<48?(N=eS,j=ex,B=eI,L=eR,D=ek,eM=l(N+((j|~B)^L)+s[o[ej]]+1859775393|0,d[ej])+D|0,q=eT,z=eC,K=eP,H=eO,W=eN,eE=l(q+((z|~K)^H)+s[f[ej]]+1836072691|0,c[ej])+W|0):ej<64?(J=eS,Z=ex,X=eI,$=eR,Y=ek,eM=l(J+(Z&$|X&~$)+s[o[ej]]+2400959708|0,d[ej])+Y|0,et=eT,er=eC,ei=eP,en=eO,ea=eN,eE=l(et+(er&ei|~er&en)+s[f[ej]]+2053994217|0,c[ej])+ea|0):(ef=eS,ed=ex,ec=eI,eu=eR,el=ek,eM=l(ef+(ed^(ec|~eu))+s[o[ej]]+2840853838|0,d[ej])+el|0,eb=eT,em=eC,eg=eP,ey=eO,ev=eN,eE=l(eb+(em^eg^ey)+s[f[ej]]+0|0,c[ej])+ev|0),eS=ek,ek=eR,eR=l(eI,10),eI=ex,ex=eM,eT=eN,eN=eO,eO=l(eP,10),eP=eC,eC=eE;var eB=this._b+eI+eO|0;this._b=this._c+eR+eN|0,this._c=this._d+ek+eT|0,this._d=this._e+eS+eC|0,this._e=this._a+ex+eP|0,this._a=eB},u.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=u},{c813c8075bcf823e:"2MMCE","84928993e7c3934b":"cJ2FP","4b3519823770a56d":"6UiEZ"}],iSJqK:[function(e,t,r){var r=t.exports=function(e){var t=r[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("54c9313943368ce2"),r.sha1=e("6e6f42e0b6fe29ef"),r.sha224=e("cefe70c6f9f68940"),r.sha256=e("3b4e2aa73bc3fef5"),r.sha384=e("be7da8b8e5a0fd78"),r.sha512=e("25610a4ba83316a4")},{"54c9313943368ce2":"2PzCn","6e6f42e0b6fe29ef":"2txF6",cefe70c6f9f68940:"6cViI","3b4e2aa73bc3fef5":"4sfnu",be7da8b8e5a0fd78:"dDC3d","25610a4ba83316a4":"6zg8a"}],"2PzCn":[function(e,t,r){var i=e("55404b425acd1c6f"),n=e("457bc9c7737d761f"),a=e("44759e57eb2992a").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function f(){this.init(),this._w=o,n.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=t[f-3]^t[f-8]^t[f-14]^t[f-16];for(var d=0;d<80;++d){var c,u,l,h,p,b=~~(d/20),m=((c=r)<<5|c>>>27)+(u=i,l=n,h=a,0===b?u&l|~u&h:2===b?u&l|u&h|l&h:u^l^h)+o+t[d]+s[b]|0;o=a,a=n,n=(p=i)<<30|p>>>2,i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},f.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=f},{"55404b425acd1c6f":"cJ2FP","457bc9c7737d761f":"iI2Xg","44759e57eb2992a":"6CY3D"}],iI2Xg:[function(e,t,r){var i=e("fe67468afd3c1b91").Buffer;function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,n=this._blockSize,a=e.length,s=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=n},{fe67468afd3c1b91:"6CY3D"}],"2txF6":[function(e,t,r){var i=e("bf0dcaa2121c06d3"),n=e("788f05b1f9753762"),a=e("ee7c2a3e649d259f").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function f(){this.init(),this._w=o,n.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=(c=t[f-3]^t[f-8]^t[f-14]^t[f-16])<<1|c>>>31;for(var d=0;d<80;++d){var c,u,l,h,p,b,m=~~(d/20),g=((u=r)<<5|u>>>27)+(l=i,h=n,p=a,0===m?l&h|~l&p:2===m?l&h|l&p|h&p:l^h^p)+o+t[d]+s[m]|0;o=a,a=n,n=(b=i)<<30|b>>>2,i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},f.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=f},{bf0dcaa2121c06d3:"cJ2FP","788f05b1f9753762":"iI2Xg",ee7c2a3e649d259f:"6CY3D"}],"6cViI":[function(e,t,r){var i=e("1759318dd61b32af"),n=e("5a24a8ff4dc414f6"),a=e("377596dd27739a66"),s=e("381289f917f16a20").Buffer,o=Array(64);function f(){this.init(),this._w=o,a.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},f.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=f},{"1759318dd61b32af":"cJ2FP","5a24a8ff4dc414f6":"4sfnu","377596dd27739a66":"iI2Xg","381289f917f16a20":"6CY3D"}],"4sfnu":[function(e,t,r){var i=e("682a6716eeab42dd"),n=e("f062bd789841a9ce"),a=e("1d47643a8adb8c1b").Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=Array(64);function f(){this.init(),this._w=o,n.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,f=0|this._f,d=0|this._g,c=0|this._h,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<64;++u)t[u]=(((h=t[u-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+t[u-7]+(((p=t[u-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[u-16]|0;for(var l=0;l<64;++l){var h,p,b,m,g,y,v,w,_,M=c+(((b=o)>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(m=o,g=f,(y=d)^m&(g^y))+s[l]+t[l]|0,E=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((w=r)&(_=i)|n&(w|_))|0;c=d,d=f,f=o,o=a+M|0,a=n,n=i,i=r,r=M+E|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=d+this._g|0,this._h=c+this._h|0},f.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=f},{"682a6716eeab42dd":"cJ2FP",f062bd789841a9ce:"iI2Xg","1d47643a8adb8c1b":"6CY3D"}],dDC3d:[function(e,t,r){var i=e("2a5cbb73fedd61b"),n=e("fdb4d0946b31cdb5"),a=e("50aa04d4bd2df0e1"),s=e("3d3bcc84ec383b74").Buffer,o=Array(160);function f(){this.init(),this._w=o,a.call(this,128,112)}i(f,n),f.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},f.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=f},{"2a5cbb73fedd61b":"cJ2FP",fdb4d0946b31cdb5:"6zg8a","50aa04d4bd2df0e1":"iI2Xg","3d3bcc84ec383b74":"6CY3D"}],"6zg8a":[function(e,t,r){var i=e("8d87c82d5ce5743"),n=e("27d0146c4419ba93"),a=e("602d9c7256ca6bf7").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=Array(160);function f(){this.init(),this._w=o,n.call(this,128,112)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function c(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function u(e,t){return e>>>0>>0?1:0}i(f,n),f.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,a=0|this._dh,o=0|this._eh,f=0|this._fh,l=0|this._gh,h=0|this._hh,p=0|this._al,b=0|this._bl,m=0|this._cl,g=0|this._dl,y=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var E,A,S,x,I,R,k,T,C=t[M-30],P=t[M-30+1],O=((E=C)>>>1|(A=P)<<31)^(E>>>8|A<<24)^E>>>7,N=((S=P)>>>1|(x=C)<<31)^(S>>>8|x<<24)^(S>>>7|x<<25);C=t[M-4],P=t[M-4+1];var j=((I=C)>>>19|(R=P)<<13)^(R>>>29|I<<3)^I>>>6,B=((k=P)>>>19|(T=C)<<13)^(T>>>29|k<<3)^(k>>>6|T<<26),L=t[M-14],D=t[M-14+1],F=t[M-32],U=t[M-32+1],q=N+D|0,z=O+L+u(q,N)|0;z=(z=z+j+u(q=q+B|0,B)|0)+F+u(q=q+U|0,U)|0,t[M]=z,t[M+1]=q}for(var K=0;K<160;K+=2){z=t[K],q=t[K+1];var H,W,V,G,J,Z,X,$,Y,Q,ee=(H=r)&(W=i)|n&(H|W),et=(V=p)&(G=b)|m&(V|G),er=d(r,p),ei=d(p,r),en=c(o,y),ea=c(y,o),es=s[K],eo=s[K+1],ef=(J=o,Z=f,(X=l)^J&(Z^X)),ed=($=y,Y=v,(Q=w)^$&(Y^Q)),ec=_+ea|0,eu=h+en+u(ec,_)|0;eu=(eu=(eu=eu+ef+u(ec=ec+ed|0,ed)|0)+es+u(ec=ec+eo|0,eo)|0)+z+u(ec=ec+q|0,q)|0;var el=ei+et|0,eh=er+ee+u(el,ei)|0;h=l,_=w,l=f,w=v,f=o,v=y,o=a+eu+u(y=g+ec|0,g)|0,a=n,g=m,n=i,m=b,i=r,b=p,r=eu+eh+u(p=ec+el|0,ec)|0}this._al=this._al+p|0,this._bl=this._bl+b|0,this._cl=this._cl+m|0,this._dl=this._dl+g|0,this._el=this._el+y|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._ah=this._ah+r+u(this._al,p)|0,this._bh=this._bh+i+u(this._bl,b)|0,this._ch=this._ch+n+u(this._cl,m)|0,this._dh=this._dh+a+u(this._dl,g)|0,this._eh=this._eh+o+u(this._el,y)|0,this._fh=this._fh+f+u(this._fl,v)|0,this._gh=this._gh+l+u(this._gl,w)|0,this._hh=this._hh+h+u(this._hl,_)|0},f.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=f},{"8d87c82d5ce5743":"cJ2FP","27d0146c4419ba93":"iI2Xg","602d9c7256ca6bf7":"6CY3D"}],"2sGTM":[function(e,t,r){var i=e("631f7eb12d35b579").Buffer,n=e("5b378a2a05398c5").Transform,a=e("d42da7de127e1c4b").StringDecoder;function s(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("7a0f2f27fe0a389b")(s,n),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},t.exports=s},{"631f7eb12d35b579":"6CY3D","5b378a2a05398c5":"8ILAD",d42da7de127e1c4b:"2c7F5","7a0f2f27fe0a389b":"cJ2FP"}],"8ILAD":[function(e,t,r){t.exports=n;var i=e("96b62835346f84f0").EventEmitter;function n(){i.call(this)}e("4a6ee9586f51c38d")(n,i),n.Readable=e("e6206e1f4d20abc7"),n.Writable=e("a3f1405f37e1dfb1"),n.Duplex=e("6691a72c5fc222fd"),n.Transform=e("43a905ce7ec6ac9e"),n.PassThrough=e("dd715550d7783885"),n.finished=e("d90a3520974ec96e"),n.pipeline=e("eb2779cfd287c5c9"),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",f));var s=!1;function o(){s||(s=!0,e.end())}function f(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",f),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",d),e.on("error",d),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},{"96b62835346f84f0":"ikfQ0","4a6ee9586f51c38d":"cJ2FP",e6206e1f4d20abc7:"5GpgS",a3f1405f37e1dfb1:"7gwGj","6691a72c5fc222fd":"3r5YV","43a905ce7ec6ac9e":"fVIBO",dd715550d7783885:"kVosf",d90a3520974ec96e:"10aVq",eb2779cfd287c5c9:"i7EMx"}],gCyFN:[function(e,t,r){"use strict";var i=e("6a73c7c8ca6b61fa"),n=e("e1b443c27c833bc0"),a=e("7571755cc57fd60e"),s=e("b8ba1339feab1938").Buffer,o=e("c00fb3fd28cadeb2"),f=e("b7f8eae556813ec1"),d=e("40c5a912778271f7"),c=s.alloc(128);function u(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new f:d(e)).update(t).digest():t.length64?t=e(t):t.length<64&&(t=n.concat([t,s],64));for(var r=this._ipad=n.allocUnsafe(64),i=this._opad=n.allocUnsafe(64),o=0;o<64;o++)r[o]=54^t[o],i[o]=92^t[o];this._hash=[r]}i(o,a),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},t.exports=o},{"2baf2864ece10f11":"cJ2FP",c7fb5e22d675c53c:"6CY3D","8fdec7d6b96329ea":"2sGTM"}],kJcWJ:[function(e,t,r){var i=e("f07cc93582c49804");t.exports=function(e){return new i().update(e).digest()}},{f07cc93582c49804:"itRd4"}],c6IbM:[function(e,t,r){t.exports=e("b6a65ebe2480cb5a")},{b6a65ebe2480cb5a:"6fwWv"}],"6fwWv":[function(e,t,r){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},{}],lsc2y:[function(e,t,r){r.pbkdf2=e("50310b85983e4f32"),r.pbkdf2Sync=e("5f7b0df9c2ef196d")},{"50310b85983e4f32":"lNDNg","5f7b0df9c2ef196d":"8Fput"}],lNDNg:[function(e,t,r){var i,n,a=arguments[3],s=e("a1f6b66eddae53e0").Buffer,o=e("a915fb954a5b62ac"),f=e("76b8747fb257c65c"),d=e("f6f43e3eaadd9ae9"),c=e("d12cab846fc3f945"),u=a.crypto&&a.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(){return n||(n=a.process&&a.process.nextTick?a.process.nextTick:a.queueMicrotask?a.queueMicrotask:a.setImmediate?a.setImmediate:a.setTimeout)}function b(e,t,r,i,n){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)}).then(function(e){return s.from(e)})}t.exports=function(e,t,r,n,m,g){"function"==typeof m&&(g=m,m=void 0);var y=l[(m=m||"sha1").toLowerCase()];if(!y||"function"!=typeof a.Promise){p()(function(){var i;try{i=d(e,t,r,n,m)}catch(e){return g(e)}g(null,i)});return}if(o(r,n),e=c(e,f,"Password"),t=c(t,f,"Salt"),"function"!=typeof g)throw Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){p()(function(){t(null,e)})},function(e){p()(function(){t(e)})})}((function(e){if(a.process&&!a.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=b(i=i||s.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t})(y).then(function(i){return i?b(e,t,r,n,y):d(e,t,r,n,m)}),g)}},{a1f6b66eddae53e0:"6CY3D",a915fb954a5b62ac:"iRtZ5","76b8747fb257c65c":"4na3y",f6f43e3eaadd9ae9:"8Fput",d12cab846fc3f945:"hObHx"}],iRtZ5:[function(e,t,r){t.exports=function(e,t){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof t)throw TypeError("Key length not a number");if(t<0||t>1073741823||t!=t)throw TypeError("Bad key length")}},{}],"4na3y":[function(e,t,r){var i,n=arguments[3],a=e("6b9fe6b7a0bbf941");i=n.process&&n.process.browser?"utf-8":n.process&&n.process.version?parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=i},{"6b9fe6b7a0bbf941":"fg0b3"}],"8Fput":[function(e,t,r){var i=e("1e04e1c2d51cd13d"),n=e("42015ac33af139f8"),a=e("a7eb8e83614997ca"),s=e("290c92d9373f664d").Buffer,o=e("1b04775c4713da3d"),f=e("b290a762e8475e9f"),d=e("82c0eccfe5526b2c"),c=s.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var o="rmd160"===e||"ripemd160"===e?function(e){return new n().update(e).digest()}:"md5"===e?i:function(t){return a(e).update(t).digest()},f="sha512"===e||"sha384"===e?128:64;t.length>f?t=o(t):t.length>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,i){for(var n=0,a=0,s=6;s>=0;s-=2){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>>o+s&1;for(var o=0;o<=24;o+=8)n<<=1,n|=e>>>o+s&1}for(var s=6;s>=0;s-=2){for(var o=1;o<=25;o+=8)a<<=1,a|=t>>>o+s&1;for(var o=1;o<=25;o+=8)a<<=1,a|=e>>>o+s&1}r[i+0]=n>>>0,r[i+1]=a>>>0},r.rip=function(e,t,r,i){for(var n=0,a=0,s=0;s<4;s++)for(var o=24;o>=0;o-=8)n<<=1,n|=t>>>o+s&1,n<<=1,n|=e>>>o+s&1;for(var s=4;s<8;s++)for(var o=24;o>=0;o-=8)a<<=1,a|=t>>>o+s&1,a<<=1,a|=e>>>o+s&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.pc1=function(e,t,r,i){for(var n=0,a=0,s=7;s>=5;s--){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+s&1;for(var o=0;o<=24;o+=8)n<<=1,n|=e>>o+s&1}for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+s&1;for(var s=1;s<=3;s++){for(var o=0;o<=24;o+=8)a<<=1,a|=t>>o+s&1;for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1}for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.r28shl=function(e,t){return e<>>28-t};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var a=0,s=0,o=i.length>>>1,f=0;f>>i[f]&1;for(var f=o;f>>i[f]&1;r[n+0]=a>>>0,r[n+1]=s>>>0},r.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)i<<=6,i|=e>>>a&63;for(var a=11;a>=3;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var a=e>>>18-6*i&63,s=n[64*i+a];r<<=4,r|=s}for(var i=0;i<4;i++){var a=t>>>18-6*i&63,s=n[256+64*i+a];r<<=4,r|=s}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,o),n=a.r28shl(n,o),a.pc2(r,n,e.keys,s)}},f.prototype._update=function(e,t,r,i){var n=this._desState,s=a.readUInt32BE(e,t),o=a.readUInt32BE(e,t+4);a.ip(s,o,n.tmp,0),s=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,s,o,n.tmp,0):this._decrypt(n,s,o,n.tmp,0),s=n.tmp[0],o=n.tmp[1],a.writeUInt32BE(r,s,i),a.writeUInt32BE(r,o,i+4)},f.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,i=t;i>>0,s=h}a.rip(o,s,i,n)},f.prototype._decrypt=function(e,t,r,i,n){for(var s=r,o=t,f=e.keys.length-2;f>=0;f-=2){var d=e.keys[f],c=e.keys[f+1];a.expand(s,e.tmp,0),d^=e.tmp[0],c^=e.tmp[1];var u=a.substitute(d,c),l=a.permute(u),h=s;s=(o^l)>>>0,o=h}a.rip(s,o,i,n)}},{"2e43e10aa2de50ed":"h59lk","551480b8aa09d318":"cJ2FP",b6dc5b7926f5a82f:"jAhm7","38547d2f1967e2cd":"5eHfG"}],esso5:[function(e,t,r){"use strict";var i=e("63ac301527fc117b"),n=e("7d48f4d3d39d3b86"),a={};function s(e){i.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r>o%8,e._prev=function(e,t){var r=e.length,n=-1,a=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return a}(e._prev,r?a:s);return f}(e,t[s],r);return a}},{"5eb46e1eefd15734":"6CY3D"}],"5U0Aq":[function(e,t,r){var i=e("b3ff65e516d49ef1").Buffer,n=e("7f0c2ff10cf58835");r.encrypt=function(e,t){for(;e._cache.length>>24]^c[p>>>16&255]^u[b>>>8&255]^l[255&m]^t[g++],s=d[p>>>24]^c[b>>>16&255]^u[m>>>8&255]^l[255&h]^t[g++],o=d[b>>>24]^c[m>>>16&255]^u[h>>>8&255]^l[255&p]^t[g++],f=d[m>>>24]^c[h>>>16&255]^u[p>>>8&255]^l[255&b]^t[g++],h=a,p=s,b=o,m=f;return a=(i[h>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],s=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&h])^t[g++],[a>>>=0,s>>>=0,o=((i[b>>>24]<<24|i[m>>>16&255]<<16|i[h>>>8&255]<<8|i[255&p])^t[g++])>>>0,f=((i[m>>>24]<<24|i[h>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++])>>>0]}var o=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,f=0;f<256;++f){var d=o^o<<1^o<<2^o<<3^o<<4;d=d>>>8^255&d^99,r[s]=d,i[d]=s;var c=e[s],u=e[c],l=e[u],h=257*e[d]^16843008*d;n[0][s]=h<<24|h>>>8,n[1][s]=h<<16|h>>>16,n[2][s]=h<<8|h>>>24,n[3][s]=h,h=16843009*l^65537*u^257*c^16843008*s,a[0][d]=h<<24|h>>>8,a[1][d]=h<<16|h>>>16,a[2][d]=h<<8|h>>>24,a[3][d]=h,0===s?s=o=1:(s=c^e[e[e[l^c]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();function d(e){this._key=n(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a>>24,s=(f.SBOX[s>>>24]<<24|f.SBOX[s>>>16&255]<<16|f.SBOX[s>>>8&255]<<8|f.SBOX[255&s])^o[a/t|0]<<24):t>6&&a%t==4&&(s=f.SBOX[s>>>24]<<24|f.SBOX[s>>>16&255]<<16|f.SBOX[s>>>8&255]<<8|f.SBOX[255&s]),n[a]=n[a-t]^s}for(var d=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[l>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[l>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&l]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return s(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},d.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),a=i.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},d.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=d},{"9c4f04f75f375be":"6CY3D"}],kfA0b:[function(e,t,r){var i=e("815beeecbe039d1a").Buffer,n=i.alloc(16,0);function a(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=-520093696^i[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"815beeecbe039d1a":"6CY3D"}],"3gyL0":[function(e,t,r){var i=e("499d62308d7dac40"),n=e("bc4a1f7113303d58").Buffer,a=e("e701745abb80bc49");function s(e,t,r,s){a.call(this),this._cipher=new i.AES(t),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._mode=e}e("3765f10ec3d7a831")(s,a),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"499d62308d7dac40":"f9w0b",bc4a1f7113303d58:"6CY3D",e701745abb80bc49:"2sGTM","3765f10ec3d7a831":"cJ2FP"}],hNNhz:[function(e,t,r){var i=e("adb33291e0f9c65a").Buffer,n=e("15f984dc9e3797d9");t.exports=function(e,t,r,a){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,o=i.alloc(s),f=i.alloc(a||0),d=i.alloc(0);s>0||a>0;){var c=new n;c.update(d),c.update(e),t&&c.update(t),d=c.digest();var u=0;if(s>0){var l=o.length-s;u=Math.min(s,d.length),d.copy(o,l,0,u),s-=u}if(u0){var h=f.length-a,p=Math.min(a,d.length-u);d.copy(f,h,u,u+p),a-=p}}return d.fill(0),{key:o,iv:f}}},{adb33291e0f9c65a:"6CY3D","15f984dc9e3797d9":"itRd4"}],aeVam:[function(e,t,r){var i=e("2f5914bdcee0aab2"),n=e("2eedc5cbfd1eafeb").Buffer,a=e("2b861a45e2a2d1fe"),s=e("54b6d333d74ae9c8"),o=e("4b438dd1327af64e"),f=e("928aea47daff81dc"),d=e("25542df8da1646fe");function c(e,t,r){o.call(this),this._cache=new u,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function u(){this.cache=n.allocUnsafe(0)}function l(e,t,r){var o=a[e.toLowerCase()];if(!o)throw TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==o.key/8)throw TypeError("invalid key length "+t.length);return"stream"===o.type?new s(o.module,t,r,!0):"auth"===o.type?new i(o.module,t,r,!0):new c(o.module,t,r)}e("153b885d89d2089e")(c,o),c.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=d(t,!1,r.key,r.iv);return l(e,i.key,i.iv)},r.createDecipheriv=l},{"2f5914bdcee0aab2":"5L2GD","2eedc5cbfd1eafeb":"6CY3D","2b861a45e2a2d1fe":"XLBUv","54b6d333d74ae9c8":"3gyL0","4b438dd1327af64e":"2sGTM","928aea47daff81dc":"f9w0b","25542df8da1646fe":"hNNhz","153b885d89d2089e":"cJ2FP"}],PVMme:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],CQhDB:[function(e,t,r){var i=e("55a084ce1a29baa3").Buffer,n=e("5ed99cf028c947ad"),a=e("8da23ed5d7edf952"),s=e("981b8db942febaf3"),o={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new i(a[e].prime,"hex"),r=new i(a[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,a,f){return i.isBuffer(r)||void 0===o[r]?e(t,"binary",r,a):(r=r||"binary",f=f||"binary",a=a||new i([2]),i.isBuffer(a)||(a=new i(a,f)),"number"==typeof t)?new s(n(t,a),a,!0):(i.isBuffer(t)||(t=new i(t,r)),new s(t,a,!0))}},{"55a084ce1a29baa3":"2MMCE","5ed99cf028c947ad":"jJXBy","8da23ed5d7edf952":"4r6A7","981b8db942febaf3":"jpk3A"}],jJXBy:[function(e,t,r){var i=e("e11b752ebf414e01");t.exports=g,g.simpleSieve=b,g.fermatTest=m;var n=e("6139735ee181267b"),a=new n(24),s=new(e("7b3f73f9ab7b2b6a")),o=new n(1),f=new n(2),d=new n(5);new n(16),new n(8);var c=new n(10),u=new n(3);new n(7);var l=new n(11),h=new n(4);new n(12);var p=null;function b(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;ne;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(d))for(;r.mod(c).cmp(u);)r.iadd(h)}else for(;r.mod(a).cmp(l);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&m(p)&&m(r)&&s.test(p)&&s.test(r))return r}}},{e11b752ebf414e01:"6xAZm","6139735ee181267b":"daGd1","7b3f73f9ab7b2b6a":"9C6Ip"}],daGd1:[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("a4b3a214327293bc").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{a4b3a214327293bc:"3eno3"}],"9C6Ip":[function(e,t,r){var i=e("31d279a7646d17e9"),n=e("1ed277e13aa258c6");function a(e){this.rand=e||new n.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new i(this.rand.generate(t));while(r.cmp(e)>=0)return r},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var n=e.bitLength(),a=i.mont(e),s=new i(1).toRed(a);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),f=0;!o.testn(f);f++);for(var d=e.shrn(f),c=o.toRed(a);t>0;t--){var u=this._randrange(new i(2),o);r&&r(u);var l=u.toRed(a).redPow(d);if(0!==l.cmp(s)&&0!==l.cmp(c)){for(var h=1;h0;t--){var c=this._randrange(new i(2),s),u=e.gcd(c);if(0!==u.cmpn(1))return u;var l=c.toRed(n).redPow(f);if(0!==l.cmp(a)&&0!==l.cmp(d)){for(var h=1;h=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1a01f12e7676c433":"3eno3"}],"4r6A7":[function(e,t,r){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},{}],jpk3A:[function(e,t,r){var i=e("18c258c24cda4205").Buffer,n=e("6cfaed55db270425"),a=new(e("8bc0d9823ee74460")),s=new n(24),o=new n(11),f=new n(10),d=new n(3),c=new n(7),u=e("dd39d03f4b3404fc"),l=e("e2757e55299a3ebc");function h(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}t.exports=m;var b={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function g(e,t){var r=new i(e.toArray());return t?r.toString(t):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r,i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in b)return b[n];var l=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!a.test(e))return l+=1,"02"===i||"05"===i?l+=8:l+=4,b[n]=l,l;switch(a.test(e.shrn(1))||(l+=2),i){case"02":e.mod(s).cmp(o)&&(l+=8);break;case"05":(r=e.mod(f)).cmp(d)&&r.cmp(c)&&(l+=8);break;default:l+=4}return b[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new i(t.toArray()),a=this.getPrime();if(r.length0&&r.ishrn(i),r}function l(e,t,r){var a,s;do{for(a=i.alloc(0);8*a.length=0||!t.umod(e.prime1)||!t.umod(e.prime2))return t}function o(e,t){var r,a={blinder:(r=s(t)).toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:r.invm(t.modulus)},o=t.modulus.byteLength(),f=new n(e).mul(a.blinder).umod(t.modulus),d=f.toRed(n.mont(t.prime1)),c=f.toRed(n.mont(t.prime2)),u=t.coefficient,l=t.prime1,h=t.prime2,p=d.redPow(t.exponent1).fromRed(),b=c.redPow(t.exponent2).fromRed(),m=p.isub(b).imul(u).umod(l).imul(h);return b.iadd(m).imul(a.unblinder).umod(t.modulus).toArrayLike(i,"be",o)}o.getr=s,t.exports=o},{a54d4e6dcf549cd6:"2MMCE","5d911a7c773081c":"lXPno",cfe4d67488897360:"6xAZm"}],"3om1K":[function(e,t,r){"use strict";r.version=e("2a438d9f80ccc729").version,r.utils=e("11dc1cc2c8ec1046"),r.rand=e("465a97970e1e7635"),r.curve=e("2d87f6e20849863a"),r.curves=e("5f656c8e30f15f72"),r.ec=e("a08ba2c08f481c70"),r.eddsa=e("82168ebad05dc21e")},{"2a438d9f80ccc729":"8GXUe","11dc1cc2c8ec1046":"8w6YP","465a97970e1e7635":"dpC9B","2d87f6e20849863a":"3UZlV","5f656c8e30f15f72":"6MFPZ",a08ba2c08f481c70:"kIvZ5","82168ebad05dc21e":"9s1bH"}],"8GXUe":[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"8w6YP":[function(e,t,r){"use strict";var i=e("c8de895fc166a226"),n=e("299f4897766ebbc1"),a=e("298ef03d30e5aac");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{c8de895fc166a226:"6lcJ5","299f4897766ebbc1":"h59lk","298ef03d30e5aac":"6lUA8"}],"6lcJ5":[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("b9733830054e0aa9").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{b9733830054e0aa9:"3eno3"}],"3UZlV":[function(e,t,r){"use strict";r.base=e("5861308862489ae6"),r.short=e("d783eaed5378c550"),r.mont=e("9ab0eb6020e565d4"),r.edwards=e("e288cebb6c42e4ae")},{"5861308862489ae6":"8EhXe",d783eaed5378c550:"eA9et","9ab0eb6020e565d4":"B3G3R",e288cebb6c42e4ae:"1TDhX"}],"8EhXe":[function(e,t,r){"use strict";var i=e("1a09a4ba257ba7ab"),n=e("5428e0a2ad594ef4"),a=n.getNAF,s=n.getJSF,o=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{c4b5844351271000:"8w6YP",c77af587b504c80f:"6lcJ5","7523cd1d14445538":"cJ2FP","1935bd9279880978":"8EhXe"}],B3G3R:[function(e,t,r){"use strict";var i=e("fd96c1c8c8f9ea6d"),n=e("a32e13b85cdf84eb"),a=e("b62d59dafdba3e20"),s=e("d2b62737ac9fe936");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{fd96c1c8c8f9ea6d:"6lcJ5",a32e13b85cdf84eb:"cJ2FP",b62d59dafdba3e20:"8EhXe",d2b62737ac9fe936:"8w6YP"}],"1TDhX":[function(e,t,r){"use strict";var i=e("5efc345035c646bb"),n=e("d4ec0564d5f7f877"),a=e("d620d726e89b0ede"),s=e("92fb2867c8d24c1e"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{"5efc345035c646bb":"8w6YP",d4ec0564d5f7f877:"6lcJ5",d620d726e89b0ede:"cJ2FP","92fb2867c8d24c1e":"8EhXe"}],"6MFPZ":[function(e,t,r){"use strict";var i,n=e("c93b9821af880fe2"),a=e("d92e038aede152a5"),s=e("9d28f7052861ee84").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("69142e49088ac241")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{c93b9821af880fe2:"2Tlxk",d92e038aede152a5:"3UZlV","9d28f7052861ee84":"8w6YP","69142e49088ac241":"eYFGk"}],eYFGk:[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"]]}}},{}],kIvZ5:[function(e,t,r){"use strict";var i=e("ee63e3b3a497d36f"),n=e("2d077ace592816e9"),a=e("64b396c866f9458c"),s=e("45c85142bdbe6bb"),o=e("664c47e29480ec15"),f=a.assert,d=e("1037090aed6fe722"),c=e("c324c6568a16eb35");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{ee63e3b3a497d36f:"6lcJ5","2d077ace592816e9":"eo8Xm","64b396c866f9458c":"8w6YP","45c85142bdbe6bb":"6MFPZ","664c47e29480ec15":"dpC9B","1037090aed6fe722":"lSpRn",c324c6568a16eb35:"3VnRg"}],lSpRn:[function(e,t,r){"use strict";var i=e("590f885cd6c9c0ee"),n=e("c5e5492c7f8a75a5").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},{"590f885cd6c9c0ee":"6lcJ5",c5e5492c7f8a75a5:"8w6YP"}],"3VnRg":[function(e,t,r){"use strict";var i=e("d9a236fe93a1d25d"),n=e("ea141aa3fe092449"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{d9a236fe93a1d25d:"6lcJ5",ea141aa3fe092449:"8w6YP"}],"9s1bH":[function(e,t,r){"use strict";var i=e("24028bd62cb870f3"),n=e("b76f439da91f44c3"),a=e("152d1e4c449cc9e4"),s=a.assert,o=a.parseBytes,f=e("a58cdb34cacac97e"),d=e("15d048aac701be19");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"7f1ee543ef73731a":"3eno3"}],"3aRbo":[function(e,t,r){"use strict";let i=e("f26403796e11865b"),n=e("a00827f0f69fbce"),a=e("64c493c8ea32f1a7");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){let t=this.name;function r(e){this._initNamed(e,t)}return a(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{f26403796e11865b:"lGnKL",a00827f0f69fbce:"WaCMa","64c493c8ea32f1a7":"cJ2FP"}],lGnKL:[function(e,t,r){"use strict";r.der=e("6153180e09514e51"),r.pem=e("babaf0c4b3d9210a")},{"6153180e09514e51":"e161A",babaf0c4b3d9210a:"f6svv"}],e161A:[function(e,t,r){"use strict";let i=e("94789e1422bf21a1"),n=e("9dd3df095b47dfb").Buffer,a=e("ee66f238a776dfa1"),s=e("e0096fa50301b4fb");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){a.call(this,"der",e)}function d(e){return e<10?"0"+e:e}t.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(f,a),f.prototype._encodeComposite=function(e,t,r,i){let a=function(e,t,r,i){let n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))n=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=s.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(i.length<128){let e=n.alloc(2);return e[0]=a,e[1]=i.length,this._createEncoderBuffer([e,i])}let o=1;for(let e=i.length;e>=256;e>>=8)o++;let f=n.alloc(2+o);f[0]=a,f[1]=128|o;for(let e=1+o,t=i.length;t>0;e--,t>>=8)f[e]=255&t;return this._createEncoderBuffer([f,i])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){let t=n.alloc(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let i=0;for(let t=0;t=128;r>>=7)i++}let a=n.alloc(i),s=a.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(a[s--]=127&r;(r>>=7)>0;)a[s--]=128|127&r}return this._createEncoderBuffer(a)},f.prototype._encodeTime=function(e,t){let r;let i=new Date(e);return"gentime"===t?r=[d(i.getUTCFullYear()),d(i.getUTCMonth()+1),d(i.getUTCDate()),d(i.getUTCHours()),d(i.getUTCMinutes()),d(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[d(i.getUTCFullYear()%100),d(i.getUTCMonth()+1),d(i.getUTCDate()),d(i.getUTCHours()),d(i.getUTCMinutes()),d(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;let r=n.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;let i=Array(r);for(let t=i.length-1;t>=0;t--)i[t]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(n.from(i))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){let i;let n=this._baseState;if(null===n.default)return!1;let a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i=2147483648)throw RangeError('The value "'+e+'" is invalid for option "size"');var i=s(e);return t&&0!==t.length?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}!o.constants&&(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},{e7af3484edf6bee9:"fg0b3","9b1fd4bf3515d7a6":"2MMCE"}],"4XjV6":[function(e,t,r){"use strict";let i=e("3f60e59b9a23b489").Reporter,n=e("485fe0fa4bfbbbca").EncoderBuffer,a=e("485fe0fa4bfbbbca").DecoderBuffer,s=e("1bf7ce79b1c01d8b"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function d(e,t,r){let i={};this._baseState=i,i.name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=d;let c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){let e=this._baseState,t={};c.forEach(function(r){t[r]=e[r]});let r=new this.constructor(t.parent);return r._baseState=t,r},d.prototype._wrap=function(){let e=this._baseState;f.forEach(function(t){this[t]=function(){let r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},d.prototype._init=function(e){let t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(e){let t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);let i=e[r];t[i]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){d.prototype[e]=function(){let t=this._baseState;throw Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(e){d.prototype[e]=function(){let t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),d.prototype.use=function(e){s(e);let t=this._baseState;return s(null===t.use),t.use=e,this},d.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this},d.prototype.def=function(e){let t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},d.prototype.explicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},d.prototype.implicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},d.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},d.prototype.key=function(e){let t=this._baseState;return s(null===t.key),t.key=e,this},d.prototype.any=function(){let e=this._baseState;return e.any=!0,this},d.prototype.choice=function(e){let t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},d.prototype.contains=function(e){let t=this._baseState;return s(null===t.use),t.contains=e,this},d.prototype._decode=function(e,t){let r;let i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let n=i.default,s=!0,o=null;if(null!==i.key&&(o=e.enterKey(i.key)),i.optional){let r=null;if(null!==i.explicit?r=i.explicit:null!==i.implicit?r=i.implicit:null!==i.tag&&(r=i.tag),null!==r||i.any){if(s=this._peekTag(e,r,i.any),e.isError(s))return s}else{let r=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(i.obj&&s&&(r=e.enterObject()),s){if(null!==i.explicit){let t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());let r=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(r))return r;i.any?n=e.raw(t):e=r}if(t&&t.track&&null!==i.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(r){r._decode(e,t)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){let r=new a(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(r,t)}}return i.obj&&s&&(n=e.leaveObject(r)),null!==i.key&&(null!==n||!0===s)?e.leaveKey(o,i.key,n):null!==o&&e.exitKey(o),n},d.prototype._decodeGeneric=function(e,t,r){let i=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,i.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&i.args)return this._decodeObjid(t,i.args[0],i.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,i.args&&i.args[0],r);return null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},d.prototype._getUse=function(e,t){let r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},d.prototype._decodeChoice=function(e,t){let r=this._baseState,i=null,n=!1;return(Object.keys(r.choice).some(function(a){let s=e.save(),o=r.choice[a];try{let r=o._decode(e,t);if(e.isError(r))return!1;i={type:a,value:r},n=!0}catch(t){return e.restore(s),!1}return!0},this),n)?i:e.error("Choice not matched")},d.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},d.prototype._encode=function(e,t,r){let i=this._baseState;if(null!==i.default&&i.default===e)return;let n=this._encodeValue(e,t,r);if(void 0!==n&&!this._skipDefault(n,t,r))return n},d.prototype._encodeValue=function(e,t,r){let n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new i);let a=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let s=null,o=!1;if(n.any)a=this._createEncoderBuffer(e);else if(n.choice)a=this._encodeChoice(e,t);else if(n.contains)s=this._getUse(n.contains,r)._encode(e,t),o=!0;else if(n.children)s=n.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");let i=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");let n=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),n},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!(n.args&&1===n.args.length))return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let r=this.clone();r._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){let i=this._baseState;return this._getUse(i.args[0],e)._encode(r,t)},r))}else null!==n.use?a=this._getUse(n.use,r)._encode(e,t):(s=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){let e=null!==n.implicit?n.implicit:n.tag,r=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(a=this._encodeComposite(e,o,r,s))}return null!==n.explicit&&(a=this._encodeComposite(n.explicit,!1,"context",a)),a},d.prototype._encodeChoice=function(e,t){let r=this._baseState,i=r.choice[e.type];return i||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},d.prototype._encodePrimitive=function(e,t){let r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},d.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},d.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"3f60e59b9a23b489":"dVro5","485fe0fa4bfbbbca":"lGrvr","1bf7ce79b1c01d8b":"h59lk"}],dVro5:[function(e,t,r){"use strict";let i=e("cca99c6acf69321b");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}r.Reporter=n,n.prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,r){let i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){let t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){let t;let r=this._reporterState,i=e instanceof a;if(t=i?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return i||r.errors.push(t),t},n.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},{cca99c6acf69321b:"cJ2FP"}],lGrvr:[function(e,t,r){"use strict";let i=e("ff35534ecc380ed3"),n=e("caca6de43dc40469").Reporter,a=e("c3dd8e06b6bddac8").Buffer;function s(e,t){if(n.call(this,t),!a.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(s,n),r.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;let t="object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw;return t},s.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},s.prototype.restore=function(e){let t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;let t="object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join;return t},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{ff35534ecc380ed3:"cJ2FP",caca6de43dc40469:"dVro5",c3dd8e06b6bddac8:"c6yfp"}],"6PHFJ":[function(e,t,r){"use strict";function i(e){let t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);let i=e[r];t[i]=r}),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=i(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=i(r.tag)},{}],f6svv:[function(e,t,r){"use strict";let i=e("bc3c7930ded74eee"),n=e("cf885a4234262436");function a(e){n.call(this,e),this.enc="pem"}i(a,n),t.exports=a,a.prototype.encode=function(e,t){let r=n.prototype.encode.call(this,e),i=r.toString("base64"),a=["-----BEGIN "+t.label+"-----"];for(let e=0;e>6],n=(32&r)==0;if((31&r)==31){let i=r;for(r=0;(128&i)==128;){if(i=e.readUInt8(t),e.isError(i))return i;r<<=7,r|=127&i}}else r&=31;let a=o.tag[r];return{cls:i,primitive:n,tag:r,tagStr:a}}function u(e,t,r){let i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if((128&i)==0)return i;let n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(let t=0;t=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}t.exports=function(e,t,r,d,c){var u,l,h,p,b,m,g,y,v,w,_,M=s(r);if("ec"===M.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw Error("wrong public key type");return function(e,t,r){var i=o[r.data.algorithm.curve.join(".")];if(!i)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var n=new a(i),s=r.data.subjectPrivateKey.data;return n.verify(t,e,s)}(e,t,M)}if("dsa"===M.type){if("dsa"!==d)throw Error("wrong public key type");return u=e,l=t,h=M.data.p,p=M.data.q,b=M.data.g,m=M.data.pub_key,y=(g=s.signature.decode(u,"der")).s,v=g.r,f(y,p),f(v,p),w=n.mont(h),_=y.invm(p),0===b.toRed(w).redPow(new n(l).mul(_).mod(p)).fromRed().mul(m.toRed(w).redPow(v.mul(_).mod(p)).fromRed()).mod(h).mod(p).cmp(v)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw Error("wrong public key type");t=i.concat([c,t]);for(var E=M.modulus.byteLength(),A=[1],S=0;t.length+A.length+2","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"}}')},{}],"1FqM1":[function(e,t,r){"use strict";var i=e("ae6d8344b99a9ab2"),n=e("def2c42291c2f2d"),a=e("71eecd1815e5848b");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{ae6d8344b99a9ab2:"g4Hsc",def2c42291c2f2d:"h59lk","71eecd1815e5848b":"6lUA8"}],g4Hsc:[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1b9e2dcc2d1e58c5").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1b9e2dcc2d1e58c5":"3eno3"}],"4Gjnv":[function(e,t,r){"use strict";r.base=e("599a58be0cba2aa4"),r.short=e("9b332cf6ee35e821"),r.mont=e("c3a5577cbd710904"),r.edwards=e("efc20909ee0a37b3")},{"599a58be0cba2aa4":"jNCGV","9b332cf6ee35e821":"1iny0",c3a5577cbd710904:"ccjZj",efc20909ee0a37b3:"eGidU"}],jNCGV:[function(e,t,r){"use strict";var i=e("22893fcc4dac011d"),n=e("54e74b2e9ceda629"),a=n.getNAF,s=n.getJSF,o=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"79a31f5f710e685d":"1FqM1","4e5df5148bc3f2c5":"g4Hsc",facc01195474a23d:"cJ2FP","6ab9b2bb0863e2c7":"jNCGV"}],ccjZj:[function(e,t,r){"use strict";var i=e("37e3d11dfa4bf668"),n=e("320ea60045eec4"),a=e("6722fc402fde71a0"),s=e("2c9b03996cedbe9c");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"37e3d11dfa4bf668":"g4Hsc","320ea60045eec4":"cJ2FP","6722fc402fde71a0":"jNCGV","2c9b03996cedbe9c":"1FqM1"}],eGidU:[function(e,t,r){"use strict";var i=e("e7a52be0908f0f8d"),n=e("e09dcb7265fc9222"),a=e("4af3d109475768b7"),s=e("c02f7cbe9dfe7f93"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{e7a52be0908f0f8d:"1FqM1",e09dcb7265fc9222:"g4Hsc","4af3d109475768b7":"cJ2FP",c02f7cbe9dfe7f93:"jNCGV"}],eFELW:[function(e,t,r){"use strict";var i,n=e("1a754558a4b18f19"),a=e("888952ec9f90a284"),s=e("7b6ae11bc6a5ca95").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("67a05dd6ae9361d")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"1a754558a4b18f19":"2Tlxk","888952ec9f90a284":"4Gjnv","7b6ae11bc6a5ca95":"1FqM1","67a05dd6ae9361d":"8ZeHL"}],"8ZeHL":[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"]]}}},{}],"6d1tE":[function(e,t,r){"use strict";var i=e("90ea9136f61deced"),n=e("7586ee8fc9a7bf7e"),a=e("ccef887016ce3a53"),s=e("bc1ef3d03c587b3b"),o=e("7a60857a656439a5"),f=a.assert,d=e("c4d8ba06720ebdca"),c=e("93a42fa4071dd0a5");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"90ea9136f61deced":"g4Hsc","7586ee8fc9a7bf7e":"eo8Xm",ccef887016ce3a53:"1FqM1",bc1ef3d03c587b3b:"eFELW","7a60857a656439a5":"dpC9B",c4d8ba06720ebdca:"gTmPO","93a42fa4071dd0a5":"QelZO"}],gTmPO:[function(e,t,r){"use strict";var i=e("4a05df03a6466bc0"),n=e("3d95090c0bb0ef61").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},{"4a05df03a6466bc0":"g4Hsc","3d95090c0bb0ef61":"1FqM1"}],QelZO:[function(e,t,r){"use strict";var i=e("87650698ae011d35"),n=e("45887f1f8a7a22dc"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{"87650698ae011d35":"g4Hsc","45887f1f8a7a22dc":"1FqM1"}],"4WiV8":[function(e,t,r){"use strict";var i=e("e8d9e075af8fafa2"),n=e("8413dc25e0b3c10"),a=e("d2583523254300d2"),s=a.assert,o=a.parseBytes,f=e("2d2d117a03e08db3"),d=e("73831fc21b84337");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;tr-l-2)throw Error("message too long");var h=u.alloc(r-i-l-2),p=r-c-1,b=n(c),m=o(u.concat([d,h,u.alloc(1,1),t],p),s(b,p)),g=o(b,s(m,c));return new f(u.concat([u.alloc(1),g,m],r))}(p,t);else if(1===l)h=function(e,t,r){var i,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw Error("message too long");return i=r?u.alloc(s-a-3,255):function(e){for(var t,r=u.allocUnsafe(e),i=0,a=n(2*e),s=0;i=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?c(h,p):d(h,p)}},{ca2697dbde558d1:"6XduM","4704ad09aa96a56b":"6xAZm",b8a92fd1d9e43252:"cCtrs","469be15a31031bba":"gJHL1",f9f3694c0f7388b6:"hGH6g",cb7a38ec1a0039d7:"9DpW1","969e1e2dd90e2fbe":"9jyud","9022efe01867a612":"9CU5S",d610bb618706f42f:"6CY3D"}],gJHL1:[function(e,t,r){var i=e("b36bb21196daa39"),n=e("cfa1ea60eac1ebfa").Buffer;t.exports=function(e,t){for(var r,a=n.alloc(0),s=0;a.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"64c9d23ade4c9eaa":"3eno3"}],"9jyud":[function(e,t,r){var i=e("94162e508c4195c3"),n=e("1bab2adfd8072b94").Buffer;t.exports=function(e,t){return n.from(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}},{"94162e508c4195c3":"9DpW1","1bab2adfd8072b94":"6CY3D"}],kaYjd:[function(e,t,r){var i=e("6c46b1d8bb7eae7b"),n=e("9e51003323ea065d"),a=e("637b57d34a8dda25"),s=e("3927561f39566b29"),o=e("521cbc4ce6042d5b"),f=e("95282d7c0e66f364"),d=e("1bc2f92e3c398dbe"),c=e("802d086fb6d63368").Buffer;t.exports=function(e,t,r){u=e.padding?e.padding:r?1:4;var u,l,h=i(e),p=h.modulus.byteLength();if(t.length>p||new s(t).cmp(h.modulus)>=0)throw Error("decryption error");l=r?d(new s(t),h):o(t,h);var b=c.alloc(p-l.length);if(l=c.concat([b,l],p),4===u)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),s=i.length;if(0!==t[0])throw Error("decryption error");var o=t.slice(1,s+1),d=t.slice(s+1),u=a(o,n(d,s)),l=a(d,n(u,r-s-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n=t.length){a++;break}var s=t.slice(2,n-1);if(("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&a++,s.length<8&&a++,a)throw Error("decryption error");return t.slice(n)}(0,l,r);if(3===u)return l;throw Error("unknown padding")}},{"6c46b1d8bb7eae7b":"6XduM","9e51003323ea065d":"gJHL1","637b57d34a8dda25":"hGH6g","3927561f39566b29":"9DpW1","521cbc4ce6042d5b":"9CU5S","95282d7c0e66f364":"cCtrs","1bc2f92e3c398dbe":"9jyud","802d086fb6d63368":"6CY3D"}],"51dpI":[function(e,t,r){"use strict";var i=arguments[3],n=e("e52c82591caff1d7");function a(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=e("954d667c0302f12c");e("7041a0e993c249ef");var o=s.Buffer,f=s.kMaxLength,d=i.crypto||i.msCrypto;function c(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>4294967295||e<0)throw TypeError("offset must be a uint32");if(e>f||e>t)throw RangeError("offset out of range")}function u(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>4294967295||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>f)throw RangeError("buffer too small")}function l(e,t,r,i){var a=e.buffer,s=new Uint8Array(a,t,r);if(d.getRandomValues(s),i){n.nextTick(function(){i(null,e)});return}return e}d&&d.getRandomValues?(r.randomFill=function(e,t,r,n){if(!o.isBuffer(e)&&!(e instanceof i.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw TypeError('"cb" argument must be a function');return c(t,e.length),u(r,t,e.length),l(e,t,r,n)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!o.isBuffer(e)&&!(e instanceof i.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return c(t,e.length),void 0===r&&(r=e.length-t),u(r,t,e.length),l(e,t,r)}):(r.randomFill=a,r.randomFillSync=a)},{e52c82591caff1d7:"fg0b3","954d667c0302f12c":"6CY3D","7041a0e993c249ef":"6xAZm"}],kf6Fl:[function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,n(e("bf50b53e66bd78ae"),r),n(e("dd065c472b0551aa"),r),n(e("b115ace1c5aaed38"),r),n(e("88e46d1ab0420a67"),r),n(e("7f5682ba3d2490bd"),r),n(e("a4db0028d96db3f7"),r),n(e("9acdd69c57d35035"),r),n(e("3d470417433d9941"),r),n(e("5aa2cb509ed6c32d"),r);var a=e("287b1e51e2efbb0c");Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return a.isHexPrefixed}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return a.stripHexPrefix}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return a.padToEven}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return a.getBinarySize}}),Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return a.arrayContainsArray}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return a.toAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return a.fromUtf8}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return a.fromAscii}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return a.getKeys}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return a.isHexString}})},{bf50b53e66bd78ae:"lkw7f",dd065c472b0551aa:"bzwNx",b115ace1c5aaed38:"h1KCF","88e46d1ab0420a67":"ipL9G","7f5682ba3d2490bd":"bqbjN",a4db0028d96db3f7:"kZa0v","9acdd69c57d35035":"4p8A4","3d470417433d9941":"hx2li","5aa2cb509ed6c32d":"eWBQO","287b1e51e2efbb0c":"1a9Yl"}],lkw7f:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.MAX_INTEGER=r.MAX_UINT64=void 0;var i=e("4a8a1726ff33f9ec"),n=e("20245c0ea7c8fba9");r.MAX_UINT64=new n.BN("ffffffffffffffff",16),r.MAX_INTEGER=new n.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new n.BN("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=i.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=i.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=i.Buffer.from(r.KECCAK256_RLP_S,"hex")},{"4a8a1726ff33f9ec":"2MMCE","20245c0ea7c8fba9":"hx2li"}],hx2li:[function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.rlp=r.BN=void 0;var o=s(e("861b9458cf98e3bd"));r.BN=o.default;var f=a(e("cc920cb59362bdcc"));r.rlp=f},{"861b9458cf98e3bd":"lXPno",cc920cb59362bdcc:"ctmWm"}],ctmWm:[function(e,t,r){var i=e("c4f3522d609e2bb4").Buffer;"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getLength=r.decode=r.encode=void 0;var a=n(e("f2de64fac014d334"));function s(e,t){if("0"===e[0]&&"0"===e[1])throw Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return i.from([e+t]);var r=d(e),n=d(t+55+r.length/2);return i.from(n+r,"hex")}function f(e){return"0x"===e.slice(0,2)}function d(e){if(e<0)throw Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function c(e){if(!i.isBuffer(e)){var t,r;if("string"==typeof e)return f(e)?i.from((t="string"!=typeof e?e:f(e)?e.slice(2):e).length%2?"0"+t:t,"hex"):i.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(r=d(e),i.from(r,"hex")):i.from([]);if(null==e)return i.from([]);if(e instanceof Uint8Array)return i.from(e);else if(a.default.isBN(e))return i.from(e.toArray());else throw Error("invalid type")}return e}r.encode=function e(t){if(Array.isArray(t)){for(var r=[],n=0;nt.length)throw Error("invalid rlp: total length is larger than the data");if(0===(o=t.slice(n,u)).length)throw Error("invalid rlp, List has a invalid length");for(;o.length;)f=e(o),d.push(f.data),o=f.remainder;return{data:d,remainder:t.slice(u)}}(c(e));if(t)return r;if(0!==r.remainder.length)throw Error("invalid remainder");return r.data},r.getLength=function(e){if(!e||0===e.length)return i.from([]);var t=c(e),r=t[0];if(r<=127)return t.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var n=r-246,a=s(t.slice(1,n).toString("hex"),16);return n+a}},{c4f3522d609e2bb4:"2MMCE",f2de64fac014d334:"lXPno"}],bzwNx:[function(e,t,r){"use strict";var i=e("239680ae77fd7256").Buffer,n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;var s=a(e("c625d04718b44934")),o=e("d826c36f7dbc8b6b"),f=e("ad9f6d50db6ac3d9"),d=e("b589310d0858a77a"),c=e("afb5aa690896402c"),u=e("94c371da3aa3838f"),l=e("e0d93e4c6eac12d8"),h=e("947105c4c404cdce"),p=e("aebdc58a1d4e01a9"),b=function(){function e(e,t,r,i){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=c.KECCAK256_RLP),void 0===i&&(i=c.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=i,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,i=t.balance,n=t.stateRoot,a=t.codeHash;return new e(r?new o.BN((0,u.toBuffer)(r)):void 0,i?new o.BN((0,u.toBuffer)(i)):void 0,n?(0,u.toBuffer)(n):void 0,a?(0,u.toBuffer)(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),i=r[0],a=r[1],s=r[2],f=r[3];return new e(new o.BN(i),new o.BN(a),s,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(0)))throw Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,p.bnToUnpaddedBuffer)(this.nonce),(0,p.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(c.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(c.KECCAK256_NULL)},e}();r.Account=b,r.isValidAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},r.toChecksumAddress=function(e,t){(0,h.assertIsHexString)(e);var r=(0,d.stripHexPrefix)(e).toLowerCase(),i="";t&&(i=(0,p.toType)(t,p.TypeOutput.BN).toString()+"0x");for(var n=(0,l.keccakFromString)(i+r).toString("hex"),a="0x",s=0;s=8?a+=r[s].toUpperCase():a+=r[s];return a},r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e},r.generateAddress=function(e,t){(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t);var r=new o.BN(t);return r.isZero()?(0,l.rlphash)([e,null]).slice(-20):(0,l.rlphash)([e,i.from(r.toArray())]).slice(-20)},r.generateAddress2=function(e,t,r){return(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r),(0,s.default)(20===e.length),(0,s.default)(32===t.length),(0,l.keccak256)(i.concat([i.from("ff","hex"),e,t,(0,l.keccak256)(r)])).slice(-20)},r.isValidPrivate=function(e){return(0,f.privateKeyVerify)(e)},r.isValidPublic=function(e,t){return(void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),64===e.length)?(0,f.publicKeyVerify)(i.concat([i.from([4]),e])):!!t&&(0,f.publicKeyVerify)(e)},r.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),t&&64!==e.length&&(e=i.from((0,f.publicKeyConvert)(e,!1).slice(1))),(0,s.default)(64===e.length),(0,l.keccak)(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToPublic=function(e){return(0,h.assertIsBuffer)(e),i.from((0,f.publicKeyCreate)(e,!1)).slice(1)},r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))},r.importPublic=function(e){return(0,h.assertIsBuffer)(e),64!==e.length&&(e=i.from((0,f.publicKeyConvert)(e,!1).slice(1))),e},r.zeroAddress=function(){var e=(0,u.zeros)(20);return(0,u.bufferToHex)(e)},r.isZeroAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e}},{"239680ae77fd7256":"2MMCE",c625d04718b44934:"aeMhE",d826c36f7dbc8b6b:"hx2li",ad9f6d50db6ac3d9:"jWaCZ",b589310d0858a77a:"1a9Yl",afb5aa690896402c:"lkw7f","94c371da3aa3838f":"kZa0v",e0d93e4c6eac12d8:"ipL9G","947105c4c404cdce":"70pb8",aebdc58a1d4e01a9:"eWBQO"}],aeMhE:[function(e,t,r){"use strict";var i,n,a=e("17530e9a8e9dd8de");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("67930e3bebc18ea9").codes,f=o.ERR_AMBIGUOUS_ARGUMENT,d=o.ERR_INVALID_ARG_TYPE,c=o.ERR_INVALID_ARG_VALUE,u=o.ERR_INVALID_RETURN_VALUE,l=o.ERR_MISSING_ARGS,h=e("11bdd262fb706a54"),p=e("d61a3396666721b6").inspect,b=e("d61a3396666721b6").types,m=b.isPromise,g=b.isRegExp,y=Object.assign?Object.assign:e("613bbc2cfb4d4558").assign,v=Object.is?Object.is:e("f909244cb7b0ea0c");function w(){var t=e("131e25d2408617a4");i=t.isDeepEqual,n=t.isDeepStrictEqual}var _=!1,M=t.exports=x,E={};function A(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function S(e,t,r,i){if(!r){var n=!1;if(0===t)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new h({actual:r,expected:!0,message:i,operator:"==",stackStartFn:e});throw a.generatedMessage=n,a}}function x(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",function(t,r,n){if((void 0===s&&(s=e("f73a3052b95b9ed")),s("string"==typeof t,"'name' must be a string"),"string"==typeof r&&(a="not ",r.substr(!o||o<0?0:+o,a.length)===a))?(l="must not be",r=r.replace(/^not /,"")):l="must be",f=" argument",(void 0===d||d>t.length)&&(d=t.length),t.substring(d-f.length,d)===f)h="The ".concat(t," ").concat(l," ").concat(c(r,"type"));else{var a,o,f,d,u,l,h,p=("number"!=typeof u&&(u=0),u+1>t.length||-1===t.indexOf(".",u))?"argument":"property";h='The "'.concat(t,'" ').concat(p," ").concat(l," ").concat(c(r,"type"))}return h+". Received type ".concat(i(n))},TypeError),d("ERR_INVALID_ARG_VALUE",function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=e("1fd472100fa8826f"));var n=o.inspect(r);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(i,". Received ").concat(n)},TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return n=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(i(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError),d("ERR_MISSING_ARGS",function(){for(var t=arguments.length,r=Array(t),i=0;i0,"At least one arg needs to be specified");var n="The ",a=r.length;switch(r=r.map(function(e){return'"'.concat(e,'"')}),a){case 1:n+="".concat(r[0]," argument");break;case 2:n+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:n+=r.slice(0,a-1).join(", ")+", and ".concat(r[a-1]," arguments")}return"".concat(n," must be specified")},TypeError),t.exports.codes=f},{f73a3052b95b9ed:"aeMhE","1fd472100fa8826f":"iQBwz"}],iQBwz:[function(e,t,r){var i=e("bc23a3ea4a141c0b"),n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),o=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(t)?i.showHidden=t:t&&r._extend(i,t),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=d),u(i,e,i.depth)}function d(e,t){var r=f.styles[t];return r?"\x1b["+f.colors[r][0]+"m"+e+"\x1b["+f.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,i){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==r.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n,a,s,o,f,d=t.inspect(i,e);return y(d)||(d=u(e,d,i)),d}var c=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(c)return c;var _=Object.keys(t),S=(o={},_.forEach(function(e,t){o[e]=!0}),o);if(e.showHidden&&(_=Object.getOwnPropertyNames(t)),E(t)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return l(t);if(0===_.length){if(A(t)){var x=t.name?": "+t.name:"";return e.stylize("[Function"+x+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return l(t)}var I="",k=!1,T=["{","}"];return(p(t)&&(k=!0,T=["[","]"]),A(t)&&(I=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(I=" "+RegExp.prototype.toString.call(t)),M(t)&&(I=" "+Date.prototype.toUTCString.call(t)),E(t)&&(I=" "+l(t)),0!==_.length||k&&0!=t.length)?i<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),f=k?function(e,t,r,i,n){for(var a=[],s=0,o=t.length;s=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===n?"":n+"\n ")+" "+f.join(",\n ")+" "+a[1]:a[0]+n+" "+f.join(", ")+" "+a[1]):T[0]+I+T[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,i,n,a){var s,o,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?o=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(o=e.stylize("[Setter]","special")),R(i,n)||(s="["+n+"]"),!o&&(0>e.seen.indexOf(f.value)?(o=m(r)?u(e,f.value,null):u(e,f.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),v(s)){if(a&&n.match(/^\d+$/))return o;(s=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function p(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===S(e)}function _(e){return"object"==typeof e&&null!==e}function M(e){return _(e)&&"[object Date]"===S(e)}function E(e){return _(e)&&("[object Error]"===S(e)||e instanceof Error)}function A(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(o.test(e)){var t=i.pid;s[e]=function(){var i=r.format.apply(r,arguments);console.error("%s %d: %s",e,t,i)}}else s[e]=function(){}}return s[e]},r.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("6a1c15bae847a134"),r.isArray=p,r.isBoolean=b,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=y,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=w,r.types.isRegExp=w,r.isObject=_,r.isDate=M,r.types.isDate=M,r.isError=E,r.types.isNativeError=E,r.isFunction=A,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("a42137cd7fc8700d");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(t=[x((e=new Date).getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("a792e8e3e2aa1973"),r._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}r.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(k&&e[k]){var t=e[k];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],a=0;a=0&&"[object Array]"!==n(e)&&"[object Function]"===n(e.callee)},o=function(){return a(arguments)}();a.isLegacyArguments=s,t.exports=o?a:s},{e2b01ce809f132fb:"8kCl3","649cbf9949986a39":"dGEhg"}],"8kCl3":[function(e,t,r){"use strict";var i=e("2ef89576d4959bff");t.exports=function(){return i()&&!!Symbol.toStringTag}},{"2ef89576d4959bff":"iaBeb"}],iaBeb:[function(e,t,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},{}],dGEhg:[function(e,t,r){"use strict";var i=e("8b08ecb81cf4de17"),n=e("266fc50410cfc4a"),a=n(i("String.prototype.indexOf"));t.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?n(r):r}},{"8b08ecb81cf4de17":"i6CEG","266fc50410cfc4a":"kP5zq"}],i6CEG:[function(e,t,r){"use strict";var i,n=SyntaxError,a=Function,s=TypeError,o=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var d=function(){throw new s},c=f?function(){try{return arguments.callee,d}catch(e){try{return f(arguments,"callee").get}catch(e){return d}}}():d,u=e("1f00f712d594ccf")(),l=e("23730654306aa64c")(),h=Object.getPrototypeOf||(l?function(e){return e.__proto__}:null),p={},b="undefined"!=typeof Uint8Array&&h?h(Uint8Array):i,m={"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":u&&h?h([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&h?h(h([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&h?h(new Map()[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&h?h(new Set()[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&h?h(""[Symbol.iterator]()):i,"%Symbol%":u?Symbol:i,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":b,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));m["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=o("async function () {}");else if("%GeneratorFunction%"===t)r=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=o("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&h&&(r=h(n.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("7c5e688e48cd07b0"),_=e("b03d0058935d00bf"),M=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,k=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return A(e,I,function(e,t,r,n){i[i.length]=r?A(n,R,"$1"):t||e}),i},T=function(e,t){var r,i=e;if(_(v,i)&&(i="%"+(r=v[i])[0]+"%"),_(m,i)){var a=m[i];if(a===p&&(a=y(i)),void 0===a&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new n("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(e),i=r.length>0?r[0]:"",a=T("%"+i+"%",t),o=a.name,d=a.value,c=!1,u=a.alias;u&&(i=u[0],E(r,M([0,1],u)));for(var l=1,h=!0;l=r.length){var y=f(d,p);d=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:d[p]}else h=_(d,p),d=d[p];h&&!c&&(m[o]=d)}}return d}},{"1f00f712d594ccf":"hqwBR","23730654306aa64c":"2oIP9","7c5e688e48cd07b0":"sXn6L",b03d0058935d00bf:"crIfq"}],hqwBR:[function(e,t,r){"use strict";var i="undefined"!=typeof Symbol&&Symbol,n=e("3fb25678c62d2fce");t.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},{"3fb25678c62d2fce":"iaBeb"}],"2oIP9":[function(e,t,r){"use strict";var i={foo:{}},n=Object;t.exports=function(){return({__proto__:i}).foo===i.foo&&!(({__proto__:null})instanceof n)}},{}],sXn6L:[function(e,t,r){"use strict";var i=e("ebece74382f80db9");t.exports=Function.prototype.bind||i},{ebece74382f80db9:"POx14"}],POx14:[function(e,t,r){"use strict";var i=Array.prototype.slice,n=Object.prototype.toString;t.exports=function(e){var t,r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var a=i.call(arguments,1),s=Math.max(0,r.length-a.length),o=[],f=0;f-1?t:"Object"===t&&y(e)}return f?g(e):null}},{"2941d48f36957e3c":"brr8P",beaf5502a5823cce:"2kFgN",e5d203a1b4c809f9:"kP5zq","83f633f9b335db8f":"dGEhg",ce6b45c571ba4e3e:"8Spe5","9e7ef6c88184c56":"8kCl3"}],brr8P:[function(e,t,r){"use strict";var i=e("e50ebc24bbb25feb"),n=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var i=0,n=e.length;i=3&&(a=r),"[object Array]"===n.call(e)?s(e,t,a):"string"==typeof e?o(e,t,a):f(e,t,a)}},{e50ebc24bbb25feb:"3XeZC"}],"3XeZC":[function(e,t,r){"use strict";var i,n,a=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{i=Object.defineProperty({},"length",{get:function(){throw n}}),n={},s(function(){throw 42},null,i)}catch(e){e!==n&&(s=null)}else s=null;var o=/^\s*class\b/,f=function(e){try{var t=a.call(e);return o.test(t)}catch(e){return!1}},d=function(e){try{if(f(e))return!1;return a.call(e),!0}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(h=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=s?function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,i)}catch(e){if(e!==n)return!1}return!f(e)&&d(e)}:function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return d(e);if(f(e))return!1;var t=c.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&d(e)}},{}],"2kFgN":[function(e,t,r){"use strict";var i=arguments[3],n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?i:globalThis;t.exports=function(){for(var e=[],t=0;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",m="",g="",y="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function _(e){return l(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var M=function(e){var t,r;function o(e){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),"object"!==u(e)||null===e)throw new h("options","Object",e);var t,r=e.message,n=e.operator,f=e.stackStartFn,d=e.actual,l=e.expected,M=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=a(this,c(o).call(this,String(r)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(b="\x1b[34m",m="\x1b[32m",y="\x1b[39m",g="\x1b[31m"):(b="",m="",y="",g="")),"object"===u(d)&&null!==d&&"object"===u(l)&&null!==l&&"stack"in d&&d instanceof Error&&"stack"in l&&l instanceof Error&&(d=w(d),l=w(l)),"deepStrictEqual"===n||"strictEqual"===n)t=a(this,c(o).call(this,function(e,t,r){var n="",a="",s=0,o="",f=!1,d=_(e),c=d.split("\n"),l=_(t).split("\n"),h=0,w="";if("strictEqual"===r&&"object"===u(e)&&"object"===u(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===c.length&&1===l.length&&c[0]!==l[0]){var M=c[0].length+l[0].length;if(M<=10){if(("object"!==u(e)||null===e)&&("object"!==u(t)||null===t)&&(0!==e||0!==t))return"".concat(v[r],"\n\n")+"".concat(c[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&M<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;c[0][h]===l[0][h];)h++;h>2&&(w="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var E=c[c.length-1],A=l[l.length-1];E===A&&(h++<2?o="\n ".concat(E).concat(o):n=E,c.pop(),l.pop(),0!==c.length&&0!==l.length);)E=c[c.length-1],A=l[l.length-1];var S=Math.max(c.length,l.length);if(0===S){var x=d.split("\n");if(x.length>30)for(x[26]="".concat(b,"...").concat(y);x.length>27;)x.pop();return"".concat(v.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(o="\n".concat(b,"...").concat(y).concat(o),f=!0),""!==n&&(o="\n ".concat(n).concat(o),n="");var I=0,R=v[r]+"\n".concat(m,"+ actual").concat(y," ").concat(g,"- expected").concat(y),k=" ".concat(b,"...").concat(y," Lines skipped");for(h=0;h1&&h>2&&(T>4?(a+="\n".concat(b,"...").concat(y),f=!0):T>3&&(a+="\n ".concat(l[h-2]),I++),a+="\n ".concat(l[h-1]),I++),s=h,n+="\n".concat(g,"-").concat(y," ").concat(l[h]),I++;else if(l.length1&&h>2&&(T>4?(a+="\n".concat(b,"...").concat(y),f=!0):T>3&&(a+="\n ".concat(c[h-2]),I++),a+="\n ".concat(c[h-1]),I++),s=h,a+="\n".concat(m,"+").concat(y," ").concat(c[h]),I++;else{var C=l[h],P=c[h],O=P!==C&&(!p(P,",")||P.slice(0,-1)!==C);O&&p(C,",")&&C.slice(0,-1)===P&&(O=!1,P+=","),O?(T>1&&h>2&&(T>4?(a+="\n".concat(b,"...").concat(y),f=!0):T>3&&(a+="\n ".concat(c[h-2]),I++),a+="\n ".concat(c[h-1]),I++),s=h,a+="\n".concat(m,"+").concat(y," ").concat(P),n+="\n".concat(g,"-").concat(y," ").concat(C),I+=2):(a+=n,n="",(1===T||0===h)&&(a+="\n ".concat(P),I++))}if(I>20&&h30)for(A[26]="".concat(b,"...").concat(y);A.length>27;)A.pop();t=1===A.length?a(this,c(o).call(this,"".concat(E," ").concat(A[0]))):a(this,c(o).call(this,"".concat(E,"\n\n").concat(A.join("\n"),"\n")))}else{var S=_(d),x="",I=v[n];"notDeepEqual"===n||"notEqual"===n?(S="".concat(v[n],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(x="".concat(_(l)),S.length>512&&(S="".concat(S.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===n||"equal"===n?S="".concat(I,"\n\n").concat(S,"\n\nshould equal\n\n"):x=" ".concat(n," ").concat(x)),t=a(this,c(o).call(this,"".concat(S).concat(x)))}return Error.stackTraceLimit=M,t.generatedMessage=!r,Object.defineProperty(s(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=d,t.expected=l,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(s(t),f),t.stack,t.name="AssertionError",a(t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(o,e),t=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:l.custom,value:function(e,t){return l(this,function(e){for(var t=1;t2?arguments[2]:{},a=i(t);n&&(a=s.call(a,Object.getOwnPropertySymbols(t)));for(var o=0;o=0&&"[object Function]"===i.call(e.callee)),r}},{}],aNcRl:[function(e,t,r){"use strict";var i;if(!Object.keys){var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=e("b0d8c8b84be91ffd"),o=Object.prototype.propertyIsEnumerable,f=!o.call({toString:null},"toString"),d=o.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&n.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return u(e);try{return u(e)}catch(e){return!1}};i=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),i=s(e),o=t&&"[object String]"===a.call(e),u=[];if(!t&&!r&&!i)throw TypeError("Object.keys called on a non-object");var l=d&&r;if(o&&e.length>0&&!n.call(e,0))for(var h=0;h0)for(var b=0;b10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=4294967296}function P(e){return Object.keys(e).filter(C).concat(d(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function O(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),a("output",e,t),e}function f(e){return Object.prototype.toString.call(e).slice(8,-1)}t.exports=e=>({contextRandomize(t){if(n(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&a("seed",t,32),1===e.contextRandomize(t))throw Error(i.CONTEXT_RANDOMIZE_UNKNOW)},privateKeyVerify:t=>(a("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(a("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw Error(i.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw Error(i.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw Error(i.TWEAK_MUL)}},publicKeyVerify:t=>(a("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(a("private key",t,32),s(r),n=o(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw Error(i.SECKEY_INVALID);case 2:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,n){switch(a("public key",t,[33,65]),s(r),n=o(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,n){switch(a("public key",t,[33,65]),s(r),n=o(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.IMPOSSIBLE_CASE);case 3:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,f){for(let e of(n(Array.isArray(t),"Expected public keys to be an Array"),n(t.length>0,"Expected public keys array will have more than zero items"),t))a("public key",e,[33,65]);switch(s(r),f=o(f,r?33:65),e.publicKeyCombine(f,t)){case 0:return f;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.PUBKEY_COMBINE);case 3:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,n=!0,f){switch(a("public key",t,[33,65]),a("tweak",r,32),s(n),f=o(f,n?33:65),e.publicKeyTweakAdd(f,t,r)){case 0:return f;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.TWEAK_ADD)}},publicKeyTweakMul(t,r,n=!0,f){switch(a("public key",t,[33,65]),a("tweak",r,32),s(n),f=o(f,n?33:65),e.publicKeyTweakMul(f,t,r)){case 0:return f;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.TWEAK_MUL)}},signatureNormalize(t){switch(a("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw Error(i.SIG_PARSE)}},signatureExport(t,r){a("signature",t,64),r=o(r,72);let n={output:r,outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(a("signature",t),r=o(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,s={},d){a("message",t,32),a("private key",r,32),n("Object"===f(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.noncefn&&n("Function"===f(s.noncefn),"Expected options.noncefn to be a Function"),d=o(d,64);let c={signature:d,recid:null};switch(e.ecdsaSign(c,t,r,s.data,s.noncefn)){case 0:return c;case 1:throw Error(i.SIGN);case 2:throw Error(i.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,n){switch(a("signature",t,64),a("message",r,32),a("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.PUBKEY_PARSE)}},ecdsaRecover(t,r,d,c=!0,u){switch(a("signature",t,64),n("Number"===f(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),a("message",d,32),s(c),u=o(u,c?33:65),e.ecdsaRecover(u,t,r,d)){case 0:return u;case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.RECOVER);case 3:throw Error(i.IMPOSSIBLE_CASE)}},ecdh(t,r,s={},d){switch(a("public key",t,[33,65]),a("private key",r,32),n("Object"===f(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.hashfn?(n("Function"===f(s.hashfn),"Expected options.hashfn to be a Function"),void 0!==s.xbuf&&a("options.xbuf",s.xbuf,32),void 0!==s.ybuf&&a("options.ybuf",s.ybuf,32),a("output",d)):d=o(d,32),e.ecdh(d,t,r,s.data,s.hashfn,s.xbuf,s.ybuf)){case 0:return d;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.ECDH)}}})},{}],"6XZs0":[function(e,t,r){let i=e("3ab9749d2e756678").ec,n=new i("secp256k1"),a=n.curve,s=a.n.constructor;function o(e){let t=e[0];switch(t){case 2:case 3:if(33!==e.length)return null;return function(e,t){let r=new s(t);if(r.cmp(a.p)>=0)return null;let i=(r=r.toRed(a.red)).redSqr().redIMul(r).redIAdd(a.b).redSqrt();return 3===e!==i.isOdd()&&(i=i.redNeg()),n.keyPair({pub:{x:r,y:i}})}(t,e.subarray(1,33));case 4:case 6:case 7:if(65!==e.length)return null;return function(e,t,r){let i=new s(t),o=new s(r);if(i.cmp(a.p)>=0||o.cmp(a.p)>=0||(i=i.toRed(a.red),o=o.toRed(a.red),(6===e||7===e)&&o.isOdd()!==(7===e)))return null;let f=i.redSqr().redIMul(i);return o.redSqr().redISub(f.redIAdd(a.b)).isZero()?n.keyPair({pub:{x:i,y:o}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function f(e,t){let r=t.encode(null,33===e.length);for(let t=0;t0,privateKeyVerify(e){let t=new s(e);return 0>t.cmp(a.n)&&!t.isZero()?0:1},privateKeyNegate(e){let t=new s(e),r=a.n.sub(t).umod(a.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){let r=new s(t);if(r.cmp(a.n)>=0||(r.iadd(new s(e)),r.cmp(a.n)>=0&&r.isub(a.n),r.isZero()))return 1;let i=r.toArrayLike(Uint8Array,"be",32);return e.set(i),0},privateKeyTweakMul(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;r.imul(new s(e)),r.cmp(a.n)>=0&&(r=r.umod(a.n));let i=r.toArrayLike(Uint8Array,"be",32);return e.set(i),0},publicKeyVerify(e){let t=o(e);return null===t?1:0},publicKeyCreate(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;let i=n.keyFromPrivate(t).getPublic();return f(e,i),0},publicKeyConvert(e,t){let r=o(t);if(null===r)return 1;let i=r.getPublic();return f(e,i),0},publicKeyNegate(e,t){let r=o(t);if(null===r)return 1;let i=r.getPublic();return i.y=i.y.redNeg(),f(e,i),0},publicKeyCombine(e,t){let r=Array(t.length);for(let e=0;e=0)return 2;let n=i.getPublic().add(a.g.mul(r));return n.isInfinity()?2:(f(e,n),0)},publicKeyTweakMul(e,t,r){let i=o(t);if(null===i)return 1;if((r=new s(r)).cmp(a.n)>=0||r.isZero())return 2;let n=i.getPublic().mul(r);return f(e,n),0},signatureNormalize(e){let t=new s(e.subarray(0,32)),r=new s(e.subarray(32,64));return t.cmp(a.n)>=0||r.cmp(a.n)>=0?1:(1===r.cmp(n.nh)&&e.set(a.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){let r=t.subarray(0,32),i=t.subarray(32,64);if(new s(r).cmp(a.n)>=0||new s(i).cmp(a.n)>=0)return 1;let{output:n}=e,o=n.subarray(4,37);o[0]=0,o.set(r,1);let f=33,d=0;for(;f>1&&0===o[d]&&!(128&o[d+1]);--f,++d);if(128&(o=o.subarray(d))[0]||f>1&&0===o[0]&&!(128&o[1]))return 1;let c=n.subarray(39,72);c[0]=0,c.set(i,1);let u=33,l=0;for(;u>1&&0===c[l]&&!(128&c[l+1]);--u,++l);return 128&(c=c.subarray(l))[0]||u>1&&0===c[0]&&!(128&c[1])?1:(e.outputlen=6+f+u,n[0]=48,n[1]=e.outputlen-2,n[2]=2,n[3]=o.length,n.set(o,4),n[4+f]=2,n[5+f]=c.length,n.set(c,6+f),0)},signatureImport(e,t){if(t.length<8||t.length>72||48!==t[0]||t[1]!==t.length-2||2!==t[2])return 1;let r=t[3];if(0===r||5+r>=t.length||2!==t[4+r])return 1;let i=t[5+r];if(0===i||6+r+i!==t.length||128&t[4]||r>1&&0===t[4]&&!(128&t[5])||128&t[r+6]||i>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let n=t.subarray(4,4+r);if(33===n.length&&0===n[0]&&(n=n.subarray(1)),n.length>32)return 1;let o=t.subarray(6+r);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw Error("S length is too long");let f=new s(n);f.cmp(a.n)>=0&&(f=new s(0));let d=new s(t.subarray(6+r));return d.cmp(a.n)>=0&&(d=new s(0)),e.set(f.toArrayLike(Uint8Array,"be",32),0),e.set(d.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,i,o){let f;if(o){let e=o;o=n=>{let a=e(t,r,null,i,n),o=a instanceof Uint8Array&&32===a.length;if(!o)throw Error("This is the way");return new s(a)}}let d=new s(r);if(d.cmp(a.n)>=0||d.isZero())return 1;try{f=n.sign(t,r,{canonical:!0,k:o,pers:i})}catch(e){return 1}return e.signature.set(f.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(f.s.toArrayLike(Uint8Array,"be",32),32),e.recid=f.recoveryParam,0},ecdsaVerify(e,t,r){let i={r:e.subarray(0,32),s:e.subarray(32,64)},f=new s(i.r),d=new s(i.s);if(f.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(1===d.cmp(n.nh)||f.isZero()||d.isZero())return 3;let c=o(r);if(null===c)return 2;let u=c.getPublic(),l=n.verify(t,i,u);return l?0:3},ecdsaRecover(e,t,r,i){let o;let d={r:t.slice(0,32),s:t.slice(32,64)},c=new s(d.r),u=new s(d.s);if(c.cmp(a.n)>=0||u.cmp(a.n)>=0)return 1;if(c.isZero()||u.isZero())return 2;try{o=n.recoverPubKey(i,d,r)}catch(e){return 2}return f(e,o),0},ecdh(e,t,r,i,f,d,c){let u=o(t);if(null===u)return 1;let l=new s(r);if(l.cmp(a.n)>=0||l.isZero())return 2;let h=u.getPublic().mul(l);if(void 0===f){let t=h.encode(null,!0),r=n.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{d||(d=new Uint8Array(32));let t=h.getX().toArray("be",32);for(let e=0;e<32;++e)d[e]=t[e];c||(c=new Uint8Array(32));let r=h.getY().toArray("be",32);for(let e=0;e<32;++e)c[e]=r[e];let n=f(d,c,i),a=n instanceof Uint8Array&&n.length===e.length;if(!a)return 2;e.set(n)}return 0}}},{"3ab9749d2e756678":"9VjgU"}],"9VjgU":[function(e,t,r){"use strict";r.version=e("515d1f18e2287297").version,r.utils=e("9f55689fa043728c"),r.rand=e("7afc0877735a9bc4"),r.curve=e("5ccf953184e3a528"),r.curves=e("8f6bfdba100e4"),r.ec=e("81c5640b36274b08"),r.eddsa=e("2d59202631b9dddc")},{"515d1f18e2287297":"hk5ev","9f55689fa043728c":"jv07p","7afc0877735a9bc4":"dpC9B","5ccf953184e3a528":"ldLiU","8f6bfdba100e4":"7c3k1","81c5640b36274b08":"8KPXv","2d59202631b9dddc":"kYSAK"}],hk5ev:[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],jv07p:[function(e,t,r){"use strict";var i=e("30b1bd8701c16231"),n=e("b4abad357e6d8a61"),a=e("20d152f2d74d3ff5");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{"30b1bd8701c16231":"8vHNk",b4abad357e6d8a61:"h59lk","20d152f2d74d3ff5":"6lUA8"}],"8vHNk":[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1a126d25aa085b98").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,W=K>>>13,V=0|o[2],G=8191&V,J=V>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,W)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,W)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,W)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,W)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,W)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,W)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,W)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,W)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,W)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,W)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,W)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,W)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,W)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,W)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,W)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,W)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,W)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,W))+Math.imul(F,H)|0,a=Math.imul(F,W),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1a126d25aa085b98":"3eno3"}],ldLiU:[function(e,t,r){"use strict";r.base=e("36df7a1fa4062a40"),r.short=e("a8903f9c0ec7f838"),r.mont=e("b1c636d0735cfc74"),r.edwards=e("641434b95a444f49")},{"36df7a1fa4062a40":"lo2JW",a8903f9c0ec7f838:"kiAQy",b1c636d0735cfc74:"hidAj","641434b95a444f49":"gdTwR"}],lo2JW:[function(e,t,r){"use strict";var i=e("bb5c5ded1efca0d"),n=e("2f963e1cc49d6bf9"),a=n.getNAF,s=n.getJSF,o=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{b580e76a14dd105e:"jv07p",f47a16c1a44d2ae4:"8vHNk","7f74896e278aaa6":"cJ2FP","76a1d4717d39ade8":"lo2JW"}],hidAj:[function(e,t,r){"use strict";var i=e("e33f0d2e1eecf7f9"),n=e("343271423de36e1f"),a=e("55ed48e944ee81cf"),s=e("99d5d266bf84363f");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{e33f0d2e1eecf7f9:"8vHNk","343271423de36e1f":"cJ2FP","55ed48e944ee81cf":"lo2JW","99d5d266bf84363f":"jv07p"}],gdTwR:[function(e,t,r){"use strict";var i=e("e3bbf5c6ae99d21"),n=e("f9de6ae1eb9887b1"),a=e("63cf93bbb8201582"),s=e("bfe1d438bad147c6"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{e3bbf5c6ae99d21:"jv07p",f9de6ae1eb9887b1:"8vHNk","63cf93bbb8201582":"cJ2FP",bfe1d438bad147c6:"lo2JW"}],"7c3k1":[function(e,t,r){"use strict";var i,n=e("5d5c7f65e207a0e5"),a=e("fe6522b5a3d0a683"),s=e("449099d48ddea13d").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("8e4d2dbc69db455c")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"5d5c7f65e207a0e5":"2Tlxk",fe6522b5a3d0a683:"ldLiU","449099d48ddea13d":"jv07p","8e4d2dbc69db455c":"ktUJy"}],ktUJy:[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"]]}}},{}],"8KPXv":[function(e,t,r){"use strict";var i=e("4b7c73a4295324bc"),n=e("26ad2fdef6d356a0"),a=e("fc57d50c3e8352c5"),s=e("a57e5f083c376277"),o=e("6f934e7e44c53b00"),f=a.assert,d=e("5ade42af885bef06"),c=e("362a31fd274a686d");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"4b7c73a4295324bc":"8vHNk","26ad2fdef6d356a0":"eo8Xm",fc57d50c3e8352c5:"jv07p",a57e5f083c376277:"7c3k1","6f934e7e44c53b00":"dpC9B","5ade42af885bef06":"EgwOK","362a31fd274a686d":"eflWV"}],EgwOK:[function(e,t,r){"use strict";var i=e("fc07b60947f902ae"),n=e("347eb2373ea05299").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},{fc07b60947f902ae:"8vHNk","347eb2373ea05299":"jv07p"}],eflWV:[function(e,t,r){"use strict";var i=e("92655080a05ec8e2"),n=e("741d38651df4c980"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{"92655080a05ec8e2":"8vHNk","741d38651df4c980":"jv07p"}],kYSAK:[function(e,t,r){"use strict";var i=e("aaf385060c932d0d"),n=e("57f1a6abbd8ecb9b"),a=e("d8600df3c7e1895c"),s=a.assert,o=a.parseBytes,f=e("c9939b1e45e07e7a"),d=e("659421675c1b56f5");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=0})},r.toAscii=function(e){var t="",r=0,i=e.length;for("0x"===e.substring(0,2)&&(r=2);r=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToHex=r.bufferToInt=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;var s=e("35add0199f01c487"),o=e("bb97aaf37314b94f"),f=e("47bb7444a1458900");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},r.intToBuffer=function(e){var t=(0,r.intToHex)(e);return i.from((0,o.padToEven)(t.slice(2)),"hex")},r.zeros=function(e){return i.allocUnsafe(e).fill(0)};var d=function(e,t,i){var n=(0,r.zeros)(t);return i?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,f.assertIsBuffer)(e),c(e)},r.unpadArray=function(e){return(0,f.assertIsArray)(e),c(e)},r.unpadHexString=function(e){return(0,f.assertIsHexString)(e),c(e=(0,o.stripHexPrefix)(e))},r.toBuffer=function(e){if(null==e)return i.allocUnsafe(0);if(i.isBuffer(e)||Array.isArray(e)||e instanceof Uint8Array)return i.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return i.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if(s.BN.isBN(e)){if(e.isNeg())throw Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(i)}if(e.toArray)return i.from(e.toArray());if(e.toBuffer)return i.from(e.toBuffer());throw Error("invalid type")},r.bufferToInt=function(e){return new s.BN((0,r.toBuffer)(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.fromSigned=function(e){return new s.BN(e).fromTwos(256)},r.toUnsigned=function(e){return i.from(e.toTwos(256).toArray())},r.addHexPrefix=function(e){return"string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e:"0x"+e},r.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw Error("Invalid non-even hex string input for toUtf8() provided");return i.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},r.baToJSON=function(e){if(i.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var t=[],n=0;n0&&0===d[0])throw Error("".concat(f," cannot have leading zeroes, received: ").concat(d.toString("hex")))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},r.arrToBufArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):i.from(t)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):Uint8Array.from(null!=t?t:[])}},{"36e5f935c1ed2136":"2MMCE","35add0199f01c487":"hx2li",bb97aaf37314b94f:"1a9Yl","47bb7444a1458900":"70pb8"}],"70pb8":[function(e,t,r){var i=e("e04fa42c5aa6e5c2").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;var n=e("ce8a2340e79e9511");r.assertIsHexString=function(e){if(!(0,n.isHexString)(e))throw Error("This method only supports 0x-prefixed hex strings but input was: ".concat(e))},r.assertIsBuffer=function(e){if(!i.isBuffer(e))throw Error("This method only supports Buffer but input was: ".concat(e))},r.assertIsArray=function(e){if(!Array.isArray(e))throw Error("This method only supports number arrays but input was: ".concat(e))},r.assertIsString=function(e){if("string"!=typeof e)throw Error("This method only supports strings but input was: ".concat(e))}},{e04fa42c5aa6e5c2:"2MMCE",ce8a2340e79e9511:"1a9Yl"}],ipL9G:[function(e,t,r){"use strict";var i=e("f44b07e97eb34004").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.rlphash=r.ripemd160FromArray=r.ripemd160FromString=r.ripemd160=r.sha256FromArray=r.sha256FromString=r.sha256=r.keccakFromArray=r.keccakFromHexString=r.keccakFromString=r.keccak256=r.keccak=void 0;var n=e("51bfc103b421c9c1"),a=e("88db1135dc7b3dfe"),s=e("49be5227bdf31c4b"),o=e("a6ca487a0eda3ac4"),f=e("f58e8d097a46af28");r.keccak=function(e,t){switch(void 0===t&&(t=256),(0,f.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw Error("Invald algorithm: keccak".concat(t))}},r.keccak256=function(e){return(0,r.keccak)(e)},r.keccakFromString=function(e,t){void 0===t&&(t=256),(0,f.assertIsString)(e);var n=i.from(e,"utf8");return(0,r.keccak)(n,t)},r.keccakFromHexString=function(e,t){return void 0===t&&(t=256),(0,f.assertIsHexString)(e),(0,r.keccak)((0,o.toBuffer)(e),t)},r.keccakFromArray=function(e,t){return void 0===t&&(t=256),(0,f.assertIsArray)(e),(0,r.keccak)((0,o.toBuffer)(e),t)};var d=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};r.sha256=function(e){return(0,f.assertIsBuffer)(e),d(e)},r.sha256FromString=function(e){return(0,f.assertIsString)(e),d(e)},r.sha256FromArray=function(e){return(0,f.assertIsArray)(e),d(e)};var c=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};r.ripemd160=function(e,t){return(0,f.assertIsBuffer)(e),c(e,t)},r.ripemd160FromString=function(e,t){return(0,f.assertIsString)(e),c(e,t)},r.ripemd160FromArray=function(e,t){return(0,f.assertIsArray)(e),c(e,t)},r.rlphash=function(e){return(0,r.keccak)(s.rlp.encode(e))}},{f44b07e97eb34004:"2MMCE","51bfc103b421c9c1":"fqw6n","88db1135dc7b3dfe":"cCtrs","49be5227bdf31c4b":"hx2li",a6ca487a0eda3ac4:"kZa0v",f58e8d097a46af28:"70pb8"}],fqw6n:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("63a4b06cc622796f"),n=e("cbd437b9a34f8945");r.keccak224=i.createHashFunction(function(){return n("keccak224")}),r.keccak256=i.createHashFunction(function(){return n("keccak256")}),r.keccak384=i.createHashFunction(function(){return n("keccak384")}),r.keccak512=i.createHashFunction(function(){return n("keccak512")})},{"63a4b06cc622796f":"arjap",cbd437b9a34f8945:"oijYY"}],arjap:[function(e,t,r){var i=e("bb9a509956781478").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createHashFunction=function(e){return function(t){var r=e();return r.update(t),i.from(r.digest())}}},{bb9a509956781478:"2MMCE"}],oijYY:[function(e,t,r){t.exports=e("d37e92a016c4e47")(e("fbab9cb41dbf6101"))},{d37e92a016c4e47:"ay8gt",fbab9cb41dbf6101:"5zBRp"}],ay8gt:[function(e,t,r){let i=e("a4880b37ec39f2c0"),n=e("97dde8c69f094771");t.exports=function(e){let t=i(e),r=n(e);return function(e,i){let n="string"==typeof e?e.toLowerCase():e;switch(n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw Error("Invald algorithm: "+e)}}}},{a4880b37ec39f2c0:"3cYls","97dde8c69f094771":"HIobm"}],"3cYls":[function(e,t,r){var i=e("ba3bc042a8c20564").Buffer;let{Transform:n}=e("3d3b37f8d8b4a8d4");t.exports=e=>class t extends n{constructor(t,r,i,n,a){super(a),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._hashBitLength=n,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let i=null;try{this.update(e,t)}catch(e){i=e}r(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{ba3bc042a8c20564:"2MMCE","3d3b37f8d8b4a8d4":"1mxOP"}],HIobm:[function(e,t,r){var i=e("3ec0db77c00c8eee").Buffer;let{Transform:n}=e("837353deacd2abe9");t.exports=e=>class t extends n{constructor(t,r,i,n){super(n),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._options=n,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let i=null;try{this.update(e,t)}catch(e){i=e}r(i)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{"3ec0db77c00c8eee":"2MMCE","837353deacd2abe9":"1mxOP"}],"5zBRp":[function(e,t,r){var i=e("b5f446e7af1f3288").Buffer;let n=e("2132b026a0a927c6");function a(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}a.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},a.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return t},a.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=a},{b5f446e7af1f3288:"2MMCE","2132b026a0a927c6":"gzyFP"}],gzyFP:[function(e,t,r){let i=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(let t=0;t<24;++t){let r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],c=e[7]^e[17]^e[27]^e[37]^e[47],u=e[8]^e[18]^e[28]^e[38]^e[48],l=e[9]^e[19]^e[29]^e[39]^e[49],h=u^(a<<1|s>>>31),p=l^(s<<1|a>>>31),b=e[0]^h,m=e[1]^p,g=e[10]^h,y=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,M=e[31]^p,E=e[40]^h,A=e[41]^p;h=r^(o<<1|f>>>31),p=n^(f<<1|o>>>31);let S=e[2]^h,x=e[3]^p,I=e[12]^h,R=e[13]^p,k=e[22]^h,T=e[23]^p,C=e[32]^h,P=e[33]^p,O=e[42]^h,N=e[43]^p;h=a^(d<<1|c>>>31),p=s^(c<<1|d>>>31);let j=e[4]^h,B=e[5]^p,L=e[14]^h,D=e[15]^p,F=e[24]^h,U=e[25]^p,q=e[34]^h,z=e[35]^p,K=e[44]^h,H=e[45]^p;h=o^(u<<1|l>>>31),p=f^(l<<1|u>>>31);let W=e[6]^h,V=e[7]^p,G=e[16]^h,J=e[17]^p,Z=e[26]^h,X=e[27]^p,$=e[36]^h,Y=e[37]^p,Q=e[46]^h,ee=e[47]^p;h=d^(r<<1|n>>>31),p=c^(n<<1|r>>>31);let et=e[8]^h,er=e[9]^p,ei=e[18]^h,en=e[19]^p,ea=e[28]^h,es=e[29]^p,eo=e[38]^h,ef=e[39]^p,ed=e[48]^h,ec=e[49]^p,eu=y<<4|g>>>28,el=g<<4|y>>>28,eh=v<<3|w>>>29,ep=w<<3|v>>>29,eb=M<<9|_>>>23,em=_<<9|M>>>23,eg=E<<18|A>>>14,ey=A<<18|E>>>14,ev=S<<1|x>>>31,ew=x<<1|S>>>31,e_=R<<12|I>>>20,eM=I<<12|R>>>20,eE=k<<10|T>>>22,eA=T<<10|k>>>22,eS=P<<13|C>>>19,ex=C<<13|P>>>19,eI=O<<2|N>>>30,eR=N<<2|O>>>30,ek=B<<30|j>>>2,eT=j<<30|B>>>2,eC=L<<6|D>>>26,eP=D<<6|L>>>26,eO=U<<11|F>>>21,eN=F<<11|U>>>21,ej=q<<15|z>>>17,eB=z<<15|q>>>17,eL=H<<29|K>>>3,eD=K<<29|H>>>3,eF=W<<28|V>>>4,eU=V<<28|W>>>4,eq=J<<23|G>>>9,ez=G<<23|J>>>9,eK=Z<<25|X>>>7,eH=X<<25|Z>>>7,eW=$<<21|Y>>>11,eV=Y<<21|$>>>11,eG=ee<<24|Q>>>8,eJ=Q<<24|ee>>>8,eZ=et<<27|er>>>5,eX=er<<27|et>>>5,e$=ei<<20|en>>>12,eY=en<<20|ei>>>12,eQ=es<<7|ea>>>25,e0=ea<<7|es>>>25,e1=eo<<8|ef>>>24,e2=ef<<8|eo>>>24,e6=ed<<14|ec>>>18,e3=ec<<14|ed>>>18;e[0]=b^~e_&eO,e[1]=m^~eM&eN,e[10]=eF^~e$&eh,e[11]=eU^~eY&ep,e[20]=ev^~eC&eK,e[21]=ew^~eP&eH,e[30]=eZ^~eu&eE,e[31]=eX^~el&eA,e[40]=ek^~eq&eQ,e[41]=eT^~ez&e0,e[2]=e_^~eO&eW,e[3]=eM^~eN&eV,e[12]=e$^~eh&eS,e[13]=eY^~ep&ex,e[22]=eC^~eK&e1,e[23]=eP^~eH&e2,e[32]=eu^~eE&ej,e[33]=el^~eA&eB,e[42]=eq^~eQ&eb,e[43]=ez^~e0&em,e[4]=eO^~eW&e6,e[5]=eN^~eV&e3,e[14]=eh^~eS&eL,e[15]=ep^~ex&eD,e[24]=eK^~e1&eg,e[25]=eH^~e2&ey,e[34]=eE^~ej&eG,e[35]=eA^~eB&eJ,e[44]=eQ^~eb&eI,e[45]=e0^~em&eR,e[6]=eW^~e6&b,e[7]=eV^~e3&m,e[16]=eS^~eL&eF,e[17]=ex^~eD&eU,e[26]=e1^~eg&ev,e[27]=e2^~ey&ew,e[36]=ej^~eG&eZ,e[37]=eB^~eJ&eX,e[46]=eb^~eI&ek,e[47]=em^~eR&eT,e[8]=e6^~b&e_,e[9]=e3^~m&eM,e[18]=eL^~eF&e$,e[19]=eD^~eU&eY,e[28]=eg^~ev&eC,e[29]=ey^~ew&eP,e[38]=eG^~eZ&eu,e[39]=eJ^~eX&el,e[48]=eI^~ek&eq,e[49]=eR^~eT&ez,e[0]^=i[2*t],e[1]^=i[2*t+1]}}},{}],eWBQO:[function(e,t,r){"use strict";var i,n,a=e("e5145e19d8682196").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=r.bnToRlp=r.bnToUnpaddedBuffer=r.bnToHex=void 0;var s=e("37cfb20de18df397"),o=e("df7311fc0e77ebcf"),f=e("3704eb06b821d2c0");function d(e){return(0,f.unpadBuffer)(e.toArrayLike(a))}r.bnToHex=function(e){return"0x".concat(e.toString(16))},r.bnToUnpaddedBuffer=d,r.bnToRlp=function(e){return d(e)},(i=n=r.TypeOutput||(r.TypeOutput={}))[i.Number=0]="Number",i[i.BN=1]="BN",i[i.Buffer=2]="Buffer",i[i.PrefixedHexString=3]="PrefixedHexString",r.toType=function(e,t){if(null===e)return null;if(void 0!==e){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: ".concat(e));var r=(0,f.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new s.BN(r);if(t!==n.Number)return"0x".concat(r.toString("hex"));var i=new s.BN(r),a=new s.BN(Number.MAX_SAFE_INTEGER.toString());if(i.gt(a))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return i.toNumber()}}},{e5145e19d8682196:"2MMCE","37cfb20de18df397":"hx2li",df7311fc0e77ebcf:"1a9Yl","3704eb06b821d2c0":"kZa0v"}],h1KCF:[function(e,t,r){"use strict";var i=e("65f8b02e2bf3923b").Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;var a=n(e("57d48d4c5752d674")),s=e("86f7f635d1296f7a"),o=e("a6cc3d39b2685848"),f=e("a871521595ebeb14"),d=function(){function e(e){(0,a.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,o.zeros)(20))},e.fromString=function(t){return(0,a.default)((0,f.isValidAddress)(t),"Invalid address"),new e((0,o.toBuffer)(t))},e.fromPublicKey=function(t){(0,a.default)(i.isBuffer(t),"Public key should be Buffer");var r=(0,f.pubToAddress)(t);return new e(r)},e.fromPrivateKey=function(t){(0,a.default)(i.isBuffer(t),"Private key should be Buffer");var r=(0,f.privateToAddress)(t);return new e(r)},e.generate=function(t,r){return(0,a.default)(s.BN.isBN(r)),new e((0,f.generateAddress)(t.buf,r.toArrayLike(i)))},e.generate2=function(t,r,n){return(0,a.default)(i.isBuffer(r)),(0,a.default)(i.isBuffer(n)),new e((0,f.generateAddress2)(t.buf,r,n))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new s.BN(this.buf),t=new s.BN(0),r=new s.BN("ffff","hex");return e.gte(t)&&e.lte(r)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return i.from(this.buf)},e}();r.Address=d},{"65f8b02e2bf3923b":"2MMCE","57d48d4c5752d674":"aeMhE","86f7f635d1296f7a":"hx2li",a6cc3d39b2685848:"kZa0v",a871521595ebeb14:"bzwNx"}],bqbjN:[function(e,t,r){"use strict";var i=e("d200ef6b4d9cba0f").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;var n=e("2bf6c2b11a53ce5c"),a=e("ea864e541635c1bc"),s=e("97fd1663e144162a"),o=e("42dea3862174a01b"),f=e("b51792b4dff2fac2"),d=e("98f0d93934074e71");function c(e,t){var r=(0,d.toType)(e,d.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,d.toType)(e,d.TypeOutput.BN);if(!t)return r.subn(27);var i=(0,d.toType)(t,d.TypeOutput.BN);return r.sub(i.muln(2).addn(35))}function u(e){var t=new a.BN(e);return t.eqn(0)||t.eqn(1)}r.ecsign=function(e,t,r){var a=(0,n.ecdsaSign)(e,t),s=a.signature,o=a.recid,f=i.from(s.slice(0,32)),c=i.from(s.slice(32,64));if(!r||"number"==typeof r){if(r&&!Number.isSafeInteger(r))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:f,s:c,v:r?o+(2*r+35):o+27}}return{r:f,s:c,v:(0,d.toType)(r,d.TypeOutput.BN).muln(2).addn(35).addn(o).toArrayLike(i)}},r.ecrecover=function(e,t,r,a,o){var f=i.concat([(0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(a,32)],64),d=c(t,o);if(!u(d))throw Error("Invalid signature v value");var l=(0,n.ecdsaRecover)(f,d.toNumber(),e);return i.from((0,n.publicKeyConvert)(l,!1).slice(1))},r.toRpcSig=function(e,t,r,n){if(!u(c(e,n)))throw Error("Invalid signature v value");return(0,s.bufferToHex)(i.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBuffer)(e)]))},r.toCompactSig=function(e,t,r,n){if(!u(c(e,n)))throw Error("Invalid signature v value");var a=(0,d.toType)(e,d.TypeOutput.Number),o=r;return(a>28&&a%2==1||1===a||28===a)&&(o=i.from(r),o[0]|=128),(0,s.bufferToHex)(i.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(o,32)]))},r.fromRpcSig=function(e){var t,r,i,n=(0,s.toBuffer)(e);if(n.length>=65)t=n.slice(0,32),r=n.slice(32,64),i=(0,s.bufferToInt)(n.slice(64));else if(64===n.length)t=n.slice(0,32),r=n.slice(32,64),i=(0,s.bufferToInt)(n.slice(32,33))>>7,r[0]&=127;else throw Error("Invalid signature length");return i<27&&(i+=27),{v:i,r:t,s:r}},r.isValidSignature=function(e,t,r,i,n){void 0===i&&(i=!0);var s=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new a.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length||!u(c(e,n)))return!1;var f=new a.BN(t),d=new a.BN(r);return!(f.isZero()||f.gt(o)||d.isZero()||d.gt(o))&&(!i||1!==d.cmp(s))},r.hashPersonalMessage=function(e){(0,f.assertIsBuffer)(e);var t=i.from("\x19Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,o.keccak)(i.concat([t,e]))}},{d200ef6b4d9cba0f:"2MMCE","2bf6c2b11a53ce5c":"jWaCZ",ea864e541635c1bc:"hx2li","97fd1663e144162a":"kZa0v","42dea3862174a01b":"ipL9G",b51792b4dff2fac2:"70pb8","98f0d93934074e71":"eWBQO"}],"4p8A4":[function(e,t,r){"use strict";var i=e("4f19986b48e2644b").Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.defineProperties=void 0;var a=n(e("475ac5afa7180311")),s=e("1eeed620e8c77a86"),o=e("ed5aa99cf4a3eb47"),f=e("1561679a5d36a4b5");r.defineProperties=function(e,t,r){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach(function(t){r[t]="0x".concat(e[t].toString("hex"))}),r}return(0,f.baToJSON)(e.raw)},e.serialize=function(){return o.rlp.encode(e.raw)},t.forEach(function(t,r){function n(){return e.raw[r]}function s(n){"00"!==(n=(0,f.toBuffer)(n)).toString("hex")||t.allowZero||(n=i.allocUnsafe(0)),t.allowLess&&t.length?(n=(0,f.unpadBuffer)(n),(0,a.default)(t.length>=n.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):!(t.allowZero&&0===n.length)&&t.length&&(0,a.default)(t.length===n.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[r]=n}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:n,set:s}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:s,get:n})}),r){if("string"==typeof r&&(r=i.from((0,s.stripHexPrefix)(r),"hex")),i.isBuffer(r)&&(r=o.rlp.decode(r)),Array.isArray(r)){if(r.length>e._fields.length)throw Error("wrong number of fields in data");r.forEach(function(t,r){e[e._fields[r]]=(0,f.toBuffer)(t)})}else if("object"==typeof r){var n=Object.keys(r);t.forEach(function(t){-1!==n.indexOf(t.name)&&(e[t.name]=r[t.name]),-1!==n.indexOf(t.alias)&&(e[t.alias]=r[t.alias])})}else throw Error("invalid data")}}},{"4f19986b48e2644b":"2MMCE","475ac5afa7180311":"aeMhE","1eeed620e8c77a86":"1a9Yl",ed5aa99cf4a3eb47:"hx2li","1561679a5d36a4b5":"kZa0v"}],"9HVeA":[function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=i(e("2c41d72e2205ba47")),a=e("d4a1dddc3f521d77"),s=function(){function e(e){this._hdkey=e}return e.fromMasterSeed=function(t){return new e(a.HDKey.fromMasterSeed(t))},e.fromExtendedKey=function(t){return new e(a.HDKey.fromExtendedKey(t))},e.prototype.privateExtendedKey=function(){if(!this._hdkey.privateExtendedKey)throw Error("This is a public key only wallet");return this._hdkey.privateExtendedKey},e.prototype.publicExtendedKey=function(){return this._hdkey.publicExtendedKey},e.prototype.derivePath=function(t){return new e(this._hdkey.derive(t))},e.prototype.deriveChild=function(t){return new e(this._hdkey.deriveChild(t))},e.prototype.getWallet=function(){return this._hdkey._privateKey?n.default.fromPrivateKey(this._hdkey._privateKey):n.default.fromPublicKey(this._hdkey._publicKey,!0)},e}();r.default=s},{"2c41d72e2205ba47":"3EQrb",d4a1dddc3f521d77:"e3XsS"}],e3XsS:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("9eadf172e078d2b");r.HDKey=i},{"9eadf172e078d2b":"fvUm3"}],fvUm3:[function(e,t,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var n=i(e("542b57e30980266")),a=i(e("b29214719ecb74bc")),s=i(e("2c84caaa37328663")),o=e("dcae1a9808881758"),f=e("1b7911d946b34666"),d=a.Buffer,c=d.from("Bitcoin seed","utf8"),u={private:76066276,public:76067358};function l(e){this.versions=e||u,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function h(e,t,r){var i=d.allocUnsafe(78);i.writeUInt32BE(t,0),i.writeUInt8(e.depth,4);var n=e.depth?e.parentFingerprint:0;return i.writeUInt32BE(n,5),i.writeUInt32BE(e.index,9),e.chainCode.copy(i,13),r.copy(i,45),i}function p(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("ripemd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){n.equal(e.length,32,"Private key must be 32 bytes."),n(!0===f.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=f.publicKeyCreate(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){n(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),n(!0===f.publicKeyVerify(e),"Invalid public key"),this._publicKey=f.publicKeyConvert(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?s.encode(h(this,this.versions.private,d.concat([d.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return s.encode(h(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),r=this;return t.forEach(function(e,t){if(0===t){n(/^[mM]{1}/.test(e),'Path must start with "m" or "M"');return}var i=e.length>1&&"'"===e[e.length-1],a=parseInt(e,10);n(a<2147483648,"Invalid index"),i&&(a+=2147483648),r=r.deriveChild(a)}),r},l.prototype.deriveChild=function(e){var t,r=e>=2147483648,i=d.allocUnsafe(4);if(i.writeUInt32BE(e,0),r){n(this.privateKey,"Could not derive hardened child key");var a=this.privateKey,s=d.alloc(1,0);a=d.concat([s,a]),t=d.concat([a,i])}else t=d.concat([this.publicKey,i]);var c=o.createHmac("sha512",this.chainCode).update(t).digest(),u=c.slice(0,32),h=c.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=f.privateKeyTweakAdd(this.privateKey,u)}catch(t){return this.deriveChild(e+1)}else try{p.publicKey=f.publicKeyTweakAdd(this.publicKey,u,!0)}catch(t){return this.deriveChild(e+1)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return f.sign(e,this.privateKey).signature},l.prototype.verify=function(e,t){return f.verify(e,t,this.publicKey)},l.prototype.wipePrivateData=function(){return this._privateKey&&o.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var r=o.createHmac("sha512",c).update(e).digest(),i=r.slice(0,32),n=r.slice(32),a=new l(t);return a.chainCode=n,a.privateKey=i,a},l.fromExtendedKey=function(e,t){t=t||u;var r=new l(t),i=s.decode(e),a=i.readUInt32BE(0);n(a===t.private||a===t.public,"Version mismatch: does not match private or public"),r.depth=i.readUInt8(4),r.parentFingerprint=i.readUInt32BE(5),r.index=i.readUInt32BE(9),r.chainCode=i.slice(13,45);var o=i.slice(45);return 0===o.readUInt8(0)?(n(a===t.private,"Version mismatch: version does not match private"),r.privateKey=o.slice(1)):(n(a===t.public,"Version mismatch: version does not match public"),r.publicKey=o),r},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=2147483648,t.exports=l},{"542b57e30980266":"aeMhE",b29214719ecb74bc:"6CY3D","2c84caaa37328663":"kDmIw",dcae1a9808881758:"aOafK","1b7911d946b34666":"8atUA"}],kDmIw:[function(e,t,r){"use strict";var i=e("2331ee914eecec1b"),n=e("945e45a6bff39610");t.exports=n(function(e){var t=i("sha256").update(e).digest();return i("sha256").update(t).digest()})},{"2331ee914eecec1b":"cCtrs","945e45a6bff39610":"3oGgF"}],"3oGgF":[function(e,t,r){"use strict";var i=e("caf73c5a4abad99"),n=e("73eb26535ffb490f").Buffer;t.exports=function(e){function t(t){var r=t.slice(0,-4),i=t.slice(-4),n=e(r);if(!(i[0]^n[0]|i[1]^n[1]|i[2]^n[2]|i[3]^n[3]))return r}return{encode:function(t){var r=e(t);return i.encode(n.concat([t,r],t.length+4))},decode:function(r){var n=t(i.decode(r),e);if(!n)throw Error("Invalid checksum");return n},decodeUnsafe:function(e){var r=i.decodeUnsafe(e);if(r)return t(r)}}}},{caf73c5a4abad99:"iMorp","73eb26535ffb490f":"6CY3D"}],iMorp:[function(e,t,r){var i=e("819c30266ae09475");t.exports=i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"819c30266ae09475":"kITEq"}],kITEq:[function(e,t,r){"use strict";var i=e("85b264801a1b57da").Buffer;t.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,c=new Uint8Array(s);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var l=0,h=s-1;(0!==u||l>>0,c[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");a=l,r++}for(var p=s-a;p!==s&&0===c[p];)p++;var b=i.allocUnsafe(n+(s-p));b.fill(0,0,n);for(var m=n;p!==s;)b[m++]=c[p++];return b}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=i.from(t)),!i.isBuffer(t))throw TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,a=0,s=t.length;a!==s&&0===t[a];)a++,r++;for(var d=(s-a)*c+1>>>0,u=new Uint8Array(d);a!==s;){for(var l=t[a],h=0,p=d-1;(0!==l||h>>0,u[p]=l%o>>>0,l=l/o>>>0;if(0!==l)throw Error("Non-zero carry");n=h,a++}for(var b=d-n;b!==d&&0===u[b];)b++;for(var m=f.repeat(r);b0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&s!==(0,u.sha256)((0,u.sha256)(n)).slice(0,8).toString("hex"))throw Error("Failed to decrypt input - possibly invalid passphrase");return[3,4];case 3:throw Error("Unsupported or invalid entropy type");case 4:return[2,new h.default(n)]}})})}function w(e,t){if(e.length<10)throw Error("Passphrase must be at least 10 characters");if(t.length<10)throw Error("User id must be at least 10 characters");var r=e+t,i=c.pbkdf2Sync(r,r,2e3,32,"sha256");return new h.default(i)}r.fromEtherWallet=g,r.fromEtherCamp=y,r.fromKryptoKit=v,r.fromQuorumWallet=w,r.default={fromEtherWallet:g,fromEtherCamp:y,fromKryptoKit:v,fromQuorumWallet:w}},{ed3042420ccd8af5:"2MMCE","24fb00fb13067926":"32wxM","80b78b95d57afe5f":"kf6Fl","27bf01736bf36ec9":"81Ky2",f2da54b2a853144d:"3EQrb",fd2d3cf5825f9e2d:"lb1LE",ed020d9d4847d7ef:"89KGY"}],lb1LE:[function(e,t,r){!function(e){var t,r,i,n=String.fromCharCode;function a(e){for(var t,r,i=[],n=0,a=e.length;n=55296&&t<=56319&&n=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function o(e,t){return n(e>>t&63|128)}function f(){if(i>=r)throw Error("Invalid byte index");var e=255&t[i];if(i++,(192&e)==128)return 63&e;throw Error("Invalid continuation byte")}e.version="3.0.0",e.encode=function(e){for(var t=a(e),r=t.length,i=-1,f="";++i>6&31|192):(4294901760&e)==0?(s(e),t=n(e>>12&15|224)+o(e,6)):(4292870144&e)==0&&(t=n(e>>18&7|240)+o(e,12)+o(e,6)),t+=n(63&e|128)}(t[i]);return f},e.decode=function(e){r=(t=a(e)).length,i=0;for(var o,d=[];!1!==(o=function(){var e,n,a,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&t[i],i++,(128&e)==0)return e;if((224&e)==192){if((o=(31&e)<<6|(n=f()))>=128)return o;throw Error("Invalid continuation byte")}if((240&e)==224){if((o=(15&e)<<12|(n=f())<<6|f())>=2048)return s(o),o;throw Error("Invalid continuation byte")}if((248&e)==240&&(o=(7&e)<<18|(n=f())<<12|f()<<6|f())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}());)d.push(o);return function(e){for(var t,r=e.length,i=-1,a="";++i65535&&(t-=65536,a+=n(t>>>10&1023|55296),t=56320|1023&t),a+=n(t);return a}(d)}}(r)},{}],"89KGY":[function(e,t,r){!function(e){"use strict";function r(e){return parseInt(e)===e}function i(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function n(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&i(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,i,n){(null!=i||null!=n)&&(e=e.slice?e.slice(i,n):Array.prototype.slice.call(e,i,n)),t.set(e,r)}var o,f=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&i])}return t.join("")}}),d={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],u=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=n[t],this._Kd[e-a][t%4]=n[t];for(var a,s,o=0,f=i;f>16&255]<<24^u[s>>8&255]<<16^u[255&s]<<8^u[s>>24&255]^c[o]<<24,o+=1,8!=i)for(var t=1;t>8&255]<<8^u[s>>16&255]<<16^u[s>>24&255]<<24;for(var t=i/2+1;t>2,h=f%4,this._Ke[l][h]=n[t],this._Kd[e-l][h]=n[t++],f++}for(var l=1;l>24&255]^M[s>>16&255]^E[s>>8&255]^A[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Ke[0][n];for(var s=1;s>24&255]^p[i[(n+1)%4]>>16&255]^b[i[(n+2)%4]>>8&255]^m[255&i[(n+3)%4]]^this._Ke[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Ke[t][n],f[4*n]=(u[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(u[i[(n+1)%4]>>16&255]^o>>16)&255,f[4*n+2]=(u[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(u[255&i[(n+3)%4]]^o)&255;return f},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Kd[0][n];for(var s=1;s>24&255]^y[i[(n+3)%4]>>16&255]^v[i[(n+2)%4]>>8&255]^w[255&i[(n+1)%4]]^this._Kd[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Kd[t][n],f[4*n]=(l[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(l[i[(n+3)%4]>>16&255]^o>>16)&255,f[4*n+2]=(l[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(l[255&i[(n+1)%4]]^o)&255;return f};var I=function(e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};I.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),i=0;iNumber.MAX_SAFE_INTEGER)throw Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r191&&i<224?(t.push(String.fromCharCode((31&i)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&i)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=n(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var i=e.length;i16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,i=0;ia.default),i.export(r,"v3",()=>o.default),i.export(r,"v4",()=>d.default),i.export(r,"v5",()=>u.default),i.export(r,"NIL",()=>h.default),i.export(r,"version",()=>b.default),i.export(r,"validate",()=>g.default),i.export(r,"stringify",()=>v.default),i.export(r,"parse",()=>_.default);var n=e("./v1.js"),a=i.interopDefault(n),s=e("./v3.js"),o=i.interopDefault(s),f=e("./v4.js"),d=i.interopDefault(f),c=e("./v5.js"),u=i.interopDefault(c),l=e("./nil.js"),h=i.interopDefault(l),p=e("./version.js"),b=i.interopDefault(p),m=e("./validate.js"),g=i.interopDefault(m),y=e("./stringify.js"),v=i.interopDefault(y),w=e("./parse.js"),_=i.interopDefault(w)},{"./v1.js":"gGKC5","./v3.js":"3dgAK","./v4.js":"2pDqf","./v5.js":"3eR7A","./nil.js":"etUG0","./version.js":"8g3rW","./validate.js":"fQ2nF","./stringify.js":"3MQU4","./parse.js":"6wHlw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gGKC5:[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);var s=e("./rng.js"),o=a.interopDefault(s),f=e("./stringify.js"),d=a.interopDefault(f),c=0,u=0;r.default=function(e,t,r){var a=t&&r||0,s=t||Array(16),f=(e=e||{}).node||i,l=void 0!==e.clockseq?e.clockseq:n;if(null==f||null==l){var h=e.random||(e.rng||(0,o.default))();null==f&&(f=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==l&&(l=n=(h[6]<<8|h[7])&16383)}var p=void 0!==e.msecs?e.msecs:Date.now(),b=void 0!==e.nsecs?e.nsecs:u+1,m=p-c+(b-u)/1e4;if(m<0&&void 0===e.clockseq&&(l=l+1&16383),(m<0||p>c)&&void 0===e.nsecs&&(b=0),b>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=p,u=b,n=l;var g=((268435455&(p+=122192928e5))*1e4+b)%4294967296;s[a++]=g>>>24&255,s[a++]=g>>>16&255,s[a++]=g>>>8&255,s[a++]=255&g;var y=p/4294967296*1e4&268435455;s[a++]=y>>>8&255,s[a++]=255&y,s[a++]=y>>>24&15|16,s[a++]=y>>>16&255,s[a++]=l>>>8|128,s[a++]=255&l;for(var v=0;v<6;++v)s[a+v]=f[v];return t||(0,d.default)(s)}},{"./rng.js":"8SQmh","./stringify.js":"3MQU4","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8SQmh":[function(e,t,r){var i,n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var a=new Uint8Array(16);function s(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(a)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3MQU4":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);for(var n=e("./validate.js"),a=i.interopDefault(n),s=[],o=0;o<256;++o)s.push((o+256).toString(16).substr(1));r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(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]]).toLowerCase();if(!(0,a.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fQ2nF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./regex.js"),a=i.interopDefault(n);r.default=function(e){return"string"==typeof e&&(0,a.default).test(e)}},{"./regex.js":"4Dwns","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4Dwns":[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":"cI3Jn"}],"3dgAK":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./v35.js"),a=i.interopDefault(n),s=e("./md5.js"),o=i.interopDefault(s),f=(0,a.default)("v3",48,o.default);r.default=f},{"./v35.js":"dCOwl","./md5.js":"6YMuO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dCOwl:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"DNS",()=>f),i.export(r,"URL",()=>d),i.export(r,"default",()=>function(e,t,r){function i(e,i,n,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6YMuO":[function(e,t,r){function i(e){return(e+64>>>9<<4)+14+1}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,i,a,s){var o;return n((o=n(n(t,e),n(i,s)))<>>32-a,r)}function s(e,t,r,i,n,s,o){return a(t&r|~t&i,e,t,n,s,o)}function o(e,t,r,i,n,s,o){return a(t&i|r&~i,e,t,n,s,o)}function f(e,t,r,i,n,s,o){return a(t^r^i,e,t,n,s,o)}function d(e,t,r,i,n,s,o){return a(r^(t|~i),e,t,n,s,o)}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>n%32&255,s=parseInt(i.charAt(a>>>4&15)+i.charAt(15&a),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var a=0;a>>0;v=y,y=g,g=i(m,30)>>>0,m=b,b=M}r[0]=r[0]+b>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],etUG0:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="00000000-0000-0000-0000-000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8g3rW":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./validate.js"),a=i.interopDefault(n);r.default=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eOqnc:[function(e,t,r){"use strict";var i,n,a,s,o=Object.create,f=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of c(t))l.call(e,n)||n===r||f(e,n,{get:()=>t[n],enumerable:!(i=d(t,n))||i.enumerable});return e},p=(e,t,r)=>(r=null!=e?o(u(e)):{},h(!t&&e&&e.__esModule?r:f(r,"default",{value:e,enumerable:!0}),e)),b={};((e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})})(b,{AccessTokenEvents:()=>P,CheckSessionIFrame:()=>O,ErrorResponse:()=>T,ErrorTimeout:()=>C,InMemoryWebStorage:()=>N,Log:()=>_,Logger:()=>M,MetadataService:()=>B,OidcClient:()=>$,OidcClientSettingsStore:()=>D,SessionMonitor:()=>Y,SigninResponse:()=>W,SigninState:()=>K,SignoutResponse:()=>G,State:()=>z,User:()=>Q,UserManager:()=>eh,UserManagerSettingsStore:()=>en,Version:()=>ep,WebStorageStateStore:()=>L}),t.exports=h(f({},"__esModule",{value:!0}),b);var m=p(e("cd65f2846f9a9917")),g=p(e("b081c80cbcca67d0")),y=p(e("69a1441ed613820e")),v=p(e("46685f198d718556")),w={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},_=((i=_||{})[i.NONE=0]="NONE",i[i.ERROR=1]="ERROR",i[i.WARN=2]="WARN",i[i.INFO=3]="INFO",i[i.DEBUG=4]="DEBUG",i);(n=_||(_={})).reset=function(){a=3,s=w},n.setLevel=function(e){if(!(0<=e&&e<=4))throw Error("Invalid log level");a=e},n.setLogger=function(e){s=e};var M=class{constructor(e){this._name=e}debug(...e){a>=4&&s.debug(M._format(this._name,this._method),...e)}info(...e){a>=3&&s.info(M._format(this._name,this._method),...e)}warn(...e){a>=2&&s.warn(M._format(this._name,this._method),...e)}error(...e){a>=1&&s.error(M._format(this._name,this._method),...e)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug("begin"),t}static createStatic(e,t){let r=new M(`${e}.${t}`);return r.debug("begin"),r}static _format(e,t){let r=`[${e}]`;return t?`${r} ${t}:`:r}static debug(e,...t){a>=4&&s.debug(M._format(e),...t)}static info(e,...t){a>=3&&s.info(M._format(e),...t)}static warn(e,...t){a>=2&&s.warn(M._format(e),...t)}static error(e,...t){a>=1&&s.error(M._format(e),...t)}};_.reset();var E=class{static _randomWord(){return m.default.lib.WordArray.random(1).words[0]}static generateUUIDv4(){let e="10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^E._randomWord()&15>>+e/4).toString(16));return e.replace(/-/g,"")}static generateCodeVerifier(){return E.generateUUIDv4()+E.generateUUIDv4()+E.generateUUIDv4()}static generateCodeChallenge(e){try{let t=(0,g.default)(e);return y.default.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){throw M.error("CryptoUtils.generateCodeChallenge",e),e}}static generateBasicAuth(e,t){let r=v.default.parse([e,t].join(":"));return y.default.stringify(r)}},A=class{constructor(e){this._name=e,this._logger=new M(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}raise(...e){for(let t of(this._logger.debug("raise:",...e),this._callbacks))t(...e)}},S=p(e("3455b80cc963b26")),x=class{static decode(e){try{return(0,S.default)(e)}catch(e){throw M.error("JwtUtils.decode",e),e}}},I=class{static center({...e}){var t;return null==e.width&&(e.width=null!=(t=[800,720,600,480].find(e=>e<=window.outerWidth/1.618))?t:360),null!=e.left||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),null!=e.height&&(null!=e.top||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${"boolean"!=typeof t?t:t?"yes":"no"}`).join(",")}},R=class extends A{constructor(){super(...arguments),this._logger=new M(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let e=this._expiration-R.getEpochTime();this._logger.debug("timer completes in",e),this._expiration<=R.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(e){let t=this._logger.create("init");e=Math.max(Math.floor(e),1);let r=R.getEpochTime()+e;if(this.expiration===r&&this._timerHandle){t.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),t.debug("using duration",e),this._expiration=r;let i=Math.min(e,5);this._timerHandle=setInterval(this._callback,1e3*i)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},k=class{static readParams(e,t="query"){if(!e)throw TypeError("Invalid URL");let r=new URL(e,"http://127.0.0.1"),i=r["fragment"===t?"hash":"search"];return new URLSearchParams(i.slice(1))}},T=class extends Error{constructor(e,t){var r,i,n;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw M.error("ErrorResponse","No error passed"),Error("No error passed");this.error=e.error,this.error_description=null!=(r=e.error_description)?r:null,this.error_uri=null!=(i=e.error_uri)?i:null,this.state=e.userState,this.session_state=null!=(n=e.session_state)?n:null,this.url_state=e.url_state}},C=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},P=class{constructor(e){this._logger=new M("AccessTokenEvents"),this._expiringTimer=new R("Access token expiring"),this._expiredTimer=new R("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){let t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){let r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let e=r-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug("registering expiring timer, raising in",e,"seconds"),this._expiringTimer.init(e)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();let i=r+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},O=class{constructor(e,t,r,i,n){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=n,this._logger=new M("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(e.data+" message from check session op iframe"))};let a=new URL(r);this._frame_origin=a.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=a.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},N=class{constructor(){this._logger=new M("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},j=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new M("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:r,...i}=t;if(!r)return await fetch(e,i);let n=new AbortController,a=setTimeout(()=>n.abort(),1e3*r);try{let r=await fetch(e,{...t,signal:n.signal});return r}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw new C("Network timed out");throw e}finally{clearTimeout(a)}}async getJson(e,{token:t,credentials:r}={}){let i,n;let a=this._logger.create("getJson"),s={Accept:this._contentTypes.join(", ")};t&&(a.debug("token passed, setting Authorization header"),s.Authorization="Bearer "+t),this.appendExtraHeaders(s);try{a.debug("url:",e),i=await this.fetchWithTimeout(e,{method:"GET",headers:s,credentials:r})}catch(e){throw a.error("Network Error"),e}a.debug("HTTP response received, status",i.status);let o=i.headers.get("Content-Type");if(o&&!this._contentTypes.find(e=>o.startsWith(e))&&a.throw(Error(`Invalid response Content-Type: ${null!=o?o:"undefined"}, from URL: ${e}`)),i.ok&&this._jwtHandler&&(null==o?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await i.text());try{n=await i.json()}catch(e){if(a.error("Error parsing JSON response",e),i.ok)throw e;throw Error(`${i.statusText} (${i.status})`)}if(!i.ok){if(a.error("Error from server:",n),n.error)throw new T(n);throw Error(`${i.statusText} (${i.status}): ${JSON.stringify(n)}`)}return n}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:i,initCredentials:n}){let a;let s=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};void 0!==r&&(o.Authorization="Basic "+r),this.appendExtraHeaders(o);try{s.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:i,credentials:n})}catch(e){throw s.error("Network error"),e}s.debug("HTTP response received, status",a.status);let f=a.headers.get("Content-Type");if(f&&!this._contentTypes.find(e=>f.startsWith(e)))throw Error(`Invalid response Content-Type: ${null!=f?f:"undefined"}, from URL: ${e}`);let d=await a.text(),c={};if(d)try{c=JSON.parse(d)}catch(e){if(s.error("Error parsing JSON response",e),a.ok)throw e;throw Error(`${a.statusText} (${a.status})`)}if(!a.ok){if(s.error("Error from server:",c),c.error)throw new T(c,t);throw Error(`${a.statusText} (${a.status}): ${JSON.stringify(c)}`)}return c}appendExtraHeaders(e){let t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),i=["authorization","accept","content-type"];0!==r.length&&r.forEach(r=>{if(i.includes(r.toLocaleLowerCase())){t.warn("Protected header could not be overridden",r,i);return}let n="function"==typeof this._extraHeaders[r]?this._extraHeaders[r]():this._extraHeaders[r];n&&""!==n&&(e[r]=n)})}},B=class{constructor(e){this._settings=e,this._logger=new M("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new j(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){let r=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(r.debug("resolved"),void 0===i[e]){if(!0===t){r.warn("Metadata does not contain optional property");return}r.throw(Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){let e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);let r=await this._jsonService.getJson(t);if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},L=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new M("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){this._logger.create(`get('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return t}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");let e=await this._store.length,t=[];for(let r=0;r{let t=this._logger.create("_getClaimsFromJwt");try{let r=x.decode(e);return t.debug("JWT decoding successful"),r}catch(e){throw t.error("Error parsing JWT response"),e}},this._jsonService=new j(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create("getClaims");e||this._logger.throw(Error("No token passed"));let r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);let i=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",i),i}},U=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new M("TokenClient"),this._jsonService=new j(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:i=this._settings.client_secret,...n}){let a;let s=this._logger.create("exchangeCode");r||s.throw(Error("A client_id is required")),t||s.throw(Error("A redirect_uri is required")),n.code||s.throw(Error("A code is required"));let o=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(n))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!i)throw s.throw(Error("A client_secret is required")),null;a=E.generateBasicAuth(r,i);break;case"client_secret_post":o.append("client_id",r),i&&o.append("client_secret",i)}let f=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let d=await this._jsonService.postForm(f,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),d}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:i=this._settings.scope,...n}){let a;let s=this._logger.create("exchangeCredentials");t||s.throw(Error("A client_id is required"));let o=new URLSearchParams({grant_type:e,scope:i});for(let[e,t]of Object.entries(n))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=E.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let f=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let d=await this._jsonService.postForm(f,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),d}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:i,...n}){let a;let s=this._logger.create("exchangeRefreshToken");t||s.throw(Error("A client_id is required")),n.refresh_token||s.throw(Error("A refresh_token is required"));let o=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(n))Array.isArray(t)?t.forEach(t=>o.append(e,t)):null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=E.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let f=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let d=await this._jsonService.postForm(f,{body:o,basicAuth:a,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),d}async revoke(e){var t;let r=this._logger.create("revoke");e.token||r.throw(Error("A token is required"));let i=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${null!=(t=e.token_type_hint)?t:"default token type"}`);let n=new URLSearchParams;for(let[t,r]of Object.entries(e))null!=r&&n.set(t,r);n.set("client_id",this._settings.client_id),this._settings.client_secret&&n.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:n}),r.debug("got response")}},q=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new M("ResponseValidator"),this._userInfoService=new F(this._settings,this._metadataService),this._tokenClient=new U(this._settings,this._metadataService)}async validateSigninResponse(e,t){let r=this._logger.create("validateSigninResponse");this._processSigninState(e,t),r.debug("state processed"),await this._processCode(e,t),r.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,null==t?void 0:t.skipUserInfo,e.isOpenId),r.debug("claims processed")}async validateCredentialsResponse(e,t){let r=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),r.debug("claims processed")}async validateRefreshResponse(e,t){let r=this._logger.create("validateRefreshResponse");e.userState=t.data,null!=e.session_state||(e.session_state=t.session_state),null!=e.scope||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let i=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,i),r.debug("claims processed")}validateSignoutResponse(e,t){let r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new T(e)}_processSigninState(e,t){let r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(Error("State does not match")),t.client_id||r.throw(Error("No client_id on state")),t.authority||r.throw(Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,null!=e.scope||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new T(e);t.code_verifier&&!e.code&&r.throw(Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){let i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){i.debug("not loading user info");return}i.debug("loading user info");let n=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),r&&n.sub!==e.profile.sub&&i.throw(Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(n)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){let r=this._logger.create("_processCode");if(e.code){r.debug("Validating code");let i=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,i)}else r.debug("No code to process")}_validateIdTokenAttributes(e,t){var r;let i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");let n=x.decode(null!=(r=e.id_token)?r:"");if(n.sub||i.throw(Error("ID Token is missing a subject claim")),t){let e=x.decode(t);n.sub!==e.sub&&i.throw(Error("sub in id_token does not match current sub")),n.auth_time&&n.auth_time!==e.auth_time&&i.throw(Error("auth_time in id_token does not match original auth_time")),n.azp&&n.azp!==e.azp&&i.throw(Error("azp in id_token does not match original azp")),!n.azp&&e.azp&&i.throw(Error("azp not in id_token, but present in original id_token"))}e.profile=n}},z=class{constructor(e){this.id=e.id||E.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=R.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new M("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(e){return M.createStatic("State","fromStorageString"),new z(JSON.parse(e))}static async clearStaleState(e,t){let r=M.createStatic("State","clearStaleState"),i=R.getEpochTime()-t,n=await e.getAllKeys();r.debug("got keys",n);for(let t=0;ty.searchParams.append("resource",e))}for(let[e,t]of Object.entries({response_mode:o,...g,...p}))null!=t&&y.searchParams.append(e,t.toString());this.url=y.href}},W=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){let e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-R.getEpochTime()}set expires_in(e){"string"==typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+R.getEpochTime())}get isOpenId(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}},V=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:i,extraQueryParams:n,request_type:a,client_id:s}){if(this._logger=new M("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");let o=new URL(e);for(let[e,f]of(r&&o.searchParams.append("id_token_hint",r),s&&o.searchParams.append("client_id",s),i&&(o.searchParams.append("post_logout_redirect_uri",i),t&&(this.state=new z({data:t,request_type:a}),o.searchParams.append("state",this.state.id))),Object.entries({...n})))null!=f&&o.searchParams.append(e,f.toString());this.url=o.href}},G=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},J=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Z=["sub","iss","aud","exp","iat"],X=class{constructor(e){this._settings=e,this._logger=new M("ClaimsService")}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims)for(let e of Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:J)Z.includes(e)||delete t[e];return t}mergeClaims(e,t){let r={...e};for(let[e,i]of Object.entries(t))for(let t of Array.isArray(i)?i:[i]){let i=r[e];void 0===i?r[e]=t:Array.isArray(i)?i.includes(t)||i.push(t):r[e]!==t&&("object"==typeof t&&this._settings.mergeClaims?r[e]=this.mergeClaims(i,t):r[e]=[i,t])}return r}},$=class{constructor(e,t){this._logger=new M("OidcClient"),this.settings=e instanceof D?e:new D(e),this.metadataService=null!=t?t:new B(this.settings),this._claimsService=new X(this.settings),this._validator=new q(this.settings,this.metadataService,this._claimsService),this._tokenClient=new U(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:i,id_token_hint:n,login_hint:a,skipUserInfo:s,nonce:o,url_state:f,response_type:d=this.settings.response_type,scope:c=this.settings.scope,redirect_uri:u=this.settings.redirect_uri,prompt:l=this.settings.prompt,display:h=this.settings.display,max_age:p=this.settings.max_age,ui_locales:b=this.settings.ui_locales,acr_values:m=this.settings.acr_values,resource:g=this.settings.resource,response_mode:y=this.settings.response_mode,extraQueryParams:v=this.settings.extraQueryParams,extraTokenParams:w=this.settings.extraTokenParams}){let _=this._logger.create("createSigninRequest");if("code"!==d)throw Error("Only the Authorization Code flow (with PKCE) is supported");let M=await this.metadataService.getAuthorizationEndpoint();_.debug("Received authorization endpoint",M);let E=new H({url:M,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:u,response_type:d,scope:c,state_data:e,url_state:f,prompt:l,display:h,max_age:p,ui_locales:b,id_token_hint:n,login_hint:a,acr_values:m,resource:g,request:t,request_uri:r,extraQueryParams:v,extraTokenParams:w,request_type:i,response_mode:y,client_secret:this.settings.client_secret,skipUserInfo:s,nonce:o,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();let A=E.state;return await this.settings.stateStore.set(A.id,A.toStorageString()),E}async readSigninResponseState(e,t=!1){let r=this._logger.create("readSigninResponseState"),i=new W(k.readParams(e,this.settings.response_mode));if(!i.state)throw r.throw(Error("No state in response")),null;let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;let a=K.fromStorageString(n);return{state:a,response:i}}async processSigninResponse(e){let t=this._logger.create("processSigninResponse"),{state:r,response:i}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(i,r),i}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:i={}}){let n=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),a=new W(new URLSearchParams);return Object.assign(a,n),await this._validator.validateCredentialsResponse(a,r),a}async useRefreshToken({state:e,timeoutInSeconds:t}){var r;let i;let n=this._logger.create("useRefreshToken");if(void 0===this.settings.refreshTokenAllowedScope)i=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(" "),n=(null==(r=e.scope)?void 0:r.split(" "))||[];i=n.filter(e=>t.includes(e)).join(" ")}let a=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,resource:e.resource,scope:i,timeoutInSeconds:t}),s=new W(new URLSearchParams);return Object.assign(s,a),n.debug("validating response",s),await this._validator.validateRefreshResponse(s,{...e,scope:i}),s}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:i,post_logout_redirect_uri:n=this.settings.post_logout_redirect_uri,extraQueryParams:a=this.settings.extraQueryParams}={}){let s=this._logger.create("createSignoutRequest"),o=await this.metadataService.getEndSessionEndpoint();if(!o)throw s.throw(Error("No end session endpoint")),null;s.debug("Received end session endpoint",o),r||!n||t||(r=this.settings.client_id);let f=new V({url:o,id_token_hint:t,client_id:r,post_logout_redirect_uri:n,state_data:e,extraQueryParams:a,request_type:i});await this.clearStaleState();let d=f.state;return d&&(s.debug("Signout request has state to persist"),await this.settings.stateStore.set(d.id,d.toStorageString())),f}async readSignoutResponseState(e,t=!1){let r=this._logger.create("readSignoutResponseState"),i=new G(k.readParams(e,this.settings.response_mode));if(!i.state){if(r.debug("No state in response"),i.error)throw r.warn("Response was error:",i.error),new T(i);return{state:void 0,response:i}}let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;let a=z.fromStorageString(n);return{state:a,response:i}}async processSignoutResponse(e){let t=this._logger.create("processSignoutResponse"),{state:r,response:i}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,r)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Y=class{constructor(e){this._userManager=e,this._logger=new M("SessionMonitor"),this._start=async e=>{let t=e.session_state;if(!t)return;let r=this._logger.create("_start");if(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.debug("session_state",t,", sub",this._sub)):(this._sub=void 0,this._sid=void 0,r.debug("session_state",t,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(t);return}try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){r.debug("initializing check session iframe");let i=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,s=new O(this._callback,i,e,n,a);await s.load(),this._checkSessionIFrame=s,s.start(t)}else r.warn("no check session iframe found in the metadata")}catch(e){r.error("Error from getCheckSessionIframe:",e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create("_stop");if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}catch(t){e.error("error from querySessionStatus",t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create("_callback");try{let t=await this._userManager.querySessionStatus(),r=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(r=!1,this._checkSessionIFrame.start(t.session_state),t.sid===this._sid?e.debug("same sub still logged in at OP, restarting check session iframe; session_state",t.session_state):(e.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",t.session_state),this._userManager.events._raiseUserSessionChanged())):e.debug("different subject signed into OP",t.sub):e.debug("subject no longer signed into OP"),r?this._sub?this._userManager.events._raiseUserSignedOut():this._userManager.events._raiseUserSignedIn():e.debug("no change in session detected, no event to raise")}catch(t){this._sub&&(e.debug("Error calling queryCurrentSigninSession; raising signed out event",t),this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create("_init");let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}}},Q=class{constructor(e){var t;this.id_token=e.id_token,this.session_state=null!=(t=e.session_state)?t:null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-R.getEpochTime()}set expires_in(e){void 0!==e&&(this.expires_at=Math.floor(e)+R.getEpochTime())}get expired(){let e=this.expires_in;if(void 0!==e)return e<=0}get scopes(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}toStorageString(){return new M("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(e){return M.createStatic("User","fromStorageString"),new Q(JSON.parse(e))}},ee="oidc-client",et=class{constructor(){this._abort=new A("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create("navigate");if(!this._window)throw Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);let{url:r,keepOpen:i}=await new Promise((r,i)=>{let n=n=>{var a;let s=n.data,o=null!=(a=e.scriptOrigin)?a:window.location.origin;if(n.origin===o&&(null==s?void 0:s.source)===ee){try{let r=k.readParams(s.url,e.response_mode).get("state");if(r||t.warn("no state found in response url"),n.source!==this._window&&r!==e.state)return}catch(e){this._dispose(),i(Error("Invalid response from window"))}r(s)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1)),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),i(e)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:r}}_dispose(){for(let e of(this._logger.create("_dispose"),this._disposeHandlers))e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,i=window.location.origin){e.postMessage({source:ee,url:t,keepOpen:r},i)}},er={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},ei="_blank",en=class extends D{constructor(e){let{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:i=er,popupWindowTarget:n=ei,redirectMethod:a="assign",redirectTarget:s="self",iframeNotifyParentOrigin:o=e.iframeNotifyParentOrigin,iframeScriptOrigin:f=e.iframeScriptOrigin,silent_redirect_uri:d=e.redirect_uri,silentRequestTimeoutInSeconds:c=10,automaticSilentRenew:u=!0,validateSubOnSilentRenew:l=!0,includeIdTokenInSilentRenew:h=!1,monitorSession:p=!1,monitorAnonymousSession:b=!1,checkSessionIntervalInSeconds:m=2,query_status_response_type:g="code",stopCheckSessionOnError:y=!0,revokeTokenTypes:v=["access_token","refresh_token"],revokeTokensOnSignout:w=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:M=60,userStore:E}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=i,this.popupWindowTarget=n,this.redirectMethod=a,this.redirectTarget=s,this.iframeNotifyParentOrigin=o,this.iframeScriptOrigin=f,this.silent_redirect_uri=d,this.silentRequestTimeoutInSeconds=c,this.automaticSilentRenew=u,this.validateSubOnSilentRenew=l,this.includeIdTokenInSilentRenew=h,this.monitorSession=p,this.monitorAnonymousSession=b,this.checkSessionIntervalInSeconds=m,this.stopCheckSessionOnError=y,this.query_status_response_type=g,this.revokeTokenTypes=v,this.revokeTokensOnSignout=w,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=M,E)this.userStore=E;else{let e="undefined"!=typeof window?window.sessionStorage:new N;this.userStore=new L({store:e})}}},ea=class extends et{constructor({silentRequestTimeoutInSeconds:e=10}){super(),this._logger=new M("IFrameWindow"),this._timeoutInSeconds=e,this._frame=ea.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.width="0",e.height="0",window.document.body.appendChild(e),e}async navigate(e){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);let t=setTimeout(()=>this._abort.raise(new C("IFrame timed out without a response")),1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",e=>{var t;let r=e.target;null==(t=r.parentNode)||t.removeChild(r),this._abort.raise(Error("IFrame removed from DOM"))},!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},es=class{constructor(e){this._settings=e,this._logger=new M("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ea({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ea.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},eo=class extends et{constructor({popupWindowTarget:e=ei,popupWindowFeatures:t={}}){super(),this._logger=new M("PopupWindow");let r=I.center({...er,...t});this._window=window.open(void 0,e,I.serialize(r)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||"boolean"!=typeof this._window.closed||this._window.closed){this._abort.raise(Error("Popup blocked by user"));return}this.close()},1e3*t.closePopupWindowAfterInSeconds)}async navigate(e){var t;null==(t=this._window)||t.focus();let r=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(Error("Popup closed by user"))},500);return this._disposeHandlers.add(()=>clearInterval(r)),await super.navigate(e)}close(){this._window&&!this._window.closed&&(this._window.close(),this._abort.raise(Error("Popup closed"))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},ef=class{constructor(e){this._settings=e,this._logger=new M("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new eo({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),eo.notifyOpener(e,t)}},ed=class{constructor(e){this._settings=e,this._logger=new M("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;let i;this._logger.create("prepare");let n=window.self;"top"===t&&(n=null!=(r=window.top)?r:window.self);let a=n.location[e].bind(n.location);return{navigate:async e=>{this._logger.create("navigate");let t=new Promise((e,t)=>{i=t});return a(e.url),await t},close:()=>{this._logger.create("close"),null==i||i(Error("Redirect aborted")),n.stop()}}}async callback(){}},ec=class extends P{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new M("UserManagerEvents"),this._userLoaded=new A("User loaded"),this._userUnloaded=new A("User unloaded"),this._silentRenewError=new A("Silent renew error"),this._userSignedIn=new A("User signed in"),this._userSignedOut=new A("User signed out"),this._userSessionChanged=new A("User session changed")}load(e,t=!0){super.load(e),t&&this._userLoaded.raise(e)}unload(){super.unload(),this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}_raiseSilentRenewError(e){this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}_raiseUserSignedIn(){this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}_raiseUserSignedOut(){this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}_raiseUserSessionChanged(){this._userSessionChanged.raise()}},eu=class{constructor(e){this._userManager=e,this._logger=new M("SilentRenewService"),this._isStarted=!1,this._retryTimer=new R("Retry Silent Renew"),this._tokenExpiring=async()=>{let e=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),e.debug("silent token renewal successful")}catch(t){if(t instanceof C){e.warn("ErrorTimeout from signinSilent:",t,"retry in 5s"),this._retryTimer.init(5);return}e.error("Error from signinSilent:",t),this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},el=class{constructor(e,t){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.resource=t,this.data=e.state}},eh=class{constructor(e,t,r,i){this._logger=new M("UserManager"),this.settings=new en(e),this._client=new $(e),this._redirectNavigator=null!=t?t:new ed(this.settings),this._popupNavigator=null!=r?r:new ef(this.settings),this._iframeNavigator=null!=i?i:new es(this.settings),this._events=new ec(this.settings),this._silentRenewService=new eu(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Y(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){let e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){let e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");let{redirectMethod:t,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...r},i)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){let i=this._logger.create("signinResourceOwnerCredential"),n=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");let a=await this._buildUser(n);return a.profile&&a.profile.sub?i.info("success, signed in subject",a.profile.sub):i.info("no subject"),a}async signinPopup(e={}){let t=this._logger.create("signinPopup"),{popupWindowFeatures:r,popupWindowTarget:i,...n}=e,a=this.settings.popup_redirect_uri;a||t.throw(Error("No popup_redirect_uri configured"));let s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i}),o=await this._signin({request_type:"si:p",redirect_uri:a,display:"popup",...n},s);return o&&(o.profile&&o.profile.sub?t.info("success, signed in subject",o.profile.sub):t.info("no subject")),o}async signinPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t;let r;let i=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:n,resource:a,...s}=e,o=await this._loadUser();if(null==o?void 0:o.refresh_token){i.debug("using refresh token");let e=new el(o,a);return await this._useRefreshToken(e)}let f=this.settings.silent_redirect_uri;f||i.throw(Error("No silent_redirect_uri configured")),o&&this.settings.validateSubOnSilentRenew&&(i.debug("subject prior to silent renew:",o.profile.sub),r=o.profile.sub);let d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});return(o=await this._signin({request_type:"si:s",redirect_uri:f,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==o?void 0:o.id_token:void 0,...s},d,r))&&((null==(t=o.profile)?void 0:t.sub)?i.info("success, signed in subject",o.profile.sub):i.info("no subject")),o}async _useRefreshToken(e){let t=await this._client.useRefreshToken({state:e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),r=new Q({...e,...t});return await this.storeUser(r),this._events.load(r),r}async signinSilentCallback(e=window.location.href){let t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){let{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw Error("invalid response_type in state")}}async querySessionStatus(e={}){let t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.silent_redirect_uri;n||t.throw(Error("No silent_redirect_uri configured"));let a=await this._loadUser(),s=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),o=await this._signinStart({request_type:"si:s",redirect_uri:n,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==a?void 0:a.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},s);try{let e=await this._client.processSigninResponse(o.url);if(t.debug("got signin response"),e.session_state&&e.profile.sub)return t.info("success for subject",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};return t.info("success, user not authenticated"),null}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof T)switch(e.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:e.session_state}}throw e}}async _signin(e,t,r){let i=await this._signinStart(e,t);return await this._signinEnd(i.url,r)}async _signinStart(e,t){let r=this._logger.create("_signinStart");try{let i=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signinEnd(e,t){let r=this._logger.create("_signinEnd"),i=await this._client.processSigninResponse(e);r.debug("got signin response");let n=await this._buildUser(i,t);return n}async _buildUser(e,t){let r=this._logger.create("_buildUser"),i=new Q(e);if(t){if(t!==i.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new T({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(i),r.debug("user stored"),this._events.load(i),i}async signoutRedirect(e={}){let t=this._logger.create("signoutRedirect"),{redirectMethod:r,...i}=e,n=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},n),t.info("success")}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){let t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:i,...n}=e,a=this.settings.popup_post_logout_redirect_uri,s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i});await this._signout({request_type:"so:p",post_logout_redirect_uri:a,state:null==a?void 0:{},...n},s),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){let r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;let i=this._logger.create("_signoutStart");try{let n=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(n);let a=e.id_token_hint||n&&n.id_token;a&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=a),await this.removeUser(),i.debug("user removed, creating signout request");let s=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:s.url,state:null==(r=s.state)?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signoutEnd(e){let t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;let r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...n}=e,a=this.settings.includeIdTokenInSilentSignout?null==(t=await this._loadUser())?void 0:t.id_token:void 0,s=this.settings.popup_post_logout_redirect_uri,o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:s,id_token_hint:a,...n},o),r.info("success")}async signoutSilentCallback(e=window.location.href){let t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let r=this._logger.create("_revokeInternal");if(!e)return;let i=t.filter(t=>"string"==typeof e[t]);if(!i.length){r.debug("no need to revoke due to no token(s)");return}for(let t of i)await this._client.revokeToken(e[t],t),r.info(`${t} revoked successfully`),"access_token"!==t&&(e[t]=null);await this.storeUser(e),r.debug("user stored"),this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),Q.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){let t=this._logger.create("storeUser");if(e){t.debug("storing user");let r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}},ep="2.4.0"},{cd65f2846f9a9917:"8ZzbV",b081c80cbcca67d0:"9sBUz","69a1441ed613820e":"56xS8","46685f198d718556":"7nECe","3455b80cc963b26":"dIfrw"}],"8ZzbV":[function(e,t,r){var i,n=arguments[3];t.exports=i||function(t,r){if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n&&n.crypto&&(i=n.crypto),!i)try{i=e("b7760e5f0b7216d4")}catch(e){}var i,a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},f=o.lib={},d=f.Base={extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=f.WordArray=d.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[i+a>>>2]|=s<<24-(i+a)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var e=d.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-n%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(r,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},b=f.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var r,i=this._data,n=i.words,a=i.sigBytes,s=this.blockSize,o=a/(4*s),f=(o=e?t.ceil(o):t.max((0|o)-this._minBufferSize,0))*s,d=t.min(4*f,a);if(f){for(var u=0;u>>7)^(p<<14|p>>>18)^p>>>3,m=u[h-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=b+u[h-7]+g+u[h-16]}var y=o&f^~o&d,v=i&n^i&a^n&a,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),_=l+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+y+c[h]+u[h],M=w+v;l=d,d=f,f=o,o=s+_|0,s=a,a=n,n=i,i=_+M|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+o|0,r[5]=r[5]+f|0,r[6]=r[6]+d|0,r[7]=r[7]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=n.floor(r/4294967296),t[(i+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA256=o._createHelper(l),i.HmacSHA256=o._createHmacHelper(l),i.SHA256)},{cd9e8447cb14a145:"8ZzbV"}],"56xS8":[function(e,t,r){var i,n;t.exports=(n=(i=e("6c67d43f833ec62e")).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-s%4*2;i[a>>>2]|=o<<24-a%4*8,a++}return n.create(i,a)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},{"6c67d43f833ec62e":"8ZzbV"}],"7nECe":[function(e,t,r){t.exports=e("7286559b12995fed").enc.Utf8},{"7286559b12995fed":"8ZzbV"}],dIfrw:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function n(e){this.message=e}i.defineInteropFlag(r),i.export(r,"InvalidTokenError",()=>s),n.prototype=Error(),n.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,s=0,o="";i=t.charAt(s++);~i&&(r=a%4?64*r+i:i,a++%4)&&(o+=String.fromCharCode(255&r>>(-2*a&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError",r.default=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(a(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return a(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6uh7U":[function(e,t,r){var i=arguments[3];t.exports=(function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var f=void 0;if(!o&&f)return f(s,!0);if(a)return a(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return n(t[s][1][e]||e)},c,c.exports,e,t,r,i)}return r[s].exports}for(var a=void 0,s=0;se.db.version;if(i&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function M(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n0&&(!e.db||"InvalidStateError"===n.name||"NotFoundError"===n.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===n.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,i=0;i=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var i=new FileReader;i.onerror=r,i.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},i.readAsBinaryString(t)})}):t}).then(function(t){S(i._dbInfo,m,function(a,s){if(a)return n(a);try{var o=s.objectStore(i._dbInfo.storeName);null===t&&(t=void 0);var f=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=f.error?f.error:f.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,r),n},removeItem:function(e,t){var r=this;e=d(e);var i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,m,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){i(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).clear();n.oncomplete=function(){e()},n.onabort=n.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,i=new s(function(t,i){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,f=s.openKeyCursor();f.onsuccess=function(){var r=f.result;if(!r){t(null);return}0===e?t(r.key):o?t(r.key):(o=!0,r.advance(e))},f.onerror=function(){i(f.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=c.apply(this,arguments);var r,i=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||i.name,e.storeName=e.storeName||i.storeName),e.name){var a=e.name===i.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],i=r.forages;r.db=t;for(var n=0;n>4,c[f++]=(15&i)<<4|n>>2,c[f++]=(3&n)<<6|63&a;return d}function V(e){var t,r=new Uint8Array(e),i="";for(t=0;t>2]+R[(3&r[t])<<4|r[t+1]>>4]+R[(15&r[t+1])<<2|r[t+2]>>6]+R[63&r[t+2]];return r.length%3==2?i=i.substring(0,i.length-1)+"=":r.length%3==1&&(i=i.substring(0,i.length-2)+"=="),i}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var i,n=T;e instanceof ArrayBuffer?(i=e,n+=P):(i=e.buffer,"[object Int8Array]"===r?n+=N:"[object Uint8Array]"===r?n+=j:"[object Uint8ClampedArray]"===r?n+=B:"[object Int16Array]"===r?n+=L:"[object Uint16Array]"===r?n+=F:"[object Int32Array]"===r?n+=D:"[object Uint32Array]"===r?n+=U:"[object Float32Array]"===r?n+=q:"[object Float64Array]"===r?n+=z:t(Error("Failed to get type for BinaryArray"))),t(n+V(i))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(T+O+("~~local_forage_type~"+e.type)+"~"+V(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==T)return JSON.parse(e);var t,r=e.substring(K),i=e.substring(C,K);if(i===O&&k.test(r)){var n=r.match(k);t=n[1],r=r.substring(n[0].length)}var s=W(r);switch(i){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case F:return new Uint16Array(s);case D:return new Int32Array(s);case U:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+i)}},stringToBuffer:W,bufferToString:V};function J(e,t,r,i){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,i)}function Z(e,t,r,i,n,a){e.executeSql(r,i,n,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,i,n,a)},a)},a):a(e,s)},a)}function X(e,t,r,i){var n=this;e=d(e);var a=new s(function(a,s){n.ready().then(function(){void 0===t&&(t=null);var o=t,f=n._dbInfo;f.serializer.serialize(t,function(t,d){d?s(d):f.db.transaction(function(r){Z(r,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(i>0){a(X.apply(n,[e,o,r,i-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var $={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var i in e)r[i]="string"!=typeof e[i]?e[i].toString():e[i];var n=new s(function(e,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return i(e)}r.db.transaction(function(n){J(n,r,function(){t._dbInfo=r,e()},function(e,t){i(t)})},i)});return r.serializer=G,n},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,i=new s(function(t,i){r.ready().then(function(){var n=r._dbInfo;n.db.transaction(function(r){Z(r,n,"SELECT * FROM "+n.storeName,[],function(r,i){for(var a=i.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,i){for(var n=[],a=0;a0)?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,i=r.ready().then(function(){for(var t=r._dbInfo,i=t.keyPrefix,n=i.length,a=localStorage.length,s=1,o=0;o=0;r--){var i=localStorage.key(r);0===i.indexOf(e)&&localStorage.removeItem(i)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,i=r.ready().then(function(){var t,i=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(i.keyPrefix.length)),t});return o(i,t),i},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,i=[],n=0;n=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),r}},ee=function(e,t){for(var r,i=e.length,n=0;nA);var n=e("@magic-sdk/provider"),a=e("@magic-sdk/commons");i.exportAll(a,r);var s=arguments[3],o=Object.create,f=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=void 0,p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of c(t))l.call(e,n)||n===r||f(e,n,{get:()=>t[n],enumerable:!(i=d(t,n))||i.enumerable});return e},m=(e,t,r)=>(r=null!=e?o(u(e)):{},b(!t&&e&&e.__esModule?r:f(r,"default",{value:e,enumerable:!0}),e)),g=(e,t,r)=>new Promise((i,n)=>{var a=e=>{try{o(r.next(e))}catch(e){n(e)}},s=e=>{try{o(r.throw(e))}catch(e){n(e)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),y=p((e,t)=>{!function(r){"object"==typeof e&&"u">typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("u">typeof window?window:"u">typeof s?s:"u">typeof self?self:this).localforage=r()}(function(){return(function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var f="function"==typeof h&&h;if(!o&&f)return f(s,!0);if(a)return a(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return n(t[s][1][e]||e)},c,c.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof h&&h,s=0;stypeof e.MessageChannel){var o=new e.MessageChannel;o.port1.onmessage=c,r=function(){o.port2.postMessage(0)}}else r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};var f,d=[];function c(){f=!0;for(var e,t,r=d.length;r;){for(t=d,d=[],e=-1;++etypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var i=e(1);function n(){}var a={},s=["REJECTED"],o=["FULFILLED"],f=["PENDING"];function d(e){if("function"!=typeof e)throw TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,e!==n&&h(this,e)}function c(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(e,t,r){i(function(){var i;try{i=t(r)}catch(t){return a.reject(e,t)}i===e?a.reject(e,TypeError("Cannot resolve promise with itself")):a.resolve(e,i)})}function l(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function i(t){r||(r=!0,a.reject(e,t))}function n(t){r||(r=!0,a.resolve(e,t))}var s=p(function(){t(n,i)});"error"===s.status&&i(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=d,d.prototype.catch=function(e){return this.then(null,e)},d.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(n);return this.state!==f?u(r,this.state===o?e:t,this.outcome):this.queue.push(new c(r,e,t)),r},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){u(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){u(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(l,t);if("error"===r.status)return a.reject(e,r.value);var i=r.value;if(i)h(e,i);else{e.state=o,e.outcome=t;for(var n=-1,s=e.queue.length;++ntypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){try{if("u">typeof indexedDB)return indexedDB;if("u">typeof webkitIndexedDB)return webkitIndexedDB;if("u">typeof mozIndexedDB)return mozIndexedDB;if("u">typeof OIndexedDB)return OIndexedDB;if("u">typeof msIndexedDB)return msIndexedDB}catch{return}}();function a(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var r="u">typeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,i=new r,n=0;n"u"&&e(3);var s=Promise;function o(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function f(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function d(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var u="local-forage-detect-blob-support",l=void 0,h={},p=Object.prototype.toString,b="readonly",m="readwrite";function g(e){var t=h[e.name],r={};r.promise=new s(function(e,t){r.resolve=e,r.reject=t}),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then(function(){return r.promise}):t.dbReady=r.promise}function y(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var r=h[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function w(e,t){return new s(function(r,i){if(h[e.name]=h[e.name]||x(),e.db){if(!t)return r(e.db);g(e),e.db.close()}var a=[e.name];t&&a.push(e.version);var s=n.open.apply(n,a);t&&(s.onupgradeneeded=function(t){var r=s.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(u)}catch(r){if("ConstraintError"===r.name)console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw r}}),s.onerror=function(e){e.preventDefault(),i(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},r(t),y(e)}})}function _(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),i=e.versione.db.version;if(i&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function M(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n0&&(!e.db||"InvalidStateError"===n.name||"NotFoundError"===n.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===n.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,i=0;itypeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"u">typeof indexedDB&&"u">typeof IDBKeyRange}catch{return!1}}(),iterate:function(e,t){var r=this,i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).openCursor(),o=1;s.onsuccess=function(){var r=s.result;if(r){var i=r.value;E(i)&&(i=M(i));var n=e(i,r.key,o++);void 0!==n?t(n):r.continue()}else t()},s.onerror=function(){i(s.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},getItem:function(e,t){var r=this;e=d(e);var i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),E(e)&&(e=M(e)),t(e)},s.onerror=function(){i(s.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},setItem:function(e,t,r){var i=this;e=d(e);var n=new s(function(r,n){var o;i.ready().then(function(){var e;return o=i._dbInfo,"[object Blob]"===p.call(t)?(e=o.db,"boolean"==typeof l?s.resolve(l):new s(function(t){var r=e.transaction(u,m),i=a([""]);r.objectStore(u).put(i,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var i=new FileReader;i.onerror=r,i.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},i.readAsBinaryString(t)})}):t}).then(function(t){S(i._dbInfo,m,function(a,s){if(a)return n(a);try{var o=s.objectStore(i._dbInfo.storeName);null===t&&(t=void 0);var f=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=f.error?f.error:f.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,r),n},removeItem:function(e,t){var r=this;e=d(e);var i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,m,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){i(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).clear();n.oncomplete=function(){e()},n.onabort=n.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,i=new s(function(t,i){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,f=s.openKeyCursor();f.onsuccess=function(){var r=f.result;if(!r){t(null);return}0===e||o?t(r.key):(o=!0,r.advance(e))},f.onerror=function(){i(f.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=c.apply(this,arguments);var r,i=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||i.name,e.storeName=e.storeName||i.storeName),e.name){var a=e.name===i.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],i=r.forages;r.db=t;for(var n=0;n>4,c[f++]=(15&i)<<4|n>>2,c[f++]=(3&n)<<6|63&a;return d}function V(e){var t,r=new Uint8Array(e),i="";for(t=0;t>2]+R[(3&r[t])<<4|r[t+1]>>4]+R[(15&r[t+1])<<2|r[t+2]>>6]+R[63&r[t+2]];return r.length%3==2?i=i.substring(0,i.length-1)+"=":r.length%3==1&&(i=i.substring(0,i.length-2)+"=="),i}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var i,n=T;e instanceof ArrayBuffer?(i=e,n+=P):(i=e.buffer,"[object Int8Array]"===r?n+=N:"[object Uint8Array]"===r?n+=j:"[object Uint8ClampedArray]"===r?n+=B:"[object Int16Array]"===r?n+=L:"[object Uint16Array]"===r?n+=F:"[object Int32Array]"===r?n+=D:"[object Uint32Array]"===r?n+=U:"[object Float32Array]"===r?n+=q:"[object Float64Array]"===r?n+=z:t(Error("Failed to get type for BinaryArray"))),t(n+V(i))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(T+O+("~~local_forage_type~"+e.type)+"~"+V(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==T)return JSON.parse(e);var t,r=e.substring(K),i=e.substring(C,K);if(i===O&&k.test(r)){var n=r.match(k);t=n[1],r=r.substring(n[0].length)}var s=W(r);switch(i){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case F:return new Uint16Array(s);case D:return new Int32Array(s);case U:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+i)}},stringToBuffer:W,bufferToString:V};function J(e,t,r,i){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,i)}function Z(e,t,r,i,n,a){e.executeSql(r,i,n,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,i,n,a)},a)},a):a(e,s)},a)}function X(e,t,r,i){var n=this;e=d(e);var a=new s(function(a,s){n.ready().then(function(){void 0===t&&(t=null);var o=t,f=n._dbInfo;f.serializer.serialize(t,function(t,d){d?s(d):f.db.transaction(function(r){Z(r,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(i>0){a(X.apply(n,[e,o,r,i-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var $={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var i in e)r[i]="string"!=typeof e[i]?e[i].toString():e[i];var n=new s(function(e,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return i(e)}r.db.transaction(function(n){J(n,r,function(){t._dbInfo=r,e()},function(e,t){i(t)})},i)});return r.serializer=G,n},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,i=new s(function(t,i){r.ready().then(function(){var n=r._dbInfo;n.db.transaction(function(r){Z(r,n,"SELECT * FROM "+n.storeName,[],function(r,i){for(var a=i.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,r){for(var n=[],a=0;a0?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"u">typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(e,t){var r=this,i=r.ready().then(function(){for(var t=r._dbInfo,i=t.keyPrefix,n=i.length,a=localStorage.length,s=1,o=0;o=0;r--){var i=localStorage.key(r);0===i.indexOf(e)&&localStorage.removeItem(i)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,i=r.ready().then(function(){var t,i=r._dbInfo;try{t=localStorage.key(e)}catch{t=null}return t&&(t=t.substring(i.keyPrefix.length)),t});return o(i,t),i},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,i=[],n=0;n=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),i}}},en=[ei.INDEXEDDB._driver,ei.WEBSQL._driver,ei.LOCALSTORAGE._driver],ea=["dropInstance"],es=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ea),eo={description:"",driver:en.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ef(){for(var e=1;e"u"?"undefined":i(e))!=="object")return"string"==typeof e?this._config[e]:this._config;if(this._ready)return Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)},e.prototype.defineDriver=function(e,t,r){var i=new s(function(t,r){try{var i=e._driver,n=Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver){r(n);return}for(var a=es.concat("_initStorage"),f=0,d=a.length;f{var r,i;r="u">typeof self?self:e,i=function(e){"use strict";var t=/^~~local_forage_type~([^~]+)~/,r=Object.prototype.toString;function i(e){var t=.75*e.length,r=e.length;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);for(var i=new ArrayBuffer(t),n=new Uint8Array(i),a=0,s=0;a>4,n[s++]=(15&f)<<4|d>>2,n[s++]=(3&d)<<6|63&c}return i}function n(e){for(var t=new Uint8Array(e),r="",i=0;i>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t[i])<<4|t[i+1]>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t[i+1])<<2|t[i+2]>>6]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[63&t[i+2]];return t.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function a(e,t){return(e.name||t.name)+"/"+(e.storeName||t.storeName)+"/"}function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function o(){for(var e=[],t=0;ttypeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,i=new r,n=0;n=a.length&&(a=void 0),{value:a&&a[o++],done:!a}}}),d=f.next();!d.done;d=f.next()){var c=d.value;Object.prototype.hasOwnProperty.call(t,c)&&(t.isActiveClone=null,n[c]=e(t[c]),delete t.isActiveClone)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return n}(e):{},r=a(t,this._defaultConfig),i=l.resolve(r);return this._dbInfo=t,this._dbInfo.serializer=c,this._dbInfo.keyPrefix=r,this._dbInfo.mStore=i,Promise.resolve()},e.clear=function(e){var t=this,r=this.ready().then(function(){t._dbInfo.mStore.clear()});return s(r,e),r},e.dropInstance=function(e,t){var r=f.apply(this,arguments),i=r.promise,n=r.callback;return s(i.then(function(e){l.resolve(e).drop()}),n),i},e.getItem=function(e,t){var r=this;e=d(e);var i=this.ready().then(function(){var t=r._dbInfo.mStore.get(e);return null==t?null:r._dbInfo.serializer.deserialize(t)});return s(i,t),i},e.iterate=function(e,t){var r=this,i=this.ready().then(function(){for(var t=r._dbInfo.mStore,i=t.keys(),n=0;ntypeof t?i(e):"function"==typeof define&&define.amd?define("localforage-driver-memory",["exports"],i):i(r.LocalforageDriverMemory={})}),w=m(y()),_=m(v()),M={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"},E=class extends n.ViewController{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(e=>{let t=()=>{var t;if(t=encodeURIComponent(this.parameters),[].slice.call(document.querySelectorAll(".magic-iframe")).find(e=>e.src.includes(t)))(0,n.createDuplicateIframeWarning)().log();else{let t=document.createElement("iframe");t.classList.add("magic-iframe"),t.dataset.magicIframeLabel=(0,n.createURL)(this.endpoint).host,t.title="Secure Modal",t.src=(0,n.createURL)(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,function(e){for(let[t,r]of Object.entries(M))e.style[t]=r}(t),document.body.appendChild(t),e(t)}};["loaded","interactive","complete"].includes(document.readyState)?t():window.addEventListener("load",t,!1)}),window.addEventListener("message",e=>{var t;if(e.origin===this.endpoint&&e.data&&e.data.msgType&&this.messageHandlers.size)for(let r of(e.data.response=null!=(t=e.data.response)?t:{},this.messageHandlers.values()))r(e)})}showOverlay(){return g(this,null,function*(){let e=yield this.iframe;e.style.display="block",this.activeElement=document.activeElement,e.focus()})}hideOverlay(){return g(this,null,function*(){var e;(yield this.iframe).style.display="none",null!=(e=this.activeElement)&&e.focus&&this.activeElement.focus(),this.activeElement=null})}_post(e){return g(this,null,function*(){let t=yield this.iframe;if(t&&t.contentWindow)t.contentWindow.postMessage(e,this.endpoint);else throw(0,n.createModalNotReadyError)()})}},A=(0,n.createSDK)(n.SDKBase,{platform:"web",sdkName:"magic-sdk",version:"21.2.0",defaultEndpoint:"https://auth.magic.link/",ViewController:E,configureStorage:()=>g(void 0,null,function*(){let e=w.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield e.defineDriver(_),yield e.setDriver([w.default.INDEXEDDB,w.default.LOCALSTORAGE,_._driver]),e})})},{"@magic-sdk/provider":"kInmz","@magic-sdk/commons":"jZ3vB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kInmz:[function(e,t,r){let i;var n,a,s,o,f,d=e("@parcel/transformer-js/src/esmodule-helpers.js");d.defineInteropFlag(r),d.export(r,"Extension",()=>tN),d.export(r,"MagicExtensionError",()=>eU),d.export(r,"MagicExtensionWarning",()=>eq),d.export(r,"MagicRPCError",()=>eD),d.export(r,"MagicSDKError",()=>eL),d.export(r,"MagicSDKWarning",()=>eF),d.export(r,"SDKBase",()=>tF),d.export(r,"STORE_KEY_PRIVATE_KEY",()=>tv),d.export(r,"STORE_KEY_PUBLIC_JWK",()=>tw),d.export(r,"TypedEmitter",()=>e8),d.export(r,"ViewController",()=>tU),d.export(r,"clearKeys",()=>tE),d.export(r,"createDeprecationWarning",()=>e$),d.export(r,"createDuplicateIframeWarning",()=>eJ),d.export(r,"createExtensionNotInitializedError",()=>eW),d.export(r,"createIncompatibleExtensionsError",()=>eV),d.export(r,"createInvalidArgumentError",()=>eG),d.export(r,"createJwt",()=>tA),d.export(r,"createMalformedResponseError",()=>eH),d.export(r,"createMissingApiKeyError",()=>ez),d.export(r,"createModalNotReadyError",()=>eK),d.export(r,"createPromiEvent",()=>te),d.export(r,"createPromise",()=>tt),d.export(r,"createReactNativeEndpointConfigurationWarning",()=>eX),d.export(r,"createSDK",()=>ej),d.export(r,"createSynchronousWeb3MethodWarning",()=>eZ),d.export(r,"createTypedEmitter",()=>e4),d.export(r,"createURL",()=>tg),d.export(r,"decodeJSON",()=>ex),d.export(r,"encodeJSON",()=>eS),d.export(r,"getPayloadId",()=>eQ),d.export(r,"isEmpty",()=>eO),d.export(r,"isJsonRpcErrorCode",()=>eP),d.export(r,"isJsonRpcRequestPayload",()=>ek),d.export(r,"isJsonRpcResponsePayload",()=>eT),d.export(r,"isMagicPayloadMethod",()=>eC),d.export(r,"isMajorVersionAtLeast",()=>ti),d.export(r,"isPromiEvent",()=>e9),d.export(r,"storage",()=>ts),d.export(r,"uuid",()=>ty);var c=e("@magic-sdk/types"),u=e("af855673666531db"),l=Object.create,h=Object.defineProperty,p=Object.defineProperties,b=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,M=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&M(e,r,t[r]);if(y)for(var r of y(t))_.call(t,r)&&M(e,r,t[r]);return e},A=(e,t)=>p(e,m(t)),S=(e,t,r)=>new Promise((i,n)=>{var a=e=>{try{o(r.next(e))}catch(e){n(e)}},s=e=>{try{o(r.throw(e))}catch(e){n(e)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),x=(n=(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new a(r,n||e,s),f=i?i+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],o]:e._events[f].push(o):(e._events[f]=o,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function f(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1)),f.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},f.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,s=Array(a);ntypeof t&&(t.exports=f)},()=>(a||n((a={exports:{}}).exports,a),a.exports)),I={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},R=("object"==typeof u&&u.env,()=>{}),k=(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=I,i=(t=e.exports={}).re=[],n=t.src=[],a=t.t={},s=0,o=(e,t,r)=>{let o=s++;R(o,t),a[e]=o,n[o]=t,i[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${n[a.NUMERICIDENTIFIER]})\\.(${n[a.NUMERICIDENTIFIER]})\\.(${n[a.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${n[a.NUMERICIDENTIFIERLOOSE]})\\.(${n[a.NUMERICIDENTIFIERLOOSE]})\\.(${n[a.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${n[a.NUMERICIDENTIFIER]}|${n[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${n[a.NUMERICIDENTIFIERLOOSE]}|${n[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${n[a.PRERELEASEIDENTIFIER]}(?:\\.${n[a.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${n[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[a.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${n[a.BUILDIDENTIFIER]}(?:\\.${n[a.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${n[a.MAINVERSION]}${n[a.PRERELEASE]}?${n[a.BUILD]}?`),o("FULL",`^${n[a.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${n[a.MAINVERSIONLOOSE]}${n[a.PRERELEASELOOSE]}?${n[a.BUILD]}?`),o("LOOSE",`^${n[a.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${n[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${n[a.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${n[a.XRANGEIDENTIFIER]})(?:\\.(${n[a.XRANGEIDENTIFIER]})(?:\\.(${n[a.XRANGEIDENTIFIER]})(?:${n[a.PRERELEASE]})?${n[a.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${n[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[a.XRANGEIDENTIFIERLOOSE]})(?:${n[a.PRERELEASELOOSE]})?${n[a.BUILD]}?)?)?`),o("XRANGE",`^${n[a.GTLT]}\\s*${n[a.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${n[a.GTLT]}\\s*${n[a.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",n[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${n[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${n[a.LONETILDE]}${n[a.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${n[a.LONETILDE]}${n[a.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${n[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${n[a.LONECARET]}${n[a.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${n[a.LONECARET]}${n[a.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${n[a.GTLT]}\\s*(${n[a.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${n[a.GTLT]}\\s*(${n[a.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${n[a.GTLT]}\\s*(${n[a.LOOSEPLAIN]}|${n[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${n[a.XRANGEPLAIN]})\\s+-\\s+(${n[a.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${n[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[a.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(i={exports:{}},i.exports),i.exports),T=/^[0-9]+$/,C=(e,t)=>{let r=T.test(e),i=T.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:eC(t,e)},L=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid Version: ${e}`);if(e.length>P)throw TypeError(`version is longer than ${P} characters`);R("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?N[j.LOOSE]:N[j.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>O||this.major<0)throw TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},D=(e,t,r)=>new L(e,r).compare(new L(t,r)),F=(e,t,r)=>0===D(e,t,r),U=(e,t,r)=>0!==D(e,t,r),q=(e,t,r)=>D(e,t,r)>0,z=(e,t,r)=>D(e,t,r)>=0,K=(e,t,r)=>0>D(e,t,r),H=(e,t,r)=>0>=D(e,t,r),W=(e,t,r,i)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return F(e,r,i);case"!=":return U(e,r,i);case">":return q(e,r,i);case">=":return z(e,r,i);case"<":return K(e,r,i);case"<=":return H(e,r,i);default:throw TypeError(`Invalid operator: ${t}`)}},V=Symbol("SemVer ANY"),G=class{static get ANY(){return V}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof G){if(!!t.loose===e.loose)return e;e=e.value}R("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===V?this.value="":this.value=this.operator+this.semver.version,R("comp",this)}parse(e){let t=this.options.loose?J[Z.COMPARATORLOOSE]:J[Z.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new L(r[2],this.options.loose):this.semver=V}toString(){return this.value}test(e){if(R("Comparator.test",e,this.options.loose),this.semver===V||e===V)return!0;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}return W(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof G))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new X(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new X(this.value,t).test(e.semver);let r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),n=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=W(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),o=W(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||n&&a||s||o}},{re:J,t:Z}=k,X=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof X)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new X(e.raw,t);if(e instanceof G)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?$[Y.HYPHENRANGELOOSE]:$[Y.HYPHENRANGE];R("hyphen replace",e=e.replace(r,eh(this.options.includePrerelease))),R("comparator trim",e=e.replace($[Y.COMPARATORTRIM],Q),$[Y.COMPARATORTRIM]),e=(e=(e=e.replace($[Y.TILDETRIM],ee)).replace($[Y.CARETTRIM],et)).split(/\s+/).join(" ");let i=t?$[Y.COMPARATORLOOSE]:$[Y.COMPARATOR];return e.split(" ").map(e=>ei(e,this.options)).join(" ").split(/\s+/).map(e=>el(e,this.options)).filter(this.options.loose?e=>!!e.match(i):()=>!0).map(e=>new G(e,this.options))}intersects(e,t){if(!(e instanceof X))throw TypeError("a Range is required");return this.set.some(r=>er(r,t)&&e.set.some(e=>er(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(e=>n.intersects(e,t)),n=i.pop();return r},ei=(e,t)=>(R("comp",e,t),e=eo(e,t),R("caret",e),e=ea(e,t),R("tildes",e),e=ed(e,t),R("xrange",e),e=eu(e,t),R("stars",e),e),en=e=>!e||"x"===e.toLowerCase()||"*"===e,ea=(e,t)=>e.trim().split(/\s+/).map(e=>es(e,t)).join(" "),es=(e,t)=>{let r=t.loose?$[Y.TILDELOOSE]:$[Y.TILDE];return e.replace(r,(t,r,i,n,a)=>{let s;return R("tilde",e,t,r,i,n,a),en(r)?s="":en(i)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:en(n)?s=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:a?(R("replaceTilde pr",a),s=`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`):s=`>=${r}.${i}.${n} <${r}.${+i+1}.0-0`,R("tilde return",s),s})},eo=(e,t)=>e.trim().split(/\s+/).map(e=>ef(e,t)).join(" "),ef=(e,t)=>{R("caret",e,t);let r=t.loose?$[Y.CARETLOOSE]:$[Y.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(t,r,n,a,s)=>{let o;return R("caret",e,t,r,n,a,s),en(r)?o="":en(n)?o=`>=${r}.0.0${i} <${+r+1}.0.0-0`:en(a)?o="0"===r?`>=${r}.${n}.0${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${i} <${+r+1}.0.0-0`:s?(R("replaceCaret pr",s),o="0"===r?"0"===n?`>=${r}.${n}.${a}-${s} <${r}.${n}.${+a+1}-0`:`>=${r}.${n}.${a}-${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${a}-${s} <${+r+1}.0.0-0`):(R("no pr"),o="0"===r?"0"===n?`>=${r}.${n}.${a}${i} <${r}.${n}.${+a+1}-0`:`>=${r}.${n}.${a}${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${a} <${+r+1}.0.0-0`),R("caret return",o),o})},ed=(e,t)=>(R("replaceXRanges",e,t),e.split(/\s+/).map(e=>ec(e,t)).join(" ")),ec=(e,t)=>{e=e.trim();let r=t.loose?$[Y.XRANGELOOSE]:$[Y.XRANGE];return e.replace(r,(r,i,n,a,s,o)=>{R("xRange",e,r,i,n,a,s,o);let f=en(n),d=f||en(a),c=d||en(s);return"="===i&&c&&(i=""),o=t.includePrerelease?"-0":"",f?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&c?(d&&(a=0),s=0,">"===i?(i=">=",d?(n=+n+1,a=0):a=+a+1,s=0):"<="===i&&(i="<",d?n=+n+1:a=+a+1),"<"===i&&(o="-0"),r=`${i+n}.${a}.${s}${o}`):d?r=`>=${n}.0.0${o} <${+n+1}.0.0-0`:c&&(r=`>=${n}.${a}.0${o} <${n}.${+a+1}.0-0`),R("xRange return",r),r})},eu=(e,t)=>(R("replaceStars",e,t),e.trim().replace($[Y.STAR],"")),el=(e,t)=>(R("replaceGTE0",e,t),e.trim().replace($[t.includePrerelease?Y.GTE0PRE:Y.GTE0],"")),eh=e=>(t,r,i,n,a,s,o,f,d,c,u,l,h)=>`${r=en(i)?"":en(n)?`>=${i}.0.0${e?"-0":""}`:en(a)?`>=${i}.${n}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${f=en(d)?"":en(c)?`<${+d+1}.0.0-0`:en(u)?`<${d}.${+c+1}.0-0`:l?`<=${d}.${c}.${u}-${l}`:e?`<${d}.${c}.${+u+1}-0`:`<=${f}`}`.trim(),ep=(e,t,r)=>{for(let r=0;r0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},eb=(e,t,r)=>{try{t=new X(t,r)}catch(e){return!1}return t.test(e)},{MAX_LENGTH:em}=I,{re:eg,t:ey}=k,ev=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e;if("string"!=typeof e||e.length>em||!(t.loose?eg[ey.LOOSE]:eg[ey.FULL]).test(e))return null;try{return new L(e,t)}catch(e){return null}},{re:ew,t:e_}=k,eM=(e,t)=>{if(e instanceof L)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=ew[e_.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),ew[e_.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;ew[e_.COERCERTL].lastIndex=-1}else r=e.match(ew[e_.COERCE]);return null===r?null:ev(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function eE(e){return String.fromCharCode(parseInt(e.slice(1),16))}function eA(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function eS(e){return btoa(encodeURIComponent(JSON.stringify(e)).replace(/%[0-9A-F]{2}/g,eE))}function ex(e){return JSON.parse(decodeURIComponent(Array.from(atob(e),eA).join("")))}function eI(e){return void 0===e}function eR(e){return null===e||eI(e)}function ek(e){return!eR(e)&&!eI(e.jsonrpc)&&!eI(e.id)&&!eI(e.method)&&!eI(e.params)}function eT(e){return!eR(e)&&!eI(e.jsonrpc)&&!eI(e.id)&&(!eI(e.result)||!eI(e.error))}function eC(e){return!eR(e)&&"string"==typeof e&&Object.values(c.MagicPayloadMethod).includes(e)}function eP(e){return!eR(e)&&"number"==typeof e&&Object.values(c.RPCErrorCode).includes(e)}function eO(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var eN={};function ej(e,t){return Object.assign(eN,t),e}var eB={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},eL=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,eL.prototype)}},eD=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(null==e?void 0:e.code);this.rawMessage=(null==e?void 0:e.message)||"Internal error",this.code=eP(t)?t:c.RPCErrorCode.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(null==e?void 0:e.data)||void 0,Object.setPrototypeOf(this,eD.prototype)}},eF=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},eU=class extends Error{constructor(e,t,r,i){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,eU.prototype)}},eq=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function ez(){return new eL(c.SDKErrorCode.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function eK(){return new eL(c.SDKErrorCode.ModalNotReady,"Modal is not ready.")}function eH(){return new eL(c.SDKErrorCode.MalformedResponse,"Response from the Magic iframe is malformed.")}function eW(e){return new eL(c.SDKErrorCode.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function eV(e){let t=`Some extensions are incompatible with \`${eN.sdkName}@${eN.version}\`:`;return e.filter(e=>void 0!==e.compat&&null!==e.compat).forEach(e=>{let r=e.compat[eN.sdkName];"string"==typeof r?t+=` + ${s.stack}`),W(e,`trackError_${t}`,{...i||{},errorMessage:n,errorStack:a,isTrackError:!0})}),en=e=>{if(e.passportId){let t=`passport:${e.passportId.toLowerCase()}`;return t}if(e.ethAddress){let t=`ethAddress:${e.ethAddress.toLowerCase()}`;return t}throw Error("invalid_identity")},ea=z(e=>{let t=en(e);t&&(R(o.IDENTITY,t),W("metrics","identify",e.traits))}),es=z(V("setEnvironment",e=>{R(o.ENVIRONMENT,e)})),eo=z(V("setPassportClientId",e=>{R(o.PASSPORT_CLIENT_ID,e)})),ef=z(V("setPublishableApiKey",e=>{R(o.PUBLISHABLE_API_KEY,e)})),ed=z(V("getDetail",k)),ec={localStorage:E}},{"6a0bfe3548874972":"2MMCE","15cbbe915ba0ee1":"fg0b3",axios:"jhAcT","lru-memorise":"h26r2","global-const":"5eChp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h26r2:[function(e,t,r){!function(e){"use strict";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,i=this.resetTtl){let n;if(r||this.has(e)){if((n=this.items[e]).value=t,!1===r&&i&&(n.expiry=this.ttl>0?Date.now()+this.ttl:this.ttl),this.last!==n){let e=this.last,t=n.next,r=n.prev;this.first===n&&(this.first=n.next),n.next=null,n.prev=this.last,e.next=n,null!==r&&(r.next=t),null!==t&&(t.prev=r)}}else this.max>0&&this.size===this.max&&this.evict(!0),n=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=n:this.last.next=n;return this.last=n,this}values(e=this.keys()){return e.map(e=>this.get(e))}}let r={max:1e3},i=(e,i={})=>{let{cache:a,cacheKeyResolver:s=n,onHit:o,lruOptions:f={}}=i,d={...r,...f},c=a||function(e=1e3,r=0,i=!1){if(isNaN(e)||e<0)throw TypeError("Invalid max value");if(isNaN(r)||r<0)throw TypeError("Invalid ttl value");if("boolean"!=typeof i)throw TypeError("Invalid resetTtl value");return new t(e,r,i)}(d.max,d.ttl);function u(...t){let r=s(...t),i=c.get(r);if(c.has(r))return o&&o(r,i,c),i;let n=e.apply(this,t);return c.set(r,n),n}return u._cache=c,u},n=(...e)=>0===e.length?"no-args":e.map(e=>void 0===e?"undefined":null===e?"null":Array.isArray(e)?`[${n(...e)}]`:"object"==typeof e?`{${n(...a(e))}}`:JSON.stringify(e)).join(","),a=e=>Object.entries(e).sort((e,t)=>e[0]"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:i,a=(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=n(),r=s(e);return t[r]||(t[r]={}),t[r]},f=(e,t)=>{let r=o(e);return r[t]||void 0},d=(e,t,r)=>{let i=o(e);i[t]=r};r.getGlobalisedValue=(e,t,r)=>{a(e,t);let i=f(e,t);return void 0!==i?i:(d(e,t,r),r)},r.clearGlobalNamespace=e=>{let t=n(),r=s(e);void 0!==t[r]&&delete t[r]}},{}],eWtzg:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"keccak256",()=>o);"use strict";var n=e("js-sha3"),a=i.interopDefault(n),s=e("@ethersproject/bytes");function o(e){return"0x"+(0,a.default).keccak_256((0,s.arrayify)(e))}},{"js-sha3":"l9ad0","@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],l9ad0:[function(e,t,r){var i=e("5defb539e98cbde3"),n=arguments[3];!function(){"use strict";var e="input is invalid type",r="object"==typeof window,a=r?window:{};a.JS_SHA3_NO_WINDOW&&(r=!1);var s=!r&&"object"==typeof self;!a.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?a=n:s&&(a=self);var o=!a.JS_SHA3_NO_COMMON_JS&&t.exports,f="function"==typeof define&&define.amd,d=!a.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),u=[4,1024,262144,67108864],l=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],p=[224,256,384,512],b=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};(a.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),d&&(a.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var y=function(e,t,r){return function(i){return new O(e,t,e).update(i)[r]()}},v=function(e,t,r){return function(i,n){return new O(e,t,n).update(i)[r]()}},w=function(e,t,r){return function(t,i,n,a){return S["cshake"+e].update(t,i,n,a)[r]()}},_=function(e,t,r){return function(t,i,n,a){return S["kmac"+e].update(t,i,n,a)[r]()}},M=function(e,t,r,i){for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var i=0;i<50;++i)this.s[i]=0}function N(e,t,r){O.call(this,e,t,r)}O.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");var r,i=typeof t;if("string"!==i){if("object"===i){if(null===t)throw Error(e);if(d&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!d||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}for(var n,a,s=this.blocks,o=this.byteCount,f=t.length,c=this.blockCount,u=0,h=this.s;u>2]|=t[u]<>2]|=a<>2]|=(192|a>>6)<=57344?s[n>>2]|=(224|a>>12)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=o){for(this.start=n-o,this.block=s[c],n=0;n>=8,r=255&e;r>0;)n.unshift(r),e>>=8,r=255&e,++i;return t?n.push(i):n.unshift(i),this.update(n),n.length},O.prototype.encodeString=function(t){var r,i=typeof t;if("string"!==i){if("object"===i){if(null===t)throw Error(e);if(d&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!Array.isArray(t)&&(!d||!ArrayBuffer.isView(t)))throw Error(e)}else throw Error(e);r=!0}var n=0,a=t.length;if(r)n=a;else for(var s=0;s=57344?n+=3:(o=65536+((1023&o)<<10|1023&t.charCodeAt(++s)),n+=4)}return n+=this.encode(8*n),this.update(t),n},O.prototype.bytepad=function(e,t){for(var r=this.encode(t),i=0;i>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t>4&15]+c[15&e]+c[e>>12&15]+c[e>>8&15]+c[e>>20&15]+c[e>>16&15]+c[e>>28&15]+c[e>>24&15];s%t==0&&(j(r),a=0)}return n&&(o+=c[(e=r[a])>>4&15]+c[15&e],n>1&&(o+=c[e>>12&15]+c[e>>8&15]),n>2&&(o+=c[e>>20&15]+c[e>>16&15])),o},O.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,i=this.outputBlocks,n=this.extraBytes,a=0,s=0,o=this.outputBits>>3;e=new ArrayBuffer(n?i+1<<2:o);for(var f=new Uint32Array(e);s>8&255,f[e+2]=t>>16&255,f[e+3]=t>>24&255;o%r==0&&j(i)}return a&&(e=o<<2,t=i[s],f[e]=255&t,a>1&&(f[e+1]=t>>8&255),a>2&&(f[e+2]=t>>16&255)),f},N.prototype=new O,N.prototype.finalize=function(){return this.encode(this.outputBits,!0),O.prototype.finalize.call(this)};var j=function(e){var t,r,i,n,a,s,o,f,d,c,u,l,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P,O,N,j,B,L,D,F,U,q,z,K,H,V,W,G,J,Z,X,$,Y,Q,ee,et,er,ei,en,ea,es,eo,ef,ed,ec;for(i=0;i<48;i+=2)n=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],l=e[8]^e[18]^e[28]^e[38]^e[48],p=e[9]^e[19]^e[29]^e[39]^e[49],t=l^(s<<1|o>>>31),r=p^(o<<1|s>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=n^(f<<1|d>>>31),r=a^(d<<1|f>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=s^(c<<1|u>>>31),r=o^(u<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=f^(l<<1|p>>>31),r=d^(p<<1|l>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(n<<1|a>>>31),r=u^(a<<1|n>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,b=e[0],m=e[1],G=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,k=e[20]<<3|e[21]>>>29,T=e[21]<<3|e[20]>>>29,eo=e[31]<<9|e[30]>>>23,ef=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,C=e[33]<<13|e[32]>>>19,P=e[32]<<13|e[33]>>>19,ed=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,$=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,x=e[7]<<28|e[6]>>>4,ei=e[17]<<23|e[16]>>>9,en=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,M=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,I=e[18]<<20|e[19]>>>12,R=e[19]<<20|e[18]>>>12,ea=e[29]<<7|e[28]>>>25,es=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=b^~g&v,e[1]=m^~y&w,e[10]=S^~I&k,e[11]=x^~R&T,e[20]=j^~L&F,e[21]=B^~D&U,e[30]=V^~G&Z,e[31]=W^~J&X,e[40]=et^~ei&ea,e[41]=er^~en&es,e[2]=g^~v&_,e[3]=y^~w&M,e[12]=I^~k&C,e[13]=R^~T&P,e[22]=L^~F&q,e[23]=D^~U&z,e[32]=G^~Z&$,e[33]=J^~X&Y,e[42]=ei^~ea&eo,e[43]=en^~es&ef,e[4]=v^~_&E,e[5]=w^~M&A,e[14]=k^~C&O,e[15]=T^~P&N,e[24]=F^~q&K,e[25]=U^~z&H,e[34]=Z^~$&Q,e[35]=X^~Y&ee,e[44]=ea^~eo&ed,e[45]=es^~ef&ec,e[6]=_^~E&b,e[7]=M^~A&m,e[16]=C^~O&S,e[17]=P^~N&x,e[26]=q^~K&j,e[27]=z^~H&B,e[36]=$^~Q&V,e[37]=Y^~ee&W,e[46]=eo^~ed&et,e[47]=ef^~ec&er,e[8]=E^~b&g,e[9]=A^~m&y,e[18]=O^~S&I,e[19]=N^~x&R,e[28]=K^~j&L,e[29]=H^~B&D,e[38]=Q^~V&G,e[39]=ee^~W&J,e[48]=ed^~et&ei,e[49]=ec^~er&en,e[0]^=h[i],e[1]^=h[i+1]};if(o)t.exports=S;else{for(I=0;Id),i.export(r,"isBytes",()=>u),i.export(r,"arrayify",()=>l),i.export(r,"concat",()=>h),i.export(r,"stripZeros",()=>p),i.export(r,"zeroPad",()=>b),i.export(r,"isHexString",()=>m),i.export(r,"hexlify",()=>y),i.export(r,"hexDataLength",()=>v),i.export(r,"hexDataSlice",()=>w),i.export(r,"hexConcat",()=>_),i.export(r,"hexValue",()=>M),i.export(r,"hexStripZeros",()=>E),i.export(r,"hexZeroPad",()=>A),i.export(r,"splitSignature",()=>S),i.export(r,"joinSignature",()=>x);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=new n.Logger(a.version);function o(e){return!!e.toHexString}function f(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return f(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function d(e){return m(e)&&!(e.length%2)||u(e)}function c(e){return"number"==typeof e&&e==e&&e%1==0}function u(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e||!c(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function l(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),f(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e)&&(e=e.toHexString()),m(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":s.throwArgumentError("hex data is odd-length","value",e));let i=[];for(let e=0;el(e)),r=t.reduce((e,t)=>e+t.length,0),i=new Uint8Array(r);return t.reduce((e,t)=>(i.set(t,e),e+t.length),0),f(i)}function p(e){let t=l(e);if(0===t.length)return t;let r=0;for(;rt&&s.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),f(r)}function m(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let g="0123456789abcdef";function y(e,t){if(t||(t={}),"number"==typeof e){s.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=g[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),o(e))return e.toHexString();if(m(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":s.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(u(e)){let t="0x";for(let r=0;r>4]+g[15&i]}return t}return s.throwArgumentError("invalid hexlify value","value",e)}function v(e){if("string"!=typeof e)e=y(e);else if(!m(e)||e.length%2)return null;return(e.length-2)/2}function w(e,t,r){return("string"!=typeof e?e=y(e):(!m(e)||e.length%2)&&s.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r)?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function _(e){let t="0x";return e.forEach(e=>{t+=y(e).substring(2)}),t}function M(e){let t=E(y(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function E(e){"string"!=typeof e&&(e=y(e)),m(e)||s.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&s.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function S(e){let t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(d(e)){let r=l(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64))):65===r.length?(t.r=y(r.slice(0,32)),t.s=y(r.slice(32,64)),t.v=r[64]):s.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:s.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=y(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){let r=b(l(t._vs),32);t._vs=y(r);let i=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&s.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;let n=y(r);null==t.s?t.s=n:t.s!==n&&s.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?s.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{let r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&s.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&m(t.r)?t.r=A(t.r,32):s.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&m(t.s)?t.s=A(t.s,32):s.throwArgumentError("signature missing or invalid s","signature",e);let r=l(t.s);r[0]>=128&&s.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);let i=y(r);t._vs&&(m(t._vs)||s.throwArgumentError("signature invalid _vs","signature",e),t._vs=A(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&s.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function x(e){return y(h([(e=S(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},{"@ethersproject/logger":"6NWvR","./_version":"gnsK7","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6NWvR":[function(e,t,r){var i,n,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");o.defineInteropFlag(r),o.export(r,"LogLevel",()=>a),o.export(r,"ErrorCode",()=>s),o.export(r,"Logger",()=>m);"use strict";var f=e("./_version");let d=!1,c=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},l=2,h=null,p=function(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();(i=a||(a={})).DEBUG="DEBUG",i.INFO="INFO",i.WARNING="WARNING",i.ERROR="ERROR",i.OFF="OFF",(n=s||(s={})).UNKNOWN_ERROR="UNKNOWN_ERROR",n.NOT_IMPLEMENTED="NOT_IMPLEMENTED",n.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",n.NETWORK_ERROR="NETWORK_ERROR",n.SERVER_ERROR="SERVER_ERROR",n.TIMEOUT="TIMEOUT",n.BUFFER_OVERRUN="BUFFER_OVERRUN",n.NUMERIC_FAULT="NUMERIC_FAULT",n.MISSING_NEW="MISSING_NEW",n.INVALID_ARGUMENT="INVALID_ARGUMENT",n.MISSING_ARGUMENT="MISSING_ARGUMENT",n.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",n.CALL_EXCEPTION="CALL_EXCEPTION",n.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",n.NONCE_EXPIRED="NONCE_EXPIRED",n.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",n.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",n.TRANSACTION_REPLACED="TRANSACTION_REPLACED",n.ACTION_REJECTED="ACTION_REJECTED";let b="0123456789abcdef";class m{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",e),l>u[r]||console.log.apply(console,t)}debug(...e){this._log(m.levels.DEBUG,e)}info(...e){this._log(m.levels.INFO,e)}warn(...e){this._log(m.levels.WARNING,e)}makeError(e,t,r){if(c)return this.makeError("censored error",t,{});t||(t=m.errors.UNKNOWN_ERROR),r||(r={});let i=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4]+b[15&t[e]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(r[e].toString()))}}),i.push(`code=${t}`),i.push(`version=${this.version}`);let n=e,a="";switch(t){case s.NUMERIC_FAULT:{a="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case s.CALL_EXCEPTION:case s.INSUFFICIENT_FUNDS:case s.MISSING_NEW:case s.NONCE_EXPIRED:case s.REPLACEMENT_UNDERPRICED:case s.TRANSACTION_REPLACED:case s.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");let o=Error(e);return o.reason=n,o.code=t,Object.keys(r).forEach(function(e){o[e]=r[e]}),o}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,m.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,i){e||this.throwError(t,r,i)}assertArgument(e,t,r,i){e||this.throwArgumentError(t,r,i)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),p&&this.throwError("platform missing String.prototype.normalize",m.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:p})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,m.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,m.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,m.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",m.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",m.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",m.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return h||(h=new m(f.version)),h}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",m.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),d){if(!e)return;this.globalLogger().throwError("error censorship permanent",m.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}c=!!e,d=!!t}static setLogLevel(e){let t=u[e.toLowerCase()];if(null==t){m.globalLogger().warn("invalid log level - "+e);return}l=t}static from(e){return new m(e)}}m.errors=s,m.levels=a},{"./_version":"aDnFn","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aDnFn:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="logger/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gnsK7:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="bytes/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],edSy2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"_toEscapedUtf8String",()=>s._toEscapedUtf8String),i.export(r,"toUtf8Bytes",()=>s.toUtf8Bytes),i.export(r,"toUtf8CodePoints",()=>s.toUtf8CodePoints),i.export(r,"toUtf8String",()=>s.toUtf8String),i.export(r,"Utf8ErrorFuncs",()=>s.Utf8ErrorFuncs),i.export(r,"Utf8ErrorReason",()=>s.Utf8ErrorReason),i.export(r,"UnicodeNormalizationForm",()=>s.UnicodeNormalizationForm),i.export(r,"formatBytes32String",()=>n.formatBytes32String),i.export(r,"parseBytes32String",()=>n.parseBytes32String),i.export(r,"nameprep",()=>a.nameprep);"use strict";var n=e("./bytes32"),a=e("./idna"),s=e("./utf8")},{"./bytes32":"5F91f","./idna":"kkxaO","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5F91f":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"formatBytes32String",()=>o),i.export(r,"parseBytes32String",()=>f);"use strict";var n=e("@ethersproject/constants"),a=e("@ethersproject/bytes"),s=e("./utf8");function o(e){let t=(0,s.toUtf8Bytes)(e);if(t.length>31)throw Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,n.HashZero]).slice(0,32))}function f(e){let t=(0,a.arrayify)(e);if(32!==t.length)throw Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return(0,s.toUtf8String)(t.slice(0,r))}},{"@ethersproject/constants":"cSsuf","@ethersproject/bytes":"19SwW","./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cSsuf:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AddressZero",()=>n.AddressZero),i.export(r,"NegativeOne",()=>a.NegativeOne),i.export(r,"Zero",()=>a.Zero),i.export(r,"One",()=>a.One),i.export(r,"Two",()=>a.Two),i.export(r,"WeiPerEther",()=>a.WeiPerEther),i.export(r,"MaxUint256",()=>a.MaxUint256),i.export(r,"MinInt256",()=>a.MinInt256),i.export(r,"MaxInt256",()=>a.MaxInt256),i.export(r,"HashZero",()=>s.HashZero),i.export(r,"EtherSymbol",()=>o.EtherSymbol);"use strict";var n=e("./addresses"),a=e("./bignumbers"),s=e("./hashes"),o=e("./strings")},{"./addresses":"3I8he","./bignumbers":"4GaKw","./hashes":"iRbHe","./strings":"ex5EG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3I8he":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AddressZero",()=>n);let n="0x0000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4GaKw":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NegativeOne",()=>a),i.export(r,"Zero",()=>s),i.export(r,"One",()=>o),i.export(r,"Two",()=>f),i.export(r,"WeiPerEther",()=>d),i.export(r,"MaxUint256",()=>c),i.export(r,"MinInt256",()=>u),i.export(r,"MaxInt256",()=>l);var n=e("@ethersproject/bignumber");let a=(0,n.BigNumber).from(-1),s=(0,n.BigNumber).from(0),o=(0,n.BigNumber).from(1),f=(0,n.BigNumber).from(2),d=(0,n.BigNumber).from("1000000000000000000"),c=(0,n.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),u=(0,n.BigNumber).from("-0x8000000000000000000000000000000000000000000000000000000000000000"),l=(0,n.BigNumber).from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},{"@ethersproject/bignumber":"hIcBX","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hIcBX:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BigNumber",()=>n.BigNumber),i.export(r,"formatFixed",()=>a.formatFixed),i.export(r,"FixedFormat",()=>a.FixedFormat),i.export(r,"FixedNumber",()=>a.FixedNumber),i.export(r,"parseFixed",()=>a.parseFixed),i.export(r,"_base16To36",()=>n._base16To36),i.export(r,"_base36To16",()=>n._base36To16);var n=e("./bignumber"),a=e("./fixednumber")},{"./bignumber":"ha6R2","./fixednumber":"7GQTq","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ha6R2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"isBigNumberish",()=>l),i.export(r,"BigNumber",()=>p),i.export(r,"_base36To16",()=>v),i.export(r,"_base16To36",()=>w);"use strict";var n=e("bn.js"),a=i.interopDefault(n),s=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),f=e("./_version"),d=a.default.BN;let c=new o.Logger(f.version),u={};function l(e){return null!=e&&(p.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.isHexString)(e)||"bigint"==typeof e||(0,s.isBytes)(e))}let h=!1;class p{constructor(e,t){e!==u&&c.throwError("cannot call constructor directly; use BigNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return m(g(this).fromTwos(e))}toTwos(e){return m(g(this).toTwos(e))}abs(){return"-"===this._hex[0]?p.from(this._hex.substring(1)):this}add(e){return m(g(this).add(g(e)))}sub(e){return m(g(this).sub(g(e)))}div(e){let t=p.from(e);return t.isZero()&&y("division-by-zero","div"),m(g(this).div(g(e)))}mul(e){return m(g(this).mul(g(e)))}mod(e){let t=g(e);return t.isNeg()&&y("division-by-zero","mod"),m(g(this).umod(t))}pow(e){let t=g(e);return t.isNeg()&&y("negative-power","pow"),m(g(this).pow(t))}and(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","and"),m(g(this).and(t))}or(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","or"),m(g(this).or(t))}xor(e){let t=g(e);return(this.isNegative()||t.isNeg())&&y("unbound-bitwise-result","xor"),m(g(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&y("negative-width","mask"),m(g(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&y("negative-width","shl"),m(g(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&y("negative-width","shr"),m(g(this).shrn(e))}eq(e){return g(this).eq(g(e))}lt(e){return g(this).lt(g(e))}lte(e){return g(this).lte(g(e))}gt(e){return g(this).gt(g(e))}gte(e){return g(this).gte(g(e))}isNegative(){return"-"===this._hex[0]}isZero(){return g(this).isZero()}toNumber(){try{return g(this).toNumber()}catch(e){y("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return c.throwError("this platform does not support BigInt",o.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",o.Logger.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",o.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof p)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new p(u,b(e)):e.match(/^-?[0-9]+$/)?new p(u,b(new d(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&y("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&y("overflow","BigNumber.from",e),p.from(String(e));if("bigint"==typeof e)return p.from(e.toString());if((0,s.isBytes)(e))return p.from((0,s.hexlify)(e));if(e){if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return p.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&((0,s.isHexString)(t)||"-"===t[0]&&(0,s.isHexString)(t.substring(1))))return p.from(t)}}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function b(e){if("string"!=typeof e)return b(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=b(e)))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function m(e){return p.from(b(e))}function g(e){let t=p.from(e).toHexString();return"-"===t[0]?new d("-"+t.substring(3),16):new d(t.substring(2),16)}function y(e,t,r){let i={fault:e,operation:t};return null!=r&&(i.value=r),c.throwError(e,o.Logger.errors.NUMERIC_FAULT,i)}function v(e){return new d(e,36).toString(16)}function w(e){return new d(e,16).toString(36)}},{"bn.js":"lXPno","@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lXPno:[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{u="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("bd440367abe2ded7").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 i(!1,"Invalid character in "+e)}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,n){for(var a=0,s=0,o=Math.min(e.length,r),f=t;f=49?d-49+10:d>=17?d-17+10:d,i(d>=0&&s0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this._strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this._strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){a.prototype.inspect=c}else a.prototype.inspect=c;function c(){return(this.red?""}var u,l=["","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,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r._strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215,(n+=2)>=26&&(n-=26,s--),r=0!==a||s!==this.length-1?l[6-f.length]+f+r:f+r}for(0!==a&&(r=a.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 d=h[e],c=p[e];r="";var u=this.clone();for(u.negative=0;!u.isZero();){var b=u.modrn(c).toString(e);r=(u=u.idivn(c)).isZero()?b+r:l[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16,2)},u&&(a.prototype.toBuffer=function(e,t){return this.toArrayLike(u,e,t)}),a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){this._strip();var n=this.byteLength(),a=r||Math.max(1,n);i(n<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0");var s=e.allocUnsafe?e.allocUnsafe(a):new e(a);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,n),s},a.prototype._toArrayLikeLE=function(e,t){for(var r=0,i=0,n=0,a=0;n>8&255),r>16&255),6===a?(r>24&255),i=0,a=0):(i=s>>>24,a+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===a?(r>=0&&(e[r--]=s>>24&255),i=0,a=0):(i=s>>>24,a+=2)}if(r>=0)for(e[r--]=i;r>=0;)e[r--]=0},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this._strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(m=b),a.prototype.mulTo=function(e,t){var r,i=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):i<63?b(this,e,t):g(this,e,t)},y.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},y.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,r+=(a/67108864|0)+(s>>>26),this.words[n]=67108863&s}return 0!==r&&(this.words[n]=r,this.length++),t?this.ineg():this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n&1}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this._strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this._strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modrn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modrn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=67108864%e,n=0,a=this.length-1;a>=0;a--)n=(r*n+(0|this.words[a]))%e;return t?-n:n},a.prototype.modn=function(e){return this.modrn(e)},a.prototype.idivn=function(e){var t=e<0;t&&(e=-e),i(e<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*r;this.words[n]=a/e|0,r=a%e}return this._strip(),t?this.ineg():this},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new S(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(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 a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new a(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 i=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)},n(_,w),_.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&e.length>10?e.length-=10:e.length-=9},_.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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(v[e])return v[e];if("k256"===e)t=new _;else if("p224"===e)t=new M;else if("p192"===e)t=new E;else if("p25519"===e)t=new A;else throw Error("Unknown prime "+e);return v[e]=t,t},S.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(d(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.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)},S.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},S.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)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new x(e)},n(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{bd440367abe2ded7:"3eno3"}],"3eno3":[function(e,t,r){},{}],FsnUp:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="bignumber/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7GQTq":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"formatFixed",()=>b),i.export(r,"parseFixed",()=>m),i.export(r,"FixedFormat",()=>g),i.export(r,"FixedNumber",()=>y);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./bignumber");let f=new a.Logger(s.version),d={},c=(0,o.BigNumber).from(0),u=(0,o.BigNumber).from(-1);function l(e,t,r,i){let n={fault:t,operation:r};return void 0!==i&&(n.value=i),f.throwError(e,a.Logger.errors.NUMERIC_FAULT,n)}let h="0";for(;h.length<256;)h+=h;function p(e){if("number"!=typeof e)try{e=(0,o.BigNumber).from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):f.throwArgumentError("invalid decimal size","decimals",e)}function b(e,t){null==t&&(t=0);let r=p(t);e=(0,o.BigNumber).from(e);let i=e.lt(c);i&&(e=e.mul(u));let n=e.mod(r).toString();for(;n.length2&&f.throwArgumentError("too many decimal points","value",e);let a=n[0],s=n[1];for(a||(a="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&l("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?i:(typeof e[t]!==r&&f.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=n("signed","boolean",t),r=n("width","number",r),i=n("decimals","number",i)}return r%8&&f.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&f.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new g(d,t,r,i)}}class y{constructor(e,t,r,i){e!==d&&f.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&f.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);let t=m(this._value,this.format.decimals),r=m(e._value,e.format.decimals);return y.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(v.toFormat(t.format))),t}ceiling(){let e=this.toString().split(".");1===e.length&&e.push("0");let t=y.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(v.toFormat(t.format))),t}round(e){null==e&&(e=0);let t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&f.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;let r=y.from("1"+h.substring(0,e),this.format),i=w.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&f.throwArgumentError("invalid byte width","width",e);let t=(0,o.BigNumber).from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.hexZeroPad)(t,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||(0,o.isBigNumberish)(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),y.fromString(b(e,t),g.from(r))}static fromString(e,t){null==t&&(t="fixed");let r=g.from(t),i=m(e,r.decimals);!r.signed&&i.lt(c)&&l("unsigned value cannot be negative","overflow","value",e);let a=null;r.signed?a=i.toTwos(r.width).toHexString():(a=i.toHexString(),a=(0,n.hexZeroPad)(a,r.width/8));let s=b(i,r.decimals);return new y(d,a,s,r)}static fromBytes(e,t){null==t&&(t="fixed");let r=g.from(t);if((0,n.arrayify)(e).length>r.width/8)throw Error("overflow");let i=(0,o.BigNumber).from(e);r.signed&&(i=i.fromTwos(r.width));let a=i.toTwos((r.signed?0:1)+r.width).toHexString(),s=b(i,r.decimals);return new y(d,a,s,r)}static from(e,t){if("string"==typeof e)return y.fromString(e,t);if((0,n.isBytes)(e))return y.fromBytes(e,t);try{return y.fromValue(e,0,t)}catch(e){if(e.code!==a.Logger.errors.INVALID_ARGUMENT)throw e}return f.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}let v=y.from(1),w=y.from("0.5")},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"FsnUp","./bignumber":"ha6R2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iRbHe:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"HashZero",()=>n);let n="0x0000000000000000000000000000000000000000000000000000000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ex5EG:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"EtherSymbol",()=>n);let n="Ξ"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4E82p":[function(e,t,r){var i,n,a,s,o=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";o.defineInteropFlag(r),o.export(r,"UnicodeNormalizationForm",()=>a),o.export(r,"Utf8ErrorReason",()=>s),o.export(r,"Utf8ErrorFuncs",()=>h),o.export(r,"toUtf8Bytes",()=>b),o.export(r,"_toEscapedUtf8String",()=>g),o.export(r,"_toUtf8String",()=>y),o.export(r,"toUtf8String",()=>v),o.export(r,"toUtf8CodePoints",()=>w);var f=e("@ethersproject/bytes"),d=e("@ethersproject/logger"),c=e("./_version");let u=new d.Logger(c.version);function l(e,t,r,i,n){if(e===s.BAD_PREFIX||e===s.UNEXPECTED_CONTINUE){let e=0;for(let i=t+1;i>6==2;i++)e++;return e}return e===s.OVERRUN?r.length-t-1:0}(i=a||(a={})).current="",i.NFC="NFC",i.NFD="NFD",i.NFKC="NFKC",i.NFKD="NFKD",(n=s||(s={})).UNEXPECTED_CONTINUE="unexpected continuation byte",n.BAD_PREFIX="bad codepoint prefix",n.OVERRUN="string overrun",n.MISSING_CONTINUE="missing continuation byte",n.OUT_OF_RANGE="out of UTF-8 range",n.UTF16_SURROGATE="UTF-16 surrogate",n.OVERLONG="overlong representation";let h=Object.freeze({error:function(e,t,r,i,n){return u.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:l,replace:function(e,t,r,i,n){return e===s.OVERLONG?(i.push(n),0):(i.push(65533),l(e,t,r,i,n))}});function p(e,t){null==t&&(t=h.error),e=(0,f.arrayify)(e);let r=[],i=0;for(;i>7==0){r.push(n);continue}let a=null,o=null;if((224&n)==192)a=1,o=127;else if((240&n)==224)a=2,o=2047;else if((248&n)==240)a=3,o=65535;else{(192&n)==128?i+=t(s.UNEXPECTED_CONTINUE,i-1,e,r):i+=t(s.BAD_PREFIX,i-1,e,r);continue}if(i-1+a>=e.length){i+=t(s.OVERRUN,i-1,e,r);continue}let f=n&(1<<8-a-1)-1;for(let n=0;n1114111){i+=t(s.OUT_OF_RANGE,i-1-a,e,r,f);continue}if(f>=55296&&f<=57343){i+=t(s.UTF16_SURROGATE,i-1-a,e,r,f);continue}if(f<=o){i+=t(s.OVERLONG,i-1-a,e,r,f);continue}r.push(f)}}return r}function b(e,t=a.current){t!=a.current&&(u.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t>6|192),r.push(63&i|128);else if((64512&i)==55296){t++;let n=e.charCodeAt(t);if(t>=e.length||(64512&n)!=56320)throw Error("invalid utf-8 string");let a=65536+((1023&i)<<10)+(1023&n);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)}return(0,f.arrayify)(r)}function m(e){let t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function g(e,t){return'"'+p(e,t).map(e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?m(e):m(((e-=65536)>>10&1023)+55296)+m((1023&e)+56320)}).join("")+'"'}function y(e){return e.map(e=>e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10&1023)+55296,(1023&e)+56320)).join("")}function v(e,t){return y(p(e,t))}function w(e,t=a.current){return p(b(e,t))}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"mEQno","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],mEQno:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="strings/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kkxaO:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"_nameprepTableA1",()=>b),i.export(r,"_nameprepTableB2",()=>m),i.export(r,"_nameprepTableC",()=>g),i.export(r,"nameprep",()=>y);"use strict";var n=e("./utf8");function a(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,i={};return e.split(",").forEach(e=>{let n=e.split(":");i[r+=parseInt(n[0],16)]=t(n[1])}),i}function s(e){let t=0;return e.split(",").map(e=>{let r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}})}function o(e,t){let r=0;for(let i=0;i=(r+=n.l)&&e<=r+n.h&&(e-r)%(n.d||1)==0){if(n.e&&-1!==n.e.indexOf(e-r))continue;return n}}return null}let f=s("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),d="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(e=>parseInt(e,16)),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],u=a("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),l=a("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),h=a("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(e){if(e.length%4!=0)throw Error("bad data");let t=[];for(let r=0;rd.indexOf(e)>=0||e>=65024&&e<=65039?[]:m(e)||[e]).reduce((e,t)=>(t.forEach(t=>{e.push(t)}),e),[]),(t=(0,n.toUtf8CodePoints)((0,n._toUtf8String)(t),n.UnicodeNormalizationForm.NFKC)).forEach(e=>{if(g(e))throw Error("STRINGPREP_CONTAINS_PROHIBITED")}),t.forEach(e=>{if(b(e))throw Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=(0,n._toUtf8String)(t);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw Error("invalid hyphen");return r}},{"./utf8":"4E82p","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],hJwty:[function(e,t,r){"use strict";var i=e("37da3353fb0fa7ff").Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});let a=n(e("d4e65179c0f8f385")),s=n(e("532aa29a5036ee04")),o="utf8";function f(e){return new Uint8Array(e)}function d(e,t=!1){let r=e.toString("hex");return t?L(r):r}function c(e){return e.toString(o)}function u(e){return e.readUIntBE(0,e.length)}function l(e){return s.default(e)}function h(e,t=!1){return d(l(e),t)}function p(e){return c(l(e))}function b(e){return u(l(e))}function m(e){return Array.from(e).map(M).join("")}function g(e){return i.from(B(e),"hex")}function y(e){return f(g(e))}function v(e){return m(y(e))}function w(e){return i.from(e,o)}function _(e){return f(w(e))}function M(e){let t=(e>>>0).toString(2);return N(t)}function E(e){return l(A(e))}function A(e){return new Uint8Array(P(e).map(e=>parseInt(e,2)))}function S(e,t){return h(A(e),t)}function x(e){return!!("string"==typeof e&&new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function I(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}function R(e){return i.isBuffer(e)}function k(e){return a.default.strict(e)&&!R(e)}function T(e){return!k(e)&&!R(e)&&void 0!==e.byteLength}function C(e,t=8){let r=e%t;return r?(e-r)/t*t+t:e}function P(e,t=8){let r=N(e).match(RegExp(`.{${t}}`,"gi"));return Array.from(r||[])}function O(e){return P(e).map(D).join("")}function N(e,t=8,r="0"){return j(e,C(e.length,t),r)}function j(e,t,r="0"){return F(e,t,!0,r)}function B(e){return e.replace(/^0x/,"")}function L(e){return e.startsWith("0x")?e:`0x${e}`}function D(e){return e.split("").reverse().join("")}function F(e,t,r,i="0"){let n=t-e.length,a=e;if(n>0){let t=i.repeat(n);a=r?t+e:e+t}return a}r.bufferToArray=f,r.bufferToHex=d,r.bufferToUtf8=c,r.bufferToNumber=u,r.bufferToBinary=function(e){return m(f(e))},r.arrayToBuffer=l,r.arrayToHex=h,r.arrayToUtf8=p,r.arrayToNumber=b,r.arrayToBinary=m,r.hexToBuffer=g,r.hexToArray=y,r.hexToUtf8=function(e){return c(g(e))},r.hexToNumber=function(e){return b(y(e))},r.hexToBinary=v,r.utf8ToBuffer=w,r.utf8ToArray=_,r.utf8ToHex=function(e,t=!1){return d(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 m(_(e))},r.numberToBuffer=function(e){return E(M(e))},r.numberToArray=function(e){return A(M(e))},r.numberToHex=function(e,t){return S(M(e),t)},r.numberToUtf8=function(e){return`${e}`},r.numberToBinary=M,r.binaryToBuffer=E,r.binaryToArray=A,r.binaryToHex=S,r.binaryToUtf8=function(e){return p(A(e))},r.binaryToNumber=function(e){return b(A(e))},r.isBinaryString=x,r.isHexString=I,r.isBuffer=R,r.isTypedArray=k,r.isArrayBuffer=T,r.getType=function(e){return R(e)?"buffer":k(e)?"typed-array":T(e)?"array-buffer":Array.isArray(e)?"array":typeof e},r.getEncoding=function(e){return x(e)?"binary":I(e)?"hex":o},r.concatBuffers=function(...e){let t=i.concat(e);return t},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=C,r.splitBytes=P,r.swapBytes=O,r.swapHex=function(e){return S(O(v(e)))},r.sanitizeBytes=N,r.padLeft=j,r.padRight=function(e,t,r="0"){return F(e,t,!1,r)},r.removeHexPrefix=B,r.addHexPrefix=L,r.sanitizeHex=function(e){return(e=N(e=B(e),2))&&(e=L(e)),e},r.removeHexLeadingZeros=function(e){let t=e.startsWith("0x");return e=(e=B(e)).startsWith("0")?e.substring(1):e,t?L(e):e}},{"37da3353fb0fa7ff":"2MMCE",d4e65179c0f8f385:"69hwL","532aa29a5036ee04":"4JDy2"}],"69hwL":[function(e,t,r){t.exports=a,a.strict=s,a.loose=o;var i=Object.prototype.toString,n={"[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 a(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 n[i.call(e)]}},{}],"4JDy2":[function(e,t,r){var i=e("1a78dd7d8c10fe5c").Buffer,n=e("dfcbed822b77bad7").strict;t.exports=function(e){if(!n(e))return i.from(e);var t=i.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}},{"1a78dd7d8c10fe5c":"2MMCE",dfcbed822b77bad7:"69hwL"}],"8wpcu":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Signer",()=>n.Signer),i.export(r,"Wallet",()=>n.Wallet),i.export(r,"VoidSigner",()=>n.VoidSigner),i.export(r,"getDefaultProvider",()=>n.getDefaultProvider),i.export(r,"providers",()=>n.providers),i.export(r,"BaseContract",()=>n.BaseContract),i.export(r,"Contract",()=>n.Contract),i.export(r,"ContractFactory",()=>n.ContractFactory),i.export(r,"BigNumber",()=>n.BigNumber),i.export(r,"FixedNumber",()=>n.FixedNumber),i.export(r,"constants",()=>n.constants),i.export(r,"errors",()=>n.errors),i.export(r,"logger",()=>n.logger),i.export(r,"utils",()=>n.utils),i.export(r,"wordlists",()=>n.wordlists),i.export(r,"version",()=>n.version),i.export(r,"Wordlist",()=>n.Wordlist),i.export(r,"ethers",()=>n);var n=e("./ethers");"use strict";try{let e=window;null==e._ethers&&(e._ethers=n)}catch(e){}},{"./ethers":"gFgxE","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gFgxE:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Signer",()=>s.Signer),i.export(r,"Wallet",()=>o.Wallet),i.export(r,"VoidSigner",()=>s.VoidSigner),i.export(r,"getDefaultProvider",()=>d.getDefaultProvider),i.export(r,"providers",()=>d),i.export(r,"BaseContract",()=>n.BaseContract),i.export(r,"Contract",()=>n.Contract),i.export(r,"ContractFactory",()=>n.ContractFactory),i.export(r,"BigNumber",()=>a.BigNumber),i.export(r,"FixedNumber",()=>a.FixedNumber),i.export(r,"constants",()=>f),i.export(r,"errors",()=>l.ErrorCode),i.export(r,"logger",()=>p),i.export(r,"utils",()=>u),i.export(r,"wordlists",()=>c.wordlists),i.export(r,"version",()=>h.version),i.export(r,"Wordlist",()=>c.Wordlist);"use strict";var n=e("@ethersproject/contracts"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/wallet"),f=e("@ethersproject/constants"),d=e("@ethersproject/providers"),c=e("@ethersproject/wordlists"),u=e("./utils"),l=e("@ethersproject/logger"),h=e("./_version");let p=new l.Logger(h.version)},{"@ethersproject/contracts":"bmZzW","@ethersproject/bignumber":"hIcBX","@ethersproject/abstract-signer":"j6EbC","@ethersproject/wallet":"euBMB","@ethersproject/constants":"cSsuf","@ethersproject/providers":"lpm2Y","@ethersproject/wordlists":"a2daz","./utils":"7jy5m","@ethersproject/logger":"6NWvR","./_version":"lHxZw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bmZzW:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BaseContract",()=>R),i.export(r,"Contract",()=>k),i.export(r,"ContractFactory",()=>T);"use strict";var n=e("@ethersproject/abi"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/address"),f=e("@ethersproject/bignumber"),d=e("@ethersproject/bytes"),c=e("@ethersproject/properties"),u=e("@ethersproject/transactions"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let b=new l.Logger(h.version),m={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function g(e,t){return p(this,void 0,void 0,function*(){let r=yield t;"string"!=typeof r&&b.throwArgumentError("invalid address or ENS name","name",r);try{return(0,o.getAddress)(r)}catch(e){}e||b.throwError("a provider or signer is needed to resolve ENS names",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});let i=yield e.resolveName(r);return null==i&&b.throwArgumentError("resolver or addr is not configured for ENS name","name",r),i})}function y(e,t,r){return p(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((r,i)=>y(e,Array.isArray(t)?t[i]:t[r.name],r))):"address"===r.type?yield g(e,t):"tuple"===r.type?yield y(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map(t=>y(e,t,r.arrayChildren))):Promise.reject(b.makeError("invalid value for array",l.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t})}function v(e,t,r){return p(this,void 0,void 0,function*(){let i={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(i=(0,c.shallowCopy)(r.pop())),b.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?i.from?i.from=(0,c.resolveProperties)({override:g(e.signer,i.from),signer:e.signer.getAddress()}).then(e=>p(this,void 0,void 0,function*(){return(0,o.getAddress)(e.signer)!==e.override&&b.throwError("Contract with a Signer cannot override from",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})):i.from=e.signer.getAddress():i.from&&(i.from=g(e.provider,i.from));let n=yield(0,c.resolveProperties)({args:y(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,c.resolveProperties)(i)||{}}),a=e.interface.encodeFunctionData(t,n.args),s={data:a,to:n.address},h=n.overrides;if(null!=h.nonce&&(s.nonce=(0,f.BigNumber).from(h.nonce).toNumber()),null!=h.gasLimit&&(s.gasLimit=(0,f.BigNumber).from(h.gasLimit)),null!=h.gasPrice&&(s.gasPrice=(0,f.BigNumber).from(h.gasPrice)),null!=h.maxFeePerGas&&(s.maxFeePerGas=(0,f.BigNumber).from(h.maxFeePerGas)),null!=h.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=(0,f.BigNumber).from(h.maxPriorityFeePerGas)),null!=h.from&&(s.from=h.from),null!=h.type&&(s.type=h.type),null!=h.accessList&&(s.accessList=(0,u.accessListify)(h.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3,r=(0,d.arrayify)(a);for(let t=0;tnull!=i[e]);return m.length&&b.throwError(`cannot override ${m.map(e=>JSON.stringify(e)).join(",")}`,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:m}),s})}function w(e,t){let r=t.wait.bind(t);t.wait=t=>r(t).then(t=>(t.events=t.logs.map(r=>{let i=(0,c.deepCopy)(r),n=null;try{n=e.interface.parseLog(r)}catch(e){}return n&&(i.args=n.args,i.decode=(t,r)=>e.interface.decodeEventLog(n.eventFragment,t,r),i.event=n.name,i.eventSignature=n.signature),i.removeListener=()=>e.provider,i.getBlock=()=>e.provider.getBlock(t.blockHash),i.getTransaction=()=>e.provider.getTransaction(t.transactionHash),i.getTransactionReceipt=()=>Promise.resolve(t),i}),t))}function _(e,t,r){let i=e.signer||e.provider;return function(...n){return p(this,void 0,void 0,function*(){let a;if(n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]){let e=(0,c.shallowCopy)(n.pop());null!=e.blockTag&&(a=yield e.blockTag),delete e.blockTag,n.push(e)}null!=e.deployTransaction&&(yield e._deployed(a));let s=yield v(e,t,n),o=yield i.call(s,a);try{let i=e.interface.decodeFunctionResult(t,o);return r&&1===t.outputs.length&&(i=i[0]),i}catch(t){throw t.code===l.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=n,t.transaction=s),t}})}}function M(e,t,r){return t.constant?_(e,t,r):function(...r){return p(this,void 0,void 0,function*(){e.signer||b.throwError("sending a transaction requires a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());let i=yield v(e,t,r),n=yield e.signer.sendTransaction(i);return w(e,n),n})}}function E(e){return e.address&&(null==e.topics||0===e.topics.length)?"*":(e.address||"*")+"@"+(e.topics?e.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class A{constructor(e,t){(0,c.defineReadOnly)(this,"tag",e),(0,c.defineReadOnly)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter(r=>!!t||r.listener!==e||(t=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){let t=this.listenerCount();return this._listeners=this._listeners.filter(t=>{let r=e.slice();return setTimeout(()=>{t.listener.apply(this,r)},0),!t.once}),t}prepareEvent(e){}getEmit(e){return[e]}}class S extends A{constructor(){super("error",null)}}class x extends A{constructor(e,t,r,i){let n={address:e},a=t.getEventTopic(r);i?(a!==i[0]&&b.throwArgumentError("topic mismatch","topics",i),n.topics=i.slice()):n.topics=[a],super(E(n),n),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",t),(0,c.defineReadOnly)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(t){e.args=null,e.decodeError=t}}getEmit(e){let t=(0,n.checkResultErrors)(e.args);if(t.length)throw t[0].error;let r=(e.args||[]).slice();return r.push(e),r}}class I extends A{constructor(e,t){super("*",{address:e}),(0,c.defineReadOnly)(this,"address",e),(0,c.defineReadOnly)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{let t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(e){}}}class R{constructor(e,t,r){(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(t)),null==r?((0,c.defineReadOnly)(this,"provider",null),(0,c.defineReadOnly)(this,"signer",null)):(0,s.Signer).isSigner(r)?((0,c.defineReadOnly)(this,"provider",r.provider||null),(0,c.defineReadOnly)(this,"signer",r)):(0,a.Provider).isProvider(r)?((0,c.defineReadOnly)(this,"provider",r),(0,c.defineReadOnly)(this,"signer",null)):b.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,c.defineReadOnly)(this,"callStatic",{}),(0,c.defineReadOnly)(this,"estimateGas",{}),(0,c.defineReadOnly)(this,"functions",{}),(0,c.defineReadOnly)(this,"populateTransaction",{}),(0,c.defineReadOnly)(this,"filters",{});{let e={};Object.keys(this.interface.events).forEach(t=>{let r=this.interface.events[t];(0,c.defineReadOnly)(this.filters,t,(...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)})),e[r.name]||(e[r.name]=[]),e[r.name].push(t)}),Object.keys(e).forEach(t=>{let r=e[t];1===r.length?(0,c.defineReadOnly)(this.filters,t,this.filters[r[0]]):b.warn(`Duplicate definition of ${t} (${r.join(", ")})`)})}if((0,c.defineReadOnly)(this,"_runningEvents",{}),(0,c.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&b.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,c.defineReadOnly)(this,"address",e),this.provider)(0,c.defineReadOnly)(this,"resolvedAddress",g(this.provider,e));else try{(0,c.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,o.getAddress)(e)))}catch(e){b.throwError("provider is required to use ENS name as contract address",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(e=>{});let i={},n={};Object.keys(this.interface.functions).forEach(e=>{let t=this.interface.functions[e];if(n[e]){b.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);return}n[e]=!0;{let r=t.name;i[`%${r}`]||(i[`%${r}`]=[]),i[`%${r}`].push(e)}if(null==this[e]&&(0,c.defineReadOnly)(this,e,M(this,t,!0)),null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,M(this,t,!1)),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,_(this,t,!0)),null==this.populateTransaction[e]){var r;(0,c.defineReadOnly)(this.populateTransaction,e,(r=this,function(...e){return v(r,t,e)}))}null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,function(e,t){let r=e.signer||e.provider;return function(...i){return p(this,void 0,void 0,function*(){r||b.throwError("estimate require a provider or signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});let n=yield v(e,t,i);return yield r.estimateGas(n)})}}(this,t))}),Object.keys(i).forEach(e=>{let t=i[e];if(t.length>1)return;e=e.substring(1);let r=t[0];try{null==this[e]&&(0,c.defineReadOnly)(this,e,this[r])}catch(e){}null==this.functions[e]&&(0,c.defineReadOnly)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,c.defineReadOnly)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,c.defineReadOnly)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,c.defineReadOnly)(this.estimateGas,e,this.estimateGas[r])})}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getInterface(e){return(0,n.Interface).isInterface(e)?e:new n.Interface(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(e=>("0x"===e&&b.throwError("contract not deployed",l.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||b.throwError("sending a transactions require a signer",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});let t=(0,c.shallowCopy)(e||{});return["from","to"].forEach(function(e){null!=t[e]&&b.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(t))}connect(e){"string"==typeof e&&(e=new s.VoidSigner(e,this.provider));let t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,c.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return(0,n.Indexed).isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new S);if("event"===e)return this._normalizeRunningEvent(new A("event",null));if("*"===e)return this._normalizeRunningEvent(new I(this.address,this.interface));let t=this.interface.getEvent(e);return this._normalizeRunningEvent(new x(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{let t=e.topics[0];if("string"!=typeof t)throw Error("invalid topic");let r=this.interface.getEvent(t);return this._normalizeRunningEvent(new x(this.address,this.interface,r,e.topics))}catch(e){}let t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new A(E(t),t))}return this._normalizeRunningEvent(new I(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];let t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){let i=(0,c.deepCopy)(t);return i.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(t.blockHash),i.getTransaction=()=>this.provider.getTransaction(t.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(i),i}_addEventListener(e,t,r){if(this.provider||b.throwError("events require a provider or a signer with a provider",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){let r=r=>{let i=this._wrapEvent(e,r,t);if(null==i.decodeError)try{let t=e.getEmit(i);this.emit(e.filter,...t)}catch(e){i.decodeError=e.error}null!=e.filter&&this.emit("event",i),null!=i.decodeError&&this.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){let i=this._getRunningEvent(e),n=(0,c.shallowCopy)(i.filter);return"string"==typeof t&&(0,d.isHexString)(t,32)?(null!=r&&b.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),n.blockHash=t):(n.fromBlock=null!=t?t:0,n.toBlock=null!=r?r:"latest"),this.provider.getLogs(n).then(e=>e.map(e=>this._wrapEvent(i,e,null)))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;let r=this._getRunningEvent(e),i=r.run(t)>0;return this._checkRunningEvents(r),i}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce((e,t)=>e+this._runningEvents[t].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){let e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach(t=>{e.push(t)});return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(let e in this._runningEvents){let t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}let t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;let r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class k extends R{}class T{constructor(e,t,r){let i=null;"0x"!==(i="string"==typeof t?t:(0,d.isBytes)(t)?(0,d.hexlify)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(i="0x"+i),(!(0,d.isHexString)(i)||i.length%2)&&b.throwArgumentError("invalid bytecode","bytecode",t),r&&!(0,s.Signer).isSigner(r)&&b.throwArgumentError("invalid signer","signer",r),(0,c.defineReadOnly)(this,"bytecode",i),(0,c.defineReadOnly)(this,"interface",(0,c.getStatic)(new.target,"getInterface")(e)),(0,c.defineReadOnly)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){for(let r in t=(0,c.shallowCopy)(e.pop()))if(!m[r])throw Error("unknown transaction override "+r)}if(["data","from","to"].forEach(e=>{null!=t[e]&&b.throwError("cannot override "+e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})}),t.value){let e=(0,f.BigNumber).from(t.value);e.isZero()||this.interface.deploy.payable||b.throwError("non-payable constructor cannot override value",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return b.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,d.hexlify)((0,d.concat)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return p(this,void 0,void 0,function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),b.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");let r=yield y(this.signer,e,this.interface.deploy.inputs);r.push(t);let i=this.getDeployTransaction(...r),n=yield this.signer.sendTransaction(i),a=(0,c.getStatic)(this.constructor,"getContractAddress")(n),s=(0,c.getStatic)(this.constructor,"getContract")(a,this.interface,this.signer);return w(s,n),(0,c.defineReadOnly)(s,"deployTransaction",n),s})}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&b.throwError("missing compiler output",l.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));let r=e.abi,i=null;return e.bytecode?i=e.bytecode:e.evm&&e.evm.bytecode&&(i=e.evm.bytecode),new this(r,i,t)}static getInterface(e){return k.getInterface(e)}static getContractAddress(e){return(0,o.getContractAddress)(e)}static getContract(e,t,r){return new k(e,t,r)}}},{"@ethersproject/abi":"gbtNr","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"liyH3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gbtNr:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ConstructorFragment",()=>n.ConstructorFragment),i.export(r,"ErrorFragment",()=>n.ErrorFragment),i.export(r,"EventFragment",()=>n.EventFragment),i.export(r,"Fragment",()=>n.Fragment),i.export(r,"FunctionFragment",()=>n.FunctionFragment),i.export(r,"ParamType",()=>n.ParamType),i.export(r,"FormatTypes",()=>n.FormatTypes),i.export(r,"AbiCoder",()=>a.AbiCoder),i.export(r,"defaultAbiCoder",()=>a.defaultAbiCoder),i.export(r,"Interface",()=>s.Interface),i.export(r,"Indexed",()=>s.Indexed),i.export(r,"checkResultErrors",()=>s.checkResultErrors),i.export(r,"LogDescription",()=>s.LogDescription),i.export(r,"TransactionDescription",()=>s.TransactionDescription);"use strict";var n=e("./fragments"),a=e("./abi-coder"),s=e("./interface")},{"./fragments":"2aRQ2","./abi-coder":"eiswb","./interface":"gOFir","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aRQ2":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"FormatTypes",()=>p),i.export(r,"ParamType",()=>m),i.export(r,"Fragment",()=>y),i.export(r,"EventFragment",()=>v),i.export(r,"ConstructorFragment",()=>E),i.export(r,"FunctionFragment",()=>A),i.export(r,"ErrorFragment",()=>x);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let f=new s.Logger(o.version),d={},c={calldata:!0,memory:!0,storage:!0},u={calldata:!0,memory:!0};function l(e,t){if("bytes"===e||"string"===e){if(c[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&u[t])return!0;return(c[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function h(e,t){for(let r in t)(0,a.defineReadOnly)(e,r,t[r])}let p=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),b=new RegExp(/^(.*)\[([0-9]*)\]$/);class m{constructor(e,t){e!==d&&f.throwError("use fromString",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),h(this,t);let r=this.type.match(b);r?h(this,{arrayLength:parseInt(r[2]||"-1"),arrayChildren:m.fromObject({type:r[1],components:this.components}),baseType:"array"}):h(this,{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?t+=this.arrayChildren.format(e)+"["+(this.arrayLength<0?"":String(this.arrayLength))+"]":"tuple"===this.baseType?(e!==p.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===p.full?", ":",")+")"):t+=this.type,e!==p.sighash&&(!0===this.indexed&&(t+=" indexed"),e===p.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?m.fromString(e,t):m.fromObject(e)}static fromObject(e){return m.isParamType(e)?e:new m(d,{name:e.name||null,type:I(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(m.fromObject):null})}static fromString(e,t){var r;return r=function(e,t){let r=e;function i(t){f.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function n(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let a={type:"",name:"",state:{allowType:!0}},s=a;for(let r=0;rm.fromString(e,t))}class y{constructor(e,t){e!==d&&f.throwError("use a static from method",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),h(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return y.isFragment(e)?e:"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isFragment(e))return e;switch(e.type){case"function":return A.fromObject(e);case"event":return v.fromObject(e);case"constructor":return E.fromObject(e);case"error":return x.fromObject(e);case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?v.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?A.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?E.fromString(e.trim()):"error"===e.split(" ")[0]?x.fromString(e.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class v extends y{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==p.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?v.fromString(e):v.fromObject(e)}static fromObject(e){if(v.isEventFragment(e))return e;"event"!==e.type&&f.throwArgumentError("invalid event object","value",e);let t={name:k(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(m.fromObject):[],type:"event"};return new v(d,t)}static fromString(e){let t=e.match(T);t||f.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:f.warn("unknown modifier: "+e)}}),v.fromObject({name:t[1].trim(),anonymous:r,inputs:g(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function w(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=(0,n.BigNumber).from(r[1]),r[0]):e}function _(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function M(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}class E extends y{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===p.sighash&&f.throwError("cannot format a constructor for sighash",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?E.fromString(e):E.fromObject(e)}static fromObject(e){if(E.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);let t=M(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);let r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(m.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,n.BigNumber).from(e.gas):null};return new E(d,r)}static fromString(e){let t={type:"constructor"},r=(e=w(e,t)).match(T);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=g(r[2].trim(),!1),_(r[3].trim(),t),E.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class A extends E{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():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 e!==p.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ",e!==p.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?A.fromString(e):A.fromObject(e)}static fromObject(e){if(A.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);let t=M(e),r={type:e.type,name:k(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(m.fromObject):[],outputs:e.outputs?e.outputs.map(m.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?(0,n.BigNumber).from(e.gas):null};return new A(d,r)}static fromString(e){let t={type:"function"},r=(e=w(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);let i=r[0].match(T);if(i||f.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&k(t.name),t.inputs=g(i[2],!1),_(i[3].trim(),t),r.length>1){let i=r[1].match(T);(""!=i[1].trim()||""!=i[3].trim())&&f.throwArgumentError("unexpected tokens","value",e),t.outputs=g(i[2],!1)}else t.outputs=[];return A.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function S(e){let t=e.format();return("Error(string)"===t||"Panic(uint256)"===t)&&f.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class x extends y{format(e){if(e||(e=p.sighash),p[e]||f.throwArgumentError("invalid format type","format",e),e===p.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==p.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===p.full?", ":",")+") ").trim()}static from(e){return"string"==typeof e?x.fromString(e):x.fromObject(e)}static fromObject(e){if(x.isErrorFragment(e))return e;"error"!==e.type&&f.throwArgumentError("invalid error object","value",e);let t={type:e.type,name:k(e.name),inputs:e.inputs?e.inputs.map(m.fromObject):[]};return S(new x(d,t))}static fromString(e){let t={type:"error"},r=e.match(T);return r||f.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&k(t.name),t.inputs=g(r[2],!1),S(x.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function I(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}let R=RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function k(e){return e&&e.match(R)||f.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}let T=RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dmdV5:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"defineReadOnly",()=>o),i.export(r,"getStatic",()=>f),i.export(r,"resolveProperties",()=>d),i.export(r,"checkProperties",()=>c),i.export(r,"shallowCopy",()=>u),i.export(r,"deepCopy",()=>h),i.export(r,"Description",()=>p);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=new n.Logger(a.version);function o(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function f(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function d(e){var t,r,i,n;return t=this,r=void 0,i=void 0,n=function*(){let t=Object.keys(e).map(t=>{let r=e[t];return Promise.resolve(r).then(e=>({key:t,value:e}))}),r=yield Promise.all(t);return r.reduce((e,t)=>(e[t.key]=t.value,e),{})},new(i||(i=Promise))(function(e,a){function s(e){try{f(n.next(e))}catch(e){a(e)}}function o(e){try{f(n.throw(e))}catch(e){a(e)}}function f(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(s,o)}f((n=n.apply(t,r||[])).next())})}function c(e,t){e&&"object"==typeof e||s.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(r=>{t[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)})}function u(e){let t={};for(let r in e)t[r]=e[r];return t}let l={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function h(e){return function(e){if(function e(t){if(null==t||l[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;let r=Object.keys(t);for(let i=0;ih(e)));if("object"==typeof e){let t={};for(let r in e){let i=e[r];void 0!==i&&o(t,r,h(i))}return t}return s.throwArgumentError(`Cannot deepCopy ${typeof e}`,"object",e)}(e)}class p{constructor(e){for(let t in e)this[t]=h(e[t])}}},{"@ethersproject/logger":"6NWvR","./_version":"bVRqv","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bVRqv:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="properties/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6avgg":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="abi/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eiswb:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AbiCoder",()=>M),i.export(r,"defaultAbiCoder",()=>E);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version"),f=e("./coders/abstract-coder"),d=e("./coders/address"),c=e("./coders/array"),u=e("./coders/boolean"),l=e("./coders/bytes"),h=e("./coders/fixed-bytes"),p=e("./coders/null"),b=e("./coders/number"),m=e("./coders/string"),g=e("./coders/tuple"),y=e("./fragments");let v=new s.Logger(o.version),w=new RegExp(/^bytes([0-9]*)$/),_=new RegExp(/^(u?int)([0-9]*)$/);class M{constructor(e){(0,a.defineReadOnly)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new d.AddressCoder(e.name);case"bool":return new u.BooleanCoder(e.name);case"string":return new m.StringCoder(e.name);case"bytes":return new l.BytesCoder(e.name);case"array":return new c.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new g.TupleCoder((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new p.NullCoder(e.name)}let t=e.type.match(_);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&v.throwArgumentError("invalid "+t[1]+" bit length","param",e),new b.NumberCoder(r/8,"int"===t[1],e.name)}if(t=e.type.match(w)){let r=parseInt(t[1]);return(0===r||r>32)&&v.throwArgumentError("invalid bytes length","param",e),new h.FixedBytesCoder(r,e.name)}return v.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new f.Reader(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new f.Writer(this._getWordSize())}getDefaultValue(e){let t=e.map(e=>this._getCoder((0,y.ParamType).from(e))),r=new g.TupleCoder(t,"_");return r.defaultValue()}encode(e,t){e.length!==t.length&&v.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});let r=e.map(e=>this._getCoder((0,y.ParamType).from(e))),i=new g.TupleCoder(r,"_"),n=this._getWriter();return i.encode(n,t),n.data}decode(e,t,r){let i=e.map(e=>this._getCoder((0,y.ParamType).from(e))),a=new g.TupleCoder(i,"_");return a.decode(this._getReader((0,n.arrayify)(t),r))}}let E=new M},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"6avgg","./coders/abstract-coder":"9TMyg","./coders/address":"gmOQs","./coders/array":"2wlJw","./coders/boolean":"euYzQ","./coders/bytes":"kOE2A","./coders/fixed-bytes":"dNFj2","./coders/null":"2639x","./coders/number":"lHQpm","./coders/string":"44r1i","./coders/tuple":"90ORK","./fragments":"2aRQ2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9TMyg":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"checkResultErrors",()=>c),i.export(r,"Coder",()=>u),i.export(r,"Writer",()=>l),i.export(r,"Reader",()=>h);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),f=e("../_version");let d=new o.Logger(f.version);function c(e){let t=[],r=function(e,i){if(Array.isArray(i))for(let n in i){let a=e.slice();a.push(n);try{r(a,i[n])}catch(e){t.push({path:a,error:e})}}};return r([],e),t}class u{constructor(e,t,r,i){this.name=e,this.type=t,this.localName=r,this.dynamic=i}_throwError(e,t){d.throwArgumentError(e,this.localName,t)}}class l{constructor(e){(0,s.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return(0,n.hexConcat)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData((0,n.concat)(e._data))}writeBytes(e){let t=(0,n.arrayify)(e),r=t.length%this.wordSize;return r&&(t=(0,n.concat)([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=(0,n.arrayify)((0,a.BigNumber).from(e));return t.length>this.wordSize&&d.throwError("value out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.concat)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){let e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class h{constructor(e,t,r,i){(0,s.defineReadOnly)(this,"_data",(0,n.arrayify)(e)),(0,s.defineReadOnly)(this,"wordSize",t||32),(0,s.defineReadOnly)(this,"_coerceFunc",r),(0,s.defineReadOnly)(this,"allowLoose",i),this._offset=0}get data(){return(0,n.hexlify)(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&48>=parseInt(r[1])&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):h.coerce(e,t)}_peekBytes(e,t,r){let i=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?i=t:d.throwError("data out-of-bounds",o.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new h(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return(0,a.BigNumber).from(this.readBytes(this.wordSize))}}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","../_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gmOQs:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AddressCoder",()=>o);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/bytes"),s=e("./abstract-coder");class o extends s.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=(0,n.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return(0,n.getAddress)((0,a.hexZeroPad)(e.readValue().toHexString(),20))}}},{"@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BZuS":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getAddress",()=>b),i.export(r,"isAddress",()=>m),i.export(r,"getIcapAddress",()=>g),i.export(r,"getContractAddress",()=>y),i.export(r,"getCreate2Address",()=>v);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/rlp"),f=e("@ethersproject/logger"),d=e("./_version");let c=new f.Logger(d.version);function u(e){(0,n.isHexString)(e,20)||c.throwArgumentError("invalid address","address",e),e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let i=(0,n.arrayify)((0,s.keccak256)(r));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let l={};for(let e=0;e<10;e++)l[String(e)]=String(e);for(let e=0;e<26;e++)l[String.fromCharCode(65+e)]=String(10+e);let h=Math.floor(Math.log10?Math.log10(9007199254740991):Math.log(9007199254740991)/Math.LN10);function p(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>l[e]).join("");for(;t.length>=h;){let e=t.substring(0,h);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}function b(e){let t=null;if("string"!=typeof e&&c.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&c.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==p(e)&&c.throwArgumentError("bad icap checksum","address",e),t=(0,a._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else c.throwArgumentError("invalid address","address",e);return t}function m(e){try{return b(e),!0}catch(e){}return!1}function g(e){let t=(0,a._base16To36)(b(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function y(e){let t=null;try{t=b(e.from)}catch(t){c.throwArgumentError("missing from address","transaction",e)}let r=(0,n.stripZeros)((0,n.arrayify)((0,a.BigNumber).from(e.nonce).toHexString()));return b((0,n.hexDataSlice)((0,s.keccak256)((0,o.encode)([t,r])),12))}function v(e,t,r){return 32!==(0,n.hexDataLength)(t)&&c.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.hexDataLength)(r)&&c.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),b((0,n.hexDataSlice)((0,s.keccak256)((0,n.concat)(["0xff",b(e),t,r])),12))}},{"@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/keccak256":"eWtzg","@ethersproject/rlp":"1wlks","@ethersproject/logger":"6NWvR","./_version":"cclNm","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1wlks":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"encode",()=>c),i.export(r,"decode",()=>h);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);function f(e){let t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function d(e,t,r){let i=0;for(let n=0;nt+1+i&&o.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+i,result:n}}function l(e,t){if(0===e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){let r=e[t]-247;t+1+r>e.length&&o.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=d(e,t+1,r);return t+1+r+i>e.length&&o.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),u(e,t,t+1+r,r+i)}if(e[t]>=192){let r=e[t]-192;return t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),u(e,t,t+1,r)}if(e[t]>=184){let r=e[t]-183;t+1+r>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=d(e,t+1,r);t+1+r+i>e.length&&o.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});let s=(0,n.hexlify)(e.slice(t+1+r,t+1+r+i));return{consumed:1+r+i,result:s}}if(e[t]>=128){let r=e[t]-128;t+1+r>e.length&&o.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{});let i=(0,n.hexlify)(e.slice(t+1,t+1+r));return{consumed:1+r,result:i}}return{consumed:1,result:(0,n.hexlify)(e[t])}}function h(e){let t=(0,n.arrayify)(e),r=l(t,0);return r.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),r.result}},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"AiPnh","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],AiPnh:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="rlp/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cclNm:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="address/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2wlJw":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"pack",()=>d),i.export(r,"unpack",()=>c),i.export(r,"ArrayCoder",()=>u);"use strict";var n=e("@ethersproject/logger"),a=e("../_version"),s=e("./abstract-coder"),o=e("./anonymous");let f=new n.Logger(a.version);function d(e,t,r){let i=null;if(Array.isArray(r))i=r;else if(r&&"object"==typeof r){let e={};i=t.map(t=>{let i=t.localName;return i||f.throwError("cannot encode object for signature with missing names",n.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[i]&&f.throwError("cannot encode object for signature with duplicate names",n.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[i]=!0,r[i]})}else f.throwArgumentError("invalid tuple value","tuple",r);t.length!==i.length&&f.throwArgumentError("types/value length mismatch","tuple",r);let a=new s.Writer(e.wordSize),o=new s.Writer(e.wordSize),d=[];return t.forEach((e,t)=>{let r=i[t];if(e.dynamic){let t=o.length;e.encode(o,r);let i=a.writeUpdatableValue();d.push(e=>{i(e+t)})}else e.encode(a,r)}),d.forEach(e=>{e(a.length)}),e.appendWriter(a)+e.appendWriter(o)}function c(e,t){let r=[],i=e.subReader(0);t.forEach(t=>{let a=null;if(t.dynamic){let r=e.readValue(),s=i.subReader(r.toNumber());try{a=t.decode(s)}catch(e){if(e.code===n.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if(e.code===n.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}void 0!=a&&r.push(a)});let a=t.reduce((e,t)=>{let r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e},{});t.forEach((e,t)=>{let i=e.localName;if(!i||1!==a[i]||("length"===i&&(i="_length"),null!=r[i]))return;let n=r[t];n instanceof Error?Object.defineProperty(r,i,{enumerable:!0,get:()=>{throw n}}):r[i]=n});for(let e=0;e{throw t}})}return Object.freeze(r)}class u extends s.Coder{constructor(e,t,r){let i=e.type+"["+(t>=0?t:"")+"]",n=-1===t||e.dynamic;super("array",i,r,n),this.coder=e,this.length=t}defaultValue(){let e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&f.throwError("insufficient data length",n.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});let r=[];for(let e=0;ea);var n=e("./abstract-coder");"use strict";class a extends n.Coder{constructor(e){super(e.name,e.type,void 0,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":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euYzQ:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BooleanCoder",()=>a);var n=e("./abstract-coder");"use strict";class a extends n.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kOE2A:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"DynamicBytesCoder",()=>s),i.export(r,"BytesCoder",()=>o);"use strict";var n=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){return t=(0,n.arrayify)(t),e.writeValue(t.length)+e.writeBytes(t)}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class o extends s{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,(0,n.hexlify)(super.decode(e)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dNFj2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"FixedBytesCoder",()=>s);"use strict";var n=e("@ethersproject/bytes"),a=e("./abstract-coder");class s extends a.Coder{constructor(e,t){let r="bytes"+String(e);super(r,r,t,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let r=(0,n.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}decode(e){return e.coerce(this.name,(0,n.hexlify)(e.readBytes(this.size)))}}},{"@ethersproject/bytes":"19SwW","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2639x":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NullCoder",()=>a);var n=e("./abstract-coder");"use strict";class a extends n.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}},{"./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHQpm:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NumberCoder",()=>o);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/constants"),s=e("./abstract-coder");class o extends s.Coder{constructor(e,t,r){let i=(t?"int":"uint")+8*e;super(i,i,r,!1),this.size=e,this.signed=t}defaultValue(){return 0}encode(e,t){let r=(0,n.BigNumber).from(t),i=(0,a.MaxUint256).mask(8*e.wordSize);if(this.signed){let e=i.mask(8*this.size-1);(r.gt(e)||r.lt(e.add(a.One).mul(a.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(a.Zero)||r.gt(i.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/constants":"cSsuf","./abstract-coder":"9TMyg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"44r1i":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"StringCoder",()=>s);"use strict";var n=e("@ethersproject/strings"),a=e("./bytes");class s extends a.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,n.toUtf8Bytes)(t))}decode(e){return(0,n.toUtf8String)(super.decode(e))}}},{"@ethersproject/strings":"edSy2","./bytes":"kOE2A","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"90ORK":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"TupleCoder",()=>s);"use strict";var n=e("./abstract-coder"),a=e("./array");class s extends n.Coder{constructor(e,t){let r=!1,i=[];e.forEach(e=>{e.dynamic&&(r=!0),i.push(e.type)});let n="tuple("+i.join(",")+")";super("tuple",n,t,r),this.coders=e}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,i)=>{let n=r.localName;n&&1===t[n]&&("length"===n&&(n="_length"),null==e[n]&&(e[n]=e[i]))}),Object.freeze(e)}encode(e,t){return(0,a.pack)(e,this.coders,t)}decode(e){return e.coerce(this.name,(0,a.unpack)(e,this.coders))}}},{"./abstract-coder":"9TMyg","./array":"2wlJw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gOFir:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"checkResultErrors",()=>u.checkResultErrors),i.export(r,"LogDescription",()=>m),i.export(r,"TransactionDescription",()=>g),i.export(r,"ErrorDescription",()=>y),i.export(r,"Indexed",()=>v),i.export(r,"Interface",()=>M);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),f=e("@ethersproject/keccak256"),d=e("@ethersproject/properties"),c=e("./abi-coder"),u=e("./coders/abstract-coder"),l=e("./fragments"),h=e("@ethersproject/logger"),p=e("./_version");let b=new h.Logger(p.version);class m extends d.Description{}class g extends d.Description{}class y extends d.Description{}class v extends d.Description{static isIndexed(e){return!!(e&&e._isIndexed)}}let w={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function _(e,t){let r=Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class M{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,(0,d.defineReadOnly)(this,"fragments",t.map(e=>(0,l.Fragment).from(e)).filter(e=>null!=e)),(0,d.defineReadOnly)(this,"_abiCoder",(0,d.getStatic)(new.target,"getAbiCoder")()),(0,d.defineReadOnly)(this,"functions",{}),(0,d.defineReadOnly)(this,"errors",{}),(0,d.defineReadOnly)(this,"events",{}),(0,d.defineReadOnly)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":if(this.deploy){b.warn("duplicate definition - constructor");return}(0,d.defineReadOnly)(this,"deploy",e);return;case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();if(t[r]){b.warn("duplicate definition - "+r);return}t[r]=e}),this.deploy||(0,d.defineReadOnly)(this,"deploy",(0,l.ConstructorFragment).from({payable:!1,type:"constructor"})),(0,d.defineReadOnly)(this,"_isInterface",!0)}format(e){e||(e=l.FormatTypes.full),e===l.FormatTypes.sighash&&b.throwArgumentError("interface does not support formatting sighash","format",e);let t=this.fragments.map(t=>t.format(e));return e===l.FormatTypes.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return c.defaultAbiCoder}static getAddress(e){return(0,n.getAddress)(e)}static getSighash(e){return(0,s.hexDataSlice)((0,o.id)(e.format()),0,4)}static getEventTopic(e){return(0,o.id)(e.format())}getFunction(e){if((0,s.isHexString)(e)){for(let t in this.functions)if(e===this.getSighash(t))return this.functions[t];b.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===r.length?b.throwArgumentError("no matching function","name",t):r.length>1&&b.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}let t=this.functions[(0,l.FunctionFragment).fromString(e).format()];return t||b.throwArgumentError("no matching function","signature",e),t}getEvent(e){if((0,s.isHexString)(e)){let t=e.toLowerCase();for(let e in this.events)if(t===this.getEventTopic(e))return this.events[e];b.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===r.length?b.throwArgumentError("no matching event","name",t):r.length>1&&b.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}let t=this.events[(0,l.EventFragment).fromString(e).format()];return t||b.throwArgumentError("no matching event","signature",e),t}getError(e){if((0,s.isHexString)(e)){let t=(0,d.getStatic)(this.constructor,"getSighash");for(let r in this.errors){let i=this.errors[r];if(e===t(i))return this.errors[r]}b.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){let t=e.trim(),r=Object.keys(this.errors).filter(e=>e.split("(")[0]===t);return 0===r.length?b.throwArgumentError("no matching error","name",t):r.length>1&&b.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}let t=this.errors[(0,l.FunctionFragment).fromString(e).format()];return t||b.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,d.getStatic)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,d.getStatic)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&b.throwArgumentError(`data signature does not match error ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&b.throwArgumentError(`data signature does not match function ${e.name}.`,"data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=(0,s.arrayify)(t),i=null,n="",a=null,o=null,f=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(e){}break;case 4:{let e=(0,s.hexlify)(r.slice(0,4)),t=w[e];if(t)a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,f=t.signature,t.reason&&(i=a[0]),"Error"===o?n=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(a[0])}`:"Panic"===o&&(n=`; VM Exception while processing transaction: reverted with panic code ${a[0]}`);else try{let t=this.getError(e);a=this._abiCoder.decode(t.inputs,r.slice(4)),o=t.name,f=t.format()}catch(e){}}}return b.throwError("call revert exception"+n,h.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.hexlify)(t),errorArgs:a,errorName:o,errorSignature:f,reason:i})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&b.throwError("too many arguments for "+e.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));let i=(e,t)=>"string"===e.type?(0,o.id)(t):"bytes"===e.type?(0,f.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=(0,a.BigNumber).from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),(0,s.hexZeroPad)((0,s.hexlify)(t),32));for(t.forEach((t,n)=>{let a=e.inputs[n];if(!a.indexed){null!=t&&b.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,t);return}null==t?r.push(null):"array"===a.baseType||"tuple"===a.baseType?b.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?r.push(t.map(e=>i(a,e))):r.push(i(a,t))});r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));let r=[],i=[],n=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&b.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,a)=>{let s=t[a];if(e.indexed){if("string"===e.type)r.push((0,o.id)(s));else if("bytes"===e.type)r.push((0,f.keccak256)(s));else if("tuple"===e.baseType||"array"===e.baseType)throw Error("not implemented");else r.push(this._abiCoder.encode([e.type],[s]))}else i.push(e),n.push(s)}),{data:this._abiCoder.encode(i,n),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);(0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===t||b.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let i=[],n=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push((0,l.ParamType).fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(n.push(e),a.push(!1))});let o=null!=r?this._abiCoder.decode(i,(0,s.concat)(r)):null,f=this._abiCoder.decode(n,t,!0),d=[],c=0,u=0;e.inputs.forEach((e,t)=>{if(e.indexed){if(null==o)d[t]=new v({_isIndexed:!0,hash:null});else if(a[t])d[t]=new v({_isIndexed:!0,hash:o[u++]});else try{d[t]=o[u++]}catch(e){d[t]=e}}else try{d[t]=f[c++]}catch(e){d[t]=e}if(e.name&&null==d[e.name]){let r=d[t];r instanceof Error?Object.defineProperty(d,e.name,{enumerable:!0,get:()=>{throw _(`property ${JSON.stringify(e.name)}`,r)}}):d[e.name]=r}});for(let e=0;e{throw _(`index ${e}`,t)}})}return Object.freeze(d)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new g({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:(0,a.BigNumber).from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new m({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){let t=(0,s.hexlify)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new y({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!!(e&&e._isInterface)}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","./abi-coder":"eiswb","./coders/abstract-coder":"9TMyg","./fragments":"2aRQ2","@ethersproject/logger":"6NWvR","./_version":"6avgg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLDfB:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"id",()=>n.id),i.export(r,"dnsEncode",()=>a.dnsEncode),i.export(r,"namehash",()=>a.namehash),i.export(r,"isValidName",()=>a.isValidName),i.export(r,"ensNormalize",()=>a.ensNormalize),i.export(r,"messagePrefix",()=>s.messagePrefix),i.export(r,"hashMessage",()=>s.hashMessage),i.export(r,"_TypedDataEncoder",()=>o.TypedDataEncoder);"use strict";var n=e("./id"),a=e("./namehash"),s=e("./message"),o=e("./typed-data")},{"./id":"h8d98","./namehash":"85tDg","./message":"dncJF","./typed-data":"keHK9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],h8d98:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"id",()=>s);var n=e("@ethersproject/keccak256"),a=e("@ethersproject/strings");function s(e){return(0,n.keccak256)((0,a.toUtf8Bytes)(e))}},{"@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"85tDg":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ensNormalize",()=>p),i.export(r,"isValidName",()=>b),i.export(r,"namehash",()=>m),i.export(r,"dnsEncode",()=>g);var n=e("@ethersproject/bytes"),a=e("@ethersproject/strings"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/logger"),f=e("./_version"),d=e("./ens-normalize/lib");let c=new o.Logger(f.version),u=new Uint8Array(32);function l(e){if(0===e.length)throw Error("invalid ENS name; empty component");return e}function h(e){let t=(0,a.toUtf8Bytes)((0,d.ens_normalize)(e)),r=[];if(0===e.length)return r;let i=0;for(let e=0;e=t.length)throw Error("invalid ENS name; empty component");return r.push(l(t.slice(i))),r}function p(e){return h(e).map(e=>(0,a.toUtf8String)(e)).join(".")}function b(e){try{return 0!==h(e).length}catch(e){}return!1}function m(e){"string"!=typeof e&&c.throwArgumentError("invalid ENS name; not a string","name",e);let t=u,r=h(e);for(;r.length;)t=(0,s.keccak256)((0,n.concat)([t,(0,s.keccak256)(r.pop())]));return(0,n.hexlify)(t)}function g(e){return(0,n.hexlify)((0,n.concat)(h(e).map(e=>{if(e.length>63)throw Error("invalid DNS encoded entry; length exceeds 63 bytes");let t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}u.fill(0)},{"@ethersproject/bytes":"19SwW","@ethersproject/strings":"edSy2","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./ens-normalize/lib":"gBi5u","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kPmfv:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="hash/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gBi5u:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ens_normalize_post_check",()=>p),i.export(r,"ens_normalize",()=>b);var n=e("@ethersproject/strings"),a=e("./include.js"),s=e("./decoder.js");let o=(0,a.getData)(),f=new Set((0,s.read_member_array)(o)),d=new Set((0,s.read_member_array)(o)),c=(0,s.read_mapped_map)(o),u=(0,s.read_emoji_trie)(o);function l(e){return(0,n.toUtf8CodePoints)(e)}function h(e){return e.filter(e=>65039!=e)}function p(e){for(let t of e.split(".")){let e=l(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw Error("underscore only allowed at start");if(e.length>=4&&e.every(e=>e<128)&&45===e[2]&&45===e[3])throw Error("invalid label extension")}catch(e){throw Error(`Invalid label "${t}": ${e.message}`)}}return e}function b(e){return p(function(e,t){let r=l(e).reverse(),i=[];for(;r.length;){let e=function(e,t){var r;let i,n;let a=u,s=[],o=e.length;for(t&&(t.length=0);o;){let f=e[--o];if(!(a=null===(r=a.branches.find(e=>e.set.has(f)))||void 0===r?void 0:r.node))break;if(a.save)n=f;else if(a.check&&f===n)break;s.push(f),a.fe0f&&(s.push(65039),o>0&&65039==e[o-1]&&o--),a.valid&&(i=s.slice(),2==a.valid&&i.splice(1,1),t&&t.push(...e.slice(o).reverse()),e.length=o)}return i}(r);if(e){i.push(...t(e));continue}let n=r.pop();if(f.has(n)){i.push(n);continue}if(d.has(n))continue;let a=c[n];if(a){i.push(...a);continue}throw Error(`Disallowed codepoint: 0x${n.toString(16).toUpperCase()}`)}return p(String.fromCodePoint(...i).normalize("NFC"))}(e,h))}},{"@ethersproject/strings":"edSy2","./include.js":"1Wgfv","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1Wgfv":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getData",()=>s);var n=e("@ethersproject/base64"),a=e("./decoder.js");function s(){return(0,a.read_compressed_payload)((0,n.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}},{"@ethersproject/base64":"dIiCi","./decoder.js":"akoWw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dIiCi:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"decode",()=>n.decode),i.export(r,"encode",()=>n.encode);var n=e("./base64");"use strict"},{"./base64":"14I0X","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"14I0X":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"decode",()=>a),i.export(r,"encode",()=>s);var n=e("@ethersproject/bytes");"use strict";function a(e){e=atob(e);let t=[];for(let r=0;r0&&Array.isArray(e)?n(e,t-1):r.push(e)})};return n(e,t),r}function a(e){let t=0;function r(){return e[t++]<<8|e[t++]}let i=r(),n=1,a=[0,1];for(let e=1;e>--f&1}let u=0;for(let e=0;e<31;e++)u=u<<1|c();let l=[],h=0,p=2147483648;for(;;){let e=Math.floor(((u-h+1)*n-1)/p),t=0,r=i;for(;r-t>1;){let i=t+r>>>1;e{switch(t-b){case 3:return b+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return b+256+(e[o++]<<8|e[o++]);case 1:return b+e[o++];default:return t-1}})}function s(e){let t=0;return()=>e[t++]}function o(e){return s(a(e))}function f(e){return 1&e?~e>>1:e>>1}function d(e,t){let r=Array(e);for(let i=0,n=-1;it[e]):r}function u(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),i=t(),a=l(t);return n(h(a.length,1+e,t).map((e,t)=>{let n=e[0],s=e.slice(1);return Array(a[t]).fill(void 0).map((e,t)=>{let a=t*i;return[n+t*r,s.map(e=>e+a)]})}))}(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(h(1+e(),1+r,e).map(e=>[e[0],e.slice(1)]))}return function(e){let t={};for(let r=0;r[]);for(let n=0;ni[t].push(e));return i}function p(e){let t=c(e).sort((e,t)=>e-t);return function r(){let i=[];for(;;){let n=c(e,t);if(0==n.length)break;i.push({set:new Set(n),node:r()})}i.sort((e,t)=>t.set.size-e.set.size);let n=e();return{branches:i,valid:n%3,fe0f:!!(1&(n=n/3|0)),save:1==(n>>=1),check:2==n}}()}i.defineInteropFlag(r),i.export(r,"decode_arithmetic",()=>a),i.export(r,"read_payload",()=>s),i.export(r,"read_compressed_payload",()=>o),i.export(r,"signed",()=>f),i.export(r,"read_member_array",()=>c),i.export(r,"read_mapped_map",()=>u),i.export(r,"read_zero_terminated_array",()=>l),i.export(r,"read_emoji_trie",()=>p)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dncJF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"messagePrefix",()=>o),i.export(r,"hashMessage",()=>f);var n=e("@ethersproject/bytes"),a=e("@ethersproject/keccak256"),s=e("@ethersproject/strings");let o="\x19Ethereum Signed Message:\n";function f(e){return"string"==typeof e&&(e=(0,s.toUtf8Bytes)(e)),(0,a.keccak256)((0,n.concat)([(0,s.toUtf8Bytes)(o),(0,s.toUtf8Bytes)(String(e.length)),e]))}},{"@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/strings":"edSy2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],keHK9:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"TypedDataEncoder",()=>x);var n=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/keccak256"),f=e("@ethersproject/properties"),d=e("@ethersproject/logger"),c=e("./_version"),u=e("./id");let l=new d.Logger(c.version),h=new Uint8Array(32);h.fill(0);let p=(0,a.BigNumber).from(-1),b=(0,a.BigNumber).from(0),m=(0,a.BigNumber).from(1),g=(0,a.BigNumber).from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),y=(0,s.hexZeroPad)(m.toHexString(),32),v=(0,s.hexZeroPad)(b.toHexString(),32),w={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function M(e){return function(t){return"string"!=typeof t&&l.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}let E={name:M("name"),version:M("version"),chainId:function(e){try{return(0,a.BigNumber).from(e).toString()}catch(e){}return l.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,n.getAddress)(e).toLowerCase()}catch(e){}return l.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{let t=(0,s.arrayify)(e);if(32!==t.length)throw Error("bad length");return(0,s.hexlify)(t)}catch(e){}return l.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function A(e){{let t=e.match(/^(u?)int(\d*)$/);if(t){let r=""===t[1],i=parseInt(t[2]||"256");(i%8!=0||i>256||t[2]&&t[2]!==String(i))&&l.throwArgumentError("invalid numeric width","type",e);let n=g.mask(r?i-1:i),o=r?n.add(m).mul(p):b;return function(t){let r=(0,a.BigNumber).from(t);return(r.lt(o)||r.gt(n))&&l.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),(0,s.hexZeroPad)(r.toTwos(256).toHexString(),32)}}}{let t=e.match(/^bytes(\d+)$/);if(t){let r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&l.throwArgumentError("invalid bytes width","type",e),function(t){let i=(0,s.arrayify)(t);return i.length!==r&&l.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){let t=(0,s.arrayify)(e),r=t.length%32;return r?(0,s.hexConcat)([t,h.slice(r)]):(0,s.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,s.hexZeroPad)((0,n.getAddress)(e),32)};case"bool":return function(e){return e?y:v};case"bytes":return function(e){return(0,o.keccak256)(e)};case"string":return function(e){return(0,u.id)(e)}}return null}function S(e,t){return`${e}(${t.map(({name:e,type:t})=>t+" "+e).join(",")})`}class x{constructor(e){(0,f.defineReadOnly)(this,"types",Object.freeze((0,f.deepCopy)(e))),(0,f.defineReadOnly)(this,"_encoderCache",{}),(0,f.defineReadOnly)(this,"_types",{});let t={},r={},i={};for(let n in Object.keys(e).forEach(e=>{t[e]={},r[e]=[],i[e]={}}),e){let i={};e[n].forEach(a=>{i[a.name]&&l.throwArgumentError(`duplicate variable name ${JSON.stringify(a.name)} in ${JSON.stringify(n)}`,"types",e),i[a.name]=!0;let s=a.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===n&&l.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);let o=A(s);o||(r[s]||l.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(n),t[n][s]=!0)})}let n=Object.keys(r).filter(e=>0===r[e].length);for(let a in 0===n.length?l.throwArgumentError("missing primary type","types",e):n.length>1&&l.throwArgumentError(`ambiguous primary types or unused types: ${n.map(e=>JSON.stringify(e)).join(", ")}`,"types",e),(0,f.defineReadOnly)(this,"primaryType",n[0]),!function n(a,s){s[a]&&l.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),s[a]=!0,Object.keys(t[a]).forEach(e=>{r[e]&&(n(e,s),Object.keys(s).forEach(t=>{i[t][e]=!0}))}),delete s[a]}(this.primaryType,{}),i){let t=Object.keys(i[a]);t.sort(),this._types[a]=S(a,e[a])+t.map(t=>S(t,e[t])).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{let t=A(e);if(t)return t}let t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){let e=t[1],r=this.getEncoder(e),i=parseInt(t[3]);return t=>{i>=0&&t.length!==i&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let n=t.map(r);return this._types[e]&&(n=n.map(o.keccak256)),(0,o.keccak256)((0,s.hexConcat)(n))}}let r=this.types[e];if(r){let t=(0,u.id)(this._types[e]);return e=>{let i=r.map(({name:t,type:r})=>{let i=this.getEncoder(r)(e[t]);return this._types[r]?(0,o.keccak256)(i):i});return i.unshift(t),(0,s.hexConcat)(i)}}return l.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){let t=this._types[e];return t||l.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,o.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){{let i=A(e);if(i)return r(e,t)}let i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){let e=i[1],n=parseInt(i[3]);return n>=0&&t.length!==n&&l.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(t=>this._visit(e,t,r))}let n=this.types[e];return n?n.reduce((e,{name:i,type:n})=>(e[i]=this._visit(n,t[i],r),e),{}):l.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new x(e)}static getPrimaryType(e){return x.from(e).primaryType}static hashStruct(e,t,r){return x.from(t).hashStruct(e,r)}static hashDomain(e){let t=[];for(let r in e){let i=w[r];i||l.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:i})}return t.sort((e,t)=>_.indexOf(e.name)-_.indexOf(t.name)),x.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return(0,s.hexConcat)(["0x1901",x.hashDomain(e),x.from(t).hash(r)])}static hash(e,t,r){return(0,o.keccak256)(x.encode(e,t,r))}static resolveNames(e,t,r,i){var n,a,o,d;return n=this,a=void 0,o=void 0,d=function*(){e=(0,f.shallowCopy)(e);let n={};e.verifyingContract&&!(0,s.isHexString)(e.verifyingContract,20)&&(n[e.verifyingContract]="0x");let a=x.from(t);for(let e in a.visit(r,(e,t)=>("address"!==e||(0,s.isHexString)(t,20)||(n[t]="0x"),t)),n)n[e]=yield i(e);return e.verifyingContract&&n[e.verifyingContract]&&(e.verifyingContract=n[e.verifyingContract]),{domain:e,value:r=a.visit(r,(e,t)=>"address"===e&&n[t]?n[t]:t)}},new(o||(o=Promise))(function(e,t){function r(e){try{s(d.next(e))}catch(e){t(e)}}function i(e){try{s(d.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(r,i)}s((d=d.apply(n,a||[])).next())})}static getPayload(e,t,r){x.hashDomain(e);let i={},n=[];_.forEach(t=>{let r=e[t];null!=r&&(i[t]=E[t](r),n.push({name:t,type:w[t]}))});let o=x.from(t),d=(0,f.shallowCopy)(t);return d.EIP712Domain?l.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):d.EIP712Domain=n,o.encode(r),{types:d,domain:i,primaryType:o.primaryType,message:o.visit(r,(e,t)=>{if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.arrayify)(t));if(e.match(/^u?int/))return(0,a.BigNumber).from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&l.throwArgumentError("invalid string","value",t),t}return l.throwArgumentError("unsupported type","type",e)})}}}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"kPmfv","./id":"h8d98","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],imf57:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ForkEvent",()=>c),i.export(r,"BlockForkEvent",()=>u),i.export(r,"TransactionForkEvent",()=>l),i.export(r,"TransactionOrderForkEvent",()=>h),i.export(r,"Provider",()=>p);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),f=e("./_version");let d=new o.Logger(f.version);class c extends s.Description{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class u extends c{constructor(e,t){(0,a.isHexString)(e,32)||d.throwArgumentError("invalid blockHash","blockHash",e),super({_isForkEvent:!0,_isBlockForkEvent:!0,expiry:t||0,blockHash:e})}}class l extends c{constructor(e,t){(0,a.isHexString)(e,32)||d.throwArgumentError("invalid transaction hash","hash",e),super({_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:t||0,hash:e})}}class h extends c{constructor(e,t,r){(0,a.isHexString)(e,32)||d.throwArgumentError("invalid transaction hash","beforeHash",e),(0,a.isHexString)(t,32)||d.throwArgumentError("invalid transaction hash","afterHash",t),super({_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:r||0,beforeHash:e,afterHash:t})}}class p{constructor(){d.checkAbstract(new.target,p),(0,s.defineReadOnly)(this,"_isProvider",!0)}getFeeData(){var e,t,r,i;return e=this,t=void 0,r=void 0,i=function*(){let{block:e,gasPrice:t}=yield(0,s.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(e=>null)}),r=null,i=null,a=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,a=(0,n.BigNumber).from("1500000000"),i=e.baseFeePerGas.mul(2).add(a)),{lastBaseFeePerGas:r,maxFeePerGas:i,maxPriorityFeePerGas:a,gasPrice:t}},new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!!(e&&e._isProvider)}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"4ztCP","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4ztCP":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="abstract-provider/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],j6EbC:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Signer",()=>u),i.export(r,"VoidSigner",()=>l);"use strict";var n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let f=new a.Logger(s.version),d=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],c=[a.Logger.errors.INSUFFICIENT_FUNDS,a.Logger.errors.NONCE_EXPIRED,a.Logger.errors.REPLACEMENT_UNDERPRICED];class u{constructor(){f.checkAbstract(new.target,u),(0,n.defineReadOnly)(this,"_isSigner",!0)}getBalance(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return o(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return o(this,void 0,void 0,function*(){this._checkProvider("estimateGas");let t=yield(0,n.resolveProperties)(this.checkTransaction(e));return yield this.provider.estimateGas(t)})}call(e,t){return o(this,void 0,void 0,function*(){this._checkProvider("call");let r=yield(0,n.resolveProperties)(this.checkTransaction(e));return yield this.provider.call(r,t)})}sendTransaction(e){return o(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");let t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)})}getChainId(){return o(this,void 0,void 0,function*(){this._checkProvider("getChainId");let e=yield this.provider.getNetwork();return e.chainId})}getGasPrice(){return o(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return o(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return o(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(let t in e)-1===d.indexOf(t)&&f.throwArgumentError("invalid transaction key: "+t,"transaction",e);let t=(0,n.shallowCopy)(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then(t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&f.throwArgumentError("from address mismatch","transaction",e),t[0])),t}populateTransaction(e){return o(this,void 0,void 0,function*(){let t=yield(0,n.resolveProperties)(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then(e=>o(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.resolveName(e);return null==t&&f.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})),t.to.catch(e=>{}));let r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null!=t.gasPrice&&(2===t.type||r)?f.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(0===t.type||1===t.type)&&r&&f.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(2===t.type||null==t.type)&&null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)t.type=2;else if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{let e=yield this.getFeeData();if(null==t.type){if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas){if(t.type=2,null!=t.gasPrice){let e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas)}else null!=e.gasPrice?(r&&f.throwError("network does not support EIP-1559",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):f.throwError("failed to get consistent fee data",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"})}else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch(e=>{if(c.indexOf(e.code)>=0)throw e;return f.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",a.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(t=>(0!==t[1]&&t[0]!==t[1]&&f.throwArgumentError("chainId address mismatch","transaction",e),t[0])),yield(0,n.resolveProperties)(t)})}_checkProvider(e){this.provider||f.throwError("missing provider",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class l extends u{constructor(e,t){super(),(0,n.defineReadOnly)(this,"address",e),(0,n.defineReadOnly)(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then(()=>{f.throwError(e,a.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new l(this.address,e)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"9OQFK","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9OQFK":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="abstract-signer/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],ctBdV:[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"TransactionTypes",()=>n),a.export(r,"computeAddress",()=>_),a.export(r,"recoverAddress",()=>M),a.export(r,"accessListify",()=>S),a.export(r,"serialize",()=>k),a.export(r,"parse",()=>C);"use strict";var s=e("@ethersproject/address"),o=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),d=e("@ethersproject/constants"),c=e("@ethersproject/keccak256"),u=e("@ethersproject/properties"),l=e("@ethersproject/rlp"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/logger"),b=e("./_version");let m=new p.Logger(b.version);function g(e){return"0x"===e?null:(0,s.getAddress)(e)}function y(e){return"0x"===e?d.Zero:(0,o.BigNumber).from(e)}(i=n||(n={}))[i.legacy=0]="legacy",i[i.eip2930=1]="eip2930",i[i.eip1559=2]="eip1559";let v=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function _(e){let t=(0,h.computePublicKey)(e);return(0,s.getAddress)((0,f.hexDataSlice)((0,c.keccak256)((0,f.hexDataSlice)(t,1)),12))}function M(e,t){return _((0,h.recoverPublicKey)((0,f.arrayify)(e),t))}function E(e,t){let r=(0,f.stripZeros)((0,o.BigNumber).from(e).toHexString());return r.length>32&&m.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function A(e,t){return{address:(0,s.getAddress)(e),storageKeys:(t||[]).map((t,r)=>(32!==(0,f.hexDataLength)(t)&&m.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase()))}}function S(e){if(Array.isArray(e))return e.map((e,t)=>Array.isArray(e)?(e.length>2&&m.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),A(e[0],e[1])):A(e.address,e.storageKeys));let t=Object.keys(e).map(t=>{let r=e[t].reduce((e,t)=>(e[t]=!0,e),{});return A(t,Object.keys(r).sort())});return t.sort((e,t)=>e.address.localeCompare(t.address)),t}function x(e){return S(e).map(e=>[e.address,e.storageKeys])}function I(e,t){if(null!=e.gasPrice){let t=(0,o.BigNumber).from(e.gasPrice),r=(0,o.BigNumber).from(e.maxFeePerGas||0);t.eq(r)||m.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}let r=[E(e.chainId||0,"chainId"),E(e.nonce||0,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",E(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,f.splitSignature)(t);r.push(E(e.recoveryParam,"recoveryParam")),r.push((0,f.stripZeros)(e.r)),r.push((0,f.stripZeros)(e.s))}return(0,f.hexConcat)(["0x02",l.encode(r)])}function R(e,t){let r=[E(e.chainId||0,"chainId"),E(e.nonce||0,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit||0,"gasLimit"),null!=e.to?(0,s.getAddress)(e.to):"0x",E(e.value||0,"value"),e.data||"0x",x(e.accessList||[])];if(t){let e=(0,f.splitSignature)(t);r.push(E(e.recoveryParam,"recoveryParam")),r.push((0,f.stripZeros)(e.r)),r.push((0,f.stripZeros)(e.s))}return(0,f.hexConcat)(["0x01",l.encode(r)])}function k(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&m.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.checkProperties)(e,w);let r=[];v.forEach(function(t){let i=e[t.name]||[],n={};t.numeric&&(n.hexPad="left"),i=(0,f.arrayify)((0,f.hexlify)(i,n)),t.length&&i.length!==t.length&&i.length>0&&m.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,i),t.maxLength&&(i=(0,f.stripZeros)(i)).length>t.maxLength&&m.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,i),r.push((0,f.hexlify)(i))});let i=0;if(null!=e.chainId?"number"!=typeof(i=e.chainId)&&m.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,f.isBytesLike)(t)&&t.v>28&&(i=Math.floor((t.v-35)/2)),0!==i&&(r.push((0,f.hexlify)(i)),r.push("0x"),r.push("0x")),!t)return l.encode(r);let n=(0,f.splitSignature)(t),a=27+n.recoveryParam;return 0!==i?(r.pop(),r.pop(),r.pop(),a+=2*i+8,n.v>28&&n.v!==a&&m.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):n.v!==a&&m.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,f.hexlify)(a)),r.push((0,f.stripZeros)((0,f.arrayify)(n.r))),r.push((0,f.stripZeros)((0,f.arrayify)(n.s))),l.encode(r)}(e,t);switch(e.type){case 1:return R(e,t);case 2:return I(e,t)}return m.throwError(`unsupported transaction type: ${e.type}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function T(e,t,r){try{let r=y(t[0]).toNumber();if(0!==r&&1!==r)throw Error("bad recid");e.v=r}catch(e){m.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,f.hexZeroPad)(t[1],32),e.s=(0,f.hexZeroPad)(t[2],32);try{let t=(0,c.keccak256)(r(e));e.from=M(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){let t=(0,f.arrayify)(e);if(t[0]>127)return function(e){let t=l.decode(e);9!==t.length&&6!==t.length&&m.throwArgumentError("invalid raw transaction","rawTransaction",e);let r={nonce:y(t[0]).toNumber(),gasPrice:y(t[1]),gasLimit:y(t[2]),to:g(t[3]),value:y(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=(0,o.BigNumber).from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,f.hexZeroPad)(t[7],32),r.s=(0,f.hexZeroPad)(t[8],32),(0,o.BigNumber).from(r.r).isZero()&&(0,o.BigNumber).from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let i=r.v-27,n=t.slice(0,6);0!==r.chainId&&(n.push((0,f.hexlify)(r.chainId)),n.push("0x"),n.push("0x"),i-=2*r.chainId+8);let a=(0,c.keccak256)(l.encode(n));try{r.from=M(a,{r:(0,f.hexlify)(r.r),s:(0,f.hexlify)(r.s),recoveryParam:i})}catch(e){}r.hash=(0,c.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){let t=l.decode(e.slice(1));8!==t.length&&11!==t.length&&m.throwArgumentError("invalid component count for transaction type: 1","payload",(0,f.hexlify)(e));let r={type:1,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),gasPrice:y(t[2]),gasLimit:y(t[3]),to:g(t[4]),value:y(t[5]),data:t[6],accessList:S(t[7])};return 8===t.length||(r.hash=(0,c.keccak256)(e),T(r,t.slice(8),R)),r}(t);case 2:return function(e){let t=l.decode(e.slice(1));9!==t.length&&12!==t.length&&m.throwArgumentError("invalid component count for transaction type: 2","payload",(0,f.hexlify)(e));let r=y(t[2]),i=y(t[3]),n={type:2,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:i,gasPrice:null,gasLimit:y(t[4]),to:g(t[5]),value:y(t[6]),data:t[7],accessList:S(t[8])};return 9===t.length||(n.hash=(0,c.keccak256)(e),T(n,t.slice(9),I)),n}(t)}return m.throwError(`unsupported transaction type: ${t[0]}`,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/logger":"6NWvR","./_version":"iFVyl","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a8JOx:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"SigningKey",()=>l),i.export(r,"recoverPublicKey",()=>h),i.export(r,"computePublicKey",()=>p);"use strict";var n=e("./elliptic"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/logger"),f=e("./_version");let d=new o.Logger(f.version),c=null;function u(){return c||(c=new n.EC("secp256k1")),c}class l{constructor(e){(0,s.defineReadOnly)(this,"curve","secp256k1"),(0,s.defineReadOnly)(this,"privateKey",(0,a.hexlify)(e)),32!==(0,a.hexDataLength)(this.privateKey)&&d.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");let t=u().keyFromPrivate((0,a.arrayify)(this.privateKey));(0,s.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,s.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,s.defineReadOnly)(this,"_isSigningKey",!0)}_addPoint(e){let t=u().keyFromPublic((0,a.arrayify)(this.publicKey)),r=u().keyFromPublic((0,a.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){let t=u().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=(0,a.arrayify)(e);32!==r.length&&d.throwArgumentError("bad digest length","digest",e);let i=t.sign(r,{canonical:!0});return(0,a.splitSignature)({recoveryParam:i.recoveryParam,r:(0,a.hexZeroPad)("0x"+i.r.toString(16),32),s:(0,a.hexZeroPad)("0x"+i.s.toString(16),32)})}computeSharedSecret(e){let t=u().keyFromPrivate((0,a.arrayify)(this.privateKey)),r=u().keyFromPublic((0,a.arrayify)(p(e)));return(0,a.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function h(e,t){let r=(0,a.splitSignature)(t),i={r:(0,a.arrayify)(r.r),s:(0,a.arrayify)(r.s)};return"0x"+u().recoverPubKey((0,a.arrayify)(e),i,r.recoveryParam).encode("hex",!1)}function p(e,t){let r=(0,a.arrayify)(e);if(32===r.length){let e=new l(r);return t?"0x"+u().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?(0,a.hexlify)(r):"0x"+u().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+u().keyFromPublic(r).getPublic(!0,"hex"):(0,a.hexlify)(r):d.throwArgumentError("invalid public or private key","key","[REDACTED]")}},{"./elliptic":"aoN5l","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"eg49z","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aoN5l:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"EC",()=>D);var n=e("bn.js"),a=i.interopDefault(n),s=e("hash.js"),o=i.interopDefault(s),f=arguments[3];function d(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e,null==t?r.path:t)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==f||"undefined"!=typeof self&&self;var c=u;function u(e,t){if(!e)throw Error(t||"Assertion failed")}"use strict";u.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var l=d(function(e,t){"use strict";function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",i=0;i>8,s=255&n;a?r.push(a,s):r.push(s)}return r},t.zero2=r,t.toHex=i,t.encode=function(e,t){return"hex"===t?i(e):e}}),h=d(function(e,t){"use strict";t.assert=c,t.toArray=l.toArray,t.zero2=l.zero2,t.toHex=l.toHex,t.encode=l.encode,t.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new a.default(e,"hex","le")}}),p=h.getNAF,b=h.getJSF,m=h.assert;function g(e,t){this.type=e,this.p=new a.default(t.p,16),this.red=t.prime?(0,a.default).red(t.prime):(0,a.default).mont(this.p),this.zero=new(0,a.default)(0).toRed(this.red),this.one=new(0,a.default)(1).toRed(this.red),this.two=new(0,a.default)(2).toRed(this.red),this.n=t.n&&new a.default(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function y(e,t){this.curve=e,this.type=t,this.precomputed=null}"use strict";g.prototype.point=function(){throw Error("Not implemented")},g.prototype.validate=function(){throw Error("Not implemented")},g.prototype._fixedNafMul=function(e,t){m(e.precomputed);var r,i,n=e._getDoubles(),a=p(t,1,this._bitLength),s=(1<=r;f--)i=(i<<1)+a[f];o.push(i)}for(var d=this.jpoint(null,null,null),c=this.jpoint(null,null,null),u=s;u>0;u--){for(r=0;r=0;o--){for(var f=0;o>=0&&0===a[o];o--)f++;if(o>=0&&f++,s=s.dblp(f),o<0)break;var d=a[o];m(0!==d),s="affine"===e.type?d>0?s.mixedAdd(n[d-1>>1]):s.mixedAdd(n[-d-1>>1].neg()):d>0?s.add(n[d-1>>1]):s.add(n[-d-1>>1].neg())}return"affine"===e.type?s.toP():s},g.prototype._wnafMulAdd=function(e,t,r,i,n){var a,s,o,f=this._wnafT1,d=this._wnafT2,c=this._wnafT3,u=0;for(a=0;a=1;a-=2){var h=a-1,m=a;if(1!==f[h]||1!==f[m]){c[h]=p(r[h],f[h],this._bitLength),c[m]=p(r[m],f[m],this._bitLength),u=Math.max(c[h].length,u),u=Math.max(c[m].length,u);continue}var g=[t[h],null,null,t[m]];0===t[h].y.cmp(t[m].y)?(g[1]=t[h].add(t[m]),g[2]=t[h].toJ().mixedAdd(t[m].neg())):0===t[h].y.cmp(t[m].y.redNeg())?(g[1]=t[h].toJ().mixedAdd(t[m]),g[2]=t[h].add(t[m].neg())):(g[1]=t[h].toJ().mixedAdd(t[m]),g[2]=t[h].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=b(r[h],r[m]);for(s=0,u=Math.max(v[0].length,u),c[h]=Array(u),c[m]=Array(u);s=0;a--){for(var A=0;a>=0;){var S=!0;for(s=0;s=0&&A++,M=M.dblp(A),a<0)break;for(s=0;s0?o=d[s][x-1>>1]:x<0&&(o=d[s][-x-1>>1].neg()),M="affine"===o.type?M.mixedAdd(o):M.add(o))}}for(a=0;a=Math.ceil((e.bitLength()+1)/t.step)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;nn[0].cmp(n[1])?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new a.default(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],w(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return i=e.basis?e.basis.map(function(e){return{a:new a.default(e.a,16),b:new a.default(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},_.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:(0,a.default).mont(e),r=new(0,a.default)(2).toRed(t).redInvm(),i=r.redNeg(),n=new(0,a.default)(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(n).fromRed(),i.redSub(n).fromRed()]},_.prototype._getEndoBasis=function(e){for(var t,r,i,n,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new a.default(1),b=new a.default(0),m=new a.default(0),g=new a.default(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),n=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(n.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),n=n.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:n},{a:s,b:o}]},_.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},_.prototype.pointFromX=function(e,t){(e=new a.default(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var n=i.fromRed().isOdd();return(t&&!n||!t&&n)&&(i=i.redNeg()),this.point(e,i)},_.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},_.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},M.prototype.isInfinity=function(){return this.inf},M.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},M.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},M.prototype.getX=function(){return this.x.fromRed()},M.prototype.getY=function(){return this.y.fromRed()},M.prototype.mul=function(e){return(e=new a.default(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)},M.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},M.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},M.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))},M.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},M.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},v(E,g.BasePoint),_.prototype.jpoint=function(e,t,r){return new E(this,e,t,r)},E.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},E.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},E.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(n),0===this.x.cmp(r))return!0}},E.prototype.inspect=function(){return this.isInfinity()?"":""},E.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var A=d(function(e,t){"use strict";t.base=g,t.short=_,t.mont=null,t.edwards=null}),S=d(function(e,t){"use strict";var r,i=h.assert;function n(e){"short"===e.type?this.curve=new A.short(e):"edwards"===e.type?this.curve=new A.edwards(e):this.curve=new A.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var i=new n(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:i}),i}})}t.PresetCurve=n,a("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:o.default.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("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:o.default.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("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:o.default.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("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:o.default.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"]}),a("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:o.default.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"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.default.sha256,gRed:!1,g:["9"]}),a("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:o.default.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(e){r=void 0}a("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:o.default.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})});function x(e){if(!(this instanceof x))return new x(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=l.toArray(e.entropy,e.entropyEnc||"hex"),r=l.toArray(e.nonce,e.nonceEnc||"hex"),i=l.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}"use strict";x.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},x.prototype.generate=function(e,t,r,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=l.toArray(r,i||"hex"),this._update(r));for(var n=[];n.length"};var k=h.assert;function T(e,t){if(e instanceof T)return e;this._importDER(e,t)||(k(e.r&&e.s,"Signature without r or s"),this.r=new a.default(e.r,16),this.s=new a.default(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function C(){this.place=0}function P(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function O(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)}"use strict";T.prototype._importDER=function(e,t){e=h.toArray(e,t);var r=new C;if(48!==e[r.place++])return!1;var i=P(e,r);if(!1===i||i+r.place!==e.length||2!==e[r.place++])return!1;var n=P(e,r);if(!1===n)return!1;var s=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=P(e,r);if(!1===o||e.length!==o+r.place)return!1;var f=e.slice(r.place,o+r.place);if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new a.default(s),this.s=new a.default(f),this.recoveryParam=null,!0},T.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=O(t),r=O(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];N(i,t.length),(i=i.concat(t)).push(2),N(i,r.length);var n=i.concat(r),a=[48];return N(a,n.length),a=a.concat(n),h.encode(a,e)};var j=function(){throw Error("unsupported")},B=h.assert;function L(e){if(!(this instanceof L))return new L(e);"string"==typeof e&&(B(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}L.prototype.keyPair=function(e){return new R(this,e)},L.prototype.keyFromPrivate=function(e,t){return R.fromPrivate(this,e,t)},L.prototype.keyFromPublic=function(e,t){return R.fromPublic(this,e,t)},L.prototype.genKeyPair=function(e){e||(e={});for(var t=new x({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||j(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),i=this.n.sub(new a.default(2));;){var n=new a.default(t.generate(r));if(!(n.cmp(i)>0))return n.iaddn(1),this.keyFromPrivate(n)}},L.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},L.prototype.sign=function(e,t,r,i){"object"==typeof r&&(i=r,r=null),i||(i={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new a.default(e,16));for(var n=this.n.byteLength(),s=t.getPrivate().toArray("be",n),o=e.toArray("be",n),f=new x({hash:this.hash,entropy:s,nonce:o,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new a.default(1)),c=0;;c++){var u=i.k?i.k(c):new a.default(f.generate(this.n.byteLength()));if(!(0>=(u=this._truncateToN(u,!0)).cmpn(1)||u.cmp(d)>=0)){var l=this.g.mul(u);if(!l.isInfinity()){var h=l.getX(),p=h.umod(this.n);if(0!==p.cmpn(0)){var b=u.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var m=(l.getY().isOdd()?1:0)|(0!==h.cmp(p)?2:0);return i.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),m^=1),new T({r:p,s:b,recoveryParam:m})}}}}}},L.prototype.verify=function(e,t,r,i){e=this._truncateToN(new a.default(e,16)),r=this.keyFromPublic(r,i);var n,s=(t=new T(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),c=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(n=this.g.jmulAdd(d,r.getPublic(),c)).isInfinity()&&n.eqXToP(s):!(n=this.g.mulAdd(d,r.getPublic(),c)).isInfinity()&&0===n.getX().umod(this.n).cmp(s)},L.prototype.recoverPubKey=function(e,t,r,i){B((3&r)===r,"The recovery param is more than two bits"),t=new T(t,i);var n=this.n,s=new a.default(e),o=t.r,f=t.s,d=1&r,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw Error("Unable to find sencond key candinate");o=c?this.curve.pointFromX(o.add(this.curve.n),d):this.curve.pointFromX(o,d);var u=t.r.invm(n),l=n.sub(s).mul(u).umod(n),h=f.mul(u).umod(n);return this.g.mulAdd(l,o,h)},L.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new T(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")};var D=d(function(e,t){"use strict";t.version="6.5.4",t.utils=h,t.rand=function(){throw Error("unsupported")},t.curve=A,t.curves=S,t.ec=L,t.eddsa=null}).ec},{"bn.js":"lXPno","hash.js":"2Tlxk","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2Tlxk":[function(e,t,r){r.utils=e("38593959f18bd562"),r.common=e("31a457752237e8ad"),r.sha=e("3e37816d2a2fd68d"),r.ripemd=e("ce5a13b5bd10f171"),r.hmac=e("c32fbac97a361580"),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},{"38593959f18bd562":"aKzpJ","31a457752237e8ad":"gjeCy","3e37816d2a2fd68d":"gVBgh",ce5a13b5bd10f171:"1GX8J",c32fbac97a361580:"3Q7qa"}],aKzpJ:[function(e,t,r){"use strict";var i=e("6002b0feade022a4"),n=e("d4826c9d0ff1b1f");function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(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=n,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),n=0;n>6|192:((a=e,s=n,(64512&a.charCodeAt(s))!=55296||s<0||s+1>=a.length?1:(64512&a.charCodeAt(s+1))!=56320)?r[i++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++n)),r[i++]=o>>18|240,r[i++]=o>>12&63|128),r[i++]=o>>6&63|128),r[i++]=63&o|128)}}else for(n=0;n>>0;return o},r.split32=function(e,t){for(var r=Array(4*e.length),i=0,n=0;i>>24,r[n+1]=a>>>16&255,r[n+2]=a>>>8&255,r[n+3]=255&a):(r[n+3]=a>>>24,r[n+2]=a>>>16&255,r[n+1]=a>>>8&255,r[n]=255&a)}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,i){return e+t+r+i>>>0},r.sum32_5=function(e,t,r,i,n){return e+t+r+i+n>>>0},r.sum64=function(e,t,r,i){var n=e[t],a=i+e[t+1]>>>0;e[t]=(a>>0,e[t+1]=a},r.sum64_hi=function(e,t,r,i){return(t+i>>>0>>0},r.sum64_lo=function(e,t,r,i){return t+i>>>0},r.sum64_4_hi=function(e,t,r,i,n,a,s,o){var f,d=t;return e+r+n+s+(0+((d=d+i>>>0)>>0)>>0)>>0},r.sum64_4_lo=function(e,t,r,i,n,a,s,o){return t+i+a+o>>>0},r.sum64_5_hi=function(e,t,r,i,n,a,s,o,f,d){var c,u=t;return e+r+n+s+f+(0+((u=u+i>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,i,n,a,s,o,f,d){return t+i+a+o+d>>>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}},{"6002b0feade022a4":"h59lk",d4826c9d0ff1b1f:"cJ2FP"}],h59lk:[function(e,t,r){function i(e,t){if(!e)throw Error(t||"Assertion failed")}t.exports=i,i.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)}},{}],cJ2FP:[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}}},{}],gjeCy:[function(e,t,r){"use strict";var i=e("e9291abdfb47ee4f"),n=e("ea8841b701712638");function a(){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=a,a.prototype.update=function(e,t){if(e=i.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=i.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,i[n++]=e>>>16&255,i[n++]=e>>>8&255,i[n++]=255&e}else for(a=8,i[n++]=255&e,i[n++]=e>>>8&255,i[n++]=e>>>16&255,i[n++]=e>>>24&255,i[n++]=0,i[n++]=0,i[n++]=0,i[n++]=0;a>>3},r.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},{f0fb61f828bacd0f:"aKzpJ"}],d8IVH:[function(e,t,r){"use strict";var i=e("fe5acd040463c159"),n=e("fa3503eda3738d05");function a(){if(!(this instanceof a))return new a;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(a,n),t.exports=a,a.blockSize=512,a.outSize=224,a.hmacStrength=192,a.padLength=64,a.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},{fe5acd040463c159:"aKzpJ",fa3503eda3738d05:"27b3b"}],"27b3b":[function(e,t,r){"use strict";var i=e("32ad3e510bd41f2a"),n=e("469ad88ad505772a"),a=e("fffa7d1ddf1f0b43"),s=e("126369f57b5225ed"),o=i.sum32,f=i.sum32_4,d=i.sum32_5,c=a.ch32,u=a.maj32,l=a.s0_256,h=a.s1_256,p=a.g0_256,b=a.g1_256,m=n.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function y(){if(!(this instanceof y))return new y;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=Array(64)}i.inherits(y,m),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,i=0;i<16;i++)r[i]=e[t+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),n(e.length<=this.blockSize);for(var t=e.length;tn);let n="signing-key/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iFVyl:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="transactions/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],liyH3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="contracts/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],euBMB:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Wallet",()=>w),i.export(r,"verifyMessage",()=>_),i.export(r,"verifyTypedData",()=>M);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/abstract-provider"),s=e("@ethersproject/abstract-signer"),o=e("@ethersproject/bytes"),f=e("@ethersproject/hash"),d=e("@ethersproject/hdnode"),c=e("@ethersproject/keccak256"),u=e("@ethersproject/properties"),l=e("@ethersproject/random"),h=e("@ethersproject/signing-key"),p=e("@ethersproject/json-wallets"),b=e("@ethersproject/transactions"),m=e("@ethersproject/logger"),g=e("./_version"),y=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let v=new m.Logger(g.version);class w extends s.Signer{constructor(e,t){var r;if(super(),null!=(r=e)&&(0,o.isHexString)(r.privateKey,32)&&null!=r.address){let t=new h.SigningKey(e.privateKey);if((0,u.defineReadOnly)(this,"_signingKey",()=>t),(0,u.defineReadOnly)(this,"address",(0,b.computeAddress)(this.publicKey)),this.address!==(0,n.getAddress)(e.address)&&v.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){let t=e.mnemonic;return t&&t.phrase}(e)){let t=e.mnemonic;(0,u.defineReadOnly)(this,"_mnemonic",()=>({phrase:t.phrase,path:t.path||d.defaultPath,locale:t.locale||"en"}));let r=this.mnemonic,i=(0,d.HDNode).fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,b.computeAddress)(i.privateKey)!==this.address&&v.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,u.defineReadOnly)(this,"_mnemonic",()=>null)}else{if((0,h.SigningKey).isSigningKey(e))"secp256k1"!==e.curve&&v.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,u.defineReadOnly)(this,"_signingKey",()=>e);else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);let t=new h.SigningKey(e);(0,u.defineReadOnly)(this,"_signingKey",()=>t)}(0,u.defineReadOnly)(this,"_mnemonic",()=>null),(0,u.defineReadOnly)(this,"address",(0,b.computeAddress)(this.publicKey))}t&&!(0,a.Provider).isProvider(t)&&v.throwArgumentError("invalid provider","provider",t),(0,u.defineReadOnly)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new w(this,e)}signTransaction(e){return(0,u.resolveProperties)(e).then(t=>{null!=t.from&&((0,n.getAddress)(t.from)!==this.address&&v.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);let r=this._signingKey().signDigest((0,c.keccak256)((0,b.serialize)(t)));return(0,b.serialize)(t,r)})}signMessage(e){return y(this,void 0,void 0,function*(){return(0,o.joinSignature)(this._signingKey().signDigest((0,f.hashMessage)(e)))})}_signTypedData(e,t,r){return y(this,void 0,void 0,function*(){let i=yield(0,f._TypedDataEncoder).resolveNames(e,t,r,e=>(null==this.provider&&v.throwError("cannot resolve ENS names without a provider",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e)));return(0,o.joinSignature)(this._signingKey().signDigest((0,f._TypedDataEncoder).hash(i.domain,t,i.value)))})}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw Error("invalid callback");return t||(t={}),(0,p.encryptKeystore)(this,e,t,r)}static createRandom(e){let t=(0,l.randomBytes)(16);e||(e={}),e.extraEntropy&&(t=(0,o.arrayify)((0,o.hexDataSlice)((0,c.keccak256)((0,o.concat)([t,e.extraEntropy])),0,16)));let r=(0,d.entropyToMnemonic)(t,e.locale);return w.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return(0,p.decryptJsonWallet)(e,t,r).then(e=>new w(e))}static fromEncryptedJsonSync(e,t){return new w((0,p.decryptJsonWalletSync)(e,t))}static fromMnemonic(e,t,r){return t||(t=d.defaultPath),new w((0,d.HDNode).fromMnemonic(e,null,r).derivePath(t))}}function _(e,t){return(0,b.recoverAddress)((0,f.hashMessage)(e),t)}function M(e,t,r,i){return(0,b.recoverAddress)((0,f._TypedDataEncoder).hash(e,t,r),i)}},{"@ethersproject/address":"7BZuS","@ethersproject/abstract-provider":"imf57","@ethersproject/abstract-signer":"j6EbC","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/signing-key":"a8JOx","@ethersproject/json-wallets":"7BEU7","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"2nczW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2zCqF":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"defaultPath",()=>A),i.export(r,"HDNode",()=>S),i.export(r,"mnemonicToSeed",()=>x),i.export(r,"mnemonicToEntropy",()=>I),i.export(r,"entropyToMnemonic",()=>R),i.export(r,"isValidMnemonic",()=>k),i.export(r,"getAccountPath",()=>T);"use strict";var n=e("@ethersproject/basex"),a=e("@ethersproject/bytes"),s=e("@ethersproject/bignumber"),o=e("@ethersproject/strings"),f=e("@ethersproject/pbkdf2"),d=e("@ethersproject/properties"),c=e("@ethersproject/signing-key"),u=e("@ethersproject/sha2"),l=e("@ethersproject/transactions"),h=e("@ethersproject/wordlists"),p=e("@ethersproject/logger"),b=e("./_version");let m=new p.Logger(b.version),g=(0,s.BigNumber).from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),y=(0,o.toUtf8Bytes)("Bitcoin seed");function v(e){return(1<=256)throw Error("Depth too large!");return _((0,a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,a.hexlify)(this.depth),this.parentFingerprint,(0,a.hexZeroPad)((0,a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,a.concat)(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new S(E,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));let r=new Uint8Array(37);if(2147483648&e){if(!this.privateKey)throw Error("cannot derive child of neutered node");r.set((0,a.arrayify)(this.privateKey),1),t&&(t+="'")}else r.set((0,a.arrayify)(this.publicKey));for(let t=24;t>=0;t-=8)r[33+(t>>3)]=e>>24-t&255;let i=(0,a.arrayify)((0,u.computeHmac)(u.SupportedAlgorithm.sha512,this.chainCode,r)),n=i.slice(0,32),o=i.slice(32),f=null,d=null;if(this.privateKey)f=w((0,s.BigNumber).from(n).add(this.privateKey).mod(g));else{let e=new c.SigningKey((0,a.hexlify)(n));d=e._addPoint(this.publicKey)}let l=t,h=this.mnemonic;return h&&(l=Object.freeze({phrase:h.phrase,path:t,locale:h.locale||"en"})),new S(E,f,d,this.fingerprint,w(o),e,this.depth+1,l)}derivePath(e){let t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let e=0;e=2147483648)throw Error("invalid path index - "+i);r=r._derive(2147483648+e)}else if(i.match(/^[0-9]+$/)){let e=parseInt(i);if(e>=2147483648)throw Error("invalid path index - "+i);r=r._derive(e)}else throw Error("invalid path component - "+i)}return r}static _fromSeed(e,t){let r=(0,a.arrayify)(e);if(r.length<16||r.length>64)throw Error("invalid seed");let i=(0,a.arrayify)((0,u.computeHmac)(u.SupportedAlgorithm.sha512,y,r));return new S(E,w(i.slice(0,32)),null,"0x00000000",w(i.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=R(I(e,r=M(r)),r),S._fromSeed(x(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return S._fromSeed(e,null)}static fromExtendedKey(e){let t=(0,n.Base58).decode(e);(82!==t.length||_(t.slice(0,78))!==e)&&m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");let r=t[4],i=(0,a.hexlify)(t.slice(5,9)),s=parseInt((0,a.hexlify)(t.slice(9,13)).substring(2),16),o=(0,a.hexlify)(t.slice(13,45)),f=t.slice(45,78);switch((0,a.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new S(E,null,(0,a.hexlify)(f),i,o,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==f[0])break;return new S(E,(0,a.hexlify)(f.slice(1)),null,i,o,s,r,null)}return m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function x(e,t){t||(t="");let r=(0,o.toUtf8Bytes)("mnemonic"+t,o.UnicodeNormalizationForm.NFKD);return(0,f.pbkdf2)((0,o.toUtf8Bytes)(e,o.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}function I(e,t){t=M(t),m.checkNormalize();let r=t.split(e);if(r.length%3!=0)throw Error("invalid mnemonic");let i=(0,a.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),n=0;for(let e=0;e>3]|=1<<7-n%8),n++}let s=32*r.length/3,o=r.length/3,f=v(o),d=(0,a.arrayify)((0,u.sha256)(i.slice(0,s/8)))[0]&f;if(d!==(i[i.length-1]&f))throw Error("invalid checksum");return(0,a.hexlify)(i.slice(0,s/8))}function R(e,t){if(t=M(t),(e=(0,a.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw Error("invalid entropy");let r=[0],i=11;for(let t=0;t8?(r[r.length-1]<<=8,r[r.length-1]|=e[t],i-=8):(r[r.length-1]<<=i,r[r.length-1]|=e[t]>>8-i,r.push(e[t]&(1<<8-i)-1),i+=3);let n=e.length/4,s=(0,a.arrayify)((0,u.sha256)(e))[0]&v(n);return r[r.length-1]<<=n,r[r.length-1]|=s>>8-n,t.join(r.map(e=>t.getWord(e)))}function k(e,t){try{return I(e,t),!0}catch(e){}return!1}function T(e){return("number"!=typeof e||e<0||e>=2147483648||e%1)&&m.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}},{"@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/bignumber":"hIcBX","@ethersproject/strings":"edSy2","@ethersproject/pbkdf2":"53AfG","@ethersproject/properties":"dmdV5","@ethersproject/signing-key":"a8JOx","@ethersproject/sha2":"bznen","@ethersproject/transactions":"ctBdV","@ethersproject/wordlists":"a2daz","@ethersproject/logger":"6NWvR","./_version":"iqxFg","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],Pygpe:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"BaseX",()=>s),i.export(r,"Base32",()=>o),i.export(r,"Base58",()=>f);var n=e("@ethersproject/bytes"),a=e("@ethersproject/properties");class s{constructor(e){(0,a.defineReadOnly)(this,"alphabet",e),(0,a.defineReadOnly)(this,"base",e.length),(0,a.defineReadOnly)(this,"_alphabetMap",{}),(0,a.defineReadOnly)(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(i%this.base),i=i/this.base|0}let i="";for(let e=0;0===t[e]&&e=0;--e)i+=this.alphabet[r[e]];return i}decode(e){if("string"!=typeof e)throw TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;n>0;)t.push(255&n),n>>=8}for(let r=0;e[r]===this._leader&&rn.pbkdf2);var n=e("./pbkdf2")},{"./pbkdf2":"iSJTG","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iSJTG:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"pbkdf2",()=>s);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/sha2");function s(e,t,r,i,s){let o,f,d;e=(0,n.arrayify)(e),t=(0,n.arrayify)(t);let c=1,u=new Uint8Array(i),l=new Uint8Array(t.length+4);l.set(t);for(let h=1;h<=c;h++){l[t.length]=h>>24&255,l[t.length+1]=h>>16&255,l[t.length+2]=h>>8&255,l[t.length+3]=255&h;let p=(0,n.arrayify)((0,a.computeHmac)(s,e,l));o||(o=p.length,d=new Uint8Array(o),c=Math.ceil(i/o),f=i-(c-1)*o),d.set(p);for(let t=1;tn.computeHmac),i.export(r,"ripemd160",()=>n.ripemd160),i.export(r,"sha256",()=>n.sha256),i.export(r,"sha512",()=>n.sha512),i.export(r,"SupportedAlgorithm",()=>a.SupportedAlgorithm);var n=e("./sha2"),a=e("./types")},{"./sha2":"fjz4b","./types":"cObmA","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fjz4b:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"ripemd160",()=>u),i.export(r,"sha256",()=>l),i.export(r,"sha512",()=>h),i.export(r,"computeHmac",()=>p);"use strict";var n=e("hash.js"),a=i.interopDefault(n),s=e("@ethersproject/bytes"),o=e("./types"),f=e("@ethersproject/logger"),d=e("./_version");let c=new f.Logger(d.version);function u(e){return"0x"+(0,a.default).ripemd160().update((0,s.arrayify)(e)).digest("hex")}function l(e){return"0x"+(0,a.default).sha256().update((0,s.arrayify)(e)).digest("hex")}function h(e){return"0x"+(0,a.default).sha512().update((0,s.arrayify)(e)).digest("hex")}function p(e,t,r){return o.SupportedAlgorithm[e]||c.throwError("unsupported algorithm "+e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+(0,a.default).hmac(a.default[e],(0,s.arrayify)(t)).update((0,s.arrayify)(r)).digest("hex")}},{"hash.js":"2Tlxk","@ethersproject/bytes":"19SwW","./types":"cObmA","@ethersproject/logger":"6NWvR","./_version":"3pnD5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],cObmA:[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"SupportedAlgorithm",()=>n),(i=n||(n={})).sha256="sha256",i.sha512="sha512"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3pnD5":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="sha2/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],a2daz:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"logger",()=>n.logger),i.export(r,"Wordlist",()=>n.Wordlist),i.export(r,"wordlists",()=>a.wordlists);"use strict";var n=e("./wordlist"),a=e("./wordlists")},{"./wordlist":"kQd0Q","./wordlists":"bk3n1","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kQd0Q:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"logger",()=>f),i.export(r,"Wordlist",()=>d);"use strict";var n=e("@ethersproject/hash"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),o=e("./_version");let f=new s.Logger(o.version);class d{constructor(e){f.checkAbstract(new.target,d),(0,a.defineReadOnly)(this,"locale",e)}split(e){return e.toLowerCase().split(/ +/g)}join(e){return e.join(" ")}static check(e){let t=[];for(let r=0;r<2048;r++){let i=e.getWord(r);if(r!==e.getWordIndex(i))return"0x";t.push(i)}return(0,n.id)(t.join("\n")+"\n")}static register(e,t){t||(t=e.locale)}}},{"@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"V1tr9","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],V1tr9:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="wordlists/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bk3n1:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"wordlists",()=>a);var n=e("./lang-en");"use strict";let a={en:n.langEn}},{"./lang-en":"3iB3I","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3iB3I":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"langEn",()=>f);var n=e("./wordlist");"use strict";let a=null;function s(e){if(null==a&&(a="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==(0,n.Wordlist).check(e)))throw a=null,Error("BIP39 Wordlist for en (English) FAILED")}class o extends n.Wordlist{constructor(){super("en")}getWord(e){return s(this),a[e]}getWordIndex(e){return s(this),a.indexOf(e)}}let f=new o;(0,n.Wordlist).register(f)},{"./wordlist":"kQd0Q","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],iqxFg:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="hdnode/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5x4el":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"randomBytes",()=>n.randomBytes),i.export(r,"shuffled",()=>a.shuffled);"use strict";var n=e("./random"),a=e("./shuffle")},{"./random":"7eRII","./shuffle":"9bV5K","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7eRII":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"randomBytes",()=>u);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),o=arguments[3];let f=new a.Logger(s.version),d=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==o)return o;throw Error("unable to locate global object")}(),c=d.crypto||d.msCrypto;function u(e){(e<=0||e>1024||e%1||e!=e)&&f.throwArgumentError("invalid length","length",e);let t=new Uint8Array(e);return c.getRandomValues(t),(0,n.arrayify)(t)}c&&c.getRandomValues||(f.warn("WARNING: Missing strong random number source"),c={getRandomValues:function(e){return f.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},{"@ethersproject/bytes":"19SwW","@ethersproject/logger":"6NWvR","./_version":"4vVYi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4vVYi":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="random/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"9bV5K":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";function n(e){e=e.slice();for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}return e}i.defineInteropFlag(r),i.export(r,"shuffled",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7BEU7":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"decryptCrowdsale",()=>n.decrypt),i.export(r,"decryptKeystore",()=>s.decrypt),i.export(r,"decryptKeystoreSync",()=>s.decryptSync),i.export(r,"encryptKeystore",()=>s.encrypt),i.export(r,"isCrowdsaleWallet",()=>a.isCrowdsaleWallet),i.export(r,"isKeystoreWallet",()=>a.isKeystoreWallet),i.export(r,"getJsonWalletAddress",()=>a.getJsonWalletAddress),i.export(r,"decryptJsonWallet",()=>o),i.export(r,"decryptJsonWalletSync",()=>f);"use strict";var n=e("./crowdsale"),a=e("./inspect"),s=e("./keystore");function o(e,t,r){if((0,a.isCrowdsaleWallet)(e)){r&&r(0);let i=(0,n.decrypt)(e,t);return r&&r(1),Promise.resolve(i)}return(0,a.isKeystoreWallet)(e)?(0,s.decrypt)(e,t,r):Promise.reject(Error("invalid JSON wallet"))}function f(e,t){if((0,a.isCrowdsaleWallet)(e))return(0,n.decrypt)(e,t);if((0,a.isKeystoreWallet)(e))return(0,s.decryptSync)(e,t);throw Error("invalid JSON wallet")}},{"./crowdsale":"jecLC","./inspect":"f0RP9","./keystore":"lvmQF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jecLC:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"CrowdsaleAccount",()=>m),i.export(r,"decrypt",()=>g);"use strict";var n=e("aes-js"),a=i.interopDefault(n),s=e("@ethersproject/address"),o=e("@ethersproject/bytes"),f=e("@ethersproject/keccak256"),d=e("@ethersproject/pbkdf2"),c=e("@ethersproject/strings"),u=e("@ethersproject/properties"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./utils");let b=new l.Logger(h.version);class m extends u.Description{isCrowdsaleAccount(e){return!!(e&&e._isCrowdsaleAccount)}}function g(e,t){let r=JSON.parse(e);t=(0,p.getPassword)(t);let i=(0,s.getAddress)((0,p.searchPath)(r,"ethaddr")),n=(0,p.looseArrayify)((0,p.searchPath)(r,"encseed"));n&&n.length%16==0||b.throwArgumentError("invalid encseed","json",e);let u=(0,o.arrayify)((0,d.pbkdf2)(t,t,2e3,32,"sha256")).slice(0,16),l=n.slice(0,16),h=n.slice(16),g=new a.default.ModeOfOperation.cbc(u,l),y=(0,a.default).padding.pkcs7.strip((0,o.arrayify)(g.decrypt(h))),v="";for(let e=0;e255)return!1;return!0}function n(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&i(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,i,n){(null!=i||null!=n)&&(e=e.slice?e.slice(i,n):Array.prototype.slice.call(e,i,n)),t.set(e,r)}var o,f=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&i])}return t.join("")}}),d={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],u=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=n[t],this._Kd[e-a][t%4]=n[t];for(var a,s,o=0,f=i;f>16&255]<<24^u[s>>8&255]<<16^u[255&s]<<8^u[s>>24&255]^c[o]<<24,o+=1,8!=i)for(var t=1;t>8&255]<<8^u[s>>16&255]<<16^u[s>>24&255]<<24;for(var t=i/2+1;t>2,h=f%4,this._Ke[l][h]=n[t],this._Kd[e-l][h]=n[t++],f++}for(var l=1;l>24&255]^M[s>>16&255]^E[s>>8&255]^A[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Ke[0][n];for(var s=1;s>24&255]^p[i[(n+1)%4]>>16&255]^b[i[(n+2)%4]>>8&255]^m[255&i[(n+3)%4]]^this._Ke[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Ke[t][n],f[4*n]=(u[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(u[i[(n+1)%4]>>16&255]^o>>16)&255,f[4*n+2]=(u[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(u[255&i[(n+3)%4]]^o)&255;return f},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Kd[0][n];for(var s=1;s>24&255]^y[i[(n+3)%4]>>16&255]^v[i[(n+2)%4]>>8&255]^w[255&i[(n+1)%4]]^this._Kd[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Kd[t][n],f[4*n]=(l[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(l[i[(n+3)%4]>>16&255]^o>>16)&255,f[4*n+2]=(l[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(l[255&i[(n+1)%4]]^o)&255;return f};var I=function(e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};I.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),i=0;i=0;--t)this._counter[t]=e%256,e>>=8},C.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r191&&i<224?(t.push(String.fromCharCode((31&i)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&i)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=n(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var i=e.length;i16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,i=0;in);let n="json-wallets/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fbe9v:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"looseArrayify",()=>s),i.export(r,"zpad",()=>o),i.export(r,"getPassword",()=>f),i.export(r,"searchPath",()=>d),i.export(r,"uuidV4",()=>c);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/strings");function s(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,n.arrayify)(e)}function o(e,t){for(e=String(e);e.lengtha),i.export(r,"isKeystoreWallet",()=>s),i.export(r,"getJsonWalletAddress",()=>o);var n=e("@ethersproject/address");"use strict";function a(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return t.encseed&&t.ethaddr}function s(e){let t=null;try{t=JSON.parse(e)}catch(e){return!1}return!!t.version&&parseInt(t.version)===t.version&&3===parseInt(t.version)}function o(e){if(a(e))try{return(0,n.getAddress)(JSON.parse(e).ethaddr)}catch(e){return null}if(s(e))try{return(0,n.getAddress)(JSON.parse(e).address)}catch(e){}return null}},{"@ethersproject/address":"7BZuS","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lvmQF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"KeystoreAccount",()=>_),i.export(r,"decryptSync",()=>x),i.export(r,"decrypt",()=>I),i.export(r,"encrypt",()=>R);"use strict";var n=e("aes-js"),a=i.interopDefault(n),s=e("scrypt-js"),o=i.interopDefault(s),f=e("@ethersproject/address"),d=e("@ethersproject/bytes"),c=e("@ethersproject/hdnode"),u=e("@ethersproject/keccak256"),l=e("@ethersproject/pbkdf2"),h=e("@ethersproject/random"),p=e("@ethersproject/properties"),b=e("@ethersproject/transactions"),m=e("./utils"),g=e("@ethersproject/logger"),y=e("./_version");let v=new g.Logger(y.version);function w(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}class _ extends p.Description{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function M(e,t){let r=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/ciphertext")),i=(0,d.hexlify)((0,u.keccak256)((0,d.concat)([t.slice(16,32),r]))).substring(2);if(i!==(0,m.searchPath)(e,"crypto/mac").toLowerCase())throw Error("invalid password");let n=function(e,t,r){let i=(0,m.searchPath)(e,"crypto/cipher");if("aes-128-ctr"===i){let i=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/cipherparams/iv")),n=new a.default.Counter(i),s=new a.default.ModeOfOperation.ctr(t,n);return(0,d.arrayify)(s.decrypt(r))}return null}(e,t.slice(0,16),r);n||v.throwError("unsupported cipher",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});let s=t.slice(32,64),o=(0,b.computeAddress)(n);if(e.address){let t=e.address.toLowerCase();if("0x"!==t.substring(0,2)&&(t="0x"+t),(0,f.getAddress)(t)!==o)throw Error("address mismatch")}let l={_isKeystoreAccount:!0,address:o,privateKey:(0,d.hexlify)(n)};if("0.1"===(0,m.searchPath)(e,"x-ethers/version")){let t=(0,m.looseArrayify)((0,m.searchPath)(e,"x-ethers/mnemonicCiphertext")),r=(0,m.looseArrayify)((0,m.searchPath)(e,"x-ethers/mnemonicCounter")),i=new a.default.Counter(r),n=new a.default.ModeOfOperation.ctr(s,i),o=(0,m.searchPath)(e,"x-ethers/path")||c.defaultPath,f=(0,m.searchPath)(e,"x-ethers/locale")||"en",u=(0,d.arrayify)(n.decrypt(t));try{let e=(0,c.entropyToMnemonic)(u,f),t=(0,c.HDNode).fromMnemonic(e,null,f).derivePath(o);if(t.privateKey!=l.privateKey)throw Error("mnemonic mismatch");l.mnemonic=t.mnemonic}catch(e){if(e.code!==g.Logger.errors.INVALID_ARGUMENT||"wordlist"!==e.argument)throw e}}return new _(l)}function E(e,t,r,i,n){return(0,d.arrayify)((0,l.pbkdf2)(e,t,r,i,n))}function A(e,t,r,i,n){return Promise.resolve(E(e,t,r,i,n))}function S(e,t,r,i,n){let a=(0,m.getPassword)(t),s=(0,m.searchPath)(e,"crypto/kdf");if(s&&"string"==typeof s){let t=function(e,t){return v.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===s.toLowerCase()){let r=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/kdfparams/salt")),o=parseInt((0,m.searchPath)(e,"crypto/kdfparams/n")),f=parseInt((0,m.searchPath)(e,"crypto/kdfparams/r")),d=parseInt((0,m.searchPath)(e,"crypto/kdfparams/p"));o&&f&&d||t("kdf",s),(o&o-1)!=0&&t("N",o);let c=parseInt((0,m.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==c&&t("dklen",c),i(a,r,o,f,d,64,n)}if("pbkdf2"===s.toLowerCase()){let i=(0,m.looseArrayify)((0,m.searchPath)(e,"crypto/kdfparams/salt")),n=null,s=(0,m.searchPath)(e,"crypto/kdfparams/prf");"hmac-sha256"===s?n="sha256":"hmac-sha512"===s?n="sha512":t("prf",s);let o=parseInt((0,m.searchPath)(e,"crypto/kdfparams/c")),f=parseInt((0,m.searchPath)(e,"crypto/kdfparams/dklen"));return 32!==f&&t("dklen",f),r(a,i,o,f,n)}}return v.throwArgumentError("unsupported key-derivation function","kdf",s)}function x(e,t){let r=JSON.parse(e),i=S(r,t,E,o.default.syncScrypt);return M(r,i)}function I(e,t,r){var i,n,a,s;return i=this,n=void 0,a=void 0,s=function*(){let i=JSON.parse(e),n=yield S(i,t,A,o.default.scrypt,r);return M(i,n)},new(a||(a=Promise))(function(e,t){function r(e){try{f(s.next(e))}catch(e){t(e)}}function o(e){try{f(s.throw(e))}catch(e){t(e)}}function f(t){var i;t.done?e(t.value):((i=t.value)instanceof a?i:new a(function(e){e(i)})).then(r,o)}f((s=s.apply(i,n||[])).next())})}function R(e,t,r,i){try{if((0,f.getAddress)(e.address)!==(0,b.computeAddress)(e.privateKey))throw Error("address/privateKey mismatch");if(w(e)){let t=e.mnemonic,r=(0,c.HDNode).fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||c.defaultPath);if(r.privateKey!=e.privateKey)throw Error("mnemonic mismatch")}}catch(e){return Promise.reject(e)}"function"!=typeof r||i||(i=r,r={}),r||(r={});let n=(0,d.arrayify)(e.privateKey),s=(0,m.getPassword)(t),l=null,p=null,g=null;if(w(e)){let t=e.mnemonic;l=(0,d.arrayify)((0,c.mnemonicToEntropy)(t.phrase,t.locale||"en")),p=t.path||c.defaultPath,g=t.locale||"en"}let y=r.client;y||(y="ethers.js");let v=null;v=r.salt?(0,d.arrayify)(r.salt):(0,h.randomBytes)(32);let _=null;if(r.iv){if(16!==(_=(0,d.arrayify)(r.iv)).length)throw Error("invalid iv")}else _=(0,h.randomBytes)(16);let M=null;if(r.uuid){if(16!==(M=(0,d.arrayify)(r.uuid)).length)throw Error("invalid uuid")}else M=(0,h.randomBytes)(16);let E=131072,A=8,S=1;return r.scrypt&&(r.scrypt.N&&(E=r.scrypt.N),r.scrypt.r&&(A=r.scrypt.r),r.scrypt.p&&(S=r.scrypt.p)),(0,o.default).scrypt(s,v,E,A,S,64,i).then(t=>{t=(0,d.arrayify)(t);let r=t.slice(0,16),i=t.slice(16,32),s=t.slice(32,64),o=new a.default.Counter(_),f=new a.default.ModeOfOperation.ctr(r,o),c=(0,d.arrayify)(f.encrypt(n)),b=(0,u.keccak256)((0,d.concat)([i,c])),w={address:e.address.substring(2).toLowerCase(),id:(0,m.uuidV4)(M),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,d.hexlify)(_).substring(2)},ciphertext:(0,d.hexlify)(c).substring(2),kdf:"scrypt",kdfparams:{salt:(0,d.hexlify)(v).substring(2),n:E,dklen:32,p:S,r:A},mac:b.substring(2)}};if(l){let e=(0,h.randomBytes)(16),t=new a.default.Counter(e),r=new a.default.ModeOfOperation.ctr(s,t),i=(0,d.arrayify)(r.encrypt(l)),n=new Date,o=n.getUTCFullYear()+"-"+(0,m.zpad)(n.getUTCMonth()+1,2)+"-"+(0,m.zpad)(n.getUTCDate(),2)+"T"+(0,m.zpad)(n.getUTCHours(),2)+"-"+(0,m.zpad)(n.getUTCMinutes(),2)+"-"+(0,m.zpad)(n.getUTCSeconds(),2)+".0Z";w["x-ethers"]={client:y,gethFilename:"UTC--"+o+"--"+w.address,mnemonicCounter:(0,d.hexlify)(e).substring(2),mnemonicCiphertext:(0,d.hexlify)(i).substring(2),path:p,locale:g,version:"0.1"}}return JSON.stringify(w)})}},{"aes-js":"3oDF6","scrypt-js":"81Ky2","@ethersproject/address":"7BZuS","@ethersproject/bytes":"19SwW","@ethersproject/hdnode":"2zCqF","@ethersproject/keccak256":"eWtzg","@ethersproject/pbkdf2":"53AfG","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","./utils":"fbe9v","@ethersproject/logger":"6NWvR","./_version":"giv5t","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"81Ky2":[function(e,t,r){"use strict";!function(e){function i(e){let t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=1779033703,i=3144134277,n=1013904242,a=2773480762,s=1359893119,o=2600822924,f=528734635,d=1541459225,c=new Uint32Array(64);function u(e){let u=0,l=e.length;for(;l>=64;){let h=r,p=i,b=n,m=a,g=s,y=o,v=f,w=d,_,M,E,A,S;for(M=0;M<16;M++)E=u+4*M,c[M]=(255&e[E])<<24|(255&e[E+1])<<16|(255&e[E+2])<<8|255&e[E+3];for(M=16;M<64;M++)A=((_=c[M-2])>>>17|_<<15)^(_>>>19|_<<13)^_>>>10,S=((_=c[M-15])>>>7|_<<25)^(_>>>18|_<<14)^_>>>3,c[M]=(A+c[M-7]|0)+(S+c[M-16]|0)|0;for(M=0;M<64;M++)A=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&y^~g&v)|0)+(w+(t[M]+c[M]|0)|0)|0,S=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&p^h&b^p&b)|0,w=v,v=y,y=g,g=m+A|0,m=b,b=p,p=h,h=A+S|0;r=r+h|0,i=i+p|0,n=n+b|0,a=a+m|0,s=s+g|0,o=o+y|0,f=f+v|0,d=d+w|0,u+=64,l-=64}}u(e);let l,h=e.length%64,p=e.length/536870912|0,b=e.length<<3,m=h<56?56:120,g=e.slice(e.length-h,e.length);for(g.push(128),l=h+1;l>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(b>>>24&255),g.push(b>>>16&255),g.push(b>>>8&255),g.push(b>>>0&255),u(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,f>>>24&255,f>>>16&255,f>>>8&255,f>>>0&255,d>>>24&255,d>>>16&255,d>>>8&255,d>>>0&255]}function n(e,t,r){let n;e=e.length<=64?e:i(e);let a=64+t.length+4,s=Array(a),o=Array(64),f=[];for(n=0;n<64;n++)s[n]=54;for(n=0;n=a-4;e--){if(s[e]++,s[e]<=255)return;s[e]=0}}for(;r>=32;)d(),f=f.concat(i(o.concat(i(s)))),r-=32;return r>0&&(d(),f=f.concat(i(o.concat(i(s))).slice(0,r))),f}function a(e,t,r,i,n){let a;for(f(e,(2*r-1)*16,n,0,16),a=0;a<2*r;a++)o(e,16*a,n,16),function(e,t){f(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=s(t[0]+t[12],7),t[8]^=s(t[4]+t[0],9),t[12]^=s(t[8]+t[4],13),t[0]^=s(t[12]+t[8],18),t[9]^=s(t[5]+t[1],7),t[13]^=s(t[9]+t[5],9),t[1]^=s(t[13]+t[9],13),t[5]^=s(t[1]+t[13],18),t[14]^=s(t[10]+t[6],7),t[2]^=s(t[14]+t[10],9),t[6]^=s(t[2]+t[14],13),t[10]^=s(t[6]+t[2],18),t[3]^=s(t[15]+t[11],7),t[7]^=s(t[3]+t[15],9),t[11]^=s(t[7]+t[3],13),t[15]^=s(t[11]+t[7],18),t[1]^=s(t[0]+t[3],7),t[2]^=s(t[1]+t[0],9),t[3]^=s(t[2]+t[1],13),t[0]^=s(t[3]+t[2],18),t[6]^=s(t[5]+t[4],7),t[7]^=s(t[6]+t[5],9),t[4]^=s(t[7]+t[6],13),t[5]^=s(t[4]+t[7],18),t[11]^=s(t[10]+t[9],7),t[8]^=s(t[11]+t[10],9),t[9]^=s(t[8]+t[11],13),t[10]^=s(t[9]+t[8],18),t[12]^=s(t[15]+t[14],7),t[13]^=s(t[12]+t[15],9),t[14]^=s(t[13]+t[12],13),t[15]^=s(t[14]+t[13],18);for(let r=0;r<16;++r)e[r]+=t[r]}(n,i),f(n,0,e,t+16*a,16);for(a=0;a>>32-t}function o(e,t,r,i){for(let n=0;n=256)return!1}return!0}function c(e,t){if("number"!=typeof e||e%1)throw Error("invalid "+t);return e}function u(e,t,r,i,s,u,l){let h;if(r=c(r,"N"),i=c(i,"r"),s=c(s,"p"),u=c(u,"dkLen"),0===r||(r&r-1)!=0)throw Error("N must be power of 2");if(r>2147483647/128/i)throw Error("N too large");if(i>2147483647/128/s)throw Error("r too large");if(!d(e))throw Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!d(t))throw Error("salt must be an array or buffer");let p=n(e,t=Array.prototype.slice.call(t),128*s*i),b=new Uint32Array(32*s*i);for(let e=0;eR&&(t=R);for(let e=0;eR&&(t=R);for(let e=0;e>0&255),p.push(b[e]>>8&255),p.push(b[e]>>16&255),p.push(b[e]>>24&255);let d=n(e,p,u);return l&&l(null,1,d),d}l&&k(T)};if(!l)for(;;){let e=T();if(void 0!=e)return e}T()}let l={scrypt:function(e,t,r,i,n,a,s){return new Promise(function(o,f){let d=0;s&&s(0),u(e,t,r,i,n,a,function(e,t,r){if(e)f(e);else if(r)s&&1!==d&&s(1),o(new Uint8Array(r));else if(s&&t!==d)return d=t,s(t)})})},syncScrypt:function(e,t,r,i,n,a){return new Uint8Array(u(e,t,r,i,n,a))}};void 0!==r?t.exports=l:"function"==typeof define&&define.amd?define(l):e&&(e.scrypt&&(e._scrypt=e.scrypt),e.scrypt=l)}(this)},{}],"2nczW":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="wallet/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lpm2Y:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Provider",()=>n.Provider),i.export(r,"BaseProvider",()=>s.BaseProvider),i.export(r,"Resolver",()=>s.Resolver),i.export(r,"UrlJsonRpcProvider",()=>y.UrlJsonRpcProvider),i.export(r,"FallbackProvider",()=>u.FallbackProvider),i.export(r,"AlchemyProvider",()=>o.AlchemyProvider),i.export(r,"AlchemyWebSocketProvider",()=>o.AlchemyWebSocketProvider),i.export(r,"AnkrProvider",()=>f.AnkrProvider),i.export(r,"CloudflareProvider",()=>d.CloudflareProvider),i.export(r,"EtherscanProvider",()=>c.EtherscanProvider),i.export(r,"InfuraProvider",()=>h.InfuraProvider),i.export(r,"InfuraWebSocketProvider",()=>h.InfuraWebSocketProvider),i.export(r,"JsonRpcProvider",()=>p.JsonRpcProvider),i.export(r,"JsonRpcBatchProvider",()=>b.JsonRpcBatchProvider),i.export(r,"NodesmithProvider",()=>m.NodesmithProvider),i.export(r,"PocketProvider",()=>g.PocketProvider),i.export(r,"StaticJsonRpcProvider",()=>y.StaticJsonRpcProvider),i.export(r,"Web3Provider",()=>v.Web3Provider),i.export(r,"WebSocketProvider",()=>w.WebSocketProvider),i.export(r,"IpcProvider",()=>l.IpcProvider),i.export(r,"JsonRpcSigner",()=>p.JsonRpcSigner),i.export(r,"getDefaultProvider",()=>S),i.export(r,"getNetwork",()=>a.getNetwork),i.export(r,"isCommunityResource",()=>_.isCommunityResource),i.export(r,"isCommunityResourcable",()=>_.isCommunityResourcable),i.export(r,"showThrottleMessage",()=>_.showThrottleMessage),i.export(r,"Formatter",()=>_.Formatter);"use strict";var n=e("@ethersproject/abstract-provider"),a=e("@ethersproject/networks"),s=e("./base-provider"),o=e("./alchemy-provider"),f=e("./ankr-provider"),d=e("./cloudflare-provider"),c=e("./etherscan-provider"),u=e("./fallback-provider"),l=e("./ipc-provider"),h=e("./infura-provider"),p=e("./json-rpc-provider"),b=e("./json-rpc-batch-provider"),m=e("./nodesmith-provider"),g=e("./pocket-provider"),y=e("./url-json-rpc-provider"),v=e("./web3-provider"),w=e("./websocket-provider"),_=e("./formatter"),M=e("@ethersproject/logger"),E=e("./_version");let A=new M.Logger(E.version);function S(e,t){if(null==e&&(e="homestead"),"string"==typeof e){let t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new p.JsonRpcProvider(e);case"ws":case"wss":return new w.WebSocketProvider(e);default:A.throwArgumentError("unsupported URL scheme","network",e)}}let r=(0,a.getNetwork)(e);return r&&r._defaultProvider||A.throwError("unsupported getDefaultProvider network",M.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:u.FallbackProvider,AlchemyProvider:o.AlchemyProvider,AnkrProvider:f.AnkrProvider,CloudflareProvider:d.CloudflareProvider,EtherscanProvider:c.EtherscanProvider,InfuraProvider:h.InfuraProvider,JsonRpcProvider:p.JsonRpcProvider,NodesmithProvider:m.NodesmithProvider,PocketProvider:g.PocketProvider,Web3Provider:v.Web3Provider,IpcProvider:l.IpcProvider},t)}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/networks":"acQbn","./base-provider":"lEHz5","./alchemy-provider":"dBSgv","./ankr-provider":"afy2f","./cloudflare-provider":"1qhut","./etherscan-provider":"fduCf","./fallback-provider":"LdkdG","./ipc-provider":"8DeRN","./infura-provider":"8Bo5e","./json-rpc-provider":"7x7oZ","./json-rpc-batch-provider":"aCNcD","./nodesmith-provider":"19g4w","./pocket-provider":"dwl0t","./url-json-rpc-provider":"bwHu3","./web3-provider":"2aAfb","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],acQbn:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getNetwork",()=>h);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=new n.Logger(a.version);function o(e){let t=function(t,r){null==r&&(r={});let i=[];if(t.InfuraProvider&&"-"!==r.infura)try{i.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{i.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{i.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket)try{let n=new t.PocketProvider(e,r.pocket);n.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(n.network.name)&&i.push(n)}catch(e){}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{i.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{let n=new t.AnkrProvider(e,r.ankr);n.network&&-1===["ropsten"].indexOf(n.network.name)&&i.push(n)}catch(e){}if(0===i.length)return null;if(t.FallbackProvider){let n=1;return null!=r.quorum?n=r.quorum:"homestead"===e&&(n=2),new t.FallbackProvider(i,n)}return i[0]};return t.renetwork=function(e){return o(e)},t}function f(e,t){let r=function(r,i){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return f(e,t)},r}let d={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o("homestead")},c={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:f("https://www.ethercluster.com/mordor","classicMordor")},l={unspecified:{chainId:0,name:"unspecified"},homestead:d,mainnet:d,morden:{chainId:2,name:"morden"},ropsten:c,testnet:c,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:f("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:f("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function h(e){if(null==e)return null;if("number"==typeof e){for(let t in l){let r=l[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){let t=l[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}let t=l[e.name];if(!t)return"number"!=typeof e.chainId&&s.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&s.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;if(null==r&&t._defaultProvider){var i;r=(i=t._defaultProvider)&&"function"==typeof i.renetwork?t._defaultProvider.renetwork(e):t._defaultProvider}return{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}},{"@ethersproject/logger":"6NWvR","./_version":"jSIn2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jSIn2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="networks/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lEHz5:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Event",()=>k),i.export(r,"Resolver",()=>U),i.export(r,"BaseProvider",()=>K);"use strict";var n=e("@ethersproject/abstract-provider"),a=e("@ethersproject/base64"),s=e("@ethersproject/basex"),o=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),d=e("@ethersproject/constants"),c=e("@ethersproject/hash"),u=e("@ethersproject/networks"),l=e("@ethersproject/properties"),h=e("@ethersproject/sha2"),p=e("@ethersproject/strings"),b=e("@ethersproject/web"),m=e("bech32"),g=i.interopDefault(m),y=e("@ethersproject/logger"),v=e("./_version"),w=e("./formatter"),_=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let M=new y.Logger(v.version);function E(e){return null==e?"null":(32!==(0,f.hexDataLength)(e)&&M.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function A(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map(e=>{if(!Array.isArray(e))return E(e);{let t={};e.forEach(e=>{t[E(e)]=!0});let r=Object.keys(t);return r.sort(),r.join("|")}}).join("&")}function S(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,f.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else if(Array.isArray(e))return"filter:*:"+A(e);else if((0,n.ForkEvent).isForkEvent(e))throw M.warn("not implemented"),Error("not implemented");else if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+A(e.topics||[]);throw Error("invalid event - "+e)}function x(){return new Date().getTime()}function I(e){return new Promise(t=>{setTimeout(t,e)})}let R=["block","network","pending","poll"];class k{constructor(e,t,r){(0,l.defineReadOnly)(this,"tag",e),(0,l.defineReadOnly)(this,"listener",t),(0,l.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){let e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){var e;let t=this.tag.split(":");if("filter"!==t[0])return null;let r=t[1],i=""===(e=t[2])?[]:e.split(/&/g).map(e=>{if(""===e)return[];let t=e.split("|").map(e=>"null"===e?null:e);return 1===t.length?t[0]:t}),n={};return i.length>0&&(n.topics=i),r&&"*"!==r&&(n.address=r),n}pollable(){return this.tag.indexOf(":")>=0||R.indexOf(this.tag)>=0}}let T={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function C(e){return(0,f.hexZeroPad)((0,o.BigNumber).from(e).toHexString(),32)}function P(e){return(0,s.Base58).encode((0,f.concat)([e,(0,f.hexDataSlice)((0,h.sha256)((0,h.sha256)(e)),0,4)]))}let O=RegExp("^(ipfs)://(.*)$","i"),N=[RegExp("^(https)://(.*)$","i"),RegExp("^(data):(.*)$","i"),O,RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function j(e,t){try{return(0,p.toUtf8String)(B(e,t))}catch(e){}return null}function B(e,t){if("0x"===e)return null;let r=(0,o.BigNumber).from((0,f.hexDataSlice)(e,t,t+32)).toNumber(),i=(0,o.BigNumber).from((0,f.hexDataSlice)(e,r,r+32)).toNumber();return(0,f.hexDataSlice)(e,r+32,r+32+i)}function L(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):M.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function D(e){let t=(0,f.arrayify)(e);if(t.length>32)throw Error("internal; should not happen");let r=new Uint8Array(32);return r.set(t,32-t.length),r}function F(e){let t=[],r=0;for(let i=0;i(0,o.BigNumber).from(e).eq(1)).catch(e=>{if(e.code===y.Logger.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,t){return _(this,void 0,void 0,function*(){let r={to:this.address,ccipReadEnabled:!0,data:(0,f.hexConcat)([e,(0,c.namehash)(this.name),t||"0x"])},i=!1;(yield this.supportsWildcard())&&(i=!0,r.data=(0,f.hexConcat)(["0x9061b923",F([(0,c.dnsEncode)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,f.arrayify)(e).length%32==4&&M.throwError("resolver threw error",y.Logger.errors.CALL_EXCEPTION,{transaction:r,data:e}),i&&(e=B(e,0)),e}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}})}_fetchBytes(e,t){return _(this,void 0,void 0,function*(){let r=yield this._fetch(e,t);return null!=r?B(r,0):null})}_getAddress(e,t){let r=T[String(e)];if(null==r&&M.throwError(`unsupported coin type: ${e}`,y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);let i=(0,f.arrayify)(t);if(null!=r.p2pkh){let e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,f.concat)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){let e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){let t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return P((0,f.concat)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){let e=i[1],t=i[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&i.length===2+e&&e>=1&&e<=75){let e=(0,g.default).toWords(i.slice(2));return e.unshift(t),(0,g.default).encode(r.prefix,e)}}return null}getAddress(e){return _(this,void 0,void 0,function*(){if(null==e&&(e=60),60===e)try{let e=yield this._fetch("0x3b3b57de");if("0x"===e||e===d.HashZero)return null;return this.provider.formatter.callAddress(e)}catch(e){if(e.code===y.Logger.errors.CALL_EXCEPTION)return null;throw e}let t=yield this._fetchBytes("0xf1cb7e06",C(e));if(null==t||"0x"===t)return null;let r=this._getAddress(e,t);return null==r&&M.throwError("invalid or unsupported coin data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r})}getAvatar(){return _(this,void 0,void 0,function*(){let e=[{type:"name",content:this.name}];try{let t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]);return"sia://"+t}return M.throwError("invalid or unsupported content hash data",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return _(this,void 0,void 0,function*(){let t=(0,p.toUtf8Bytes)(e);(t=(0,f.concat)([C(64),C(t.length),t])).length%32!=0&&(t=(0,f.concat)([t,(0,f.hexZeroPad)("0x",32-e.length%32)]));let r=yield this._fetchBytes("0x59d1d43c",(0,f.hexlify)(t));return null==r||"0x"===r?null:(0,p.toUtf8String)(r)})}}let q=null,z=1;class K extends n.Provider{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,l.defineReadOnly)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(e=>{}),this._ready().catch(e=>{});else{let t=(0,l.getStatic)(new.target,"getNetwork")(e);t?((0,l.defineReadOnly)(this,"_network",t),this.emit("network",t,null)):M.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return _(this,void 0,void 0,function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(e){}null==e&&(e=yield this.detectNetwork()),e||M.throwError("no network detected",y.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,l.defineReadOnly)(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return(0,b.poll)(()=>this._ready().then(e=>e,e=>{if(e.code!==y.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}static getFormatter(){return null==q&&(q=new w.Formatter),q}static getNetwork(e){return(0,u.getNetwork)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return _(this,void 0,void 0,function*(){if(this.disableCcipRead||0===r.length)return null;let i=e.to.toLowerCase(),n=t.toLowerCase(),a=[];for(let e=0;e=0?null:JSON.stringify({data:n,sender:i}),f=yield(0,b.fetchJson)({url:s,errorPassThrough:!0},o,(e,t)=>(e.status=t.statusCode,e));if(f.data)return f.data;let d=f.message||"unknown error";if(f.status>=400&&f.status<500)return M.throwError(`response not found during CCIP fetch: ${d}`,y.Logger.errors.SERVER_ERROR,{url:t,errorMessage:d});a.push(d)}return M.throwError(`error encountered during CCIP fetch: ${a.map(e=>JSON.stringify(e)).join(", ")}`,y.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:a})})}_getInternalBlockNumber(e){return _(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){let t=this._internalBlockNumber;try{let r=yield t;if(x()-r.respTime<=e)return r.blockNumber;break}catch(e){if(this._internalBlockNumber===t)break}}let t=x(),r=(0,l.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(e=>null,e=>e)}).then(({blockNumber:e,networkError:i})=>{if(i)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),i;let n=x();return(e=(0,o.BigNumber).from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)}),(yield r).blockNumber})}poll(){return _(this,void 0,void 0,function*(){let e=z++,t=[],r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(e){this.emit("error",e);return}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber){this.emit("didPoll",e);return}if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)M.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",M.makeError("network block skew detected",y.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach(e=>{if("block"===e)return;let t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]})),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach(e=>{switch(e.type){case"tx":{let r=e.hash,i=this.getTransactionReceipt(r).then(e=>(e&&null!=e.blockNumber&&(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e)),null)).catch(e=>{this.emit("error",e)});t.push(i);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);let i=e.filter;i.fromBlock=e._lastBlockNumber+1,i.toBlock=r;let n=i.toBlock-this._maxFilterBlockRange;n>i.fromBlock&&(i.fromBlock=n),i.fromBlock<0&&(i.fromBlock=0);let a=this.getLogs(i).then(t=>{e._inflight=!1,0!==t.length&&t.forEach(t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(i,t)})}).catch(t=>{this.emit("error",t),e._inflight=!1});t.push(a)}}}),this._lastBlockNumber=r,Promise.all(t).then(()=>{this.emit("didPoll",e)}).catch(e=>{this.emit("error",e)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return _(this,void 0,void 0,function*(){return M.throwError("provider does not support network detection",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return _(this,void 0,void 0,function*(){let e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield I(0),this._network;let r=M.makeError("underlying network changed",y.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){let e=x();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){(null==this._fastBlockNumber||!(ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return _(this,void 0,void 0,function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)})}_waitForTransaction(e,t,r,i){return _(this,void 0,void 0,function*(){let n=yield this.getTransactionReceipt(e);return(n?n.confirmations:0)>=t?n:new Promise((n,a)=>{let s=[],o=!1,f=function(){return!!o||(o=!0,s.forEach(e=>{e()}),!1)},d=e=>{!(e.confirmations{this.removeListener(e,d)}),i){let r=i.startBlock,n=null,d=s=>_(this,void 0,void 0,function*(){o||(yield I(1e3),this.getTransactionCount(i.from).then(c=>_(this,void 0,void 0,function*(){if(!o){if(c<=i.nonce)r=s;else{{let t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==n&&(n=r-3){o||this.once("block",d)}))});if(o)return;this.once("block",d),s.push(()=>{this.removeListener("block",d)})}if("number"==typeof r&&r>0){let e=setTimeout(()=>{f()||a(M.makeError("timeout exceeded",y.Logger.errors.TIMEOUT,{timeout:r}))},r);e.unref&&e.unref(),s.push(()=>{clearTimeout(e)})}})})}getBlockNumber(){return _(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return _(this,void 0,void 0,function*(){yield this.getNetwork();let e=yield this.perform("getGasPrice",{});try{return(0,o.BigNumber).from(e)}catch(t){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})}})}getBalance(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getBalance",r);try{return(0,o.BigNumber).from(i)}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:e})}})}getTransactionCount(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getTransactionCount",r);try{return(0,o.BigNumber).from(i).toNumber()}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:e})}})}getCode(e,t){return _(this,void 0,void 0,function*(){yield this.getNetwork();let r=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),i=yield this.perform("getCode",r);try{return(0,f.hexlify)(i)}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:e})}})}getStorageAt(e,t,r){return _(this,void 0,void 0,function*(){yield this.getNetwork();let i=yield(0,l.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then(e=>(0,f.hexValue)(e))}),n=yield this.perform("getStorageAt",i);try{return(0,f.hexlify)(n)}catch(e){return M.throwError("bad result from backend",y.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:n,error:e})}})}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,f.hexDataLength)(t))throw Error("invalid response - sendTransaction");return null!=t&&e.hash!==t&&M.throwError("Transaction hash mismatch from Provider.sendTransaction.",y.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),e.wait=(t,i)=>_(this,void 0,void 0,function*(){let n;null==t&&(t=1),null==i&&(i=0),0!==t&&null!=r&&(n={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});let a=yield this._waitForTransaction(e.hash,t,i,n);return null==a&&0===t?null:(this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&M.throwError("transaction failed",y.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),a)}),e}sendTransaction(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield Promise.resolve(e).then(e=>(0,f.hexlify)(e)),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);let i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{let e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,i)}catch(e){throw e.transaction=r,e.transactionHash=r.hash,e}})}_getTransactionRequest(e){return _(this,void 0,void 0,function*(){let t=yield e,r={};return["from","to"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?this._getAddress(e):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,o.BigNumber).from(e):null))}),["type"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>null!=e?e:null))}),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach(e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then(e=>e?(0,f.hexlify)(e):null))}),this.formatter.transactionRequest((yield(0,l.resolveProperties)(r)))})}_getFilter(e){return _(this,void 0,void 0,function*(){e=yield e;let t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach(r=>{null!=e[r]&&(t[r]=e[r])}),["fromBlock","toBlock"].forEach(r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))}),this.formatter.filter((yield(0,l.resolveProperties)(t)))})}_call(e,t,r){return _(this,void 0,void 0,function*(){r>=10&&M.throwError("CCIP read exceeded maximum redirections",y.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e});let i=e.to,n=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=i&&"0x556f1830"===n.substring(0,10)&&(0,f.hexDataLength)(n)%32==4)try{let a=(0,f.hexDataSlice)(n,4),s=(0,f.hexDataSlice)(a,0,32);(0,o.BigNumber).from(s).eq(i)||M.throwError("CCIP Read sender did not match",y.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:n});let d=[],c=(0,o.BigNumber).from((0,f.hexDataSlice)(a,32,64)).toNumber(),u=(0,o.BigNumber).from((0,f.hexDataSlice)(a,c,c+32)).toNumber(),l=(0,f.hexDataSlice)(a,c+32);for(let t=0;t_(this,void 0,void 0,function*(){let e=yield this.perform("getBlock",i);if(null==e)return null!=i.blockHash&&null==this._emitted["b:"+i.blockHash]||null!=i.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let r=0;rthis._wrapTransaction(e)),r}return this.formatter.block(e)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,b.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;let i=this.formatter.transactionResponse(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval),t=e-i.blockNumber+1;t<=0&&(t=1),i.confirmations=t}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return _(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let t={transactionHash:this.formatter.hash(e,!0)};return(0,b.poll)(()=>_(this,void 0,void 0,function*(){let r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;let i=this.formatter.receipt(r);if(null==i.blockNumber)i.confirmations=0;else if(null==i.confirmations){let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval),t=e-i.blockNumber+1;t<=0&&(t=1),i.confirmations=t}return i}),{oncePoll:this})})}getLogs(e){return _(this,void 0,void 0,function*(){yield this.getNetwork();let t=yield(0,l.resolveProperties)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach(e=>{null==e.removed&&(e.removed=!1)}),(0,w.Formatter).arrayOf(this.formatter.filterLog.bind(this.formatter))(r)})}getEtherPrice(){return _(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return _(this,void 0,void 0,function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&M.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return(t+=e)<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)})}getResolver(e){return _(this,void 0,void 0,function*(){let t=e;for(;;){if(""===t||"."===t||"eth"!==e&&"eth"===t)return null;let r=yield this._getResolver(t,"getResolver");if(null!=r){let i=new U(this,r,e);if(t!==e&&!(yield i.supportsWildcard()))return null;return i}t=t.split(".").slice(1).join(".")}})}_getResolver(e,t){return _(this,void 0,void 0,function*(){null==t&&(t="ENS");let r=yield this.getNetwork();r.ensAddress||M.throwError("network does not support ENS",y.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{let t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,c.namehash)(e).substring(2)});return this.formatter.callAddress(t)}catch(e){}return null})}resolveName(e){return _(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(t){if((0,f.isHexString)(e))throw t}"string"!=typeof e&&M.throwArgumentError("invalid ENS name","name",e);let t=yield this.getResolver(e);return t?yield t.getAddress():null})}lookupAddress(e){return _(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);let t=e.substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;let i=j((yield this.call({to:r,data:"0x691f3431"+(0,c.namehash)(t).substring(2)})),0),n=yield this.resolveName(i);return n!=e?null:i})}getAvatar(e){return _(this,void 0,void 0,function*(){let t=null;if((0,f.isHexString)(e)){let r=this.formatter.address(e),i=r.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(i,"getAvatar");if(!n)return null;t=new U(this,n,i);try{let e=yield t.getAvatar();if(e)return e.url}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e}try{let e=j((yield this.call({to:n,data:"0x691f3431"+(0,c.namehash)(i).substring(2)})),0);t=yield this.getResolver(e)}catch(e){if(e.code!==y.Logger.errors.CALL_EXCEPTION)throw e;return null}}else if(!(t=yield this.getResolver(e)))return null;let r=yield t.getAvatar();return null==r?null:r.url})}perform(e,t){return M.throwError(e+" not implemented",y.Logger.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(e=>e.pollable()).length>0}_addEventListener(e,t,r){let i=new k(S(e),t,r);return this._events.push(i),this._startEvent(i),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,i=[],n=S(e);return this._events=this._events.filter(e=>e.tag!==n||(setTimeout(()=>{e.listener.apply(this,t)},0),r=!0,!e.once||(i.push(e),!1))),i.forEach(e=>{this._stopEvent(e)}),r}listenerCount(e){if(!e)return this._events.length;let t=S(e);return this._events.filter(e=>e.tag===t).length}listeners(e){if(null==e)return this._events.map(e=>e.listener);let t=S(e);return this._events.filter(e=>e.tag===t).map(e=>e.listener)}off(e,t){if(null==t)return this.removeAllListeners(e);let r=[],i=!1,n=S(e);return this._events=this._events.filter(e=>e.tag!==n||e.listener!=t||!!i||(i=!0,r.push(e),!1)),r.forEach(e=>{this._stopEvent(e)}),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{let r=S(e);this._events=this._events.filter(e=>e.tag!==r||(t.push(e),!1))}return t.forEach(e=>{this._stopEvent(e)}),this}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/hash":"jLDfB","@ethersproject/networks":"acQbn","@ethersproject/properties":"dmdV5","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/web":"5uH8k",bech32:"jLLEl","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./formatter":"7RPp2","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"5uH8k":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"_fetchData",()=>p),i.export(r,"fetchJson",()=>b),i.export(r,"poll",()=>m);"use strict";var n=e("@ethersproject/base64"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),o=e("@ethersproject/strings"),f=e("@ethersproject/logger"),d=e("./_version"),c=e("./geturl");let u=new f.Logger(d.version);function l(e){return new Promise(t=>{setTimeout(t,e)})}function h(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,a.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,o.toUtf8String)(e)}catch(e){}return(0,a.hexlify)(e)}return e}function p(e,t,r){let i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;u.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);let a="object"==typeof e?e.throttleCallback:null,d="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;u.assertArgument(d>0&&d%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",d);let p="object"==typeof e&&!!e.errorPassThrough,b={},m=null,g={method:"GET"},y=!1,v=12e4;if("string"==typeof e)m=e;else if("object"==typeof e){if((null==e||null==e.url)&&u.throwArgumentError("missing URL","connection.url",e),m=e.url,"number"==typeof e.timeout&&e.timeout>0&&(v=e.timeout),e.headers)for(let t in e.headers)b[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(y=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==m.substring(0,6)&&!0!==e.allowInsecureAuthentication&&u.throwError("basic authentication requires a secure https url",f.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:m,user:e.user,password:"[REDACTED]"});let t=e.user+":"+e.password;b.authorization={key:"Authorization",value:"Basic "+(0,n.encode)((0,o.toUtf8Bytes)(t))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,s.shallowCopy)(e.fetchOptions))}let w=RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_=m?m.match(w):null;if(_)try{var M;let e={statusCode:200,statusMessage:"OK",headers:{"content-type":_[1]||"text/plain"},body:_[2]?(0,n.decode)(_[3]):(M=_[3],(0,o.toUtf8Bytes)(M.replace(/%([0-9a-f][0-9a-f])/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))))},t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(e){u.throwError("processing response error",f.Logger.errors.SERVER_ERROR,{body:h(_[1],_[2]),error:e,requestBody:null,requestMethod:"GET",url:m})}t&&(g.method="POST",g.body=t,null==b["content-type"]&&(b["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==b["content-length"]&&(b["content-length"]={key:"Content-Length",value:String(t.length)}));let E={};Object.keys(b).forEach(e=>{let t=b[e];E[t.key]=t.value}),g.headers=E;let A=function(){let e=null,t=new Promise(function(t,r){v&&(e=setTimeout(()=>{null!=e&&(e=null,r(u.makeError("timeout",f.Logger.errors.TIMEOUT,{requestBody:h(g.body,E["content-type"]),requestMethod:g.method,timeout:v,url:m})))},v))});return{promise:t,cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),S=function(){var e,t,n,s;return e=this,t=void 0,n=void 0,s=function*(){for(let e=0;e=300)&&(A.cancel(),u.throwError("bad response",f.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:h(n,t.headers?t.headers["content-type"]:null),requestBody:h(g.body,E["content-type"]),requestMethod:g.method,url:m})),r)try{let e=yield r(n,t);return A.cancel(),e}catch(r){if(r.throttleRetry&&e"content-type"===e.toLowerCase()).length;e||(r.headers=(0,s.shallowCopy)(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return p(e,i,(e,t)=>{let i=null;if(null!=e)try{i=JSON.parse((0,o.toUtf8String)(e))}catch(t){u.throwError("invalid JSON",f.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(i=r(i,t)),i})}function m(e,t){return t||(t={}),null==(t=(0,s.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise(function(r,i){let n=null,a=!1,s=()=>!a&&(a=!0,n&&clearTimeout(n),!0);t.timeout&&(n=setTimeout(()=>{s()&&i(Error("timeout"))},t.timeout));let o=t.retryLimit,f=0;!function n(){return e().then(function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",n);else if(t.onceBlock)t.onceBlock.once("block",n);else if(!a){if(++f>o){s()&&i(Error("retry limit reached"));return}let e=t.interval*parseInt(String(Math.random()*Math.pow(2,f)));et.ceiling&&(e=t.ceiling),setTimeout(n,e)}return null},function(e){s()&&i(e)})}()})}},{"@ethersproject/base64":"dIiCi","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"bPRgl","./geturl":"aerdi","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bPRgl:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="web/5.7.1"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aerdi:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getUrl",()=>a);var n=e("@ethersproject/bytes");"use strict";function a(e,t){var r,i,a,s;return r=this,i=void 0,a=void 0,s=function*(){null==t&&(t={});let r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){let e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}let i=yield fetch(e,r),a=yield i.arrayBuffer(),s={};return i.headers.forEach?i.headers.forEach((e,t)=>{s[t.toLowerCase()]=e}):i.headers.keys().forEach(e=>{s[e.toLowerCase()]=i.headers.get(e)}),{headers:s,statusCode:i.status,statusMessage:i.statusText,body:(0,n.arrayify)(new Uint8Array(a))}},new(a||(a=Promise))(function(e,t){function n(e){try{f(s.next(e))}catch(e){t(e)}}function o(e){try{f(s.throw(e))}catch(e){t(e)}}function f(t){var r;t.done?e(t.value):((r=t.value)instanceof a?r:new a(function(e){e(r)})).then(n,o)}f((s=s.apply(r,i||[])).next())})}},{"@ethersproject/bytes":"19SwW","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],jLLEl:[function(e,t,r){"use strict";for(var i="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},a=0;a>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function f(e){for(var t=1,r=0;r126)return"Invalid prefix ("+e+")";t=o(t)^i>>5}for(r=0,t=o(t);rt)return"Exceeds length limit";var r=e.toLowerCase(),i=e.toUpperCase();if(e!==r&&e!==i)return"Mixed-case string "+e;var a=(e=r).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var s=e.slice(0,a),d=e.slice(a+1);if(d.length<6)return"Data too short";var c=f(s);if("string"==typeof c)return c;for(var u=[],l=0;l=d.length||u.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:s,words:u}}function c(e,t,r,i){for(var n=0,a=0,s=(1<=r;)o.push(n>>(a-=r)&s);if(i)a>0&&o.push(n<=t)return"Excess padding";if(n<r)throw TypeError("Exceeds length limit");var n=f(e=e.toLowerCase());if("string"==typeof n)throw Error(n);for(var a=e+"1",s=0;s>5!=0)throw Error("Non 5-bit word");n=o(n)^d,a+=i.charAt(d)}for(s=0;s<6;++s)n=o(n);for(n^=1,s=0;s<6;++s){var c=n>>(5-s)*5&31;a+=i.charAt(c)}return a},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw Error(t)}}},{}],"1LO7N":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="providers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7RPp2":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Formatter",()=>h),i.export(r,"isCommunityResourcable",()=>p),i.export(r,"isCommunityResource",()=>b),i.export(r,"showThrottleMessage",()=>g);"use strict";var n=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/constants"),f=e("@ethersproject/properties"),d=e("@ethersproject/transactions"),c=e("@ethersproject/logger"),u=e("./_version");let l=new c.Logger(u.version);class h{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){let e={},t=this.address.bind(this),r=this.bigNumber.bind(this),i=this.blockTag.bind(this),n=this.data.bind(this),a=this.hash.bind(this),s=this.hex.bind(this),o=this.number.bind(this),d=this.type.bind(this);return e.transaction={hash:a,type:d,accessList:h.allowNull(this.accessList.bind(this),null),blockHash:h.allowNull(a,null),blockNumber:h.allowNull(o,null),transactionIndex:h.allowNull(o,null),confirmations:h.allowNull(o,null),from:t,gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),gasLimit:r,to:h.allowNull(t,null),value:r,nonce:o,data:n,r:h.allowNull(this.uint256),s:h.allowNull(this.uint256),v:h.allowNull(o),creates:h.allowNull(t,null),raw:h.allowNull(n)},e.transactionRequest={from:h.allowNull(t),nonce:h.allowNull(o),gasLimit:h.allowNull(r),gasPrice:h.allowNull(r),maxPriorityFeePerGas:h.allowNull(r),maxFeePerGas:h.allowNull(r),to:h.allowNull(t),value:h.allowNull(r),data:h.allowNull(e=>this.data(e,!0)),type:h.allowNull(o),accessList:h.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:o,blockNumber:o,transactionHash:a,address:t,topics:h.arrayOf(a),data:n,logIndex:o,blockHash:a},e.receipt={to:h.allowNull(this.address,null),from:h.allowNull(this.address,null),contractAddress:h.allowNull(t,null),transactionIndex:o,root:h.allowNull(s),gasUsed:r,logsBloom:h.allowNull(n),blockHash:a,transactionHash:a,logs:h.arrayOf(this.receiptLog.bind(this)),blockNumber:o,confirmations:h.allowNull(o,null),cumulativeGasUsed:r,effectiveGasPrice:h.allowNull(r),status:h.allowNull(o),type:d},e.block={hash:h.allowNull(a),parentHash:a,number:o,timestamp:o,nonce:h.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:h.allowNull(t),extraData:n,transactions:h.allowNull(h.arrayOf(a)),baseFeePerGas:h.allowNull(r)},e.blockWithTransactions=(0,f.shallowCopy)(e.block),e.blockWithTransactions.transactions=h.allowNull(h.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:h.allowNull(i,void 0),toBlock:h.allowNull(i,void 0),blockHash:h.allowNull(a,void 0),address:h.allowNull(t,void 0),topics:h.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:h.allowNull(o),blockHash:h.allowNull(a),transactionIndex:o,removed:h.allowNull(this.boolean.bind(this)),address:t,data:h.allowFalsish(n,"0x"),topics:h.arrayOf(a),transactionHash:a,logIndex:o},e}accessList(e){return(0,d.accessListify)(e||[])}number(e){return"0x"===e?0:(0,a.BigNumber).from(e).toNumber()}type(e){return"0x"===e||null==e?0:(0,a.BigNumber).from(e).toNumber()}bigNumber(e){return(0,a.BigNumber).from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,s.isHexString)(e))?e.toLowerCase():l.throwArgumentError("invalid hash","value",e)}data(e,t){let r=this.hex(e,t);if(r.length%2!=0)throw Error("invalid data; odd-length - "+e);return r}address(e){return(0,n.getAddress)(e)}callAddress(e){if(!(0,s.isHexString)(e,32))return null;let t=(0,n.getAddress)((0,s.hexDataSlice)(e,12));return t===o.AddressZero?null:t}contractAddress(e){return(0,n.getContractAddress)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,s.isHexString)(e))return(0,s.hexValue)(e);throw Error("invalid blockTag")}hash(e,t){let r=this.hex(e,t);return 32!==(0,s.hexDataLength)(r)?l.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;let t=(0,a.BigNumber).from(e);try{return t.toNumber()}catch(e){}return null}uint256(e){if(!(0,s.isHexString)(e))throw Error("invalid uint256");return(0,s.hexZeroPad)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);let r=null!=e._difficulty?e._difficulty:e.difficulty,i=h.check(t,e);return i._difficulty=null==r?null:(0,a.BigNumber).from(r),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return h.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&(0,a.BigNumber).from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),(1===e.type||2===e.type)&&null==e.accessList&&(e.accessList=[]);let t=h.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,s.isHexString)(r)&&(r=(0,a.BigNumber).from(r).toNumber()),"number"!=typeof r&&null!=t.v&&((r=(t.v-35)/2)<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,d.parse)(e)}receiptLog(e){return h.check(this.formats.receiptLog,e)}receipt(e){let t=h.check(this.formats.receipt,e);if(null!=t.root){if(t.root.length<=4){let e=(0,a.BigNumber).from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&l.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):l.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&l.throwArgumentError("invalid root hash","value.root",t.root)}return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map(e=>this.topics(e)):null!=e?this.hash(e,!0):null}filter(e){return h.check(this.formats.filter,e)}filterLog(e){return h.check(this.formats.filterLog,e)}static check(e,t){let r={};for(let i in e)try{let n=e[i](t[i]);void 0!==n&&(r[i]=n)}catch(e){throw e.checkKey=i,e.checkValue=t[i],e}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw Error("not an array");let r=[];return t.forEach(function(t){r.push(e(t))}),r}}}function p(e){return e&&"function"==typeof e.isCommunityResource}function b(e){return p(e)&&e.isCommunityResource()}let m=!1;function g(){m||(m=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},{"@ethersproject/address":"7BZuS","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/constants":"cSsuf","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dBSgv:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AlchemyWebSocketProvider",()=>l),i.export(r,"AlchemyProvider",()=>h);"use strict";var n=e("@ethersproject/properties"),a=e("./formatter"),s=e("./websocket-provider"),o=e("@ethersproject/logger"),f=e("./_version"),d=e("./url-json-rpc-provider");let c=new o.Logger(f.version),u="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class l extends s.WebSocketProvider{constructor(e,t){let r=new h(e,t),i=r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");super(i,r.network),(0,n.defineReadOnly)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===u}}class h extends d.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){return null==e?u:(e&&"string"!=typeof e&&c.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:c.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===u&&(0,a.showThrottleMessage)(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===u}}},{"@ethersproject/properties":"dmdV5","./formatter":"7RPp2","./websocket-provider":"83spj","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"83spj":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"WebSocketProvider",()=>h);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("./json-rpc-provider"),o=e("./ws"),f=e("@ethersproject/logger"),d=e("./_version"),c=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let u=new f.Logger(d.version),l=1;class h extends s.JsonRpcProvider{constructor(e,t){"any"===t&&u.throwError("WebSocketProvider does not support 'any' network yet",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),"string"==typeof e?super(e,t):super("_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,a.defineReadOnly)(this,"_websocket",new o.WebSocket(this.connection.url)):(0,a.defineReadOnly)(this,"_websocket",e),(0,a.defineReadOnly)(this,"_requests",{}),(0,a.defineReadOnly)(this,"_subs",{}),(0,a.defineReadOnly)(this,"_subIds",{}),(0,a.defineReadOnly)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach(e=>{this.websocket.send(this._requests[e].payload)})},this.websocket.onmessage=e=>{let t=e.data,r=JSON.parse(t);if(null!=r.id){let e=String(r.id),i=this._requests[e];if(delete this._requests[e],void 0!==r.result)i.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(i.payload),response:r.result,provider:this});else{let e=null;r.error?(e=Error(r.error.message||"unknown error"),(0,a.defineReadOnly)(e,"code",r.error.code||null),(0,a.defineReadOnly)(e,"response",t)):e=Error("unknown error"),i.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(i.payload),provider:this})}}else if("eth_subscription"===r.method){let e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else console.warn("this should not happen")};let r=setInterval(()=>{this.emit("poll")},1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){u.throwError("cannot reset events block on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){u.throwError("cannot set polling interval on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return c(this,void 0,void 0,function*(){return null})}set polling(e){e&&u.throwError("cannot set polling on WebSocketProvider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){let r=l++;return new Promise((i,n)=>{let a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(a),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?n(e):i(t)},payload:a},this._wsReady&&this.websocket.send(a)})}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return c(this,void 0,void 0,function*(){let i=this._subIds[e];null==i&&(i=Promise.all(t).then(e=>this.send("eth_subscribe",e)),this._subIds[e]=i);let n=yield i;this._subs[n]={tag:e,processFunc:r}})}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],e=>{let t=(0,n.BigNumber).from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)});break;case"pending":this._subscribe("pending",["newPendingTransactions"],e=>{this.emit("pending",e)});break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))});break;case"tx":{let t=e=>{let t=e.hash;this.getTransactionReceipt(t).then(e=>{e&&this.emit(t,e)})};t(e),this._subscribe("tx",["newHeads"],e=>{this._events.filter(e=>"tx"===e.type).forEach(t)});break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter(e=>"tx"===e.type).length)return;t="tx"}else if(this.listenerCount(e.event))return;let r=this._subIds[t];r&&(delete this._subIds[t],r.then(e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))}))}destroy(){return c(this,void 0,void 0,function*(){this.websocket.readyState===o.WebSocket.CONNECTING&&(yield new Promise(e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}})),this.websocket.close(1e3)})}}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/properties":"dmdV5","./json-rpc-provider":"7x7oZ","./ws":"7S9K4","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7x7oZ":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"JsonRpcSigner",()=>A),i.export(r,"JsonRpcProvider",()=>I);"use strict";var n=e("@ethersproject/abstract-signer"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/hash"),f=e("@ethersproject/properties"),d=e("@ethersproject/strings"),c=e("@ethersproject/transactions"),u=e("@ethersproject/web"),l=e("@ethersproject/logger"),h=e("./_version"),p=e("./base-provider"),b=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let m=new l.Logger(h.version),g=["call","estimateGas"];function y(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){let r=(0,s.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(let r in e){let i=y(e[r],t);if(i)return i}return null}if("string"==typeof e)try{return y(JSON.parse(e),t)}catch(e){}return null}function v(e,t,r){let i=r.transaction||r.signedTransaction;if("call"===e){let e=y(t,!0);if(e)return e.data;m.throwError("missing revert data in call exception; Transaction reverted without a reason string",l.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:i,error:t})}if("estimateGas"===e){let r=y(t.body,!1);null==r&&(r=y(t,!1)),r&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:i,error:t})}let n=t.message;throw t.code===l.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText),(n=(n||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&m.throwError("insufficient funds for intrinsic transaction cost",l.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:i}),n.match(/nonce (is )?too low/i)&&m.throwError("nonce has already been used",l.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:i}),n.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&m.throwError("replacement fee too low",l.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:i}),n.match(/only replay-protected/i)&&m.throwError("legacy pre-eip-155 transactions not supported",l.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:i}),g.indexOf(e)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&m.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:i}),t}function w(e){return new Promise(function(t){setTimeout(t,e)})}function _(e){if(e.error){let t=Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function M(e){return e?e.toLowerCase():e}let E={};class A extends n.Signer{constructor(e,t,r){if(super(),e!==E)throw Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,f.defineReadOnly)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,f.defineReadOnly)(this,"_address",this.provider.formatter.address(r)),(0,f.defineReadOnly)(this,"_index",null)):"number"==typeof r?((0,f.defineReadOnly)(this,"_index",r),(0,f.defineReadOnly)(this,"_address",null)):m.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return m.throwError("cannot alter JSON-RPC Signer connection",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new S(E,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&m.throwError("unknown account #"+this._index,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=(0,f.shallowCopy)(e);let t=this.getAddress().then(e=>(e&&(e=e.toLowerCase()),e));if(null==e.gasLimit){let r=(0,f.shallowCopy)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(e=>b(this,void 0,void 0,function*(){if(null==e)return null;let t=yield this.provider.resolveName(e);return null==t&&m.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))),(0,f.resolveProperties)({tx:(0,f.resolveProperties)(e),sender:t}).then(({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&m.throwArgumentError("from address mismatch","transaction",e):t.from=r;let i=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[i]).then(e=>e,e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected transaction",l.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),v("sendTransaction",e,i)))})}signTransaction(e){return m.throwError("signing transactions is unsupported",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return b(this,void 0,void 0,function*(){let t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,u.poll)(()=>b(this,void 0,void 0,function*(){let e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}),{oncePoll:this.provider})}catch(e){throw e.transactionHash=r,e}})}signMessage(e){return b(this,void 0,void 0,function*(){let t="string"==typeof e?(0,d.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,s.hexlify)(t),r.toLowerCase()])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&m.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t}})}_legacySignMessage(e){return b(this,void 0,void 0,function*(){let t="string"==typeof e?(0,d.toUtf8Bytes)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,s.hexlify)(t)])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&m.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t}})}_signTypedData(e,t,r){return b(this,void 0,void 0,function*(){let i=yield(0,o._TypedDataEncoder).resolveNames(e,t,r,e=>this.provider.resolveName(e)),n=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[n.toLowerCase(),JSON.stringify((0,o._TypedDataEncoder).getPayload(i.domain,t,i.value))])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&m.throwError("user rejected signing",l.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:n,messageData:{domain:i.domain,types:t,value:i.value}}),e}})}unlock(e){return b(this,void 0,void 0,function*(){let t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])})}}class S extends A{sendTransaction(e){return this.sendUncheckedTransaction(e).then(e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)}))}}let x={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class I extends p.BaseProvider{constructor(e,t){let r=t;null==r&&(r=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(t=>{e(t)},e=>{t(e)})},0)})),super(r),e||(e=(0,f.getStatic)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,f.defineReadOnly)(this,"connection",Object.freeze({url:e})):(0,f.defineReadOnly)(this,"connection",Object.freeze((0,f.shallowCopy)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return b(this,void 0,void 0,function*(){yield w(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(t){try{e=yield this.send("net_version",[])}catch(e){}}if(null!=e){let t=(0,f.getStatic)(this.constructor,"getNetwork");try{return t((0,a.BigNumber).from(e).toNumber())}catch(t){return m.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})}}return m.throwError("could not detect network",l.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new A(E,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(e=>this.formatter.address(e)))}send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,f.deepCopy)(r),provider:this});let i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];let n=(0,u.fetchJson)(this.connection,JSON.stringify(r),_).then(e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e});return i&&(this._cache[e]=n,setTimeout(()=>{this._cache[e]=null},0)),n}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[M(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[M(t.address),t.blockTag]];case"getCode":return["eth_getCode",[M(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[M(t.address),(0,s.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":if(t.blockTag)return["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]];if(t.blockHash)return["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]];break;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":{let e=(0,f.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[e(t.transaction,{from:!0}),t.blockTag]]}case"estimateGas":{let e=(0,f.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[e(t.transaction,{from:!0})]]}case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=M(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return b(this,void 0,void 0,function*(){if("call"===e||"estimateGas"===e){let e=t.transaction;if(e&&null!=e.type&&(0,a.BigNumber).from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){let r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,f.shallowCopy)(t)).transaction=(0,f.shallowCopy)(e),delete t.transaction.type)}}let r=this.prepareRequest(e,t);null==r&&m.throwError(e+" not implemented",l.Logger.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(r){return v(e,r,t)}})}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;let e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(r){return function i(){e.send("eth_getFilterChanges",[r]).then(function(r){if(e._pendingFilter!=t)return null;let i=Promise.resolve();return r.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",i=i.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),i.then(function(){return w(1e3)})}).then(function(){if(e._pendingFilter!=t){e.send("eth_uninstallFilter",[r]);return}return setTimeout(function(){i()},0),null}).catch(e=>{})}(),r}).catch(e=>{})}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){let r=(0,f.shallowCopy)(x);if(t)for(let e in t)t[e]&&(r[e]=!0);(0,f.checkProperties)(e,r);let i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null==e[t])return;let r=(0,s.hexValue)((0,a.BigNumber).from(e[t]));"gasLimit"===t&&(t="gas"),i[t]=r}),["from","to","data"].forEach(function(t){null!=e[t]&&(i[t]=(0,s.hexlify)(e[t]))}),e.accessList&&(i.accessList=(0,c.accessListify)(e.accessList)),i}}},{"@ethersproject/abstract-signer":"j6EbC","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/properties":"dmdV5","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7S9K4":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"WebSocket",()=>s);"use strict";var n=e("@ethersproject/logger"),a=e("./_version");let s=null;try{if(s=WebSocket,null==s)throw Error("inject please")}catch(t){let e=new n.Logger(a.version);s=function(){e.throwError("WebSockets not supported in this environment",n.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],bwHu3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"StaticJsonRpcProvider",()=>d),i.export(r,"UrlJsonRpcProvider",()=>c);"use strict";var n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let f=new a.Logger(s.version);class d extends o.JsonRpcProvider{detectNetwork(){var e,t,r,i;let s=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return e=this,t=void 0,r=void 0,i=function*(){let e=this.network;return null==e&&((e=yield s.detectNetwork.call(this))||f.throwError("no network detected",a.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,n.defineReadOnly)(this,"_network",e),this.emit("network",e,null))),e},new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})}}class c extends d{constructor(e,t){f.checkAbstract(new.target,c),e=(0,n.getStatic)(new.target,"getNetwork")(e),t=(0,n.getStatic)(new.target,"getApiKey")(t);let r=(0,n.getStatic)(new.target,"getUrl")(e,t);super(r,e),"string"==typeof t?(0,n.defineReadOnly)(this,"apiKey",t):null!=t&&Object.keys(t).forEach(e=>{(0,n.defineReadOnly)(this,e,t[e])})}_startPending(){f.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return f.throwError("API provider does not support signing",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return f.throwError("not implemented; sub-classes must override getUrl",a.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],afy2f:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AnkrProvider",()=>c);var n=e("./formatter"),a=e("./url-json-rpc-provider"),s=e("@ethersproject/logger"),o=e("./_version");let f=new s.Logger(o.version),d="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class c extends a.UrlJsonRpcProvider{isCommunityResource(){return this.apiKey===d}static getApiKey(e){return null==e?d:e}static getUrl(e,t){null==t&&(t=d);let r={allowGzip:!0,url:"https://"+function(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return f.throwArgumentError("unsupported network","name",e)}(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===d&&(0,n.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}},{"./formatter":"7RPp2","./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"1qhut":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"CloudflareProvider",()=>f);"use strict";var n=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class f extends n.UrlJsonRpcProvider{static getApiKey(e){return null!=e&&o.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;return"homestead"===e.name?r="https://cloudflare-eth.com/":o.throwArgumentError("unsupported network","network",arguments[0]),r}perform(e,t){var r,i,n,a;let s=Object.create(null,{perform:{get:()=>super.perform}});return r=this,i=void 0,n=void 0,a=function*(){if("getBlockNumber"===e){let e=yield s.perform.call(this,"getBlock",{blockTag:"latest"});return e.number}return s.perform.call(this,e,t)},new(n||(n=Promise))(function(e,t){function s(e){try{f(a.next(e))}catch(e){t(e)}}function o(e){try{f(a.throw(e))}catch(e){t(e)}}function f(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(s,o)}f((a=a.apply(r,i||[])).next())})}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fduCf:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"EtherscanProvider",()=>v);"use strict";var n=e("@ethersproject/bytes"),a=e("@ethersproject/properties"),s=e("@ethersproject/transactions"),o=e("@ethersproject/web"),f=e("./formatter"),d=e("@ethersproject/logger"),c=e("./_version"),u=e("./base-provider"),l=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let h=new d.Logger(c.version);function p(e){let t={};for(let r in e){if(null==e[r])continue;let i=e[r];("type"!==r||0!==i)&&(i=({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0})[r]?(0,n.hexValue)((0,n.hexlify)(i)):"accessList"===r?"["+(0,s.accessListify)(i).map(e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`).join(",")+"]":(0,n.hexlify)(i),t[r]=i)}return t}function b(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){let t=Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function m(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){let t=Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){let t=Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){let t=Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function g(e){if("pending"===e)throw Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function y(e,t,r){if("call"===e&&t.code===d.Logger.errors.SERVER_ERROR){let e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,n.isHexString)(r))return r;h.throwError("missing revert data in call exception",d.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let i=t.message;throw t.code===d.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&h.throwError("insufficient funds for intrinsic transaction cost",d.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&h.throwError("nonce has already been used",d.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/another transaction with same nonce/)&&h.throwError("replacement fee too low",d.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/execution failed due to an exception|execution reverted/)&&h.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class v extends u.BaseProvider{constructor(e,t){super(e),(0,a.defineReadOnly)(this,"baseUrl",this.getBaseUrl()),(0,a.defineReadOnly)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return h.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){let r=Object.keys(t).reduce((e,r)=>{let i=t[r];return null!=i&&(e+=`&${r}=${i}`),e},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${i}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return l(this,void 0,void 0,function*(){let i=r?this.getPostUrl():this.getUrl(e,t),n=r?this.getPostData(e,t):null,s="proxy"===e?m:b;this.emit("debug",{action:"request",request:i,provider:this});let d={url:i,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&(0,f.showThrottleMessage)(),Promise.resolve(!0))},c=null;n&&(d.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(n).map(e=>`${e}=${n[e]}`).join("&"));let u=yield(0,o.fetchJson)(d,c,s||m);return this.emit("debug",{action:"response",request:i,response:(0,a.deepCopy)(u),provider:this}),u})}detectNetwork(){return l(this,void 0,void 0,function*(){return this.network})}perform(e,t){let r=Object.create(null,{perform:{get:()=>super.perform}});return l(this,void 0,void 0,function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch(e=>y("sendTransaction",e,t.signedTransaction));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw Error("EtherscanProvider does not support blockTag for call");let e=p(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("call",e,t.transaction)}}case"estimateGas":{let e=p(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(e){return y("estimateGas",e,t.transaction)}}case"getLogs":{let e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=g(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=g(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&h.throwError("unsupported topic count",d.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){let r=t.filter.topics[0];("string"!=typeof r||66!==r.length)&&h.throwError("unsupported topic format",d.Logger.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}let r=yield this.fetch("logs",e),i={};for(let e=0;e{["contractAddress","to"].forEach(function(t){""==e[t]&&delete e[t]}),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);let t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})})}isCommunityResource(){return null==this.apiKey}}},{"@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/transactions":"ctBdV","@ethersproject/web":"5uH8k","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./base-provider":"lEHz5","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],LdkdG:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"FallbackProvider",()=>x);"use strict";var n=e("@ethersproject/abstract-provider"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),o=e("@ethersproject/properties"),f=e("@ethersproject/random"),d=e("@ethersproject/web"),c=e("./base-provider"),u=e("./formatter"),l=e("@ethersproject/logger"),h=e("./_version"),p=function(e,t,r,i){return new(r||(r=Promise))(function(n,a){function s(e){try{f(i.next(e))}catch(e){a(e)}}function o(e){try{f(i.throw(e))}catch(e){a(e)}}function f(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,o)}f((i=i.apply(e,t||[])).next())})};let b=new l.Logger(h.version);function m(){return new Date().getTime()}function g(e){let t=null;for(let r=0;rt?null:(i+n)/2}function v(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if((0,a.BigNumber).isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(e=>v(e)));if("object"==typeof e){let t=Object.keys(e);return t.sort(),"{"+t.map(t=>{let r=e[t];return r="function"==typeof r?"[function]":v(r),JSON.stringify(t)+":"+r}).join(",")+"}"}throw Error("unknown value type: "+typeof e)}let w=1;function _(e){let t=null,r=null,i=new Promise(i=>{r=setTimeout(t=function(){r&&(clearTimeout(r),r=null),i()},e)});return{cancel:t,getPromise:function(){return i},wait:e=>i=i.then(e)}}let M=[l.Logger.errors.CALL_EXCEPTION,l.Logger.errors.INSUFFICIENT_FUNDS,l.Logger.errors.NONCE_EXPIRED,l.Logger.errors.REPLACEMENT_UNDERPRICED,l.Logger.errors.UNPREDICTABLE_GAS_LIMIT],E=["address","args","errorArgs","errorSignature","method","transaction"];function A(e,t){let r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function S(e,t){return p(this,void 0,void 0,function*(){let r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,d.poll)(()=>new Promise((i,n)=>{setTimeout(function(){return r.blockNumber>=t?i(r):e.cancelled?i(null):i(void 0)},0)}),{oncePoll:r})})}class x extends c.BaseProvider{constructor(e,t){0===e.length&&b.throwArgumentError("missing providers","providers",e);let r=e.map((e,t)=>{if((0,n.Provider).isProvider(e)){let t=(0,u.isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:1})}let r=(0,o.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,u.isCommunityResource)(e)?2e3:750),null==r.weight&&(r.weight=1);let i=r.weight;return(i%1||i>512||i<1)&&b.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,i),Object.freeze(r)}),i=r.reduce((e,t)=>e+t.weight,0);null==t?t=i/2:t>i&&b.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let a=g(r.map(e=>e.provider.network));null==a&&(a=new Promise((e,t)=>{setTimeout(()=>{this.detectNetwork().then(e,t)},0)})),super(a),(0,o.defineReadOnly)(this,"providerConfigs",Object.freeze(r)),(0,o.defineReadOnly)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return p(this,void 0,void 0,function*(){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.getNetwork()));return g(e)})}perform(e,t){return p(this,void 0,void 0,function*(){if("sendTransaction"===e){let e=yield Promise.all(this.providerConfigs.map(e=>e.provider.sendTransaction(t.signedTransaction).then(e=>e.hash,e=>e)));for(let t=0;te.result),i=y(t.map(e=>e.result),2);if(null!=i)return i=Math.ceil(i),r.indexOf(i+1)>=0&&i++,i>=e._highestBlockNumber&&(e._highestBlockNumber=i),e._highestBlockNumber};case"getGasPrice":return function(e){let t=e.map(e=>e.result);return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return y(e.map(e=>e.result))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":a=function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).confirmations=-1,v(e))};break;case"getBlock":a=r.includeTransactions?function(e){return null==e?null:((e=(0,o.shallowCopy)(e)).transactions=e.transactions.map(e=>((e=(0,o.shallowCopy)(e)).confirmations=-1,e)),v(e))}:function(e){return null==e?null:v(e)};break;default:throw Error("unknown method: "+t)}return i=a,n=e.quorum,function(e){let t={};e.forEach(e=>{let r=i(e.result);t[r]||(t[r]={count:0,result:e.result}),t[r].count++});let r=Object.keys(t);for(let e=0;e=n)return i.result}}}(this,e,t),i=(0,f.shuffled)(this.providerConfigs.map(o.shallowCopy));i.sort((e,t)=>e.priority-t.priority);let n=this._highestBlockNumber,a=0,d=!0;for(;;){let f=m(),c=i.filter(e=>e.runner&&f-e.starte+t.weight,0);for(;c{r.staller=null}),r.runner=(function(e,t,r,i){return p(this,void 0,void 0,function*(){let n=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return n[r]();case"getEtherPrice":if(n.getEtherPrice)return n.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),n[r](i.address,i.blockTag||"latest");case"getStorageAt":return i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),n.getStorageAt(i.address,i.position,i.blockTag||"latest");case"getBlock":return i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),n[i.includeTransactions?"getBlockWithTransactions":"getBlock"](i.blockTag||i.blockHash);case"call":case"estimateGas":if(i.blockTag&&(0,s.isHexString)(i.blockTag)&&(n=yield S(e,t)),"call"===r&&i.blockTag)return n[r](i.transaction,i.blockTag);return n[r](i.transaction);case"getTransaction":case"getTransactionReceipt":return n[r](i.transactionHash);case"getLogs":{let r=i.filter;return(r.fromBlock&&(0,s.isHexString)(r.fromBlock)||r.toBlock&&(0,s.isHexString)(r.toBlock))&&(n=yield S(e,t)),n.getLogs(r)}}return b.throwError("unknown method error",l.Logger.errors.UNKNOWN_ERROR,{method:r,params:i})})})(r,n,e,t).then(i=>{r.done=!0,r.result=i,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:A(r,m()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})},i=>{r.done=!0,r.error=i,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:A(r,m()),request:{method:e,params:(0,o.deepCopy)(t)},provider:this})}),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:f,backend:A(r,null),request:{method:e,params:(0,o.deepCopy)(t)},provider:this}),c+=r.weight}let u=[];i.forEach(e=>{!e.done&&e.runner&&(u.push(e.runner),e.staller&&u.push(e.staller.getPromise()))}),u.length&&(yield Promise.race(u));let h=i.filter(e=>e.done&&null==e.error);if(h.length>=this.quorum){let e=r(h);if(void 0!==e)return i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),e;d||(yield _(100).getPromise()),d=!1}let g=i.reduce((e,t)=>{if(!t.done||null==t.error)return e;let r=t.error.code;return M.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e},{});if(Object.keys(g).forEach(e=>{let t=g[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0});let r=t.error,n={};E.forEach(e=>{null!=r[e]&&(n[e]=r[e])}),b.throwError(r.reason||r.message,e,n)}),0===i.filter(e=>!e.done).length)break}return i.forEach(e=>{e.staller&&e.staller.cancel(),e.cancelled=!0}),b.throwError("failed to meet quorum",l.Logger.errors.SERVER_ERROR,{method:e,params:t,results:i.map(e=>A(e)),provider:this})})}}},{"@ethersproject/abstract-provider":"imf57","@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/properties":"dmdV5","@ethersproject/random":"5x4el","@ethersproject/web":"5uH8k","./base-provider":"lEHz5","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8DeRN":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");"use strict";i.defineInteropFlag(r),i.export(r,"IpcProvider",()=>n);let n=null},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8Bo5e":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"InfuraWebSocketProvider",()=>l),i.export(r,"InfuraProvider",()=>h);"use strict";var n=e("@ethersproject/properties"),a=e("./websocket-provider"),s=e("./formatter"),o=e("@ethersproject/logger"),f=e("./_version"),d=e("./url-json-rpc-provider");let c=new o.Logger(f.version),u="84842078b09946638c03157f83405213";class l extends a.WebSocketProvider{constructor(e,t){let r=new h(e,t),i=r.connection;i.password&&c.throwError("INFURA WebSocket project secrets unsupported",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});let a=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(a,e),(0,n.defineReadOnly)(this,"apiKey",r.projectId),(0,n.defineReadOnly)(this,"projectId",r.projectId),(0,n.defineReadOnly)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===u}}class h extends d.UrlJsonRpcProvider{static getWebSocketProvider(e,t){return new l(e,t)}static getApiKey(e){let t={apiKey:u,projectId:u,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(c.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),c.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:c.throwError("unsupported network",o.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===u&&(0,s.showThrottleMessage)(),Promise.resolve(!0))};return null!=t.projectSecret&&(i.user="",i.password=t.projectSecret),i}isCommunityResource(){return this.projectId===u}}},{"@ethersproject/properties":"dmdV5","./websocket-provider":"83spj","./formatter":"7RPp2","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],aCNcD:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"JsonRpcBatchProvider",()=>o);var n=e("@ethersproject/properties"),a=e("@ethersproject/web"),s=e("./json-rpc-provider");class o extends s.JsonRpcProvider{send(e,t){let r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);let i={request:r,resolve:null,reject:null},s=new Promise((e,t)=>{i.resolve=e,i.reject=t});return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{let e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;let t=e.map(e=>e.request);return this.emit("debug",{action:"requestBatch",request:(0,n.deepCopy)(t),provider:this}),(0,a.fetchJson)(this.connection,JSON.stringify(t)).then(r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach((e,t)=>{let i=r[t];if(i.error){let t=Error(i.error.message);t.code=i.error.code,t.data=i.error.data,e.reject(t)}else e.resolve(i.result)})},r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach(e=>{e.reject(r)})})},10)),s}}},{"@ethersproject/properties":"dmdV5","@ethersproject/web":"5uH8k","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"19g4w":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"NodesmithProvider",()=>f);"use strict";var n=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version);class f extends n.UrlJsonRpcProvider{static getApiKey(e){return e&&"string"!=typeof e&&o.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){o.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:o.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}},{"./url-json-rpc-provider":"bwHu3","@ethersproject/logger":"6NWvR","./_version":"1LO7N","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dwl0t:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"PocketProvider",()=>d);"use strict";var n=e("@ethersproject/logger"),a=e("./_version"),s=e("./url-json-rpc-provider");let o=new n.Logger(a.version),f="62e1ad51b37b8e00394bda3b";class d extends s.UrlJsonRpcProvider{static getApiKey(e){let t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=f:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:o.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:o.throwError("unsupported network",n.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}let i=`https://${r}/v1/lb/${t.applicationId}`,a={headers:{},url:i};return null!=t.applicationSecretKey&&(a.user="",a.password=t.applicationSecretKey),a}isCommunityResource(){return this.applicationId===f}}},{"@ethersproject/logger":"6NWvR","./_version":"1LO7N","./url-json-rpc-provider":"bwHu3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"2aAfb":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"Web3Provider",()=>u);"use strict";var n=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),o=e("./json-rpc-provider");let f=new a.Logger(s.version),d=1;function c(e,t){let r="Web3LegacyFetcher";return function(e,i){let a={method:e,params:i,id:d++,jsonrpc:"2.0"};return new Promise((e,i)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,n.deepCopy)(a),provider:this}),t(a,(t,n)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:a,provider:this}),i(t);if(this.emit("debug",{action:"response",fetcher:r,request:a,response:n,provider:this}),n.error){let e=Error(n.error.message);return e.code=n.error.code,e.data=n.error.data,i(e)}e(n.result)})})}}class u extends o.JsonRpcProvider{constructor(e,t){null==e&&f.throwArgumentError("missing provider","provider",e);let r=null,i=null,a=null;"function"==typeof e?(r="unknown:",i=e):(((r=e.host||e.path||"")||!e.isMetaMask||(r="metamask"),a=e,e.request)?(""===r&&(r="eip-1193:"),i=function(t,r){null==r&&(r=[]);let i={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,n.deepCopy)(i),provider:this}),e.request(i).then(e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:this}),e),e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:this}),e})}):e.sendAsync?i=c(e,e.sendAsync.bind(e)):e.send?i=c(e,e.send.bind(e)):f.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,n.defineReadOnly)(this,"jsonRpcFetchFunc",i),(0,n.defineReadOnly)(this,"provider",a)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}},{"@ethersproject/properties":"dmdV5","@ethersproject/logger":"6NWvR","./_version":"1LO7N","./json-rpc-provider":"7x7oZ","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"7jy5m":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"AbiCoder",()=>n.AbiCoder),i.export(r,"defaultAbiCoder",()=>n.defaultAbiCoder),i.export(r,"Fragment",()=>n.Fragment),i.export(r,"ConstructorFragment",()=>n.ConstructorFragment),i.export(r,"ErrorFragment",()=>n.ErrorFragment),i.export(r,"EventFragment",()=>n.EventFragment),i.export(r,"FunctionFragment",()=>n.FunctionFragment),i.export(r,"ParamType",()=>n.ParamType),i.export(r,"FormatTypes",()=>n.FormatTypes),i.export(r,"checkResultErrors",()=>n.checkResultErrors),i.export(r,"Logger",()=>h.Logger),i.export(r,"RLP",()=>y),i.export(r,"_fetchData",()=>A._fetchData),i.export(r,"fetchJson",()=>A.fetchJson),i.export(r,"poll",()=>A.poll),i.export(r,"checkProperties",()=>g.checkProperties),i.export(r,"deepCopy",()=>g.deepCopy),i.export(r,"defineReadOnly",()=>g.defineReadOnly),i.export(r,"getStatic",()=>g.getStatic),i.export(r,"resolveProperties",()=>g.resolveProperties),i.export(r,"shallowCopy",()=>g.shallowCopy),i.export(r,"arrayify",()=>f.arrayify),i.export(r,"concat",()=>f.concat),i.export(r,"stripZeros",()=>f.stripZeros),i.export(r,"zeroPad",()=>f.zeroPad),i.export(r,"isBytes",()=>f.isBytes),i.export(r,"isBytesLike",()=>f.isBytesLike),i.export(r,"defaultPath",()=>c.defaultPath),i.export(r,"HDNode",()=>c.HDNode),i.export(r,"SigningKey",()=>v.SigningKey),i.export(r,"Interface",()=>n.Interface),i.export(r,"LogDescription",()=>n.LogDescription),i.export(r,"TransactionDescription",()=>n.TransactionDescription),i.export(r,"base58",()=>o.Base58),i.export(r,"base64",()=>s),i.export(r,"hexlify",()=>f.hexlify),i.export(r,"isHexString",()=>f.isHexString),i.export(r,"hexConcat",()=>f.hexConcat),i.export(r,"hexStripZeros",()=>f.hexStripZeros),i.export(r,"hexValue",()=>f.hexValue),i.export(r,"hexZeroPad",()=>f.hexZeroPad),i.export(r,"hexDataLength",()=>f.hexDataLength),i.export(r,"hexDataSlice",()=>f.hexDataSlice),i.export(r,"nameprep",()=>w.nameprep),i.export(r,"_toEscapedUtf8String",()=>w._toEscapedUtf8String),i.export(r,"toUtf8Bytes",()=>w.toUtf8Bytes),i.export(r,"toUtf8CodePoints",()=>w.toUtf8CodePoints),i.export(r,"toUtf8String",()=>w.toUtf8String),i.export(r,"Utf8ErrorFuncs",()=>w.Utf8ErrorFuncs),i.export(r,"formatBytes32String",()=>w.formatBytes32String),i.export(r,"parseBytes32String",()=>w.parseBytes32String),i.export(r,"dnsEncode",()=>d.dnsEncode),i.export(r,"hashMessage",()=>d.hashMessage),i.export(r,"namehash",()=>d.namehash),i.export(r,"isValidName",()=>d.isValidName),i.export(r,"id",()=>d.id),i.export(r,"_TypedDataEncoder",()=>d._TypedDataEncoder),i.export(r,"getAddress",()=>a.getAddress),i.export(r,"getIcapAddress",()=>a.getIcapAddress),i.export(r,"getContractAddress",()=>a.getContractAddress),i.export(r,"getCreate2Address",()=>a.getCreate2Address),i.export(r,"isAddress",()=>a.isAddress),i.export(r,"formatEther",()=>M.formatEther),i.export(r,"parseEther",()=>M.parseEther),i.export(r,"formatUnits",()=>M.formatUnits),i.export(r,"parseUnits",()=>M.parseUnits),i.export(r,"commify",()=>M.commify),i.export(r,"computeHmac",()=>p.computeHmac),i.export(r,"keccak256",()=>l.keccak256),i.export(r,"ripemd160",()=>p.ripemd160),i.export(r,"sha256",()=>p.sha256),i.export(r,"sha512",()=>p.sha512),i.export(r,"randomBytes",()=>m.randomBytes),i.export(r,"shuffled",()=>m.shuffled),i.export(r,"solidityPack",()=>b.pack),i.export(r,"solidityKeccak256",()=>b.keccak256),i.export(r,"soliditySha256",()=>b.sha256),i.export(r,"splitSignature",()=>f.splitSignature),i.export(r,"joinSignature",()=>f.joinSignature),i.export(r,"accessListify",()=>_.accessListify),i.export(r,"parseTransaction",()=>_.parse),i.export(r,"serializeTransaction",()=>_.serialize),i.export(r,"TransactionTypes",()=>_.TransactionTypes),i.export(r,"getJsonWalletAddress",()=>u.getJsonWalletAddress),i.export(r,"computeAddress",()=>_.computeAddress),i.export(r,"recoverAddress",()=>_.recoverAddress),i.export(r,"computePublicKey",()=>v.computePublicKey),i.export(r,"recoverPublicKey",()=>v.recoverPublicKey),i.export(r,"verifyMessage",()=>E.verifyMessage),i.export(r,"verifyTypedData",()=>E.verifyTypedData),i.export(r,"getAccountPath",()=>c.getAccountPath),i.export(r,"mnemonicToEntropy",()=>c.mnemonicToEntropy),i.export(r,"entropyToMnemonic",()=>c.entropyToMnemonic),i.export(r,"isValidMnemonic",()=>c.isValidMnemonic),i.export(r,"mnemonicToSeed",()=>c.mnemonicToSeed),i.export(r,"SupportedAlgorithm",()=>p.SupportedAlgorithm),i.export(r,"UnicodeNormalizationForm",()=>w.UnicodeNormalizationForm),i.export(r,"Utf8ErrorReason",()=>w.Utf8ErrorReason),i.export(r,"Indexed",()=>n.Indexed);"use strict";var n=e("@ethersproject/abi"),a=e("@ethersproject/address"),s=e("@ethersproject/base64"),o=e("@ethersproject/basex"),f=e("@ethersproject/bytes"),d=e("@ethersproject/hash"),c=e("@ethersproject/hdnode"),u=e("@ethersproject/json-wallets"),l=e("@ethersproject/keccak256"),h=e("@ethersproject/logger"),p=e("@ethersproject/sha2"),b=e("@ethersproject/solidity"),m=e("@ethersproject/random"),g=e("@ethersproject/properties"),y=e("@ethersproject/rlp"),v=e("@ethersproject/signing-key"),w=e("@ethersproject/strings"),_=e("@ethersproject/transactions"),M=e("@ethersproject/units"),E=e("@ethersproject/wallet"),A=e("@ethersproject/web")},{"@ethersproject/abi":"gbtNr","@ethersproject/address":"7BZuS","@ethersproject/base64":"dIiCi","@ethersproject/basex":"Pygpe","@ethersproject/bytes":"19SwW","@ethersproject/hash":"jLDfB","@ethersproject/hdnode":"2zCqF","@ethersproject/json-wallets":"7BEU7","@ethersproject/keccak256":"eWtzg","@ethersproject/logger":"6NWvR","@ethersproject/sha2":"bznen","@ethersproject/solidity":"fUvC2","@ethersproject/random":"5x4el","@ethersproject/properties":"dmdV5","@ethersproject/rlp":"1wlks","@ethersproject/signing-key":"a8JOx","@ethersproject/strings":"edSy2","@ethersproject/transactions":"ctBdV","@ethersproject/units":"atzpk","@ethersproject/wallet":"euBMB","@ethersproject/web":"5uH8k","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fUvC2:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"pack",()=>b),i.export(r,"keccak256",()=>m),i.export(r,"sha256",()=>g);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/bytes"),s=e("@ethersproject/keccak256"),o=e("@ethersproject/sha2"),f=e("@ethersproject/strings"),d=e("@ethersproject/logger"),c=e("./_version");let u=RegExp("^bytes([0-9]+)$"),l=RegExp("^(u?int)([0-9]*)$"),h=RegExp("^(.*)\\[([0-9]*)\\]$"),p=new d.Logger(c.version);function b(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,i){r.push(function e(t,r,i){switch(t){case"address":if(i)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r);case"string":return(0,f.toUtf8Bytes)(r);case"bytes":return(0,a.arrayify)(r);case"bool":if(r=r?"0x01":"0x00",i)return(0,a.zeroPad)(r,32);return(0,a.arrayify)(r)}let s=t.match(l);if(s){let e=parseInt(s[2]||"256");return(s[2]&&String(e)!==s[2]||e%8!=0||0===e||e>256)&&p.throwArgumentError("invalid number type","type",t),i&&(e=256),r=(0,n.BigNumber).from(r).toTwos(e),(0,a.zeroPad)(r,e/8)}if(s=t.match(u)){let e=parseInt(s[1]);return((String(e)!==s[1]||0===e||e>32)&&p.throwArgumentError("invalid bytes type","type",t),(0,a.arrayify)(r).byteLength!==e&&p.throwArgumentError(`invalid value for ${t}`,"value",r),i)?(0,a.arrayify)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((s=t.match(h))&&Array.isArray(r)){let i=s[1],n=parseInt(s[2]||String(r.length));n!=r.length&&p.throwArgumentError(`invalid array length for ${t}`,"value",r);let o=[];return r.forEach(function(t){o.push(e(i,t,!0))}),(0,a.concat)(o)}return p.throwArgumentError("invalid type","type",t)}(e,t[i]))}),(0,a.hexlify)((0,a.concat)(r))}function m(e,t){return(0,s.keccak256)(b(e,t))}function g(e,t){return(0,o.sha256)(b(e,t))}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/bytes":"19SwW","@ethersproject/keccak256":"eWtzg","@ethersproject/sha2":"bznen","@ethersproject/strings":"edSy2","@ethersproject/logger":"6NWvR","./_version":"csbL3","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],csbL3:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="solidity/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],atzpk:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"commify",()=>d),i.export(r,"formatUnits",()=>c),i.export(r,"parseUnits",()=>u),i.export(r,"formatEther",()=>l),i.export(r,"parseEther",()=>h);"use strict";var n=e("@ethersproject/bignumber"),a=e("@ethersproject/logger"),s=e("./_version");let o=new a.Logger(s.version),f=["wei","kwei","mwei","gwei","szabo","finney","ether"];function d(e){let t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&o.throwArgumentError("invalid value","value",e);let r=t[0],i="";for("-"===r.substring(0,1)&&(i="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let n="";for(2===t.length&&(n="."+(t[1]||"0"));n.length>2&&"0"===n[n.length-1];)n=n.substring(0,n.length-1);let a=[];for(;r.length;)if(r.length<=3){a.unshift(r);break}else{let e=r.length-3;a.unshift(r.substring(e)),r=r.substring(0,e)}return i+a.join(",")+n}function c(e,t){if("string"==typeof t){let e=f.indexOf(t);-1!==e&&(t=3*e)}return(0,n.formatFixed)(e,null!=t?t:18)}function u(e,t){if("string"!=typeof e&&o.throwArgumentError("value must be a string","value",e),"string"==typeof t){let e=f.indexOf(t);-1!==e&&(t=3*e)}return(0,n.parseFixed)(e,null!=t?t:18)}function l(e){return c(e,18)}function h(e){return u(e,18)}},{"@ethersproject/bignumber":"hIcBX","@ethersproject/logger":"6NWvR","./_version":"fmwkF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fmwkF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="units/5.7.0"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],lHxZw:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"version",()=>n);let n="ethers/5.7.2"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gHKeo:[function(e,t,r){"use strict";r.version=e("e6672bc3ba1c9961").version,r.utils=e("5bc72f89931ad0f5"),r.rand=e("7f90d752a36f35cf"),r.curve=e("d11da69c91421223"),r.curves=e("6845bad4ed92c3e4"),r.ec=e("b5f2e1f615acc4b"),r.eddsa=e("79ae761761517980")},{e6672bc3ba1c9961:"3Zkz7","5bc72f89931ad0f5":"3rt5D","7f90d752a36f35cf":"dpC9B",d11da69c91421223:"2kHkA","6845bad4ed92c3e4":"kwPzC",b5f2e1f615acc4b:"eyBGo","79ae761761517980":"axOwW"}],"3Zkz7":[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.7","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"3rt5D":[function(e,t,r){"use strict";var i=e("f4cbcf6f6eb25ca0"),n=e("d8ee30463f95a0fd"),a=e("997429d6bbd82d59");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);for(s=0;s(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{f4cbcf6f6eb25ca0:"2gemu",d8ee30463f95a0fd:"h59lk","997429d6bbd82d59":"6lUA8"}],"2gemu":[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1cf9b8cfa268aab5").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1cf9b8cfa268aab5":"3eno3"}],"6lUA8":[function(e,t,r){"use strict";function i(e){return 1===e.length?"0"+e:e}function n(e){for(var t="",r=0;r>8,s=255&n;a?r.push(a,s):r.push(s)}return r},r.zero2=i,r.toHex=n,r.encode=function(e,t){return"hex"===t?n(e):e}},{}],dpC9B:[function(e,t,r){var i;function n(e){this.rand=e}if(t.exports=function(e){return i||(i=new n(null)),i.generate(e)},t.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.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 d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"89f794ef417dc31c":"3rt5D",c314b0ac30b69c4a:"2gemu","6ac4d7c73f24ab9c":"cJ2FP","6e622edb7498c94":"8aa6K"}],"8aBJF":[function(e,t,r){"use strict";var i=e("ebdf19f04f3ed250"),n=e("cb5bb4841a749f68"),a=e("51280941230b3f98"),s=e("ea7949a80be00261");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{ebdf19f04f3ed250:"2gemu",cb5bb4841a749f68:"cJ2FP","51280941230b3f98":"8aa6K",ea7949a80be00261:"3rt5D"}],g6imV:[function(e,t,r){"use strict";var i=e("7bd66a4710450b08"),n=e("ccef46dcf03d45c6"),a=e("19937272cbe23c92"),s=e("108c8ead5f54502b"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{"7bd66a4710450b08":"3rt5D",ccef46dcf03d45c6:"2gemu","19937272cbe23c92":"cJ2FP","108c8ead5f54502b":"8aa6K"}],kwPzC:[function(e,t,r){"use strict";var i,n=e("1c9db357c0845afa"),a=e("47ec78745540f875"),s=e("e30b16e4a47a5405").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("9eada5f7049e7dfd")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"1c9db357c0845afa":"2Tlxk","47ec78745540f875":"2kHkA",e30b16e4a47a5405:"3rt5D","9eada5f7049e7dfd":"i8FLx"}],i8FLx:[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"]]}}},{}],eyBGo:[function(e,t,r){"use strict";var i=e("2e69183faf5285a1"),n=e("b0cb641292e4911d"),a=e("eab3e45147b180ba"),s=e("a5ce61d26ce01c4c"),o=e("f6342f89ac472937"),f=a.assert,d=e("eb5ba559e423f6e9"),c=e("7c5e2c76c574ce41");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"2e69183faf5285a1":"2gemu",b0cb641292e4911d:"eo8Xm",eab3e45147b180ba:"3rt5D",a5ce61d26ce01c4c:"kwPzC",f6342f89ac472937:"dpC9B",eb5ba559e423f6e9:"4fq9t","7c5e2c76c574ce41":"5Epmh"}],eo8Xm:[function(e,t,r){"use strict";var i=e("629972fec592198f"),n=e("c20531edfb274a2c"),a=e("43ff1863ab3fce20");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=n.toArray(e.entropy,e.entropyEnc||"hex"),r=n.toArray(e.nonce,e.nonceEnc||"hex"),i=n.toArray(e.pers,e.persEnc||"hex");a(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}t.exports=s,s.prototype._init=function(e,t,r){var i=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var n=0;n=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,i){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(i=r,r=t,t=null),r&&(r=n.toArray(r,i||"hex"),this._update(r));for(var a=[];a.length"}},{"55cc33a33cda153d":"2gemu",bda8b1ff480a7f3:"3rt5D"}],"5Epmh":[function(e,t,r){"use strict";var i=e("a7ae8f0fe39990e7"),n=e("5df7da4811374387"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4||0===e[t.place])return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s||(128&e[r.place])!=0)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place||(128&e[r.place])!=0)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{a7ae8f0fe39990e7:"2gemu","5df7da4811374387":"3rt5D"}],axOwW:[function(e,t,r){"use strict";var i=e("50f9bfa8a484d5d8"),n=e("68956d27442d6321"),a=e("99ec52641eff141d"),s=a.assert,o=a.parseBytes,f=e("2ad2982d76b37f15"),d=e("76c25a1d63d10c1b");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.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 i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]4294967295)throw RangeError("requested too many random bytes");var r=a.allocUnsafe(e);if(e>0){if(e>65536)for(var i=0;i>>32-t}function d(e,t,r,i,n,a,s){return f(e+(t&r|~t&i)+n+a|0,s)+t|0}function c(e,t,r,i,n,a,s){return f(e+(t&i|r&~i)+n+a|0,s)+t|0}function u(e,t,r,i,n,a,s){return f(e+(t^r^i)+n+a|0,s)+t|0}function l(e,t,r,i,n,a,s){return f(e+(r^(t|~i))+n+a|0,s)+t|0}i(o,n),o.prototype._update=function(){for(var e=0;e<16;++e)s[e]=this._block.readInt32LE(4*e);var t=this._a,r=this._b,i=this._c,n=this._d;t=d(t,r,i,n,s[0],3614090360,7),n=d(n,t,r,i,s[1],3905402710,12),i=d(i,n,t,r,s[2],606105819,17),r=d(r,i,n,t,s[3],3250441966,22),t=d(t,r,i,n,s[4],4118548399,7),n=d(n,t,r,i,s[5],1200080426,12),i=d(i,n,t,r,s[6],2821735955,17),r=d(r,i,n,t,s[7],4249261313,22),t=d(t,r,i,n,s[8],1770035416,7),n=d(n,t,r,i,s[9],2336552879,12),i=d(i,n,t,r,s[10],4294925233,17),r=d(r,i,n,t,s[11],2304563134,22),t=d(t,r,i,n,s[12],1804603682,7),n=d(n,t,r,i,s[13],4254626195,12),i=d(i,n,t,r,s[14],2792965006,17),r=d(r,i,n,t,s[15],1236535329,22),t=c(t,r,i,n,s[1],4129170786,5),n=c(n,t,r,i,s[6],3225465664,9),i=c(i,n,t,r,s[11],643717713,14),r=c(r,i,n,t,s[0],3921069994,20),t=c(t,r,i,n,s[5],3593408605,5),n=c(n,t,r,i,s[10],38016083,9),i=c(i,n,t,r,s[15],3634488961,14),r=c(r,i,n,t,s[4],3889429448,20),t=c(t,r,i,n,s[9],568446438,5),n=c(n,t,r,i,s[14],3275163606,9),i=c(i,n,t,r,s[3],4107603335,14),r=c(r,i,n,t,s[8],1163531501,20),t=c(t,r,i,n,s[13],2850285829,5),n=c(n,t,r,i,s[2],4243563512,9),i=c(i,n,t,r,s[7],1735328473,14),r=c(r,i,n,t,s[12],2368359562,20),t=u(t,r,i,n,s[5],4294588738,4),n=u(n,t,r,i,s[8],2272392833,11),i=u(i,n,t,r,s[11],1839030562,16),r=u(r,i,n,t,s[14],4259657740,23),t=u(t,r,i,n,s[1],2763975236,4),n=u(n,t,r,i,s[4],1272893353,11),i=u(i,n,t,r,s[7],4139469664,16),r=u(r,i,n,t,s[10],3200236656,23),t=u(t,r,i,n,s[13],681279174,4),n=u(n,t,r,i,s[0],3936430074,11),i=u(i,n,t,r,s[3],3572445317,16),r=u(r,i,n,t,s[6],76029189,23),t=u(t,r,i,n,s[9],3654602809,4),n=u(n,t,r,i,s[12],3873151461,11),i=u(i,n,t,r,s[15],530742520,16),r=u(r,i,n,t,s[2],3299628645,23),t=l(t,r,i,n,s[0],4096336452,6),n=l(n,t,r,i,s[7],1126891415,10),i=l(i,n,t,r,s[14],2878612391,15),r=l(r,i,n,t,s[5],4237533241,21),t=l(t,r,i,n,s[12],1700485571,6),n=l(n,t,r,i,s[3],2399980690,10),i=l(i,n,t,r,s[10],4293915773,15),r=l(r,i,n,t,s[1],2240044497,21),t=l(t,r,i,n,s[8],1873313359,6),n=l(n,t,r,i,s[15],4264355552,10),i=l(i,n,t,r,s[6],2734768916,15),r=l(r,i,n,t,s[13],1309151649,21),t=l(t,r,i,n,s[4],4149444226,6),n=l(n,t,r,i,s[11],3174756917,10),i=l(i,n,t,r,s[2],718787259,15),r=l(r,i,n,t,s[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+n|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=a.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=o},{"634114d48656c754":"cJ2FP","4b170874b4cb8d4e":"6UiEZ","72d4e45c6a42a2da":"6CY3D"}],"6UiEZ":[function(e,t,r){"use strict";var i=e("27eaec8a721206a5").Buffer,n=e("c5aab47d8f1d340a").Transform;function a(e){n.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("91e9fa68d440541e")(a,n),a.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(e){i=e}r(i)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++s)this._length[s]+=o,(o=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*o);return this},a.prototype._update=function(){throw Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=a},{"27eaec8a721206a5":"6CY3D",c5aab47d8f1d340a:"1mxOP","91e9fa68d440541e":"cJ2FP"}],"1mxOP":[function(e,t,r){(r=t.exports=e("68bb3bdae87803ec")).Stream=r,r.Readable=r,r.Writable=e("74167f79b688eaf7"),r.Duplex=e("84600f6783428a47"),r.Transform=e("23bee5f697448a0"),r.PassThrough=e("e0ec4b8e438dbbd"),r.finished=e("6cc0f9af7147cdbc"),r.pipeline=e("f90db22d01d3c3d1")},{"68bb3bdae87803ec":"5GpgS","74167f79b688eaf7":"7gwGj","84600f6783428a47":"3r5YV","23bee5f697448a0":"fVIBO",e0ec4b8e438dbbd:"kVosf","6cc0f9af7147cdbc":"10aVq",f90db22d01d3c3d1:"i7EMx"}],"5GpgS":[function(e,t,r){"use strict";var i,n,a,s,o,f=arguments[3],d=e("896ff8d56553f7a");t.exports=x,x.ReadableState=S,e("16782d660ac22e0c").EventEmitter;var c=function(e,t){return e.listeners(t).length},u=e("9a34f23fa53f83f7"),l=e("fb95ecaa88342eae").Buffer,h=(void 0!==f?f:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},p=e("a4a723b7297c7152");n=p&&p.debuglog?p.debuglog("stream"):function(){};var b=e("7a14cc1689b8c63e"),m=e("efa8155386cc4283"),g=e("994c984d08c7bbf2").getHighWaterMark,y=e("8de60461b822641b").codes,v=y.ERR_INVALID_ARG_TYPE,w=y.ERR_STREAM_PUSH_AFTER_EOF,_=y.ERR_METHOD_NOT_IMPLEMENTED,M=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("19affa8ce41f090d")(x,u);var E=m.errorOrDestroy,A=["error","close","destroy","pause","resume"];function S(t,r,n){i=i||e("f1c95f846e94e4eb"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(a||(a=e("6392acd10886f115").StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function x(t){if(i=i||e("f1c95f846e94e4eb"),!(this instanceof x))return new x(t);var r=this instanceof i;this._readableState=new S(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function I(e,t,r,i,a){n("readableAddChunk",t);var s,o,f,d,c,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(n("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?T(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,u);else{if(a||(s=u,o=t,l.isBuffer(o)||o instanceof h||"string"==typeof o||void 0===o||s.objectMode||(f=new v("chunk",["string","Buffer","Uint8Array"],o)),c=f),c)E(e,c);else if(u.objectMode||t&&t.length>0){if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===l.prototype||(d=t,t=l.from(d)),i)u.endEmitted?E(e,new M):R(e,u,t,!0);else if(u.ended)E(e,new w);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?R(e,u,t,!1):P(e,u)):R(e,u,t,!1)}}else i||(u.reading=!1,P(e,u))}return!u.ended&&(u.lengtht.highWaterMark){var r;t.highWaterMark=((r=e)>=1073741824?r=1073741824:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r)}return e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)}function T(e){var t=e._readableState;n("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(n("emitReadable",t.flowing),t.emittedReadable=!0,d.nextTick(C,e))}function C(e){var t=e._readableState;n("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function P(e,t){t.readingMore||(t.readingMore=!0,d.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function j(e){n("readable nexttick read 0"),e.read(0)}function B(e,t){n("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(n("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function F(e){var t=e._readableState;n("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,d.nextTick(U,t,e))}function U(e,t){if(n("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function q(e,t){for(var r=0,i=e.length;r=r.highWaterMark:r.length>0)||r.ended))return n("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?F(this):T(this),null;if(0===(e=k(e,r))&&r.ended)return 0===r.length&&F(this),null;var a=r.needReadable;return n("need readable",a),(0===r.length||r.length-e0?D(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),i!==e&&r.ended&&F(this)),null!==t&&this.emit("data",t),t},x.prototype._read=function(e){E(this,new _("_read()"))},x.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,n("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===d.stdout||e===d.stderr?b:s;function s(){n("onend"),e.end()}i.endEmitted?d.nextTick(a):r.once("end",a),e.on("unpipe",function t(a,d){n("onunpipe"),a===r&&d&&!1===d.hasUnpiped&&(d.hasUnpiped=!0,n("cleanup"),e.removeListener("close",h),e.removeListener("finish",p),e.removeListener("drain",o),e.removeListener("error",l),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",b),r.removeListener("data",u),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&o())});var o=function(){var e=r._readableState;n("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&c(r,"data")&&(e.flowing=!0,L(r))};e.on("drain",o);var f=!1;function u(t){n("ondata");var a=e.write(t);n("dest.write",a),!1===a&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==q(i.pipes,e))&&!f&&(n("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function l(t){n("onerror",t),b(),e.removeListener("error",l),0===c(e,"error")&&E(e,t)}function h(){e.removeListener("finish",p),b()}function p(){n("onfinish"),e.removeListener("close",h),b()}function b(){n("unpipe"),r.unpipe(e)}return r.on("data",u),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",l),e.once("close",h),e.once("finish",p),e.emit("pipe",r),i.flowing||(n("pipe resume"),r.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a0,!1!==i.flowing&&this.resume()):"readable"!==e||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,n("on readable",i.length,i.reading),i.length?T(this):i.reading||d.nextTick(j,this)),r},x.prototype.addListener=x.prototype.on,x.prototype.removeListener=function(e,t){var r=u.prototype.removeListener.call(this,e,t);return"readable"===e&&d.nextTick(N,this),r},x.prototype.removeAllListeners=function(e){var t=u.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&d.nextTick(N,this),t},x.prototype.resume=function(){var e=this._readableState;return e.flowing||(n("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,d.nextTick(B,this,e))),e.paused=!1,this},x.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;for(var a in e.on("end",function(){if(n("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(a){n("wrapped data"),r.decoder&&(a=r.decoder.write(a)),(!r.objectMode||null!=a)&&(r.objectMode||a&&a.length)&&(t.push(a)||(i=!0,e.pause()))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var s=0;s0&&s.length>n&&!s.warned){s.warned=!0;var n,a,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 l(){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 i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},n=l.bind(i);return n.listener=r,i.wrapFn=n,n}function p(e,t,r){var i=e._events;if(void 0===i)return[];var n=i[t];return void 0===n?[]:"function"==typeof n?r?[n.listener||n]:[n]: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 f=n[e];if(void 0===f)return!1;if("function"==typeof f)a(f,this,t);else for(var d=f.length,c=m(f,d),r=0;r=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,n=a;break}if(n<0)return this;0===n?r.shift():function(e,t){for(;t+1=0;i--)this.removeListener(e,t[i]);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?i(this._events):[]}},{}],"8Ppiy":[function(e,t,r){t.exports=e("ed88fc9aa73f911").EventEmitter},{ed88fc9aa73f911:"ikfQ0"}],hhdWi:[function(e,t,r){"use strict";function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)}return r}function n(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,r,i=o.allocUnsafe(e>>>0),n=this.head,a=0;n;)t=n.data,r=a,o.prototype.copy.call(t,i,r),a+=n.data.length,n=n.next;return i}},{key:"consume",value:function(e,t){var r;return en.length?n.length:e;if(a===n.length?i+=n:i+=n.slice(0,e),0==(e-=a)){a===n.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(a));break}++r}return this.length-=r,i}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),r=this.head,i=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var n=r.data,a=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,a),0==(e-=a)){a===n.length?(++i,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=n.slice(a));break}++i}return this.length-=i,t}},{key:d,value:function(e,t){return f(this,n(n({},t),{},{depth:0,customInspect:!1}))}}],a(r.prototype,e),t&&a(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}()},{"59f5d0111b7fa075":"2MMCE",eef6a677577349b8:"3eno3"}],cAa69:[function(e,t,r){var i=e("4284522496af5dfb");"use strict";function n(e,t){s(e,t),a(e)}function a(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return o||f?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(s,this,e)):i.nextTick(s,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?i.nextTick(a,r):(r._writableState.errorEmitted=!0,i.nextTick(n,r,e)):i.nextTick(n,r,e):t?(i.nextTick(a,r),t(e)):i.nextTick(a,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}}},{"4284522496af5dfb":"fg0b3"}],"5eEoF":[function(e,t,r){"use strict";var i=e("4e508d569e2117ef").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,n){var a=null!=t.highWaterMark?t.highWaterMark:n?t[r]:null;if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var s=n?r:"highWaterMark";throw new i(s,a)}return Math.floor(a)}return e.objectMode?16:16384}}},{"4e508d569e2117ef":"kdXiL"}],kdXiL:[function(e,t,r){"use strict";var i={};function n(e,t,r){r||(r=Error);var n=function(e){function r(r,i,n){return e.call(this,"string"==typeof t?t:t(r,i,n))||this}return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e,r}(r);n.prototype.name=r.name,n.prototype.code=e,i[e]=n}function a(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}n("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),n("ERR_INVALID_ARG_TYPE",function(e,t,r){if("string"==typeof t&&(i="not ",t.substr(!n||n<0?0:+n,i.length)===i)?(d="must not be",t=t.replace(/^not /,"")):d="must be",s=" argument",(void 0===o||o>e.length)&&(o=e.length),e.substring(o-s.length,o)===s)c="The ".concat(e," ").concat(d," ").concat(a(t,"type"));else{var i,n,s,o,f,d,c,u=("number"!=typeof f&&(f=0),f+1>e.length||-1===e.indexOf(".",f))?"argument":"property";c='The "'.concat(e,'" ').concat(u," ").concat(d," ").concat(a(t,"type"))}return c+". Received type ".concat(typeof r)},TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},{}],"3r5YV":[function(e,t,r){"use strict";var i=e("2ab1115635c50a9f"),n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var a=e("68a7582259cd5865"),s=e("93d042f8bb80078e");e("aa7b11ba5bf4defc")(c,a);for(var o=n(s.prototype),f=0;f-1))throw new M(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new m("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var i,n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||(i=r,n.ending=!0,P(this,n),i&&(n.finished?s.nextTick(i):this.once("finish",i)),n.ended=!0,this.writable=!1),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=l.destroy,x.prototype._undestroy=l.undestroy,x.prototype._destroy=function(e,t){t(e)}},{f05a2a5a09d4d8b0:"fg0b3",dc51171b07b54af1:"eje3w","44a3cc22ec64fcd3":"8Ppiy",de8f7fb7ccda8086:"2MMCE",acf48fb5d9dc6204:"cAa69","9d146cd974da0f53":"5eEoF","3c574b8881abcf86":"kdXiL","10dad555ffe77dde":"cJ2FP",c5e7171d6f58d3c0:"3r5YV"}],eje3w:[function(e,t,r){var i=arguments[3];function n(e){try{if(!i.localStorage)return!1}catch(e){return!1}var t=i.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},{}],"2c7F5":[function(e,t,r){"use strict";var i=e("2a29807c689a070a").Buffer,n=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){var t;switch(this.encoding=function(e){var t=function(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(i.isEncoding===n||!n(e)))throw Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=d,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=u,t=3;break;default:this.write=l,this.end=h;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}(this,e,0);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function d(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0?(n>0&&(e.lastNeed=n-1),n):--i=0?(n>0&&(e.lastNeed=n-2),n):--i=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"2a29807c689a070a":"6CY3D"}],"58qfu":[function(e,t,r){"use strict";var i,n=e("96b869862a96261a");function a(e,t,r){var i;return(t="symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s=e("745a3cd8f6469ed5"),o=Symbol("lastResolve"),f=Symbol("lastReject"),d=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),l=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function b(e){var t=e[o];if(null!==t){var r=e[h].read();null!==r&&(e[u]=null,e[o]=null,e[f]=null,t(p(r,!1)))}}function m(e){n.nextTick(b,e)}var g=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((a(i={get stream(){return this[h]},next:function(){var e,t,r=this,i=this[d];if(null!==i)return Promise.reject(i);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,t){n.nextTick(function(){r[d]?t(r[d]):e(p(void 0,!0))})});var a=this[u];if(a)t=new Promise((e=this,function(t,r){a.then(function(){if(e[c]){t(p(void 0,!0));return}e[l](t,r)},r)}));else{var s=this[h].read();if(null!==s)return Promise.resolve(p(s,!1));t=new Promise(this[l])}return this[u]=t,t}},Symbol.asyncIterator,function(){return this}),a(i,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),i),g);t.exports=function(e){var t,r=Object.create(y,(a(t={},h,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,f,{value:null,writable:!0}),a(t,d,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,l,{value:function(e,t){var i=r[h].read();i?(r[u]=null,r[o]=null,r[f]=null,e(p(i,!1))):(r[o]=e,r[f]=t)},writable:!0}),t));return r[u]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];null!==t&&(r[u]=null,r[o]=null,r[f]=null,t(e)),r[d]=e;return}var i=r[o];null!==i&&(r[u]=null,r[o]=null,r[f]=null,i(p(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}},{"96b869862a96261a":"fg0b3","745a3cd8f6469ed5":"10aVq"}],"10aVq":[function(e,t,r){"use strict";var i=e("d35458f585bdd360").codes.ERR_STREAM_PREMATURE_CLOSE;function n(){}t.exports=function e(t,r,a){if("function"==typeof r)return e(t,null,r);r||(r={}),s=a||n,o=!1,a=function(){if(!o){o=!0;for(var e=arguments.length,t=Array(e),r=0;r0},function(e){if(e)return a(e);u=!0,a()}),p=!1,function(e){if(!u&&!p){if(p=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();a(e||new s("pipe"))}}});return c.reduce(d)}},{"6ba21bd580ac7d57":"kdXiL",dd7fd89dd81b8674:"10aVq"}],f4Xy3:[function(e,t,r){"use strict";var i=e("c813c8075bcf823e").Buffer,n=e("84928993e7c3934b"),a=e("4b3519823770a56d"),s=Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],d=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];function u(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function l(e,t){return e<>>32-t}n(u,a),u.prototype._update=function(){for(var e,t,r,i,n,a,u,h,p,b,m,g,y,v,w,_,M,E,A,S,x,I,R,k,T,C,P,O,N,j,B,L,D,F,U,q,z,K,H,V,W,G,J,Z,X,$,Y,Q,ee,et,er,ei,en,ea,es,eo,ef,ed,ec,eu,el,eh,ep,eb,em,eg,ey,ev,ew,e_,eM,eE,eA=0;eA<16;++eA)s[eA]=this._block.readInt32LE(4*eA);for(var eS=0|this._a,ex=0|this._b,eI=0|this._c,eR=0|this._d,ek=0|this._e,eT=0|this._a,eC=0|this._b,eP=0|this._c,eO=0|this._d,eN=0|this._e,ej=0;ej<80;ej+=1)ej<16?(e=eS,t=ex,r=eI,i=eR,n=ek,eM=l(e+(t^r^i)+s[o[ej]]+0|0,d[ej])+n|0,h=eT,p=eC,b=eP,m=eO,g=eN,eE=l(h+(p^(b|~m))+s[f[ej]]+1352829926|0,c[ej])+g|0):ej<32?(w=eS,_=ex,M=eI,E=eR,A=ek,eM=l(w+(_&M|~_&E)+s[o[ej]]+1518500249|0,d[ej])+A|0,I=eT,R=eC,k=eP,T=eO,C=eN,eE=l(I+(R&T|k&~T)+s[f[ej]]+1548603684|0,c[ej])+C|0):ej<48?(N=eS,j=ex,B=eI,L=eR,D=ek,eM=l(N+((j|~B)^L)+s[o[ej]]+1859775393|0,d[ej])+D|0,q=eT,z=eC,K=eP,H=eO,V=eN,eE=l(q+((z|~K)^H)+s[f[ej]]+1836072691|0,c[ej])+V|0):ej<64?(J=eS,Z=ex,X=eI,$=eR,Y=ek,eM=l(J+(Z&$|X&~$)+s[o[ej]]+2400959708|0,d[ej])+Y|0,et=eT,er=eC,ei=eP,en=eO,ea=eN,eE=l(et+(er&ei|~er&en)+s[f[ej]]+2053994217|0,c[ej])+ea|0):(ef=eS,ed=ex,ec=eI,eu=eR,el=ek,eM=l(ef+(ed^(ec|~eu))+s[o[ej]]+2840853838|0,d[ej])+el|0,eb=eT,em=eC,eg=eP,ey=eO,ev=eN,eE=l(eb+(em^eg^ey)+s[f[ej]]+0|0,c[ej])+ev|0),eS=ek,ek=eR,eR=l(eI,10),eI=ex,ex=eM,eT=eN,eN=eO,eO=l(eP,10),eP=eC,eC=eE;var eB=this._b+eI+eO|0;this._b=this._c+eR+eN|0,this._c=this._d+ek+eT|0,this._d=this._e+eS+eC|0,this._e=this._a+ex+eP|0,this._a=eB},u.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.alloc?i.alloc(20):new i(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=u},{c813c8075bcf823e:"2MMCE","84928993e7c3934b":"cJ2FP","4b3519823770a56d":"6UiEZ"}],iSJqK:[function(e,t,r){var r=t.exports=function(e){var t=r[e=e.toLowerCase()];if(!t)throw Error(e+" is not supported (we accept pull requests)");return new t};r.sha=e("54c9313943368ce2"),r.sha1=e("6e6f42e0b6fe29ef"),r.sha224=e("cefe70c6f9f68940"),r.sha256=e("3b4e2aa73bc3fef5"),r.sha384=e("be7da8b8e5a0fd78"),r.sha512=e("25610a4ba83316a4")},{"54c9313943368ce2":"2PzCn","6e6f42e0b6fe29ef":"2txF6",cefe70c6f9f68940:"6cViI","3b4e2aa73bc3fef5":"4sfnu",be7da8b8e5a0fd78:"dDC3d","25610a4ba83316a4":"6zg8a"}],"2PzCn":[function(e,t,r){var i=e("55404b425acd1c6f"),n=e("457bc9c7737d761f"),a=e("44759e57eb2992a").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function f(){this.init(),this._w=o,n.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=t[f-3]^t[f-8]^t[f-14]^t[f-16];for(var d=0;d<80;++d){var c,u,l,h,p,b=~~(d/20),m=((c=r)<<5|c>>>27)+(u=i,l=n,h=a,0===b?u&l|~u&h:2===b?u&l|u&h|l&h:u^l^h)+o+t[d]+s[b]|0;o=a,a=n,n=(p=i)<<30|p>>>2,i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},f.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=f},{"55404b425acd1c6f":"cJ2FP","457bc9c7737d761f":"iI2Xg","44759e57eb2992a":"6CY3D"}],iI2Xg:[function(e,t,r){var i=e("fe67468afd3c1b91").Buffer;function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,n=this._blockSize,a=e.length,s=this._len,o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(4294967295&r)>>>0,n=(r-i)/4294967296;this._block.writeUInt32BE(n,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},n.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=n},{fe67468afd3c1b91:"6CY3D"}],"2txF6":[function(e,t,r){var i=e("bf0dcaa2121c06d3"),n=e("788f05b1f9753762"),a=e("ee7c2a3e649d259f").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],o=Array(80);function f(){this.init(),this._w=o,n.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,f=0;f<16;++f)t[f]=e.readInt32BE(4*f);for(;f<80;++f)t[f]=(c=t[f-3]^t[f-8]^t[f-14]^t[f-16])<<1|c>>>31;for(var d=0;d<80;++d){var c,u,l,h,p,b,m=~~(d/20),g=((u=r)<<5|u>>>27)+(l=i,h=n,p=a,0===m?l&h|~l&p:2===m?l&h|l&p|h&p:l^h^p)+o+t[d]+s[m]|0;o=a,a=n,n=(b=i)<<30|b>>>2,i=r,r=g}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0},f.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=f},{bf0dcaa2121c06d3:"cJ2FP","788f05b1f9753762":"iI2Xg",ee7c2a3e649d259f:"6CY3D"}],"6cViI":[function(e,t,r){var i=e("1759318dd61b32af"),n=e("5a24a8ff4dc414f6"),a=e("377596dd27739a66"),s=e("381289f917f16a20").Buffer,o=Array(64);function f(){this.init(),this._w=o,a.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},f.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=f},{"1759318dd61b32af":"cJ2FP","5a24a8ff4dc414f6":"4sfnu","377596dd27739a66":"iI2Xg","381289f917f16a20":"6CY3D"}],"4sfnu":[function(e,t,r){var i=e("682a6716eeab42dd"),n=e("f062bd789841a9ce"),a=e("1d47643a8adb8c1b").Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=Array(64);function f(){this.init(),this._w=o,n.call(this,64,56)}i(f,n),f.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._a,i=0|this._b,n=0|this._c,a=0|this._d,o=0|this._e,f=0|this._f,d=0|this._g,c=0|this._h,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<64;++u)t[u]=(((h=t[u-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+t[u-7]+(((p=t[u-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3)+t[u-16]|0;for(var l=0;l<64;++l){var h,p,b,m,g,y,v,w,_,M=c+(((b=o)>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(m=o,g=f,(y=d)^m&(g^y))+s[l]+t[l]|0,E=(((v=r)>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+((w=r)&(_=i)|n&(w|_))|0;c=d,d=f,f=o,o=a+M|0,a=n,n=i,i=r,r=M+E|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=n+this._c|0,this._d=a+this._d|0,this._e=o+this._e|0,this._f=f+this._f|0,this._g=d+this._g|0,this._h=c+this._h|0},f.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=f},{"682a6716eeab42dd":"cJ2FP",f062bd789841a9ce:"iI2Xg","1d47643a8adb8c1b":"6CY3D"}],dDC3d:[function(e,t,r){var i=e("2a5cbb73fedd61b"),n=e("fdb4d0946b31cdb5"),a=e("50aa04d4bd2df0e1"),s=e("3d3bcc84ec383b74").Buffer,o=Array(160);function f(){this.init(),this._w=o,a.call(this,128,112)}i(f,n),f.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},f.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=f},{"2a5cbb73fedd61b":"cJ2FP",fdb4d0946b31cdb5:"6zg8a","50aa04d4bd2df0e1":"iI2Xg","3d3bcc84ec383b74":"6CY3D"}],"6zg8a":[function(e,t,r){var i=e("8d87c82d5ce5743"),n=e("27d0146c4419ba93"),a=e("602d9c7256ca6bf7").Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=Array(160);function f(){this.init(),this._w=o,n.call(this,128,112)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function c(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function u(e,t){return e>>>0>>0?1:0}i(f,n),f.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},f.prototype._update=function(e){for(var t=this._w,r=0|this._ah,i=0|this._bh,n=0|this._ch,a=0|this._dh,o=0|this._eh,f=0|this._fh,l=0|this._gh,h=0|this._hh,p=0|this._al,b=0|this._bl,m=0|this._cl,g=0|this._dl,y=0|this._el,v=0|this._fl,w=0|this._gl,_=0|this._hl,M=0;M<32;M+=2)t[M]=e.readInt32BE(4*M),t[M+1]=e.readInt32BE(4*M+4);for(;M<160;M+=2){var E,A,S,x,I,R,k,T,C=t[M-30],P=t[M-30+1],O=((E=C)>>>1|(A=P)<<31)^(E>>>8|A<<24)^E>>>7,N=((S=P)>>>1|(x=C)<<31)^(S>>>8|x<<24)^(S>>>7|x<<25);C=t[M-4],P=t[M-4+1];var j=((I=C)>>>19|(R=P)<<13)^(R>>>29|I<<3)^I>>>6,B=((k=P)>>>19|(T=C)<<13)^(T>>>29|k<<3)^(k>>>6|T<<26),L=t[M-14],D=t[M-14+1],F=t[M-32],U=t[M-32+1],q=N+D|0,z=O+L+u(q,N)|0;z=(z=z+j+u(q=q+B|0,B)|0)+F+u(q=q+U|0,U)|0,t[M]=z,t[M+1]=q}for(var K=0;K<160;K+=2){z=t[K],q=t[K+1];var H,V,W,G,J,Z,X,$,Y,Q,ee=(H=r)&(V=i)|n&(H|V),et=(W=p)&(G=b)|m&(W|G),er=d(r,p),ei=d(p,r),en=c(o,y),ea=c(y,o),es=s[K],eo=s[K+1],ef=(J=o,Z=f,(X=l)^J&(Z^X)),ed=($=y,Y=v,(Q=w)^$&(Y^Q)),ec=_+ea|0,eu=h+en+u(ec,_)|0;eu=(eu=(eu=eu+ef+u(ec=ec+ed|0,ed)|0)+es+u(ec=ec+eo|0,eo)|0)+z+u(ec=ec+q|0,q)|0;var el=ei+et|0,eh=er+ee+u(el,ei)|0;h=l,_=w,l=f,w=v,f=o,v=y,o=a+eu+u(y=g+ec|0,g)|0,a=n,g=m,n=i,m=b,i=r,b=p,r=eu+eh+u(p=ec+el|0,ec)|0}this._al=this._al+p|0,this._bl=this._bl+b|0,this._cl=this._cl+m|0,this._dl=this._dl+g|0,this._el=this._el+y|0,this._fl=this._fl+v|0,this._gl=this._gl+w|0,this._hl=this._hl+_|0,this._ah=this._ah+r+u(this._al,p)|0,this._bh=this._bh+i+u(this._bl,b)|0,this._ch=this._ch+n+u(this._cl,m)|0,this._dh=this._dh+a+u(this._dl,g)|0,this._eh=this._eh+o+u(this._el,y)|0,this._fh=this._fh+f+u(this._fl,v)|0,this._gh=this._gh+l+u(this._gl,w)|0,this._hh=this._hh+h+u(this._hl,_)|0},f.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,r,i){e.writeInt32BE(t,i),e.writeInt32BE(r,i+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=f},{"8d87c82d5ce5743":"cJ2FP","27d0146c4419ba93":"iI2Xg","602d9c7256ca6bf7":"6CY3D"}],"2sGTM":[function(e,t,r){var i=e("631f7eb12d35b579").Buffer,n=e("5b378a2a05398c5").Transform,a=e("d42da7de127e1c4b").StringDecoder;function s(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("7a0f2f27fe0a389b")(s,n),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){i=e}finally{r(i)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new a(t),this._encoding=t),this._encoding!==t)throw Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i},t.exports=s},{"631f7eb12d35b579":"6CY3D","5b378a2a05398c5":"8ILAD",d42da7de127e1c4b:"2c7F5","7a0f2f27fe0a389b":"cJ2FP"}],"8ILAD":[function(e,t,r){t.exports=n;var i=e("96b62835346f84f0").EventEmitter;function n(){i.call(this)}e("4a6ee9586f51c38d")(n,i),n.Readable=e("e6206e1f4d20abc7"),n.Writable=e("a3f1405f37e1dfb1"),n.Duplex=e("6691a72c5fc222fd"),n.Transform=e("43a905ce7ec6ac9e"),n.PassThrough=e("dd715550d7783885"),n.finished=e("d90a3520974ec96e"),n.pipeline=e("eb2779cfd287c5c9"),n.Stream=n,n.prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function a(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",a),e._isStdio||t&&!1===t.end||(r.on("end",o),r.on("close",f));var s=!1;function o(){s||(s=!0,e.end())}function f(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function d(e){if(c(),0===i.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),e.removeListener("drain",a),r.removeListener("end",o),r.removeListener("close",f),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",d),e.on("error",d),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},{"96b62835346f84f0":"ikfQ0","4a6ee9586f51c38d":"cJ2FP",e6206e1f4d20abc7:"5GpgS",a3f1405f37e1dfb1:"7gwGj","6691a72c5fc222fd":"3r5YV","43a905ce7ec6ac9e":"fVIBO",dd715550d7783885:"kVosf",d90a3520974ec96e:"10aVq",eb2779cfd287c5c9:"i7EMx"}],gCyFN:[function(e,t,r){"use strict";var i=e("6a73c7c8ca6b61fa"),n=e("e1b443c27c833bc0"),a=e("7571755cc57fd60e"),s=e("b8ba1339feab1938").Buffer,o=e("c00fb3fd28cadeb2"),f=e("b7f8eae556813ec1"),d=e("40c5a912778271f7"),c=s.alloc(128);function u(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new f:d(e)).update(t).digest():t.length64?t=e(t):t.length<64&&(t=n.concat([t,s],64));for(var r=this._ipad=n.allocUnsafe(64),i=this._opad=n.allocUnsafe(64),o=0;o<64;o++)r[o]=54^t[o],i[o]=92^t[o];this._hash=[r]}i(o,a),o.prototype._update=function(e){this._hash.push(e)},o.prototype._final=function(){var e=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,e]))},t.exports=o},{"2baf2864ece10f11":"cJ2FP",c7fb5e22d675c53c:"6CY3D","8fdec7d6b96329ea":"2sGTM"}],kJcWJ:[function(e,t,r){var i=e("f07cc93582c49804");t.exports=function(e){return new i().update(e).digest()}},{f07cc93582c49804:"itRd4"}],c6IbM:[function(e,t,r){t.exports=e("b6a65ebe2480cb5a")},{b6a65ebe2480cb5a:"6fwWv"}],"6fwWv":[function(e,t,r){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},{}],lsc2y:[function(e,t,r){r.pbkdf2=e("50310b85983e4f32"),r.pbkdf2Sync=e("5f7b0df9c2ef196d")},{"50310b85983e4f32":"lNDNg","5f7b0df9c2ef196d":"8Fput"}],lNDNg:[function(e,t,r){var i,n,a=arguments[3],s=e("a1f6b66eddae53e0").Buffer,o=e("a915fb954a5b62ac"),f=e("76b8747fb257c65c"),d=e("f6f43e3eaadd9ae9"),c=e("d12cab846fc3f945"),u=a.crypto&&a.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function p(){return n||(n=a.process&&a.process.nextTick?a.process.nextTick:a.queueMicrotask?a.queueMicrotask:a.setImmediate?a.setImmediate:a.setTimeout)}function b(e,t,r,i,n){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:n}},e,i<<3)}).then(function(e){return s.from(e)})}t.exports=function(e,t,r,n,m,g){"function"==typeof m&&(g=m,m=void 0);var y=l[(m=m||"sha1").toLowerCase()];if(!y||"function"!=typeof a.Promise){p()(function(){var i;try{i=d(e,t,r,n,m)}catch(e){return g(e)}g(null,i)});return}if(o(r,n),e=c(e,f,"Password"),t=c(t,f,"Salt"),"function"!=typeof g)throw Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){p()(function(){t(null,e)})},function(e){p()(function(){t(e)})})}((function(e){if(a.process&&!a.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=b(i=i||s.alloc(8),i,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t})(y).then(function(i){return i?b(e,t,r,n,y):d(e,t,r,n,m)}),g)}},{a1f6b66eddae53e0:"6CY3D",a915fb954a5b62ac:"iRtZ5","76b8747fb257c65c":"4na3y",f6f43e3eaadd9ae9:"8Fput",d12cab846fc3f945:"hObHx"}],iRtZ5:[function(e,t,r){t.exports=function(e,t){if("number"!=typeof e)throw TypeError("Iterations not a number");if(e<0)throw TypeError("Bad iterations");if("number"!=typeof t)throw TypeError("Key length not a number");if(t<0||t>1073741823||t!=t)throw TypeError("Bad key length")}},{}],"4na3y":[function(e,t,r){var i,n=arguments[3],a=e("6b9fe6b7a0bbf941");i=n.process&&n.process.browser?"utf-8":n.process&&n.process.version?parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=i},{"6b9fe6b7a0bbf941":"fg0b3"}],"8Fput":[function(e,t,r){var i=e("1e04e1c2d51cd13d"),n=e("42015ac33af139f8"),a=e("a7eb8e83614997ca"),s=e("290c92d9373f664d").Buffer,o=e("1b04775c4713da3d"),f=e("b290a762e8475e9f"),d=e("82c0eccfe5526b2c"),c=s.alloc(128),u={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var o="rmd160"===e||"ripemd160"===e?function(e){return new n().update(e).digest()}:"md5"===e?i:function(t){return a(e).update(t).digest()},f="sha512"===e||"sha384"===e?128:64;t.length>f?t=o(t):t.length>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,i){for(var n=0,a=0,s=6;s>=0;s-=2){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>>o+s&1;for(var o=0;o<=24;o+=8)n<<=1,n|=e>>>o+s&1}for(var s=6;s>=0;s-=2){for(var o=1;o<=25;o+=8)a<<=1,a|=t>>>o+s&1;for(var o=1;o<=25;o+=8)a<<=1,a|=e>>>o+s&1}r[i+0]=n>>>0,r[i+1]=a>>>0},r.rip=function(e,t,r,i){for(var n=0,a=0,s=0;s<4;s++)for(var o=24;o>=0;o-=8)n<<=1,n|=t>>>o+s&1,n<<=1,n|=e>>>o+s&1;for(var s=4;s<8;s++)for(var o=24;o>=0;o-=8)a<<=1,a|=t>>>o+s&1,a<<=1,a|=e>>>o+s&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.pc1=function(e,t,r,i){for(var n=0,a=0,s=7;s>=5;s--){for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+s&1;for(var o=0;o<=24;o+=8)n<<=1,n|=e>>o+s&1}for(var o=0;o<=24;o+=8)n<<=1,n|=t>>o+s&1;for(var s=1;s<=3;s++){for(var o=0;o<=24;o+=8)a<<=1,a|=t>>o+s&1;for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1}for(var o=0;o<=24;o+=8)a<<=1,a|=e>>o+s&1;r[i+0]=n>>>0,r[i+1]=a>>>0},r.r28shl=function(e,t){return e<>>28-t};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var a=0,s=0,o=i.length>>>1,f=0;f>>i[f]&1;for(var f=o;f>>i[f]&1;r[n+0]=a>>>0,r[n+1]=s>>>0},r.expand=function(e,t,r){var i=0,n=0;i=(1&e)<<5|e>>>27;for(var a=23;a>=15;a-=4)i<<=6,i|=e>>>a&63;for(var a=11;a>=3;a-=4)n|=e>>>a&63,n<<=6;n|=(31&e)<<1|e>>>31,t[r+0]=i>>>0,t[r+1]=n>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,i=0;i<4;i++){var a=e>>>18-6*i&63,s=n[64*i+a];r<<=4,r|=s}for(var i=0;i<4;i++){var a=t>>>18-6*i&63,s=n[256+64*i+a];r<<=4,r|=s}return r>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r>>a[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var i=e.toString(2);i.length0;i--)t+=this._buffer(e,t),r+=this._flushBuffer(n,r);return t+=this._buffer(e,t),n},n.prototype.final=function(e){var t,r;return(e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t)?t.concat(r):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,o),n=a.r28shl(n,o),a.pc2(r,n,e.keys,s)}},f.prototype._update=function(e,t,r,i){var n=this._desState,s=a.readUInt32BE(e,t),o=a.readUInt32BE(e,t+4);a.ip(s,o,n.tmp,0),s=n.tmp[0],o=n.tmp[1],"encrypt"===this.type?this._encrypt(n,s,o,n.tmp,0):this._decrypt(n,s,o,n.tmp,0),s=n.tmp[0],o=n.tmp[1],a.writeUInt32BE(r,s,i),a.writeUInt32BE(r,o,i+4)},f.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,i=t;i>>0,s=h}a.rip(o,s,i,n)},f.prototype._decrypt=function(e,t,r,i,n){for(var s=r,o=t,f=e.keys.length-2;f>=0;f-=2){var d=e.keys[f],c=e.keys[f+1];a.expand(s,e.tmp,0),d^=e.tmp[0],c^=e.tmp[1];var u=a.substitute(d,c),l=a.permute(u),h=s;s=(o^l)>>>0,o=h}a.rip(s,o,i,n)}},{"2e43e10aa2de50ed":"h59lk","551480b8aa09d318":"cJ2FP",b6dc5b7926f5a82f:"jAhm7","38547d2f1967e2cd":"5eHfG"}],esso5:[function(e,t,r){"use strict";var i=e("63ac301527fc117b"),n=e("7d48f4d3d39d3b86"),a={};function s(e){i.equal(e.length,8,"Invalid IV length"),this.iv=Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r>o%8,e._prev=function(e,t){var r=e.length,n=-1,a=i.allocUnsafe(e.length);for(e=i.concat([e,i.from([t])]);++n>7;return a}(e._prev,r?a:s);return f}(e,t[s],r);return a}},{"5eb46e1eefd15734":"6CY3D"}],"5U0Aq":[function(e,t,r){var i=e("b3ff65e516d49ef1").Buffer,n=e("7f0c2ff10cf58835");r.encrypt=function(e,t){for(;e._cache.length>>24]^c[p>>>16&255]^u[b>>>8&255]^l[255&m]^t[g++],s=d[p>>>24]^c[b>>>16&255]^u[m>>>8&255]^l[255&h]^t[g++],o=d[b>>>24]^c[m>>>16&255]^u[h>>>8&255]^l[255&p]^t[g++],f=d[m>>>24]^c[h>>>16&255]^u[p>>>8&255]^l[255&b]^t[g++],h=a,p=s,b=o,m=f;return a=(i[h>>>24]<<24|i[p>>>16&255]<<16|i[b>>>8&255]<<8|i[255&m])^t[g++],s=(i[p>>>24]<<24|i[b>>>16&255]<<16|i[m>>>8&255]<<8|i[255&h])^t[g++],[a>>>=0,s>>>=0,o=((i[b>>>24]<<24|i[m>>>16&255]<<16|i[h>>>8&255]<<8|i[255&p])^t[g++])>>>0,f=((i[m>>>24]<<24|i[h>>>16&255]<<16|i[p>>>8&255]<<8|i[255&b])^t[g++])>>>0]}var o=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var e=Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],n=[[],[],[],[]],a=[[],[],[],[]],s=0,o=0,f=0;f<256;++f){var d=o^o<<1^o<<2^o<<3^o<<4;d=d>>>8^255&d^99,r[s]=d,i[d]=s;var c=e[s],u=e[c],l=e[u],h=257*e[d]^16843008*d;n[0][s]=h<<24|h>>>8,n[1][s]=h<<16|h>>>16,n[2][s]=h<<8|h>>>24,n[3][s]=h,h=16843009*l^65537*u^257*c^16843008*s,a[0][d]=h<<24|h>>>8,a[1][d]=h<<16|h>>>16,a[2][d]=h<<8|h>>>24,a[3][d]=h,0===s?s=o=1:(s=c^e[e[e[l^c]]],o^=e[e[o]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:n,INV_SUB_MIX:a}}();function d(e){this._key=n(e),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,n=[],a=0;a>>24,s=(f.SBOX[s>>>24]<<24|f.SBOX[s>>>16&255]<<16|f.SBOX[s>>>8&255]<<8|f.SBOX[255&s])^o[a/t|0]<<24):t>6&&a%t==4&&(s=f.SBOX[s>>>24]<<24|f.SBOX[s>>>16&255]<<16|f.SBOX[s>>>8&255]<<8|f.SBOX[255&s]),n[a]=n[a-t]^s}for(var d=[],c=0;c>>24]]^f.INV_SUB_MIX[1][f.SBOX[l>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[l>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[255&l]]}this._nRounds=r,this._keySchedule=n,this._invKeySchedule=d},d.prototype.encryptBlockRaw=function(e){return s(e=n(e),this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},d.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},d.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),a=i.allocUnsafe(16);return a.writeUInt32BE(r[0],0),a.writeUInt32BE(r[3],4),a.writeUInt32BE(r[2],8),a.writeUInt32BE(r[1],12),a},d.prototype.scrub=function(){a(this._keySchedule),a(this._invKeySchedule),a(this._key)},t.exports.AES=d},{"9c4f04f75f375be":"6CY3D"}],kfA0b:[function(e,t,r){var i=e("815beeecbe039d1a").Buffer,n=i.alloc(16,0);function a(e){var t=i.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t0;t--)i[t]=i[t]>>>1|(1&i[t-1])<<31;i[0]=i[0]>>>1,r&&(i[0]=-520093696^i[0])}this.state=a(n)},s.prototype.update=function(e){var t;for(this.cache=i.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(i.concat([this.cache,n],16)),this.ghash(a([0,e,0,t])),this.state},t.exports=s},{"815beeecbe039d1a":"6CY3D"}],"3gyL0":[function(e,t,r){var i=e("499d62308d7dac40"),n=e("bc4a1f7113303d58").Buffer,a=e("e701745abb80bc49");function s(e,t,r,s){a.call(this),this._cipher=new i.AES(t),this._prev=n.from(r),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=s,this._mode=e}e("3765f10ec3d7a831")(s,a),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"499d62308d7dac40":"f9w0b",bc4a1f7113303d58:"6CY3D",e701745abb80bc49:"2sGTM","3765f10ec3d7a831":"cJ2FP"}],hNNhz:[function(e,t,r){var i=e("adb33291e0f9c65a").Buffer,n=e("15f984dc9e3797d9");t.exports=function(e,t,r,a){if(i.isBuffer(e)||(e=i.from(e,"binary")),t&&(i.isBuffer(t)||(t=i.from(t,"binary")),8!==t.length))throw RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,o=i.alloc(s),f=i.alloc(a||0),d=i.alloc(0);s>0||a>0;){var c=new n;c.update(d),c.update(e),t&&c.update(t),d=c.digest();var u=0;if(s>0){var l=o.length-s;u=Math.min(s,d.length),d.copy(o,l,0,u),s-=u}if(u0){var h=f.length-a,p=Math.min(a,d.length-u);d.copy(f,h,u,u+p),a-=p}}return d.fill(0),{key:o,iv:f}}},{adb33291e0f9c65a:"6CY3D","15f984dc9e3797d9":"itRd4"}],aeVam:[function(e,t,r){var i=e("2f5914bdcee0aab2"),n=e("2eedc5cbfd1eafeb").Buffer,a=e("2b861a45e2a2d1fe"),s=e("54b6d333d74ae9c8"),o=e("4b438dd1327af64e"),f=e("928aea47daff81dc"),d=e("25542df8da1646fe");function c(e,t,r){o.call(this),this._cache=new u,this._last=void 0,this._cipher=new f.AES(t),this._prev=n.from(r),this._mode=e,this._autopadding=!0}function u(){this.cache=n.allocUnsafe(0)}function l(e,t,r){var o=a[e.toLowerCase()];if(!o)throw TypeError("invalid suite type");if("string"==typeof r&&(r=n.from(r)),"GCM"!==o.mode&&r.length!==o.iv)throw TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=n.from(t)),t.length!==o.key/8)throw TypeError("invalid key length "+t.length);return"stream"===o.type?new s(o.module,t,r,!0):"auth"===o.type?new i(o.module,t,r,!0):new c(o.module,t,r)}e("153b885d89d2089e")(c,o),c.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return n.concat(i)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw Error("unable to decrypt data");for(var r=-1;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw TypeError("invalid suite type");var i=d(t,!1,r.key,r.iv);return l(e,i.key,i.iv)},r.createDecipheriv=l},{"2f5914bdcee0aab2":"5L2GD","2eedc5cbfd1eafeb":"6CY3D","2b861a45e2a2d1fe":"XLBUv","54b6d333d74ae9c8":"3gyL0","4b438dd1327af64e":"2sGTM","928aea47daff81dc":"f9w0b","25542df8da1646fe":"hNNhz","153b885d89d2089e":"cJ2FP"}],PVMme:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],CQhDB:[function(e,t,r){var i=e("55a084ce1a29baa3").Buffer,n=e("5ed99cf028c947ad"),a=e("8da23ed5d7edf952"),s=e("981b8db942febaf3"),o={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new i(a[e].prime,"hex"),r=new i(a[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,a,f){return i.isBuffer(r)||void 0===o[r]?e(t,"binary",r,a):(r=r||"binary",f=f||"binary",a=a||new i([2]),i.isBuffer(a)||(a=new i(a,f)),"number"==typeof t)?new s(n(t,a),a,!0):(i.isBuffer(t)||(t=new i(t,r)),new s(t,a,!0))}},{"55a084ce1a29baa3":"2MMCE","5ed99cf028c947ad":"jJXBy","8da23ed5d7edf952":"4r6A7","981b8db942febaf3":"jpk3A"}],jJXBy:[function(e,t,r){var i=e("e11b752ebf414e01");t.exports=g,g.simpleSieve=b,g.fermatTest=m;var n=e("6139735ee181267b"),a=new n(24),s=new(e("7b3f73f9ab7b2b6a")),o=new n(1),f=new n(2),d=new n(5);new n(16),new n(8);var c=new n(10),u=new n(3);new n(7);var l=new n(11),h=new n(4);new n(12);var p=null;function b(e){for(var t=function(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var i=Math.ceil(Math.sqrt(r)),n=0;ne;)r.ishrn(1);if(r.isEven()&&r.iadd(o),r.testn(1)||r.iadd(f),t.cmp(f)){if(!t.cmp(d))for(;r.mod(c).cmp(u);)r.iadd(h)}else for(;r.mod(a).cmp(l);)r.iadd(h);if(b(p=r.shrn(1))&&b(r)&&m(p)&&m(r)&&s.test(p)&&s.test(r))return r}}},{e11b752ebf414e01:"6xAZm","6139735ee181267b":"daGd1","7b3f73f9ab7b2b6a":"9C6Ip"}],daGd1:[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("a4b3a214327293bc").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{a4b3a214327293bc:"3eno3"}],"9C6Ip":[function(e,t,r){var i=e("31d279a7646d17e9"),n=e("1ed277e13aa258c6");function a(e){this.rand=e||new n.Rand}t.exports=a,a.create=function(e){return new a(e)},a.prototype._randbelow=function(e){var t=Math.ceil(e.bitLength()/8);do var r=new i(this.rand.generate(t));while(r.cmp(e)>=0)return r},a.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},a.prototype.test=function(e,t,r){var n=e.bitLength(),a=i.mont(e),s=new i(1).toRed(a);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),f=0;!o.testn(f);f++);for(var d=e.shrn(f),c=o.toRed(a);t>0;t--){var u=this._randrange(new i(2),o);r&&r(u);var l=u.toRed(a).redPow(d);if(0!==l.cmp(s)&&0!==l.cmp(c)){for(var h=1;h0;t--){var c=this._randrange(new i(2),s),u=e.gcd(c);if(0!==u.cmpn(1))return u;var l=c.toRed(n).redPow(f);if(0!==l.cmp(a)&&0!==l.cmp(d)){for(var h=1;h=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1a01f12e7676c433":"3eno3"}],"4r6A7":[function(e,t,r){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},{}],jpk3A:[function(e,t,r){var i=e("18c258c24cda4205").Buffer,n=e("6cfaed55db270425"),a=new(e("8bc0d9823ee74460")),s=new n(24),o=new n(11),f=new n(10),d=new n(3),c=new n(7),u=e("dd39d03f4b3404fc"),l=e("e2757e55299a3ebc");function h(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function p(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}t.exports=m;var b={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function g(e,t){var r=new i(e.toArray());return t?r.toString(t):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r,i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in b)return b[n];var l=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!a.test(e))return l+=1,"02"===i||"05"===i?l+=8:l+=4,b[n]=l,l;switch(a.test(e.shrn(1))||(l+=2),i){case"02":e.mod(s).cmp(o)&&(l+=8);break;case"05":(r=e.mod(f)).cmp(d)&&r.cmp(c)&&(l+=8);break;default:l+=4}return b[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new i(t.toArray()),a=this.getPrime();if(r.length0&&r.ishrn(i),r}function l(e,t,r){var a,s;do{for(a=i.alloc(0);8*a.length=0||!t.umod(e.prime1)||!t.umod(e.prime2))return t}function o(e,t){var r,a={blinder:(r=s(t)).toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed(),unblinder:r.invm(t.modulus)},o=t.modulus.byteLength(),f=new n(e).mul(a.blinder).umod(t.modulus),d=f.toRed(n.mont(t.prime1)),c=f.toRed(n.mont(t.prime2)),u=t.coefficient,l=t.prime1,h=t.prime2,p=d.redPow(t.exponent1).fromRed(),b=c.redPow(t.exponent2).fromRed(),m=p.isub(b).imul(u).umod(l).imul(h);return b.iadd(m).imul(a.unblinder).umod(t.modulus).toArrayLike(i,"be",o)}o.getr=s,t.exports=o},{a54d4e6dcf549cd6:"2MMCE","5d911a7c773081c":"lXPno",cfe4d67488897360:"6xAZm"}],"3om1K":[function(e,t,r){"use strict";r.version=e("2a438d9f80ccc729").version,r.utils=e("11dc1cc2c8ec1046"),r.rand=e("465a97970e1e7635"),r.curve=e("2d87f6e20849863a"),r.curves=e("5f656c8e30f15f72"),r.ec=e("a08ba2c08f481c70"),r.eddsa=e("82168ebad05dc21e")},{"2a438d9f80ccc729":"8GXUe","11dc1cc2c8ec1046":"8w6YP","465a97970e1e7635":"dpC9B","2d87f6e20849863a":"3UZlV","5f656c8e30f15f72":"6MFPZ",a08ba2c08f481c70:"kIvZ5","82168ebad05dc21e":"9s1bH"}],"8GXUe":[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],"8w6YP":[function(e,t,r){"use strict";var i=e("c8de895fc166a226"),n=e("299f4897766ebbc1"),a=e("298ef03d30e5aac");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{c8de895fc166a226:"6lcJ5","299f4897766ebbc1":"h59lk","298ef03d30e5aac":"6lUA8"}],"6lcJ5":[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("b9733830054e0aa9").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{b9733830054e0aa9:"3eno3"}],"3UZlV":[function(e,t,r){"use strict";r.base=e("5861308862489ae6"),r.short=e("d783eaed5378c550"),r.mont=e("9ab0eb6020e565d4"),r.edwards=e("e288cebb6c42e4ae")},{"5861308862489ae6":"8EhXe",d783eaed5378c550:"eA9et","9ab0eb6020e565d4":"B3G3R",e288cebb6c42e4ae:"1TDhX"}],"8EhXe":[function(e,t,r){"use strict";var i=e("1a09a4ba257ba7ab"),n=e("5428e0a2ad594ef4"),a=n.getNAF,s=n.getJSF,o=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{c4b5844351271000:"8w6YP",c77af587b504c80f:"6lcJ5","7523cd1d14445538":"cJ2FP","1935bd9279880978":"8EhXe"}],B3G3R:[function(e,t,r){"use strict";var i=e("fd96c1c8c8f9ea6d"),n=e("a32e13b85cdf84eb"),a=e("b62d59dafdba3e20"),s=e("d2b62737ac9fe936");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{fd96c1c8c8f9ea6d:"6lcJ5",a32e13b85cdf84eb:"cJ2FP",b62d59dafdba3e20:"8EhXe",d2b62737ac9fe936:"8w6YP"}],"1TDhX":[function(e,t,r){"use strict";var i=e("5efc345035c646bb"),n=e("d4ec0564d5f7f877"),a=e("d620d726e89b0ede"),s=e("92fb2867c8d24c1e"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{"5efc345035c646bb":"8w6YP",d4ec0564d5f7f877:"6lcJ5",d620d726e89b0ede:"cJ2FP","92fb2867c8d24c1e":"8EhXe"}],"6MFPZ":[function(e,t,r){"use strict";var i,n=e("c93b9821af880fe2"),a=e("d92e038aede152a5"),s=e("9d28f7052861ee84").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("69142e49088ac241")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{c93b9821af880fe2:"2Tlxk",d92e038aede152a5:"3UZlV","9d28f7052861ee84":"8w6YP","69142e49088ac241":"eYFGk"}],eYFGk:[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"]]}}},{}],kIvZ5:[function(e,t,r){"use strict";var i=e("ee63e3b3a497d36f"),n=e("2d077ace592816e9"),a=e("64b396c866f9458c"),s=e("45c85142bdbe6bb"),o=e("664c47e29480ec15"),f=a.assert,d=e("1037090aed6fe722"),c=e("c324c6568a16eb35");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{ee63e3b3a497d36f:"6lcJ5","2d077ace592816e9":"eo8Xm","64b396c866f9458c":"8w6YP","45c85142bdbe6bb":"6MFPZ","664c47e29480ec15":"dpC9B","1037090aed6fe722":"lSpRn",c324c6568a16eb35:"3VnRg"}],lSpRn:[function(e,t,r){"use strict";var i=e("590f885cd6c9c0ee"),n=e("c5e5492c7f8a75a5").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},{"590f885cd6c9c0ee":"6lcJ5",c5e5492c7f8a75a5:"8w6YP"}],"3VnRg":[function(e,t,r){"use strict";var i=e("d9a236fe93a1d25d"),n=e("ea141aa3fe092449"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{d9a236fe93a1d25d:"6lcJ5",ea141aa3fe092449:"8w6YP"}],"9s1bH":[function(e,t,r){"use strict";var i=e("24028bd62cb870f3"),n=e("b76f439da91f44c3"),a=e("152d1e4c449cc9e4"),s=a.assert,o=a.parseBytes,f=e("a58cdb34cacac97e"),d=e("15d048aac701be19");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"7f1ee543ef73731a":"3eno3"}],"3aRbo":[function(e,t,r){"use strict";let i=e("f26403796e11865b"),n=e("a00827f0f69fbce"),a=e("64c493c8ea32f1a7");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){let t=this.name;function r(e){this._initNamed(e,t)}return a(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{f26403796e11865b:"lGnKL",a00827f0f69fbce:"WaCMa","64c493c8ea32f1a7":"cJ2FP"}],lGnKL:[function(e,t,r){"use strict";r.der=e("6153180e09514e51"),r.pem=e("babaf0c4b3d9210a")},{"6153180e09514e51":"e161A",babaf0c4b3d9210a:"f6svv"}],e161A:[function(e,t,r){"use strict";let i=e("94789e1422bf21a1"),n=e("9dd3df095b47dfb").Buffer,a=e("ee66f238a776dfa1"),s=e("e0096fa50301b4fb");function o(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){a.call(this,"der",e)}function d(e){return e<10?"0"+e:e}t.exports=o,o.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},i(f,a),f.prototype._encodeComposite=function(e,t,r,i){let a=function(e,t,r,i){let n;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))n=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return i.error("Unknown tag: "+e);n=e}return n>=31?i.error("Multi-octet tag encoding unsupported"):(t||(n|=32),n|=s.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(i.length<128){let e=n.alloc(2);return e[0]=a,e[1]=i.length,this._createEncoderBuffer([e,i])}let o=1;for(let e=i.length;e>=256;e>>=8)o++;let f=n.alloc(2+o);f[0]=a,f[1]=128|o;for(let e=1+o,t=i.length;t>0;e--,t>>=8)f[e]=255&t;return this._createEncoderBuffer([f,i])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){let t=n.alloc(2*e.length);for(let r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let i=0;for(let t=0;t=128;r>>=7)i++}let a=n.alloc(i),s=a.length-1;for(let t=e.length-1;t>=0;t--){let r=e[t];for(a[s--]=127&r;(r>>=7)>0;)a[s--]=128|127&r}return this._createEncoderBuffer(a)},f.prototype._encodeTime=function(e,t){let r;let i=new Date(e);return"gentime"===t?r=[d(i.getUTCFullYear()),d(i.getUTCMonth()+1),d(i.getUTCDate()),d(i.getUTCHours()),d(i.getUTCMinutes()),d(i.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[d(i.getUTCFullYear()%100),d(i.getUTCMonth()+1),d(i.getUTCDate()),d(i.getUTCHours()),d(i.getUTCMinutes()),d(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!n.isBuffer(e)){let t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=n.from(t)}if(n.isBuffer(e)){let t=e.length;0===e.length&&t++;let r=n.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let t=e;t>=256;t>>=8)r++;let i=Array(r);for(let t=i.length-1;t>=0;t--)i[t]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(n.from(i))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){let i;let n=this._baseState;if(null===n.default)return!1;let a=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),a.length!==n.defaultBuffer.length)return!1;for(i=0;i=2147483648)throw RangeError('The value "'+e+'" is invalid for option "size"');var i=s(e);return t&&0!==t.length?"string"==typeof r?i.fill(t,r):i.fill(t):i.fill(0),i}),!o.kStringMaxLength)try{o.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(e){}!o.constants&&(o.constants={MAX_LENGTH:o.kMaxLength},o.kStringMaxLength&&(o.constants.MAX_STRING_LENGTH=o.kStringMaxLength)),t.exports=o},{e7af3484edf6bee9:"fg0b3","9b1fd4bf3515d7a6":"2MMCE"}],"4XjV6":[function(e,t,r){"use strict";let i=e("3f60e59b9a23b489").Reporter,n=e("485fe0fa4bfbbbca").EncoderBuffer,a=e("485fe0fa4bfbbbca").DecoderBuffer,s=e("1bf7ce79b1c01d8b"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function d(e,t,r){let i={};this._baseState=i,i.name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=d;let c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];d.prototype.clone=function(){let e=this._baseState,t={};c.forEach(function(r){t[r]=e[r]});let r=new this.constructor(t.parent);return r._baseState=t,r},d.prototype._wrap=function(){let e=this._baseState;f.forEach(function(t){this[t]=function(){let r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},d.prototype._init=function(e){let t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},d.prototype._useArgs=function(e){let t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;let t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);let i=e[r];t[i]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){d.prototype[e]=function(){let t=this._baseState;throw Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(e){d.prototype[e]=function(){let t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),d.prototype.use=function(e){s(e);let t=this._baseState;return s(null===t.use),t.use=e,this},d.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this},d.prototype.def=function(e){let t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},d.prototype.explicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},d.prototype.implicit=function(e){let t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},d.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},d.prototype.key=function(e){let t=this._baseState;return s(null===t.key),t.key=e,this},d.prototype.any=function(){let e=this._baseState;return e.any=!0,this},d.prototype.choice=function(e){let t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},d.prototype.contains=function(e){let t=this._baseState;return s(null===t.use),t.contains=e,this},d.prototype._decode=function(e,t){let r;let i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));let n=i.default,s=!0,o=null;if(null!==i.key&&(o=e.enterKey(i.key)),i.optional){let r=null;if(null!==i.explicit?r=i.explicit:null!==i.implicit?r=i.implicit:null!==i.tag&&(r=i.tag),null!==r||i.any){if(s=this._peekTag(e,r,i.any),e.isError(s))return s}else{let r=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(r)}}if(i.obj&&s&&(r=e.enterObject()),s){if(null!==i.explicit){let t=this._decodeTag(e,i.explicit);if(e.isError(t))return t;e=t}let r=e.offset;if(null===i.use&&null===i.choice){let t;i.any&&(t=e.save());let r=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(r))return r;i.any?n=e.raw(t):e=r}if(t&&t.track&&null!==i.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(n))return n;if(i.any||null!==i.choice||null===i.children||i.children.forEach(function(r){r._decode(e,t)}),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){let r=new a(n);n=this._getUse(i.contains,e._reporterState.obj)._decode(r,t)}}return i.obj&&s&&(n=e.leaveObject(r)),null!==i.key&&(null!==n||!0===s)?e.leaveKey(o,i.key,n):null!==o&&e.exitKey(o),n},d.prototype._decodeGeneric=function(e,t,r){let i=this._baseState;if("seq"===e||"set"===e)return null;if("seqof"===e||"setof"===e)return this._decodeList(t,e,i.args[0],r);if(/str$/.test(e))return this._decodeStr(t,e,r);if("objid"===e&&i.args)return this._decodeObjid(t,i.args[0],i.args[1],r);if("objid"===e)return this._decodeObjid(t,null,null,r);if("gentime"===e||"utctime"===e)return this._decodeTime(t,e,r);if("null_"===e)return this._decodeNull(t,r);if("bool"===e)return this._decodeBool(t,r);else if("objDesc"===e)return this._decodeStr(t,e,r);else if("int"===e||"enum"===e)return this._decodeInt(t,i.args&&i.args[0],r);return null!==i.use?this._getUse(i.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},d.prototype._getUse=function(e,t){let r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},d.prototype._decodeChoice=function(e,t){let r=this._baseState,i=null,n=!1;return(Object.keys(r.choice).some(function(a){let s=e.save(),o=r.choice[a];try{let r=o._decode(e,t);if(e.isError(r))return!1;i={type:a,value:r},n=!0}catch(t){return e.restore(s),!1}return!0},this),n)?i:e.error("Choice not matched")},d.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},d.prototype._encode=function(e,t,r){let i=this._baseState;if(null!==i.default&&i.default===e)return;let n=this._encodeValue(e,t,r);if(void 0!==n&&!this._skipDefault(n,t,r))return n},d.prototype._encodeValue=function(e,t,r){let n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new i);let a=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}let s=null,o=!1;if(n.any)a=this._createEncoderBuffer(e);else if(n.choice)a=this._encodeChoice(e,t);else if(n.contains)s=this._getUse(n.contains,r)._encode(e,t),o=!0;else if(n.children)s=n.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");let i=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");let n=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),n},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===n.tag||"setof"===n.tag){if(!(n.args&&1===n.args.length))return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let r=this.clone();r._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){let i=this._baseState;return this._getUse(i.args[0],e)._encode(r,t)},r))}else null!==n.use?a=this._getUse(n.use,r)._encode(e,t):(s=this._encodePrimitive(n.tag,e),o=!0);if(!n.any&&null===n.choice){let e=null!==n.implicit?n.implicit:n.tag,r=null===n.implicit?"universal":"context";null===e?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(a=this._encodeComposite(e,o,r,s))}return null!==n.explicit&&(a=this._encodeComposite(n.explicit,!1,"context",a)),a},d.prototype._encodeChoice=function(e,t){let r=this._baseState,i=r.choice[e.type];return i||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),i._encode(e.value,t)},d.prototype._encodePrimitive=function(e,t){let r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);else if("objDesc"===e)return this._encodeStr(t,e);else throw Error("Unsupported tag: "+e)},d.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},d.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"3f60e59b9a23b489":"dVro5","485fe0fa4bfbbbca":"lGrvr","1bf7ce79b1c01d8b":"h59lk"}],dVro5:[function(e,t,r){"use strict";let i=e("cca99c6acf69321b");function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function a(e,t){this.path=e,this.rethrow(t)}r.Reporter=n,n.prototype.isError=function(e){return e instanceof a},n.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,r){let i=this._reporterState;this.exitKey(e),null!==i.obj&&(i.obj[t]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){let t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){let t;let r=this._reporterState,i=e instanceof a;if(t=i?e:new a(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return i||r.errors.push(t),t},n.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},i(a,Error),a.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,a),!this.stack)try{throw Error(this.message)}catch(e){this.stack=e.stack}return this}},{cca99c6acf69321b:"cJ2FP"}],lGrvr:[function(e,t,r){"use strict";let i=e("ff35534ecc380ed3"),n=e("caca6de43dc40469").Reporter,a=e("c3dd8e06b6bddac8").Buffer;function s(e,t){if(n.call(this,t),!a.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}function o(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return o.isEncoderBuffer(e)||(e=new o(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(s,n),r.DecoderBuffer=s,s.isDecoderBuffer=function(e){if(e instanceof s)return!0;let t="object"==typeof e&&a.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw;return t},s.prototype.save=function(){return{offset:this.offset,reporter:n.prototype.save.call(this)}},s.prototype.restore=function(e){let t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,n.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=o,o.isEncoderBuffer=function(e){if(e instanceof o)return!0;let t="object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join;return t},o.prototype.join=function(e,t){return e||(e=a.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{ff35534ecc380ed3:"cJ2FP",caca6de43dc40469:"dVro5",c3dd8e06b6bddac8:"c6yfp"}],"6PHFJ":[function(e,t,r){"use strict";function i(e){let t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);let i=e[r];t[i]=r}),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=i(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=i(r.tag)},{}],f6svv:[function(e,t,r){"use strict";let i=e("bc3c7930ded74eee"),n=e("cf885a4234262436");function a(e){n.call(this,e),this.enc="pem"}i(a,n),t.exports=a,a.prototype.encode=function(e,t){let r=n.prototype.encode.call(this,e),i=r.toString("base64"),a=["-----BEGIN "+t.label+"-----"];for(let e=0;e>6],n=(32&r)==0;if((31&r)==31){let i=r;for(r=0;(128&i)==128;){if(i=e.readUInt8(t),e.isError(i))return i;r<<=7,r|=127&i}}else r&=31;let a=o.tag[r];return{cls:i,primitive:n,tag:r,tagStr:a}}function u(e,t,r){let i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&128===i)return null;if((128&i)==0)return i;let n=127&i;if(n>4)return e.error("length octect is too long");i=0;for(let t=0;t=e.cmpn(0)||e.cmp(t)>=t)throw Error("invalid sig")}t.exports=function(e,t,r,d,c){var u,l,h,p,b,m,g,y,v,w,_,M=s(r);if("ec"===M.type){if("ecdsa"!==d&&"ecdsa/rsa"!==d)throw Error("wrong public key type");return function(e,t,r){var i=o[r.data.algorithm.curve.join(".")];if(!i)throw Error("unknown curve "+r.data.algorithm.curve.join("."));var n=new a(i),s=r.data.subjectPrivateKey.data;return n.verify(t,e,s)}(e,t,M)}if("dsa"===M.type){if("dsa"!==d)throw Error("wrong public key type");return u=e,l=t,h=M.data.p,p=M.data.q,b=M.data.g,m=M.data.pub_key,y=(g=s.signature.decode(u,"der")).s,v=g.r,f(y,p),f(v,p),w=n.mont(h),_=y.invm(p),0===b.toRed(w).redPow(new n(l).mul(_).mod(p)).fromRed().mul(m.toRed(w).redPow(v.mul(_).mod(p)).fromRed()).mod(h).mod(p).cmp(v)}if("rsa"!==d&&"ecdsa/rsa"!==d)throw Error("wrong public key type");t=i.concat([c,t]);for(var E=M.modulus.byteLength(),A=[1],S=0;t.length+A.length+2","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"}}')},{}],"1FqM1":[function(e,t,r){"use strict";var i=e("ae6d8344b99a9ab2"),n=e("def2c42291c2f2d"),a=e("71eecd1815e5848b");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{ae6d8344b99a9ab2:"g4Hsc",def2c42291c2f2d:"h59lk","71eecd1815e5848b":"6lUA8"}],g4Hsc:[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1b9e2dcc2d1e58c5").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1b9e2dcc2d1e58c5":"3eno3"}],"4Gjnv":[function(e,t,r){"use strict";r.base=e("599a58be0cba2aa4"),r.short=e("9b332cf6ee35e821"),r.mont=e("c3a5577cbd710904"),r.edwards=e("efc20909ee0a37b3")},{"599a58be0cba2aa4":"jNCGV","9b332cf6ee35e821":"1iny0",c3a5577cbd710904:"ccjZj",efc20909ee0a37b3:"eGidU"}],jNCGV:[function(e,t,r){"use strict";var i=e("22893fcc4dac011d"),n=e("54e74b2e9ceda629"),a=n.getNAF,s=n.getJSF,o=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"79a31f5f710e685d":"1FqM1","4e5df5148bc3f2c5":"g4Hsc",facc01195474a23d:"cJ2FP","6ab9b2bb0863e2c7":"jNCGV"}],ccjZj:[function(e,t,r){"use strict";var i=e("37e3d11dfa4bf668"),n=e("320ea60045eec4"),a=e("6722fc402fde71a0"),s=e("2c9b03996cedbe9c");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"37e3d11dfa4bf668":"g4Hsc","320ea60045eec4":"cJ2FP","6722fc402fde71a0":"jNCGV","2c9b03996cedbe9c":"1FqM1"}],eGidU:[function(e,t,r){"use strict";var i=e("e7a52be0908f0f8d"),n=e("e09dcb7265fc9222"),a=e("4af3d109475768b7"),s=e("c02f7cbe9dfe7f93"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{e7a52be0908f0f8d:"1FqM1",e09dcb7265fc9222:"g4Hsc","4af3d109475768b7":"cJ2FP",c02f7cbe9dfe7f93:"jNCGV"}],eFELW:[function(e,t,r){"use strict";var i,n=e("1a754558a4b18f19"),a=e("888952ec9f90a284"),s=e("7b6ae11bc6a5ca95").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("67a05dd6ae9361d")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"1a754558a4b18f19":"2Tlxk","888952ec9f90a284":"4Gjnv","7b6ae11bc6a5ca95":"1FqM1","67a05dd6ae9361d":"8ZeHL"}],"8ZeHL":[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"]]}}},{}],"6d1tE":[function(e,t,r){"use strict";var i=e("90ea9136f61deced"),n=e("7586ee8fc9a7bf7e"),a=e("ccef887016ce3a53"),s=e("bc1ef3d03c587b3b"),o=e("7a60857a656439a5"),f=a.assert,d=e("c4d8ba06720ebdca"),c=e("93a42fa4071dd0a5");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"90ea9136f61deced":"g4Hsc","7586ee8fc9a7bf7e":"eo8Xm",ccef887016ce3a53:"1FqM1",bc1ef3d03c587b3b:"eFELW","7a60857a656439a5":"dpC9B",c4d8ba06720ebdca:"gTmPO","93a42fa4071dd0a5":"QelZO"}],gTmPO:[function(e,t,r){"use strict";var i=e("4a05df03a6466bc0"),n=e("3d95090c0bb0ef61").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},{"4a05df03a6466bc0":"g4Hsc","3d95090c0bb0ef61":"1FqM1"}],QelZO:[function(e,t,r){"use strict";var i=e("87650698ae011d35"),n=e("45887f1f8a7a22dc"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{"87650698ae011d35":"g4Hsc","45887f1f8a7a22dc":"1FqM1"}],"4WiV8":[function(e,t,r){"use strict";var i=e("e8d9e075af8fafa2"),n=e("8413dc25e0b3c10"),a=e("d2583523254300d2"),s=a.assert,o=a.parseBytes,f=e("2d2d117a03e08db3"),d=e("73831fc21b84337");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;tr-l-2)throw Error("message too long");var h=u.alloc(r-i-l-2),p=r-c-1,b=n(c),m=o(u.concat([d,h,u.alloc(1,1),t],p),s(b,p)),g=o(b,s(m,c));return new f(u.concat([u.alloc(1),g,m],r))}(p,t);else if(1===l)h=function(e,t,r){var i,a=t.length,s=e.modulus.byteLength();if(a>s-11)throw Error("message too long");return i=r?u.alloc(s-a-3,255):function(e){for(var t,r=u.allocUnsafe(e),i=0,a=n(2*e),s=0;i=0)throw Error("data too long for modulus")}else throw Error("unknown padding");return r?c(h,p):d(h,p)}},{ca2697dbde558d1:"6XduM","4704ad09aa96a56b":"6xAZm",b8a92fd1d9e43252:"cCtrs","469be15a31031bba":"gJHL1",f9f3694c0f7388b6:"hGH6g",cb7a38ec1a0039d7:"9DpW1","969e1e2dd90e2fbe":"9jyud","9022efe01867a612":"9CU5S",d610bb618706f42f:"6CY3D"}],gJHL1:[function(e,t,r){var i=e("b36bb21196daa39"),n=e("cfa1ea60eac1ebfa").Buffer;t.exports=function(e,t){for(var r,a=n.alloc(0),s=0;a.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function o(e,t,r){var i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"64c9d23ade4c9eaa":"3eno3"}],"9jyud":[function(e,t,r){var i=e("94162e508c4195c3"),n=e("1bab2adfd8072b94").Buffer;t.exports=function(e,t){return n.from(e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed().toArray())}},{"94162e508c4195c3":"9DpW1","1bab2adfd8072b94":"6CY3D"}],kaYjd:[function(e,t,r){var i=e("6c46b1d8bb7eae7b"),n=e("9e51003323ea065d"),a=e("637b57d34a8dda25"),s=e("3927561f39566b29"),o=e("521cbc4ce6042d5b"),f=e("95282d7c0e66f364"),d=e("1bc2f92e3c398dbe"),c=e("802d086fb6d63368").Buffer;t.exports=function(e,t,r){u=e.padding?e.padding:r?1:4;var u,l,h=i(e),p=h.modulus.byteLength();if(t.length>p||new s(t).cmp(h.modulus)>=0)throw Error("decryption error");l=r?d(new s(t),h):o(t,h);var b=c.alloc(p-l.length);if(l=c.concat([b,l],p),4===u)return function(e,t){var r=e.modulus.byteLength(),i=f("sha1").update(c.alloc(0)).digest(),s=i.length;if(0!==t[0])throw Error("decryption error");var o=t.slice(1,s+1),d=t.slice(s+1),u=a(o,n(d,s)),l=a(d,n(u,r-s-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var n=-1;++n=t.length){a++;break}var s=t.slice(2,n-1);if(("0002"!==i.toString("hex")&&!r||"0001"!==i.toString("hex")&&r)&&a++,s.length<8&&a++,a)throw Error("decryption error");return t.slice(n)}(0,l,r);if(3===u)return l;throw Error("unknown padding")}},{"6c46b1d8bb7eae7b":"6XduM","9e51003323ea065d":"gJHL1","637b57d34a8dda25":"hGH6g","3927561f39566b29":"9DpW1","521cbc4ce6042d5b":"9CU5S","95282d7c0e66f364":"cCtrs","1bc2f92e3c398dbe":"9jyud","802d086fb6d63368":"6CY3D"}],"51dpI":[function(e,t,r){"use strict";var i=arguments[3],n=e("e52c82591caff1d7");function a(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=e("954d667c0302f12c");e("7041a0e993c249ef");var o=s.Buffer,f=s.kMaxLength,d=i.crypto||i.msCrypto;function c(e,t){if("number"!=typeof e||e!=e)throw TypeError("offset must be a number");if(e>4294967295||e<0)throw TypeError("offset must be a uint32");if(e>f||e>t)throw RangeError("offset out of range")}function u(e,t,r){if("number"!=typeof e||e!=e)throw TypeError("size must be a number");if(e>4294967295||e<0)throw TypeError("size must be a uint32");if(e+t>r||e>f)throw RangeError("buffer too small")}function l(e,t,r,i){var a=e.buffer,s=new Uint8Array(a,t,r);if(d.getRandomValues(s),i){n.nextTick(function(){i(null,e)});return}return e}d&&d.getRandomValues?(r.randomFill=function(e,t,r,n){if(!o.isBuffer(e)&&!(e instanceof i.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw TypeError('"cb" argument must be a function');return c(t,e.length),u(r,t,e.length),l(e,t,r,n)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!o.isBuffer(e)&&!(e instanceof i.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');return c(t,e.length),void 0===r&&(r=e.length-t),u(r,t,e.length),l(e,t,r)}):(r.randomFill=a,r.randomFillSync=a)},{e52c82591caff1d7:"fg0b3","954d667c0302f12c":"6CY3D","7041a0e993c249ef":"6xAZm"}],kf6Fl:[function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||i(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,n(e("bf50b53e66bd78ae"),r),n(e("dd065c472b0551aa"),r),n(e("b115ace1c5aaed38"),r),n(e("88e46d1ab0420a67"),r),n(e("7f5682ba3d2490bd"),r),n(e("a4db0028d96db3f7"),r),n(e("9acdd69c57d35035"),r),n(e("3d470417433d9941"),r),n(e("5aa2cb509ed6c32d"),r);var a=e("287b1e51e2efbb0c");Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return a.isHexPrefixed}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return a.stripHexPrefix}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return a.padToEven}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return a.getBinarySize}}),Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return a.arrayContainsArray}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return a.toAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return a.fromUtf8}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return a.fromAscii}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return a.getKeys}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return a.isHexString}})},{bf50b53e66bd78ae:"lkw7f",dd065c472b0551aa:"bzwNx",b115ace1c5aaed38:"h1KCF","88e46d1ab0420a67":"ipL9G","7f5682ba3d2490bd":"bqbjN",a4db0028d96db3f7:"kZa0v","9acdd69c57d35035":"4p8A4","3d470417433d9941":"hx2li","5aa2cb509ed6c32d":"eWBQO","287b1e51e2efbb0c":"1a9Yl"}],lkw7f:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.MAX_INTEGER=r.MAX_UINT64=void 0;var i=e("4a8a1726ff33f9ec"),n=e("20245c0ea7c8fba9");r.MAX_UINT64=new n.BN("ffffffffffffffff",16),r.MAX_INTEGER=new n.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),r.TWO_POW256=new n.BN("10000000000000000000000000000000000000000000000000000000000000000",16),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=i.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=i.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=i.Buffer.from(r.KECCAK256_RLP_S,"hex")},{"4a8a1726ff33f9ec":"2MMCE","20245c0ea7c8fba9":"hx2li"}],hx2li:[function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&i(t,e,r);return n(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.rlp=r.BN=void 0;var o=s(e("861b9458cf98e3bd"));r.BN=o.default;var f=a(e("cc920cb59362bdcc"));r.rlp=f},{"861b9458cf98e3bd":"lXPno",cc920cb59362bdcc:"ctmWm"}],ctmWm:[function(e,t,r){var i=e("c4f3522d609e2bb4").Buffer;"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getLength=r.decode=r.encode=void 0;var a=n(e("f2de64fac014d334"));function s(e,t){if("0"===e[0]&&"0"===e[1])throw Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(e,t){if(e<56)return i.from([e+t]);var r=d(e),n=d(t+55+r.length/2);return i.from(n+r,"hex")}function f(e){return"0x"===e.slice(0,2)}function d(e){if(e<0)throw Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function c(e){if(!i.isBuffer(e)){var t,r;if("string"==typeof e)return f(e)?i.from((t="string"!=typeof e?e:f(e)?e.slice(2):e).length%2?"0"+t:t,"hex"):i.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(r=d(e),i.from(r,"hex")):i.from([]);if(null==e)return i.from([]);if(e instanceof Uint8Array)return i.from(e);else if(a.default.isBN(e))return i.from(e.toArray());else throw Error("invalid type")}return e}r.encode=function e(t){if(Array.isArray(t)){for(var r=[],n=0;nt.length)throw Error("invalid rlp: total length is larger than the data");if(0===(o=t.slice(n,u)).length)throw Error("invalid rlp, List has a invalid length");for(;o.length;)f=e(o),d.push(f.data),o=f.remainder;return{data:d,remainder:t.slice(u)}}(c(e));if(t)return r;if(0!==r.remainder.length)throw Error("invalid remainder");return r.data},r.getLength=function(e){if(!e||0===e.length)return i.from([]);var t=c(e),r=t[0];if(r<=127)return t.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var n=r-246,a=s(t.slice(1,n).toString("hex"),16);return n+a}},{c4f3522d609e2bb4:"2MMCE",f2de64fac014d334:"lXPno"}],bzwNx:[function(e,t,r){"use strict";var i=e("239680ae77fd7256").Buffer,n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;var s=a(e("c625d04718b44934")),o=e("d826c36f7dbc8b6b"),f=e("ad9f6d50db6ac3d9"),d=e("b589310d0858a77a"),c=e("afb5aa690896402c"),u=e("94c371da3aa3838f"),l=e("e0d93e4c6eac12d8"),h=e("947105c4c404cdce"),p=e("aebdc58a1d4e01a9"),b=function(){function e(e,t,r,i){void 0===e&&(e=new o.BN(0)),void 0===t&&(t=new o.BN(0)),void 0===r&&(r=c.KECCAK256_RLP),void 0===i&&(i=c.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=r,this.codeHash=i,this._validate()}return e.fromAccountData=function(t){var r=t.nonce,i=t.balance,n=t.stateRoot,a=t.codeHash;return new e(r?new o.BN((0,u.toBuffer)(r)):void 0,i?new o.BN((0,u.toBuffer)(i)):void 0,n?(0,u.toBuffer)(n):void 0,a?(0,u.toBuffer)(a):void 0)},e.fromRlpSerializedAccount=function(e){var t=o.rlp.decode(e);if(!Array.isArray(t))throw Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var r=n(t,4),i=r[0],a=r[1],s=r[2],f=r[3];return new e(new o.BN(i),new o.BN(a),s,f)},e.prototype._validate=function(){if(this.nonce.lt(new o.BN(0)))throw Error("nonce must be greater than zero");if(this.balance.lt(new o.BN(0)))throw Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,p.bnToUnpaddedBuffer)(this.nonce),(0,p.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return o.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(c.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(c.KECCAK256_NULL)},e}();r.Account=b,r.isValidAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},r.toChecksumAddress=function(e,t){(0,h.assertIsHexString)(e);var r=(0,d.stripHexPrefix)(e).toLowerCase(),i="";t&&(i=(0,p.toType)(t,p.TypeOutput.BN).toString()+"0x");for(var n=(0,l.keccakFromString)(i+r).toString("hex"),a="0x",s=0;s=8?a+=r[s].toUpperCase():a+=r[s];return a},r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e},r.generateAddress=function(e,t){(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t);var r=new o.BN(t);return r.isZero()?(0,l.rlphash)([e,null]).slice(-20):(0,l.rlphash)([e,i.from(r.toArray())]).slice(-20)},r.generateAddress2=function(e,t,r){return(0,h.assertIsBuffer)(e),(0,h.assertIsBuffer)(t),(0,h.assertIsBuffer)(r),(0,s.default)(20===e.length),(0,s.default)(32===t.length),(0,l.keccak256)(i.concat([i.from("ff","hex"),e,t,(0,l.keccak256)(r)])).slice(-20)},r.isValidPrivate=function(e){return(0,f.privateKeyVerify)(e)},r.isValidPublic=function(e,t){return(void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),64===e.length)?(0,f.publicKeyVerify)(i.concat([i.from([4]),e])):!!t&&(0,f.publicKeyVerify)(e)},r.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,h.assertIsBuffer)(e),t&&64!==e.length&&(e=i.from((0,f.publicKeyConvert)(e,!1).slice(1))),(0,s.default)(64===e.length),(0,l.keccak)(e).slice(-20)},r.publicToAddress=r.pubToAddress,r.privateToPublic=function(e){return(0,h.assertIsBuffer)(e),i.from((0,f.publicKeyCreate)(e,!1)).slice(1)},r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))},r.importPublic=function(e){return(0,h.assertIsBuffer)(e),64!==e.length&&(e=i.from((0,f.publicKeyConvert)(e,!1).slice(1))),e},r.zeroAddress=function(){var e=(0,u.zeros)(20);return(0,u.bufferToHex)(e)},r.isZeroAddress=function(e){try{(0,h.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e}},{"239680ae77fd7256":"2MMCE",c625d04718b44934:"aeMhE",d826c36f7dbc8b6b:"hx2li",ad9f6d50db6ac3d9:"jWaCZ",b589310d0858a77a:"1a9Yl",afb5aa690896402c:"lkw7f","94c371da3aa3838f":"kZa0v",e0d93e4c6eac12d8:"ipL9G","947105c4c404cdce":"70pb8",aebdc58a1d4e01a9:"eWBQO"}],aeMhE:[function(e,t,r){"use strict";var i,n,a=e("17530e9a8e9dd8de");function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o=e("67930e3bebc18ea9").codes,f=o.ERR_AMBIGUOUS_ARGUMENT,d=o.ERR_INVALID_ARG_TYPE,c=o.ERR_INVALID_ARG_VALUE,u=o.ERR_INVALID_RETURN_VALUE,l=o.ERR_MISSING_ARGS,h=e("11bdd262fb706a54"),p=e("d61a3396666721b6").inspect,b=e("d61a3396666721b6").types,m=b.isPromise,g=b.isRegExp,y=Object.assign?Object.assign:e("613bbc2cfb4d4558").assign,v=Object.is?Object.is:e("f909244cb7b0ea0c");function w(){var t=e("131e25d2408617a4");i=t.isDeepEqual,n=t.isDeepStrictEqual}var _=!1,M=t.exports=x,E={};function A(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function S(e,t,r,i){if(!r){var n=!1;if(0===t)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var a=new h({actual:r,expected:!0,message:i,operator:"==",stackStartFn:e});throw a.generatedMessage=n,a}}function x(){for(var e=arguments.length,t=Array(e),r=0;r1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n1?r-1:0),n=1;n2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",function(t,r,n){if((void 0===s&&(s=e("f73a3052b95b9ed")),s("string"==typeof t,"'name' must be a string"),"string"==typeof r&&(a="not ",r.substr(!o||o<0?0:+o,a.length)===a))?(l="must not be",r=r.replace(/^not /,"")):l="must be",f=" argument",(void 0===d||d>t.length)&&(d=t.length),t.substring(d-f.length,d)===f)h="The ".concat(t," ").concat(l," ").concat(c(r,"type"));else{var a,o,f,d,u,l,h,p=("number"!=typeof u&&(u=0),u+1>t.length||-1===t.indexOf(".",u))?"argument":"property";h='The "'.concat(t,'" ').concat(p," ").concat(l," ").concat(c(r,"type"))}return h+". Received type ".concat(i(n))},TypeError),d("ERR_INVALID_ARG_VALUE",function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=e("1fd472100fa8826f"));var n=o.inspect(r);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(i,". Received ").concat(n)},TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",function(e,t,r){var n;return n=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(i(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(n,".")},TypeError),d("ERR_MISSING_ARGS",function(){for(var t=arguments.length,r=Array(t),i=0;i0,"At least one arg needs to be specified");var n="The ",a=r.length;switch(r=r.map(function(e){return'"'.concat(e,'"')}),a){case 1:n+="".concat(r[0]," argument");break;case 2:n+="".concat(r[0]," and ").concat(r[1]," arguments");break;default:n+=r.slice(0,a-1).join(", ")+", and ".concat(r[a-1]," arguments")}return"".concat(n," must be specified")},TypeError),t.exports.codes=f},{f73a3052b95b9ed:"aeMhE","1fd472100fa8826f":"iQBwz"}],iQBwz:[function(e,t,r){var i=e("bc23a3ea4a141c0b"),n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i=n)return e;switch(e){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(e){return"[Circular]"}default:return e}}),o=i[r];r=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),b(t)?i.showHidden=t:t&&r._extend(i,t),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=d),u(i,e,i.depth)}function d(e,t){var r=f.styles[t];return r?"\x1b["+f.colors[r][0]+"m"+e+"\x1b["+f.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,i){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==r.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n,a,s,o,f,d=t.inspect(i,e);return y(d)||(d=u(e,d,i)),d}var c=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(c)return c;var _=Object.keys(t),S=(o={},_.forEach(function(e,t){o[e]=!0}),o);if(e.showHidden&&(_=Object.getOwnPropertyNames(t)),E(t)&&(_.indexOf("message")>=0||_.indexOf("description")>=0))return l(t);if(0===_.length){if(A(t)){var x=t.name?": "+t.name:"";return e.stylize("[Function"+x+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(E(t))return l(t)}var I="",k=!1,T=["{","}"];return(p(t)&&(k=!0,T=["[","]"]),A(t)&&(I=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(I=" "+RegExp.prototype.toString.call(t)),M(t)&&(I=" "+Date.prototype.toUTCString.call(t)),E(t)&&(I=" "+l(t)),0!==_.length||k&&0!=t.length)?i<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),f=k?function(e,t,r,i,n){for(var a=[],s=0,o=t.length;s=0&&s++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?a[0]+(""===n?"":n+"\n ")+" "+f.join(",\n ")+" "+a[1]:a[0]+n+" "+f.join(", ")+" "+a[1]):T[0]+I+T[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,i,n,a){var s,o,f;if((f=Object.getOwnPropertyDescriptor(t,n)||{value:t[n]}).get?o=f.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):f.set&&(o=e.stylize("[Setter]","special")),R(i,n)||(s="["+n+"]"),!o&&(0>e.seen.indexOf(f.value)?(o=m(r)?u(e,f.value,null):u(e,f.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+o.split("\n").map(function(e){return" "+e}).join("\n")):o=e.stylize("[Circular]","special")),v(s)){if(a&&n.match(/^\d+$/))return o;(s=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function p(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===S(e)}function _(e){return"object"==typeof e&&null!==e}function M(e){return _(e)&&"[object Date]"===S(e)}function E(e){return _(e)&&("[object Error]"===S(e)||e instanceof Error)}function A(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(!s[e=e.toUpperCase()]){if(o.test(e)){var t=i.pid;s[e]=function(){var i=r.format.apply(r,arguments);console.error("%s %d: %s",e,t,i)}}else s[e]=function(){}}return s[e]},r.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("6a1c15bae847a134"),r.isArray=p,r.isBoolean=b,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=y,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=w,r.types.isRegExp=w,r.isObject=_,r.isDate=M,r.types.isDate=M,r.isError=E,r.types.isNativeError=E,r.isFunction=A,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("a42137cd7fc8700d");var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(t=[x((e=new Date).getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":"),[e.getDate(),I[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("a792e8e3e2aa1973"),r._extend=function(e,t){if(!t||!_(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var k="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function T(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}r.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(k&&e[k]){var t=e[k];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,k,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,i=new Promise(function(e,i){t=e,r=i}),n=[],a=0;a=0&&"[object Array]"!==n(e)&&"[object Function]"===n(e.callee)},o=function(){return a(arguments)}();a.isLegacyArguments=s,t.exports=o?a:s},{e2b01ce809f132fb:"8kCl3","649cbf9949986a39":"dGEhg"}],"8kCl3":[function(e,t,r){"use strict";var i=e("2ef89576d4959bff");t.exports=function(){return i()&&!!Symbol.toStringTag}},{"2ef89576d4959bff":"iaBeb"}],iaBeb:[function(e,t,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(e,t);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},{}],dGEhg:[function(e,t,r){"use strict";var i=e("8b08ecb81cf4de17"),n=e("266fc50410cfc4a"),a=n(i("String.prototype.indexOf"));t.exports=function(e,t){var r=i(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?n(r):r}},{"8b08ecb81cf4de17":"i6CEG","266fc50410cfc4a":"kP5zq"}],i6CEG:[function(e,t,r){"use strict";var i,n=SyntaxError,a=Function,s=TypeError,o=function(e){try{return a('"use strict"; return ('+e+").constructor;")()}catch(e){}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},"")}catch(e){f=null}var d=function(){throw new s},c=f?function(){try{return arguments.callee,d}catch(e){try{return f(arguments,"callee").get}catch(e){return d}}}():d,u=e("1f00f712d594ccf")(),l=e("23730654306aa64c")(),h=Object.getPrototypeOf||(l?function(e){return e.__proto__}:null),p={},b="undefined"!=typeof Uint8Array&&h?h(Uint8Array):i,m={"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":u&&h?h([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":a,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&h?h(h([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&h?h(new Map()[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&h?h(new Set()[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&h?h(""[Symbol.iterator]()):i,"%Symbol%":u?Symbol:i,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":b,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet};if(h)try{null.error}catch(e){var g=h(h(e));m["%Error.prototype%"]=g}var y=function e(t){var r;if("%AsyncFunction%"===t)r=o("async function () {}");else if("%GeneratorFunction%"===t)r=o("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=o("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var n=e("%AsyncGenerator%");n&&h&&(r=h(n.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=e("7c5e688e48cd07b0"),_=e("b03d0058935d00bf"),M=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),x=w.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,k=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return A(e,I,function(e,t,r,n){i[i.length]=r?A(n,R,"$1"):t||e}),i},T=function(e,t){var r,i=e;if(_(v,i)&&(i="%"+(r=v[i])[0]+"%"),_(m,i)){var a=m[i];if(a===p&&(a=y(i)),void 0===a&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:a}}throw new n("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=k(e),i=r.length>0?r[0]:"",a=T("%"+i+"%",t),o=a.name,d=a.value,c=!1,u=a.alias;u&&(i=u[0],E(r,M([0,1],u)));for(var l=1,h=!0;l=r.length){var y=f(d,p);d=(h=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:d[p]}else h=_(d,p),d=d[p];h&&!c&&(m[o]=d)}}return d}},{"1f00f712d594ccf":"hqwBR","23730654306aa64c":"2oIP9","7c5e688e48cd07b0":"sXn6L",b03d0058935d00bf:"crIfq"}],hqwBR:[function(e,t,r){"use strict";var i="undefined"!=typeof Symbol&&Symbol,n=e("3fb25678c62d2fce");t.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&n()}},{"3fb25678c62d2fce":"iaBeb"}],"2oIP9":[function(e,t,r){"use strict";var i={foo:{}},n=Object;t.exports=function(){return({__proto__:i}).foo===i.foo&&!(({__proto__:null})instanceof n)}},{}],sXn6L:[function(e,t,r){"use strict";var i=e("ebece74382f80db9");t.exports=Function.prototype.bind||i},{ebece74382f80db9:"POx14"}],POx14:[function(e,t,r){"use strict";var i=Array.prototype.slice,n=Object.prototype.toString;t.exports=function(e){var t,r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var a=i.call(arguments,1),s=Math.max(0,r.length-a.length),o=[],f=0;f-1?t:"Object"===t&&y(e)}return f?g(e):null}},{"2941d48f36957e3c":"brr8P",beaf5502a5823cce:"2kFgN",e5d203a1b4c809f9:"kP5zq","83f633f9b335db8f":"dGEhg",ce6b45c571ba4e3e:"8Spe5","9e7ef6c88184c56":"8kCl3"}],brr8P:[function(e,t,r){"use strict";var i=e("e50ebc24bbb25feb"),n=Object.prototype.toString,a=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var i=0,n=e.length;i=3&&(a=r),"[object Array]"===n.call(e)?s(e,t,a):"string"==typeof e?o(e,t,a):f(e,t,a)}},{e50ebc24bbb25feb:"3XeZC"}],"3XeZC":[function(e,t,r){"use strict";var i,n,a=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{i=Object.defineProperty({},"length",{get:function(){throw n}}),n={},s(function(){throw 42},null,i)}catch(e){e!==n&&(s=null)}else s=null;var o=/^\s*class\b/,f=function(e){try{var t=a.call(e);return o.test(t)}catch(e){return!1}},d=function(e){try{if(f(e))return!1;return a.call(e),!0}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),h=function(){return!1};if("object"==typeof document){var p=document.all;c.call(p)===c.call(document.all)&&(h=function(e){if((l||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}t.exports=s?function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,i)}catch(e){if(e!==n)return!1}return!f(e)&&d(e)}:function(e){if(h(e))return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if(u)return d(e);if(f(e))return!1;var t=c.call(e);return!!("[object Function]"===t||"[object GeneratorFunction]"===t||/^\[object HTML/.test(t))&&d(e)}},{}],"2kFgN":[function(e,t,r){"use strict";var i=arguments[3],n=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],a="undefined"==typeof globalThis?i:globalThis;t.exports=function(){for(var e=[],t=0;te.length)&&(r=e.length),e.substring(r-t.length,r)===t}var b="",m="",g="",y="",v={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function _(e){return l(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var M=function(e){var t,r;function o(e){if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),"object"!==u(e)||null===e)throw new h("options","Object",e);var t,r=e.message,n=e.operator,f=e.stackStartFn,d=e.actual,l=e.expected,M=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=r)t=a(this,c(o).call(this,String(r)));else if(i.stderr&&i.stderr.isTTY&&(i.stderr&&i.stderr.getColorDepth&&1!==i.stderr.getColorDepth()?(b="\x1b[34m",m="\x1b[32m",y="\x1b[39m",g="\x1b[31m"):(b="",m="",y="",g="")),"object"===u(d)&&null!==d&&"object"===u(l)&&null!==l&&"stack"in d&&d instanceof Error&&"stack"in l&&l instanceof Error&&(d=w(d),l=w(l)),"deepStrictEqual"===n||"strictEqual"===n)t=a(this,c(o).call(this,function(e,t,r){var n="",a="",s=0,o="",f=!1,d=_(e),c=d.split("\n"),l=_(t).split("\n"),h=0,w="";if("strictEqual"===r&&"object"===u(e)&&"object"===u(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===c.length&&1===l.length&&c[0]!==l[0]){var M=c[0].length+l[0].length;if(M<=10){if(("object"!==u(e)||null===e)&&("object"!==u(t)||null===t)&&(0!==e||0!==t))return"".concat(v[r],"\n\n")+"".concat(c[0]," !== ").concat(l[0],"\n")}else if("strictEqualObject"!==r&&M<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;c[0][h]===l[0][h];)h++;h>2&&(w="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}(" ",h),"^"),h=0)}}for(var E=c[c.length-1],A=l[l.length-1];E===A&&(h++<2?o="\n ".concat(E).concat(o):n=E,c.pop(),l.pop(),0!==c.length&&0!==l.length);)E=c[c.length-1],A=l[l.length-1];var S=Math.max(c.length,l.length);if(0===S){var x=d.split("\n");if(x.length>30)for(x[26]="".concat(b,"...").concat(y);x.length>27;)x.pop();return"".concat(v.notIdentical,"\n\n").concat(x.join("\n"),"\n")}h>3&&(o="\n".concat(b,"...").concat(y).concat(o),f=!0),""!==n&&(o="\n ".concat(n).concat(o),n="");var I=0,R=v[r]+"\n".concat(m,"+ actual").concat(y," ").concat(g,"- expected").concat(y),k=" ".concat(b,"...").concat(y," Lines skipped");for(h=0;h1&&h>2&&(T>4?(a+="\n".concat(b,"...").concat(y),f=!0):T>3&&(a+="\n ".concat(l[h-2]),I++),a+="\n ".concat(l[h-1]),I++),s=h,n+="\n".concat(g,"-").concat(y," ").concat(l[h]),I++;else if(l.length1&&h>2&&(T>4?(a+="\n".concat(b,"...").concat(y),f=!0):T>3&&(a+="\n ".concat(c[h-2]),I++),a+="\n ".concat(c[h-1]),I++),s=h,a+="\n".concat(m,"+").concat(y," ").concat(c[h]),I++;else{var C=l[h],P=c[h],O=P!==C&&(!p(P,",")||P.slice(0,-1)!==C);O&&p(C,",")&&C.slice(0,-1)===P&&(O=!1,P+=","),O?(T>1&&h>2&&(T>4?(a+="\n".concat(b,"...").concat(y),f=!0):T>3&&(a+="\n ".concat(c[h-2]),I++),a+="\n ".concat(c[h-1]),I++),s=h,a+="\n".concat(m,"+").concat(y," ").concat(P),n+="\n".concat(g,"-").concat(y," ").concat(C),I+=2):(a+=n,n="",(1===T||0===h)&&(a+="\n ".concat(P),I++))}if(I>20&&h30)for(A[26]="".concat(b,"...").concat(y);A.length>27;)A.pop();t=1===A.length?a(this,c(o).call(this,"".concat(E," ").concat(A[0]))):a(this,c(o).call(this,"".concat(E,"\n\n").concat(A.join("\n"),"\n")))}else{var S=_(d),x="",I=v[n];"notDeepEqual"===n||"notEqual"===n?(S="".concat(v[n],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(x="".concat(_(l)),S.length>512&&(S="".concat(S.slice(0,509),"...")),x.length>512&&(x="".concat(x.slice(0,509),"...")),"deepEqual"===n||"equal"===n?S="".concat(I,"\n\n").concat(S,"\n\nshould equal\n\n"):x=" ".concat(n," ").concat(x)),t=a(this,c(o).call(this,"".concat(S).concat(x)))}return Error.stackTraceLimit=M,t.generatedMessage=!r,Object.defineProperty(s(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=d,t.expected=l,t.operator=n,Error.captureStackTrace&&Error.captureStackTrace(s(t),f),t.stack,t.name="AssertionError",a(t)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(o,e),t=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:l.custom,value:function(e,t){return l(this,function(e){for(var t=1;t2?arguments[2]:{},a=i(t);n&&(a=s.call(a,Object.getOwnPropertySymbols(t)));for(var o=0;o=0&&"[object Function]"===i.call(e.callee)),r}},{}],aNcRl:[function(e,t,r){"use strict";var i;if(!Object.keys){var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=e("b0d8c8b84be91ffd"),o=Object.prototype.propertyIsEnumerable,f=!o.call({toString:null},"toString"),d=o.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&n.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return u(e);try{return u(e)}catch(e){return!1}};i=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===a.call(e),i=s(e),o=t&&"[object String]"===a.call(e),u=[];if(!t&&!r&&!i)throw TypeError("Object.keys called on a non-object");var l=d&&r;if(o&&e.length>0&&!n.call(e,0))for(var h=0;h0)for(var b=0;b10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=4294967296}function P(e){return Object.keys(e).filter(C).concat(d(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function O(e,t){if(e===t)return 0;for(var r=e.length,i=t.length,n=0,a=Math.min(r,i);n0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]new Uint8Array(e),t){return"function"==typeof e&&(e=e(t)),a("output",e,t),e}function f(e){return Object.prototype.toString.call(e).slice(8,-1)}t.exports=e=>({contextRandomize(t){if(n(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&a("seed",t,32),1===e.contextRandomize(t))throw Error(i.CONTEXT_RANDOMIZE_UNKNOW)},privateKeyVerify:t=>(a("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(a("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw Error(i.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakAdd(t,r)){case 0:return t;case 1:throw Error(i.TWEAK_ADD)}},privateKeyTweakMul(t,r){switch(a("private key",t,32),a("tweak",r,32),e.privateKeyTweakMul(t,r)){case 0:return t;case 1:throw Error(i.TWEAK_MUL)}},publicKeyVerify:t=>(a("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,r=!0,n){switch(a("private key",t,32),s(r),n=o(n,r?33:65),e.publicKeyCreate(n,t)){case 0:return n;case 1:throw Error(i.SECKEY_INVALID);case 2:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyConvert(t,r=!0,n){switch(a("public key",t,[33,65]),s(r),n=o(n,r?33:65),e.publicKeyConvert(n,t)){case 0:return n;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyNegate(t,r=!0,n){switch(a("public key",t,[33,65]),s(r),n=o(n,r?33:65),e.publicKeyNegate(n,t)){case 0:return n;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.IMPOSSIBLE_CASE);case 3:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyCombine(t,r=!0,f){for(let e of(n(Array.isArray(t),"Expected public keys to be an Array"),n(t.length>0,"Expected public keys array will have more than zero items"),t))a("public key",e,[33,65]);switch(s(r),f=o(f,r?33:65),e.publicKeyCombine(f,t)){case 0:return f;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.PUBKEY_COMBINE);case 3:throw Error(i.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(t,r,n=!0,f){switch(a("public key",t,[33,65]),a("tweak",r,32),s(n),f=o(f,n?33:65),e.publicKeyTweakAdd(f,t,r)){case 0:return f;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.TWEAK_ADD)}},publicKeyTweakMul(t,r,n=!0,f){switch(a("public key",t,[33,65]),a("tweak",r,32),s(n),f=o(f,n?33:65),e.publicKeyTweakMul(f,t,r)){case 0:return f;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.TWEAK_MUL)}},signatureNormalize(t){switch(a("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw Error(i.SIG_PARSE)}},signatureExport(t,r){a("signature",t,64),r=o(r,72);let n={output:r,outputlen:72};switch(e.signatureExport(n,t)){case 0:return r.slice(0,n.outputlen);case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.IMPOSSIBLE_CASE)}},signatureImport(t,r){switch(a("signature",t),r=o(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.IMPOSSIBLE_CASE)}},ecdsaSign(t,r,s={},d){a("message",t,32),a("private key",r,32),n("Object"===f(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.noncefn&&n("Function"===f(s.noncefn),"Expected options.noncefn to be a Function"),d=o(d,64);let c={signature:d,recid:null};switch(e.ecdsaSign(c,t,r,s.data,s.noncefn)){case 0:return c;case 1:throw Error(i.SIGN);case 2:throw Error(i.IMPOSSIBLE_CASE)}},ecdsaVerify(t,r,n){switch(a("signature",t,64),a("message",r,32),a("public key",n,[33,65]),e.ecdsaVerify(t,r,n)){case 0:return!0;case 3:return!1;case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.PUBKEY_PARSE)}},ecdsaRecover(t,r,d,c=!0,u){switch(a("signature",t,64),n("Number"===f(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),a("message",d,32),s(c),u=o(u,c?33:65),e.ecdsaRecover(u,t,r,d)){case 0:return u;case 1:throw Error(i.SIG_PARSE);case 2:throw Error(i.RECOVER);case 3:throw Error(i.IMPOSSIBLE_CASE)}},ecdh(t,r,s={},d){switch(a("public key",t,[33,65]),a("private key",r,32),n("Object"===f(s),"Expected options to be an Object"),void 0!==s.data&&a("options.data",s.data),void 0!==s.hashfn?(n("Function"===f(s.hashfn),"Expected options.hashfn to be a Function"),void 0!==s.xbuf&&a("options.xbuf",s.xbuf,32),void 0!==s.ybuf&&a("options.ybuf",s.ybuf,32),a("output",d)):d=o(d,32),e.ecdh(d,t,r,s.data,s.hashfn,s.xbuf,s.ybuf)){case 0:return d;case 1:throw Error(i.PUBKEY_PARSE);case 2:throw Error(i.ECDH)}}})},{}],"6XZs0":[function(e,t,r){let i=e("3ab9749d2e756678").ec,n=new i("secp256k1"),a=n.curve,s=a.n.constructor;function o(e){let t=e[0];switch(t){case 2:case 3:if(33!==e.length)return null;return function(e,t){let r=new s(t);if(r.cmp(a.p)>=0)return null;let i=(r=r.toRed(a.red)).redSqr().redIMul(r).redIAdd(a.b).redSqrt();return 3===e!==i.isOdd()&&(i=i.redNeg()),n.keyPair({pub:{x:r,y:i}})}(t,e.subarray(1,33));case 4:case 6:case 7:if(65!==e.length)return null;return function(e,t,r){let i=new s(t),o=new s(r);if(i.cmp(a.p)>=0||o.cmp(a.p)>=0||(i=i.toRed(a.red),o=o.toRed(a.red),(6===e||7===e)&&o.isOdd()!==(7===e)))return null;let f=i.redSqr().redIMul(i);return o.redSqr().redISub(f.redIAdd(a.b)).isZero()?n.keyPair({pub:{x:i,y:o}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function f(e,t){let r=t.encode(null,33===e.length);for(let t=0;t0,privateKeyVerify(e){let t=new s(e);return 0>t.cmp(a.n)&&!t.isZero()?0:1},privateKeyNegate(e){let t=new s(e),r=a.n.sub(t).umod(a.n).toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakAdd(e,t){let r=new s(t);if(r.cmp(a.n)>=0||(r.iadd(new s(e)),r.cmp(a.n)>=0&&r.isub(a.n),r.isZero()))return 1;let i=r.toArrayLike(Uint8Array,"be",32);return e.set(i),0},privateKeyTweakMul(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;r.imul(new s(e)),r.cmp(a.n)>=0&&(r=r.umod(a.n));let i=r.toArrayLike(Uint8Array,"be",32);return e.set(i),0},publicKeyVerify(e){let t=o(e);return null===t?1:0},publicKeyCreate(e,t){let r=new s(t);if(r.cmp(a.n)>=0||r.isZero())return 1;let i=n.keyFromPrivate(t).getPublic();return f(e,i),0},publicKeyConvert(e,t){let r=o(t);if(null===r)return 1;let i=r.getPublic();return f(e,i),0},publicKeyNegate(e,t){let r=o(t);if(null===r)return 1;let i=r.getPublic();return i.y=i.y.redNeg(),f(e,i),0},publicKeyCombine(e,t){let r=Array(t.length);for(let e=0;e=0)return 2;let n=i.getPublic().add(a.g.mul(r));return n.isInfinity()?2:(f(e,n),0)},publicKeyTweakMul(e,t,r){let i=o(t);if(null===i)return 1;if((r=new s(r)).cmp(a.n)>=0||r.isZero())return 2;let n=i.getPublic().mul(r);return f(e,n),0},signatureNormalize(e){let t=new s(e.subarray(0,32)),r=new s(e.subarray(32,64));return t.cmp(a.n)>=0||r.cmp(a.n)>=0?1:(1===r.cmp(n.nh)&&e.set(a.n.sub(r).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){let r=t.subarray(0,32),i=t.subarray(32,64);if(new s(r).cmp(a.n)>=0||new s(i).cmp(a.n)>=0)return 1;let{output:n}=e,o=n.subarray(4,37);o[0]=0,o.set(r,1);let f=33,d=0;for(;f>1&&0===o[d]&&!(128&o[d+1]);--f,++d);if(128&(o=o.subarray(d))[0]||f>1&&0===o[0]&&!(128&o[1]))return 1;let c=n.subarray(39,72);c[0]=0,c.set(i,1);let u=33,l=0;for(;u>1&&0===c[l]&&!(128&c[l+1]);--u,++l);return 128&(c=c.subarray(l))[0]||u>1&&0===c[0]&&!(128&c[1])?1:(e.outputlen=6+f+u,n[0]=48,n[1]=e.outputlen-2,n[2]=2,n[3]=o.length,n.set(o,4),n[4+f]=2,n[5+f]=c.length,n.set(c,6+f),0)},signatureImport(e,t){if(t.length<8||t.length>72||48!==t[0]||t[1]!==t.length-2||2!==t[2])return 1;let r=t[3];if(0===r||5+r>=t.length||2!==t[4+r])return 1;let i=t[5+r];if(0===i||6+r+i!==t.length||128&t[4]||r>1&&0===t[4]&&!(128&t[5])||128&t[r+6]||i>1&&0===t[r+6]&&!(128&t[r+7]))return 1;let n=t.subarray(4,4+r);if(33===n.length&&0===n[0]&&(n=n.subarray(1)),n.length>32)return 1;let o=t.subarray(6+r);if(33===o.length&&0===o[0]&&(o=o.slice(1)),o.length>32)throw Error("S length is too long");let f=new s(n);f.cmp(a.n)>=0&&(f=new s(0));let d=new s(t.subarray(6+r));return d.cmp(a.n)>=0&&(d=new s(0)),e.set(f.toArrayLike(Uint8Array,"be",32),0),e.set(d.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,r,i,o){let f;if(o){let e=o;o=n=>{let a=e(t,r,null,i,n),o=a instanceof Uint8Array&&32===a.length;if(!o)throw Error("This is the way");return new s(a)}}let d=new s(r);if(d.cmp(a.n)>=0||d.isZero())return 1;try{f=n.sign(t,r,{canonical:!0,k:o,pers:i})}catch(e){return 1}return e.signature.set(f.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(f.s.toArrayLike(Uint8Array,"be",32),32),e.recid=f.recoveryParam,0},ecdsaVerify(e,t,r){let i={r:e.subarray(0,32),s:e.subarray(32,64)},f=new s(i.r),d=new s(i.s);if(f.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(1===d.cmp(n.nh)||f.isZero()||d.isZero())return 3;let c=o(r);if(null===c)return 2;let u=c.getPublic(),l=n.verify(t,i,u);return l?0:3},ecdsaRecover(e,t,r,i){let o;let d={r:t.slice(0,32),s:t.slice(32,64)},c=new s(d.r),u=new s(d.s);if(c.cmp(a.n)>=0||u.cmp(a.n)>=0)return 1;if(c.isZero()||u.isZero())return 2;try{o=n.recoverPubKey(i,d,r)}catch(e){return 2}return f(e,o),0},ecdh(e,t,r,i,f,d,c){let u=o(t);if(null===u)return 1;let l=new s(r);if(l.cmp(a.n)>=0||l.isZero())return 2;let h=u.getPublic().mul(l);if(void 0===f){let t=h.encode(null,!0),r=n.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=r[t]}else{d||(d=new Uint8Array(32));let t=h.getX().toArray("be",32);for(let e=0;e<32;++e)d[e]=t[e];c||(c=new Uint8Array(32));let r=h.getY().toArray("be",32);for(let e=0;e<32;++e)c[e]=r[e];let n=f(d,c,i),a=n instanceof Uint8Array&&n.length===e.length;if(!a)return 2;e.set(n)}return 0}}},{"3ab9749d2e756678":"9VjgU"}],"9VjgU":[function(e,t,r){"use strict";r.version=e("515d1f18e2287297").version,r.utils=e("9f55689fa043728c"),r.rand=e("7afc0877735a9bc4"),r.curve=e("5ccf953184e3a528"),r.curves=e("8f6bfdba100e4"),r.ec=e("81c5640b36274b08"),r.eddsa=e("2d59202631b9dddc")},{"515d1f18e2287297":"hk5ev","9f55689fa043728c":"jv07p","7afc0877735a9bc4":"dpC9B","5ccf953184e3a528":"ldLiU","8f6bfdba100e4":"7c3k1","81c5640b36274b08":"8KPXv","2d59202631b9dddc":"kYSAK"}],hk5ev:[function(e,t,r){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},{}],jv07p:[function(e,t,r){"use strict";var i=e("30b1bd8701c16231"),n=e("b4abad357e6d8a61"),a=e("20d152f2d74d3ff5");r.assert=n,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,r){var i=Array(Math.max(e.bitLength(),r)+1);i.fill(0);for(var n=1<(n>>1)-1?(n>>1)-f:f,a.isubn(o)):o=0,i[s]=o,a.iushrn(1)}return i},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var i=0,n=0;e.cmpn(-i)>0||t.cmpn(-n)>0;){var a,s,o,f=e.andln(3)+i&3,d=t.andln(3)+n&3;3===f&&(f=-1),3===d&&(d=-1),s=(1&f)==0?0:(3==(a=e.andln(7)+i&7)||5===a)&&2===d?-f:f,r[0].push(s),o=(1&d)==0?0:(3==(a=t.andln(7)+n&7)||5===a)&&2===f?-d:d,r[1].push(o),2*i===s+1&&(i=1-i),2*n===o+1&&(n=1-n),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var i="_"+t;e.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},{"30b1bd8701c16231":"8vHNk",b4abad357e6d8a61:"h59lk","20d152f2d74d3ff5":"6lUA8"}],"8vHNk":[function(e,t,r){!function(t,r){"use strict";function i(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function a(e,t,r){if(a.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=a:r.BN=a,a.BN=a,a.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("1a126d25aa085b98").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 i=s(e,r);return r-1>=t&&(i|=s(e,r-1)<<4),i}function f(e,t,r,i){for(var n=0,a=Math.min(e.length,r),s=t;s=49?n+=o-49+10:o>=17?n+=o-17+10:n+=o}return n}a.isBN=function(e){return e instanceof a||null!==e&&"object"==typeof e&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){return e.cmp(t)>0?e:t},a.min=function(e,t){return 0>e.cmp(t)?e:t},a.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),i(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n=0;s-=3)a=e[s]|e[s-1]<<8|e[s-2]<<16,this.words[n]|=a<>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);else if("le"===r)for(s=0,n=0;s>>26-o&67108863,(o+=24)>=26&&(o-=26,n++);return this.strip()},a.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var i,n=0;n=t;n-=2)i=o(e,t,n)<=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(a-=18,s+=1,this.words[s]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var i=0,n=1;n<=67108863;n*=t)i++;i--,n=n/t|0;for(var a=e.length-r,s=a%i,o=Math.min(a,a-s)+r,d=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var d,c=["","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"],u=[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],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var i=e.length+t.length|0;r.length=i,i=i-1|0;var n=0|e.words[0],a=0|t.words[0],s=n*a,o=67108863&s,f=s/67108864|0;r.words[0]=o;for(var d=1;d>>26,u=67108863&f,l=Math.min(d,t.length-1),h=Math.max(0,d-e.length+1);h<=l;h++){var p=d-h|0;c+=(s=(n=0|e.words[p])*(a=0|t.words[h])+u)/67108864|0,u=67108863&s}r.words[d]=0|u,f=0|c}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}a.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var r,n=0,a=0,s=0;s>>24-n&16777215)||s!==this.length-1?c[6-f.length]+f+r:f+r,(n+=2)>=26&&(n-=26,s--)}for(0!==a&&(r=a.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 d=u[e],h=l[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:c[d-b.length]+b+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,t){return i(void 0!==d),this.toArrayLike(d,e,t)},a.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},a.prototype.toArrayLike=function(e,t,r){var n,a,s=this.byteLength(),o=r||Math.max(1,s);i(s<=o,"byte array longer than desired length"),i(o>0,"Requested array length <= 0"),this.strip();var f=new e(o),d=this.clone();if("le"===t){for(a=0;!d.isZero();a++)n=d.andln(255),d.iushrn(8),f[a]=n;for(;a=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},a.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},a.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.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)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,i=0;ie.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,t){i("number"==typeof e&&e>=0);var r=e/26|0,n=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<e.length?(r=this,i=e):(r=e,i=this);for(var t,r,i,n=0,a=0;a>>26;for(;0!==n&&a>>26;if(this.length=r.length,0!==n)this.words[this.length]=n,this.length++;else if(r!==this)for(;ae.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,i=this.iadd(e);return e.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(t=this,r=e):(t=e,r=this);for(var a=0,s=0;s>26,this.words[s]=67108863&i;for(;0!==a&&s>26,this.words[s]=67108863&i;if(0===a&&s>>13,h=0|s[1],p=8191&h,b=h>>>13,m=0|s[2],g=8191&m,y=m>>>13,v=0|s[3],w=8191&v,_=v>>>13,M=0|s[4],E=8191&M,A=M>>>13,S=0|s[5],x=8191&S,I=S>>>13,R=0|s[6],k=8191&R,T=R>>>13,C=0|s[7],P=8191&C,O=C>>>13,N=0|s[8],j=8191&N,B=N>>>13,L=0|s[9],D=8191&L,F=L>>>13,U=0|o[0],q=8191&U,z=U>>>13,K=0|o[1],H=8191&K,V=K>>>13,W=0|o[2],G=8191&W,J=W>>>13,Z=0|o[3],X=8191&Z,$=Z>>>13,Y=0|o[4],Q=8191&Y,ee=Y>>>13,et=0|o[5],er=8191&et,ei=et>>>13,en=0|o[6],ea=8191&en,es=en>>>13,eo=0|o[7],ef=8191&eo,ed=eo>>>13,ec=0|o[8],eu=8191&ec,el=ec>>>13,eh=0|o[9],ep=8191&eh,eb=eh>>>13;r.negative=e.negative^t.negative,r.length=19;var em=(d+(i=Math.imul(u,q))|0)+((8191&(n=(n=Math.imul(u,z))+Math.imul(l,q)|0))<<13)|0;d=((a=Math.imul(l,z))+(n>>>13)|0)+(em>>>26)|0,em&=67108863,i=Math.imul(p,q),n=(n=Math.imul(p,z))+Math.imul(b,q)|0,a=Math.imul(b,z);var eg=(d+(i=i+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,V)|0)+Math.imul(l,H)|0))<<13)|0;d=((a=a+Math.imul(l,V)|0)+(n>>>13)|0)+(eg>>>26)|0,eg&=67108863,i=Math.imul(g,q),n=(n=Math.imul(g,z))+Math.imul(y,q)|0,a=Math.imul(y,z),i=i+Math.imul(p,H)|0,n=(n=n+Math.imul(p,V)|0)+Math.imul(b,H)|0,a=a+Math.imul(b,V)|0;var ey=(d+(i=i+Math.imul(u,G)|0)|0)+((8191&(n=(n=n+Math.imul(u,J)|0)+Math.imul(l,G)|0))<<13)|0;d=((a=a+Math.imul(l,J)|0)+(n>>>13)|0)+(ey>>>26)|0,ey&=67108863,i=Math.imul(w,q),n=(n=Math.imul(w,z))+Math.imul(_,q)|0,a=Math.imul(_,z),i=i+Math.imul(g,H)|0,n=(n=n+Math.imul(g,V)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,V)|0,i=i+Math.imul(p,G)|0,n=(n=n+Math.imul(p,J)|0)+Math.imul(b,G)|0,a=a+Math.imul(b,J)|0;var ev=(d+(i=i+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,$)|0)+Math.imul(l,X)|0))<<13)|0;d=((a=a+Math.imul(l,$)|0)+(n>>>13)|0)+(ev>>>26)|0,ev&=67108863,i=Math.imul(E,q),n=(n=Math.imul(E,z))+Math.imul(A,q)|0,a=Math.imul(A,z),i=i+Math.imul(w,H)|0,n=(n=n+Math.imul(w,V)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,V)|0,i=i+Math.imul(g,G)|0,n=(n=n+Math.imul(g,J)|0)+Math.imul(y,G)|0,a=a+Math.imul(y,J)|0,i=i+Math.imul(p,X)|0,n=(n=n+Math.imul(p,$)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,$)|0;var ew=(d+(i=i+Math.imul(u,Q)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(l,Q)|0))<<13)|0;d=((a=a+Math.imul(l,ee)|0)+(n>>>13)|0)+(ew>>>26)|0,ew&=67108863,i=Math.imul(x,q),n=(n=Math.imul(x,z))+Math.imul(I,q)|0,a=Math.imul(I,z),i=i+Math.imul(E,H)|0,n=(n=n+Math.imul(E,V)|0)+Math.imul(A,H)|0,a=a+Math.imul(A,V)|0,i=i+Math.imul(w,G)|0,n=(n=n+Math.imul(w,J)|0)+Math.imul(_,G)|0,a=a+Math.imul(_,J)|0,i=i+Math.imul(g,X)|0,n=(n=n+Math.imul(g,$)|0)+Math.imul(y,X)|0,a=a+Math.imul(y,$)|0,i=i+Math.imul(p,Q)|0,n=(n=n+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,a=a+Math.imul(b,ee)|0;var e_=(d+(i=i+Math.imul(u,er)|0)|0)+((8191&(n=(n=n+Math.imul(u,ei)|0)+Math.imul(l,er)|0))<<13)|0;d=((a=a+Math.imul(l,ei)|0)+(n>>>13)|0)+(e_>>>26)|0,e_&=67108863,i=Math.imul(k,q),n=(n=Math.imul(k,z))+Math.imul(T,q)|0,a=Math.imul(T,z),i=i+Math.imul(x,H)|0,n=(n=n+Math.imul(x,V)|0)+Math.imul(I,H)|0,a=a+Math.imul(I,V)|0,i=i+Math.imul(E,G)|0,n=(n=n+Math.imul(E,J)|0)+Math.imul(A,G)|0,a=a+Math.imul(A,J)|0,i=i+Math.imul(w,X)|0,n=(n=n+Math.imul(w,$)|0)+Math.imul(_,X)|0,a=a+Math.imul(_,$)|0,i=i+Math.imul(g,Q)|0,n=(n=n+Math.imul(g,ee)|0)+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,i=i+Math.imul(p,er)|0,n=(n=n+Math.imul(p,ei)|0)+Math.imul(b,er)|0,a=a+Math.imul(b,ei)|0;var eM=(d+(i=i+Math.imul(u,ea)|0)|0)+((8191&(n=(n=n+Math.imul(u,es)|0)+Math.imul(l,ea)|0))<<13)|0;d=((a=a+Math.imul(l,es)|0)+(n>>>13)|0)+(eM>>>26)|0,eM&=67108863,i=Math.imul(P,q),n=(n=Math.imul(P,z))+Math.imul(O,q)|0,a=Math.imul(O,z),i=i+Math.imul(k,H)|0,n=(n=n+Math.imul(k,V)|0)+Math.imul(T,H)|0,a=a+Math.imul(T,V)|0,i=i+Math.imul(x,G)|0,n=(n=n+Math.imul(x,J)|0)+Math.imul(I,G)|0,a=a+Math.imul(I,J)|0,i=i+Math.imul(E,X)|0,n=(n=n+Math.imul(E,$)|0)+Math.imul(A,X)|0,a=a+Math.imul(A,$)|0,i=i+Math.imul(w,Q)|0,n=(n=n+Math.imul(w,ee)|0)+Math.imul(_,Q)|0,a=a+Math.imul(_,ee)|0,i=i+Math.imul(g,er)|0,n=(n=n+Math.imul(g,ei)|0)+Math.imul(y,er)|0,a=a+Math.imul(y,ei)|0,i=i+Math.imul(p,ea)|0,n=(n=n+Math.imul(p,es)|0)+Math.imul(b,ea)|0,a=a+Math.imul(b,es)|0;var eE=(d+(i=i+Math.imul(u,ef)|0)|0)+((8191&(n=(n=n+Math.imul(u,ed)|0)+Math.imul(l,ef)|0))<<13)|0;d=((a=a+Math.imul(l,ed)|0)+(n>>>13)|0)+(eE>>>26)|0,eE&=67108863,i=Math.imul(j,q),n=(n=Math.imul(j,z))+Math.imul(B,q)|0,a=Math.imul(B,z),i=i+Math.imul(P,H)|0,n=(n=n+Math.imul(P,V)|0)+Math.imul(O,H)|0,a=a+Math.imul(O,V)|0,i=i+Math.imul(k,G)|0,n=(n=n+Math.imul(k,J)|0)+Math.imul(T,G)|0,a=a+Math.imul(T,J)|0,i=i+Math.imul(x,X)|0,n=(n=n+Math.imul(x,$)|0)+Math.imul(I,X)|0,a=a+Math.imul(I,$)|0,i=i+Math.imul(E,Q)|0,n=(n=n+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,a=a+Math.imul(A,ee)|0,i=i+Math.imul(w,er)|0,n=(n=n+Math.imul(w,ei)|0)+Math.imul(_,er)|0,a=a+Math.imul(_,ei)|0,i=i+Math.imul(g,ea)|0,n=(n=n+Math.imul(g,es)|0)+Math.imul(y,ea)|0,a=a+Math.imul(y,es)|0,i=i+Math.imul(p,ef)|0,n=(n=n+Math.imul(p,ed)|0)+Math.imul(b,ef)|0,a=a+Math.imul(b,ed)|0;var eA=(d+(i=i+Math.imul(u,eu)|0)|0)+((8191&(n=(n=n+Math.imul(u,el)|0)+Math.imul(l,eu)|0))<<13)|0;d=((a=a+Math.imul(l,el)|0)+(n>>>13)|0)+(eA>>>26)|0,eA&=67108863,i=Math.imul(D,q),n=(n=Math.imul(D,z))+Math.imul(F,q)|0,a=Math.imul(F,z),i=i+Math.imul(j,H)|0,n=(n=n+Math.imul(j,V)|0)+Math.imul(B,H)|0,a=a+Math.imul(B,V)|0,i=i+Math.imul(P,G)|0,n=(n=n+Math.imul(P,J)|0)+Math.imul(O,G)|0,a=a+Math.imul(O,J)|0,i=i+Math.imul(k,X)|0,n=(n=n+Math.imul(k,$)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,$)|0,i=i+Math.imul(x,Q)|0,n=(n=n+Math.imul(x,ee)|0)+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,i=i+Math.imul(E,er)|0,n=(n=n+Math.imul(E,ei)|0)+Math.imul(A,er)|0,a=a+Math.imul(A,ei)|0,i=i+Math.imul(w,ea)|0,n=(n=n+Math.imul(w,es)|0)+Math.imul(_,ea)|0,a=a+Math.imul(_,es)|0,i=i+Math.imul(g,ef)|0,n=(n=n+Math.imul(g,ed)|0)+Math.imul(y,ef)|0,a=a+Math.imul(y,ed)|0,i=i+Math.imul(p,eu)|0,n=(n=n+Math.imul(p,el)|0)+Math.imul(b,eu)|0,a=a+Math.imul(b,el)|0;var eS=(d+(i=i+Math.imul(u,ep)|0)|0)+((8191&(n=(n=n+Math.imul(u,eb)|0)+Math.imul(l,ep)|0))<<13)|0;d=((a=a+Math.imul(l,eb)|0)+(n>>>13)|0)+(eS>>>26)|0,eS&=67108863,i=Math.imul(D,H),n=(n=Math.imul(D,V))+Math.imul(F,H)|0,a=Math.imul(F,V),i=i+Math.imul(j,G)|0,n=(n=n+Math.imul(j,J)|0)+Math.imul(B,G)|0,a=a+Math.imul(B,J)|0,i=i+Math.imul(P,X)|0,n=(n=n+Math.imul(P,$)|0)+Math.imul(O,X)|0,a=a+Math.imul(O,$)|0,i=i+Math.imul(k,Q)|0,n=(n=n+Math.imul(k,ee)|0)+Math.imul(T,Q)|0,a=a+Math.imul(T,ee)|0,i=i+Math.imul(x,er)|0,n=(n=n+Math.imul(x,ei)|0)+Math.imul(I,er)|0,a=a+Math.imul(I,ei)|0,i=i+Math.imul(E,ea)|0,n=(n=n+Math.imul(E,es)|0)+Math.imul(A,ea)|0,a=a+Math.imul(A,es)|0,i=i+Math.imul(w,ef)|0,n=(n=n+Math.imul(w,ed)|0)+Math.imul(_,ef)|0,a=a+Math.imul(_,ed)|0,i=i+Math.imul(g,eu)|0,n=(n=n+Math.imul(g,el)|0)+Math.imul(y,eu)|0,a=a+Math.imul(y,el)|0;var ex=(d+(i=i+Math.imul(p,ep)|0)|0)+((8191&(n=(n=n+Math.imul(p,eb)|0)+Math.imul(b,ep)|0))<<13)|0;d=((a=a+Math.imul(b,eb)|0)+(n>>>13)|0)+(ex>>>26)|0,ex&=67108863,i=Math.imul(D,G),n=(n=Math.imul(D,J))+Math.imul(F,G)|0,a=Math.imul(F,J),i=i+Math.imul(j,X)|0,n=(n=n+Math.imul(j,$)|0)+Math.imul(B,X)|0,a=a+Math.imul(B,$)|0,i=i+Math.imul(P,Q)|0,n=(n=n+Math.imul(P,ee)|0)+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,i=i+Math.imul(k,er)|0,n=(n=n+Math.imul(k,ei)|0)+Math.imul(T,er)|0,a=a+Math.imul(T,ei)|0,i=i+Math.imul(x,ea)|0,n=(n=n+Math.imul(x,es)|0)+Math.imul(I,ea)|0,a=a+Math.imul(I,es)|0,i=i+Math.imul(E,ef)|0,n=(n=n+Math.imul(E,ed)|0)+Math.imul(A,ef)|0,a=a+Math.imul(A,ed)|0,i=i+Math.imul(w,eu)|0,n=(n=n+Math.imul(w,el)|0)+Math.imul(_,eu)|0,a=a+Math.imul(_,el)|0;var eI=(d+(i=i+Math.imul(g,ep)|0)|0)+((8191&(n=(n=n+Math.imul(g,eb)|0)+Math.imul(y,ep)|0))<<13)|0;d=((a=a+Math.imul(y,eb)|0)+(n>>>13)|0)+(eI>>>26)|0,eI&=67108863,i=Math.imul(D,X),n=(n=Math.imul(D,$))+Math.imul(F,X)|0,a=Math.imul(F,$),i=i+Math.imul(j,Q)|0,n=(n=n+Math.imul(j,ee)|0)+Math.imul(B,Q)|0,a=a+Math.imul(B,ee)|0,i=i+Math.imul(P,er)|0,n=(n=n+Math.imul(P,ei)|0)+Math.imul(O,er)|0,a=a+Math.imul(O,ei)|0,i=i+Math.imul(k,ea)|0,n=(n=n+Math.imul(k,es)|0)+Math.imul(T,ea)|0,a=a+Math.imul(T,es)|0,i=i+Math.imul(x,ef)|0,n=(n=n+Math.imul(x,ed)|0)+Math.imul(I,ef)|0,a=a+Math.imul(I,ed)|0,i=i+Math.imul(E,eu)|0,n=(n=n+Math.imul(E,el)|0)+Math.imul(A,eu)|0,a=a+Math.imul(A,el)|0;var eR=(d+(i=i+Math.imul(w,ep)|0)|0)+((8191&(n=(n=n+Math.imul(w,eb)|0)+Math.imul(_,ep)|0))<<13)|0;d=((a=a+Math.imul(_,eb)|0)+(n>>>13)|0)+(eR>>>26)|0,eR&=67108863,i=Math.imul(D,Q),n=(n=Math.imul(D,ee))+Math.imul(F,Q)|0,a=Math.imul(F,ee),i=i+Math.imul(j,er)|0,n=(n=n+Math.imul(j,ei)|0)+Math.imul(B,er)|0,a=a+Math.imul(B,ei)|0,i=i+Math.imul(P,ea)|0,n=(n=n+Math.imul(P,es)|0)+Math.imul(O,ea)|0,a=a+Math.imul(O,es)|0,i=i+Math.imul(k,ef)|0,n=(n=n+Math.imul(k,ed)|0)+Math.imul(T,ef)|0,a=a+Math.imul(T,ed)|0,i=i+Math.imul(x,eu)|0,n=(n=n+Math.imul(x,el)|0)+Math.imul(I,eu)|0,a=a+Math.imul(I,el)|0;var ek=(d+(i=i+Math.imul(E,ep)|0)|0)+((8191&(n=(n=n+Math.imul(E,eb)|0)+Math.imul(A,ep)|0))<<13)|0;d=((a=a+Math.imul(A,eb)|0)+(n>>>13)|0)+(ek>>>26)|0,ek&=67108863,i=Math.imul(D,er),n=(n=Math.imul(D,ei))+Math.imul(F,er)|0,a=Math.imul(F,ei),i=i+Math.imul(j,ea)|0,n=(n=n+Math.imul(j,es)|0)+Math.imul(B,ea)|0,a=a+Math.imul(B,es)|0,i=i+Math.imul(P,ef)|0,n=(n=n+Math.imul(P,ed)|0)+Math.imul(O,ef)|0,a=a+Math.imul(O,ed)|0,i=i+Math.imul(k,eu)|0,n=(n=n+Math.imul(k,el)|0)+Math.imul(T,eu)|0,a=a+Math.imul(T,el)|0;var eT=(d+(i=i+Math.imul(x,ep)|0)|0)+((8191&(n=(n=n+Math.imul(x,eb)|0)+Math.imul(I,ep)|0))<<13)|0;d=((a=a+Math.imul(I,eb)|0)+(n>>>13)|0)+(eT>>>26)|0,eT&=67108863,i=Math.imul(D,ea),n=(n=Math.imul(D,es))+Math.imul(F,ea)|0,a=Math.imul(F,es),i=i+Math.imul(j,ef)|0,n=(n=n+Math.imul(j,ed)|0)+Math.imul(B,ef)|0,a=a+Math.imul(B,ed)|0,i=i+Math.imul(P,eu)|0,n=(n=n+Math.imul(P,el)|0)+Math.imul(O,eu)|0,a=a+Math.imul(O,el)|0;var eC=(d+(i=i+Math.imul(k,ep)|0)|0)+((8191&(n=(n=n+Math.imul(k,eb)|0)+Math.imul(T,ep)|0))<<13)|0;d=((a=a+Math.imul(T,eb)|0)+(n>>>13)|0)+(eC>>>26)|0,eC&=67108863,i=Math.imul(D,ef),n=(n=Math.imul(D,ed))+Math.imul(F,ef)|0,a=Math.imul(F,ed),i=i+Math.imul(j,eu)|0,n=(n=n+Math.imul(j,el)|0)+Math.imul(B,eu)|0,a=a+Math.imul(B,el)|0;var eP=(d+(i=i+Math.imul(P,ep)|0)|0)+((8191&(n=(n=n+Math.imul(P,eb)|0)+Math.imul(O,ep)|0))<<13)|0;d=((a=a+Math.imul(O,eb)|0)+(n>>>13)|0)+(eP>>>26)|0,eP&=67108863,i=Math.imul(D,eu),n=(n=Math.imul(D,el))+Math.imul(F,eu)|0,a=Math.imul(F,el);var eO=(d+(i=i+Math.imul(j,ep)|0)|0)+((8191&(n=(n=n+Math.imul(j,eb)|0)+Math.imul(B,ep)|0))<<13)|0;d=((a=a+Math.imul(B,eb)|0)+(n>>>13)|0)+(eO>>>26)|0,eO&=67108863;var eN=(d+(i=Math.imul(D,ep))|0)+((8191&(n=(n=Math.imul(D,eb))+Math.imul(F,ep)|0))<<13)|0;return d=((a=Math.imul(F,eb))+(n>>>13)|0)+(eN>>>26)|0,eN&=67108863,f[0]=em,f[1]=eg,f[2]=ey,f[3]=ev,f[4]=ew,f[5]=e_,f[6]=eM,f[7]=eE,f[8]=eA,f[9]=eS,f[10]=ex,f[11]=eI,f[12]=eR,f[13]=ek,f[14]=eT,f[15]=eC,f[16]=eP,f[17]=eO,f[18]=eN,0!==d&&(f[19]=d,r.length++),r};function b(e,t,r){return new m().mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=h),a.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 i=0,n=0,a=0;a>>26)|0)>>>26,s&=67108863}r.words[a]=o,i=s,s=n}return 0!==i?r.words[a]=i:r.length--,r.strip()}(this,e,t):b(this,e,t)},m.prototype.makeRBT=function(e){for(var t=Array(e),r=a.prototype._countBits(e)-1,i=0;i>=1;return i},m.prototype.permute=function(e,t,r,i,n,a){for(var s=0;s>>=1)n++;return 1<>>=13,r[2*s+1]=8191&a,a>>>=13;for(s=2*t;s>=26,t+=(n/67108864|0)+(a>>>26),this.words[r]=67108863&a}return 0!==t&&(this.words[r]=t,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>n}return t}(e);if(0===t.length)return new a(1);for(var r=this,i=0;i=0);var t,r=e%26,n=(e-r)/26,a=67108863>>>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!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t=0),n=t?(t-t%26)/26:0;var n,a=e%26,s=Math.min((e-a)/26,this.length),o=67108863^67108863>>>a<s)for(this.length-=s,f=0;f=0&&(0!==d||f>=n);f--){var c=0|this.words[f];this.words[f]=d<<26-a|c>>>a,d=c&o}return r&&0!==d&&(r.words[r.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,t,r){return i(0===this.negative),this.iushrn(e,t,r)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){i("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(i(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]&=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},a.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),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)-(f/67108864|0),this.words[n+r]=67108863&a}for(;n>26,this.words[n+r]=67108863&a;if(0===o)return this.strip();for(i(-1===o),o=0,n=0;n>26,this.words[n]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,t){var r,i=this.length-e.length,n=this.clone(),s=e,o=0|s.words[s.length-1];0!=(i=26-this._countBits(o))&&(s=s.ushln(i),n.iushln(i),o=0|s.words[s.length-1]);var f=n.length-s.length;if("mod"!==t){(r=new a(null)).length=f+1,r.words=Array(r.length);for(var d=0;d=0;u--){var l=(0|n.words[s.length+u])*67108864+(0|n.words[s.length+u-1]);for(l=Math.min(l/o|0,67108863),n._ishlnsubmul(s,l,u);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(s,1,u),n.isZero()||(n.negative^=1);r&&(r.words[u]=l)}return r&&r.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:r||null,mod:n}},a.prototype.divmod=function(e,t,r){var n,s,o;return(i(!e.isZero()),this.isZero())?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:n,mod:s}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,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 a(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,t)},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.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,i=e.ushrn(1),n=e.andln(1),a=r.cmp(i);return a<0||1===n&&0===a?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},a.prototype.modn=function(e){i(e<=67108863);for(var t=67108864%e,r=0,n=this.length-1;n>=0;n--)r=(t*r+(0|this.words[n]))%e;return r},a.prototype.idivn=function(e){i(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new a(1),s=new a(0),o=new a(0),f=new a(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var c=r.clone(),u=t.clone();!t.isZero();){for(var l=0,h=1;(t.words[0]&h)==0&&l<26;++l,h<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(n.isOdd()||s.isOdd())&&(n.iadd(c),s.isub(u)),n.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()||f.isOdd())&&(o.iadd(c),f.isub(u)),o.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),n.isub(o),s.isub(f)):(r.isub(t),o.isub(n),f.isub(s))}return{a:o,b:f,gcd:r.iushln(d)}},a.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var t,r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var s=new a(1),o=new a(0),f=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var d=0,c=1;(r.words[0]&c)==0&&d<26;++d,c<<=1);if(d>0)for(r.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(f),s.iushrn(1);for(var u=0,l=1;(n.words[0]&l)==0&&u<26;++u,l<<=1);if(u>0)for(n.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);r.cmp(n)>=0?(r.isub(n),s.isub(o)):(n.isub(r),o.isub(s))}return 0>(t=0===r.cmpn(1)?s:o).cmpn(0)&&t.iadd(e),t},a.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 i=0;t.isEven()&&r.isEven();i++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var n=t.cmp(r);if(n<0){var a=t;t=r,r=a}else if(0===n||0===r.cmpn(1))break;t.isub(r)}return r.iushln(i)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){i("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<>>26,o&=67108863,this.words[s]=o}return 0!==a&&(this.words[s]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.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),i(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:ne.length)return 1;if(this.length=0;r--){var i=0|this.words[r],n=0|e.words[r];if(i!==n){in&&(t=1);break}}return t},a.prototype.gtn=function(e){return 1===this.cmpn(e)},a.prototype.gt=function(e){return 1===this.cmp(e)},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return -1===this.cmpn(e)},a.prototype.lt=function(e){return -1===this.cmp(e)},a.prototype.lten=function(e){return 0>=this.cmpn(e)},a.prototype.lte=function(e){return 0>=this.cmp(e)},a.prototype.eqn=function(e){return 0===this.cmpn(e)},a.prototype.eq=function(e){return 0===this.cmp(e)},a.red=function(e){return new E(e)},a.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new a(t,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}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 _(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=a._prime(e);this.m=t.p,this.prime=t}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function A(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var e=new a(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 i=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)},n(v,y),v.prototype.split=function(e,t){for(var r=Math.min(e.length,9),i=0;i>>22,n=a}n>>>=22,e.words[i-10]=n,0===n&&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]=n,t=i}return 0!==t&&(e.words[e.length++]=t),e},a._prime=function(e){var t;if(g[e])return g[e];if("k256"===e)t=new v;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return g[e]=t,t},E.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){i((e.negative|t.negative)==0,"red works only with positives"),i(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.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)},E.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},E.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)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(i(t%2==1),3===t){var r=this.m.add(new a(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),s=0;!n.isZero()&&0===n.andln(1);)s++,n.iushrn(1);i(!n.isZero());var o=new a(1).toRed(this),f=o.redNeg(),d=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,d).cmp(f);)c.redIAdd(f);for(var u=this.pow(c,n),l=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=s;0!==h.cmp(o);){for(var b=h,m=0;0!==b.cmp(o);m++)b=b.redSqr();i(m=0;i--){for(var d=t.words[i],c=f-1;c>=0;c--){var u=d>>c&1;if(n!==r[0]&&(n=this.sqr(n)),0===u&&0===s){o=0;continue}s<<=1,s|=u,(4==++o||0===i&&0===c)&&(n=this.mul(n,r[s]),o=0,s=0)}f=26}return n},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},a.mont=function(e){return new A(e)},n(A,E),A.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},A.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},A.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):0>n.cmpn(0)&&(a=n.iadd(this.m)),a._forceRed(this)},A.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new a(0)._forceRed(this);var r=e.mul(t),i=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=r.isub(i).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):0>n.cmpn(0)&&(s=n.iadd(this.m)),s._forceRed(this)},A.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)},{"1a126d25aa085b98":"3eno3"}],ldLiU:[function(e,t,r){"use strict";r.base=e("36df7a1fa4062a40"),r.short=e("a8903f9c0ec7f838"),r.mont=e("b1c636d0735cfc74"),r.edwards=e("641434b95a444f49")},{"36df7a1fa4062a40":"lo2JW",a8903f9c0ec7f838:"kiAQy",b1c636d0735cfc74:"hidAj","641434b95a444f49":"gdTwR"}],lo2JW:[function(e,t,r){"use strict";var i=e("bb5c5ded1efca0d"),n=e("2f963e1cc49d6bf9"),a=n.getNAF,s=n.getJSF,o=n.assert;function f(e,t){this.type=e,this.p=new i(t.p,16),this.red=t.prime?i.red(t.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=t.n&&new i(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=f,f.prototype.point=function(){throw Error("Not implemented")},f.prototype.validate=function(){throw Error("Not implemented")},f.prototype._fixedNafMul=function(e,t){o(e.precomputed);var r,i,n=e._getDoubles(),s=a(t,1,this._bitLength),f=(1<=r;c--)i=(i<<1)+s[c];d.push(i)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=f;h>0;h--){for(r=0;r=0;d--){for(var c=0;d>=0&&0===s[d];d--)c++;if(d>=0&&c++,f=f.dblp(c),d<0)break;var u=s[d];o(0!==u),f="affine"===e.type?u>0?f.mixedAdd(n[u-1>>1]):f.mixedAdd(n[-u-1>>1].neg()):u>0?f.add(n[u-1>>1]):f.add(n[-u-1>>1].neg())}return"affine"===e.type?f.toP():f},f.prototype._wnafMulAdd=function(e,t,r,i,n){var o,f,d,c=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var b=o-1,m=o;if(1!==c[b]||1!==c[m]){l[b]=a(r[b],c[b],this._bitLength),l[m]=a(r[m],c[m],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[m].length,h);continue}var g=[t[b],null,null,t[m]];0===t[b].y.cmp(t[m].y)?(g[1]=t[b].add(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg())):0===t[b].y.cmp(t[m].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].add(t[m].neg())):(g[1]=t[b].toJ().mixedAdd(t[m]),g[2]=t[b].toJ().mixedAdd(t[m].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],v=s(r[b],r[m]);for(f=0,h=Math.max(v[0].length,h),l[b]=Array(h),l[m]=Array(h);f=0;o--){for(var A=0;o>=0;){var S=!0;for(f=0;f=0&&A++,M=M.dblp(A),o<0)break;for(f=0;f0?d=u[f][x-1>>1]:x<0&&(d=u[f][-x-1>>1].neg()),M="affine"===d.type?M.mixedAdd(d):M.add(d))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,n=0;na[0].cmp(a[1])?a[0]:a[1]).toRed(this.red)}if(e.lambda)r=new n(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 i=e.basis?e.basis.map(function(e){return{a:new n(e.a,16),b:new n(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:i}}},f.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:n.mont(e),r=new n(2).toRed(t).redInvm(),i=r.redNeg(),a=new n(3).toRed(t).redNeg().redSqrt().redMul(r);return[i.redAdd(a).fromRed(),i.redSub(a).fromRed()]},f.prototype._getEndoBasis=function(e){for(var t,r,i,a,s,o,f,d,c,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new n(1),b=new n(0),m=new n(0),g=new n(1),y=0;0!==l.cmpn(0);){var v=h.div(l);d=h.sub(v.mul(l)),c=m.sub(v.mul(p));var w=g.sub(v.mul(b));if(!i&&0>d.cmp(u))t=f.neg(),r=p,i=d.neg(),a=c;else if(i&&2==++y)break;f=d,h=l,l=d,m=p,p=c,g=b,b=w}s=d.neg(),o=c;var _=i.sqr().add(a.sqr());return s.sqr().add(o.sqr()).cmp(_)>=0&&(s=t,o=r),i.negative&&(i=i.neg(),a=a.neg()),s.negative&&(s=s.neg(),o=o.neg()),[{a:i,b:a},{a:s,b:o}]},f.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],i=t[1],n=i.b.mul(e).divRound(this.n),a=r.b.neg().mul(e).divRound(this.n),s=n.mul(r.a),o=a.mul(i.a),f=n.mul(r.b),d=a.mul(i.b);return{k1:e.sub(s).sub(o),k2:f.add(d).neg()}},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var a=i.fromRed().isOdd();return(t&&!a||!t&&a)&&(i=i.redNeg()),this.point(e,i)},f.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,i=this.a.redMul(t),n=t.redSqr().redMul(t).redIAdd(i).redIAdd(this.b);return 0===r.redSqr().redISub(n).cmpn(0)},f.prototype._endoWnafMulAdd=function(e,t,r){for(var i=this._endoWnafT1,n=this._endoWnafT2,a=0;a":""},d.prototype.isInfinity=function(){return this.inf},d.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),i=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,i)},d.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(),i=e.redInvm(),n=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(i),a=n.redSqr().redISub(this.x.redAdd(this.x)),s=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,s)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new n(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)},d.prototype.mulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n):this.curve._wnafMulAdd(1,i,n,2)},d.prototype.jmulAdd=function(e,t,r){var i=[this,t],n=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(i,n,!0):this.curve._wnafMulAdd(1,i,n,2,!0)},d.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))},d.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,i=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(i)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(i)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(c,s.BasePoint),f.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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),i=this.y.redMul(t).redMul(e);return this.curve.point(r,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),i=this.x.redMul(t),n=e.x.redMul(r),a=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),o=i.redSub(n),f=a.redSub(s);if(0===o.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=o.redSqr(),c=d.redMul(o),u=i.redMul(d),l=f.redSqr().redIAdd(c).redISub(u).redISub(u),h=f.redMul(u.redISub(l)).redISub(a.redMul(c)),p=this.z.redMul(e.z).redMul(o);return this.curve.jpoint(l,h,p)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,i=e.x.redMul(t),n=this.y,a=e.y.redMul(t).redMul(this.z),s=r.redSub(i),o=n.redSub(a);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=s.redSqr(),d=f.redMul(s),c=r.redMul(f),u=o.redSqr().redIAdd(d).redISub(c).redISub(c),l=o.redMul(c.redISub(u)).redISub(n.redMul(d)),h=this.z.redMul(s);return this.curve.jpoint(u,l,h)},c.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(n),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{b580e76a14dd105e:"jv07p",f47a16c1a44d2ae4:"8vHNk","7f74896e278aaa6":"cJ2FP","76a1d4717d39ade8":"lo2JW"}],hidAj:[function(e,t,r){"use strict";var i=e("e33f0d2e1eecf7f9"),n=e("343271423de36e1f"),a=e("55ed48e944ee81cf"),s=e("99d5d266bf84363f");function o(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function f(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(o,a),t.exports=o,o.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),i=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===i.redSqrt().redSqr().cmp(i)},n(f,a.BasePoint),o.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},o.prototype.point=function(e,t){return new f(this,e,t)},o.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(e,t){return new f(e,t[0],t[1]||e.one)},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},f.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),i=e.redMul(t),n=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(i,n)},f.prototype.add=function(){throw Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),i=this.x.redSub(this.z),n=e.x.redAdd(e.z),a=e.x.redSub(e.z).redMul(r),s=n.redMul(i),o=t.z.redMul(a.redAdd(s).redSqr()),f=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(o,f)},f.prototype.mul=function(e){for(var t=e.clone(),r=this,i=this.curve.point(null,null),n=[];0!==t.cmpn(0);t.iushrn(1))n.push(t.andln(1));for(var a=n.length-1;a>=0;a--)0===n[a]?(r=r.diffAdd(i,this),i=i.dbl()):(i=r.diffAdd(i,this),r=r.dbl());return i},f.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},f.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{e33f0d2e1eecf7f9:"8vHNk","343271423de36e1f":"cJ2FP","55ed48e944ee81cf":"lo2JW","99d5d266bf84363f":"jv07p"}],gdTwR:[function(e,t,r){"use strict";var i=e("e3bbf5c6ae99d21"),n=e("f9de6ae1eb9887b1"),a=e("63cf93bbb8201582"),s=e("bfe1d438bad147c6"),o=i.assert;function f(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 n(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new n(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new n(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 d(e,t,r,i,a){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===i?(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 n(t,16),this.y=new n(r,16),this.z=i?new n(i,16):this.curve.one,this.t=a&&new n(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(f,s),t.exports=f,f.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},f.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},f.prototype.jpoint=function(e,t,r,i){return this.point(e,t,r,i)},f.prototype.pointFromX=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=this.c2.redSub(this.a.redMul(r)),a=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=i.redMul(a.redInvm()),o=s.redSqrt();if(0!==o.redSqr().redSub(s).cmp(this.zero))throw Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},f.prototype.pointFromY=function(e,t){(e=new n(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),i=r.redSub(this.c2),a=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(a.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)},f.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),i=t.redMul(this.a).redAdd(r),n=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===i.cmp(n)},a(d,s.BasePoint),f.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},f.prototype.point=function(e,t,r,i){return new d(this,e,t,r,i)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var i=this.curve._mulA(e),n=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),a=i.redAdd(t),s=a.redSub(r),o=i.redSub(t),f=n.redMul(s),d=a.redMul(o),c=n.redMul(o),u=s.redMul(a);return this.curve.point(f,d,u,c)},d.prototype._projDbl=function(){var e,t,r,i,n,a,s=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var d=(i=this.curve._mulA(o)).redAdd(f);this.zOne?(e=s.redSub(o).redSub(f).redMul(d.redSub(this.curve.two)),t=d.redMul(i.redSub(f)),r=d.redSqr().redSub(d).redSub(d)):(n=this.z.redSqr(),a=d.redSub(n).redISub(n),e=s.redSub(o).redISub(f).redMul(a),t=d.redMul(i.redSub(f)),r=d.redMul(a))}else i=o.redAdd(f),n=this.curve._mulC(this.z).redSqr(),a=i.redSub(n).redSub(n),e=this.curve._mulC(s.redISub(i)).redMul(a),t=this.curve._mulC(i).redMul(o.redISub(f)),r=i.redMul(a);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.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)),i=this.t.redMul(this.curve.dd).redMul(e.t),n=this.z.redMul(e.z.redAdd(e.z)),a=r.redSub(t),s=n.redSub(i),o=n.redAdd(i),f=r.redAdd(t),d=a.redMul(s),c=o.redMul(f),u=a.redMul(f),l=s.redMul(o);return this.curve.point(d,c,l,u)},d.prototype._projAdd=function(e){var t,r,i=this.z.redMul(e.z),n=i.redSqr(),a=this.x.redMul(e.x),s=this.y.redMul(e.y),o=this.curve.d.redMul(a).redMul(s),f=n.redSub(o),d=n.redAdd(o),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(s),u=i.redMul(f).redMul(c);return this.curve.twisted?(t=i.redMul(d).redMul(s.redSub(this.curve._mulA(a))),r=f.redMul(d)):(t=i.redMul(d).redMul(s.redSub(a)),r=this.curve._mulC(f).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.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},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.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(),i=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},{e3bbf5c6ae99d21:"jv07p",f9de6ae1eb9887b1:"8vHNk","63cf93bbb8201582":"cJ2FP",bfe1d438bad147c6:"lo2JW"}],"7c3k1":[function(e,t,r){"use strict";var i,n=e("5d5c7f65e207a0e5"),a=e("fe6522b5a3d0a683"),s=e("449099d48ddea13d").assert;function o(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.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 f(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var i=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:i}),i}})}r.PresetCurve=o,f("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:n.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("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:n.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("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:n.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("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:n.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"]}),f("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:n.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"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:n.sha256,gRed:!1,g:["9"]}),f("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:n.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=e("8e4d2dbc69db455c")}catch(e){i=void 0}f("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:n.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},{"5d5c7f65e207a0e5":"2Tlxk",fe6522b5a3d0a683:"ldLiU","449099d48ddea13d":"jv07p","8e4d2dbc69db455c":"ktUJy"}],ktUJy:[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"]]}}},{}],"8KPXv":[function(e,t,r){"use strict";var i=e("4b7c73a4295324bc"),n=e("26ad2fdef6d356a0"),a=e("fc57d50c3e8352c5"),s=e("a57e5f083c376277"),o=e("6f934e7e44c53b00"),f=a.assert,d=e("5ade42af885bef06"),c=e("362a31fd274a686d");function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(f(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=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new n({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(),a=this.n.sub(new i(2));;){var s=new i(t.generate(r));if(!(s.cmp(a)>0))return s.iaddn(1),this.keyFromPrivate(s)}},u.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return(r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,a){"object"==typeof r&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),o=t.getPrivate().toArray("be",s),f=e.toArray("be",s),d=new n({hash:this.hash,entropy:o,nonce:f,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new i(1)),l=0;;l++){var h=a.k?a.k(l):new i(d.generate(this.n.byteLength()));if(!(0>=(h=this._truncateToN(h,!0)).cmpn(1)||h.cmp(u)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var b=p.getX(),m=b.umod(this.n);if(0!==m.cmpn(0)){var g=h.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==b.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),y^=1),new c({r:m,s:g,recoveryParam:y})}}}}}},u.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var a,s=(t=new c(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 f=o.invm(this.n),d=f.mul(e).umod(this.n),u=f.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},u.prototype.recoverPubKey=function(e,t,r,n){f((3&r)===r,"The recovery param is more than two bits"),t=new c(t,n);var a=this.n,s=new i(e),o=t.r,d=t.s,u=1&r,l=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");o=l?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var h=t.r.invm(a),p=a.sub(s).mul(h).umod(a),b=d.mul(h).umod(a);return this.g.mulAdd(p,o,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,i){if(null!==(t=new c(t,i)).recoveryParam)return t.recoveryParam;for(var n,a=0;a<4;a++){try{n=this.recoverPubKey(e,t,a)}catch(e){continue}if(n.eq(r))return a}throw Error("Unable to find valid recovery factor")}},{"4b7c73a4295324bc":"8vHNk","26ad2fdef6d356a0":"eo8Xm",fc57d50c3e8352c5:"jv07p",a57e5f083c376277:"7c3k1","6f934e7e44c53b00":"dpC9B","5ade42af885bef06":"EgwOK","362a31fd274a686d":"eflWV"}],EgwOK:[function(e,t,r){"use strict";var i=e("fc07b60947f902ae"),n=e("347eb2373ea05299").assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?n(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&n(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||n(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return""}},{fc07b60947f902ae:"8vHNk","347eb2373ea05299":"jv07p"}],eflWV:[function(e,t,r){"use strict";var i=e("92655080a05ec8e2"),n=e("741d38651df4c980"),a=n.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(a(e.r&&e.s,"Signature without r or s"),this.r=new i(e.r,16),this.s=new i(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function o(){this.place=0}function f(e,t){var r=e[t.place++];if(!(128&r))return r;var i=15&r;if(0===i||i>4)return!1;for(var n=0,a=0,s=t.place;a>>=0;return!(n<=127)&&(t.place=s,n)}function d(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=n.toArray(e,t);var r=new o;if(48!==e[r.place++])return!1;var a=f(e,r);if(!1===a||a+r.place!==e.length||2!==e[r.place++])return!1;var s=f(e,r);if(!1===s)return!1;var d=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var c=f(e,r);if(!1===c||e.length!==c+r.place)return!1;var u=e.slice(r.place,c+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new i(d),this.s=new i(u),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=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var i=[2];c(i,t.length),(i=i.concat(t)).push(2),c(i,r.length);var a=i.concat(r),s=[48];return c(s,a.length),s=s.concat(a),n.encode(s,e)}},{"92655080a05ec8e2":"8vHNk","741d38651df4c980":"jv07p"}],kYSAK:[function(e,t,r){"use strict";var i=e("aaf385060c932d0d"),n=e("57f1a6abbd8ecb9b"),a=e("d8600df3c7e1895c"),s=a.assert,o=a.parseBytes,f=e("c9939b1e45e07e7a"),d=e("659421675c1b56f5");function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=n[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=i.sha512}t.exports=c,c.prototype.sign=function(e,t){e=o(e);var r=this.keyFromSecret(t),i=this.hashInt(r.messagePrefix(),e),n=this.g.mul(i),a=this.encodePoint(n),s=this.hashInt(a,r.pubBytes(),e).mul(r.priv()),f=i.add(s).umod(this.curve.n);return this.makeSignature({R:n,S:f,Rencoded:a})},c.prototype.verify=function(e,t,r){e=o(e),t=this.makeSignature(t);var i=this.keyFromPublic(r),n=this.hashInt(t.Rencoded(),i.pubBytes(),e),a=this.g.mul(t.S());return t.R().add(i.pub().mul(n)).eq(a)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t=0})},r.toAscii=function(e){var t="",r=0,i=e.length;for("0x"===e.substring(0,2)&&(r=2);r=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var i,n,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return s};Object.defineProperty(r,"__esModule",{value:!0}),r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToHex=r.bufferToInt=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;var s=e("35add0199f01c487"),o=e("bb97aaf37314b94f"),f=e("47bb7444a1458900");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},r.intToBuffer=function(e){var t=(0,r.intToHex)(e);return i.from((0,o.padToEven)(t.slice(2)),"hex")},r.zeros=function(e){return i.allocUnsafe(e).fill(0)};var d=function(e,t,i){var n=(0,r.zeros)(t);return i?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,f.assertIsBuffer)(e),c(e)},r.unpadArray=function(e){return(0,f.assertIsArray)(e),c(e)},r.unpadHexString=function(e){return(0,f.assertIsHexString)(e),c(e=(0,o.stripHexPrefix)(e))},r.toBuffer=function(e){if(null==e)return i.allocUnsafe(0);if(i.isBuffer(e)||Array.isArray(e)||e instanceof Uint8Array)return i.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return i.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if(s.BN.isBN(e)){if(e.isNeg())throw Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(i)}if(e.toArray)return i.from(e.toArray());if(e.toBuffer)return i.from(e.toBuffer());throw Error("invalid type")},r.bufferToInt=function(e){return new s.BN((0,r.toBuffer)(e)).toNumber()},r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.fromSigned=function(e){return new s.BN(e).fromTwos(256)},r.toUnsigned=function(e){return i.from(e.toTwos(256).toArray())},r.addHexPrefix=function(e){return"string"!=typeof e?e:(0,o.isHexPrefixed)(e)?e:"0x"+e},r.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw Error("Invalid non-even hex string input for toUtf8() provided");return i.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},r.baToJSON=function(e){if(i.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var t=[],n=0;n0&&0===d[0])throw Error("".concat(f," cannot have leading zeroes, received: ").concat(d.toString("hex")))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},r.arrToBufArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):i.from(t)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map(function(t){return e(t)}):Uint8Array.from(null!=t?t:[])}},{"36e5f935c1ed2136":"2MMCE","35add0199f01c487":"hx2li",bb97aaf37314b94f:"1a9Yl","47bb7444a1458900":"70pb8"}],"70pb8":[function(e,t,r){var i=e("e04fa42c5aa6e5c2").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;var n=e("ce8a2340e79e9511");r.assertIsHexString=function(e){if(!(0,n.isHexString)(e))throw Error("This method only supports 0x-prefixed hex strings but input was: ".concat(e))},r.assertIsBuffer=function(e){if(!i.isBuffer(e))throw Error("This method only supports Buffer but input was: ".concat(e))},r.assertIsArray=function(e){if(!Array.isArray(e))throw Error("This method only supports number arrays but input was: ".concat(e))},r.assertIsString=function(e){if("string"!=typeof e)throw Error("This method only supports strings but input was: ".concat(e))}},{e04fa42c5aa6e5c2:"2MMCE",ce8a2340e79e9511:"1a9Yl"}],ipL9G:[function(e,t,r){"use strict";var i=e("f44b07e97eb34004").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.rlphash=r.ripemd160FromArray=r.ripemd160FromString=r.ripemd160=r.sha256FromArray=r.sha256FromString=r.sha256=r.keccakFromArray=r.keccakFromHexString=r.keccakFromString=r.keccak256=r.keccak=void 0;var n=e("51bfc103b421c9c1"),a=e("88db1135dc7b3dfe"),s=e("49be5227bdf31c4b"),o=e("a6ca487a0eda3ac4"),f=e("f58e8d097a46af28");r.keccak=function(e,t){switch(void 0===t&&(t=256),(0,f.assertIsBuffer)(e),t){case 224:return(0,n.keccak224)(e);case 256:return(0,n.keccak256)(e);case 384:return(0,n.keccak384)(e);case 512:return(0,n.keccak512)(e);default:throw Error("Invald algorithm: keccak".concat(t))}},r.keccak256=function(e){return(0,r.keccak)(e)},r.keccakFromString=function(e,t){void 0===t&&(t=256),(0,f.assertIsString)(e);var n=i.from(e,"utf8");return(0,r.keccak)(n,t)},r.keccakFromHexString=function(e,t){return void 0===t&&(t=256),(0,f.assertIsHexString)(e),(0,r.keccak)((0,o.toBuffer)(e),t)},r.keccakFromArray=function(e,t){return void 0===t&&(t=256),(0,f.assertIsArray)(e),(0,r.keccak)((0,o.toBuffer)(e),t)};var d=function(e){return e=(0,o.toBuffer)(e),a("sha256").update(e).digest()};r.sha256=function(e){return(0,f.assertIsBuffer)(e),d(e)},r.sha256FromString=function(e){return(0,f.assertIsString)(e),d(e)},r.sha256FromArray=function(e){return(0,f.assertIsArray)(e),d(e)};var c=function(e,t){e=(0,o.toBuffer)(e);var r=a("rmd160").update(e).digest();return!0===t?(0,o.setLengthLeft)(r,32):r};r.ripemd160=function(e,t){return(0,f.assertIsBuffer)(e),c(e,t)},r.ripemd160FromString=function(e,t){return(0,f.assertIsString)(e),c(e,t)},r.ripemd160FromArray=function(e,t){return(0,f.assertIsArray)(e),c(e,t)},r.rlphash=function(e){return(0,r.keccak)(s.rlp.encode(e))}},{f44b07e97eb34004:"2MMCE","51bfc103b421c9c1":"fqw6n","88db1135dc7b3dfe":"cCtrs","49be5227bdf31c4b":"hx2li",a6ca487a0eda3ac4:"kZa0v",f58e8d097a46af28:"70pb8"}],fqw6n:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("63a4b06cc622796f"),n=e("cbd437b9a34f8945");r.keccak224=i.createHashFunction(function(){return n("keccak224")}),r.keccak256=i.createHashFunction(function(){return n("keccak256")}),r.keccak384=i.createHashFunction(function(){return n("keccak384")}),r.keccak512=i.createHashFunction(function(){return n("keccak512")})},{"63a4b06cc622796f":"arjap",cbd437b9a34f8945:"oijYY"}],arjap:[function(e,t,r){var i=e("bb9a509956781478").Buffer;"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createHashFunction=function(e){return function(t){var r=e();return r.update(t),i.from(r.digest())}}},{bb9a509956781478:"2MMCE"}],oijYY:[function(e,t,r){t.exports=e("d37e92a016c4e47")(e("fbab9cb41dbf6101"))},{d37e92a016c4e47:"ay8gt",fbab9cb41dbf6101:"5zBRp"}],ay8gt:[function(e,t,r){let i=e("a4880b37ec39f2c0"),n=e("97dde8c69f094771");t.exports=function(e){let t=i(e),r=n(e);return function(e,i){let n="string"==typeof e?e.toLowerCase():e;switch(n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw Error("Invald algorithm: "+e)}}}},{a4880b37ec39f2c0:"3cYls","97dde8c69f094771":"HIobm"}],"3cYls":[function(e,t,r){var i=e("ba3bc042a8c20564").Buffer;let{Transform:n}=e("3d3b37f8d8b4a8d4");t.exports=e=>class t extends n{constructor(t,r,i,n,a){super(a),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._hashBitLength=n,this._options=a,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let i=null;try{this.update(e,t)}catch(e){i=e}r(i)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{ba3bc042a8c20564:"2MMCE","3d3b37f8d8b4a8d4":"1mxOP"}],HIobm:[function(e,t,r){var i=e("3ec0db77c00c8eee").Buffer;let{Transform:n}=e("837353deacd2abe9");t.exports=e=>class t extends n{constructor(t,r,i,n){super(n),this._rate=t,this._capacity=r,this._delimitedSuffix=i,this._options=n,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let i=null;try{this.update(e,t)}catch(e){i=e}r(i)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return i.isBuffer(e)||(e=i.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},{"3ec0db77c00c8eee":"2MMCE","837353deacd2abe9":"1mxOP"}],"5zBRp":[function(e,t,r){var i=e("b5f446e7af1f3288").Buffer;let n=e("2132b026a0a927c6");function a(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}a.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},a.prototype.absorb=function(e){for(let t=0;t>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return t},a.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},t.exports=a},{b5f446e7af1f3288:"2MMCE","2132b026a0a927c6":"gzyFP"}],gzyFP:[function(e,t,r){let i=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(let t=0;t<24;++t){let r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],o=e[4]^e[14]^e[24]^e[34]^e[44],f=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],c=e[7]^e[17]^e[27]^e[37]^e[47],u=e[8]^e[18]^e[28]^e[38]^e[48],l=e[9]^e[19]^e[29]^e[39]^e[49],h=u^(a<<1|s>>>31),p=l^(s<<1|a>>>31),b=e[0]^h,m=e[1]^p,g=e[10]^h,y=e[11]^p,v=e[20]^h,w=e[21]^p,_=e[30]^h,M=e[31]^p,E=e[40]^h,A=e[41]^p;h=r^(o<<1|f>>>31),p=n^(f<<1|o>>>31);let S=e[2]^h,x=e[3]^p,I=e[12]^h,R=e[13]^p,k=e[22]^h,T=e[23]^p,C=e[32]^h,P=e[33]^p,O=e[42]^h,N=e[43]^p;h=a^(d<<1|c>>>31),p=s^(c<<1|d>>>31);let j=e[4]^h,B=e[5]^p,L=e[14]^h,D=e[15]^p,F=e[24]^h,U=e[25]^p,q=e[34]^h,z=e[35]^p,K=e[44]^h,H=e[45]^p;h=o^(u<<1|l>>>31),p=f^(l<<1|u>>>31);let V=e[6]^h,W=e[7]^p,G=e[16]^h,J=e[17]^p,Z=e[26]^h,X=e[27]^p,$=e[36]^h,Y=e[37]^p,Q=e[46]^h,ee=e[47]^p;h=d^(r<<1|n>>>31),p=c^(n<<1|r>>>31);let et=e[8]^h,er=e[9]^p,ei=e[18]^h,en=e[19]^p,ea=e[28]^h,es=e[29]^p,eo=e[38]^h,ef=e[39]^p,ed=e[48]^h,ec=e[49]^p,eu=y<<4|g>>>28,el=g<<4|y>>>28,eh=v<<3|w>>>29,ep=w<<3|v>>>29,eb=M<<9|_>>>23,em=_<<9|M>>>23,eg=E<<18|A>>>14,ey=A<<18|E>>>14,ev=S<<1|x>>>31,ew=x<<1|S>>>31,e_=R<<12|I>>>20,eM=I<<12|R>>>20,eE=k<<10|T>>>22,eA=T<<10|k>>>22,eS=P<<13|C>>>19,ex=C<<13|P>>>19,eI=O<<2|N>>>30,eR=N<<2|O>>>30,ek=B<<30|j>>>2,eT=j<<30|B>>>2,eC=L<<6|D>>>26,eP=D<<6|L>>>26,eO=U<<11|F>>>21,eN=F<<11|U>>>21,ej=q<<15|z>>>17,eB=z<<15|q>>>17,eL=H<<29|K>>>3,eD=K<<29|H>>>3,eF=V<<28|W>>>4,eU=W<<28|V>>>4,eq=J<<23|G>>>9,ez=G<<23|J>>>9,eK=Z<<25|X>>>7,eH=X<<25|Z>>>7,eV=$<<21|Y>>>11,eW=Y<<21|$>>>11,eG=ee<<24|Q>>>8,eJ=Q<<24|ee>>>8,eZ=et<<27|er>>>5,eX=er<<27|et>>>5,e$=ei<<20|en>>>12,eY=en<<20|ei>>>12,eQ=es<<7|ea>>>25,e0=ea<<7|es>>>25,e1=eo<<8|ef>>>24,e2=ef<<8|eo>>>24,e6=ed<<14|ec>>>18,e3=ec<<14|ed>>>18;e[0]=b^~e_&eO,e[1]=m^~eM&eN,e[10]=eF^~e$&eh,e[11]=eU^~eY&ep,e[20]=ev^~eC&eK,e[21]=ew^~eP&eH,e[30]=eZ^~eu&eE,e[31]=eX^~el&eA,e[40]=ek^~eq&eQ,e[41]=eT^~ez&e0,e[2]=e_^~eO&eV,e[3]=eM^~eN&eW,e[12]=e$^~eh&eS,e[13]=eY^~ep&ex,e[22]=eC^~eK&e1,e[23]=eP^~eH&e2,e[32]=eu^~eE&ej,e[33]=el^~eA&eB,e[42]=eq^~eQ&eb,e[43]=ez^~e0&em,e[4]=eO^~eV&e6,e[5]=eN^~eW&e3,e[14]=eh^~eS&eL,e[15]=ep^~ex&eD,e[24]=eK^~e1&eg,e[25]=eH^~e2&ey,e[34]=eE^~ej&eG,e[35]=eA^~eB&eJ,e[44]=eQ^~eb&eI,e[45]=e0^~em&eR,e[6]=eV^~e6&b,e[7]=eW^~e3&m,e[16]=eS^~eL&eF,e[17]=ex^~eD&eU,e[26]=e1^~eg&ev,e[27]=e2^~ey&ew,e[36]=ej^~eG&eZ,e[37]=eB^~eJ&eX,e[46]=eb^~eI&ek,e[47]=em^~eR&eT,e[8]=e6^~b&e_,e[9]=e3^~m&eM,e[18]=eL^~eF&e$,e[19]=eD^~eU&eY,e[28]=eg^~ev&eC,e[29]=ey^~ew&eP,e[38]=eG^~eZ&eu,e[39]=eJ^~eX&el,e[48]=eI^~ek&eq,e[49]=eR^~eT&ez,e[0]^=i[2*t],e[1]^=i[2*t+1]}}},{}],eWBQO:[function(e,t,r){"use strict";var i,n,a=e("e5145e19d8682196").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=r.bnToRlp=r.bnToUnpaddedBuffer=r.bnToHex=void 0;var s=e("37cfb20de18df397"),o=e("df7311fc0e77ebcf"),f=e("3704eb06b821d2c0");function d(e){return(0,f.unpadBuffer)(e.toArrayLike(a))}r.bnToHex=function(e){return"0x".concat(e.toString(16))},r.bnToUnpaddedBuffer=d,r.bnToRlp=function(e){return d(e)},(i=n=r.TypeOutput||(r.TypeOutput={}))[i.Number=0]="Number",i[i.BN=1]="BN",i[i.Buffer=2]="Buffer",i[i.PrefixedHexString=3]="PrefixedHexString",r.toType=function(e,t){if(null===e)return null;if(void 0!==e){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: ".concat(e));var r=(0,f.toBuffer)(e);if(t===n.Buffer)return r;if(t===n.BN)return new s.BN(r);if(t!==n.Number)return"0x".concat(r.toString("hex"));var i=new s.BN(r),a=new s.BN(Number.MAX_SAFE_INTEGER.toString());if(i.gt(a))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return i.toNumber()}}},{e5145e19d8682196:"2MMCE","37cfb20de18df397":"hx2li",df7311fc0e77ebcf:"1a9Yl","3704eb06b821d2c0":"kZa0v"}],h1KCF:[function(e,t,r){"use strict";var i=e("65f8b02e2bf3923b").Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;var a=n(e("57d48d4c5752d674")),s=e("86f7f635d1296f7a"),o=e("a6cc3d39b2685848"),f=e("a871521595ebeb14"),d=function(){function e(e){(0,a.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,o.zeros)(20))},e.fromString=function(t){return(0,a.default)((0,f.isValidAddress)(t),"Invalid address"),new e((0,o.toBuffer)(t))},e.fromPublicKey=function(t){(0,a.default)(i.isBuffer(t),"Public key should be Buffer");var r=(0,f.pubToAddress)(t);return new e(r)},e.fromPrivateKey=function(t){(0,a.default)(i.isBuffer(t),"Private key should be Buffer");var r=(0,f.privateToAddress)(t);return new e(r)},e.generate=function(t,r){return(0,a.default)(s.BN.isBN(r)),new e((0,f.generateAddress)(t.buf,r.toArrayLike(i)))},e.generate2=function(t,r,n){return(0,a.default)(i.isBuffer(r)),(0,a.default)(i.isBuffer(n)),new e((0,f.generateAddress2)(t.buf,r,n))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new s.BN(this.buf),t=new s.BN(0),r=new s.BN("ffff","hex");return e.gte(t)&&e.lte(r)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return i.from(this.buf)},e}();r.Address=d},{"65f8b02e2bf3923b":"2MMCE","57d48d4c5752d674":"aeMhE","86f7f635d1296f7a":"hx2li",a6cc3d39b2685848:"kZa0v",a871521595ebeb14:"bzwNx"}],bqbjN:[function(e,t,r){"use strict";var i=e("d200ef6b4d9cba0f").Buffer;Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;var n=e("2bf6c2b11a53ce5c"),a=e("ea864e541635c1bc"),s=e("97fd1663e144162a"),o=e("42dea3862174a01b"),f=e("b51792b4dff2fac2"),d=e("98f0d93934074e71");function c(e,t){var r=(0,d.toType)(e,d.TypeOutput.BN);if(r.eqn(0)||r.eqn(1))return(0,d.toType)(e,d.TypeOutput.BN);if(!t)return r.subn(27);var i=(0,d.toType)(t,d.TypeOutput.BN);return r.sub(i.muln(2).addn(35))}function u(e){var t=new a.BN(e);return t.eqn(0)||t.eqn(1)}r.ecsign=function(e,t,r){var a=(0,n.ecdsaSign)(e,t),s=a.signature,o=a.recid,f=i.from(s.slice(0,32)),c=i.from(s.slice(32,64));if(!r||"number"==typeof r){if(r&&!Number.isSafeInteger(r))throw Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:f,s:c,v:r?o+(2*r+35):o+27}}return{r:f,s:c,v:(0,d.toType)(r,d.TypeOutput.BN).muln(2).addn(35).addn(o).toArrayLike(i)}},r.ecrecover=function(e,t,r,a,o){var f=i.concat([(0,s.setLengthLeft)(r,32),(0,s.setLengthLeft)(a,32)],64),d=c(t,o);if(!u(d))throw Error("Invalid signature v value");var l=(0,n.ecdsaRecover)(f,d.toNumber(),e);return i.from((0,n.publicKeyConvert)(l,!1).slice(1))},r.toRpcSig=function(e,t,r,n){if(!u(c(e,n)))throw Error("Invalid signature v value");return(0,s.bufferToHex)(i.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(r,32),(0,s.toBuffer)(e)]))},r.toCompactSig=function(e,t,r,n){if(!u(c(e,n)))throw Error("Invalid signature v value");var a=(0,d.toType)(e,d.TypeOutput.Number),o=r;return(a>28&&a%2==1||1===a||28===a)&&(o=i.from(r),o[0]|=128),(0,s.bufferToHex)(i.concat([(0,s.setLengthLeft)(t,32),(0,s.setLengthLeft)(o,32)]))},r.fromRpcSig=function(e){var t,r,i,n=(0,s.toBuffer)(e);if(n.length>=65)t=n.slice(0,32),r=n.slice(32,64),i=(0,s.bufferToInt)(n.slice(64));else if(64===n.length)t=n.slice(0,32),r=n.slice(32,64),i=(0,s.bufferToInt)(n.slice(32,33))>>7,r[0]&=127;else throw Error("Invalid signature length");return i<27&&(i+=27),{v:i,r:t,s:r}},r.isValidSignature=function(e,t,r,i,n){void 0===i&&(i=!0);var s=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),o=new a.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==r.length||!u(c(e,n)))return!1;var f=new a.BN(t),d=new a.BN(r);return!(f.isZero()||f.gt(o)||d.isZero()||d.gt(o))&&(!i||1!==d.cmp(s))},r.hashPersonalMessage=function(e){(0,f.assertIsBuffer)(e);var t=i.from("\x19Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,o.keccak)(i.concat([t,e]))}},{d200ef6b4d9cba0f:"2MMCE","2bf6c2b11a53ce5c":"jWaCZ",ea864e541635c1bc:"hx2li","97fd1663e144162a":"kZa0v","42dea3862174a01b":"ipL9G",b51792b4dff2fac2:"70pb8","98f0d93934074e71":"eWBQO"}],"4p8A4":[function(e,t,r){"use strict";var i=e("4f19986b48e2644b").Buffer,n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.defineProperties=void 0;var a=n(e("475ac5afa7180311")),s=e("1eeed620e8c77a86"),o=e("ed5aa99cf4a3eb47"),f=e("1561679a5d36a4b5");r.defineProperties=function(e,t,r){if(e.raw=[],e._fields=[],e.toJSON=function(t){if(void 0===t&&(t=!1),t){var r={};return e._fields.forEach(function(t){r[t]="0x".concat(e[t].toString("hex"))}),r}return(0,f.baToJSON)(e.raw)},e.serialize=function(){return o.rlp.encode(e.raw)},t.forEach(function(t,r){function n(){return e.raw[r]}function s(n){"00"!==(n=(0,f.toBuffer)(n)).toString("hex")||t.allowZero||(n=i.allocUnsafe(0)),t.allowLess&&t.length?(n=(0,f.unpadBuffer)(n),(0,a.default)(t.length>=n.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):!(t.allowZero&&0===n.length)&&t.length&&(0,a.default)(t.length===n.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[r]=n}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:n,set:s}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:s,get:n})}),r){if("string"==typeof r&&(r=i.from((0,s.stripHexPrefix)(r),"hex")),i.isBuffer(r)&&(r=o.rlp.decode(r)),Array.isArray(r)){if(r.length>e._fields.length)throw Error("wrong number of fields in data");r.forEach(function(t,r){e[e._fields[r]]=(0,f.toBuffer)(t)})}else if("object"==typeof r){var n=Object.keys(r);t.forEach(function(t){-1!==n.indexOf(t.name)&&(e[t.name]=r[t.name]),-1!==n.indexOf(t.alias)&&(e[t.alias]=r[t.alias])})}else throw Error("invalid data")}}},{"4f19986b48e2644b":"2MMCE","475ac5afa7180311":"aeMhE","1eeed620e8c77a86":"1a9Yl",ed5aa99cf4a3eb47:"hx2li","1561679a5d36a4b5":"kZa0v"}],"9HVeA":[function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=i(e("2c41d72e2205ba47")),a=e("d4a1dddc3f521d77"),s=function(){function e(e){this._hdkey=e}return e.fromMasterSeed=function(t){return new e(a.HDKey.fromMasterSeed(t))},e.fromExtendedKey=function(t){return new e(a.HDKey.fromExtendedKey(t))},e.prototype.privateExtendedKey=function(){if(!this._hdkey.privateExtendedKey)throw Error("This is a public key only wallet");return this._hdkey.privateExtendedKey},e.prototype.publicExtendedKey=function(){return this._hdkey.publicExtendedKey},e.prototype.derivePath=function(t){return new e(this._hdkey.derive(t))},e.prototype.deriveChild=function(t){return new e(this._hdkey.deriveChild(t))},e.prototype.getWallet=function(){return this._hdkey._privateKey?n.default.fromPrivateKey(this._hdkey._privateKey):n.default.fromPublicKey(this._hdkey._publicKey,!0)},e}();r.default=s},{"2c41d72e2205ba47":"3EQrb",d4a1dddc3f521d77:"e3XsS"}],e3XsS:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=e("9eadf172e078d2b");r.HDKey=i},{"9eadf172e078d2b":"fvUm3"}],fvUm3:[function(e,t,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var n=i(e("542b57e30980266")),a=i(e("b29214719ecb74bc")),s=i(e("2c84caaa37328663")),o=e("dcae1a9808881758"),f=e("1b7911d946b34666"),d=a.Buffer,c=d.from("Bitcoin seed","utf8"),u={private:76066276,public:76067358};function l(e){this.versions=e||u,this.depth=0,this.index=0,this._privateKey=null,this._publicKey=null,this.chainCode=null,this._fingerprint=0,this.parentFingerprint=0}function h(e,t,r){var i=d.allocUnsafe(78);i.writeUInt32BE(t,0),i.writeUInt8(e.depth,4);var n=e.depth?e.parentFingerprint:0;return i.writeUInt32BE(n,5),i.writeUInt32BE(e.index,9),e.chainCode.copy(i,13),r.copy(i,45),i}function p(e){var t=o.createHash("sha256").update(e).digest();return o.createHash("ripemd160").update(t).digest()}Object.defineProperty(l.prototype,"fingerprint",{get:function(){return this._fingerprint}}),Object.defineProperty(l.prototype,"identifier",{get:function(){return this._identifier}}),Object.defineProperty(l.prototype,"pubKeyHash",{get:function(){return this.identifier}}),Object.defineProperty(l.prototype,"privateKey",{get:function(){return this._privateKey},set:function(e){n.equal(e.length,32,"Private key must be 32 bytes."),n(!0===f.privateKeyVerify(e),"Invalid private key"),this._privateKey=e,this._publicKey=f.publicKeyCreate(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0)}}),Object.defineProperty(l.prototype,"publicKey",{get:function(){return this._publicKey},set:function(e){n(33===e.length||65===e.length,"Public key must be 33 or 65 bytes."),n(!0===f.publicKeyVerify(e),"Invalid public key"),this._publicKey=f.publicKeyConvert(e,!0),this._identifier=p(this.publicKey),this._fingerprint=this._identifier.slice(0,4).readUInt32BE(0),this._privateKey=null}}),Object.defineProperty(l.prototype,"privateExtendedKey",{get:function(){return this._privateKey?s.encode(h(this,this.versions.private,d.concat([d.alloc(1,0),this.privateKey]))):null}}),Object.defineProperty(l.prototype,"publicExtendedKey",{get:function(){return s.encode(h(this,this.versions.public,this.publicKey))}}),l.prototype.derive=function(e){if("m"===e||"M"===e||"m'"===e||"M'"===e)return this;var t=e.split("/"),r=this;return t.forEach(function(e,t){if(0===t){n(/^[mM]{1}/.test(e),'Path must start with "m" or "M"');return}var i=e.length>1&&"'"===e[e.length-1],a=parseInt(e,10);n(a<2147483648,"Invalid index"),i&&(a+=2147483648),r=r.deriveChild(a)}),r},l.prototype.deriveChild=function(e){var t,r=e>=2147483648,i=d.allocUnsafe(4);if(i.writeUInt32BE(e,0),r){n(this.privateKey,"Could not derive hardened child key");var a=this.privateKey,s=d.alloc(1,0);a=d.concat([s,a]),t=d.concat([a,i])}else t=d.concat([this.publicKey,i]);var c=o.createHmac("sha512",this.chainCode).update(t).digest(),u=c.slice(0,32),h=c.slice(32),p=new l(this.versions);if(this.privateKey)try{p.privateKey=f.privateKeyTweakAdd(this.privateKey,u)}catch(t){return this.deriveChild(e+1)}else try{p.publicKey=f.publicKeyTweakAdd(this.publicKey,u,!0)}catch(t){return this.deriveChild(e+1)}return p.chainCode=h,p.depth=this.depth+1,p.parentFingerprint=this.fingerprint,p.index=e,p},l.prototype.sign=function(e){return f.sign(e,this.privateKey).signature},l.prototype.verify=function(e,t){return f.verify(e,t,this.publicKey)},l.prototype.wipePrivateData=function(){return this._privateKey&&o.randomBytes(this._privateKey.length).copy(this._privateKey),this._privateKey=null,this},l.prototype.toJSON=function(){return{xpriv:this.privateExtendedKey,xpub:this.publicExtendedKey}},l.fromMasterSeed=function(e,t){var r=o.createHmac("sha512",c).update(e).digest(),i=r.slice(0,32),n=r.slice(32),a=new l(t);return a.chainCode=n,a.privateKey=i,a},l.fromExtendedKey=function(e,t){t=t||u;var r=new l(t),i=s.decode(e),a=i.readUInt32BE(0);n(a===t.private||a===t.public,"Version mismatch: does not match private or public"),r.depth=i.readUInt8(4),r.parentFingerprint=i.readUInt32BE(5),r.index=i.readUInt32BE(9),r.chainCode=i.slice(13,45);var o=i.slice(45);return 0===o.readUInt8(0)?(n(a===t.private,"Version mismatch: version does not match private"),r.privateKey=o.slice(1)):(n(a===t.public,"Version mismatch: version does not match public"),r.publicKey=o),r},l.fromJSON=function(e){return l.fromExtendedKey(e.xpriv)},l.HARDENED_OFFSET=2147483648,t.exports=l},{"542b57e30980266":"aeMhE",b29214719ecb74bc:"6CY3D","2c84caaa37328663":"kDmIw",dcae1a9808881758:"aOafK","1b7911d946b34666":"8atUA"}],kDmIw:[function(e,t,r){"use strict";var i=e("2331ee914eecec1b"),n=e("945e45a6bff39610");t.exports=n(function(e){var t=i("sha256").update(e).digest();return i("sha256").update(t).digest()})},{"2331ee914eecec1b":"cCtrs","945e45a6bff39610":"3oGgF"}],"3oGgF":[function(e,t,r){"use strict";var i=e("caf73c5a4abad99"),n=e("73eb26535ffb490f").Buffer;t.exports=function(e){function t(t){var r=t.slice(0,-4),i=t.slice(-4),n=e(r);if(!(i[0]^n[0]|i[1]^n[1]|i[2]^n[2]|i[3]^n[3]))return r}return{encode:function(t){var r=e(t);return i.encode(n.concat([t,r],t.length+4))},decode:function(r){var n=t(i.decode(r),e);if(!n)throw Error("Invalid checksum");return n},decodeUnsafe:function(e){var r=i.decodeUnsafe(e);if(r)return t(r)}}}},{caf73c5a4abad99:"iMorp","73eb26535ffb490f":"6CY3D"}],iMorp:[function(e,t,r){var i=e("819c30266ae09475");t.exports=i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},{"819c30266ae09475":"kITEq"}],kITEq:[function(e,t,r){"use strict";var i=e("85b264801a1b57da").Buffer;t.exports=function(e){if(e.length>=255)throw TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r>>0,c=new Uint8Array(s);e[r];){var u=t[e.charCodeAt(r)];if(255===u)return;for(var l=0,h=s-1;(0!==u||l>>0,c[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw Error("Non-zero carry");a=l,r++}for(var p=s-a;p!==s&&0===c[p];)p++;var b=i.allocUnsafe(n+(s-p));b.fill(0,0,n);for(var m=n;p!==s;)b[m++]=c[p++];return b}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=i.from(t)),!i.isBuffer(t))throw TypeError("Expected Buffer");if(0===t.length)return"";for(var r=0,n=0,a=0,s=t.length;a!==s&&0===t[a];)a++,r++;for(var d=(s-a)*c+1>>>0,u=new Uint8Array(d);a!==s;){for(var l=t[a],h=0,p=d-1;(0!==l||h>>0,u[p]=l%o>>>0,l=l/o>>>0;if(0!==l)throw Error("Non-zero carry");n=h,a++}for(var b=d-n;b!==d&&0===u[b];)b++;for(var m=f.repeat(r);b0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]0&&s!==(0,u.sha256)((0,u.sha256)(n)).slice(0,8).toString("hex"))throw Error("Failed to decrypt input - possibly invalid passphrase");return[3,4];case 3:throw Error("Unsupported or invalid entropy type");case 4:return[2,new h.default(n)]}})})}function w(e,t){if(e.length<10)throw Error("Passphrase must be at least 10 characters");if(t.length<10)throw Error("User id must be at least 10 characters");var r=e+t,i=c.pbkdf2Sync(r,r,2e3,32,"sha256");return new h.default(i)}r.fromEtherWallet=g,r.fromEtherCamp=y,r.fromKryptoKit=v,r.fromQuorumWallet=w,r.default={fromEtherWallet:g,fromEtherCamp:y,fromKryptoKit:v,fromQuorumWallet:w}},{ed3042420ccd8af5:"2MMCE","24fb00fb13067926":"32wxM","80b78b95d57afe5f":"kf6Fl","27bf01736bf36ec9":"81Ky2",f2da54b2a853144d:"3EQrb",fd2d3cf5825f9e2d:"lb1LE",ed020d9d4847d7ef:"89KGY"}],lb1LE:[function(e,t,r){!function(e){var t,r,i,n=String.fromCharCode;function a(e){for(var t,r,i=[],n=0,a=e.length;n=55296&&t<=56319&&n=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function o(e,t){return n(e>>t&63|128)}function f(){if(i>=r)throw Error("Invalid byte index");var e=255&t[i];if(i++,(192&e)==128)return 63&e;throw Error("Invalid continuation byte")}e.version="3.0.0",e.encode=function(e){for(var t=a(e),r=t.length,i=-1,f="";++i>6&31|192):(4294901760&e)==0?(s(e),t=n(e>>12&15|224)+o(e,6)):(4292870144&e)==0&&(t=n(e>>18&7|240)+o(e,12)+o(e,6)),t+=n(63&e|128)}(t[i]);return f},e.decode=function(e){r=(t=a(e)).length,i=0;for(var o,d=[];!1!==(o=function(){var e,n,a,o;if(i>r)throw Error("Invalid byte index");if(i==r)return!1;if(e=255&t[i],i++,(128&e)==0)return e;if((224&e)==192){if((o=(31&e)<<6|(n=f()))>=128)return o;throw Error("Invalid continuation byte")}if((240&e)==224){if((o=(15&e)<<12|(n=f())<<6|f())>=2048)return s(o),o;throw Error("Invalid continuation byte")}if((248&e)==240&&(o=(7&e)<<18|(n=f())<<12|f()<<6|f())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}());)d.push(o);return function(e){for(var t,r=e.length,i=-1,a="";++i65535&&(t-=65536,a+=n(t>>>10&1023|55296),t=56320|1023&t),a+=n(t);return a}(d)}}(r)},{}],"89KGY":[function(e,t,r){!function(e){"use strict";function r(e){return parseInt(e)===e}function i(e){if(!r(e.length))return!1;for(var t=0;t255)return!1;return!0}function n(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!i(e))throw Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&i(e))return new Uint8Array(e);throw Error("unsupported array-like object")}function a(e){return new Uint8Array(e)}function s(e,t,r,i,n){(null!=i||null!=n)&&(e=e.slice?e.slice(i,n):Array.prototype.slice.call(e,i,n)),t.set(e,r)}var o,f=(o="0123456789abcdef",{toBytes:function(e){for(var t=[],r=0;r>4]+o[15&i])}return t.join("")}}),d={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],u=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],v=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],_=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],M=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],r=0;r>2,this._Ke[a][t%4]=n[t],this._Kd[e-a][t%4]=n[t];for(var a,s,o=0,f=i;f>16&255]<<24^u[s>>8&255]<<16^u[255&s]<<8^u[s>>24&255]^c[o]<<24,o+=1,8!=i)for(var t=1;t>8&255]<<8^u[s>>16&255]<<16^u[s>>24&255]<<24;for(var t=i/2+1;t>2,h=f%4,this._Ke[l][h]=n[t],this._Kd[e-l][h]=n[t++],f++}for(var l=1;l>24&255]^M[s>>16&255]^E[s>>8&255]^A[255&s]},x.prototype.encrypt=function(e){if(16!=e.length)throw Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Ke[0][n];for(var s=1;s>24&255]^p[i[(n+1)%4]>>16&255]^b[i[(n+2)%4]>>8&255]^m[255&i[(n+3)%4]]^this._Ke[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Ke[t][n],f[4*n]=(u[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(u[i[(n+1)%4]>>16&255]^o>>16)&255,f[4*n+2]=(u[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(u[255&i[(n+3)%4]]^o)&255;return f},x.prototype.decrypt=function(e){if(16!=e.length)throw Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],i=S(e),n=0;n<4;n++)i[n]^=this._Kd[0][n];for(var s=1;s>24&255]^y[i[(n+3)%4]>>16&255]^v[i[(n+2)%4]>>8&255]^w[255&i[(n+1)%4]]^this._Kd[s][n];i=r.slice()}for(var o,f=a(16),n=0;n<4;n++)o=this._Kd[t][n],f[4*n]=(l[i[n]>>24&255]^o>>24)&255,f[4*n+1]=(l[i[(n+3)%4]>>16&255]^o>>16)&255,f[4*n+2]=(l[i[(n+2)%4]>>8&255]^o>>8)&255,f[4*n+3]=(l[255&i[(n+1)%4]]^o)&255;return f};var I=function(e){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new x(e)};I.prototype.encrypt=function(e){if((e=n(e)).length%16!=0)throw Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=a(e.length),r=a(16),i=0;iNumber.MAX_SAFE_INTEGER)throw Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=n(e,!0)).length)throw Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--)if(255===this._counter[e])this._counter[e]=0;else{this._counter[e]++;break}};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new x(e)};P.prototype.encrypt=function(e){for(var t=n(e,!0),r=0;r191&&i<224?(t.push(String.fromCharCode((31&i)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&i)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}}},padding:{pkcs7:{pad:function(e){var t=16-(e=n(e,!0)).length%16,r=a(e.length+t);s(e,r);for(var i=e.length;i16)throw Error("PKCS#7 padding byte out of range");for(var r=e.length-t,i=0;ia.default),i.export(r,"v3",()=>o.default),i.export(r,"v4",()=>d.default),i.export(r,"v5",()=>u.default),i.export(r,"NIL",()=>h.default),i.export(r,"version",()=>b.default),i.export(r,"validate",()=>g.default),i.export(r,"stringify",()=>v.default),i.export(r,"parse",()=>_.default);var n=e("./v1.js"),a=i.interopDefault(n),s=e("./v3.js"),o=i.interopDefault(s),f=e("./v4.js"),d=i.interopDefault(f),c=e("./v5.js"),u=i.interopDefault(c),l=e("./nil.js"),h=i.interopDefault(l),p=e("./version.js"),b=i.interopDefault(p),m=e("./validate.js"),g=i.interopDefault(m),y=e("./stringify.js"),v=i.interopDefault(y),w=e("./parse.js"),_=i.interopDefault(w)},{"./v1.js":"gGKC5","./v3.js":"3dgAK","./v4.js":"2pDqf","./v5.js":"3eR7A","./nil.js":"etUG0","./version.js":"8g3rW","./validate.js":"fQ2nF","./stringify.js":"3MQU4","./parse.js":"6wHlw","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],gGKC5:[function(e,t,r){var i,n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r);var s=e("./rng.js"),o=a.interopDefault(s),f=e("./stringify.js"),d=a.interopDefault(f),c=0,u=0;r.default=function(e,t,r){var a=t&&r||0,s=t||Array(16),f=(e=e||{}).node||i,l=void 0!==e.clockseq?e.clockseq:n;if(null==f||null==l){var h=e.random||(e.rng||(0,o.default))();null==f&&(f=i=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==l&&(l=n=(h[6]<<8|h[7])&16383)}var p=void 0!==e.msecs?e.msecs:Date.now(),b=void 0!==e.nsecs?e.nsecs:u+1,m=p-c+(b-u)/1e4;if(m<0&&void 0===e.clockseq&&(l=l+1&16383),(m<0||p>c)&&void 0===e.nsecs&&(b=0),b>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=p,u=b,n=l;var g=((268435455&(p+=122192928e5))*1e4+b)%4294967296;s[a++]=g>>>24&255,s[a++]=g>>>16&255,s[a++]=g>>>8&255,s[a++]=255&g;var y=p/4294967296*1e4&268435455;s[a++]=y>>>8&255,s[a++]=255&y,s[a++]=y>>>24&15|16,s[a++]=y>>>16&255,s[a++]=l>>>8|128,s[a++]=255&l;for(var v=0;v<6;++v)s[a+v]=f[v];return t||(0,d.default)(s)}},{"./rng.js":"8SQmh","./stringify.js":"3MQU4","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8SQmh":[function(e,t,r){var i,n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>s);var a=new Uint8Array(16);function s(){if(!i&&!(i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(a)}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"3MQU4":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);for(var n=e("./validate.js"),a=i.interopDefault(n),s=[],o=0;o<256;++o)s.push((o+256).toString(16).substr(1));r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(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]]).toLowerCase();if(!(0,a.default)(r))throw TypeError("Stringified UUID is invalid");return r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],fQ2nF:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./regex.js"),a=i.interopDefault(n);r.default=function(e){return"string"==typeof e&&(0,a.default).test(e)}},{"./regex.js":"4Dwns","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"4Dwns":[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":"cI3Jn"}],"3dgAK":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./v35.js"),a=i.interopDefault(n),s=e("./md5.js"),o=i.interopDefault(s),f=(0,a.default)("v3",48,o.default);r.default=f},{"./v35.js":"dCOwl","./md5.js":"6YMuO","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],dCOwl:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"DNS",()=>f),i.export(r,"URL",()=>d),i.export(r,"default",()=>function(e,t,r){function i(e,i,n,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6YMuO":[function(e,t,r){function i(e){return(e+64>>>9<<4)+14+1}function n(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function a(e,t,r,i,a,s){var o;return n((o=n(n(t,e),n(i,s)))<>>32-a,r)}function s(e,t,r,i,n,s,o){return a(t&r|~t&i,e,t,n,s,o)}function o(e,t,r,i,n,s,o){return a(t&i|r&~i,e,t,n,s,o)}function f(e,t,r,i,n,s,o){return a(t^r^i,e,t,n,s,o)}function d(e,t,r,i,n,s,o){return a(r^(t|~i),e,t,n,s,o)}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r>5]>>>n%32&255,s=parseInt(i.charAt(a>>>4&15)+i.charAt(15&a),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var a=0;a>>0;v=y,y=g,g=i(m,30)>>>0,m=b,b=M}r[0]=r[0]+b>>>0,r[1]=r[1]+m>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+y>>>0,r[4]=r[4]+v>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],etUG0:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default="00000000-0000-0000-0000-000000000000"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"8g3rW":[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r);var n=e("./validate.js"),a=i.interopDefault(n);r.default=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},{"./validate.js":"fQ2nF","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],eOqnc:[function(e,t,r){"use strict";var i,n,a,s,o=Object.create,f=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of c(t))l.call(e,n)||n===r||f(e,n,{get:()=>t[n],enumerable:!(i=d(t,n))||i.enumerable});return e},p=(e,t,r)=>(r=null!=e?o(u(e)):{},h(!t&&e&&e.__esModule?r:f(r,"default",{value:e,enumerable:!0}),e)),b={};((e,t)=>{for(var r in t)f(e,r,{get:t[r],enumerable:!0})})(b,{AccessTokenEvents:()=>P,CheckSessionIFrame:()=>O,ErrorResponse:()=>T,ErrorTimeout:()=>C,InMemoryWebStorage:()=>N,Log:()=>_,Logger:()=>M,MetadataService:()=>B,OidcClient:()=>$,OidcClientSettingsStore:()=>D,SessionMonitor:()=>Y,SigninResponse:()=>V,SigninState:()=>K,SignoutResponse:()=>G,State:()=>z,User:()=>Q,UserManager:()=>eh,UserManagerSettingsStore:()=>en,Version:()=>ep,WebStorageStateStore:()=>L}),t.exports=h(f({},"__esModule",{value:!0}),b);var m=p(e("cd65f2846f9a9917")),g=p(e("b081c80cbcca67d0")),y=p(e("69a1441ed613820e")),v=p(e("46685f198d718556")),w={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},_=((i=_||{})[i.NONE=0]="NONE",i[i.ERROR=1]="ERROR",i[i.WARN=2]="WARN",i[i.INFO=3]="INFO",i[i.DEBUG=4]="DEBUG",i);(n=_||(_={})).reset=function(){a=3,s=w},n.setLevel=function(e){if(!(0<=e&&e<=4))throw Error("Invalid log level");a=e},n.setLogger=function(e){s=e};var M=class{constructor(e){this._name=e}debug(...e){a>=4&&s.debug(M._format(this._name,this._method),...e)}info(...e){a>=3&&s.info(M._format(this._name,this._method),...e)}warn(...e){a>=2&&s.warn(M._format(this._name,this._method),...e)}error(...e){a>=1&&s.error(M._format(this._name,this._method),...e)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug("begin"),t}static createStatic(e,t){let r=new M(`${e}.${t}`);return r.debug("begin"),r}static _format(e,t){let r=`[${e}]`;return t?`${r} ${t}:`:r}static debug(e,...t){a>=4&&s.debug(M._format(e),...t)}static info(e,...t){a>=3&&s.info(M._format(e),...t)}static warn(e,...t){a>=2&&s.warn(M._format(e),...t)}static error(e,...t){a>=1&&s.error(M._format(e),...t)}};_.reset();var E=class{static _randomWord(){return m.default.lib.WordArray.random(1).words[0]}static generateUUIDv4(){let e="10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(+e^E._randomWord()&15>>+e/4).toString(16));return e.replace(/-/g,"")}static generateCodeVerifier(){return E.generateUUIDv4()+E.generateUUIDv4()+E.generateUUIDv4()}static generateCodeChallenge(e){try{let t=(0,g.default)(e);return y.default.stringify(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(e){throw M.error("CryptoUtils.generateCodeChallenge",e),e}}static generateBasicAuth(e,t){let r=v.default.parse([e,t].join(":"));return y.default.stringify(r)}},A=class{constructor(e){this._name=e,this._logger=new M(`Event('${this._name}')`),this._callbacks=[]}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}raise(...e){for(let t of(this._logger.debug("raise:",...e),this._callbacks))t(...e)}},S=p(e("3455b80cc963b26")),x=class{static decode(e){try{return(0,S.default)(e)}catch(e){throw M.error("JwtUtils.decode",e),e}}},I=class{static center({...e}){var t;return null==e.width&&(e.width=null!=(t=[800,720,600,480].find(e=>e<=window.outerWidth/1.618))?t:360),null!=e.left||(e.left=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2))),null!=e.height&&(null!=e.top||(e.top=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2)))),e}static serialize(e){return Object.entries(e).filter(([,e])=>null!=e).map(([e,t])=>`${e}=${"boolean"!=typeof t?t:t?"yes":"no"}`).join(",")}},R=class extends A{constructor(){super(...arguments),this._logger=new M(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let e=this._expiration-R.getEpochTime();this._logger.debug("timer completes in",e),this._expiration<=R.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(e){let t=this._logger.create("init");e=Math.max(Math.floor(e),1);let r=R.getEpochTime()+e;if(this.expiration===r&&this._timerHandle){t.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),t.debug("using duration",e),this._expiration=r;let i=Math.min(e,5);this._timerHandle=setInterval(this._callback,1e3*i)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}},k=class{static readParams(e,t="query"){if(!e)throw TypeError("Invalid URL");let r=new URL(e,"http://127.0.0.1"),i=r["fragment"===t?"hash":"search"];return new URLSearchParams(i.slice(1))}},T=class extends Error{constructor(e,t){var r,i,n;if(super(e.error_description||e.error||""),this.form=t,this.name="ErrorResponse",!e.error)throw M.error("ErrorResponse","No error passed"),Error("No error passed");this.error=e.error,this.error_description=null!=(r=e.error_description)?r:null,this.error_uri=null!=(i=e.error_uri)?i:null,this.state=e.userState,this.session_state=null!=(n=e.session_state)?n:null,this.url_state=e.url_state}},C=class extends Error{constructor(e){super(e),this.name="ErrorTimeout"}},P=class{constructor(e){this._logger=new M("AccessTokenEvents"),this._expiringTimer=new R("Access token expiring"),this._expiredTimer=new R("Access token expired"),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}load(e){let t=this._logger.create("load");if(e.access_token&&void 0!==e.expires_in){let r=e.expires_in;if(t.debug("access token present, remaining duration:",r),r>0){let e=r-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug("registering expiring timer, raising in",e,"seconds"),this._expiringTimer.init(e)}else t.debug("canceling existing expiring timer because we're past expiration."),this._expiringTimer.cancel();let i=r+1;t.debug("registering expired timer, raising in",i,"seconds"),this._expiredTimer.init(i)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}unload(){this._logger.debug("unload: canceling existing access token timers"),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},O=class{constructor(e,t,r,i,n){this._callback=e,this._client_id=t,this._intervalInSeconds=i,this._stopOnError=n,this._logger=new M("CheckSessionIFrame"),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&("error"===e.data?(this._logger.error("error message from check session op iframe"),this._stopOnError&&this.stop()):"changed"===e.data?(this._logger.debug("changed message from check session op iframe"),this.stop(),this._callback()):this._logger.debug(e.data+" message from check session op iframe"))};let a=new URL(r);this._frame_origin=a.origin,this._frame=window.document.createElement("iframe"),this._frame.style.visibility="hidden",this._frame.style.position="fixed",this._frame.style.left="-1000px",this._frame.style.top="0",this._frame.width="0",this._frame.height="0",this._frame.src=a.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener("message",this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create("start"),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+" "+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,1e3*this._intervalInSeconds)}stop(){this._logger.create("stop"),this._session_state=null,this._timer&&(clearInterval(this._timer),this._timer=null)}},N=class{constructor(){this._logger=new M("InMemoryWebStorage"),this._data={}}clear(){this._logger.create("clear"),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},j=class{constructor(e=[],t=null,r={}){this._jwtHandler=t,this._extraHeaders=r,this._logger=new M("JsonService"),this._contentTypes=[],this._contentTypes.push(...e,"application/json"),t&&this._contentTypes.push("application/jwt")}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:r,...i}=t;if(!r)return await fetch(e,i);let n=new AbortController,a=setTimeout(()=>n.abort(),1e3*r);try{let r=await fetch(e,{...t,signal:n.signal});return r}catch(e){if(e instanceof DOMException&&"AbortError"===e.name)throw new C("Network timed out");throw e}finally{clearTimeout(a)}}async getJson(e,{token:t,credentials:r}={}){let i,n;let a=this._logger.create("getJson"),s={Accept:this._contentTypes.join(", ")};t&&(a.debug("token passed, setting Authorization header"),s.Authorization="Bearer "+t),this.appendExtraHeaders(s);try{a.debug("url:",e),i=await this.fetchWithTimeout(e,{method:"GET",headers:s,credentials:r})}catch(e){throw a.error("Network Error"),e}a.debug("HTTP response received, status",i.status);let o=i.headers.get("Content-Type");if(o&&!this._contentTypes.find(e=>o.startsWith(e))&&a.throw(Error(`Invalid response Content-Type: ${null!=o?o:"undefined"}, from URL: ${e}`)),i.ok&&this._jwtHandler&&(null==o?void 0:o.startsWith("application/jwt")))return await this._jwtHandler(await i.text());try{n=await i.json()}catch(e){if(a.error("Error parsing JSON response",e),i.ok)throw e;throw Error(`${i.statusText} (${i.status})`)}if(!i.ok){if(a.error("Error from server:",n),n.error)throw new T(n);throw Error(`${i.statusText} (${i.status}): ${JSON.stringify(n)}`)}return n}async postForm(e,{body:t,basicAuth:r,timeoutInSeconds:i,initCredentials:n}){let a;let s=this._logger.create("postForm"),o={Accept:this._contentTypes.join(", "),"Content-Type":"application/x-www-form-urlencoded"};void 0!==r&&(o.Authorization="Basic "+r),this.appendExtraHeaders(o);try{s.debug("url:",e),a=await this.fetchWithTimeout(e,{method:"POST",headers:o,body:t,timeoutInSeconds:i,credentials:n})}catch(e){throw s.error("Network error"),e}s.debug("HTTP response received, status",a.status);let f=a.headers.get("Content-Type");if(f&&!this._contentTypes.find(e=>f.startsWith(e)))throw Error(`Invalid response Content-Type: ${null!=f?f:"undefined"}, from URL: ${e}`);let d=await a.text(),c={};if(d)try{c=JSON.parse(d)}catch(e){if(s.error("Error parsing JSON response",e),a.ok)throw e;throw Error(`${a.statusText} (${a.status})`)}if(!a.ok){if(s.error("Error from server:",c),c.error)throw new T(c,t);throw Error(`${a.statusText} (${a.status}): ${JSON.stringify(c)}`)}return c}appendExtraHeaders(e){let t=this._logger.create("appendExtraHeaders"),r=Object.keys(this._extraHeaders),i=["authorization","accept","content-type"];0!==r.length&&r.forEach(r=>{if(i.includes(r.toLocaleLowerCase())){t.warn("Protected header could not be overridden",r,i);return}let n="function"==typeof this._extraHeaders[r]?this._extraHeaders[r]():this._extraHeaders[r];n&&""!==n&&(e[r]=n)})}},B=class{constructor(e){this._settings=e,this._logger=new M("MetadataService"),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new j(["application/jwk-set+json"],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug("using signingKeys from settings"),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug("using metadata from settings"),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug("using fetchRequestCredentials from settings"),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create("getMetadata");if(this._metadata)return e.debug("using cached values"),this._metadata;if(!this._metadataUrl)throw e.throw(Error("No authority or metadataUrl configured on settings")),null;e.debug("getting metadata from",this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials});return e.debug("merging remote JSON with seed metadata"),this._metadata=Object.assign({},this._settings.metadataSeed,t),this._metadata}getIssuer(){return this._getMetadataProperty("issuer")}getAuthorizationEndpoint(){return this._getMetadataProperty("authorization_endpoint")}getUserInfoEndpoint(){return this._getMetadataProperty("userinfo_endpoint")}getTokenEndpoint(e=!0){return this._getMetadataProperty("token_endpoint",e)}getCheckSessionIframe(){return this._getMetadataProperty("check_session_iframe",!0)}getEndSessionEndpoint(){return this._getMetadataProperty("end_session_endpoint",!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty("revocation_endpoint",e)}getKeysEndpoint(e=!0){return this._getMetadataProperty("jwks_uri",e)}async _getMetadataProperty(e,t=!1){let r=this._logger.create(`_getMetadataProperty('${e}')`),i=await this.getMetadata();if(r.debug("resolved"),void 0===i[e]){if(!0===t){r.warn("Metadata does not contain optional property");return}r.throw(Error("Metadata does not contain property "+e))}return i[e]}async getSigningKeys(){let e=this._logger.create("getSigningKeys");if(this._signingKeys)return e.debug("returning signingKeys from cache"),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug("got jwks_uri",t);let r=await this._jsonService.getJson(t);if(e.debug("got key set",r),!Array.isArray(r.keys))throw e.throw(Error("Missing keys on keyset")),null;return this._signingKeys=r.keys,this._signingKeys}},L=class{constructor({prefix:e="oidc.",store:t=localStorage}={}){this._logger=new M("WebStorageStateStore"),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){this._logger.create(`get('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return t}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create("getAllKeys");let e=await this._store.length,t=[];for(let r=0;r{let t=this._logger.create("_getClaimsFromJwt");try{let r=x.decode(e);return t.debug("JWT decoding successful"),r}catch(e){throw t.error("Error parsing JWT response"),e}},this._jsonService=new j(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create("getClaims");e||this._logger.throw(Error("No token passed"));let r=await this._metadataService.getUserInfoEndpoint();t.debug("got userinfo url",r);let i=await this._jsonService.getJson(r,{token:e,credentials:this._settings.fetchRequestCredentials});return t.debug("got claims",i),i}},U=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new M("TokenClient"),this._jsonService=new j(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e="authorization_code",redirect_uri:t=this._settings.redirect_uri,client_id:r=this._settings.client_id,client_secret:i=this._settings.client_secret,...n}){let a;let s=this._logger.create("exchangeCode");r||s.throw(Error("A client_id is required")),t||s.throw(Error("A redirect_uri is required")),n.code||s.throw(Error("A code is required"));let o=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(n))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!i)throw s.throw(Error("A client_secret is required")),null;a=E.generateBasicAuth(r,i);break;case"client_secret_post":o.append("client_id",r),i&&o.append("client_secret",i)}let f=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let d=await this._jsonService.postForm(f,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),d}async exchangeCredentials({grant_type:e="password",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,scope:i=this._settings.scope,...n}){let a;let s=this._logger.create("exchangeCredentials");t||s.throw(Error("A client_id is required"));let o=new URLSearchParams({grant_type:e,scope:i});for(let[e,t]of Object.entries(n))null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=E.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let f=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let d=await this._jsonService.postForm(f,{body:o,basicAuth:a,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),d}async exchangeRefreshToken({grant_type:e="refresh_token",client_id:t=this._settings.client_id,client_secret:r=this._settings.client_secret,timeoutInSeconds:i,...n}){let a;let s=this._logger.create("exchangeRefreshToken");t||s.throw(Error("A client_id is required")),n.refresh_token||s.throw(Error("A refresh_token is required"));let o=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(n))Array.isArray(t)?t.forEach(t=>o.append(e,t)):null!=t&&o.set(e,t);switch(this._settings.client_authentication){case"client_secret_basic":if(!r)throw s.throw(Error("A client_secret is required")),null;a=E.generateBasicAuth(t,r);break;case"client_secret_post":o.append("client_id",t),r&&o.append("client_secret",r)}let f=await this._metadataService.getTokenEndpoint(!1);s.debug("got token endpoint");let d=await this._jsonService.postForm(f,{body:o,basicAuth:a,timeoutInSeconds:i,initCredentials:this._settings.fetchRequestCredentials});return s.debug("got response"),d}async revoke(e){var t;let r=this._logger.create("revoke");e.token||r.throw(Error("A token is required"));let i=await this._metadataService.getRevocationEndpoint(!1);r.debug(`got revocation endpoint, revoking ${null!=(t=e.token_type_hint)?t:"default token type"}`);let n=new URLSearchParams;for(let[t,r]of Object.entries(e))null!=r&&n.set(t,r);n.set("client_id",this._settings.client_id),this._settings.client_secret&&n.set("client_secret",this._settings.client_secret),await this._jsonService.postForm(i,{body:n}),r.debug("got response")}},q=class{constructor(e,t,r){this._settings=e,this._metadataService=t,this._claimsService=r,this._logger=new M("ResponseValidator"),this._userInfoService=new F(this._settings,this._metadataService),this._tokenClient=new U(this._settings,this._metadataService)}async validateSigninResponse(e,t){let r=this._logger.create("validateSigninResponse");this._processSigninState(e,t),r.debug("state processed"),await this._processCode(e,t),r.debug("code processed"),e.isOpenId&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,null==t?void 0:t.skipUserInfo,e.isOpenId),r.debug("claims processed")}async validateCredentialsResponse(e,t){let r=this._logger.create("validateCredentialsResponse");e.isOpenId&&e.id_token&&this._validateIdTokenAttributes(e),r.debug("tokens validated"),await this._processClaims(e,t,e.isOpenId),r.debug("claims processed")}async validateRefreshResponse(e,t){let r=this._logger.create("validateRefreshResponse");e.userState=t.data,null!=e.session_state||(e.session_state=t.session_state),null!=e.scope||(e.scope=t.scope),e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),r.debug("ID Token validated")),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let i=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,i),r.debug("claims processed")}validateSignoutResponse(e,t){let r=this._logger.create("validateSignoutResponse");if(t.id!==e.state&&r.throw(Error("State does not match")),r.debug("state validated"),e.userState=t.data,e.error)throw r.warn("Response was error",e.error),new T(e)}_processSigninState(e,t){let r=this._logger.create("_processSigninState");if(t.id!==e.state&&r.throw(Error("State does not match")),t.client_id||r.throw(Error("No client_id on state")),t.authority||r.throw(Error("No authority on state")),this._settings.authority!==t.authority&&r.throw(Error("authority mismatch on settings vs. signin state")),this._settings.client_id&&this._settings.client_id!==t.client_id&&r.throw(Error("client_id mismatch on settings vs. signin state")),r.debug("state validated"),e.userState=t.data,e.url_state=t.url_state,null!=e.scope||(e.scope=t.scope),e.error)throw r.warn("Response was error",e.error),new T(e);t.code_verifier&&!e.code&&r.throw(Error("Expected code in response"))}async _processClaims(e,t=!1,r=!0){let i=this._logger.create("_processClaims");if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){i.debug("not loading user info");return}i.debug("loading user info");let n=await this._userInfoService.getClaims(e.access_token);i.debug("user info claims received from user info endpoint"),r&&n.sub!==e.profile.sub&&i.throw(Error("subject from UserInfo response does not match subject in ID Token")),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(n)),i.debug("user info claims received, updated profile:",e.profile)}async _processCode(e,t){let r=this._logger.create("_processCode");if(e.code){r.debug("Validating code");let i=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,...t.extraTokenParams});Object.assign(e,i)}else r.debug("No code to process")}_validateIdTokenAttributes(e,t){var r;let i=this._logger.create("_validateIdTokenAttributes");i.debug("decoding ID Token JWT");let n=x.decode(null!=(r=e.id_token)?r:"");if(n.sub||i.throw(Error("ID Token is missing a subject claim")),t){let e=x.decode(t);n.sub!==e.sub&&i.throw(Error("sub in id_token does not match current sub")),n.auth_time&&n.auth_time!==e.auth_time&&i.throw(Error("auth_time in id_token does not match original auth_time")),n.azp&&n.azp!==e.azp&&i.throw(Error("azp in id_token does not match original azp")),!n.azp&&e.azp&&i.throw(Error("azp not in id_token, but present in original id_token"))}e.profile=n}},z=class{constructor(e){this.id=e.id||E.generateUUIDv4(),this.data=e.data,e.created&&e.created>0?this.created=e.created:this.created=R.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new M("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(e){return M.createStatic("State","fromStorageString"),new z(JSON.parse(e))}static async clearStaleState(e,t){let r=M.createStatic("State","clearStaleState"),i=R.getEpochTime()-t,n=await e.getAllKeys();r.debug("got keys",n);for(let t=0;ty.searchParams.append("resource",e))}for(let[e,t]of Object.entries({response_mode:o,...g,...p}))null!=t&&y.searchParams.append(e,t.toString());this.url=y.href}},V=class{constructor(e){if(this.access_token="",this.token_type="",this.profile={},this.state=e.get("state"),this.session_state=e.get("session_state"),this.state){let e=decodeURIComponent(this.state).split(";");this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(";"))}this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri"),this.code=e.get("code")}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-R.getEpochTime()}set expires_in(e){"string"==typeof e&&(e=Number(e)),void 0!==e&&e>=0&&(this.expires_at=Math.floor(e)+R.getEpochTime())}get isOpenId(){var e;return(null==(e=this.scope)?void 0:e.split(" ").includes("openid"))||!!this.id_token}},W=class{constructor({url:e,state_data:t,id_token_hint:r,post_logout_redirect_uri:i,extraQueryParams:n,request_type:a,client_id:s}){if(this._logger=new M("SignoutRequest"),!e)throw this._logger.error("ctor: No url passed"),Error("url");let o=new URL(e);for(let[e,f]of(r&&o.searchParams.append("id_token_hint",r),s&&o.searchParams.append("client_id",s),i&&(o.searchParams.append("post_logout_redirect_uri",i),t&&(this.state=new z({data:t,request_type:a}),o.searchParams.append("state",this.state.id))),Object.entries({...n})))null!=f&&o.searchParams.append(e,f.toString());this.url=o.href}},G=class{constructor(e){this.state=e.get("state"),this.error=e.get("error"),this.error_description=e.get("error_description"),this.error_uri=e.get("error_uri")}},J=["nbf","jti","auth_time","nonce","acr","amr","azp","at_hash"],Z=["sub","iss","aud","exp","iat"],X=class{constructor(e){this._settings=e,this._logger=new M("ClaimsService")}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims)for(let e of Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:J)Z.includes(e)||delete t[e];return t}mergeClaims(e,t){let r={...e};for(let[e,i]of Object.entries(t))for(let t of Array.isArray(i)?i:[i]){let i=r[e];void 0===i?r[e]=t:Array.isArray(i)?i.includes(t)||i.push(t):r[e]!==t&&("object"==typeof t&&this._settings.mergeClaims?r[e]=this.mergeClaims(i,t):r[e]=[i,t])}return r}},$=class{constructor(e,t){this._logger=new M("OidcClient"),this.settings=e instanceof D?e:new D(e),this.metadataService=null!=t?t:new B(this.settings),this._claimsService=new X(this.settings),this._validator=new q(this.settings,this.metadataService,this._claimsService),this._tokenClient=new U(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:r,request_type:i,id_token_hint:n,login_hint:a,skipUserInfo:s,nonce:o,url_state:f,response_type:d=this.settings.response_type,scope:c=this.settings.scope,redirect_uri:u=this.settings.redirect_uri,prompt:l=this.settings.prompt,display:h=this.settings.display,max_age:p=this.settings.max_age,ui_locales:b=this.settings.ui_locales,acr_values:m=this.settings.acr_values,resource:g=this.settings.resource,response_mode:y=this.settings.response_mode,extraQueryParams:v=this.settings.extraQueryParams,extraTokenParams:w=this.settings.extraTokenParams}){let _=this._logger.create("createSigninRequest");if("code"!==d)throw Error("Only the Authorization Code flow (with PKCE) is supported");let M=await this.metadataService.getAuthorizationEndpoint();_.debug("Received authorization endpoint",M);let E=new H({url:M,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:u,response_type:d,scope:c,state_data:e,url_state:f,prompt:l,display:h,max_age:p,ui_locales:b,id_token_hint:n,login_hint:a,acr_values:m,resource:g,request:t,request_uri:r,extraQueryParams:v,extraTokenParams:w,request_type:i,response_mode:y,client_secret:this.settings.client_secret,skipUserInfo:s,nonce:o,disablePKCE:this.settings.disablePKCE});await this.clearStaleState();let A=E.state;return await this.settings.stateStore.set(A.id,A.toStorageString()),E}async readSigninResponseState(e,t=!1){let r=this._logger.create("readSigninResponseState"),i=new V(k.readParams(e,this.settings.response_mode));if(!i.state)throw r.throw(Error("No state in response")),null;let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;let a=K.fromStorageString(n);return{state:a,response:i}}async processSigninResponse(e){let t=this._logger.create("processSigninResponse"),{state:r,response:i}=await this.readSigninResponseState(e,!0);return t.debug("received state from storage; validating response"),await this._validator.validateSigninResponse(i,r),i}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r=!1,extraTokenParams:i={}}){let n=await this._tokenClient.exchangeCredentials({username:e,password:t,...i}),a=new V(new URLSearchParams);return Object.assign(a,n),await this._validator.validateCredentialsResponse(a,r),a}async useRefreshToken({state:e,timeoutInSeconds:t}){var r;let i;let n=this._logger.create("useRefreshToken");if(void 0===this.settings.refreshTokenAllowedScope)i=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(" "),n=(null==(r=e.scope)?void 0:r.split(" "))||[];i=n.filter(e=>t.includes(e)).join(" ")}let a=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,resource:e.resource,scope:i,timeoutInSeconds:t}),s=new V(new URLSearchParams);return Object.assign(s,a),n.debug("validating response",s),await this._validator.validateRefreshResponse(s,{...e,scope:i}),s}async createSignoutRequest({state:e,id_token_hint:t,client_id:r,request_type:i,post_logout_redirect_uri:n=this.settings.post_logout_redirect_uri,extraQueryParams:a=this.settings.extraQueryParams}={}){let s=this._logger.create("createSignoutRequest"),o=await this.metadataService.getEndSessionEndpoint();if(!o)throw s.throw(Error("No end session endpoint")),null;s.debug("Received end session endpoint",o),r||!n||t||(r=this.settings.client_id);let f=new W({url:o,id_token_hint:t,client_id:r,post_logout_redirect_uri:n,state_data:e,extraQueryParams:a,request_type:i});await this.clearStaleState();let d=f.state;return d&&(s.debug("Signout request has state to persist"),await this.settings.stateStore.set(d.id,d.toStorageString())),f}async readSignoutResponseState(e,t=!1){let r=this._logger.create("readSignoutResponseState"),i=new G(k.readParams(e,this.settings.response_mode));if(!i.state){if(r.debug("No state in response"),i.error)throw r.warn("Response was error:",i.error),new T(i);return{state:void 0,response:i}}let n=await this.settings.stateStore[t?"remove":"get"](i.state);if(!n)throw r.throw(Error("No matching state found in storage")),null;let a=z.fromStorageString(n);return{state:a,response:i}}async processSignoutResponse(e){let t=this._logger.create("processSignoutResponse"),{state:r,response:i}=await this.readSignoutResponseState(e,!0);return r?(t.debug("Received state from storage; validating response"),this._validator.validateSignoutResponse(i,r)):t.debug("No state from storage; skipping response validation"),i}clearStaleState(){return this._logger.create("clearStaleState"),z.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create("revokeToken"),await this._tokenClient.revoke({token:e,token_type_hint:t})}},Y=class{constructor(e){this._userManager=e,this._logger=new M("SessionMonitor"),this._start=async e=>{let t=e.session_state;if(!t)return;let r=this._logger.create("_start");if(e.profile?(this._sub=e.profile.sub,this._sid=e.profile.sid,r.debug("session_state",t,", sub",this._sub)):(this._sub=void 0,this._sid=void 0,r.debug("session_state",t,", anonymous user")),this._checkSessionIFrame){this._checkSessionIFrame.start(t);return}try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){r.debug("initializing check session iframe");let i=this._userManager.settings.client_id,n=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,s=new O(this._callback,i,e,n,a);await s.load(),this._checkSessionIFrame=s,s.start(t)}else r.warn("no check session iframe found in the metadata")}catch(e){r.error("Error from getCheckSessionIframe:",e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create("_stop");if(this._sub=void 0,this._sid=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}catch(t){e.error("error from querySessionStatus",t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create("_callback");try{let t=await this._userManager.querySessionStatus(),r=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(r=!1,this._checkSessionIFrame.start(t.session_state),t.sid===this._sid?e.debug("same sub still logged in at OP, restarting check session iframe; session_state",t.session_state):(e.debug("same sub still logged in at OP, session state has changed, restarting check session iframe; session_state",t.session_state),this._userManager.events._raiseUserSessionChanged())):e.debug("different subject signed into OP",t.sub):e.debug("subject no longer signed into OP"),r?this._sub?this._userManager.events._raiseUserSignedOut():this._userManager.events._raiseUserSignedIn():e.debug("no change in session detected, no event to raise")}catch(t){this._sub&&(e.debug("Error calling queryCurrentSigninSession; raising signed out event",t),this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error("No user manager passed")),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create("_init");let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub&&e.sid?{sub:e.sub,sid:e.sid}:null};this._start(t)}}}},Q=class{constructor(e){var t;this.id_token=e.id_token,this.session_state=null!=(t=e.session_state)?t:null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(void 0!==this.expires_at)return this.expires_at-R.getEpochTime()}set expires_in(e){void 0!==e&&(this.expires_at=Math.floor(e)+R.getEpochTime())}get expired(){let e=this.expires_in;if(void 0!==e)return e<=0}get scopes(){var e,t;return null!=(t=null==(e=this.scope)?void 0:e.split(" "))?t:[]}toStorageString(){return new M("User").create("toStorageString"),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(e){return M.createStatic("User","fromStorageString"),new Q(JSON.parse(e))}},ee="oidc-client",et=class{constructor(){this._abort=new A("Window navigation aborted"),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create("navigate");if(!this._window)throw Error("Attempted to navigate on a disposed window");t.debug("setting URL in window"),this._window.location.replace(e.url);let{url:r,keepOpen:i}=await new Promise((r,i)=>{let n=n=>{var a;let s=n.data,o=null!=(a=e.scriptOrigin)?a:window.location.origin;if(n.origin===o&&(null==s?void 0:s.source)===ee){try{let r=k.readParams(s.url,e.response_mode).get("state");if(r||t.warn("no state found in response url"),n.source!==this._window&&r!==e.state)return}catch(e){this._dispose(),i(Error("Invalid response from window"))}r(s)}};window.addEventListener("message",n,!1),this._disposeHandlers.add(()=>window.removeEventListener("message",n,!1)),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),i(e)}))});return t.debug("got response from window"),this._dispose(),i||this.close(),{url:r}}_dispose(){for(let e of(this._logger.create("_dispose"),this._disposeHandlers))e();this._disposeHandlers.clear()}static _notifyParent(e,t,r=!1,i=window.location.origin){e.postMessage({source:ee,url:t,keepOpen:r},i)}},er={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},ei="_blank",en=class extends D{constructor(e){let{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:r=e.post_logout_redirect_uri,popupWindowFeatures:i=er,popupWindowTarget:n=ei,redirectMethod:a="assign",redirectTarget:s="self",iframeNotifyParentOrigin:o=e.iframeNotifyParentOrigin,iframeScriptOrigin:f=e.iframeScriptOrigin,silent_redirect_uri:d=e.redirect_uri,silentRequestTimeoutInSeconds:c=10,automaticSilentRenew:u=!0,validateSubOnSilentRenew:l=!0,includeIdTokenInSilentRenew:h=!1,monitorSession:p=!1,monitorAnonymousSession:b=!1,checkSessionIntervalInSeconds:m=2,query_status_response_type:g="code",stopCheckSessionOnError:y=!0,revokeTokenTypes:v=["access_token","refresh_token"],revokeTokensOnSignout:w=!1,includeIdTokenInSilentSignout:_=!1,accessTokenExpiringNotificationTimeInSeconds:M=60,userStore:E}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=r,this.popupWindowFeatures=i,this.popupWindowTarget=n,this.redirectMethod=a,this.redirectTarget=s,this.iframeNotifyParentOrigin=o,this.iframeScriptOrigin=f,this.silent_redirect_uri=d,this.silentRequestTimeoutInSeconds=c,this.automaticSilentRenew=u,this.validateSubOnSilentRenew=l,this.includeIdTokenInSilentRenew=h,this.monitorSession=p,this.monitorAnonymousSession=b,this.checkSessionIntervalInSeconds=m,this.stopCheckSessionOnError=y,this.query_status_response_type=g,this.revokeTokenTypes=v,this.revokeTokensOnSignout=w,this.includeIdTokenInSilentSignout=_,this.accessTokenExpiringNotificationTimeInSeconds=M,E)this.userStore=E;else{let e="undefined"!=typeof window?window.sessionStorage:new N;this.userStore=new L({store:e})}}},ea=class extends et{constructor({silentRequestTimeoutInSeconds:e=10}){super(),this._logger=new M("IFrameWindow"),this._timeoutInSeconds=e,this._frame=ea.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement("iframe");return e.style.visibility="hidden",e.style.position="fixed",e.style.left="-1000px",e.style.top="0",e.width="0",e.height="0",window.document.body.appendChild(e),e}async navigate(e){this._logger.debug("navigate: Using timeout of:",this._timeoutInSeconds);let t=setTimeout(()=>this._abort.raise(new C("IFrame timed out without a response")),1e3*this._timeoutInSeconds);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&(this._frame.parentNode&&(this._frame.addEventListener("load",e=>{var t;let r=e.target;null==(t=r.parentNode)||t.removeChild(r),this._abort.raise(Error("IFrame removed from DOM"))},!0),null==(e=this._frame.contentWindow)||e.location.replace("about:blank")),this._frame=null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},es=class{constructor(e){this._settings=e,this._logger=new M("IFrameNavigator")}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new ea({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create("callback"),ea.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},eo=class extends et{constructor({popupWindowTarget:e=ei,popupWindowFeatures:t={}}){super(),this._logger=new M("PopupWindow");let r=I.center({...er,...t});this._window=window.open(void 0,e,I.serialize(r)),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{if(!this._window||"boolean"!=typeof this._window.closed||this._window.closed){this._abort.raise(Error("Popup blocked by user"));return}this.close()},1e3*t.closePopupWindowAfterInSeconds)}async navigate(e){var t;null==(t=this._window)||t.focus();let r=setInterval(()=>{(!this._window||this._window.closed)&&this._abort.raise(Error("Popup closed by user"))},500);return this._disposeHandlers.add(()=>clearInterval(r)),await super.navigate(e)}close(){this._window&&!this._window.closed&&(this._window.close(),this._abort.raise(Error("Popup closed"))),this._window=null}static notifyOpener(e,t){if(!window.opener)throw Error("No window.opener. Can't complete notification.");return super._notifyParent(window.opener,e,t)}},ef=class{constructor(e){this._settings=e,this._logger=new M("PopupNavigator")}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget}){return new eo({popupWindowFeatures:e,popupWindowTarget:t})}async callback(e,{keepOpen:t=!1}){this._logger.create("callback"),eo.notifyOpener(e,t)}},ed=class{constructor(e){this._settings=e,this._logger=new M("RedirectNavigator")}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){var r;let i;this._logger.create("prepare");let n=window.self;"top"===t&&(n=null!=(r=window.top)?r:window.self);let a=n.location[e].bind(n.location);return{navigate:async e=>{this._logger.create("navigate");let t=new Promise((e,t)=>{i=t});return a(e.url),await t},close:()=>{this._logger.create("close"),null==i||i(Error("Redirect aborted")),n.stop()}}}async callback(){}},ec=class extends P{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new M("UserManagerEvents"),this._userLoaded=new A("User loaded"),this._userUnloaded=new A("User unloaded"),this._silentRenewError=new A("Silent renew error"),this._userSignedIn=new A("User signed in"),this._userSignedOut=new A("User signed out"),this._userSessionChanged=new A("User session changed")}load(e,t=!0){super.load(e),t&&this._userLoaded.raise(e)}unload(){super.unload(),this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}_raiseSilentRenewError(e){this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}_raiseUserSignedIn(){this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}_raiseUserSignedOut(){this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}_raiseUserSessionChanged(){this._userSessionChanged.raise()}},eu=class{constructor(e){this._userManager=e,this._logger=new M("SilentRenewService"),this._isStarted=!1,this._retryTimer=new R("Retry Silent Renew"),this._tokenExpiring=async()=>{let e=this._logger.create("_tokenExpiring");try{await this._userManager.signinSilent(),e.debug("silent token renewal successful")}catch(t){if(t instanceof C){e.warn("ErrorTimeout from signinSilent:",t,"retry in 5s"),this._retryTimer.init(5);return}e.error("Error from signinSilent:",t),this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create("start");if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error("getUser error",t)}}}stop(){this._isStarted&&(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),this._isStarted=!1)}},el=class{constructor(e,t){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.resource=t,this.data=e.state}},eh=class{constructor(e,t,r,i){this._logger=new M("UserManager"),this.settings=new en(e),this._client=new $(e),this._redirectNavigator=null!=t?t:new ed(this.settings),this._popupNavigator=null!=r?r:new ef(this.settings),this._iframeNavigator=null!=i?i:new es(this.settings),this._events=new ec(this.settings),this._silentRenewService=new eu(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new Y(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(){let e=this._logger.create("getUser"),t=await this._loadUser();return t?(e.info("user loaded"),this._events.load(t,!1),t):(e.info("user not found in storage"),null)}async removeUser(){let e=this._logger.create("removeUser");await this.storeUser(null),e.info("user removed from storage"),this._events.unload()}async signinRedirect(e={}){this._logger.create("signinRedirect");let{redirectMethod:t,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:"si:r",...r},i)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create("signinRedirectCallback"),r=await this._signinEnd(e);return r.profile&&r.profile.sub?t.info("success, signed in subject",r.profile.sub):t.info("no subject"),r}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:r=!1}){let i=this._logger.create("signinResourceOwnerCredential"),n=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:r,extraTokenParams:this.settings.extraTokenParams});i.debug("got signin response");let a=await this._buildUser(n);return a.profile&&a.profile.sub?i.info("success, signed in subject",a.profile.sub):i.info("no subject"),a}async signinPopup(e={}){let t=this._logger.create("signinPopup"),{popupWindowFeatures:r,popupWindowTarget:i,...n}=e,a=this.settings.popup_redirect_uri;a||t.throw(Error("No popup_redirect_uri configured"));let s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i}),o=await this._signin({request_type:"si:p",redirect_uri:a,display:"popup",...n},s);return o&&(o.profile&&o.profile.sub?t.info("success, signed in subject",o.profile.sub):t.info("no subject")),o}async signinPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signinPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async signinSilent(e={}){var t;let r;let i=this._logger.create("signinSilent"),{silentRequestTimeoutInSeconds:n,resource:a,...s}=e,o=await this._loadUser();if(null==o?void 0:o.refresh_token){i.debug("using refresh token");let e=new el(o,a);return await this._useRefreshToken(e)}let f=this.settings.silent_redirect_uri;f||i.throw(Error("No silent_redirect_uri configured")),o&&this.settings.validateSubOnSilentRenew&&(i.debug("subject prior to silent renew:",o.profile.sub),r=o.profile.sub);let d=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});return(o=await this._signin({request_type:"si:s",redirect_uri:f,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==o?void 0:o.id_token:void 0,...s},d,r))&&((null==(t=o.profile)?void 0:t.sub)?i.info("success, signed in subject",o.profile.sub):i.info("no subject")),o}async _useRefreshToken(e){let t=await this._client.useRefreshToken({state:e,timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds}),r=new Q({...e,...t});return await this.storeUser(r),this._events.load(r),r}async signinSilentCallback(e=window.location.href){let t=this._logger.create("signinSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case"si:r":return await this.signinRedirectCallback(e);case"si:p":return await this.signinPopupCallback(e);case"si:s":return await this.signinSilentCallback(e);default:throw Error("invalid response_type in state")}}async signoutCallback(e=window.location.href,t=!1){let{state:r}=await this._client.readSignoutResponseState(e);if(r)switch(r.request_type){case"so:r":await this.signoutRedirectCallback(e);break;case"so:p":await this.signoutPopupCallback(e,t);break;case"so:s":await this.signoutSilentCallback(e);break;default:throw Error("invalid response_type in state")}}async querySessionStatus(e={}){let t=this._logger.create("querySessionStatus"),{silentRequestTimeoutInSeconds:r,...i}=e,n=this.settings.silent_redirect_uri;n||t.throw(Error("No silent_redirect_uri configured"));let a=await this._loadUser(),s=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:r}),o=await this._signinStart({request_type:"si:s",redirect_uri:n,prompt:"none",id_token_hint:this.settings.includeIdTokenInSilentRenew?null==a?void 0:a.id_token:void 0,response_type:this.settings.query_status_response_type,scope:"openid",skipUserInfo:!0,...i},s);try{let e=await this._client.processSigninResponse(o.url);if(t.debug("got signin response"),e.session_state&&e.profile.sub)return t.info("success for subject",e.profile.sub),{session_state:e.session_state,sub:e.profile.sub,sid:e.profile.sid};return t.info("success, user not authenticated"),null}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof T)switch(e.error){case"login_required":case"consent_required":case"interaction_required":case"account_selection_required":return t.info("success for anonymous user"),{session_state:e.session_state}}throw e}}async _signin(e,t,r){let i=await this._signinStart(e,t);return await this._signinEnd(i.url,r)}async _signinStart(e,t){let r=this._logger.create("_signinStart");try{let i=await this._client.createSigninRequest(e);return r.debug("got signin request"),await t.navigate({url:i.url,state:i.state.id,response_mode:i.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw r.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signinEnd(e,t){let r=this._logger.create("_signinEnd"),i=await this._client.processSigninResponse(e);r.debug("got signin response");let n=await this._buildUser(i,t);return n}async _buildUser(e,t){let r=this._logger.create("_buildUser"),i=new Q(e);if(t){if(t!==i.profile.sub)throw r.debug("current user does not match user returned from signin. sub from signin:",i.profile.sub),new T({...e,error:"login_required"});r.debug("current user matches user returned from signin")}return await this.storeUser(i),r.debug("user stored"),this._events.load(i),i}async signoutRedirect(e={}){let t=this._logger.create("signoutRedirect"),{redirectMethod:r,...i}=e,n=await this._redirectNavigator.prepare({redirectMethod:r});await this._signoutStart({request_type:"so:r",post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...i},n),t.info("success")}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create("signoutRedirectCallback"),r=await this._signoutEnd(e);return t.info("success"),r}async signoutPopup(e={}){let t=this._logger.create("signoutPopup"),{popupWindowFeatures:r,popupWindowTarget:i,...n}=e,a=this.settings.popup_post_logout_redirect_uri,s=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i});await this._signout({request_type:"so:p",post_logout_redirect_uri:a,state:null==a?void 0:{},...n},s),t.info("success")}async signoutPopupCallback(e=window.location.href,t=!1){let r=this._logger.create("signoutPopupCallback");await this._popupNavigator.callback(e,{keepOpen:t}),r.info("success")}async _signout(e,t){let r=await this._signoutStart(e,t);return await this._signoutEnd(r.url)}async _signoutStart(e={},t){var r;let i=this._logger.create("_signoutStart");try{let n=await this._loadUser();i.debug("loaded current user from storage"),this.settings.revokeTokensOnSignout&&await this._revokeInternal(n);let a=e.id_token_hint||n&&n.id_token;a&&(i.debug("setting id_token_hint in signout request"),e.id_token_hint=a),await this.removeUser(),i.debug("user removed, creating signout request");let s=await this._client.createSignoutRequest(e);return i.debug("got signout request"),await t.navigate({url:s.url,state:null==(r=s.state)?void 0:r.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw i.debug("error after preparing navigator, closing navigator window"),t.close(),e}}async _signoutEnd(e){let t=this._logger.create("_signoutEnd"),r=await this._client.processSignoutResponse(e);return t.debug("got signout response"),r}async signoutSilent(e={}){var t;let r=this._logger.create("signoutSilent"),{silentRequestTimeoutInSeconds:i,...n}=e,a=this.settings.includeIdTokenInSilentSignout?null==(t=await this._loadUser())?void 0:t.id_token:void 0,s=this.settings.popup_post_logout_redirect_uri,o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:i});await this._signout({request_type:"so:s",post_logout_redirect_uri:s,id_token_hint:a,...n},o),r.info("success")}async signoutSilentCallback(e=window.location.href){let t=this._logger.create("signoutSilentCallback");await this._iframeNavigator.callback(e),t.info("success")}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let r=this._logger.create("_revokeInternal");if(!e)return;let i=t.filter(t=>"string"==typeof e[t]);if(!i.length){r.debug("no need to revoke due to no token(s)");return}for(let t of i)await this._client.revokeToken(e[t],t),r.info(`${t} revoked successfully`),"access_token"!==t&&(e[t]=null);await this.storeUser(e),r.debug("user stored"),this._events.load(e)}startSilentRenew(){this._logger.create("startSilentRenew"),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create("_loadUser"),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug("user storageString loaded"),Q.fromStorageString(t)):(e.debug("no user storageString"),null)}async storeUser(e){let t=this._logger.create("storeUser");if(e){t.debug("storing user");let r=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,r)}else this._logger.debug("removing user"),await this.settings.userStore.remove(this._userStoreKey)}async clearStaleState(){await this._client.clearStaleState()}},ep="2.4.0"},{cd65f2846f9a9917:"8ZzbV",b081c80cbcca67d0:"9sBUz","69a1441ed613820e":"56xS8","46685f198d718556":"7nECe","3455b80cc963b26":"dIfrw"}],"8ZzbV":[function(e,t,r){var i,n=arguments[3];t.exports=i||function(t,r){if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n&&n.crypto&&(i=n.crypto),!i)try{i=e("b7760e5f0b7216d4")}catch(e){}var i,a=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),o={},f=o.lib={},d=f.Base={extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=f.WordArray=d.extend({init:function(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,i=this.sigBytes,n=e.sigBytes;if(this.clamp(),i%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[i+a>>>2]|=s<<24-(i+a)%4*8}else for(var o=0;o>>2]=r[o>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var e=d.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r>>2]>>>24-n%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new c.init(r,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,i=[],n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new c.init(r,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},b=f.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var r,i=this._data,n=i.words,a=i.sigBytes,s=this.blockSize,o=a/(4*s),f=(o=e?t.ceil(o):t.max((0|o)-this._minBufferSize,0))*s,d=t.min(4*f,a);if(f){for(var u=0;u>>7)^(p<<14|p>>>18)^p>>>3,m=u[h-2],g=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;u[h]=b+u[h-7]+g+u[h-16]}var y=o&f^~o&d,v=i&n^i&a^n&a,w=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),_=l+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+y+c[h]+u[h],M=w+v;l=d,d=f,f=o,o=s+_|0,s=a,a=n,n=i,i=_+M|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+a|0,r[3]=r[3]+s|0,r[4]=r[4]+o|0,r[5]=r[5]+f|0,r[6]=r[6]+d|0,r[7]=r[7]+l|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[(i+64>>>9<<4)+14]=n.floor(r/4294967296),t[(i+64>>>9<<4)+15]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA256=o._createHelper(l),i.HmacSHA256=o._createHmacHelper(l),i.SHA256)},{cd9e8447cb14a145:"8ZzbV"}],"56xS8":[function(e,t,r){var i,n;t.exports=(n=(i=e("6c67d43f833ec62e")).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,i=this._map;e.clamp();for(var n=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var f=i.charAt(64);if(f)for(;n.length%4;)n.push(f);return n.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a>>6-s%4*2;i[a>>>2]|=o<<24-a%4*8,a++}return n.create(i,a)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},{"6c67d43f833ec62e":"8ZzbV"}],"7nECe":[function(e,t,r){t.exports=e("7286559b12995fed").enc.Utf8},{"7286559b12995fed":"8ZzbV"}],dIfrw:[function(e,t,r){var i=e("@parcel/transformer-js/src/esmodule-helpers.js");function n(e){this.message=e}i.defineInteropFlag(r),i.export(r,"InvalidTokenError",()=>s),n.prototype=Error(),n.prototype.name="InvalidCharacterError";var a="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,a=0,s=0,o="";i=t.charAt(s++);~i&&(r=a%4?64*r+i:i,a++%4)&&(o+=String.fromCharCode(255&r>>(-2*a&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return o};function s(e){this.message=e}s.prototype=Error(),s.prototype.name="InvalidTokenError",r.default=function(e,t){if("string"!=typeof e)throw new s("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t,r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return t=r,decodeURIComponent(a(t).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return a(r)}}(e.split(".")[r]))}catch(e){throw new s("Invalid token specified: "+e.message)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],"6uh7U":[function(e,t,r){var i=arguments[3];t.exports=(function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var f=void 0;if(!o&&f)return f(s,!0);if(a)return a(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return n(t[s][1][e]||e)},c,c.exports,e,t,r,i)}return r[s].exports}for(var a=void 0,s=0;se.db.version;if(i&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function M(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n0&&(!e.db||"InvalidStateError"===n.name||"NotFoundError"===n.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===n.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,i=0;i=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var i=new FileReader;i.onerror=r,i.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},i.readAsBinaryString(t)})}):t}).then(function(t){S(i._dbInfo,m,function(a,s){if(a)return n(a);try{var o=s.objectStore(i._dbInfo.storeName);null===t&&(t=void 0);var f=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=f.error?f.error:f.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,r),n},removeItem:function(e,t){var r=this;e=d(e);var i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,m,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){i(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).clear();n.oncomplete=function(){e()},n.onabort=n.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,i=new s(function(t,i){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,f=s.openKeyCursor();f.onsuccess=function(){var r=f.result;if(!r){t(null);return}0===e?t(r.key):o?t(r.key):(o=!0,r.advance(e))},f.onerror=function(){i(f.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=c.apply(this,arguments);var r,i=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||i.name,e.storeName=e.storeName||i.storeName),e.name){var a=e.name===i.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],i=r.forages;r.db=t;for(var n=0;n>4,c[f++]=(15&i)<<4|n>>2,c[f++]=(3&n)<<6|63&a;return d}function W(e){var t,r=new Uint8Array(e),i="";for(t=0;t>2]+R[(3&r[t])<<4|r[t+1]>>4]+R[(15&r[t+1])<<2|r[t+2]>>6]+R[63&r[t+2]];return r.length%3==2?i=i.substring(0,i.length-1)+"=":r.length%3==1&&(i=i.substring(0,i.length-2)+"=="),i}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var i,n=T;e instanceof ArrayBuffer?(i=e,n+=P):(i=e.buffer,"[object Int8Array]"===r?n+=N:"[object Uint8Array]"===r?n+=j:"[object Uint8ClampedArray]"===r?n+=B:"[object Int16Array]"===r?n+=L:"[object Uint16Array]"===r?n+=F:"[object Int32Array]"===r?n+=D:"[object Uint32Array]"===r?n+=U:"[object Float32Array]"===r?n+=q:"[object Float64Array]"===r?n+=z:t(Error("Failed to get type for BinaryArray"))),t(n+W(i))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(T+O+("~~local_forage_type~"+e.type)+"~"+W(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==T)return JSON.parse(e);var t,r=e.substring(K),i=e.substring(C,K);if(i===O&&k.test(r)){var n=r.match(k);t=n[1],r=r.substring(n[0].length)}var s=V(r);switch(i){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case F:return new Uint16Array(s);case D:return new Int32Array(s);case U:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+i)}},stringToBuffer:V,bufferToString:W};function J(e,t,r,i){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,i)}function Z(e,t,r,i,n,a){e.executeSql(r,i,n,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,i,n,a)},a)},a):a(e,s)},a)}function X(e,t,r,i){var n=this;e=d(e);var a=new s(function(a,s){n.ready().then(function(){void 0===t&&(t=null);var o=t,f=n._dbInfo;f.serializer.serialize(t,function(t,d){d?s(d):f.db.transaction(function(r){Z(r,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(i>0){a(X.apply(n,[e,o,r,i-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var $={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var i in e)r[i]="string"!=typeof e[i]?e[i].toString():e[i];var n=new s(function(e,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return i(e)}r.db.transaction(function(n){J(n,r,function(){t._dbInfo=r,e()},function(e,t){i(t)})},i)});return r.serializer=G,n},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,i=new s(function(t,i){r.ready().then(function(){var n=r._dbInfo;n.db.transaction(function(r){Z(r,n,"SELECT * FROM "+n.storeName,[],function(r,i){for(var a=i.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,i){for(var n=[],a=0;a0)?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}(),iterate:function(e,t){var r=this,i=r.ready().then(function(){for(var t=r._dbInfo,i=t.keyPrefix,n=i.length,a=localStorage.length,s=1,o=0;o=0;r--){var i=localStorage.key(r);0===i.indexOf(e)&&localStorage.removeItem(i)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,i=r.ready().then(function(){var t,i=r._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(i.keyPrefix.length)),t});return o(i,t),i},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,i=[],n=0;n=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),r}},ee=function(e,t){for(var r,i=e.length,n=0;nA);var n=e("@magic-sdk/provider"),a=e("@magic-sdk/commons");i.exportAll(a,r);var s=arguments[3],o=Object.create,f=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,h=void 0,p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of c(t))l.call(e,n)||n===r||f(e,n,{get:()=>t[n],enumerable:!(i=d(t,n))||i.enumerable});return e},m=(e,t,r)=>(r=null!=e?o(u(e)):{},b(!t&&e&&e.__esModule?r:f(r,"default",{value:e,enumerable:!0}),e)),g=(e,t,r)=>new Promise((i,n)=>{var a=e=>{try{o(r.next(e))}catch(e){n(e)}},s=e=>{try{o(r.throw(e))}catch(e){n(e)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),y=p((e,t)=>{!function(r){"object"==typeof e&&"u">typeof t?t.exports=r():"function"==typeof define&&define.amd?define([],r):("u">typeof window?window:"u">typeof s?s:"u">typeof self?self:this).localforage=r()}(function(){return(function e(t,r,i){function n(s,o){if(!r[s]){if(!t[s]){var f="function"==typeof h&&h;if(!o&&f)return f(s,!0);if(a)return a(s,!0);var d=Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return n(t[s][1][e]||e)},c,c.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof h&&h,s=0;stypeof e.MessageChannel){var o=new e.MessageChannel;o.port1.onmessage=c,r=function(){o.port2.postMessage(0)}}else r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};var f,d=[];function c(){f=!0;for(var e,t,r=d.length;r;){for(t=d,d=[],e=-1;++etypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{}],2:[function(e,t,r){"use strict";var i=e(1);function n(){}var a={},s=["REJECTED"],o=["FULFILLED"],f=["PENDING"];function d(e){if("function"!=typeof e)throw TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,e!==n&&h(this,e)}function c(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(e,t,r){i(function(){var i;try{i=t(r)}catch(t){return a.reject(e,t)}i===e?a.reject(e,TypeError("Cannot resolve promise with itself")):a.resolve(e,i)})}function l(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var r=!1;function i(t){r||(r=!0,a.reject(e,t))}function n(t){r||(r=!0,a.resolve(e,t))}var s=p(function(){t(n,i)});"error"===s.status&&i(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}t.exports=d,d.prototype.catch=function(e){return this.then(null,e)},d.prototype.then=function(e,t){if("function"!=typeof e&&this.state===o||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(n);return this.state!==f?u(r,this.state===o?e:t,this.outcome):this.queue.push(new c(r,e,t)),r},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){u(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){u(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(l,t);if("error"===r.status)return a.reject(e,r.value);var i=r.value;if(i)h(e,i);else{e.state=o,e.outcome=t;for(var n=-1,s=e.queue.length;++ntypeof s?s:"u">typeof self?self:"u">typeof window?window:{})},{2:2}],4:[function(e,t,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){try{if("u">typeof indexedDB)return indexedDB;if("u">typeof webkitIndexedDB)return webkitIndexedDB;if("u">typeof mozIndexedDB)return mozIndexedDB;if("u">typeof OIndexedDB)return OIndexedDB;if("u">typeof msIndexedDB)return msIndexedDB}catch{return}}();function a(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var r="u">typeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,i=new r,n=0;n"u"&&e(3);var s=Promise;function o(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function f(e,t,r){"function"==typeof t&&e.then(t),"function"==typeof r&&e.catch(r)}function d(e){return"string"!=typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function c(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var u="local-forage-detect-blob-support",l=void 0,h={},p=Object.prototype.toString,b="readonly",m="readwrite";function g(e){var t=h[e.name],r={};r.promise=new s(function(e,t){r.resolve=e,r.reject=t}),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then(function(){return r.promise}):t.dbReady=r.promise}function y(e){var t=h[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function v(e,t){var r=h[e.name].deferredOperations.pop();if(r)return r.reject(t),r.promise}function w(e,t){return new s(function(r,i){if(h[e.name]=h[e.name]||x(),e.db){if(!t)return r(e.db);g(e),e.db.close()}var a=[e.name];t&&a.push(e.version);var s=n.open.apply(n,a);t&&(s.onupgradeneeded=function(t){var r=s.result;try{r.createObjectStore(e.storeName),t.oldVersion<=1&&r.createObjectStore(u)}catch(r){if("ConstraintError"===r.name)console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw r}}),s.onerror=function(e){e.preventDefault(),i(s.error)},s.onsuccess=function(){var t=s.result;t.onversionchange=function(e){e.target.close()},r(t),y(e)}})}function _(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),i=e.versione.db.version;if(i&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),n||r){if(r){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function M(e){return a([function(e){for(var t=e.length,r=new ArrayBuffer(t),i=new Uint8Array(r),n=0;n0&&(!e.db||"InvalidStateError"===n.name||"NotFoundError"===n.name))return s.resolve().then(function(){if(!e.db||"NotFoundError"===n.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),w(e,!0)}).then(function(){return(function(e){g(e);for(var t=h[e.name],r=t.forages,i=0;itypeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"u">typeof indexedDB&&"u">typeof IDBKeyRange}catch{return!1}}(),iterate:function(e,t){var r=this,i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).openCursor(),o=1;s.onsuccess=function(){var r=s.result;if(r){var i=r.value;E(i)&&(i=M(i));var n=e(i,r.key,o++);void 0!==n?t(n):r.continue()}else t()},s.onerror=function(){i(s.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},getItem:function(e,t){var r=this;e=d(e);var i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),E(e)&&(e=M(e)),t(e)},s.onerror=function(){i(s.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},setItem:function(e,t,r){var i=this;e=d(e);var n=new s(function(r,n){var o;i.ready().then(function(){var e;return o=i._dbInfo,"[object Blob]"===p.call(t)?(e=o.db,"boolean"==typeof l?s.resolve(l):new s(function(t){var r=e.transaction(u,m),i=a([""]);r.objectStore(u).put(i,"key"),r.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},r.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/);t(navigator.userAgent.match(/Edge\//)||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1}).then(function(e){return l=e})).then(function(e){return e?t:new s(function(e,r){var i=new FileReader;i.onerror=r,i.onloadend=function(r){e({__local_forage_encoded_blob:!0,data:btoa(r.target.result||""),type:t.type})},i.readAsBinaryString(t)})}):t}).then(function(t){S(i._dbInfo,m,function(a,s){if(a)return n(a);try{var o=s.objectStore(i._dbInfo.storeName);null===t&&(t=void 0);var f=o.put(t,e);s.oncomplete=function(){void 0===t&&(t=null),r(t)},s.onabort=s.onerror=function(){var e=f.error?f.error:f.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return o(n,r),n},removeItem:function(e,t){var r=this;e=d(e);var i=new s(function(t,i){r.ready().then(function(){S(r._dbInfo,m,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName).delete(e);a.oncomplete=function(){t()},a.onerror=function(){i(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},clear:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,m,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).clear();n.oncomplete=function(){e()},n.onabort=n.onerror=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},length:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).count();a.onsuccess=function(){e(a.result)},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},key:function(e,t){var r=this,i=new s(function(t,i){if(e<0){t(null);return}r.ready().then(function(){S(r._dbInfo,b,function(n,a){if(n)return i(n);try{var s=a.objectStore(r._dbInfo.storeName),o=!1,f=s.openKeyCursor();f.onsuccess=function(){var r=f.result;if(!r){t(null);return}0===e||o?t(r.key):(o=!0,r.advance(e))},f.onerror=function(){i(f.error)}}catch(e){i(e)}})}).catch(i)});return o(i,t),i},keys:function(e){var t=this,r=new s(function(e,r){t.ready().then(function(){S(t._dbInfo,b,function(i,n){if(i)return r(i);try{var a=n.objectStore(t._dbInfo.storeName).openKeyCursor(),s=[];a.onsuccess=function(){var t=a.result;if(!t){e(s);return}s.push(t.key),t.continue()},a.onerror=function(){r(a.error)}}catch(e){r(e)}})}).catch(r)});return o(r,e),r},dropInstance:function(e,t){t=c.apply(this,arguments);var r,i=this.config();if((e="function"!=typeof e&&e||{}).name||(e.name=e.name||i.name,e.storeName=e.storeName||i.storeName),e.name){var a=e.name===i.name&&this._dbInfo.db?s.resolve(this._dbInfo.db):w(e,!1).then(function(t){var r=h[e.name],i=r.forages;r.db=t;for(var n=0;n>4,c[f++]=(15&i)<<4|n>>2,c[f++]=(3&n)<<6|63&a;return d}function W(e){var t,r=new Uint8Array(e),i="";for(t=0;t>2]+R[(3&r[t])<<4|r[t+1]>>4]+R[(15&r[t+1])<<2|r[t+2]>>6]+R[63&r[t+2]];return r.length%3==2?i=i.substring(0,i.length-1)+"=":r.length%3==1&&(i=i.substring(0,i.length-2)+"=="),i}var G={serialize:function(e,t){var r="";if(e&&(r=H.call(e)),e&&("[object ArrayBuffer]"===r||e.buffer&&"[object ArrayBuffer]"===H.call(e.buffer))){var i,n=T;e instanceof ArrayBuffer?(i=e,n+=P):(i=e.buffer,"[object Int8Array]"===r?n+=N:"[object Uint8Array]"===r?n+=j:"[object Uint8ClampedArray]"===r?n+=B:"[object Int16Array]"===r?n+=L:"[object Uint16Array]"===r?n+=F:"[object Int32Array]"===r?n+=D:"[object Uint32Array]"===r?n+=U:"[object Float32Array]"===r?n+=q:"[object Float64Array]"===r?n+=z:t(Error("Failed to get type for BinaryArray"))),t(n+W(i))}else if("[object Blob]"===r){var a=new FileReader;a.onload=function(){t(T+O+("~~local_forage_type~"+e.type)+"~"+W(this.result))},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(r){console.error("Couldn't convert value into a JSON string: ",e),t(null,r)}},deserialize:function(e){if(e.substring(0,C)!==T)return JSON.parse(e);var t,r=e.substring(K),i=e.substring(C,K);if(i===O&&k.test(r)){var n=r.match(k);t=n[1],r=r.substring(n[0].length)}var s=V(r);switch(i){case P:return s;case O:return a([s],{type:t});case N:return new Int8Array(s);case j:return new Uint8Array(s);case B:return new Uint8ClampedArray(s);case L:return new Int16Array(s);case F:return new Uint16Array(s);case D:return new Int32Array(s);case U:return new Uint32Array(s);case q:return new Float32Array(s);case z:return new Float64Array(s);default:throw Error("Unkown type: "+i)}},stringToBuffer:V,bufferToString:W};function J(e,t,r,i){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,i)}function Z(e,t,r,i,n,a){e.executeSql(r,i,n,function(e,s){s.code===s.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(e,o){o.rows.length?a(e,s):J(e,t,function(){e.executeSql(r,i,n,a)},a)},a):a(e,s)},a)}function X(e,t,r,i){var n=this;e=d(e);var a=new s(function(a,s){n.ready().then(function(){void 0===t&&(t=null);var o=t,f=n._dbInfo;f.serializer.serialize(t,function(t,d){d?s(d):f.db.transaction(function(r){Z(r,f,"INSERT OR REPLACE INTO "+f.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(o)},function(e,t){s(t)})},function(t){if(t.code===t.QUOTA_ERR){if(i>0){a(X.apply(n,[e,o,r,i-1]));return}s(t)}})})}).catch(s)});return o(a,r),a}var $={_driver:"webSQLStorage",_initStorage:function(e){var t=this,r={db:null};if(e)for(var i in e)r[i]="string"!=typeof e[i]?e[i].toString():e[i];var n=new s(function(e,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(e){return i(e)}r.db.transaction(function(n){J(n,r,function(){t._dbInfo=r,e()},function(e,t){i(t)})},i)});return r.serializer=G,n},_support:"function"==typeof openDatabase,iterate:function(e,t){var r=this,i=new s(function(t,i){r.ready().then(function(){var n=r._dbInfo;n.db.transaction(function(r){Z(r,n,"SELECT * FROM "+n.storeName,[],function(r,i){for(var a=i.rows,s=a.length,o=0;o '__WebKitDatabaseInfoTable__'",[],function(t,r){for(var n=[],a=0;a0?(this._dbInfo=t,t.serializer=G,s.resolve()):s.reject()},_support:function(){try{return"u">typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}(),iterate:function(e,t){var r=this,i=r.ready().then(function(){for(var t=r._dbInfo,i=t.keyPrefix,n=i.length,a=localStorage.length,s=1,o=0;o=0;r--){var i=localStorage.key(r);0===i.indexOf(e)&&localStorage.removeItem(i)}});return o(r,e),r},length:function(e){var t=this.keys().then(function(e){return e.length});return o(t,e),t},key:function(e,t){var r=this,i=r.ready().then(function(){var t,i=r._dbInfo;try{t=localStorage.key(e)}catch{t=null}return t&&(t=t.substring(i.keyPrefix.length)),t});return o(i,t),i},keys:function(e){var t=this,r=t.ready().then(function(){for(var e=t._dbInfo,r=localStorage.length,i=[],n=0;n=0;t--){var r=localStorage.key(t);0===r.indexOf(e)&&localStorage.removeItem(r)}}):s.reject("Invalid arguments"),t),i}}},en=[ei.INDEXEDDB._driver,ei.WEBSQL._driver,ei.LOCALSTORAGE._driver],ea=["dropInstance"],es=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ea),eo={description:"",driver:en.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ef(){for(var e=1;e"u"?"undefined":i(e))!=="object")return"string"==typeof e?this._config[e]:this._config;if(this._ready)return Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)},e.prototype.defineDriver=function(e,t,r){var i=new s(function(t,r){try{var i=e._driver,n=Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver){r(n);return}for(var a=es.concat("_initStorage"),f=0,d=a.length;f{var r,i;r="u">typeof self?self:e,i=function(e){"use strict";var t=/^~~local_forage_type~([^~]+)~/,r=Object.prototype.toString;function i(e){var t=.75*e.length,r=e.length;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);for(var i=new ArrayBuffer(t),n=new Uint8Array(i),a=0,s=0;a>4,n[s++]=(15&f)<<4|d>>2,n[s++]=(3&d)<<6|63&c}return i}function n(e){for(var t=new Uint8Array(e),r="",i=0;i>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t[i])<<4|t[i+1]>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t[i+1])<<2|t[i+2]>>6]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[63&t[i+2]];return t.length%3==2?r=r.substring(0,r.length-1)+"=":t.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function a(e,t){return(e.name||t.name)+"/"+(e.storeName||t.storeName)+"/"}function s(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function o(){for(var e=[],t=0;ttypeof BlobBuilder?BlobBuilder:"u">typeof MSBlobBuilder?MSBlobBuilder:"u">typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,i=new r,n=0;n=a.length&&(a=void 0),{value:a&&a[o++],done:!a}}}),d=f.next();!d.done;d=f.next()){var c=d.value;Object.prototype.hasOwnProperty.call(t,c)&&(t.isActiveClone=null,n[c]=e(t[c]),delete t.isActiveClone)}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return n}(e):{},r=a(t,this._defaultConfig),i=l.resolve(r);return this._dbInfo=t,this._dbInfo.serializer=c,this._dbInfo.keyPrefix=r,this._dbInfo.mStore=i,Promise.resolve()},e.clear=function(e){var t=this,r=this.ready().then(function(){t._dbInfo.mStore.clear()});return s(r,e),r},e.dropInstance=function(e,t){var r=f.apply(this,arguments),i=r.promise,n=r.callback;return s(i.then(function(e){l.resolve(e).drop()}),n),i},e.getItem=function(e,t){var r=this;e=d(e);var i=this.ready().then(function(){var t=r._dbInfo.mStore.get(e);return null==t?null:r._dbInfo.serializer.deserialize(t)});return s(i,t),i},e.iterate=function(e,t){var r=this,i=this.ready().then(function(){for(var t=r._dbInfo.mStore,i=t.keys(),n=0;ntypeof t?i(e):"function"==typeof define&&define.amd?define("localforage-driver-memory",["exports"],i):i(r.LocalforageDriverMemory={})}),w=m(y()),_=m(v()),M={display:"none",position:"fixed",top:"0",right:"0",width:"100%",height:"100%",borderRadius:"0",border:"none",zIndex:"2147483647"},E=class extends n.ViewController{constructor(){super(...arguments),this.activeElement=null}init(){this.test="hello",this.iframe=new Promise(e=>{let t=()=>{var t;if(t=encodeURIComponent(this.parameters),[].slice.call(document.querySelectorAll(".magic-iframe")).find(e=>e.src.includes(t)))(0,n.createDuplicateIframeWarning)().log();else{let t=document.createElement("iframe");t.classList.add("magic-iframe"),t.dataset.magicIframeLabel=(0,n.createURL)(this.endpoint).host,t.title="Secure Modal",t.src=(0,n.createURL)(`/send?params=${encodeURIComponent(this.parameters)}`,this.endpoint).href,function(e){for(let[t,r]of Object.entries(M))e.style[t]=r}(t),document.body.appendChild(t),e(t)}};["loaded","interactive","complete"].includes(document.readyState)?t():window.addEventListener("load",t,!1)}),window.addEventListener("message",e=>{var t;if(e.origin===this.endpoint&&e.data&&e.data.msgType&&this.messageHandlers.size)for(let r of(e.data.response=null!=(t=e.data.response)?t:{},this.messageHandlers.values()))r(e)})}showOverlay(){return g(this,null,function*(){let e=yield this.iframe;e.style.display="block",this.activeElement=document.activeElement,e.focus()})}hideOverlay(){return g(this,null,function*(){var e;(yield this.iframe).style.display="none",null!=(e=this.activeElement)&&e.focus&&this.activeElement.focus(),this.activeElement=null})}_post(e){return g(this,null,function*(){let t=yield this.iframe;if(t&&t.contentWindow)t.contentWindow.postMessage(e,this.endpoint);else throw(0,n.createModalNotReadyError)()})}},A=(0,n.createSDK)(n.SDKBase,{platform:"web",sdkName:"magic-sdk",version:"21.2.0",defaultEndpoint:"https://auth.magic.link/",ViewController:E,configureStorage:()=>g(void 0,null,function*(){let e=w.default.createInstance({name:"MagicAuthLocalStorageDB",storeName:"MagicAuthLocalStorage"});return yield e.defineDriver(_),yield e.setDriver([w.default.INDEXEDDB,w.default.LOCALSTORAGE,_._driver]),e})})},{"@magic-sdk/provider":"kInmz","@magic-sdk/commons":"jZ3vB","@parcel/transformer-js/src/esmodule-helpers.js":"cI3Jn"}],kInmz:[function(e,t,r){let i;var n,a,s,o,f,d=e("@parcel/transformer-js/src/esmodule-helpers.js");d.defineInteropFlag(r),d.export(r,"Extension",()=>tN),d.export(r,"MagicExtensionError",()=>eU),d.export(r,"MagicExtensionWarning",()=>eq),d.export(r,"MagicRPCError",()=>eD),d.export(r,"MagicSDKError",()=>eL),d.export(r,"MagicSDKWarning",()=>eF),d.export(r,"SDKBase",()=>tF),d.export(r,"STORE_KEY_PRIVATE_KEY",()=>tv),d.export(r,"STORE_KEY_PUBLIC_JWK",()=>tw),d.export(r,"TypedEmitter",()=>e8),d.export(r,"ViewController",()=>tU),d.export(r,"clearKeys",()=>tE),d.export(r,"createDeprecationWarning",()=>e$),d.export(r,"createDuplicateIframeWarning",()=>eJ),d.export(r,"createExtensionNotInitializedError",()=>eV),d.export(r,"createIncompatibleExtensionsError",()=>eW),d.export(r,"createInvalidArgumentError",()=>eG),d.export(r,"createJwt",()=>tA),d.export(r,"createMalformedResponseError",()=>eH),d.export(r,"createMissingApiKeyError",()=>ez),d.export(r,"createModalNotReadyError",()=>eK),d.export(r,"createPromiEvent",()=>te),d.export(r,"createPromise",()=>tt),d.export(r,"createReactNativeEndpointConfigurationWarning",()=>eX),d.export(r,"createSDK",()=>ej),d.export(r,"createSynchronousWeb3MethodWarning",()=>eZ),d.export(r,"createTypedEmitter",()=>e4),d.export(r,"createURL",()=>tg),d.export(r,"decodeJSON",()=>ex),d.export(r,"encodeJSON",()=>eS),d.export(r,"getPayloadId",()=>eQ),d.export(r,"isEmpty",()=>eO),d.export(r,"isJsonRpcErrorCode",()=>eP),d.export(r,"isJsonRpcRequestPayload",()=>ek),d.export(r,"isJsonRpcResponsePayload",()=>eT),d.export(r,"isMagicPayloadMethod",()=>eC),d.export(r,"isMajorVersionAtLeast",()=>ti),d.export(r,"isPromiEvent",()=>e9),d.export(r,"storage",()=>ts),d.export(r,"uuid",()=>ty);var c=e("@magic-sdk/types"),u=e("af855673666531db"),l=Object.create,h=Object.defineProperty,p=Object.defineProperties,b=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,M=(e,t,r)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))w.call(t,r)&&M(e,r,t[r]);if(y)for(var r of y(t))_.call(t,r)&&M(e,r,t[r]);return e},A=(e,t)=>p(e,m(t)),S=(e,t,r)=>new Promise((i,n)=>{var a=e=>{try{o(r.next(e))}catch(e){n(e)}},s=e=>{try{o(r.throw(e))}catch(e){n(e)}},o=e=>e.done?i(e.value):Promise.resolve(e.value).then(a,s);o((r=r.apply(e,t)).next())}),x=(n=(e,t)=>{"use strict";var r=Object.prototype.hasOwnProperty,i="~";function n(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function s(e,t,r,n,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new a(r,n||e,s),f=i?i+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],o]:e._events[f].push(o):(e._events[f]=o,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function f(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1)),f.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},f.prototype.listeners=function(e){var t=i?i+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,a=r.length,s=Array(a);ntypeof t&&(t.exports=f)},()=>(a||n((a={exports:{}}).exports,a),a.exports)),I={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},R=("object"==typeof u&&u.env,()=>{}),k=(function(e,t){let{MAX_SAFE_COMPONENT_LENGTH:r}=I,i=(t=e.exports={}).re=[],n=t.src=[],a=t.t={},s=0,o=(e,t,r)=>{let o=s++;R(o,t),a[e]=o,n[o]=t,i[o]=new RegExp(t,r?"g":void 0)};o("NUMERICIDENTIFIER","0|[1-9]\\d*"),o("NUMERICIDENTIFIERLOOSE","[0-9]+"),o("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),o("MAINVERSION",`(${n[a.NUMERICIDENTIFIER]})\\.(${n[a.NUMERICIDENTIFIER]})\\.(${n[a.NUMERICIDENTIFIER]})`),o("MAINVERSIONLOOSE",`(${n[a.NUMERICIDENTIFIERLOOSE]})\\.(${n[a.NUMERICIDENTIFIERLOOSE]})\\.(${n[a.NUMERICIDENTIFIERLOOSE]})`),o("PRERELEASEIDENTIFIER",`(?:${n[a.NUMERICIDENTIFIER]}|${n[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASEIDENTIFIERLOOSE",`(?:${n[a.NUMERICIDENTIFIERLOOSE]}|${n[a.NONNUMERICIDENTIFIER]})`),o("PRERELEASE",`(?:-(${n[a.PRERELEASEIDENTIFIER]}(?:\\.${n[a.PRERELEASEIDENTIFIER]})*))`),o("PRERELEASELOOSE",`(?:-?(${n[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${n[a.PRERELEASEIDENTIFIERLOOSE]})*))`),o("BUILDIDENTIFIER","[0-9A-Za-z-]+"),o("BUILD",`(?:\\+(${n[a.BUILDIDENTIFIER]}(?:\\.${n[a.BUILDIDENTIFIER]})*))`),o("FULLPLAIN",`v?${n[a.MAINVERSION]}${n[a.PRERELEASE]}?${n[a.BUILD]}?`),o("FULL",`^${n[a.FULLPLAIN]}$`),o("LOOSEPLAIN",`[v=\\s]*${n[a.MAINVERSIONLOOSE]}${n[a.PRERELEASELOOSE]}?${n[a.BUILD]}?`),o("LOOSE",`^${n[a.LOOSEPLAIN]}$`),o("GTLT","((?:<|>)?=?)"),o("XRANGEIDENTIFIERLOOSE",`${n[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),o("XRANGEIDENTIFIER",`${n[a.NUMERICIDENTIFIER]}|x|X|\\*`),o("XRANGEPLAIN",`[v=\\s]*(${n[a.XRANGEIDENTIFIER]})(?:\\.(${n[a.XRANGEIDENTIFIER]})(?:\\.(${n[a.XRANGEIDENTIFIER]})(?:${n[a.PRERELEASE]})?${n[a.BUILD]}?)?)?`),o("XRANGEPLAINLOOSE",`[v=\\s]*(${n[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${n[a.XRANGEIDENTIFIERLOOSE]})(?:${n[a.PRERELEASELOOSE]})?${n[a.BUILD]}?)?)?`),o("XRANGE",`^${n[a.GTLT]}\\s*${n[a.XRANGEPLAIN]}$`),o("XRANGELOOSE",`^${n[a.GTLT]}\\s*${n[a.XRANGEPLAINLOOSE]}$`),o("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),o("COERCERTL",n[a.COERCE],!0),o("LONETILDE","(?:~>?)"),o("TILDETRIM",`(\\s*)${n[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",o("TILDE",`^${n[a.LONETILDE]}${n[a.XRANGEPLAIN]}$`),o("TILDELOOSE",`^${n[a.LONETILDE]}${n[a.XRANGEPLAINLOOSE]}$`),o("LONECARET","(?:\\^)"),o("CARETTRIM",`(\\s*)${n[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",o("CARET",`^${n[a.LONECARET]}${n[a.XRANGEPLAIN]}$`),o("CARETLOOSE",`^${n[a.LONECARET]}${n[a.XRANGEPLAINLOOSE]}$`),o("COMPARATORLOOSE",`^${n[a.GTLT]}\\s*(${n[a.LOOSEPLAIN]})$|^$`),o("COMPARATOR",`^${n[a.GTLT]}\\s*(${n[a.FULLPLAIN]})$|^$`),o("COMPARATORTRIM",`(\\s*)${n[a.GTLT]}\\s*(${n[a.LOOSEPLAIN]}|${n[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",o("HYPHENRANGE",`^\\s*(${n[a.XRANGEPLAIN]})\\s+-\\s+(${n[a.XRANGEPLAIN]})\\s*$`),o("HYPHENRANGELOOSE",`^\\s*(${n[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${n[a.XRANGEPLAINLOOSE]})\\s*$`),o("STAR","(<|>)?=?\\s*\\*"),o("GTE0","^\\s*>=\\s*0.0.0\\s*$"),o("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(i={exports:{}},i.exports),i.exports),T=/^[0-9]+$/,C=(e,t)=>{let r=T.test(e),i=T.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:eC(t,e)},L=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid Version: ${e}`);if(e.length>P)throw TypeError(`version is longer than ${P} characters`);R("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?N[j.LOOSE]:N[j.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>O||this.major<0)throw TypeError("Invalid major version");if(this.minor>O||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>O||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}},D=(e,t,r)=>new L(e,r).compare(new L(t,r)),F=(e,t,r)=>0===D(e,t,r),U=(e,t,r)=>0!==D(e,t,r),q=(e,t,r)=>D(e,t,r)>0,z=(e,t,r)=>D(e,t,r)>=0,K=(e,t,r)=>0>D(e,t,r),H=(e,t,r)=>0>=D(e,t,r),V=(e,t,r,i)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return F(e,r,i);case"!=":return U(e,r,i);case">":return q(e,r,i);case">=":return z(e,r,i);case"<":return K(e,r,i);case"<=":return H(e,r,i);default:throw TypeError(`Invalid operator: ${t}`)}},W=Symbol("SemVer ANY"),G=class{static get ANY(){return W}constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof G){if(!!t.loose===e.loose)return e;e=e.value}R("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===W?this.value="":this.value=this.operator+this.semver.version,R("comp",this)}parse(e){let t=this.options.loose?J[Z.COMPARATORLOOSE]:J[Z.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new L(r[2],this.options.loose):this.semver=W}toString(){return this.value}test(e){if(R("Comparator.test",e,this.options.loose),this.semver===W||e===W)return!0;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}return V(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof G))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new X(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new X(this.value,t).test(e.semver);let r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),n=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=V(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),o=V(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||n&&a||s||o}},{re:J,t:Z}=k,X=class{constructor(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof X)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new X(e.raw,t);if(e instanceof G)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${e}`);this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let{loose:t}=this.options;e=e.trim();let r=t?$[Y.HYPHENRANGELOOSE]:$[Y.HYPHENRANGE];R("hyphen replace",e=e.replace(r,eh(this.options.includePrerelease))),R("comparator trim",e=e.replace($[Y.COMPARATORTRIM],Q),$[Y.COMPARATORTRIM]),e=(e=(e=e.replace($[Y.TILDETRIM],ee)).replace($[Y.CARETTRIM],et)).split(/\s+/).join(" ");let i=t?$[Y.COMPARATORLOOSE]:$[Y.COMPARATOR];return e.split(" ").map(e=>ei(e,this.options)).join(" ").split(/\s+/).map(e=>el(e,this.options)).filter(this.options.loose?e=>!!e.match(i):()=>!0).map(e=>new G(e,this.options))}intersects(e,t){if(!(e instanceof X))throw TypeError("a Range is required");return this.set.some(r=>er(r,t)&&e.set.some(e=>er(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new L(e,this.options)}catch(e){return!1}for(let t=0;t{let r=!0,i=e.slice(),n=i.pop();for(;r&&i.length;)r=i.every(e=>n.intersects(e,t)),n=i.pop();return r},ei=(e,t)=>(R("comp",e,t),e=eo(e,t),R("caret",e),e=ea(e,t),R("tildes",e),e=ed(e,t),R("xrange",e),e=eu(e,t),R("stars",e),e),en=e=>!e||"x"===e.toLowerCase()||"*"===e,ea=(e,t)=>e.trim().split(/\s+/).map(e=>es(e,t)).join(" "),es=(e,t)=>{let r=t.loose?$[Y.TILDELOOSE]:$[Y.TILDE];return e.replace(r,(t,r,i,n,a)=>{let s;return R("tilde",e,t,r,i,n,a),en(r)?s="":en(i)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:en(n)?s=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:a?(R("replaceTilde pr",a),s=`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`):s=`>=${r}.${i}.${n} <${r}.${+i+1}.0-0`,R("tilde return",s),s})},eo=(e,t)=>e.trim().split(/\s+/).map(e=>ef(e,t)).join(" "),ef=(e,t)=>{R("caret",e,t);let r=t.loose?$[Y.CARETLOOSE]:$[Y.CARET],i=t.includePrerelease?"-0":"";return e.replace(r,(t,r,n,a,s)=>{let o;return R("caret",e,t,r,n,a,s),en(r)?o="":en(n)?o=`>=${r}.0.0${i} <${+r+1}.0.0-0`:en(a)?o="0"===r?`>=${r}.${n}.0${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${i} <${+r+1}.0.0-0`:s?(R("replaceCaret pr",s),o="0"===r?"0"===n?`>=${r}.${n}.${a}-${s} <${r}.${n}.${+a+1}-0`:`>=${r}.${n}.${a}-${s} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${a}-${s} <${+r+1}.0.0-0`):(R("no pr"),o="0"===r?"0"===n?`>=${r}.${n}.${a}${i} <${r}.${n}.${+a+1}-0`:`>=${r}.${n}.${a}${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${a} <${+r+1}.0.0-0`),R("caret return",o),o})},ed=(e,t)=>(R("replaceXRanges",e,t),e.split(/\s+/).map(e=>ec(e,t)).join(" ")),ec=(e,t)=>{e=e.trim();let r=t.loose?$[Y.XRANGELOOSE]:$[Y.XRANGE];return e.replace(r,(r,i,n,a,s,o)=>{R("xRange",e,r,i,n,a,s,o);let f=en(n),d=f||en(a),c=d||en(s);return"="===i&&c&&(i=""),o=t.includePrerelease?"-0":"",f?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&c?(d&&(a=0),s=0,">"===i?(i=">=",d?(n=+n+1,a=0):a=+a+1,s=0):"<="===i&&(i="<",d?n=+n+1:a=+a+1),"<"===i&&(o="-0"),r=`${i+n}.${a}.${s}${o}`):d?r=`>=${n}.0.0${o} <${+n+1}.0.0-0`:c&&(r=`>=${n}.${a}.0${o} <${n}.${+a+1}.0-0`),R("xRange return",r),r})},eu=(e,t)=>(R("replaceStars",e,t),e.trim().replace($[Y.STAR],"")),el=(e,t)=>(R("replaceGTE0",e,t),e.trim().replace($[t.includePrerelease?Y.GTE0PRE:Y.GTE0],"")),eh=e=>(t,r,i,n,a,s,o,f,d,c,u,l,h)=>`${r=en(i)?"":en(n)?`>=${i}.0.0${e?"-0":""}`:en(a)?`>=${i}.${n}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${f=en(d)?"":en(c)?`<${+d+1}.0.0-0`:en(u)?`<${d}.${+c+1}.0-0`:l?`<=${d}.${c}.${u}-${l}`:e?`<${d}.${c}.${+u+1}-0`:`<=${f}`}`.trim(),ep=(e,t,r)=>{for(let r=0;r0){let i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0},eb=(e,t,r)=>{try{t=new X(t,r)}catch(e){return!1}return t.test(e)},{MAX_LENGTH:em}=I,{re:eg,t:ey}=k,ev=(e,t)=>{if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e;if("string"!=typeof e||e.length>em||!(t.loose?eg[ey.LOOSE]:eg[ey.FULL]).test(e))return null;try{return new L(e,t)}catch(e){return null}},{re:ew,t:e_}=k,eM=(e,t)=>{if(e instanceof L)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=ew[e_.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),ew[e_.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;ew[e_.COERCERTL].lastIndex=-1}else r=e.match(ew[e_.COERCE]);return null===r?null:ev(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};function eE(e){return String.fromCharCode(parseInt(e.slice(1),16))}function eA(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function eS(e){return btoa(encodeURIComponent(JSON.stringify(e)).replace(/%[0-9A-F]{2}/g,eE))}function ex(e){return JSON.parse(decodeURIComponent(Array.from(atob(e),eA).join("")))}function eI(e){return void 0===e}function eR(e){return null===e||eI(e)}function ek(e){return!eR(e)&&!eI(e.jsonrpc)&&!eI(e.id)&&!eI(e.method)&&!eI(e.params)}function eT(e){return!eR(e)&&!eI(e.jsonrpc)&&!eI(e.id)&&(!eI(e.result)||!eI(e.error))}function eC(e){return!eR(e)&&"string"==typeof e&&Object.values(c.MagicPayloadMethod).includes(e)}function eP(e){return!eR(e)&&"number"==typeof e&&Object.values(c.RPCErrorCode).includes(e)}function eO(e){if(!e)return!0;for(let t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0}var eN={};function ej(e,t){return Object.assign(eN,t),e}var eB={"magic-sdk":"magic-sdk","@magic-sdk/react-native":"magic-sdk-rn","@magic-sdk/react-native-bare":"magic-sdk-rn-bare","@magic-sdk/react-native-expo":"magic-sdk-rn-expo"},eL=class extends Error{constructor(e,t){super(`Magic SDK Error: [${e}] ${t}`),this.code=e,this.rawMessage=t,this.__proto__=Error,Object.setPrototypeOf(this,eL.prototype)}},eD=class extends Error{constructor(e){super(),this.__proto__=Error;let t=Number(null==e?void 0:e.code);this.rawMessage=(null==e?void 0:e.message)||"Internal error",this.code=eP(t)?t:c.RPCErrorCode.InternalError,this.message=`Magic RPC Error: [${this.code}] ${this.rawMessage}`,this.data=(null==e?void 0:e.data)||void 0,Object.setPrototypeOf(this,eD.prototype)}},eF=class{constructor(e,t){this.code=e,this.rawMessage=t,this.message=`Magic SDK Warning: [${e}] ${t}`}log(){console.warn(this.message)}},eU=class extends Error{constructor(e,t,r,i){super(`Magic Extension Error (${e.name}): [${t}] ${r}`),this.code=t,this.rawMessage=r,this.data=i,this.__proto__=Error,Object.setPrototypeOf(this,eU.prototype)}},eq=class{constructor(e,t,r){this.code=t,this.rawMessage=r,this.message=`Magic Extension Warning (${e.name}): [${t}] ${r}`}log(){console.warn(this.message)}};function ez(){return new eL(c.SDKErrorCode.MissingApiKey,"Please provide an API key that you acquired from the Magic developer dashboard.")}function eK(){return new eL(c.SDKErrorCode.ModalNotReady,"Modal is not ready.")}function eH(){return new eL(c.SDKErrorCode.MalformedResponse,"Response from the Magic iframe is malformed.")}function eV(e){return new eL(c.SDKErrorCode.ExtensionNotInitialized,`Extensions must be initialized with a Magic SDK instance before \`Extension.${e}\` can be accessed. Do not invoke \`Extension.${e}\` inside an extension constructor.`)}function eW(e){let t=`Some extensions are incompatible with \`${eN.sdkName}@${eN.version}\`:`;return e.filter(e=>void 0!==e.compat&&null!==e.compat).forEach(e=>{let r=e.compat[eN.sdkName];"string"==typeof r?t+=` - Extension \`${e.name}\` supports version(s) \`${r}\``:r||(t+=` - Extension \`${e.name}\` does not support ${eN.platform} environments.`)}),new eL(c.SDKErrorCode.IncompatibleExtensions,t)}function eG(e){let t,r,i;return new eL(c.SDKErrorCode.InvalidArgument,`Invalid ${(r=(t=e.argument+1)%10,i=t%100,1===r&&11!==i?`${t}st`:2===r&&12!==i?`${t}nd`:3===r&&13!==i?`${t}rd`:`${t}th`)} argument given to \`${e.procedure}\`. Expected: \`${e.expected}\` - Received: \`${e.received}\``)}function eJ(){return new eF(c.SDKWarningCode.DuplicateIframe,"Duplicate iframes found.")}function eZ(){return new eF(c.SDKWarningCode.SyncWeb3Method,"Non-async web3 methods are deprecated in web3 > 1.0 and are not supported by the Magic web3 provider. Please use an async method instead.")}function eX(){return new eF(c.SDKWarningCode.ReactNativeEndpointConfiguration,`CUSTOM DOMAINS ARE NOT SUPPORTED WHEN USING MAGIC SDK WITH REACT NATIVE! The \`endpoint\` parameter SHOULD NOT be provided. The Magic \`